Lithium: the crown pretender.
Lithium was first built up in 1997, to be used to run WIndows with. Until I came to my senses and went to back to DOS for using NetTamer... Then I replaced the Soyo mainboard for an Asus P5-99VM mini ATX board and a faster CPU. It has been waiting to be installed to be the main computer for over 4 years. And then someone else got to the throne. This computer should have been named 'Charles'....
| Property | Value | Unit |
|---|---|---|
| Brand | None | |
| Processor | AMD K6-II | |
| Frequency | 450 | Megahertz |
| Linux | Slackware 9.1 | |
| Minix | Minix 3.0 | |
| Oberon | Native Oberon gamma | |
| RAM | 144 | Megabytes |
| Drives |
/dev/hda = 40 GB HDD /dev/hdb = CD ROM /dev/hdc = 1.2 GB HDD /dev/fd0 = FDD |
|
| Ethernet | RealTek RTL 8129 board, 10/100 | Mbps |
| IP address | 192.168.56.3 | |
| Running since | Early 2002 |
Below, you will find the contents of the most important files for Hydrogen. These files are important for all computers and the settings are extremely hardware dependent. Read the files and use the things you want to try out on your machine.
/etc/fstab
/dev/hdb1 swap swap defaults 0 0 /dev/hda3 / reiserfs defaults 1 1 /dev/hdb2 /xdos vfat defaults 1 0 /dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0
/etc/profile
# /etc/profile: This file contains system-wide defaults used by
# all Bourne (and related) shells.
# Set the values for some environment variables:
export MINICOM="-c on"
export MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man
export HOSTNAME="`cat /etc/HOSTNAME`"
export LESSOPEN="|lesspipe.sh %s"
export LESS="-M"
# If the user doesn't have a .inputrc, use the one in /etc.
if [ ! -r "$HOME/.inputrc" ]; then
export INPUTRC=/etc/inputrc
fi
# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games"
# For root users, ensure that /usr/local/sbin, /usr/sbin, and /sbin are in
# the $PATH. Some means of connection don't add these by default (sshd comes
# to mind).
if [ "`id -u`" = "0" ]; then
echo $PATH | grep /usr/local/sbin 1> /dev/null 2> /dev/null
if [ ! $? = 0 ]; then
PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
fi
fi
# I had problems using 'eval tset' instead of 'TERM=', but you might want to
# try it anyway. I think with the right /etc/termcap it would work great.
# eval `tset -sQ "$TERM"`
if [ "$TERM" = "" -o "$TERM" = "unknown" ]; then
TERM=linux
fi
# Set ksh93 visual editing mode:
if [ "$SHELL" = "/bin/ksh" ]; then
VISUAL=emacs
# VISUAL=gmacs
# VISUAL=vi
fi
# Set a default shell prompt:
#PS1='`hostname`:`pwd`# '
if [ "$SHELL" = "/bin/pdksh" ]; then
PS1='! $ '
elif [ "$SHELL" = "/bin/ksh" ]; then
PS1='! ${PWD/#$HOME/~}$ '
elif [ "$SHELL" = "/bin/zsh" ]; then
PS1='%n@%m:%~%# '
elif [ "$SHELL" = "/bin/ash" ]; then
PS1='$ '
else
PS1='\u@\h:\w\$ '
fi
PS2='> '
export PATH DISPLAY LESS TERM PS1 PS2
# Default umask. A umask of 022 prevents new files from being created group
# and world writable.
umask 022
# Set up the LS_COLORS and LS_OPTIONS environment variables for color ls:
if [ "$SHELL" = "/bin/zsh" ]; then
eval `dircolors -z`
elif [ "$SHELL" = "/bin/ash" ]; then
eval `dircolors -s`
else
eval `dircolors -b`
fi
# Notify user of incoming mail. This can be overridden in the user's
# local startup file (~/.bash.login or whatever, depending on the shell)
if [ -x /usr/bin/biff ]; then
biff y
fi
# Append any additional sh scripts found in /etc/profile.d/:
for file in /etc/profile.d/*.sh ; do
if [ -x $file ]; then
. $file
fi
done
# For non-root users, add the current directory to the search path:
if [ ! "`id -u`" = "0" ]; then
PATH="$PATH:."
fi
/etc/hosts
# # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. Just add the names, addresses # and any aliases to this file... # # By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1 # should NEVER be named with the name of the machine. It causes problems # for some (stupid) programs, irc and reputedly talk. :^) # # For loopbacking. 127.0.0.1 localhost 192.168.56.1 hydrogen.fruttenboel hydrogen 192.168.56.3 lithium.fruttenboel lithium 192.168.56.4 beryllium.fruttenboel beryllium 192.168.56.5 boron.fruttenboel boron 192.168.56.7 nitrogen.fruttenboel nitrogen 192.168.56.8 oxygen.fruttenboel oxygen 192.168.56.10 neon.fruttenboel neon 192.168.56.108 scandium.fruttenboel scandium 192.168.56.31 gallium.fruttenboel gallium 192.168.168.123 mws.fruttenboel2 MWS 192.168.56.99 proton.fruttenboel proton # router # End of hosts.
/etc/hosts.allow
# # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided by # the '/usr/sbin/tcpd' server. # # Version: @(#)/etc/hosts.allow 1.00 05/28/93 # # Author: Fred N. van Kempen, waltje@uwalt.nl.mugnet.org # # ALL:LOCAL # End of hosts.allow.
/etc/hosts.deny
# # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # # Version: @(#)/etc/hosts.deny 1.00 05/28/93 # # Author: Fred N. van Kempen, waltje@uwalt.nl.mugnet.org # # # End of hosts.deny.
/etc/rc.d/rc.inet1
#! /bin/sh
# /etc/rc.d/rc.inet1
# This script is used to bring up the various network interfaces.
#
# @(#)/etc/rc.d/rc.inet1 9.1 Tue Aug 26 13:34:58 PDT 2003 (pjv)
############################
# READ NETWORK CONFIG FILE #
############################
# Get the configuration information from /etc/rc.d/rc.inet1.conf:
. /etc/rc.d/rc.inet1.conf
######################
# LOOPBACK FUNCTIONS #
######################
# Function to bring up the loopback interface. If loopback is
# already up, do nothing.
lo_up() {
if grep lo: /proc/net/dev 1> /dev/null ; then
if ! /sbin/ifconfig | grep "^lo" 1> /dev/null ; then
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
fi
fi
}
# Function to take down the loopback interface:
lo_down() {
if grep lo: /proc/net/dev 1> /dev/null ; then
/sbin/ifconfig lo down
fi
}
######################
# ETHERNET FUNCTIONS #
######################
# Function to bring up an Ethernet interface. If the interface is
# already up or does not yet exist (perhaps because the kernel driver
# is not loaded yet), do nothing.
eth_up() {
# If the interface isn't in the kernel yet (but there's an alias for it in
# modules.conf), then it should be loaded first:
if ! grep eth${1}: /proc/net/dev 1> /dev/null ; then # no interface yet
if /sbin/modprobe -c | grep -w "alias eth${1}" | grep -vw "alias eth${1} off" > /dev/null ; then
/sbin/modprobe eth${1}
fi
fi
if grep eth${1}: /proc/net/dev 1> /dev/null ; then # interface exists
if ! /sbin/ifconfig | grep "eth${1} " 1> /dev/null ; then # interface not up
if [ "${USE_DHCP[$1]}" = "yes" ]; then # use DHCP to bring interface up
if [ ! "${DHCP_HOSTNAME[$1]}" = "" ]; then
/sbin/dhcpcd -t 10 -h ${DHCP_HOSTNAME[$1]} -d eth${1}
else
/sbin/dhcpcd -t 10 -d eth${1}
fi
else # bring up interface using a static IP address
if [ ! "${IPADDR[$1]}" = "" ]; then # skip unconfigured interfaces
# Determine broadcast address from the IP address and netmask:
BROADCAST=`/bin/ipmask ${NETMASK[$1]} ${IPADDR[$1]} | cut -f 1 -d ' '`
# Set up the ethernet card:
echo "Configuring eth${1}:"
echo "/sbin/ifconfig eth${1} ${IPADDR[$1]} broadcast ${BROADCAST} netmask ${NETMASK[$1]}"
/sbin/ifconfig eth${1} ${IPADDR[$1]} broadcast ${BROADCAST} netmask ${NETMASK[$1]}
else
if [ "$DEBUG_ETH_UP" = "yes" ]; then
echo "eth${1} interface is not configured in /etc/rc.d/rc.inet1.conf"
fi
fi
fi
else
if [ "$DEBUG_ETH_UP" = "yes" ]; then
echo "eth${1} is already up, skipping"
fi
fi
else
if [ "$DEBUG_ETH_UP" = "yes" ]; then
echo "eth${1} interface does not exist (yet)"
fi
fi
}
# Function to take down an Ethernet interface:
eth_down() {
if grep eth${1}: /proc/net/dev 1> /dev/null ; then
if [ "${USE_DHCP[$1]}" = "yes" ]; then
/sbin/dhcpcd -k -d eth${1}
sleep 1
else
/sbin/ifconfig eth${1} down
fi
fi
}
#####################
# GATEWAY FUNCTIONS #
#####################
# Function to bring up the gateway if there is not yet a default route:
gateway_up() {
if ! /sbin/route | grep "^default" 1> /dev/null ; then
if [ ! "$GATEWAY" = "" ]; then
/sbin/route add default gw ${GATEWAY} metric 1
fi
fi
}
# Function to take down an existing default gateway:
gateway_down() {
if /sbin/route | grep "^default" 1> /dev/null ; then
/sbin/route del default
fi
}
############
### MAIN ###
############
case "$1" in
'start') # "start" brings up all available interfaces:
lo_up
eth_up 0
eth_up 1
eth_up 2
eth_up 3
gateway_up
;;
'stop') # "stop" takes down all existing interfaces:
gateway_down
eth_down 3
eth_down 2
eth_down 1
eth_down 0
lo_down
;;
*) # The default is to bring up all interfaces:
lo_up
eth_up 0
eth_up 1
eth_up 2
eth_up 3
gateway_up
esac
# End of /etc/rc.d/rc.inet1
/etc/rc.d/rc.inet1.conf
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").
# Config information for eth0:
IPADDR[0]="192.168.56.3"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY="192.168.56.99"
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
/etc/lilo.conf
# LILO configuration file # generated by 'liloconfig' # # Start LILO global section append="hdd=ide-scsi acpi=force" boot = /dev/hda #compact # faster, but won't work on all systems. prompt timeout = 50 # VESA framebuffer console @ 1024x768x256 vga = 773 # Normal VGA console # vga = normal # VESA framebuffer console @ 1024x768x64k # vga=791 # VESA framebuffer console @ 1024x768x32k # vga=790 # VESA framebuffer console @ 1024x768x256 # vga=773 # VESA framebuffer console @ 800x600x64k # vga=788 # VESA framebuffer console @ 800x600x32k # vga=787 # VESA framebuffer console @ 800x600x256 # vga=771 # VESA framebuffer console @ 640x480x64k # vga=785 # VESA framebuffer console @ 640x480x32k # vga=784 # VESA framebuffer console @ 640x480x256 # vga=769 # ramdisk = 0 # paranoia setting # End LILO global section # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/hda3 label = "Slackware-9" read-only # Non-UMSDOS filesystems should be mounted read-only for checking # Linux bootable partition config ends # Minix 3 bootable partition config begins other = /dev/hda2 label = "Minix-3.1.2" table = /dev/hda # Minix 3 bootable partition config ends # Oberon bootable partition config begins other = /dev/hda1 label = Oberon table = /dev/hda # Oberon bootable partition config ends
/etc/resolv.conf
search fruttenboel nameserver 213.51.144.170 nameserver 192.168.56.99 nameserver 213.51.129.170
/etc/rc.d/rc.local
#!/bin/sh # # /etc/rc.d/rc.local: Local system initialization script. # # Put any local setup commands in here:
Synopsis
OK, now I told just about anything that is specific and that can be hairy when your machine will not boot upto
an inlog prompt. If your system uses a comparable Linux, these settings might help.
System settings are so machine specific that I cannot help you, unless you happen to live around the corner.
If that is the case, this magic number '5012' should ring a bell. If the number is just a number to you,
please find someone near your place to help you out.
Page created on April 7, 2006 and
Page equipped with FroogleBuster technology