20
votes
5answers
16k views

How do I completely disable an account?

How do I completely disable an account? passwd -l will not allow anyone to log into an account using a password but you can still log in via private/public keys. How would I disable the account ...
9
votes
2answers
860 views

date - years prior to 1901 are treated as invalid

I have date (GNU coreutils) 7.1 installed on my system. If I try to check dates prior to 14-Dec-1901, I get an "invalid date" error. For example, $ date -d 1901-12-13 date: invalid date ...
0
votes
1answer
582 views

can ping, can't connect by IP - resetting the network fixes it briefly, then it breaks again

I've got one server (CentOS 5), out of a half dozen, that the network flakes out on. When it's 'dead', I can still ping other servers by IP, but if I try to make any kind of connection also using an ...
4
votes
1answer
4k views

How can I log samba events?

How can I log samba events? I have samba-shared directories and I want to know what exactly someone have download from it. Actually, I can watch iftop to figured out WHO have downloaded, but not ...
1
vote
1answer
686 views

CCD cam to USB - AV grabber for linux

I was wondering if there is an AV Grabber that supports Linux. I have IC-348 model I.C.U (international camera unit) camera made in P.R.C, which uses a Sony CCD 420TVL. I want to grab the video output ...
11
votes
1answer
1k views

What is the difference between “extended” partition and “logical” partition

What is the difference between "extended" partitions and "logical" partitions on my hard disk? What's the need for each? I am using Linux
3
votes
1answer
271 views

`man ascii` is misaligned when using vim as a pager

To use Vim as a pager for man I have export MANPAGER="/usr/share/vim/vim73/macros/manpager.sh" in my profile. Now man pages look very good with colors and stuff. However, when trying man ascii as a ...
2
votes
2answers
344 views

Linux installation on an extended drive related

I just want to install another version of same distro linux into the extended partition, i. e. into the /dev/sda7. Does it make any problem into current Linux and its data and contents? If no, I ...
4
votes
2answers
2k views

Remapping caps-lock to escape, and menu to compose, on the linux console

When running X I use a .xmodmaprc to remap certain keys thusly: ! Make it so that both Caps Lock and Escape do Escape clear Lock keysym Caps_Lock = Escape ! Remap the menu key as Compose keysym Menu ...
6
votes
4answers
3k views

Copy a File From One Zip to Another?

I have a file named 'sourceZip.zip' This file ('sourceZip.zip') contains two files: 'textFile.txt' 'binFile.bin' I also have a file named 'targetZip.zip' This file ('targetZip.zip') contains ...
1
vote
1answer
129 views

Reroute one URL

I am looking to reroute one particular URL to another, for example : http://website.com/page1.html to http://website.com/page2.html on a third party server only on my machine. But I still want it to ...
12
votes
2answers
7k views

Linux: Writing a watchdog to monitor multiple processes

A few years ago, a coworker came up with an elegant solution for a watchdog program. The program ran on Windows and used Windows Event objects to monitor the process handles (PID’s) of several ...
5
votes
2answers
1k views

How does bash interpret the equal operator with no surrounding spaces in a conditional?

The following script does not behave as I would have expected. Adding spaces around the '=' in the conditional made it perform how I wanted, but it got me thinking, what is it actually doing inside ...
3
votes
5answers
3k views

How to check accurately the remaining disk space on a partition?

I have my /home partition formatted as ext3. Occassionally, some program that is part of GNOME is giving notifications about there only being 700mb of space left. Nautilius tells me I have 5.6GB. Disk ...
4
votes
1answer
4k views

How to do a binary install of Python 2.7 on SUSE Linux Enterprise Server 11?

My SLES11 box came with Python 2.6 installed. I would like to upgrade to 2.7. What is the easiest way to do this?
2
votes
1answer
1k views

Download and install latest deb package from github via terminal

I would like to download and install the latest .deb-package from github (https://github.com/elbersb/otr-verwaltung/downloads to be exact). How can I download the latest package (e.g. ...
0
votes
2answers
1k views

Installing multiple packages with one yum command

Is there a way to install 2 or more packages using one yum command yum install mysql php vsftp
1
vote
0answers
286 views

error booting the custom compiled kernel 2.6.37 on ubuntu 10.04 : gave up waiting on root device [duplicate]

Possible Duplicate: Kernel can't find /dev/sda file during boot Hi, I know this is very common problem and there are many threads discussing it. However after trying many solutions ...
1
vote
3answers
2k views

7z command line add file to a flat directory 7z file

I would like to compress file "./data/x.txt" to path "./data/x.7z". When running 7z a ./data/x.txt.7z ./data/x.txt The file "./data/x.txt" holds data/x.txt as opposed to just (what I want) ...
2
votes
2answers
1k views

How to build a long command string?

I've a sequence of commands to be used along with lot of pipings, something like this: awk '{ if ($8 ~ "isad") {print $2, $5, "SE"} else {print $2, $5, "ANT"} }' ...
6
votes
2answers
3k views

Edid information

I want to gather the Edid information of the monitor. I can get it from the xorg.0.log file when I run X with the -logverbose option. But the problem is that If I switch the monitor (unplug the ...
6
votes
4answers
1k views

vim search around line breaks

When I am editing a LaTeX document in vim, often times I want to search for a phrase. Because I have LaTeX setup to wrap lines, sometimes half of the phrase will be on one line while the other half ...
9
votes
3answers
12k views

Does bash support forking similar to C's fork()?

I have a script that I would like to fork at one point so two copies of the same script are running. For example, I would like the following bash script to exist: echo $$ do_fork() echo $$ If this ...
18
votes
4answers
1k views

Why does Linux scale so well to different hardware platforms?

Why does Linux run well on so many different types of machines - desktops, laptops, servers, embedded devices, mobile phones, etc? Is it mainly because the system is open, so any part of it can be ...
7
votes
1answer
392 views

Why do some regex commands have opposite intepretations of '\' with various characters?

Take, for example, this command: find . -regex ".*\.\(cpp\|h\)" This will find all the .h and .cpp files in your directory. The period character '.' in regular expressions usually means "any ...
4
votes
3answers
343 views

What documentation shows the associated numbers for linux signals like SIGTERM and SIGKILL?

I can look around the internet and find that the associated number for SIGKILL is 9, but is there linux documentation (such as, a man page) showing the complete list of signals and their numbers?
1
vote
1answer
2k views

ImportError when running WSGI app in Apache: undefined symbol: PyUnicodeUCS2_DecodeUTF8

I'm trying to run MoinMoin under Apache on SLES 11P1. I'm getting the following error in my Apache log when somebody tries to access the site: mod_wsgi (pid=20772): Target WSGI script ...
2
votes
1answer
2k views

Simple example of using Fedora alternatives to install old version of make

Can anyone help me using the Fedora alternatives system in order to install an old version of make? I know the actual program is irrelevant, but I need it so I'll use it as my example. I currently ...
8
votes
2answers
2k views

Is there a tmux shortcut to go read only?

I've been using screen for years now as a way of ensuring that any remote work is safely kept open in after disconnects/crashes. In fact, as a matter of course, I use screens even when working ...
0
votes
2answers
2k views

How to run a shell script containing an awk command

How to run this script (called count.sh)? awk 'BEGIN{ x=0 ; while (x < 5) { x+=1 ; print x ; } }' I'm trying to run it with sh count.sh but it's giving me an error.
5
votes
1answer
684 views

How to stop application from being suspended by Ctrl+z?

Currently I'm running dvtm inside a terminal, and vim inside dvtm. When I press Ctrl+z intending to suspend vim, dvtm got suspended instead. I didn't have this problem with screen or tmux, so I think ...
15
votes
7answers
12k views

Faster way than ping for checking if computer online?

I'm writing a wake on lan script for a set of our lab computers. We have sqlite db with a list of the computer hostnames, IPs, and MACs and currently I ping each of them with '-c1' so it doesn't run ...
3
votes
2answers
2k views

Dual-boot OS X and Fedora

I'm trying to install Fedora (dual-boot) on a brand-new MacBook Pro. The live/installer CD runs flawlessly on the machine, which was a nice surprise. But after the install is completed, I cannot ...
4
votes
1answer
489 views

Difference between ' and " on command line (bash)?

I used to use '' and "" interchangeably on the command line, but I recently noticed that '$HOME/some/dir' is not expanded, while "$HOME/some/dir" is. I searched around a little bit and found that "" ...
3
votes
2answers
420 views

How do I profile the kernel?

I'm having issues with a kworker process during system boot and I'd like to get such a nice call graph like Linus Torvalds posted here. How would I do this?
-1
votes
1answer
1k views

Virtual packages like 'mono-common' can't be removed

Any ideas? I'm trying to install mono as per these instructions: http://blog.ruski.co.za/page/Install-Mono-on-Ubuntu.aspx I need to be able to run the second command apt-get remove mono-common but ...
11
votes
2answers
9k views

Run process with higher priority

I want to run mplayer with higher priority than any other processes, including the IO-processes. How can I do that?
11
votes
3answers
3k views

What file systems on Linux store the creation time?

Are there any (good known, reliable) file systems on Linux that store the creation time of files and directories in the i-node table? If there are, is the "changed" time replaced by the creation ...
4
votes
2answers
2k views

set umask to 0002 for sftp and scp

I want files sent to my server using sftp and scp to be group-writable. How can I do that? I tried using libpam-umask from http://wiki.debian.org/DebianDesktopHowTo but it didn't work. EDIT: Is ...
28
votes
7answers
43k views

Execute a command once per line of piped input?

I want to run a java command once for every match of ls | grep pattern -. In this case, I think I could do find pattern -exec java MyProg '{}' \; but I'm curious about the general case - is there an ...
14
votes
4answers
3k views

Some people told me FreeBSD is NOT Unix, is that right? Confused

Some people told me FreeBSD is NOT Unix, is that right? I'm confused. I checked some articles, but the expressions are pretty vague, and I need some clarification.
6
votes
2answers
994 views

Volume up/down function keys limited to gnome-volume-control “Unamplified 100%” level

Using GUI gnome-volume-control: Sound Preferences ---------------------------------------------------------------------------- Output Volume: [--------------+ ] ...
4
votes
1answer
470 views

Debian 6 installation DVD required

I just want to install the operating system and SSH printserver . I just burned the first DVD of the 8 avaible for the amd64 architecture. How many DVDs should i burn in order the operating system to ...
0
votes
3answers
279 views

Improving OpenOffice speed [closed]

I'm looking for some tips and tricks on how to improve the performance of OpenOffice on my desktop. Any ideas, tutorials or articles on this? Thanks in advance!
3
votes
2answers
1k views

I no longer have smart bash completion for normal user

I created a new user on our Ubuntu server and I no longer have the bash auto/smart completion (pressing tab once finishes your current phrase if possible. Two tabs give you a ls). Smart complete ...
3
votes
3answers
2k views

untar a directory of *.tgz files using a wildcard

I've got a directory that looks like $ ls Broad_hapmap3_r2_Affy6_cels_excluded.tgz DINGO.tgz GIGAS.tgz index.html IONIC.tgz passing_cels_sample_map.txt ...
7
votes
5answers
1k views

Dynamic Symlinks

I have built my app for different architectures and would like to create a "dynamic symlink" which takes me to the right version based on a variable. If the machine I am currently logged in to, is ...
4
votes
2answers
298 views

“Linux supports the dynamic loading of kernel modules. ”

I read in a book written by Robert Love that: Linux supports the dynamic loading of kernel modules. He said this is the difference between Linux and Unix, but I seem to recall there is also KLD ...
5
votes
1answer
9k views

Startup log file for RHEL?

When I start up my Red Hat box I see a progress meter in the center of the screen that has a button that says "Show Details...". When I click on this button, I see a console like screen that shows ...
6
votes
3answers
2k views

Using parallel on Ubuntu

I am having an issue trying to use parallel command on Ubuntu 10.04. I looked up the parallel documentation and few of the commands seem to run. In all cases I just get the command prompt back without ...

15 30 50 per page