Debian Slug Notes touch /.ext3flash echo "0" > /proc/sys/vm/swappiness :Disable 'MARK' messages in /etc/default/syslogd options: Disable disk integrity checks. Speed Check |
Save Memory Use If you are not using IPv6, you can prevent the module from being automatically loaded by adding the line blacklist ipv6 to /etc/modprobe.d/blacklist. The same goes for any other kernel module which is automatically loaded which you know you won’t need lsmod to see what is loaded apt-get remove NFS (and NetaTalk) - seems they were not present on mine |
Using a high definition UVC Webcam with Debian this link introduced me to the mjpg-streamer and the Quickcam Pro 9000. I took ages trying to find how to load "Video for Linux" or "V4L2" by "apt-get install" from - http://openfacts.berlios.de/index-en.phtml?title=HowTo_compile_for_Ubuntu_6.06_LTS So in the terminal I see - Slug51local:~# modprobe usbvideo But still no camera detected - Ahh! new magic word "insmod" needed - cd /lib/modules/2.6.18-6-ixp4xx/usb/media Now when you plug the camera in you see !!!- Load and run mjpg-streamer - see the pictures in Firefox svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer More preparation work needed! now copy the contents of the www folder that come with the install to /webcam_www In /etc/init.d I added a script (with actions at boot up but none at closedown) -
and then, to make this the last script to run, did modprobe usbvideo The problem I now have is that if I use - mjpg_streamer -i "input_uvc.so -r 960x720" -o "output_http.so -p 8080 -w /webcam_www" (either in the startup script above or in the command line of the ttyS0 terminal) Only if it was a manual command I can then issue a Control-C So this lets me keep using the ttyS0 terminal - Note:- to make mjpg-streamer exit cleanly, use - Run two cameras |
Running "Motion" with a UVC Webcam with Debian (tested with Quickcam 5000) I did apt-get install motion and loaded Motion and all the suggested sub packages It ran with an old Quickcam 4000 that uses a built in driver that comes with Debian but it So I went to http://www.lavrsen.dk/twiki/bin/view/Motion/DownloadFiles Now it runs with the Quickcam 5000 !! |
Adding a WIFI dongle
From eBay I bought a Here is my backup copy of those instructions (in case the link dies) with my own mods (with many thanks) 3) Compile the driver: 4) Copy the resulting rt73.ko module to an appropriate place under /lib: 5) Copy the rt73.bin firmware to /lib/firmware: 6) Update module dependencies: Before losing the working Ethernet connection you must get some tools "iwconfig", "iwlist", etc. 7) Edit the /etc/network/interfaces file according to the configuration of the wireless network.
Slug51local:~# iwlist wlan0 scan now try to connect - - - iwconfig wlan0 essid any Slug51local:~# ping 192.168.0.50 IT WORKS!!! also see this |
Adding a USB to rs232 converter serial port Slug51local:~# usb 1-2: new full speed USB device using ohci_hcd and address 5 So from the ttyS0 serial port or a ssh terminal you can write - echo "hello slug">/dev/ttyUSB0 and see the output on the USB/rs232 converter output. Slug51local:~# stty -F /dev/ttyUSB0 115200 Confirm the setting - Slug51local:~# stty -F /dev/ttyUSB0 For linking to an external device you need "raw" mode such that each character sent is immediately handled.
|
Two GPIO lines for external equipment control?
Control two of the Slug LEDs - 1 for on, 0 for off - D9=disk2 - D10=disk1
echo 1 > /sys/class/leds/disk-1/brightness
echo 0 > /sys/class/leds/disk-1/brightness
echo 1 > /sys/class/leds/disk-2/brightness
echo 0 > /sys/class/leds/disk-2/brightness
Panic - My Debian Slug stopped booting at "Setting the system clock"
Fix - I removed the lithium battery cell for a few minutes - then when I typed "date" I saw the correct date and time - so it had restarted and reset OK.