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

-1
votes
3answers
9k views

How to remove gzip from Linux

I tried sudo aptitude remove gzip and it looked like it uninstalled but when I typed gzip at the terminal it still ran.
6
votes
6answers
1k views

Shutting down PC without killing SSH sessions

I have some heavy, long processes running on remote Linux machines. I use my laptop to SSH to these machine and run the processes from my couch. BUT, when I want to shutdown my laptop, I am in ...
1
vote
2answers
768 views

Cannot add default gateway

Getting the following error when trying to add a default gateway for eth1. # route add default gw 192.168.228.2 eth1 route: SIOCADDRT: Network is unreachable Can't figure out why.
1
vote
2answers
2k views

Linux decibel (max peak volume) limit

I just watched a movie and had to set the volume level quite high to get audio. I forgot to set the volume to the lower level it was at and started a trance music track and that literally made my ears ...
4
votes
5answers
2k views

Execute script before shutting down in Ubuntu

When I shut down my computer I want to show some pending tasks that I have to do before leaving the office. I have a local application to manage those tasks, so basically I just want to run a ...
1
vote
1answer
776 views

Writing a bash shell script for website backup

I am about to write my first shell script for backing up my server. These are the steps I have identified so far. Copy files to be backed up to /srv/backup/ run mysqldump and copy the file to ...
12
votes
3answers
8k views

How to diff large files on Linux

I'm getting a diff: memory exhausted error when trying to diff two 27 GB files that are largely similar on a Linux box with CentOS 5 and 4 GB of RAM. This is a known problem, it seems. I would expect ...
2
votes
2answers
588 views

Override global Python with local one on linux

I have installed a python interpreter to a user-directory on a system where I do not have root-access. This system has an older version of Python already installed. I want to make my local ...
2
votes
0answers
122 views

svnnotify occasionally produce garbage

I run svnnotify from a Subversion post-commit hook: #!/bin/sh RECEIVERS="\ -x medical@example.com=patients/ \ -x design@example.com=gui/ \ -x devel@example.com=trunk/haxe" ...
8
votes
1answer
6k views

Denyhosts keeps adding my IP address to hosts.deny

I have setup Denyhosts to run on my server, and have been using it succesfully for the last few weeks, to allow me to ssh into my server from my home dev machine. This morning, I accidentally typed ...
1
vote
1answer
796 views

converting from pdf to djvu

How do I convert a PDF book to djvu? I'm on linux kubuntu 8.04.
1
vote
3answers
119 views

Resources of minimized programs in Linux

When a program is minimized to the taskbar in Linux does it use less resources?
2
votes
4answers
3k views

Why isn't this smbmount attempt working?

I can successfully access one of our local samba shares, which is on a windows pc (called marina) as follows: $ sudo /usr/bin/smbclient \\\\marina\\resource_library <my password> ...
1
vote
1answer
331 views

untarred files on server has different owner

I am creating a tar gzipp'ed archive on my local machine (as user1) using the following commands: user1@devmachine:~/$ tar czpf dir.tar.gz thedirectory on the server, I untar it (as user 2) ...
2
votes
3answers
1k views

How do you kill a Xterm instance in Tiny window Manager using mouse pointer?

The only way I know is to use exit command to come out. Is there some way to close the Xterm windows using the GUI (the mouse pointer)? Killing a lot of windows would be easier that way. I am ...
0
votes
1answer
259 views

How to enable the libattr frature(abbreviated xattr) in linux?

I would use xattr in python, but found the xattr's keys() is empty, does that indicate the libattr feature wasn't enabled? I've learned the libattr feature is disabled in ext3/ext4 by default, but how ...
1
vote
1answer
530 views

Empty folder and kernel panic when trying to get SELinux working

I have very strange things with SELinux. My post may be will bit disordered, because I'm not completely understand what is going on. Before all the story, I had good and very stable Linux ...
2
votes
1answer
243 views

Ubuntu logwatch - is this cause for concern?

I am using Logwatch on my server, whcih is running Ubuntu 10.0.4 I saw the following line in the LogWatch report: Unmatched Entries pam_env(sshd:setcred): Unable to open env file: ...
0
votes
3answers
238 views

Data coming from the network is only partially transfered on Asus EEE 1001HA, Ubuntu 10.4 Lucid

My wife's netbook started behaving strangely lately. I dug around and found the following symptoms: web browsing: painfully slow (keeps "loading" pages; it might show something like half the Google ...
3
votes
2answers
1k views

How to highlight text in PDF files in Linux

Some pdf readers for windows allow you to highlight and type notes into PDF files. The pdf readers that I've seen for Linux only allow you to read pdfs. Are there any that allow you to highlight text ...
7
votes
2answers
2k views

netem for Mac OS X to emulate network latency and dropped packets

I'm looking for an open source/free network emulator tool that I could use on Mac OS X, to simulate a slow network connection, limited bandwidth and other network characteristics such as dropped ...
0
votes
2answers
127 views

How can I better manage my console windows?

I'm using Gnome/Debian and I'm constantly always opening new console windows ( I have my Windows key mapped to invoke gnome-terminal ). It's a bit frustrating because after a few hours of work I'll ...
1
vote
1answer
2k views

Ubuntu grub fails to start, error: out of disk

My computer has become quite strange the last days, last week grub stopped working and just halted at the grub prompt. I can manually start the system by writing insmod /boot/grub/linux.mod linux ...
3
votes
2answers
1k views

Linux - remap Ctrl-[ key

On Linux, the Ctrl-[ key combination appears to be equivalent to hitting the Esc key. I would like to define the Ctrl-[ as a shortcut in Emacs but I am unable to because by the time the keystroke gets ...
1
vote
1answer
204 views

How to clear stale hashed search path in bash?

Previously my bash script was pointing to /path1 but I moved it to under /path2, now if I do "type myscript" it's still pointing to /path1, how do I solve this?
9
votes
7answers
18k views

How to find the architecture of OS installed?

I'm using Core 2 Duo. So, from Intel website I found that it is 64-bit architecture CPU. Long back I've installed Ubuntu OS on this machine. But I'm not sure if I installed x86-32 or x86-64 version ...
22
votes
7answers
39k views

Which is more efficient - tar or zip compression? What is the difference between tar and zip?

I'm working in Linux environment and want to know about tar and zip commands. Which is more efficient - tar or zip? I also need to know the differences between the tar and zip commands. Can anyone ...
6
votes
1answer
3k views

How to deliberately introduce a delay for incoming UDP packets

I want each packet (that match iptables rule) to be delayed by some fixed time interval. How to to this? Preudocode: iptables -A INPUT -p udp <more conditions> -j DELAY --delay 50000 # delay ...
1
vote
1answer
724 views

linux swap disk priority

Let's say you have two swap disks, set up like this: swap1: priority = -1 swap2: priority = -2 Is this going to be any different from the following setup? swap1: priority = 47 swap2: priority = 10 ...
10
votes
4answers
5k views

Remove VIM search highlight

After a search I've done, all the matches for the respective query remain highlighted and it's annoying. This happens even after I close the respective file (normal behavior?). How to I remove this?
2
votes
2answers
173 views

how to protect hard disk data from a live cd? [duplicate]

Possible Duplicate: Risk to native OS from Live CD? when booted from linux live cd, all partitions of hard disk become accessible without any restriction. How to block this?
7
votes
2answers
9k views

Hdparm - Checking if a drive is spun down

Is there anyway to find out if a hard drive has spun down? I've been using the following command to spin it down after idle time: hdparm -S 120 /dev/hdX However im not sure it's working correctly ...
0
votes
2answers
620 views

Unable to install gnome-shell on Ubuntu Maverick 10.10

I run: mojo@mojo:~/Downloads$ sudo apt-get install gnome-shell Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. ...
6
votes
1answer
1k views

Can the volume change when I plug in headphones?

I want the volume to change when I plug in headphones, because my netbook's speakers are really quiet but the earbuds I have are really loud when I plug them in. I'm running Ubuntu Lucid Netbook ...
0
votes
1answer
747 views

Batch converting video from avc1 to xvid

I need a way to batch convert 720p video files from avc1 to xvid in Ubuntu 10.04. I'm not terribly concerned about file size, but I do wish to retain the picture quality as much as possible. I believe ...
1
vote
2answers
153 views

Questions on Windows performance against Linux [closed]

Many people claim that Linux (e.g. Ubuntu) has a lower memory footprint than Windows. Is this really true? E.g. between Windows 7 and Ubuntu. Furthermore, why does Windows take considerably longer to ...
2
votes
3answers
295 views

Being inside multiple window managers at the same time

I'm in Gnome but if I logout I can get to a menu where I can choose KDE as well as other window managers. The problem is I have a program that's running inside Gnome and I don't want to stop it. Is ...
7
votes
1answer
443 views

Printing transcript with ANSI escape sequence

Is there a way to print a transcript generated using script that is coloured using ANSI escape sequences while preserving the colours? I am on Mac OS X 10.6, but any tool that works on ...
1
vote
1answer
311 views

checking which window is active in a Linux script

In a Linux bash script I can do several things with windows using wmctrl but I'm trying to figure out how to determine what the currently active window is.
0
votes
1answer
221 views

rpm: what does the release number in `gpg-pubkey-<verstion>-<release>` stands for?

GnuPG public keys that are imported into the RPM keyring with: rpm --import PUBKEY_FILE can be queried with rpm -q gpg-pubkey-<key-id> For example the CentOS4 key: pub 1024D/443E1821 ...
1
vote
2answers
240 views

Unix (Gnu/Linux, Mac OS X) program or command to count HTTP connections made by a program

I have got a testing suite for an applications that performs lots of HTTP requests. This number changes each time you run the tests. Is there a Unix command or program that "listens" to another ...
10
votes
3answers
3k views

Getting information from an armored gpg public key file

When given a file with an armored public GnuPG key, i.e. a file (pubkey.gpg) that was created with: gpg -r 0xDEADBEEF --export --armored > pubkey.gpg What is the best way to get information such ...
1
vote
1answer
2k views

How change linux swap disk priority permanently

I'm using two swap disks. Changing the order they are in in /etc/fstab and using "pri" in fstab doesn't have any effect. This is what it looks like /etc/fstab #swap on other disk ...
5
votes
3answers
17k views

Find where a program is installed in Linux

After installing a program using a package manager where is the information about where the program was installed and in which menu category it can be found.
1
vote
1answer
3k views

How to use uname -r

Some instructions say to put 'uname -r' into terminal commands. Is this supposed to be automatically converted by the system to something else? It doesn't get converted to anything on my system. uname ...
0
votes
1answer
3k views

Samba shared folder and permissions (CentOS 5.5)

I have set up a samba shared folder /shared I have created 2 users Jack and Jill, and they are part of the Developers group. Developers have read write and execute permissions on the /shared ...
4
votes
5answers
4k views

Which linux distro to run on a slow SSD?

I bought an Eee PC 1000, the Linux SSD model, a couple years ago. I ended up putting Easy Peasy (then called Ubuntu Eee) onto it, only to be dissatisfied with the speed. Then I put Windows XP on it, ...
5
votes
2answers
1k views

GNU Screen — horizontal scrolling

I've been trying to figure this out -- the goal is to scroll horizontally in GNU Screen. (In order to avoid ugly line wrap in the result of CLI mysql queries.) If you do: screen -h 5000 # 5000 lines ...
3
votes
1answer
184 views

finding surrounding lines with grep

I know how to use grep to output a line that matches a string. But what if I also want to output one line above every line containing a matching string, how do I do that?
0
votes
1answer
138 views

Which Linux directories to backup for sound

One time my sound card was no longer detected and the only way to get it working again was to reinstall Linux. I want to avoid having to do this by backing up important files for sound so that if the ...