Mark's Bookmarks

Index : Computers : Linux

Notes for and by me.

Main Services/Software:

Resources:


Running X-Windows at Startup

The file /etc/inittab will open. Within the first screen, you'll see a section of the file which looks like this:

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:

	      

To change from a console to a graphical login, you should change the number in the line id:3:initdefault: from a 3 to a 5.

Killing Processes: /etc/rc.d/init.d has startup and stop scripts (for RedHat). Or kill pid.

What's Running: use ps -aux to list all the running processes. ps pid where pid is the Process ID (found using the previous command, you get additional useless info).

Problems?: See the /var/log/messages file. Use tail -n XX /var/log/messages to see the last XX lines of the logfile. I've also setup an alias command for logtail and loghead for 25 lines each.

Commands:

You can type help, but it seems to be generally useless. You gotta know the commands. 

ls -al: like dir on DOS.

man - the manual pages

tail -n XX filename - the last XX lines of a file. main log is stored at /var/log

head -- same as tail but beginning

ps -A to see all processes.

kill XXX - to kill a process. to get a process ID (XXX), look in /var/run


last updated: 09/11/01 23:24:10 -0500
send comments to admin@noise.org