11
votes
2answers
315 views

Locate occasional CPU kernel hog

I have a 2.6.35 PREEMPT kernel running on moderate-speed ARMv7 processor. About once every 100 - 125s, something causes the kernel to fail to process some audio-related drivers sufficiently quickly to ...
8
votes
1answer
1k views

File owner must belong to file group?

I have a rather simplistic understanding of file permissions on *nix systems. I understand that there is a file owner and file group, but is there a hard and fast rule on whether the said file owner ...
0
votes
2answers
218 views

DenyHosts and no-ip.com

I recently installed DenyHosts and after a few remote logins I noticed that sshd: 8.23.224.110 had been added to the host.deny file after /var/log/auth.log showed a few sshd: Did not receive ...
0
votes
1answer
2k views

shell scripting escaping madness - sending single quotes to subshell

I'm beyond my skill level in getting this to work properly... #!/bin/bash -x # mxfbc.sh - mxf video file batch converter # pass at the command line ... # (1) the directory to batch convert (typically ...
2
votes
1answer
620 views

How to get Xorg to use the wacom driver for my graphics tablet?

I just got a Wacom graphics tablet, plugged it in, installed the drivers and it mostly works. However xsetwacom and the KDE tablet settings module don't recognize it. Upon inspection of Xorg.0.log I ...
1
vote
1answer
1k views

Wifi AP with ASUS USB-N10

I am trying to configure wifi AP with subj device. According documentation in web, it requires master mode hardware support and hostapd software. It seems I have master mode: # iwconfig ... ...
2
votes
1answer
420 views

aptitude current status warning

After installing some packages, i.e. sudo aptitude install pkg ... , there was a line of message at the end of the output: Current status: 0 updates [-66]. What does it mean?
3
votes
1answer
432 views

Protecting file system contents with TPM and Encrypted File System

I have been assured that this is possible, but have so far not found any reference that will clue me as to how to do it. I need to deploy an "appliance" with software and data that the user is ...
5
votes
1answer
2k views

Centos 6.3 Server ignoring IGMP Queries

I am using a CentOS 6.3 server to subscribe to UDP multicast data, and I noticed that my server doesn't answer the IGMP queries sent by the switch it is connected to. As a result, when I open my ...
6
votes
3answers
404 views

How to customize PS1 properly?

I customized my bash with this in my bashrc export PS1="\e[0;36m\h\e[m \e[0;33m\w/\e[m \e[0;31m\n\$ →\e[m " So I get something like this (with colors) : Ahuri ~/Public/ $ → But I am having ...
2
votes
1answer
4k views

Run expect script from other shell

My target is to create the /var/tmp/add_user.bash script from /var/tmp/create_script_add_user.bash script and run the expect script (add_user.bash) from create_script_add_user.bash script. The ...
0
votes
2answers
982 views

How to make any file and put contents in that using script

I want to modify configure.sh to create a file /etc/pam.d/XXX with some predefined content. How can I do this by putting the file's absolute path and content in configure.sh? Please explain the ...
2
votes
2answers
277 views

Install the same 64-bit packages as a 32-bit Xubuntu installation

I have been using a virtual machine (Xubuntu 12.10, with VMWare on a windows host) for all my programming work, which I am trying to transition from a 32-bit install to a 64-bit install. I am hoping ...
3
votes
2answers
725 views

Highlighting command in terminal

I am running long builds with lots of data that I need to read through after each build. But I have to start from bottom up to reach to top and it takes lot of time as all the text looks same. I was ...
1
vote
2answers
568 views

No lockfile creation in NFS setup

I recently set up a new fileserver for our research group. The old one was running SuSE linux and, although small harddrives and a slow machine, worked fine. The clients are mostly Gentoo machines ...
3
votes
5answers
2k views

How to count recursively for the number of files in several directories?

I have a directory, containing a lot of files and directories. I am trying to get the number of files (and directories) contained recursively in every directory. I tried the following approach: for ...
0
votes
1answer
430 views

Mysql server remove/install problem - horribily broken

I'm having the same issue as Ken did on this post. And I did pretty much what Ken did except to different packages. Now, I'm stuck with unclean hooks. I've detailed my problem here and the attempts I'...
4
votes
1answer
5k views

Minimal Java installation for Linux with no GUI

I'm working on a CentOS 6.3 x86_64 minimal OS (installed using the netinstall ISO). This system is not expected to run anything beyond console apps/services and Tomcat7. When I attempt to install ...
3
votes
2answers
5k views

Why does modinfo say “could not find module”, yet lsmod claims the module is loaded?

According to the man page of lsmod the command shows “what kernel modules are currently loaded”. I wrote a script that uses modinfo to show what kernel object (.ko) files are actually in use: #!/bin/...
2
votes
1answer
463 views

Bash: pair up two series of files

I have a number of files with this pattern: file1_foo.ext file1_bar.ext file2_foo.ext file2_bar.ext and so on. I need to "pair them" and put them in a file like this file1_foo.txt file1_bar....
1
vote
2answers
2k views

scp hangs on SSH2_MSG_SERVICE_ACCEPT received

I frequently scp my file to remote host. But suddenly it started taking more than 30 seconds to copy 20kb file.It used to take not more than half a second. After referring to some blog I appended ...
4
votes
1answer
642 views

NAT with transparent proxy

is there a way to redirect all non local http requests that through my computer to use my transparent proxy, so i can log all websites are they visiting? and if possible all https requests too.. my ...
4
votes
1answer
1k views

Encoding of a zip file

When I extract some file (mp3) with japanese or korean characters within its filename on Windows, they appear normally, but when I extract it on Linux (Ubuntu/Mint) they appear as something like this ...
3
votes
5answers
1k views

Create and open file with one command?

I want to create a text file and open it in a text editor with a single command. I know touch file.txt creates a file and open file.txt opens the file, but is there a way to do this with a single ...
14
votes
4answers
7k views

how to suppress bash octal number interpretation? (to be interpreted as decimal)

I have this: date +"%H hours and %M minutes" I use festival to say it up.. but it says like: "zero nine hours".. I want it to say "nine hours"! but date always give me 09... so I wonder if bash ...
56
votes
2answers
62k views

Difference between 2>&-, 2>/dev/null, |&, &>/dev/null and >/dev/null 2>&1

Just looking for the difference between 2>&- 2>/dev/null |& &>/dev/null >/dev/null 2>&1 and their portability with non-Bourne shells like tcsh, mksh, etc.
1
vote
2answers
170 views

How to record every transaction using Bash

I have a file with debit credit and withdrawal transactions. I need a bash script that records the balance after every transaction. So file is like this: D:11/02/12:1000.50 C:11/03/12:300 W:11/05/12:...
4
votes
1answer
654 views

preventing the screen from being cleared when exiting an ssh session

I have rdist set up to push out some of my dot files to all the remote machines that I need to ssh into. I also have zsh as my default shell on all of those machines. When I ssh into a machine and ...
0
votes
1answer
146 views

Reading Linux distribution name from filesystem or command [duplicate]

I need to collect some system info from linux machines and decide what to do based on some distribution/version -specific conditionals. To simplify my example, I concocted a fictitious ...
0
votes
0answers
222 views

Checksum on Network drive is really slow

I want to check if a bunch of files have copied without problem to a network drive. I am not able to ssh to the network drive, but I am able to mount it using FTP. The number of files is about 220, ...
0
votes
1answer
580 views

USB Drive Software Disk Mirroring - Is this the right approach?

I have a 1TB NTFS USB Data Drive (no boot, etc...) that I would like to keep a mirror of as a backup in case of hardware failure. It is always connected to my raspberry pi running the raspbian (...
1
vote
1answer
247 views

head command options and reading man files

I have two environments: Mac and Linux. I wonder about the head command: it can show just 2 lines of text if I invoke it like so: vim --version | head -2 I saw this online and ran to the man page ...
1
vote
2answers
647 views

How to find packages only which package name equal to text with aptitude?

When I want to search a package which named 'z', aptitude find packages which contains 'z' in package name same as 'like' in SQL, so aptitude find a lots of packages. How can I search packages which ...
1
vote
1answer
876 views

SSH disconnects when screen locked with vlock

I'm using tmux + PuTTY to get all the UNIX goodness I need when using Windows. I have the following settings in my .tmux.conf: set-option -g lock-command vlock set-option -g lock-after-time 1800 As ...
1
vote
2answers
2k views

davmail systemd launcher on headless server

I'm trying to follow the ArchWiki guide for writing a custom service file to launch DavMail as a system-wide daemon. Previously I had a line in my ~/.xinitrc that read nohup /usr/bin/davmail /etc/...
2
votes
2answers
31k views

BASH reading txt file and storing in array

I'm writing my first BASH script , I have some experience with c and c# so I think the logic of the program is correct..it's just the syntax is so complicated because apparently there are billions of ...
0
votes
3answers
13k views

Regular Expression for finding double characters in Bash

I am looking for a regular expression that finds all occurences of double characters in a text, a listing, etc. on the command line (Bash). Main Question: Is there a simple way to look for sequences ...
3
votes
1answer
554 views

Install x11 on my own linux system

I have developed my own tiny linux file system using buildroot and busybox. I used linux-2.6.38.8 kernel configured and cross-compiled for target system(X86) according to needs.Now the filesystem is ...
2
votes
1answer
334 views

how to make Tabs Outliner, for Chromium Browser, popup on mouse move to screen edge?

So, we have the Tabs Outliner extension https://chrome.google.com/webstore/detail/tabs-outliner/eggkanocgddhmamlbiijnphhppkpkmkl That is a very good vertical tabs manager for chromium. The problem ...
3
votes
3answers
856 views

Is there any utility or procedure available to dm-crypt my existing live data in place to make a full disk encryption

Once I already have a running Linux system installed with live unencrypted data on my HDD. Is there any reasonable way to dm-crypt that entire HDD right in place? (Without backing up then restoring ...
3
votes
1answer
2k views

Shell wildcards and dot files

I am a beginner terminal user trying to understand wildcards. I think I pretty much have a good grasp on it, but I have a couple of questions: Why do the following two codes work as expected: ls -d ....
2
votes
0answers
1k views

Unable to install the selected kernel

I have problem with my DVD drive. It's corrupted and when I'm trying to install Ubuntu it stucks (even with the miniISO) I was able to successfully start the OS from system rescue CD. I'd like to ...
4
votes
1answer
971 views

Grub2 keyboard layout when decrypting partition

According to the OpenSUSE 12.3 documentation the only keyboard layout which can be used during a Grub2 boot is the "US keyboard layout". Is there really no way to change the keyboard layout used when ...
4
votes
1answer
1k views

iptables: multiple exclusions on port forwarding

I have an existing iptables setup that does port forwarding. In this port forwarding scenario there are some instances where I do not want it to port forward. So, for instance I have this defined: ...
3
votes
2answers
2k views

Fix keyboard chattering/bouncing on the software side

I have a mechanical keyboard (Noppoo Choc Mini with Cherry MX Blue switches) and after a few weeks, some key presses are getting sent two times even though I press a single time. I found out that this ...
3
votes
1answer
3k views

OpenBSD, NVIDIA, and Xorg

I've installed OpenBSD 5.2 i386 on my desktop however I hit a wall when it came to running X at my native resolution (1920x1200). All of the hardware is working normally except for the video card: an ...
7
votes
3answers
5k views

Adjust mouse wheel sensitivity in Fedora / Gnome

Short Question Is there a way to adjust the mouse wheel scroll sensitivity in Fedora 18? Long Question I'm running Fedora 18, with the standard Gnome desktop. I use a Logitech M705 mouse with the ...
4
votes
1answer
603 views

Does UEFI increase battery life?

I've heard about a better power management when using UEFI instead of BIOS. Is that true? It was about energy consumption being more efficient or something like that. If it is true, has the ...
2
votes
1answer
416 views

Restrict two way SSH and Apache authentication to non-local networks

I am using Google's open-source PAM module for two-way authentication for SSH logins and certain Apache directives. It works great, however I would like to use this only when trying to log in from an ...
1
vote
1answer
3k views

can't connect to dnsmasq on local machine, port is open but connection refused

I'm running Scientific Linux 6.3 and just updated the machine to dnsmasq-2.48-13.el6.x86_64. The machine is on local ip 192.168.1.100. I have a local caching DNS setup that was working until the ...

15 30 50 per page