NSLU2 SlugOS 4.8 beta setup EN

Yahoo nslu2-linux, msg 20476 Rod Whitby 2007-12-29 SlugOS has about 5000 packages to choose from - 4000 from OpenEmbedded, which have been specifically compiled mainly for handheld, limited memory devices, and 1000 from Optware (as per Unslung). SlugOS is available in either big-endian or little-endian modes, and uses a 2.6.21.7 kernel and a recent version of glibc. SlugOS does not have a web user interface. There is a small amount of room left in internal flash after installation (enough to run some small server applications), but installation of large packages will require an external storage device. If the external device fails, SlugOS falls back to running from internal flash. IMO, one of the biggest differences between Debian and SlugOS is that SlugOS maintains a complete bootable rootfs in flash that you can use to recover your hard drive or memory stick in event of a problem. Debian boots directly from the external devices, and thus does not have this recovery ability.

write SlugOS 4.8 into Flash memory

Windows: http://www.nslu2-linux.org/wiki/Main/SercommFirmwareUpdater
Linux: http://www.nslu2-linux.org/wiki/Main/UpSlug2

Important: first setup a static TCP/IP Adress in the NSLU2 which fits your network, no DHCP.

To use it, first you have to put your NSLU2 into 'upgrade mode'. This is described here: http://www.nslu2-linux.org/wiki/HowTo/UseTheResetButtonToEnterUpgradeMode In short:

  1. Shutdown the slug
  2. Using a paper clip (or pushpin), push and hold in the reset button. (The reset button is located on the back of the NSLU2 above the power connection.)
  3. While holding in the reset button, press and release the power button.
  4. Watch the orange Ready/Status LED and after approx 10 seconds the LED will turn solid red (except for some models, see note below). Quickly release the reset button.
  5. You should be in upgrade mode which is indicated by the Ready/Status LED alternating between red and green.
  6. Then, to find a list of NSLU2 machines in upgrade mode, just run the upslug2 program with no options. (Note that UpSlug2 must always run as root):

$ upslug2

If the NSLU2 was found it shows the MAC address.
You specify the flash image using the --image option. The flash image should be an 8 MByte file. Here is an example:

$ upslug2 --image="slugosbe-4.8-beta-nslu2.bin"

As it runs the program will display progress information as it erases, programs and verifies the flash. When it completes it will reboot the Slug.

turnup - copy Flash content to USB-Stick

http://www.nslu2-linux.org/wiki/OpenSlug/InitialisingOpenSlug
"turnup init" is mostly used to change the passowrd. The other parameters could be skipped by pressing ENTER.
"turnup memstick" is very similar to disk but it retains the RAM file systems to avoid putting frequently changing files on a USB flash device.

First you have to prepare your USB-stick (>= 1GB) in order to use it, partitioning and formatting.

$ df  # to check for "mounts", if there are any mounts (/dev/sdaX) do e.g.
$ umount /dev/sda1

Then delete all existing partitions, create some new ones (primary) and format the partions:

$ fdisk /dev/sda
Partition 1: root file system 512 MB, ext3
Partition 2: swap 64 MB
Partition 3: /home, ext3 (size = Rest of USB-stick)
$ mkfs.ext3 /dev/sda1          # format the flash stick
$ mkfs.ext3 /dev/sda3          # format the flash stick

Then you can copy the internal flash memory to the USB-stick:

$ turnup memstick -i /dev/sda1 -t ext3  # copy the filesystem and set the bootloader to use it
REBBOT

$ df  # check for valid mounts
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               505604     20200    459300   4% /
/dev/mtdblock4            6528      4940      1588  76% /initrd
/dev/sda1               505604     20200    459300   4% /dev/.static/dev
tmpfs                     2048        32      2016   2% /dev
tmpfs                    15188        24     15164   0% /var/volatile
tmpfs                    15188         0     15188   0% /dev/shm

Repair defect flash page

Trying to enter SlugOS48 for the first time, I got an error message:

Rebooting... done
Putty 192.168.17.81 SSH
  accept SSH key - OK
  login as: root
  root@192.168.17.81's password: opeNSLUg
PuTTY Fatal Error: Server unexpectedly closed network connection

Connected a serial cable to J2 of the board.
HyperTerminal 115200baud8N1 on ttyS0:
root@LKG300DB0:~$ Data CRC cee07dfc != calculated CRC ae2900a4 for node at 0042f66c
Data CRC cee07dfc != calculated CRC ae2900a4 for node at 0042f66c
$ logread
Feb 20 14:15:27 (none) user.warn kernel: Data CRC cee07dfc != calculated CRC ae2
900a4 for node at 0042f66c (dez. 4.388.460, RAM)

How to connect a serial cable to the NSLU2 box, please see http://www.nslu2-linux.org/wiki/Info/PinoutOfInternalSerialPort and http://www.nslu2-linux.org/wiki/HowTo/AddASerialPort

In order to locate the spot of the error in the file system do a "turnup memstick" or "turnup disk".

$ turnup memstick -i /dev/sda1 -t ext3
  cpio: Read error at byte 126976 in file ./usr/sbin/sshd, padding with zeros
  NOTE: must be a defective NAND flash page

Now I know the SSH daemon (sshd) file is affected. In order to repair that, copy that file from an ipkg archive via scp from a SSH server (easiest Linux) to the flash file system, and then to the memory stick for repair. Check with ls -ls sshd if the execute permissions are set. If not do chmod a+x sshd.

$ scp rudi@192.168.17.28:/home/rudi/Install/SlugOS/sshd sshd
  Now file "sshd" is in /root/sshd
$ ls -ls sshd                          # check for execute permissions
 265 -rwxr-xr-x    1 root     root       270000 Mar 10 08:25 sshd
$ chmod a+x sshd                       # if the execute (x) permissions are not set
$ mount -t ext3 /dev/sda1 /media/sda1  # mount memory stick
$ cp sshd /media/sda1/usr/sbin/sshd    # copy to memory stick
$ reboot

Now the Problem was solved, and I could login via SSH with PUTTY.

SlugOS setup on USB-Stick

In case of a operating system change it gives the posibility to keep the home folder, if it is on another partition. In oder to make it permanent do the following:

Edit /etc/fstab: append "/dev/sda3       /home       ext3    noatime 0  0"
                 append "/dev/sda2       swap        swap    defaults 0 0"
$ reboot

Now the filesystem looks like:

root@LKG300DB0:~$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               483914     16536    442394   4% /
/dev/mtdblock4            6528      5088      1440  78% /initrd
/dev/sda1               483914     16536    442394   4% /dev/.static/dev
tmpfs                     2048        28      2020   1% /dev
/dev/sda3               382760      8239    354757   2% /home
tmpfs                    15188        24     15164   0% /var/volatile
tmpfs                    15188         0     15188   0% /dev/shm

Now add swap space:

$ mkswap /dev/sda2  # 64 - 128 MB
$ swapon -a
Check with:
$ free
              total         used         free       shared      buffers
  Mem:        30376        12672        17704            0          588
 Swap:         8024            0         8024
Total:        38400        12672        25728

SlugOS 4.8 ipkg packages

In oder to install already provided program packages, you can install them via the program ipkg. But first to have to load the packages list.

$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/4.8-beta/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/4.8-beta/Packages.gz
Updated list of available packages in /var/lib/ipkg/cross
Downloading http://ipkg.nslu2-linux.org/feeds/slugosbe/native/4.8-beta/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/slugosbe/native/4.8-beta/Packages.gz
Updated list of available packages in /var/lib/ipkg/native

$ ln -s /var/lib/ipkg/cross /usr/lib/ipkg/lists/cross  # to find the list better
$ ln -s /var/lib/ipkg/native /usr/lib/ipkg/lists/native  # to find the list better

In order to find infos about the installed ipkg packages look in /usr/lib/ipkg/info.
A list of all installed packages can be generated by ipkg list_installed

SlugOS 4.8 optware, ipkg-opt

Several programs, like the midnight-commander are available only via optware. Read at http://www.nslu2-linux.org/wiki/Optware/Slugosbe . The following commands are copied to the clipboard and inserted via right mouse button in the PuTTY terminal. You must do that as root user. Use the text after the "$" sign. The other text is output from the commands, just to verify operation.

root@LKG300DB0:~$ feed=http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable
root@LKG300DB0:~$ ipk_name=`wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}'`
root@LKG300DB0:~$ wget $feed/$ipk_name
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
ipkg-opt_0.99.163-10 100% |*********************************************| 74260    --:--:-- ETA
root@LKG300DB0:~$ tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf -
.
./opt
./opt/bin
./opt/bin/ipkg
./opt/bin/ipkg-opt
./opt/bin/update-alternatives
./opt/etc
./opt/etc/ipkg.conf
./opt/lib
./opt/lib/libipkg.so
./opt/lib/libipkg.so.0
./opt/lib/libipkg.so.0.0.0
./opt/share
./opt/share/ipkg
./opt/share/ipkg/intercept
./opt/share/ipkg/intercept/depmod
./opt/share/ipkg/intercept/ldconfig
./opt/share/ipkg/intercept/update-modules
root@LKG300DB0:~$ sed -i -e 's|/stable|/unstable|' /opt/etc/ipkg.conf

Next you must add the new path /opt/bin to the main $PATH, check if its done, and update the list of packages.

$ PATH=$PATH/opt/bin
$ env
root@LKG300DB0:~$ ipkg-opt update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.

Edit /etc/profile, add to PATH list ":/opt/bin"
In order to allow a user to "logread":
$ sudo ln -s /bin/busybox /opt/bin/logread

Unfortunately in /opt/etc/ipkg.conf the path to the repository is not correct (2010-03-11). At the end of the path ist must be unstable instead of stable. Because is easier for me to edit with joe, I first installed joe.

$ ipkg install joe   # ver. 3.1-r0
  + ncurses          # ver. 5.4-r10
then editing:
$ joe /opt/etc/ipkg.conf
insert "un" in front of "stable" # ^KX to save

Midnight-Commander (mc) to have a comfortable tool for file handling an editor.

$ ipkg-opt install mc
Installing mc (4.7.0.2-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/mc_4.7.0.2-1_armeb.ipk
package slang suggests installing pcre
package slang suggests installing libpng
Installing glib (2.20.4-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/glib_2.20.4-1_armeb.ipk
Installing slang (2.1.4-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/slang_2.1.4-1_armeb.ipk
Installing e2fslibs (1.41.9-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/e2fslibs_1.41.9-1_armeb.ipk
Configuring e2fslibs
Configuring glib
Configuring mc
Configuring slang
Successfully terminated.
root@LKG300DB0:~$ ipkg-opt install pcre
Installing pcre (8.01-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/pcre_8.01-1_armeb.ipk
Installing libstdc++ (6.0.8-6) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/libstdc++_6.0.8-6_armeb.ipk
Configuring libstdc++
Configuring pcre
Successfully terminated.
root@LKG300DB0:~$ ipkg-opt install libpng
Installing libpng (1.2.42-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/libpng_1.2.42-1_armeb.ipk
Installing zlib (1.2.3-3) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/slugosbe/cross/unstable/zlib_1.2.3-3_armeb.ipk
Configuring libpng
Configuring zlib
Successfully terminated.

In order to look nice mc needs the package ncurses. If not already installed together with joe, please install:

$ ipkg install ncurses
Installing ncurses (5.4-r10) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/4.8-beta/ncurses_5.4-r10_armv5teb.ipk
package ncurses suggests installing ncurses-terminfo
Configuring ncurses
$ ipkg install ncurses-doc
root@LKG300DB0:~$ ipkg install ncurses-terminfo
Installing ncurses-terminfo (5.4-r10) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/4.8-beta/ncurses-terminfo_5.4-r10_armv5teb.ipk
Configuring ncurses-terminfo

Next, setup  $ mc, click with left mouse button on Options / Configuration and click in the box Other options in the field [ ] before save deLete to get a "x" mark, means activated. Last click on [ Save ].

Installing support programs

Now several support programs are installed on the USB-stick. First the common once, then the interfaces.

$ ipkg update  # download the package lists 2010-03-11
$ ipkg install joe              # ver. 3.1-r0, editor
  + ncurses                     # ver. 5.4-r10
$ ipkg-opt install htop         # ver. 0.8.3-1
$ ipkg-opt install python25     # ver. 2.5.5-2
  + readline ver. 6.1-2
  + bzip2    ver. 1.0.5-2
  + openssl  ver. 0.9.7m-5
  + libdb    ver. 4.2.52-3
  + sqlite   ver. 3.6.22-1
  + ncurses  ver. 5.7-1
  + ncursesw ver. 5.7-1
$ ipkg-opt install python       # ver. 2.5-1
$ ipkg install man              # ver. 1.5p-r3
  + less                        # ver. 406-r0
  + groff                       # ver. 1.19.2-r4
  + libstdc++6                  # ver. 4.1.2-r13
$ ipkg install man-pages        # ver. 2.41-r0
$ ipkg install man-doc
$ ipkg install nmap             # ver. 3.81-r2
  + libpcre0                    # ver. 4.4-r8
  + libpcap0.9                  # ver. 0.9.6-r1
$ ipkg install usbutils         # ver. 0.70-r0  (e.g. lsusb)
  + libusb-0.1-4                # ver. 0.1.12-r1
$ ipkg install ldd              # ver. 2.5-r8 (show libraries needed)
$ ipkg install gkrellmd         # ver. 2.3.2-3 System monitor server
$ ipkg install memtester        # ver. 4.0.6-r0_armv5teb
$ ipkg install memtester-doc    
$ ipkg install minicom          # ver. 2.1-r0  Terminal for RS232
$ ipkg install minicom-doc
$ ipkg install iptables         # ver. 1.3.8-r1 Firewall
  + kernel-module-ip-tables     # ver. 2.6.21.7+svnr927r0
  + kernel-module-x-tables      # ver. 2.6.21.7+svnr927r0
  + kernel-module-iptable-filter # ver. 2.6.21.7+svnr927r0
$ ipkg install iptables-utils   # ver. 1.3.8-r1
$ ipkg install iptables-doc
$ ipkg install tar              # ver. 1.18-r0
$ ipkg install tar-doc
$ ipkg-opt install sed          # ver. 4.2.1-1  stream editor
$ ipkg-opt install strace       # ver. 4.5.19-1
$ ipkg install strace-doc       # ver. 4.5.14-r4
$ ipkg install gdb              # ver. 6.6-r3
  + libexpat1                   # ver. 2.0.0-r2
  + libthread-db1               # ver. 2.5-r8
$ ipkg install libexpat-doc     # ver. 2.0.0-r2
$ ipkg install gdb-doc          # ver. 6.6-r3
$ ikkg install findutils        # ver. 4.2.29-r0
$ ikkg install findutils-doc    # ver. 4.2.29-r0
$ ikkg install memtester        # ver. 4.0.6-r0
$ ikkg install memtester-doc    # ver. 4.0.6-r0

In order to see a list of all installed module type:
$ ipkg list_installed > ipkg_installed80.txt

USB-RS232 serial interface (Prolific PL2303 chip, or FTDI), with test procedures.

There was one case that an USB-RS232 converter with pl2303 chip did not work reliable with the DS9097 1-wire adapter (often CRC error). With an ELV A/D converter module it worked. It looks like an analog problem.

$ ipkg-opt install py25-serial  # ver. 2.4-1
  + py-serial-common            # ver. 2.4-1
$ ipkg-opt install digitemp     # ver. 3.6.0-1
$ sudo ln -s /opt/bin/digitemp_DS9097 /opt/bin/digitemp  # set link for RS232 Adapter
  + libusb                      # ver. 0.1.12-1
$ ipkg install kernel-module-usbserial  # ver. 2.6.21.7
$ ipkg install kernel-module-pl2303     # ver. 2.6.21.7
or FTDI
$ ipkg install kernel-module-ftdi-sio   # ver. 2.6.21.7
$ depmod -a
Plugin USB-RS232 converter (Prolific PL2303 chip, or FTDI)
Test:
$logread (excerpt):
  drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
  usb 2-1: pl2303 converter now attached to ttyUSB0
  drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
or FTDI
  drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
  ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
  drivers/usb/serial/ftdi_sio.c: Detected FT232BM
  usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
  usbcore: registered new interface driver ftdi_sio
  drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver

root@LKG300DB0:~$ lsmod         (excerpt)
  Module                  Size  Used by
  pl2303                 16132  0
  usbserial              25392  1 pl2303
or FTDI
  ftdi_sio               23464  0

root@LKG649492:~$ lsusb
Bus 3 Device 1: ID 0000:0000
Bus 1 Device 3: ID 090c:1000 Feiya Technology Corp.
Bus 1 Device 4: ID 046d:09a4 Logitech, Inc.
Bus 1 Device 1: ID 0000:0000
Bus 2 Device 3: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 2 Device 1: ID 0000:0000
or FTDI
Bus 2 Device 2: ID 0403:6001 Future Technology Devices International, Ltd 8-bit FIFO

WebCam support

Webcam support for Video 4 Linux Webcams and Logitech E3500. All module must be compiled together. The kernel modules provided by the ipkg repository are not complete.

$ ipkg install kernel-module-usbvideo     # ver. 2.6.21.7
  + kernel-module v4l1-compat.ko          # ver. 2.6.21.7
  + kernel-module-v4l2-common             # ver. 2.6.21.7
  + kernel-module videodev.ko             # ver. 2.6.21.7 
kernel-module uvc/uvcvideo.ko         # ver. 2.6.21.7
kernel-module v4l2-compat-ioctl32.ko  # ver. 2.6.21.7
depmod -a

uvccapture  must be compiled on your own, for Logitech E3500 WebCam
  /opt/bin/uvccapture
  needs
  /lib/modules/2.6.21.7/kernel/drivers/media/video/uvc/uvcvideo.ko
  /lib/modules/2.6.21.7/kernel/drivers/media/video/v4l2-compat-ioctl32.ko

$ ipkg install libjpeg62
Test:
root@LKG649492:~$ lsusb
Bus 3 Device 1: ID 0000:0000
Bus 1 Device 3: ID 090c:1000 Feiya Technology Corp.
Bus 1 Device 4: ID 046d:09a4 Logitech, Inc.
Bus 1 Device 1: ID 0000:0000
Bus 2 Device 3: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 2 Device 1: ID 0000:0000

root@LKG649492:~$ lsmod      (excerpt)
Module                  Size  Used by
uvcvideo               51980  0
v4l2_compat_ioctl32      480  1 uvcvideo
videodev               32960  1 uvcvideo
v4l1_compat            12580  2 uvcvideo,videodev

Alternativ video capture programs in the repository are:
w3cam
webcam-server

NTP client and TimeZone data

In order to alway have an accurate time in your NSLU2, you need access to a NTP server, and the timezone data. The package will start immediately the client daemon (test with ps) and installs a coldstart script in /etc/init.d/ntpclient and a link in /etc/rc2.d/S65ntpclient.

$ ipkg install tzdata         # ver. 2007e-r1, Time Zone support
$ ipkg install tzdata-europe  # ver. 2007e-r1
$ ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
$ unset TZ
$ ipkg install ntpclient      # ver. 2003_194-r1
  Adding system startup for /etc/init.d/ntpclient.
$ ipkg install ntp-doc        # ver. 4.2.2p3-r1
$ ps
  1586 root        704 S   /sbin/ntpclient -l -i 600 -h pool.ntp.org
$ ls -ls /etc/rc2.d/S65ntpclient
   0 lrwxrwxrwx    1 root     root           19 Feb 22 11:32 /etc/rc2.d/S65ntpclient -> ../init.d/ntpclient
  -h hostname  (mandatory) NTP server, against which to measure system time
  -i interval  check time every interval seconds (default 600)
  -l           attempt to lock local clock to server using adjtimex(2)

sftp server for access from WinSCP, FileZilla or Nautilus

WinSCP for Win32 is the easiest to use program. An alternitive on Linux is the access via sftp, either from Gnome Nautilus or FileZilla. On Mac OS X use also FileZilla.

$ ipkg install openssh-sftp
$ ipkg install openssh-sftp-server
$ ps
  1709 root        592 S   sh -c /usr/libexec/sftp-server
  1710 root        680 S   /usr/libexec/sftp-server

use: sftp://root@192.168.17.xxx

GNUplot

In order to generate a nice looking diagram, GNUplot is a good program. But for nice looking fonts you need also freetype.

$ ipkg-opt install gnuplot  # ver. 4.2.6-1
  + libgd                   # ver. 2.0.35.5
  + libjpeg                 # ver. 6b-3
  + freetype                # ver. 2.3.6-1
  + fontconfig              # ver. 2.5.0-0
  + expat                   # ver. 2.0.1-1
  + gconv-modules           # ver. 2.5-1
$ ikpg-opt install libpng   # ver. 1.2.42-1
$ ipkg-opt install ttf-bitstream-vera # ver. 1.10-1, use 9 pt, title 12 pt

$ ipkg install gnuplot.doc  # ver. 4.2.0-r1

Tuning the system

Thera are some parameters, which could be adjusted.

Tick Mark frequency, /etc/syslog.conf

If you have choosen turnup memstick the system log file is written in a RAM disk. The parameters can be changes in a file /etc/syslog.conf. The log file can be read via logread.

Edit MARKINT 20 -> 60  # write tick marks every 60 minutes only

Adduser rudi

$ adduser rudi
  Enter new password
  /home/rudi    # new folder is created

$ ikpg install sudo    # ver. 1.6.8p12-r3
$ ln -s /usr/bin/sudo /opt/bin/sudo  # avoid start problem
$ ikpg install sudo-doc
Edit /etc/sudoers, add line: rudi       ALL=(ALL) ALL

Edit /etc/group # add rudi after the colon to adm, dialout, sudo, www-data, video
$ reboot  # otherwise the changes to /etc/group will not be effective

Add utility dfu (=date;free;uptime;uname -a)

In order to get a quick overview about the Linux status I combined 4 utilities to one dfu.

$ sudo touch /bin/dfu  # create empty file
Edit the following content:
# dfu, 2010-03-16 RudolfReuter
date;free;uptime;uname -a

$ sudo chmod a+x /bin/dfu  # make executable

Example:
rudi@LKG95AC9E:~$ dfu
Fri Apr 30 06:01:04 CEST 2010
              total         used         free       shared      buffers
  Mem:        30376        26172         4204            0         1244
 Swap:       136544           88       136456
Total:       166920        26260       140660
 06:01:04 up 3 days, 18:56, load average: 0.13, 0.03, 0.00
Linux LKG95AC9E 2.6.21.7 #1 PREEMPT Mon Dec 24 23:12:24 UTC 2007 armv5teb unknown

Info's to SlugOS 4.8 beta

Note:

System Control

In order to see the RAM and SWAP use (KB), login with PUTTY and type date;free;uptime. A little SWAP use is not a problem, as long as it does not increase over time (days, weeks), if just the application is running. In case some system modification is done, SWAP space can increase.

rudi@LKG649492:~$ date;free;uptime
Fri Mar 12 06:13:48 CET 2010
              total         used         free       shared      buffers
  Mem:        30376        27420         2956            0         1576
 Swap:         8024            0         8024
Total:        38400        27420        10980
 06:13:48 up 6 min, load average: 0.07, 0.25, 0.15  # load average in 1, 5, 15 minutes

In order to check for running processes type ps and check for the existence of (the standard processes are not shown):

rudi@LKG649492:~$ ps
  PID  Uid     VmSize Stat Command
  966 root        704 S   /sbin/ntpclient -l -i 600 -h pool.ntp.org
  979 rudi       9324 S   python /home/rudi/moin/moin server standalone --start
  990 rudi       3232 S   /opt/bin/python /home/rudi/heizung/heizung20.py
  991 root        660 S   logger
  997 rudi        672 S   /bin/sh /home/rudi/heizung/webcam4.sh
  998 root        660 S   logger
 1033 root        544 S   /sbin/getty 115200 ttyS0
 1034 root       1932 S   sshd: rudi [priv]
 1059 rudi       1376 S   sshd: rudi@pts/0
 1060 rudi        852 S   -sh
 1152 root       1980 S   sshd: root@notty
 1156 root        700 S   -sh
 2334 rudi        436 S   sleep 20
 2335 rudi        588 S   sh -c /opt/bin/digitemp -q -a
 2336 rudi        544 S   /opt/bin/digitemp -q -a

LED's use

http://www.annuit-coeptis.net/artikel/nslu2/debian

RAM disk explanation

http://www.smallnetbuilder.com/content/view/24294/77/1/1/

-- RudolfReuter 2010-02-22 12:20:44

Liste der Seiten in dieser Category:


Go Back to CategoryNslu2 or StartSeite ; KontaktEmail (ContactEmail)

rudiswiki9b: NSLU2SlugOS48 (last edited 2011-03-23 08:59:32 by dslb-084-058-142-238)