Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

3
votes
3answers
85 views

Zip file structure in Linux

I have a file in folder/football.jpg that I want to zip. So I zip with the command zip folder/football_zip folder/football.jpg It works, except that the Zip file contains the folder folder, which ...
1
vote
3answers
3k views

Linux - Watch a folder and run a command when a file exists

On Debian Squeeze, I'd like for ctorrent to automatically open in a screen session if a new torrent file is placed in a particular folder (/home/torrent). Is there an easy way to, in a script, watch ...
21
votes
1answer
90k views

How can I add Linux to the new Windows 8 boot manager?

Which OSes can be put into the new bootloader that Windows 8 provides? It seems to be quite pretty and consistent with the rest of the new Windows 8 design, so it would be cool to put Linux (Ubuntu) ...
0
votes
2answers
2k views

/etc/init.d/networking start errors with “network stop:waiting”

System: I'm on a BT5r3 image atop of VMware Fusion 5 on OSX 10.7.4 I spin up the VM, login, run startx, then hop in a terminal to run service networking start. I have just one interface configured in ...
1
vote
2answers
141 views

Rsync to take the newest file. And a cron job?

I have a log file on two different servers. The servers are under a load balancer so half the traffic goes to one server, and half the traffic goes to the other server. I need to take the newest log ...
0
votes
1answer
26 views

Account not getting completed deleted within linux

I've got a nas box running some flavour of linux 2.6.31.8.nv+v2 with an arm processor. It has got a samba share called 'all' that has full read write access to everyone. However one Windows machine ...
0
votes
1answer
161 views

Configure Mouse Middle(Wheel) button to bring behind window in focus

In Ubuntu, whenever you press the middle scroll wheel of the mouse at top of a window, it brings the window immediately behind the current window into focus. How can this be done in Windows 7?
0
votes
2answers
469 views

Can't dualboot Windows 8 with Linux on separate drive

I have two hard drives, one has Linux on it, the other one is empty(the MBR was also cleared with dd). When I try to install Windows 8 on the empty hard drive I get this: note: not my actual ...
1
vote
2answers
118 views

Installing linux on computer with Marvell adapter

I recently reinstalled my computer and decided that I want to have a native installation of Linux side by side with windows (got tired of VMWare). The thing is upon installation (Debian) everything ...
0
votes
1answer
166 views

Boot from a OS on a separate partition via Plop boot manager? [duplicate]

If I install a linux OS on a separate partition, would I be able to boot that partition using VMWare (via Plop boot manager)?
0
votes
1answer
244 views

Shift+Alt key combination blocks input in terminal (Ubuntu 10.04)

I have a weird problem with polish accents on Ubuntu 10.04 in terminal (no X server). When I try to type big letter Ł, it works when it is typed by pressing right Alt+Shift+L. BUT when you press Shift ...
3
votes
2answers
980 views

Can't use VirtualBox shared folder as Apache document root

Having jumped through several hundred hoops I've finally managed to get Centos 5.8 to mount a VirtualBox shared folder (which is not read-only), which now appears at: /media/sf_sites This is a ...
-2
votes
1answer
361 views

IP tables gateway

I am trying to make an iptables gateway. I ordered 3 dedicated server from my hosting company all with dual nics. One server has been given all the ip addresses and is connected directly to the ...
3
votes
1answer
3k views

How do I download a magnet link in ctorrent?

Enhanced ctorrent apparently supports magnet links. How do I download from a magnet link using ctorrent?
2
votes
2answers
2k views

Cloning to a smaller hard drive with DDRescue

I am currently working with a 700 GB Seagate hard drive that's beginning to fail. I'll call this "SDB" from now on. I'd like to clone it while I'm still able to. However, the only hard drive that I ...
5
votes
6answers
9k views

How to cleanup tmp folder safely on Linux

I use RAM for my tmpfs /tmp, 2GB, to be exact. Normally, this is enough but sometimes, processes create files in there and fail to cleanup after themselves. This can happen if they crash. I need to ...
1
vote
3answers
612 views

Grant permission to output redirection with sudo in Linux

I try to put value "1" into some virtual file of /proc, and I get "permission denied" despite using sudo: name@comp-name:/etc/dhcp$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward bash: ...
0
votes
1answer
304 views

.tar file currupted when copied to Windows using FTP

I have a Windows 7 host and an Ubuntu virtual machine; the VM has a bridged adapter. I created a .tar file in Ubuntu using this command: tar -cf name.tar /path/to/dir/ I have FileZilla FTP server ...
1
vote
2answers
6k views

Where is php executable on Ubuntu?

I have installed apache and php. I know php works as I have tested a simple php file on apache server. I'm writing a simple webserver which should be able to process php files. So what I want to do ...
1
vote
1answer
154 views

How to find out if root read some of my files in the home directory?

I have one non-privileged account on a Linux server and I don't want root to read my documents. How do I find out if root did something I don't want to happen? This issue is not the same as Super ...
0
votes
2answers
473 views

Installing php on Ubuntu 8.10; package not found?

I'm new to linux. For some work I need to install php but not necessarily apache as I'm using my own webserver. I'm using Ubuntu 8.10. But when I try to install php I get the following error. ...
1
vote
1answer
143 views

What value do I pass to `xrandr --output`?

I wish to add a new modeline using xrandr, however when I want to switch to the new modeline, I am asked to provide --output. The manual page doesn't explain where I can get my options from. So how ...
0
votes
1answer
63 views

Unable to view users and groups

I am using Centos5 running on a VMWare but whenever I choose to open the User Manager menu from System->Administration, an error message always displays The user database cannot be read. This ...
0
votes
2answers
1k views

launch wireshark in linux

I have wireshark-1.2.15-2.el6_2.1.x86_64.rpm installed on CentOS. I was hoping to see a command like "wireshark", but couldnt find it. How do i launch wireshark? After querying the rpm, following ...
0
votes
2answers
216 views

Chroot error on 64bit architecture

I am running the following command on a 64 bit debian system. chroot /xyz/abc update-rc.d ec2 start 2 3 4 5 I get "chroot: failed to run command `update-rc.d': Exec format error". I dont get this ...
1
vote
0answers
713 views

Full HD video playback acceleration with mplayer on Ubuntu Lucid

I know that for an NVidia card I can sudo apt-get install nvidia-current mplayer, reboot, and then use mplayer -vo vdpau -vc ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau FILE.mkv to get ...
0
votes
1answer
1k views

(SOLVED) Can't access Ubuntu server by ip

I've installed Ubuntu (both desktop and server, newest releases) on VirtualBox virtual machines. They are working, all services is running (apache2, mysql, php, xrdp, ssh...), i can even open apache2 ...
1
vote
3answers
3k views

Is there a command to determine the compression ratio of a tar.bz2 file?

I have a file.tar.bz2 that's about 50GB and would like to extract it however I don't know how much space I will need. Is there a command to print the compression ratio of the tar.bz2 file?
1
vote
1answer
392 views

Using awk/nawk, how to find out max and min contributions and printout those values?

Using awk/nawk, how can I find max and min contributions and print those values? Input file: Name: Phone:1st:2nd:3rd contribution Mike Harrington:(xxx) xxx-xxxx:250:100:175 Christian Dobbins:(xxx) ...
0
votes
0answers
224 views

Post raid5 setup reboot shows single hard drive failure on ubuntu 12.10?

I just set up raid 5 on linux using three HDDs as per a guide. It all went fine until when I rebooted I got the following text: http://i.stack.imgur.com/Zsfjk.jpg. Does this mean one of my HDDs has ...
3
votes
1answer
507 views

How do I prevent my computer from freezing when it starts to swap?

I work as a Java programmer, so I often have to run several programs at the same time that consume a lot of memory. When my memory is full and Linux starts swapping, my computer almost completely ...
1
vote
0answers
686 views

Ubuntu 12.10, Unity, AMD 12.11 beta drivers, AMD APP SDK 2.7 and OpenCL detection of multiple gpus

I'm using Ubuntu 12.10, AMD 12.11 beta drivers, AMD APP SDK 2.7 and OpenCL. I have three amd radeon 7990s plugged in each of which are a dual 7970 so I have six gpus altogether. I plan to go up to ...
4
votes
3answers
4k views

Linux: Copy all files by extension to single dirrectory

I am trying to copy all *.tif files from ./old to the ./new. In ./old i have lots of subdirs with different files, and in ./new i need only TIF files, without folder tree. So, I had tried cp -vR ...
2
votes
2answers
2k views

sudo, runuser, su don't work as I expect when run as root with command as “echo $HOME”

When I run these commands it outputs as shown. /root $ sudo -u someuser -i "echo $HOME" /root $ runuser -l someuser -c "echo $HOME" /root $ su - someuser -c "echo $HOME" /root What i expected ...
0
votes
1answer
70 views

Find out information about installed hard- and software using the terminal without admin rights

I have access to a remote server, to which I login via ssh. I don't have admin rights, but I like to find out as much as possible about the machine, among other things to see If I get what I pay for. ...
6
votes
2answers
4k views

Why does Ubuntu require restart to complete updates?

I have heard that Linux machines can run for months without restarting. Why then does Ubuntu say "Restart required to complete updates..." after installing updates? Linux and UNIX users brag about ...
2
votes
1answer
923 views

XEN dom0 network Bridge has no connection to domU's

I am using Debian wheezy with XEN 4.1. I have two network bridges xenbr0 and xenbr1. xenbr0 is linked to the real-eth0-nic so the domU's can talk to the outside world, which worked fine. xenbr1 was ...
0
votes
1answer
267 views

Why does a new terminal get automatically closed?

Every time I open a new terminal it gets automatically closed. I'm running Arch Linux, and Xforce4 terminal. $ terminal --execute sudo arpspoof -i $(cat var.log|awk '{print $1}') \ -t ...
0
votes
1answer
116 views

How to remember rTorrent queue after program quits

I'm trying to make rTorrent remember its download queue when the application is closed, and continue downloads after the program is opened up again. This tutorial has answered all of my questions but ...
7
votes
1answer
2k views

Changing the Mod key in Awesome WM

I tried to change the mod key in awesome from the windows key to either Pause, Scroll Lock, and Escape. For all keys I tried to change the entry in the rc.lua configuration file; I tried to use ...
0
votes
1answer
684 views

Linux system cannot find RAID 10 md device after reboot of the system

I ran these commands: $ sudo mdadm --verbose --create /dev/md0 --level=10 --chunk=256 --raid-devices=4 /dev/sdh1 /dev/sdh2 /dev/sdh3 /dev/sdh4 $ echo 'DEVICE /dev/sdh1 /dev/sdh2 /dev/sdh3 /dev/sdh4' ...
0
votes
2answers
2k views

Grub installer has been deleted in ubuntu

I was installing an operating system (Fedora) in Virtual box which was installed in the Ubuntu Natty Narhwal. it asked me to format the disk (which should format inside virtual machine), which I did ...
2
votes
1answer
519 views

Script to verify a signature with GPG

You can feed GPG a file that has been signed and it will spit out a "signature is good" message, and save the plaintext: [gh403@shillig-arch ~]$ gpg test.gpg gpg: Signature made Thu Nov 1 14:19:08 ...
7
votes
4answers
2k views

encrypted backups for Linux and FreeBSD readable for both

I have a Linux and a FreeBSD computer, both encrypted (LUKS and geli respectively). I am wondering how to make backups that would also be encrypted and would be readable to both (so that if one of the ...
1
vote
1answer
112 views

How to make Puppy Linux save state automatically

I have Puppy Linux installed and booting from flash drive. If I pull the power instead of doing a normal shutdown I lose whatever hasn't been flushed from RAM. How do I make it so that any changes I ...
2
votes
1answer
110 views

How to call a program and exit from the shell (the caller) when program is active?

I want to run a program with GUI, by typing into konsole: foo args … and exit from the shell (that's the caller) when the program (foo) is active. How do I this? Is there a Linux/Unix built-in ...
0
votes
1answer
934 views

Couldn't install winexe-1.00, Python not found

When I was installing winexe 1.00, after [winexe-1.00/source4/]./configure I got the following message: checking for python2.6... /usr/local/bin/python2.6 checking for python2.6-config... ...
1
vote
0answers
149 views

How can I look at CPU utilization of a particular process across multiple CPUs?

I am trying to figure out (on Kinux) how to look at a single process and its CPU utilization on individual CPUs. In particular, I have an app server process running and I want to see how much of each ...
2
votes
1answer
161 views

Tail -f on files that don't exist yet

I have a program that for each run generates a new log file. To watch what's going on, I'd like to tail -f the log - only problem is that I don't actually know the file name in advance. So, is there ...
0
votes
1answer
163 views

On ubuntu how to create a directory path in one statement

On ubuntu is there a way to create a directory path in one statement? Lets say I have the dir /tmp/foo with no subdirectories, and I want to create /tmp/foo/bar/baz. mkdir /tmp/foo/bar/baz fails ...