The resulting live ISO image is about 300 Meg give or take depending on options.
Some information before I get started:
This tutor is one example of what nice things you can do with a small flexible version of linux. The method I use here will allow you to create an image of the running system (as is) and I believe is the fastest to get a resulting ISO file. If you label the final ISO's correctly, you can go back in time to what I'd like to call earlier template ISO images for whatever reason whether you started loading too much packages or you went about a method wrong as I did a couple times. Like going back before a fork was started. The second reason is I usually set these up for a public location where if the CPU is mounted in such a way that the public can't remove the live CD or USB, then I don't even need to install this to a Hard Drive. There are a couple more reasons which I can't think of at the moment but let's get started.
There are 2 sections in this tutor. First for a quick how to and Second for a more detailed how-to with more options
Key:
$ symbol means run the proceeding command as user
===========================================================================================
I) QUICK SETUP using Academy wmii Window Manager
Press Alt-Enter
First lets setup the timezone:
$sudo dpkg-reconfigure tzdata
If for any reason your time or date is wrong use:
$sudo date --set YYYY-MM-DD
$sudo date --set HH:MM:SS
Side Note: If you decide to use bork and are using a system panel/task bar like tint2 there is a config file ~/.config/tint2/tint2rc which you can change the clock's time format to %l:%M %P to show it in a 12 hour am/pm format then restart the window manager.
$dkeger
Choose a color theme or just press enter which defaults to an easily visible theme
$sudo nano /etc/apt/sources.list.d/debian.list
Fix location of apt files eq. I changed CN to US on all occurences
$sudo ceni
Follow screens and choose your network
$sudo apt-get update
Optionally install cifs-utils if you want a connection to a remote smb server
$sudo apt-get install cifs-utils
$sudo apt-get install xfe mpv
$xfe
Open a few different types of videos and associate mpv with them.
Ctrl-Q to exit out and now ready to edit a couple scripts
Optionally create folder with videos/movies and/or connect to remote drive
$sudo nano /etc/rc.local
Code: Select all
mkdir /media/video
echo "//MyRemoteVideoServerIP/MyRemoteShareName /media/video cifs ro,_netdev,user=MyRemoteUsername,password=MyRemotePassword 0 0" >> /etc/fstab
Optionally set default volume, mount remote & start file manager
$nano ~/.wmii/wmiirc_local
Code: Select all
amixer set Master 90
sudo mount -a
xfe /media/video &
Add:
Code: Select all
- /lib/live/overlay
- /lib/live/image
- /lib/live/rootfs
- /lib/live/mount
- /run/*
/usr/lib/bbqsnapshot/iso/isolinux/
whereas the installed to HDD system creates a grub2 bootloader where you can modify /etc/default/grub and run update-grub as super user.
For those who don't heed to running virtualbox warnings will notice that linuxbbq-bork-amd64-20150526.iso will not boot completely to the X window front end with a fatal server error (EE) no screens found. (Terminated with error (1)). Now you can reboot and press tab at the boot menu and change vga=current to vga=791 to get a decent sized display which boots fine. Then you will have to make sure if you're creating a snapshot of the live image you will have to add that to the isolinux.cfg file.
Ready to burn
$sudo frenchmaid -y
$sudo bbqsnapshot
Make any optional changes and press Ctrl-X to exit each editor & Q to exit ncdu
That is it and now you should have a time stamped .ISO image in the /home/snapshot folder
===========================================================================================
II) DETAILED SETUP using Academy wmii Window Manager
Press Alt-Enter (Which opens up a terminal in wmii Window Manager)
$dkeger This command changes the color theme
Choose a color theme or just press enter which defaults to an easily visible theme
$sudo nano /etc/apt/sources.list.d/debian.list
Fix location of apt files eq. I changed CN to US on all occurences otherwise you can wind up waiting a while for downloads and updates
$sudo ceni This is the text based network manager
Follow screens and choose your network
Note: If you have a problem with wifi you might need to load a driver in which case it is easier to be hooked up to a hardwire connection to download the right package.
$sudo apt-get updateAdditional Note: If you are using a usb adapter and virtualbox for this procedure, don't forget to load that usb device onto the virtualmachine by selecting devices/usb/youradapter from the virtualbox menu since usb are hotplug compatible(firmware). In my case I was using a usb-wifi dongle so I then used
sudo lsusb to see what the hardware manufacturer was
you might have to use lspci if it's a card slot or built-in
Once I saw from lsusb it was a Ralink usb adapter I ran
ceni again to hookup via my eth0 and got an ip address so I can then download/install firmware
$sudo apt-get install firmware-ralink
$sudo apt-get install cifs-utils Installs mount.cifs for smb remote connection
$sudo apt-get install xfe Installs a pretty minimal flexible file manager
$sudo apt-get install mpv Installs mpv video player (or you can install others)
$xfe You may optionally add a path here to have it open there
If you have them available, open a few different types of videos and associate mpv with them.
Ctrl-Q to exit out and now ready to edit a couple scripts
Optionally create folder with videos/movies and/or connect to remote drive
$sudo nano /etc/rc.local
Code: Select all
mkdir /media/video
echo "//MyRemoteVideoServerIP/MyRemoteShareName /media/video cifs ro,_netdev,user=MyRemoteUsername,password=MyRemotePassword 0 0" >> /etc/fstab
Optionally set default volume, mount remote & start file manager
$nano ~/.wmii/wmiirc_local
Code: Select all
amixer set Master 90
sudo mount -a
xfe /media/video &
Add:
Code: Select all
- /lib/live/overlay
- /lib/live/image
- /lib/live/rootfs
- /lib/live/mount
- /run/*
Optionally follow this tip if you want the ISO installed on HDD with user and settings included http://linuxbbq.org/bbs/viewtopic.php?f=6&t=2138#p42607 thanks @machinebacon
$sudo nano /usr/local/bin/bbqinstall
Add sharp # symbol before following lines to comment out
chroot /target deluser user
chroot /target rm -rf /home/user
Now you can clear out temp data and create the snapshot
Code: Select all
$sudo frenchmaid -y
$sudo bbqsnapshot
That's it and now you should have a time stamped .ISO image in the /home/snapshot folder
You can now write that ISO onto a CD or USB drive and boot it up and also have the option of writing it to a hard drive after you boot up the new medium you created.
To Be Continued.......