2
votes
1answer
351 views

systemd stuck on mounting an encrypted volume

systemd seems to stuck on mounting an encrypted volume, when I set the init to /usr/sbin/systemd in grub.cfg, I have one line in /etc/crypttab secure /dev/sda8 /etc/cb.key That works with original ...
10
votes
3answers
6k views

Configure up-arrow to browse through commands with same initial characters rather than all previous commands

On the bash command-line, ↑ gives me the previous command. On the command-lines in numpy or matlab, when I type a few characters, ↑ gives me the previously entered command starting with those ...
4
votes
3answers
1k views

Find files that have words in common

What would be the best way to create a list of files that have common words with a given file. For example, if I had: $ ls mainFile file1 file2 file file4 $ cat mainFile exquisite malicious ...
1
vote
1answer
396 views

How can I configure postfix smtp per user?

I have previously used msmtp as my MDA. msmtp has a configuration file with username and password of the outgoing smtp server (eg gmail) stored in my home directory. I've recently changed ...
2
votes
1answer
208 views

Binding additional keyboard shortcuts in bash

I like typical GUI shortcuts: Ctrl+Backspace Ctrl+Del And other typical shortcuts. Are there any ready .bashrc with all this shortcuts available?
0
votes
2answers
3k views

Update is telling me my package system is broken - the instruction to fix it doesn't work - what to do?

I am using Linux Mint 12 and currently have the Mate desktop running. The icon in the upper right showed their were updates. Tried to do it and it said that The package system is broken ...
2
votes
1answer
585 views

Recover MDADM Raid 5 in LVM with badblocks

I'm pretty sure I'm dealing with at stuffed RAID 5 array. Two of the drives were listed as failed in /proc/mdstat and mdadmdetails: 0 0 8 33 0 active sync /dev/sdc1 ...
1
vote
0answers
97 views

VNC session turns undead over the weekend

During the week I have a single VNC session I'm working with throughout the week. However, whenever I come back from the weekend or some vacation, I can no longer connect to that session, getting a ...
4
votes
1answer
476 views

Filtering the keyboard input

I have a program that takes input from the keyboard and presents a nice visualization. The purpose of the program is so that my infant can mash on the keyboard and get the computer to do something. ...
3
votes
1answer
191 views

Stop aria2c from parsing torrent file

When I download a torrent file with aria2c, it always try to parse it and add a torrent task, but all I want is get that file. Is it possible to stop aria2c from doing so? I didn't seem to find an ...
2
votes
1answer
2k views

What is the difference between cmask and umask?

What is the difference between the umask setting that can be found in /etc/profile and the cmask setting that can be found in /etc/default/init? What is the difference between the two? When will one ...
2
votes
2answers
86 views

^P not working in zsh, where should I look at?

I copied my bashrc and start tweaking it for zsh, but I suddenly found ^P wasn't functioning, It just print a ^P on screen. What could be wrong? Or where should I look at now?
17
votes
3answers
7k views

What's the newline symbol in zsh's PS1?

I'm trying to setup a multiple line PS1, for zsh, but \n doesn't was parsed by zsh, PS1="%~\n %> " How should I set it up?
1
vote
1answer
560 views

Adding Windows user to Linux group; possible? [closed]

I have a NAS that runs on Linux and I connect to it from my Windows desktop. I noticed that all directory in that drive belongs to user 'root' and group 'root'. That effectively denies me the right to ...
1
vote
1answer
393 views

Compile IMAP with certain PHP API version for MAMP

I've installed MAMP on Mac OS X (where PHP 5.3.15 with API version 20090626 is installed), but IMAP there is without SSL support. As long as MAMP using PHP v5.4.4 (API version 20100525) I've ...
2
votes
1answer
283 views

Can't use Control key while setting shortcut keys for compiz

I might got a problem along with my Xorg config, all control keys are now shown as <Primary>, what is that? I just mapped Capslock to Left Control, and I can't set the shortcut key to Control + ...
3
votes
0answers
391 views

Installing Fedora 17 on Mac Book Pro from mid-February

I have problems installing Fedora on my friend's Mac Book Pro. After a boot, I get a blank screen. Forcing nomodeset helps: nomodeset xdriver=efifb However, I still cannot get into either X or text ...
6
votes
1answer
691 views

Why mkfifo behaves like a LIFO?

If i do. mkfifo /tmp/a echo 'one'>/tmp/a in the while from another terminal echo 'two'>/tmp/a and from a third terminal more /tmp/a Why i obtain as output of the last command this? ...
2
votes
2answers
2k views

Is there an excellent tutorial on how to resize a rootfs partition (and shrink another) on a drive that is 100% allocated?

I'm experiencing the all-too-common "root partition full" situation. 100% of my hard drive is allocated. My home (ext4) partition has plenty of space to give up for my full root partition (rootfs). ...
1
vote
1answer
2k views

How to make Wi-Fi work on Dell Inspiron 14R laptop running Ubuntu 12.10?

I have seen that on most Dell laptops running Ubuntu 12.04 or 12.10, the Wi-Fi doesn't work. It appears the reason for this is the fact that Dell laptops have Broadcom wireless cards. How to make it ...
1
vote
1answer
2k views

Packages needed to get sound working

I just installed Ubuntu Server 12.10. I am using openbox and startx for my gui session. I decided not to post in the Ubuntu forum because I felt this issue might be relevant to other distros as well, ...
2
votes
3answers
105 views

Why is find looking in the current directory?

I have a bash script /var/www/scripts/process_sounds.sh that uses the command: find /var/www/unprocessed_sounds/ * -type f It's supposed to find all the files in the unprocessed_sounds directory, ...
1
vote
2answers
212 views

How to parse options in a shell function to navigate multiple projects

I can use help with this bit of bash I am trying to write. The scripts purpose is to speed up my development while working with multiple projects. I labeled the parts that I have questions about in ...
40
votes
7answers
101k views

How to list all files in the size order

I would like to list all files in the order of big to small in size and the files could be present anywhere in a certain folder.
3
votes
1answer
969 views

Find both regular files and directories

How can I tell ( if I can tell !) find to find files of both the directory and file type? find -type fd It is like the heuristic dark ages up in here.
4
votes
1answer
320 views

man gives the error about locale

I have $ locale LANG=en_GB.UTF-8 LC_CTYPE=ru_RU.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LC_COLLATE=ru_RU.UTF-8 LC_MONETARY=ru_RU.UTF-8 LC_MESSAGES=en_GB.UTF-8 LC_PAPER=ru_RU.UTF-8 ...
0
votes
1answer
754 views

Bash script for Angstrom

I have written a bash script to automate cross-compiling an OpenCV program: echo "Compiling started for: $1" if [[ $1 == *.c ]] then gcc -ggdb `pkg-config --cflags opencv` -o `basename $1 .c` $1 ...
3
votes
1answer
290 views

Mutt scripting: interactive dialog macro using `dialog`

I would like to do the following: Press a macro combination Enter a script of my own making (Python) which has user interaction (think: UNIX dialog utility for shell scripts) Do some processing ...
5
votes
5answers
5k views

Convert formatted dates to seconds since the epoch

I have a file: pablo tty8 Thu Nov 1 12:51:21 2012 still logged in (unknown tty8 Thu Nov 1 12:50:57 2012 - Thu Nov 1 12:51:21 2012 (00:00) pablo tty2 Thu Nov 1 12:50:39 2012 still logged in pablo ...
1
vote
1answer
264 views

How to move rc.conf HARDWARE section to /etc/modules-load.d/?

I've just begun moving my Arch system to systemd, and started by moving the deprecated parts of rc.conf to their respective configuration files. The rc.conf wiki article lists files for most options, ...
2
votes
2answers
3k views

Mass deinterlacing with FFmpeg on Debian

I have about 300 videos, on a Debian server, stored in the following manner: /mediaroot/1/m32.mp4 /mediaroot/2/m421.mp4 /mediaroot/n/mx.mp4 They all need to be deinterlaced, and I want to do it ...
4
votes
3answers
2k views

Get correct number of lines in diff output

I want to get the correct number of lines in the output of diff(specifically with -y and --suppress-common-lines options). Using a simple wc -l does not work, because if both files end without a ...
1
vote
1answer
210 views

Rename directory based on date of file in directory

I am looking for a smart way to bulk rename directories in my photo library based on the date the pictures were taken. My specific use case: Export the image library from iPhoto or Aperture on OS X ...
1
vote
3answers
2k views

Restoring Windows XP from grub

Previously I had a dual boot with Windows XP and Fedora. I have deleted Fedora and extended the C drive using Mini Tool Partition Wizard. Then I restarted the system with the Windows XP bootable CD. ...
1
vote
3answers
270 views

Is there a way to know which options were used at compile time?

Take a look at the following command line: gcc -o hello -Wall -D_BSD_SOURCE hello-world.c Now, is there a way to know about these options by doing some processing on the 'hello' executable.
0
votes
2answers
755 views

Passing results of “find” to zenity

The result of the following script: results=$(find -iname "*.mp4") echo $results; is something like: file1 file2 file3 How do I pass the results of the find command to a variable, as it is shown ...
0
votes
4answers
7k views

How can I reinstall Network Manager after uninstalling it?

I am running a version of RHCE6 on my laptop, and lately I've been trying various stuff about network configuration through command line. Last night, I tried removing the NetworkManager using yum ...
1
vote
1answer
996 views

Unable to install CentOS in VirtualBox

I am trying to install CentOS 5.6 in My VirtualBox but I got this error on boot screen. Your CPU Does not support long mode : use a 32 bit Distribution My CPU is 64 bit I checked that using uname -a ...
5
votes
1answer
1k views

How does X11 forwarding work?

How does X11 forwarding work? I am interested in knowing whether the processing to render graphics is done at the end of the host running the application or the host displaying the graphical ...
2
votes
1answer
48 views

file-roller doesn't use single-click anymore?

In the old days, I can navigate in file-roller with only single click, now I had to do a double click, anyone know if this is configurable?
4
votes
3answers
7k views

How do I tail a log file and keep tailing it when the latest one changes date?

I'm using RHEL 4. The normal tail -F file_name*.log doesn't update when the time flips over to 0000. Here's what I've tried so far from searching the web, both of which try to use nested tail: ...
4
votes
2answers
106 views

Is there any sort of online kernel repository or sharing sites (possibly for laptops)

It just seems there should reasonably be something like this considering so many folks run *nix on laptops and laptops have such consistent hardware sets. At a guess I'd imagine there's likely in the ...
2
votes
1answer
205 views

Max Open Files, clarification needed

On my machine, ulimit -n returns 2560 Given that -n returns The maximum number of open file descriptors. Does it mean that system won't allow more then 2560 open files to be out there at any ...
3
votes
4answers
6k views

Auto mount USB devices on debian?

This isn't a big deal i was just curious so if anyone happens to know why then great. I'm not sure if usbmount is the tool as which usbmount doesn't show anything but on my debian system (no ...
3
votes
2answers
2k views

Linux on Hard Drive Partition, Bootloader on USB Flash Drive

How can I use a USB flash drive to boot Linux from a partition on (another) hard drive? I'm trying to install Linux on an encrypted partition on the hard drive (using LVM on LUKS). Since /boot must ...
0
votes
0answers
469 views

Upgrade Firefox in Linux Mint 10

For some reason a while ago I was no longer able to use the Firefox that came with my Linux Mint 10 virtual machine. I've installed the new version of Firefox (16) using both the package manager and ...
2
votes
1answer
6k views

Why can I not chmod a file?

[nathanb@ka /x/sim/nathanb/nbsim1] ls -al ,nvram -rw-r--r-- 1 root root 2097152 Jul 5 2011 ,nvram [nathanb@ka /x/sim/nathanb/nbsim1] sudo chmod a+w ,nvram chmod: changing permissions of ...
0
votes
3answers
86 views

Fixing header and print

I have header starting with '>' and I want fix the header by keeping first word and removing other shown as in output.txt and print it input.txt >AGAJ01065549.1 ...
20
votes
7answers
49k views

Ubuntu12.04: How to disable a daemon process at startup

I normally use service start/stop or initctl start/stop to start or stop a daemon process but now what I am looking for is to disable a daemon process from starting at startup example mysqld. ...
2
votes
1answer
431 views

Booting grub-2.00 with 2 initrds, crashes with RAMDISK: incomplete write

So, I'm trying to split my initrd into two initrd's. There's some pretty significant scripts that run in the initrd, and we wanted to split the initrd so we could rev the just the logic or just the ...

15 30 50 per page