3
votes
1answer
206 views

A short tutorial on how a linux distro is organized and supposed to work

I need a tutorial , preferably with pics/diagrams to get oriented to how a typical Linux distro. is organized and used (including the basic software installation work flow). It shouldn't be a 500 ...
8
votes
1answer
89 views

sticking stickies to windows

I'm looking for a sticky notes/knotes/etc type program with one difference: I can stick a note on a window, rather than the desk top, and it will remain attached to the window. Basically, I want to ...
4
votes
1answer
421 views

How can I find out what my domain is for connecting with samba?

I am attempting to mount a password protected network share from a NAS unit that works by appearing as a windows share. On Windows, I just Map Network Drive, and enter in \\x.x.x.x\ShareName, then ...
3
votes
2answers
3k views

su vs su - (on Debian): why is PATH the same?

I know what should be the difference between su and su -, but in my system (debian testing) for example PATH is the same: [root]# su [root]# echo $PATH ...
5
votes
4answers
6k views

Can IFS (Internal Field Separator) function as a single seperator for multiple consecutive delim chars?

Parsing an array using IFS with non-whites space values creates empty elements. Even using tr -s to shrink multiple delims to a single delim isn't enough. An example may explain the issue more ...
51
votes
4answers
4k views

How do I know where to put things in linux?

Installing something in windows takes a click of a button. But every time I try to install something in linux, which is not found in APT, I get so confused. You download a zipped folder, then what? ...
7
votes
4answers
2k views

Debugging Linux machine freezes

I have 15 identical Linux RH 4.7 64-bit severs. They run cluster database (cluster is application level). On occasion (every month or so) a random box (never the same though) freezes. I can ping the ...
1
vote
1answer
742 views

Splitting stdin to different outputs in bash [duplicate]

Possible Duplicate: Is there a way in bash to redirect output and still have it go to stdout? How would I send /dev/stdin to both /dev/stdout and a $logfile in one command? One solution ...
2
votes
2answers
1k views

setting up mail system

So I'm still kind of new to linux, but what are the steps towards setting a linux box up in such a way that it can send mail using shell? echo "hello world" | mail johnny@moo.com I mean, I've done ...
2
votes
3answers
7k views

Grub does not list windows after crunchbang installation

I have a couple of years of experience with ubuntu, but this is my first time with a non-ubuntu based distribution. I managed to successfully install Crunchbang from a bootable usb stick, created with ...
9
votes
2answers
279 views

best way to set up separate linux environment in ~

I do most of my work (involves a lot of C/Python) on a development server that is shared with several other people. As a result we all seem to do a bit of the system administration chores (there is ...
1
vote
2answers
246 views

Odd problem regarding 'apt-get update'

I was having some serious network troubles, and now running sudo apt-get update gives this error: ... Hit ftp://ftp.is.co.za experimental/contrib i386 Packages Reading package lists... Error! E: ...
15
votes
4answers
7k views

Binary compatibility between Mac OS X and Linux

Brace yourselves, this question will likely appear naive and/or foolish, seeing as I am relatively new to the inner workings of unix like systems, and programming in general. Ready? Ok! I will go ...
66
votes
5answers
76k views

How to check how long a process has been running?

I would like to avoid doing this by launching the process from a monitoring app.
17
votes
1answer
998 views

Keymapping problem when working with Emacs and Openbox

I have an Apple keyboard and I had to do some remapping of the keys to make the mod-4 key the first key to the left of the Space bar for when working with Emacs. The below script worked fine when I ...
8
votes
4answers
2k views

Multiple Users on a Desktop Environment

This is probably a REALLY stupid question. But anyways, lets pretend we had a *nix rather powerful system... Now Obviously I know you can set up multiple users to login to a system.......but how ...
2
votes
1answer
2k views

Customized XDM-based login screen

I am in the process of creating a lightweight yet full-featured Linux disto and don't want to include a whole bunch of unnecessary or bloated software. It is supposed to run off a USB flash drive. I ...
6
votes
2answers
4k views

Write to a file without redirection?

I am writing a regular compiled application that needs to create a special file and write a magic cookie into it. I can’t write the file directly from the application, the system security model ...
2
votes
3answers
705 views

su and aliases confusion

I create an alias as my current user in the bash shell, which I can see using the alias command. When I switch user without the -, i.e. su testuser, the alias is not carried into the new user's ...
9
votes
6answers
9k views

date, get current 15 minute interval

Is there any way I can get the current 15 minute interval using the date command or similar ? e.g. something like date %Y.%m.%d %H:%M will give me 2011.02.22 10:19 , I need something that yields ...
2
votes
2answers
751 views

rsync via ssh from linux to windows sbs 2003 protocol mismatch

I am trying to backup my linux webserver to our local windows sbs 2003 server in the office. I have set up ssh and cwrsync on the windows server and have confirmed that the linux server can reach the ...
2
votes
3answers
4k views

Extracting tokens from a line of text

Using bash scripting and grep/awk/sed, how can I split a line matching a known pattern with a single character delimiter into an array, e.g. convert token1;token2;token3;token4 into a[0] = token1 … ...
11
votes
9answers
6k views

Compiling code from vim

New to vim and and I want to be able to compile code from within vim without running a new terminal and calling the compiler. How do I go about doing this? Note that this requirement is not ...
4
votes
3answers
546 views

Unix command that takes no arguments

Don't ask why, but is there a Unix command that takes no arguments?
8
votes
2answers
20k views

How to find out which Wi-Fi driver is installed?

I know about lsmod, but how do I figure out which driver does what?
2
votes
1answer
382 views

Wifi working after running Live Cd

I have been using Ubuntu 10.10, and the major problem was the wifi, which was not working at all. It worked in Ubuntu 9.10. So after many futile attempts I decided run a Live CD of Ubuntu 9.10, and ...
2
votes
2answers
560 views

How many entries are created when you make a new directory in *nix?

As per the question, I am thinking mkdir ~/a is either two or three: 1 entry for the dir it sits in (~/a) 1 entry for itself (cd a && ls .) and/or 1 entry for itself again (cd a && ...
4
votes
4answers
8k views

Linux distribution for the AMD Geode LX 800 (i586) [closed]

The manufacturer recommendfs RH9 (ugh) and many of the google search hits come up with comments from 2006/7 which detail xorg problems with the AMD video driver and I'm hoping someone here has had ...
4
votes
4answers
750 views

How to make functions created in a bash script persist like those in .bashrc?

My .bashrc was getting a little long, so I decided to break it up into smaller files according to topic and then call these files from within .bashrc as so #my long .bashrc file bash .topic1rc bash ...
3
votes
1answer
2k views

Is dpkg available for Cygwin?

I don't use Windows all that often, but I've found my self in a position where I'm stuck in front of one quite a bit temporarily. So I've been investigating Cygwin. My question is dpkg available for ...
1
vote
3answers
681 views

Alternative to Miro Video Converter for Linux?

Back in the Windows/Mac days, I used the wonderfully easy to use Miro Video Converter to convert videos I have into either the more open and Freerer Theora or WebM formats. Two problems: (1) No Linux ...
10
votes
2answers
9k views

Bash Script on Startup? (Linux)

Is there any way to make/run a bash script on reboot (like in Debian/Ubuntu for instance, since thats what my 2 boxes at home have) Also, any recommended guides for doing cron jobs? I'm completely ...
3
votes
2answers
836 views

Using grep/sed/awk to classify log file entries

I need to process a very large log file with many lines in different formats. My goal is to extract unique line entries who have the same starting pattern, e.g. '^2011-02-21.*MyKeyword.*Error', ...
9
votes
2answers
400 views

vim: Can I make *only* y perform a copy?

I'm learning to like vim, but one thing that I haven't yet fully embraced is the copy and paste situation. In a muggle text editor I would Ctrl-C copy a piece of text and then edit/delete and then ...
2
votes
4answers
1k views

Lightweight MS Paint/MacPaint equivalent FLOSS in Linux?

What is an equivalent to MS Paint and MacPaint that works on Linux? There is a BSD-licenced one called Paintbrush that's great for Mac OS X, but I have not found one on Linux. I hope it can be ...
1
vote
1answer
524 views

How can I get real-time information about monitor plug/unplug events?

When I connect or disconnect the USB device, udev shows/monitors that event. But udev is not enough smart to detect the plug-out or plug-in of the monitor. Is there any way/tool/utility from which I ...
1
vote
2answers
1k views

How to set default APT source

Running cat /etc/apt/apt.conf gives: APT::Default-Release "stable"; I thought doing that would disallow the command apt-get install wajig to work, if a newer version was available anywhere but ...
7
votes
1answer
811 views

Is there a tool that hooks to two directories and synchronizes them as soon as something changes?

I have huge simulation directories on the two machines server and on cluster which I want to keep synchronized. The basic situation is that files rarely change but when a simulation is done many big ...
2
votes
1answer
83 views

Where is the setting that sets Experimental repo to lower priority?

Suppose that I have enabled Experimental in my "/etc/apt/sources.list". When I need to install anything from it, I have to explicitly specify on the command: apt-get install wajig # vs apt-get ...
11
votes
4answers
2k views

Should I include a trailing slash / in a symlink to a directory?

Symlinking to a directory gives to different results with ls -l depending on whether I ln -s dir or ln -s dir/. But what's the actual difference, and which one should I prefer why?
3
votes
1answer
2k views

ps command not giving output in home directory

I am logging into a solaris server, switching to bash, then switching to another user "sruser" and switching to bash. /home/batch/sruser/ is the home directory of the user "sruser". The issue is ps ...
1
vote
3answers
4k views

Reading EDID from EEPROM

From the link: http://en.wikipedia.org/wiki/Extended_display_identification_data The EDID is often stored in the monitor in a memory device called a serial PROM (programmable read-only memory) or ...
9
votes
1answer
8k views

Output of the “last” command

Can anybody explain me what is the meaning of the last column of the output of the last command? I'm particularly interested in its meaning with respect to the reboot pseudo-user. reboot system ...
6
votes
2answers
11k views

Is it possible to su without being prompted for a password?

I suspect su doesn't have any way to allow passing the password from the shell instead of being prompted for one, for security reasons (couldn't find anything in the MAN). Is this true?
11
votes
2answers
2k views

What's the purpose of the first argument to select system call?

From man select int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); nfds is the highest-numbered file descriptor in any of the three ...
3
votes
1answer
4k views

Default File Permissions - Ubuntu & VSFTPD

I have a server setup with Ubuntu, Apache2 and VSFTPD. We virtual host several sites on this machine. Typically, I use the same process to set up the new sites, but the default permissions for some ...
8
votes
2answers
905 views

How can I use $var in a shell brace expansion of a sequence?

I want to use $var in a shell brace expansion with a range, in bash. Simply putting {$var1..$var2} doesn't work, so I went "lateral"... The following works, but it's a bit kludgey. # remove the ...
2
votes
2answers
1k views

Why did 'apt-get install ffmpeg' fail?

I dont understand how or why apt-get install failed. It mentions ssmtp which is simple smtp which i use to send mail from my server to my google apps account. I dont understand what is wrong or how to ...
23
votes
3answers
25k views

Find the owner of a directory or file, but only return that and nothing else

I am looking for a command that will return the owner of a directory and only that--such as a regex parsing the ls -lat command or something similar? I want to use the result in another script.
1
vote
1answer
1k views

Mod_Auth_MySQL will not compile under Slackware 13

I tried to add the auth_mod_auth (3.0.0) module to my Slackware 13 (apache 2.2 & MySQL 5.0) system. I ran the usual command line for apxs (as mention in the BUILD file) apxs -c -L/usr/lib/mysql ...

15 30 50 per page