Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (7) </ [1] 2 3 4 5 6 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DSL on USB-Stick HOWTO, A manual howto install DSL on a USB-Stik< Next Oldest | Next Newest >
doom4 Offline





Group: Members
Posts: 26
Joined: Oct. 2004
Posted: Dec. 05 2004,11:47 QUOTE

Howto install DSL

1. What we need
2. Starting installation
2.1 Burning the image
2.2 Booting the system
2.3 Loading missing modules
2.4 Checking USB Stick
2.5 Preparing the USB Stick
2.6 USB Stick without partition
3. Writing the USB Image
3.1 Two ways
3.2 Using frugal_usb.tar.gz
3.3 frugal_usb.sh
3.4 Shutdown and reboot
4. Personalize your DSL install
4.1 Restore/Backup
4.2 Reboot with saved settings
5. Editing the bootmanager
5.1 DSL restore as default option
5.2 Changing the greeting message
5.3 A broken MBR
6. Execute commands during the boot
6.1 The network
6.2 The wireless network
7. Installing more software
7.1 A real browser
7.2 A real word prozessor
7.3 The new Fluxbox version
7.4 Getting the icons on the desktop
7.5 Deleting icons on the desktop



















1. What we need

First we need a USB Stick. I use a 128 MB stick from Kingston. You can use a 64 MB Stick too, but if you want some software like Firefox as webbrowser or Abiword as wordprosessor its better to have a littlebit more space then only for the main system.

Then we need some DSL files:
1. The current DSL image download it from here:
2. The current frugal_usb.tar.gz download it from here:
3. The current USB bootimage download it from here:
Save 2. and 3. on on floppy disk, a second USB Stick or your main hard drive.

2. Starting installation

2.1 Burning the image
First burn the DSL image on a CD. When you have a RW because after our USB Stick installation we dont longer need the CD.

2.2 Booting the system
After that boot from the CD. You will find a full working DSL. In the most cases DSL detects the right Hardware, but sometimes like in my laptop DSL forgets some drivers but more later.

2.3 Loading missing modules
Now go to XTerminal and double klick on it. The console appears. Now type "lsmod". Check if you have the following modules:
- usb-storage
- ehci-hcd
- usb-uhci
- usbcore
If one of them are not in the list you have to load them by hand. For example in my laptop everytime after a CD boot was the module ehci-hcd missing and i was not able to mount my USB Stick. Type "insmod ehci-hcd" to load this missing module. If another module is missing replace ehci-hcd with the missing module. When you are finished and all the four modules are loaded try first if you are able to load your USB Stick.

2.4 Checking the USB Stick
Plug-in the USB Stick and try "cdrecord --scanbus". Here you can see now your USB Stick and your CD drive. If not mail me we will found a solution.

2.5 Preparing the USB Stick
Now we know that our USB Stick is known but the system. Now lets make a partion on the USB Stick with FAT16. The bootloader needs needs a FAT system. To do that type "cfdisk /dev/sda". If that fails try to use instead of sda, sdb or sdc. Be sure now that you backuped everything from the USB Stick because you will loose all your data. Look under FS Type if its FAT16 and look at Flags if there are Boot, if yes everything is good and you can leave cfdisk.
Now for those of you were its not the case of having FS Type FAT16 and/or Flags Boot. We
Start by changing the FS Type by going to the point Type in the menu and then hit <enter>. Here you find a list of possible FS Types. We need the number of FAT16 and thats the 6. So press any key (did you ever aks your self where the any key is? :] ). Now enter as filesystem type the 6 and hit <enter>. Now there must be FS Type FAT16.
To change to Flag to Boot go to Bootable and hit enter. Now Flags is Boot.
Now go to Write and hit <enter> say yes and Quit cfdisk.

2.6 USB Stick without partition
In 1% of the cases it is possible that you don't have a partion and you have nothing in the cfdisk display. Then go to new and follow the instructions. Use all the default values to be sure. Then follow the instructions of 2.5.

3. Writing the USB Bootimage

3.1 Two ways
There are two ways. The easyiest is to right click on your desktop then Apps > Tools > Install to USB Pendrive . But everytime was wanted to use this i got an error or the window appears and disappers in the same moment or i got a black window. But if its working you can switch directly to 3.3

3.2 Using frugal_usb.tar.gz
Now mount the drive where you saved frugal and the bootusb. When you saved it on a floppy plug it in now and typ in a Xterminal "mount /mnt/floppy", when its a second USB Stick plug it in and type "sudo mount /dev/sdb1 /mnt/cdrom" or when its your main hard drive type "mount /mnt/hda1". Then type "tar xvfz <path to your frugal_usb.tar.gz". For example you have Windows XP and you saved it on your desktop with the username xyz then type "tar xvfz /mnt/hda1/Dokuments and Settings/xyz/Desktop/frugal_usb.tar.gz. When you use a floppy do "tar xvfz /mnt/floppy/frugal_usb.tar.gz". Now change your directory to home/dsl buy typing "cd home/dsl". Copy now the bootusb.img to this folder by typing "cp <path to your bootusb.img> ." . Now type sh frugal_usb.sh.

3.3 frugal_usb.sh
Now its the same for both. Say yes you are ready (i hope so).  Now you have to type in the device where you want DSL installed on. When your USB Stick is sda1 then type sda1, if its sdb1 then type sdb1 and so on. Now you have the last chance to exit, but you dont want that yo type "y". Now he (the script :]) is doing everything for you. After its finished your USB Stick is ready to use.

3.4 Shutdown and reboot
Now shutdown your linux by right click and the desktop and then Powedown > Reboot and go into the bios. Try to add your USB Stick as boot option. Every bios is different so try to figger it out yourself or ask in the DSL forum if somebody has your bios and ask him how to setup it to make it bootable. Some bios's needs a -s option in the syslinux command. So if after setting up the bios well and its still not working that can be a possibility to try. Go back the step 3.2 and before you start frugal_usb.sh start an editor like scite and type "scite frugal_usb.sh". Change
"./syslinux -o bootusb-0.8.img /dev/$USB" to "./syslinux -s -o bootusb-0.8.img /dev/$USB"
thats in the line 58. Save and start frugal_usb.sh.
Now cross your fingers and i hope for you that DSL is booting.

4. Personalize your DSL install

4.1 Restore/Backup
Perhaps you have already recodnized that if you save something in your DSL linux and you reboot all your files are left. But DSL has a very nice system to save data and restore it. First you have to decide where you want to store your data. I store my data on the USB Stick to be able to use my stick in every computer. But you can store also your data on a floppy disk or if your harddrive is not NTFS you can also store the data on this drive. But lets first see wich files we have to edit to make a folder/file be restored after a restart. Our example is that we create a directory called saves in the home directory for word documents or pictures etc and we want all the other setting like thes from the windows manager be restored. For this we open Xterminal and type "mkdir saves". Then type "scite filetool.lst". This file contains every file or folder wich has to be restored after a restart. Add here the line "home/dsl/saves" and save the file.

TIP:
If you want you can also add one of the settings folders of your programmes. For example XMMS saves its setting in your home folder in .xmms so add also the line "home/dsl/.xmms" if you want the settings of XMMS saved. Have a look to the other setting diretorys. To do this open Xterminal and type "ls -a". Settings directorys are the directorys beginning with a dot.

Now we have to enable the backup/restore function during the shutdown prozess. Type "scite /opt/powerdown.sh" and uncomment the linux with filetool.sh (uncomment means delete the #). Save the file. Now make a right click on the desktop and go to Desktop > Backup/Restore . Now you have to chose your backup device. For USB Stick "sda1" (or sdb1,sdc1 but in most cases sda1), for floppy "fd0" and for hard drive "hda1" or for the second partion "hda2". When you have more the one hard drive it is possible that its hdb or hdc. Then click an Backup. Now your first thing is backuped and on the backup device the file backup.tar.gz is created. There everything is saved what is to restore.

4.2 Reboot with saved settings
Try now to reboot you DSL linux and type in the bootmanager command line "dsl restore=<backup device>". Backup device is the same like you typed in linux before. When the window manager appears start Xterminal and type "ls". Now you see the direcotry saves.




5. Editing the bootmanager

5.1 DSL restore as default option
I was boreded to type everytime in the bootmanagers command line "dsl restore=sda1" so i changed it that i can hit enter or wait. If you want this open in linux Xterminal and type "sudo scite /cdrom/syslinux.cfg". In the second line wich starts with APPEND add between lang and apm the command restore=<backup device> in my example i added restore=sda1. Save it and now your default solution is with the restore command. Dont forgett to save and reboot. If you see the saves directory it works.

5.2 Changing the greeting message
If you want to change the bootmanagers greeting message type "sudo scite /cdrom/boot.msg". Now edit it to what you want and save it. More informations about howto change colours or the pictures are in the well discribed manual from syslinux.
Get it here: www.syslinux.org?!?!?!.

5.3 A broken MBR
My MBR was broken after playing with more then one USB Stick distro. So i want to tell you how to repair it and make it usable for DSL.First boot your computer with the DSL CD image and get from syslinux.org the newest version of syslinux unpack it with "tar xvfz syslinux-<vers>.tar.gz".
BE AWARE ALL YOUR DATA WILL BE LOST AFTER REPAIRING THE MBR!!
If your USB Stick is sda1 go to the syslinux directory by typing "cd syslinux" and there type "cat mbr.bin > /dev/sda". Now you have to go back to the beginning. 2.6 is your frind now because also the partion table is deleted now.

6. Execute commands during the boot

6.1 The network
If you are one of the lucky users where DSL detects the networkcard well you don't won to retype every reboot your ip adress so you can add it quite easy during the boot up. Also if DSL doesn't detects your networkcard and you have to reload it by hand you can add this command to be excute during the bootup. First lets test if the card is detected. Right click on the desktop System > Net Setup > netcardconfig. When you are now asked if you want to use a DHCP the card is well detected. If you have a Broadcom card like me you have to reload it. For other cards i can't really help you but try to have a look witch card it is and go to the DSL forum. Somebody has for sure a solution for you. So now start Xterminal and type "sudo scite /opt/bootlocal.sh". If you have a Broadcom card like me add the line "insmod b44". Then for give an ip add the following:

ifconfig eth0 <IP> netmask 255.255.255.0 broadcast <broadcast adress> up
route add default gw <gateway ip>
echo "nameserver <nameserver ip>" > /etc/resolv.conf

and change everything from <...> to valid ip's in your network. Save the file and now you have after the reboot a working network. If you want to use it now follow the instructions from System > Net Setup > netcardconfig.

6.2 The wireless network
I am still by searching a solution for me. So please wait for an update.

7. Installing more software

7.1 A real browser
Dillo is nice but ....
So Firefox is a really nice solution. Small and quick. So go to http://ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/net/ and download here the newest version of firefox. The programms from there are very easy to use. Ones you downloaded it make a copy of firefox to your USB Stick. To do this open Xterminal and type "sudo cp <firefox> /cdrom" and change <firefox> into the name of the firefox file. Now type "mydsl-load <firefox>" for instant use. Then "/opt/firefox/firefox" and Firefox should appears. So but now you want also your settings be restored after a reboot. So add by typing in the Xterminal "scite filetool.lst" in our backup file the line "home/dsl/.mozilla". Now every setting is restored after reboot.

7.2 A real word prozessor
Tes is nice but ....
So AbiWord is a nice solution. Small and quick :). Go to http://ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/apps/  and search for AbiWord. Do the same like in 7.1 but now with the AbiWord file. The setting directory of AbiWord is "home/dsl/.AbiSuite".

7.3 The new Fluxbox version
Go to http://ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/wm_apps/ and search for the Fluxbox file. Download it and do the same like in 7.1/2 but don't add something in the filetool.lst file. Now to make the new update been started after a reboot do the following. Open Xterminal and type "scite filetool.lst" and add "home/dsl/.bash_profile". Then type "scite .bash_profile" and comment the linux witch starts with "if" (means add a #) the add on the end of the file "start_fluxdev" and save the file.  

7.4 Getting the icons on the desktop
After a reboot you get for AbiWord and Firefox a icon on the desktop. Or if you dont want to make a restart right click on the desktop Windowsmanager > Exit and then type "startx" when you haven't done 7.3 and "start_fluxdev" with 7.3 to get the new fluxbox.

7.5 Deleting icons on the desktop
Until now I don't know a better soltuion but it works. Open Xterminal and type "rm .xtdesktop/<name of the link/icon>.*" and replace <...> with the name of the icon you want to delete. If you dont know the name hit tab twice aber the / in .xtdesktop and all the files in this directory are visible for you


plz report any error to max.ebert@titoly.de thx
Back to top
Profile PM 
doom4 Offline





Group: Members
Posts: 26
Joined: Oct. 2004
Posted: Dec. 08 2004,17:25 QUOTE

does nobody needs help or have any question?

(sry i got one mail but i deleted it sry really perhaps post your question here or send it again)

greets doom4
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Dec. 08 2004,17:36 QUOTE

FYI,

Nice job on the HOWTO.

I have not used it personally, but it looks very well written.
Back to top
Profile PM 
Wolkenläufer Offline





Group: Members
Posts: 8
Joined: Nov. 2004
Posted: Dec. 10 2004,13:51 QUOTE

hm..i failed at 2.3 i cant find XTerminal in DSL 9.0.1

I tried it with bash but i got following message:

/lib/modules/2.4.26/kernel/drivers/usb/host/ehci-hcd.o init_module: no such device.

so, what is my fault?
Back to top
Profile PM 
Tekka
Unregistered






Posted: Dec. 13 2004,03:15 QUOTE

doom4: I went through each step and the different scenarious in your FAQ.

As it turns out I hda to manually extract the frugal_usb.tar.gz

When I run the frugal_usb.sh I receive an error stating the /dev/loop0 is not a valid device. I am especially concerned about that error becuase that mean I will not be able to create the boot image on the USB Drive.

Also when it attemps to copy the knoppix folder from the cdrom, that also fails. I am doing this all as root.

Do you have an insite?

Thanks in advance!
Back to top
34 replies since Dec. 05 2004,11:47 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (7) </ [1] 2 3 4 5 6 ... >/
reply to topic new topic new poll
Quick Reply: DSL on USB-Stick HOWTO

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code