(Navigator)
1.* Photos * | 2.Best/Pano/Minis | 3.My Adventures | 4.Travels | 5.Questions/Answers | 6.Prog | 7.Maps | 8.Cool
(Programming)
1.Unix | 2.* Perl * | 3.PHP | 4.ASP.NET | 5.ASP | 6.Visual C++ | 7.Visual Basic | 8.JavaScript | 9.HTML | 10.CSS |
11.CGI, bin and Perl | 12.Cygwin | 13.Linux | 14.mySQL | 15.Python | 16.robertbody C++ & *.BAT |
17.Unix Notes (live) | 18.Perl Notes (live)

Linux

1.Setup | 2.Lilo | 3.Pingus
Setup
1) List of important files in Linux - users, network, etc
  /etc                                
  /etc/fstab -> hard disks mounted
  /etc/inetd.conf -> telnet/ftp .... commented out, not secure
  /etc/passwd -> usernames, groups, default shell
  /etc/hosts -> 127.0.0.1 defined, local renames for other hosts
  /etc/HOSTNAME -> HOSTNAME.DOMAIN name of computer

  /etc/resolv.conf -> nameserver(s) look up IP addresses
  /etc/services -> ssh, http ports enabled for tcp/udp protocols

  /etc/rc.d 
  /etc/rc.d/rc.inet1 -> calls all other rc scripts... startup/shutdown
  /etc/rc.d/rc.modules -> modules to load at startup
  /etc/rc.d/rc.gpm -> console mouse
  /etc/rc.d/rc.modules -> modules to load at startup

  /etc/ssh 
  /etc/ssh/sshd_config -> ports for ssh to listen on (maybe telnet, http)

  /etc/X11 
  /etc/X11/xorg.conf -> set 3 button mouse, other X specs

  /var                                
  /var/log 
  /var/log/debug -> startup debug (maybe problems) info, DHCP
  /var/log/dmesg -> hda, ata, scsi, TCP info
  /var/log/syslog -> most info: Console, scsi, hda, hug, Linux...
2) ssh via telnet/http -- ports 23, 80 or 8080 [if you cannot use ssh port from the client side]
#    - make server listen on telnet port for ssh (but telnet stays turned off on server)
-------------------------------------
# server side:
1) /etc/inetd.conf -> #telnet stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd
2) /etc/services ->
     telnet           23/tcp
     telnet           23/udp
     http             80/tcp    www www-http         #World Wide Web HTTP
     http             80/udp    www www-http         #World Wide Web HTTP
     www-user       8080/tcp                         #World Wide Web HTTP
     www-user       8080/udp                         #World Wide Web HTTP

3) /etc/ssh/sshd_config ->
     Port 22
     Port 23
     Port 80
     Port 8080

4) might have to reboot the server
-------------------------------------
# client side:
ssh 67.190.173.2 -l robert -p 23   # ssh on telnet'sport 23
3) upgrade KDE in Slackware Linux (KDE Windows Environment)
1) first run pkgconfig and remove all existing KDE packages
/root/utils> pkconfig

2) then download Slackware's packages for the latest KDE (KDE 3.5 ist latest on 2005/12/07)
   by downloading 40+ files at once, from xterm shell
ftp ftp.oregonstate.edu
username: anonymous
password: anythingATall
cd pub/kde/stable/3.5/contrib/Slackware/10.2
prompt
mget *

3) in directory of download run pkconfig and select "Install from Current Directory"
/root/utils/kde-3.5> pkconfig


#101. my packages setup (default from Slackware 10.2 setup)
/root> lsmod
Module                  Size  Used by    Not tainted
snd-pcm-oss            36736   0  (unused)
snd-mixer-oss          12376   0  [snd-pcm-oss]
snd-hda-intel           7488   0
snd-hda-codec          50480   0  [snd-hda-intel]
snd-pcm                54344   0  [snd-pcm-oss snd-hda-intel snd-hda-codec]
snd-timer              13764   0  [snd-pcm]
snd                    32772   0  [snd-pcm-oss snd-mixer-oss snd-hda-intel snd-hda-codec snd-pcm snd-timer]
soundcore               3396   3  [snd]
snd-page-alloc          4712   0  [snd-mixer-oss snd-hda-intel snd-pcm snd-timer snd]
usb-storage            62432   0  (unused)
pciehp                 66868   0  (unused)
pci_hotplug            15236   1  [pciehp]
uhci                   24284   0  (unused)
ehci-hcd               17516   0  (unused)
usbcore                59148   1  [usb-storage uhci ehci-hcd]
ohci1394               23888   0  (unused)
ieee1394               41636   0  [ohci1394]
pcmcia_core            39172   0
ntfs                   51232   1  (autoclean)
ide-scsi                9392   0
agpgart                45508   0  (unused)

#102. my Network setup
From the default Slackware 10.2 installation of everything, my network was not setup.
"eth0" did not show up with "ifconfig" nor with "ifconfig -a"
After some research I found out that I need "modprobe e100"   # Ethernet card module

/etc/rc.d> vi rc.modules
# (rb) 2005/12/06
/sbin/modprobe e100  #network Ethernet 10/100 (my Intel PRO/100 VE Network)

... and then

/root> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:13:20:1F:AF:05
          inet addr:67.173.237.200  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1685 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:115911 (113.1 Kb)  TX bytes:1622 (1.5 Kb)
          Interrupt:11 Base address:0x1000 Memory:50010000-50010038

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3549 (3.4 Kb)  TX bytes:3549 (3.4 Kb)
#102. my modules setup -- or -- removing hotplug and saving 1 minute at startup
From the default Slackware 10.2 installation of everything, my network was not setup.
"eth0" did not show up with "ifconfig" nor with "ifconfig -a"
After some research I found out that I need "modprobe e100"   # Ethernet card module

rc.hotplug delayed my startup by almost 1 minute, so I decided to 

1)first see which modules I have           
/var/log> lsmod  # <--- with hotplub
Module                  Size  Used by    Not tainted
snd-pcm-oss            36736   0  (unused)
snd-mixer-oss          12376   0  [snd-pcm-oss]
snd-hda-intel           7488   0
snd-hda-codec          50480   0  [snd-hda-intel]
snd-pcm                54344   0  [snd-pcm-oss snd-hda-intel snd-hda-codec]
snd-timer              13764   0  [snd-pcm]
snd                    32772   0  [snd-pcm-oss snd-mixer-oss snd-hda-intel snd-hda-codec snd-pcm snd-timer]
soundcore               3396   3  [snd]
snd-page-alloc          4712   0  [snd-mixer-oss snd-hda-intel snd-pcm snd-timer snd]
usb-storage            62432   0  (unused)
pciehp                 66868   0  (unused)
pci_hotplug            15236   1  [pciehp]
uhci                   24284   0  (unused)
ehci-hcd               17516   0  (unused)
usbcore                59148   1  [usb-storage uhci ehci-hcd]
ohci1394               23888   0  (unused)
ieee1394               41636   0  [ohci1394]
pcmcia_core            39172   0
ntfs                   51232   1  (autoclean)
e100                   47668   1
ide-scsi                9392   0
agpgart                45508   0  (unused)

2)then I commented out  rc.hotplug           
/etc/rc.d> vi rc.M
# Initialize the hotplugging subsystem for Cardbus, IEEE1394, PCI, and USB devices:
#if [ -x /etc/rc.d/rc.hotplug -a -r /proc/modules ]; then
#  # Don't run hotplug if 'nohotplug' was given at boot.
#  if ! grep nohotplug /proc/cmdline 1> /dev/null 2> /dev/null ; then
#    echo "Activating hardware detection:  /etc/rc.d/rc.hotplug start"
#    . /etc/rc.d/rc.hotplug start
#  fi
#fi

3)rebooted and looked at the loaded modules list           
/root> lsmod    # <----- without hotplug
Module                  Size  Used by    Not tainted
pcmcia_core            39172   0
ntfs                   51232   1  (autoclean)
e100                   47668   1
ide-scsi                9392   0
agpgart                45508   0  (unused)

4)and installed the missing modules myself           
/etc/rc.d> vi rc.modules
########### DIFF ##################
# (rb) 2005/12/07
########### DIFF ##################
                          # Module                  Size  Used by    Not tainted
modprobe snd-pcm-oss      # snd-pcm-oss            36736   0  (unused)
modprobe snd-mixer-oss    # snd-mixer-oss          12376   0  [snd-pcm-oss]
modprobe snd-hda-intel    # snd-hda-intel           7488   0
modprobe snd-hda-codec    # snd-hda-codec          50480   0  [snd-hda-intel]
modprobe snd-pcm          # snd-pcm                54344   0  [snd-pcm-oss snd-hda-intel snd-hda-codec]
modprobe snd-timer        # snd-timer              13764   0  [snd-pcm]
modprobe snd    # snd      32772   0  [snd-pcm-oss snd-mixer-oss snd-hda-intel snd-hda-codec snd-pcm snd-timer]
modprobe soundcore        # soundcore               3396   3  [snd]
modprobe snd-page-alloc   # snd-page-alloc          4712   0  [snd-mixer-oss snd-hda-intel snd-pcm snd-timer snd]
modprobe usb-storage      # usb-storage            62432   0  (unused)
modprobe pciehp           # pciehp                 66868   0  (unused)
                          # pci_hotplug            15236   1  [pciehp]
modprobe uhci             # uhci                   24284   0  (unused)
modprobe ehci-hcd         # ehci-hcd               17516   0  (unused)
modprobe usbcore          # usbcore                59148   1  [usb-storage uhci ehci-hcd]
modprobe ohci1394         # ohci1394               23888   0  (unused)
modprobe ieee1394         # ieee1394               41636   0  [ohci1394]
########### DIFF ##################

Counter:
Last Updated: Thu, December 8, 2005 0:23