Walltop: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
Line 7: Line 7:
I looked at using Debian, Damn Small Linux, Puppy Linux (which immediately panics on boot), and Movix. I decided I might as well stick with Ubuntu so I am building a custom Live CD. I will then transfer it to a Compact Flash card, which will be plugged into an adapter and replace the incredibly noisy stock 4200 rpm hard drive.
I looked at using Debian, Damn Small Linux, Puppy Linux (which immediately panics on boot), and Movix. I decided I might as well stick with Ubuntu so I am building a custom Live CD. I will then transfer it to a Compact Flash card, which will be plugged into an adapter and replace the incredibly noisy stock 4200 rpm hard drive.


See  
See http://www.debuntu.org/how-to-customize-your-ubuntu-live-cd
http://www.debuntu.org/how-to-customize-your-ubuntu-live-cd


===Set up - mount cd and copy files===
'''Oh! This was a bad idea. Much stuff deleted from this page!'''


mkdir /tmp/livecd
The way to do this is [http://live.debian.net/ Debian Live!]
mount -o loop /export/bellman/home/bwilson/Dell/xubuntu-9.04-desktop-i386.iso /tmp/livecd
mkdir /home/bwilson/livecd
mkdir cd
rsync --exclude=/casper/filesystem.squashfs -av /tmp/livecd/ cd
mkdir squashfs custom
modprobe squashfs
mount -t squashfs -o loop /tmp/livecd/casper/filesystem.squashfs squashfs/
cp -a squashfs/* custom
umount squashfs
umount /tmp/livecd
rmdir /tmp/livecd


===Access the image===
[http://wiki.debian.org/DebianLive Debian Live wiki]


cp /etc/resolv.conf /etc/hosts custom/etc/
[http://live.debian.net/manual/html/ch03s03.html Building an USB/HDD image]
chroot /home/bwilson/livecd/custom
mount -t proc none /proc/
mount -t sysfs none /sys/
export HOME=/root


===Customize the image===
After installing the live-cd packages on the Ubuntu based build host


Packages to remove from the stock image.
# lh_clean --binary
# lh_config -a i386 -b usb-hdd --packages fluxbox
# Customize
# lh_build
# Copy image to CF: dd if=binary.img of=${USBSTICK}
# To test image, start in qemu or convert img file to a vmdk and use vmware
# To use in walltop, transfer CF to laptop and boot it


apt-get remove --purge gnome-games
Customization
# non-english language packs
for i in `dpkg-query -W --showformat='${Package}\n' | grep language-pack | grep -v en`; do apt-get remove --purge $i; done


  for i in `dpkg-query -W --showformat='${Package}\n' | grep gimp`; do apt-get remove --purge $i; done
  emacs21-nox
 
  libcurl3
  apt-get remove --purge abiword gnumeric aspell aspell-en
  openssh-server
apt-get remove --purge cdparanoia cdrdao dvd+rw-tools brasero genisoimage
apt-get remove --purge pidgin pidgin-data thunderbird
 
apt-get remove thunar xsane-common imagemagick imagemagick-doc
 
  # EVERYTHING Gnome related - don't want a desktop
apt-get remove --purge `dpkg-query -W --showformat='${Package}\n' | grep gnome`
 
# Windows friendly things
apt-get remove --purge  ntfs-3g ntfsprogs
# System utilities
apt-get remove --purge logrotate cups cups-bsd cups-common reiserfsprogs
 
# Documentation
apt-get remove --purge docbook-xml manpages
 
Remove the desktop
 
 
Update the /etc/apt/sources.list file to activate other repositories.
Then get updates
 
apt-get update
 
Add the things I really want
 
apt-get install emacs21-nox libcurl3 openssh-server
  realplayer
  realplayer
  flash
  flash
vlc


  adduser bwilson
  adduser bwilson
Line 80: Line 40:
  Give root a password  
  Give root a password  
  Copy in .ssh directories for root and bwilson
  Copy in .ssh directories for root and bwilson
Do the update at the end, there will be less to do
apt-get upgrade
Customize /etc/gdm/gdm.conf to support timed login as user "kiosk"
Good enough for now
apt-get clean
umount /proc/
umount /sys/
exit
rm custom/etc/resolv.conf custom/etc/hosts
rm -rf custom/tmp/*
===Creating a new ISO image===
The extra 'rm' commands are just in case we've been here before.
chmod +w cd/casper/filesystem.manifest
chroot custom dpkg-query -W --showformat='${Package} ${Version}\n' > cd/casper/filesystem.manifest
cp cd/casper/filesystem.manifest cd/casper/filesystem.manifest-desktop
rm -f cd/casper/filesystem.squashfs
mksquashfs custom cd/casper/filesystem.squashfs
rm cd/md5sum.txt
(cd cd && find . -type f -print0 | xargs -0 md5sum > md5sum.txt)
rm -f Ubuntu-Live-custom.iso
cd cd
mkisofs -r -V "Ubuntu-Live-Custom" -b isolinux/isolinux.bin -c isolinux/boot.cat -cache-inodes -J -l -no-emul-boot -boot-load-size 4 -boot-info-table -o ../Ubuntu-Live-custom.iso .
cd ..

Revision as of 05:14, 2 July 2009

WallTop computers... recycle an old laptop by removing all the extraneous parts such as the cdrom drive, floppy drive, (dead) battery and then hanging it on the wall.

I am building one from an old Dell Inspiron 3700.

Operating system

I looked at using Debian, Damn Small Linux, Puppy Linux (which immediately panics on boot), and Movix. I decided I might as well stick with Ubuntu so I am building a custom Live CD. I will then transfer it to a Compact Flash card, which will be plugged into an adapter and replace the incredibly noisy stock 4200 rpm hard drive.

See http://www.debuntu.org/how-to-customize-your-ubuntu-live-cd

Oh! This was a bad idea. Much stuff deleted from this page!

The way to do this is Debian Live!

Debian Live wiki

Building an USB/HDD image

After installing the live-cd packages on the Ubuntu based build host

  1. lh_clean --binary
  2. lh_config -a i386 -b usb-hdd --packages fluxbox
  3. Customize
  4. lh_build
  5. Copy image to CF: dd if=binary.img of=${USBSTICK}
  6. To test image, start in qemu or convert img file to a vmdk and use vmware
  7. To use in walltop, transfer CF to laptop and boot it

Customization

emacs21-nox
libcurl3
openssh-server
realplayer
flash
vlc
adduser bwilson
adduser kiosk
Give root a password 
Copy in .ssh directories for root and bwilson