7
votes
4answers
5k views

How to embed a shell command into a sed expression?

I have a text file with the following format: keyword value keyword value ... Where keyword is a single word and value is everything else until the end of line. I want to read the file from a shell ...
3
votes
2answers
4k views

Virtualbox: OS cannot use the new extended disk space (.vdi)

I am running Virtualbox. I increased the size of my hard disk (.vdi) from 10G to 15G. Now when I start my Mint vm, the hard disk reports as 7.5g (df) even though i extended it (fdisk -l). I am not ...
2
votes
1answer
369 views

truecrypt 1: Syntax error: “(” unexpected

I want to use truecrypt on a Linux machine. It is CLI mode only. So I downloaded the x64 and x86 and tried or run the extracted executable file for each version (x64 & x86), but it doesn't work. ...
3
votes
2answers
869 views

Running sha1sum into several directories

I have several directories that share a common parent directory. In each directory there are regular files, but no other subdirectories. Something like this: top/dir-1 top/dir-1/file-11 ...
3
votes
1answer
1k views

Debian: unable to set up SELinux

I'm trying to set up SELinux on Debian 6 according to (the instructions reported on the Debian wiki). I've run this commands: apt-get install selinux-basics selinux-policy-default selinux-activate ...
1
vote
1answer
2k views

iptables forwarding and routing

In fact, this question is about openwrt and CoovaAP, but I guess it's the same in other linux distributions. I've two interfaces, a "wan" and a "wlan" interface. Is there by default any filter, ...
3
votes
1answer
1k views

What do you filter / exclude list when doing backup with rsync? [closed]

I'm trying to build a comprehensive filter / exclude file, to prevent backuping stuff that doesn't make sense do backup, such as temporary / cache data or easily recreatable files. I would appreciate ...
1
vote
1answer
1k views

Using RSA private key from PuTTY in Filezilla

I have created an RSA private key using PuTTYgen. When I try to use it, I am notified that I can't use this encrypted key in Filezilla, so from the documentation I found that I need to use the Pageant ...
5
votes
1answer
2k views

Running bzImage in QEMU: Unable to mount root fs on unknown-block(0.0)

I compiled the kernel by doing make menuconfig and make. I was trying to run the bzImage in qemu, by doing qemu -kernel bzImage but it didn't work out with the error message: Unable to mount root fs ...
23
votes
3answers
21k views

Can rsync resume after being interrupted?

I used rsync to copy a large number of files, but my OS (Ubuntu) restarted unexpectedly. After reboot, I ran rsync again, but from the output on the terminal, I found that rsync still copied those ...
5
votes
2answers
4k views

How to examine the fast output of rsync

I am using rsync for backup about 100GB files and directories. My command is sudo rsync -azvv /home/path/folder1/ /home/path/folder2 However, the output for each file goes up so quickly and there ...
2
votes
1answer
659 views

remove unallocated space from a partition image

I have just created an image of an sd card using dd and the image is compressing down less than expected. I suspect this is because the card had not been zeroed out before I started to make the image. ...
11
votes
2answers
3k views

How can I run a command in zsh without pushing it onto the current session's history?

Both bash and zsh support a shorthand of not placing a command in history if you prepend it with a space. This works great across sessions (if you've setopt histignorespace). However, the command is ...
1
vote
1answer
114 views

Will files created under source directory after running `cp` be copied?

Suppose I use cp to copy a directory to another place. If the process takes long, and I create a new file under the source directory, will it be copied, or does it depend on something?
5
votes
1answer
400 views

Emacs M-x query-replace wrap around the document?

I use M-x query-replace on Emacs (M-%) quite often, and I like that I have the flexibility to choose between these options: Spacebar Replace text and find the next occurrence Del ...
3
votes
1answer
498 views

Bot requesting odd resource in apache logs

While studying for the RHSCA exam I set up my first home server and quickly found that bots had already started requesting commonly vulnerable files. It was alarming at first, then just purely amusing ...
3
votes
2answers
495 views

Modifying TG3 Broadcom driver

I was wondering whether it's possible to modify the said driver in order to prevent adapter from using embedded SRAM, and use system RAM instead. And if so, how to do it. I have a laptop with ...
1
vote
0answers
37 views

Redirect hard return to other terminal [duplicate]

Possible Duplicate: Construct a command by putting a string into a tty Suppose I've run a command in a terminal ( /dev/pts/1 ) and it starts to ask me for input ( "press y to confirm" ) and ...
0
votes
3answers
428 views

Steam with Wine having bug with popups

I'm on Arch Linux 64 bits running Steam on a 32 bits Wine and whenever Steam opens a popup, it starts gliding towards the lower right corner, only stopping when I hover it with my mouse and ...
9
votes
1answer
801 views

What happens when I do “cat debian.iso > /dev/sdX”?

I'm creating a live-USB and don't understand precisely: what happens when I copy a file (or even a file system) directly to a device node (as opposed to a file system)?
3
votes
1answer
7k views

Dual graphics cards in Mint & Ubuntu

I have a triple boot machine with Windows 7, Mint 13 (with XFCE) and Ubuntu 12. Only under Windows 7 does my second screen attached to a second graphics card come on. Under both Mint and Ubuntu, the ...
3
votes
2answers
3k views

Bridge not working

We want to create bridge (mybridge) on our board over eth0 and eth1 interface. The board runs Linux 2.6.34.9. Following are the commands: brctl addbr mybridge ifconfig eth1 0.0.0.0 ifconfig eth0 ...
1
vote
1answer
1k views

How to bind “Ctrl-Alt-b” to the prefix of tmux?

Tmux uses Ctrlb as its prefix, but Ctrlb conflict with Emacs. I want to bind CtrlAltb to tmux's prefix. I guess it may be C-M-b but didn't work...
1
vote
1answer
550 views

Unwanted text highlighting in Vim latex-suite

I have installed vim latex-suite. Whenever I type$$ to get inside math mode, as a side effect, it also highlights the last search term using /exp. What has caused this and how can I avoid this ...
0
votes
1answer
165 views

Using USB hub for keyboard and mouse in multiseat

I want to configure a 2 user multi-seat in Linux. Is it possible to configure keyboard and mouse for second seat with a USB hub on a single USB port or I need to connect each of them to a separate USB ...
1
vote
0answers
113 views

Flash videos turn to gray box with light gradients on edges

As explained in the title .. it started happenning since installation of new openSUSE and it looks quite bizarre, see below for a shot from blip.tv. It happens usually after few minutes of watching ...
0
votes
0answers
596 views

I ran rm -rf. Need to recover files [duplicate]

Possible Duplicate: How to recover a file just deleted How to undelete/restore the deleted files in ubuntu linux I ran $rm -rf on a machine by mistake. But it wasn't as a super-user, so ...
5
votes
1answer
4k views

Find processes using a network interface

I'm trying to find a way to safely shutdown a network interface, i.e. without disturbing any processes. For this I need to find out what processes are currently using that interface. Tools like ss, ...
9
votes
2answers
13k views

How to get good (Windows-like) font rendering on Linux Mint KDE

I'm using Linux Mint 13 KDE. I installed a TrueType font that I have and like (Arrus BT). I've noticed that the font rendering is noticeably worse on Linux. If I set hinting to none or slight, the ...
1
vote
1answer
788 views

Regular expression how to get value in shell script?

I have to write a shell script to get value from a string, something like: string="abcdef" pathName How can I use grep command with the use of regular expression to get "pathName"?
5
votes
2answers
5k views

How can I send single file to multiple remote sites at the same time?

Can scp be used to send a single file to multiple remote servers at the same time? If so, how? If not, what's the alternative?
16
votes
2answers
7k views

Can I watch the progress of a `sync` operation?

I've copied a large file to a USB disk mounted on a Linux system with async. This returns to a command prompt relatively quickly, but when I type sync, of course, it all has to go to disk, and that ...
3
votes
1answer
496 views

limit stdout to terminal output speed [duplicate]

Possible Duplicate: How can I limit the output speed of stdout? What's the easiest way to limit the speed at which stdout is output in a terminal, so that, for instance, tail -f outputs ...
0
votes
1answer
2k views

Unable to control audio volume in BackTrack5 R2

I have Backtrack5 R2, one of the several problems I have is the audio works but I cannot control the volume, it is always the same and it's very annoying. What can I do to fix this?
5
votes
2answers
13k views

“cannot remove 'some_directory': Directory not empty”

I tried to delete some directory, but $ rm DE.aspx_files -r rm: cannot remove `DE.aspx_files': Directory not empty But listing its content returns none $ ls DE.aspx_files $ Added: Actually $ ...
9
votes
1answer
5k views

piping strace to grep

I'm trying to run strace trough ccze, and the pipe doesn't work as expected. The command-line I'm running to test is sudo strace -p $(pgrep apache2) | grep open, and all lines are output, ignoring ...
2
votes
0answers
755 views

Sudo yum permission denied Fedora 17

On Fedora 13, in /etc/sudoers I used to have a line: Cmnd_Alias SOFTWARE=/usr/bin/yum and then for a user that would have the privilege of installing his/her own RPM packages, an entry like: ...
5
votes
1answer
1k views

'watch'-ing curl yields unexpected output

I'm trying to watch curl for live feedback on HTTP tweaks. However, when I execute the command, the output is garbled with some download stats. I've tried sending curl's stderr to /dev/null, to no ...
1
vote
2answers
890 views

Parsing the output of date with sed

I am trying to replace the whitespaces in the output of date with '_' with no success. $date Fri Sep 14 14:10:04 EDT 2012 $ date | sed 's/ /_/' Fri_Sep 14 14:10:24 EDT 2012 As you can see, the ...
7
votes
2answers
659 views

How can I switch 2 characters in vi?

I like the fact that I've memorized ddp for switching two lines (i.e. dd deletes the line and then p puts it back '1 higher'). Is there are similar set of keystrokes for switching 2 characters so ...
7
votes
3answers
2k views

Run Script once a day with systemd

I want to run a backup script 10 minutes after booting up my machine but only once a day. Is it possible to build up such scenarios with systemd?
5
votes
3answers
14k views

Recovered deleted files on Mac by command line

I accidentally deleted a file by running: rm -rf ./Desktop/myScript.sh I think it's possible to recover the file, because the rm command removes temporarily. How can I recover the deleted file on ...
3
votes
1answer
503 views

How do I push a Mercurial repository to BitBucket over ssh? [closed]

I created a public key for ssh and registered that key with BitBucket. I then attempted to push: $ hg push ssh://jhayward@bitbucket.org/johncharrell/[project name] pushing to ...
7
votes
3answers
2k views

Create a Random ISO Image Using dd

I would like to create a ISO file for testing optical drives with the method mentioned here. I want to create an ISO file filled with random data, so I can burn it to a CD, read it back and compare ...
1
vote
3answers
2k views

Ignoring “print banner page” flag in inbound LPD jobs (CUPS-LPD)

I have a USB inkjet printer connected to a server running CentOS 5.7 (64). I installed and enabled cups-lpd so that another Unix server could send print jobs to that printer. The other Unix server ...
2
votes
1answer
82 views

Expand pattern under cursor to all files matching it

Is there anyway to let VIM expand the glob pattern to all files that match it? e.g when I type *.c, and press some key, it would become a.c b.c
1
vote
1answer
101 views

Redirection doesn't show up as an argument to a sourced script

My problem is that I can't print to the screen when I write a bash script . myBashScript.sh < text.txt In myBashScript.sh I just print out echo $2 But instead of printing "text.txt", it ...
0
votes
1answer
3k views

Sharing Multiple Folders with Samba

How can I share multiple folders in Samba? If I use mutiple [public] sections in smb.conf only the last 1 has effect. Then if I try to name each section differently, I samba doesnt seem to recognize ...
4
votes
4answers
6k views

My audio device not working

I have been setting up a new CrunchBang Linux and my sound doesn't work. When I type lspci -v command and alplay -l command in command prompt I can see that my sound card is connected and detected. ...
4
votes
2answers
3k views

Check for updates of packages installed through yaourt

Is there anyway to update package installed with yaourt ? yaourt -Syu seems to do the same as pacman -Syu, which only care about package in official repository.

15 30 50 per page