1
vote
0answers
279 views

Can the background of the log-in screen of linux mint 11 change? [duplicate]

Possible Duplicate: How do I configure the GNOME gdm login screen? How can I change the background picture of the log in screen of linux mint katya?
6
votes
3answers
823 views

Piping into less and editing: “cannot edit standard input” error. Workarounds?

I recently learned that if I page my files with less, I can press v and open the buffer in Emacs. This works as long as I have the environment variable $EDITOR set up correctly, which in my case I ...
7
votes
2answers
3k views

diff where lines are mostly the same but out of order?

I want to diff two sets of mod_rewrite rules. The set of lines are about 90% identical, but the order is so different that diff basically says they are completely different. How can I see which lines ...
3
votes
3answers
23k views

How to ssh to remote server using a private key?

I have two servers. Both servers are in CentOS 5.6. I want to SSH from Server 1 to Server 2 using a private key I have (OpenSSH SSH-2 Private Key). I don't know how to do it over unix. But what I did ...
0
votes
3answers
1k views

Read first line of a command's output. Command connects me to a remote terminal

Part 1 Say I have a command my_command that outputs multiple lines. I would like to capture the first line of my_command's output as soon as it's ready in a script, while keeping my_command ...
1
vote
1answer
472 views

What unix certifications are available? Are there any self-taught?

I have a friend who is a Red Hat Certified Engineer. I also know there is the Linux Professionals Institute LPIC-1, 2, & 3. Are there other popular ones? How do I pick one to start with?
1
vote
2answers
9k views

How do I install Samba on Red Hat Linux?

I have just downloaded the samba-3.6.1.tar.gz file from the Samba website and want to install Samba on my RedHat Linux machine, I have extracted the contents of the samba-3.6.1.tar.gz folder but ...
6
votes
3answers
1k views

How does one open a new window from the shell with a specific size and position?

For example, say I wanted to start gnome-terminal with it's northwest corner at 0,0, and make the window 736x434 pixels (apparently the default, which allows for an an 80-character by 24-character ...
6
votes
2answers
23k views

Where does postfix store email?

I can't find any documentation on how postfix stores email. Where is it stored, and in what format? I'm using Ubuntu server 11
2
votes
3answers
2k views

Syntax error comparing floats with bc

I'm trying to use the comparison operator of bc and I'm getting a "syntax error on line 1 stdin" error. I need to use the comparison functionality within a korn script because korn doesn't handle ...
8
votes
2answers
5k views

How to check, which limit was exceeded? (Process terminated because of ulimit. )

Let's assume process runs in ulimited environment : ( ulimit ... -v ... -t ... -x 0 ... ./program ) Program is terminated. There might be many reasons : memory/time/file limit exceeded ; just ...
5
votes
2answers
472 views

How can I find out the estimated power use of my desktop computer?

Is there a way to get the computer power usage instead of battery load tracking (what for instance seemingly powertop does), which is obviously not too useful on desktops?
5
votes
1answer
601 views

Pipes vs process substitution

While trying the cat "$@" trick to read from either standard input or given files, it turned out that pipe and process substitution handle a missing trailing newline differently: printf %s foo > ...
3
votes
6answers
5k views

Trying to set date on a Linux based machine from another machine

I am running busy box on an embedded platform. I would like to set the date on the box properly each time I reboot the hardware. I have no way to save the time persistently, so am reduced to setting ...
6
votes
1answer
414 views

Embedded linux LCD not calibrated

I have attached a new LCD to my embedded Linux device and when I run the system I found that it is shifted to the right. (the display starts from the middle of the LCD) I found 2 frame buffer drivers ...
3
votes
2answers
622 views

How is FireFox running on a virtual machine that has no display?

I am using a Red Hat virtual machine, accessible only remotely. However when I use the top command, one of the displayed processes taking up the most memory is firefox, located at ...
2
votes
1answer
584 views

How do I hibernate my PC when I press the power button

Is there any way to make my PC hibernate when I press the power button? By power button I meant my CPU's power button. Obviously when I press this button somewhere some signal is sent which I don't ...
1
vote
1answer
757 views

Install Puppy Linux or “Damn Small Linux” on Pogoplug (~NSLU2) possible

I am thinking about buying Pogoplug (50 $) which is in fact a NAS server similar to the famous nslu2. Like the nslu2, this device can be hacked to have a full fresh Linux server running. There are ...
3
votes
3answers
6k views

What is metadata, and how does it aid in the “fsck” process?

If I understand it correctly, "fsck" is used in UNIX systems to check for internal consistency within disks after there has been a crash. I was wondering, then, how it uses "metadata" to make sure ...
2
votes
0answers
96 views

Hard links vs. Soft links: When would you want to use one over the other? [duplicate]

Possible Duplicate: What is the difference between symbolic and hard links? Today, my teacher talked about the differences between 'hard links' and 'soft links', but she never really ...
3
votes
4answers
5k views

How do I re-encode a mixed encoded text file

I've got a log file that is ASCII, except for a few UTF-8 characters (which I can fix for a future version). For the moment, I need to figure out how to get this file to a ...
2
votes
1answer
275 views

How to keep a line from being remembered in the history?

This is for a single line, not a command. I found the way to make it always prevent history for a single command. Thanks. EDIT: Sorry for the poor wording. Single line - For example, if I type, git ...
2
votes
1answer
126 views

History-search in zsh working only for commands?

Say I have the following entries in my command history: less documents/doc1.txt less documents/doc2.txt less files/file1.txt less files/file2.txt ls pwd and that I have the following keyboard ...
4
votes
1answer
1k views

What is the difference between /proc/self/stack and output from pstack?

I have been looking through the documentation for /proc and the "stack" object being a new'ish object in proc, I have also looked through the kernel commit to create it -- however the documentation ...
0
votes
1answer
446 views

Bash script doesn't TEE output to subdirectory

I've got a script that runs a number of curl commands by reading an input file line by line (each line has different curl parameters). I'm trying to tee the stnd out and stnd error of the curl ...
2
votes
1answer
551 views

There is no bash indicator prompt after a forked process terminates

I am reading the book Advanced Programming in the Unix Environment. There is a test program to test the fork function. It works well in my Ubuntu. But what I confused is that why there is no command ...
22
votes
1answer
25k views

For loops in zsh and bash

I have noticed there are two alternative ways of building loops in zsh: for x (1 2 3); do echo $x; done for x in 1 2 3; do echo $x; done They both print: 1 2 3 My question is, why the two ...
0
votes
1answer
154 views

How check which user plug in device

I have some rules for example: KERNEL=="sdb[1-9]", RUN+="some_script.sh" In some_script.sh how can I determine which user is plug in device.
1
vote
1answer
886 views

Switching runlevel when moving /var to another partition

I'm running Ubuntu 10.04 and I would like to move /var to another partition using a python script. I found some directions that I thought were pretty good, but they call for switching to runlevel 1 ...
1
vote
1answer
1k views

How to use bash control a keyboard

How to use bash command control a Keyboard. e.g. what is a command in bash for pressing ctrl+c, ctrl+l, etc..?
8
votes
3answers
4k views

How to add a custom timezone clock to an XFCE panel?

My local time is CET (Prague, EU), I also need to see UTC and, some times, MSK time. Can I add multiple clocks with different zones to a panel in XFCE? I know how to add multiple clocks, actually, but ...
3
votes
1answer
472 views

Audio file as an audio input device

I want to play an audio file over VoIP in order that people can listen to it with a phone call. One way to do this would be to set up the audio file as an audio device where the audio starts playing ...
2
votes
2answers
841 views

How to reattach USB thing after safely ejecting?

So, you just ejected your SD card with the 'safely eject' option (in my case in palimpsest GUI). Then you proceed with your deeds that required the device out of the computer, and are ready to insert ...
6
votes
4answers
3k views

Building paths robustly

Say I have several variables in a shell script (e.g. in zsh): FOLDER_1, FOLDER_2, etc. These variables refer to folders descending from /. For example, if I have a path /home/me/stuff/items the ...
1
vote
0answers
608 views

How can I tell if no_root_squash is enabled from an NFS client without mounting the share?

Obviously, I can look at /etc/exports on the NFS server-side to see if no_root_squash is enabled, but is there a way I can check this from the NFS client-side without actually mounting the share? ...
1
vote
2answers
601 views

Change Linux boot logo

I want to change the penguin logo that appears on boot. I looked into it and found this command: pngtopnm nelogo.png | ppmquant -fs223| pnmtoplainpnm > logo_linux_clut224.ppm But when I tried it ...
2
votes
1answer
576 views

Problem with maximizing windows on extended desktop (2 monitors)

I'm running Mint 11, with Compiz activated. I have extended desktop over 2 monitors. But I have issues when I need to maximize windows – it's stretched over 2 monitors, not inside one. I know ...
7
votes
1answer
6k views

Switch VI to use backspace key instead of Control+H for backspace?

I'm on Solaris 10 and by default vi version SVR4.0, Solaris 2.5.0 is installed. The system was set up so that when I ssh to it Control+H does backspace, and backspace outputs ^? I added stty erase ...
36
votes
4answers
4k views

Why are network interfaces not in /dev like other devices?

I'm mostly curious, but why aren't network interfaces in /dev? Are there any other kinds of devices that aren't represented as a node under /dev?
2
votes
1answer
1k views

How come my rtl8188cus device cannot connect?

I have a Edimax EW-7811Un usb wifi adapter, which uses a Realtek 8188cus chipset internally. I can use wicd to perform a network scan with the adapter, and it lists the networks correctly. But when I ...
1
vote
1answer
191 views

Can I use a third-party repository intended for an older version of Ubuntu?

I'm using Ubuntu 11.10 but some repositories i have been using don't support new version of Ubuntu. So, is there any danger in using, say, Ubuntu 10.10 ("Koala") repository for Ubuntu 11.10? May I, ...
4
votes
2answers
2k views

/etc/shadow date of last password change—UTC or local time?

man 5 shadow gives the following description of the third field in each line: The date of the last password change, expressed as the number of days since Jan 1, 1970. The value 0 has a ...
2
votes
4answers
1k views

gawk join two TSV by columns (a'la sql join)

How to join, to tsv files, examples: a.tsv c 7 r z d 6 s w f 1 f f b 8 p y a 9 q x b.tsv a q a c r ccc b p bb 0 0 0 d s dddd Here I'd like to ...
3
votes
1answer
4k views

ubuntu like lightdm in arch linux

I have just installed archlinux on a virtual machine and I managed to install lightdm by following the instructions given in https://wiki.archlinux.org/index.php/LightDM ...
11
votes
3answers
5k views

How to “send” variable to sub-shell?

I run the following script: VAR="Test" sh -c 'echo "Hello $VAR"' But I get : # ./test.sh Hello How can I "send" the variable VAR of my script to the shell created with sh -c?
3
votes
4answers
3k views

Increment number in bash variable string

VERSION="4.0beta12" NEXT_VERSION=????? Writing an automatic release script, I have the current version in a variable $VERSION, and I would like to calculate the next version as $NEXT_VERSION. Rule: ...
1
vote
2answers
155 views

How to change the interpret of a variable in `zsh`?

I set a variable TEMPP='-I ../dir1 -I ../dir2' then I run gcc -M $TEMPP somefile.c It seems not to include ../dir1 and ../dir2 in the search list of the include file, and if there is a space at the ...
2
votes
5answers
4k views

Why does the column command not align columns properly?

In another question I asked on how to hide all .pyc files when using ls, Ignacio suggested the following: This, as I mentioned above, doesn't work precisely, since the output is occasionally ...
2
votes
2answers
1k views

How do I show all files in a directory except those that have a certain extension AND display them in multiple columns?

Since I write in Python a lot it's kind of annoying to see .pyc files all the time and I would like to just hide them at this point. I tried the following, but I can't seem to figure out how to get it ...
14
votes
2answers
974 views

Manipulating X key and pointer grabs on the command line

What command line tools exist to list and manage X server grabs? (That's grab as in key and pointer grabs, i.e. restricting the use of a particular key or mouse button to a particular application, or ...

15 30 50 per page