rufwoof wrote:Hollipl only has 512MB Mike. For a full install you ideally need at least a GB I'd say. 512MB would work provided you had a swap file/partition ... but would tend to be slowed down by swapping to/from disk.mikeslr wrote:As you have 1 Gb of RAM and can run Tahrpup easily, there is no advantage if you chose a Full Install. One of the disadvantages of a Full install is that applications you install --and crap you acquired while surfing the web-- will automatically be written to your hard-drive.Except in some cases, such as when you load a PET and it uses the 'save' space as a work area.With a Frugal Install, you can set Tahrpup up to only write to your hard-drive on command
The way I run Debian LXDE is I installed grub4dos, created a empty partition and use that partition for everything, grub4dos (menu.lst, grldr), the main filesystem (filesystem.squashfs) and as the save folder (partition). Nothing preventing that also being the location of a swap file either ... such as creating/activating a 1GB swapfile :
dd if=/dev/zero of=swapfile bs=1M count=1024
mkswap swapfile
swapon swapfile
You have to set that partition as being bootable such as in gparted, and also give it a partition LABEL of 'persistence' (without the quotes).
For the Debian LXDE I use I downloaded a CD from here http://cdimage.debian.org/cdimage/unoff ... rent-live/ that includes non-free firmware, in my case selecting the amd64 folder choice as my PC is 64 bit (use the i386 folder is 32 bit) http://cdimage.debian.org/cdimage/unoff ... rent-live/ select the iso-hybrid sub-directory and ... pick one. I went for the ....lxde-desktop+nonfree.iso type file to download.
Once downloaded then you need to extract the live folder from that iso to the HDD partition alongside grldr and menu.lst (grub4dos installed files).
Then its just a matter of editing menu.lst to use that, something like
title Debian Jessie Frugal RO
find --set-root /live/filesystem.squashfs
kernel /live/vmlinuz boot=live config nofastboot persistence persistence-read-only persistence-label=persistence quickreboot noprompt showmounts live-media-path=/live/ config rw
initrd /live/initrd.img
A second boot choice of booting read/write so all changes are recorded requires only the persistence-read-only boot parameter to be removed
title Debian Jessie Frugal RW
find --set-root /live/filesystem.squashfs
kernel /live/vmlinuz boot=live config nofastboot persistence persistence-label=persistence quickreboot noprompt showmounts live-media-path=/live/ config rw
initrd /live/initrd.img
Taking that a step further, you can extract all of the filesystem.squashfs to the save 'folder' i.e extract all of filesystem.squashfs to the / folder. You can't do that directly so first you extract to a new/empty folder and then move everything in that folder up to the root folder
cd live
unsquashfs -d tempfolder filesystem.squashfs
... and then open tempfolder in a filemanager window, ensure all files including hiddenfiles are highlighted/selected and drag/drop those to another window showing the / folder and 'MOVE'. tempfolder is then left empty and can be deleted.
With everything in the 'save folder' there's no further need for filesystem.squashfs so that can be deleted, but best to create a empty one in its place otherwise that could prevent sfs's from being loaded.
cd live
rm filesystem.squashfs
mkdir tmp
mksquashfs tmp filesystem.squashfs
rmdir tmp
With that further step you in effect have a full install that can be booted like a frugal where changes aren't preserved on disk, just recorded in memory .... which runs a lot faster. Or you can boot it read/write where all changes are preserved as and when made.
The final step is to adjust from using /live/initrd and /live/vmlinuz boot files to using sym links to those in /boot ... as that way any Debian kernel updates will be correctly installed/used. i.e. create initrd.img and vmlinuz as sym-links to the initrd and vmlinuz files (with longer file names that indicate the version numbers) in /boot and adjust menu.lst to use those sym-links
title Debian Jessie Frugal RO
find --set-root /live/filesystem.squashfs
kernel /vmlinuz boot=live config nofastboot persistence persistence-read-only persistence-label=persistence quickreboot noprompt showmounts live-media-path=/live/ config rw
initrd /initrd.img
title Debian Jessie Frugal RW
find --set-root /live/filesystem.squashfs
kernel /vmlinuz boot=live config nofastboot persistence persistence-label=persistence quickreboot noprompt showmounts live-media-path=/live/ config rw
initrd /initrd.img
Instead of the RW boot choice above, I've set mine to chain to the Debian boot loader, which I installed from within Debian
title Debian FULL Install RW filesys must be extracted (/boot/grub/menu.lst)
find --set-root /boot/grub/menu.lst
configfile /boot/grub/menu.lst
commandline
So no different to a full install ... except that its booted via grub4dos that chains to it. I use that choice to run updates, that otherwise might exceed available memory space i.e. written to disk as soon as changes made. Slow, but used relatively infrequently. For the rest of time I use the RO boot choice (faster), but where no changes are recorded. However you can link from that read only layer to the main save folder, for example I created a /Documents-Persistent folder and once booted I created a sym link to that from within /home/user folder, so that I have a Documents, Picture ....etc where changes are lost after reboot, but also a Documents-Persistent folder where any changes within that are preserved across reboots.
I also have a script that I can run that's very similar (a adjusted version of) snapmergepuppy, so I can flush all changes in a RO session to disk to preserve them simply by running that script.
If you only use programs from Debian repository and perform updates periodically i.e. in a terminal running as root
apt-get update
apt-get upgrade
then you'll have a very stable installation that keeps up to date, that in the above case can be booted read only so you can try out things and not save them ...etc.
Don't forget to set a root password i.e.
sudo passwd root
and enter a password of your own choice (you have to enter it twice).
Debian runs by default as 'user' not as 'root' which is safer, especially if you run a browser. LXDE is nice in that respect as its file manager pcmanfm includes a right click menu option to open a folder in a root based window. Which at first seems a bit weird to do after using puppy, but soon becomes more natural instinct.
I suspect that with a swap file created/used of perhaps 1GB size, Hollipl could have that running ok on that laptop. Can't say for sure as mine has 2GB (more than enough such that I don't even need to allocate a swap file/partition).
You can still load sfs's with that (when booted RO only) simply by dropping them into the /live folder. Any files with .squashfs suffix will get loaded at bootup in alphanumeric order. Or if you create a filesystem.module file in that /live folder then only the .squashfs files listed in that file will get loaded at bootup, in the order specified in that file. Personally I don't bother as its just as easy for me to load/unload stuff using Synaptic (from the Debian repository).
For completeness my /usr/local/bin/flush2disk script is attached below, which of course needs to be made executable in order to run. Other than that script the rest of my installation is pure Debian. Around 4GB in total space used (no swap file included) which I have installed on a 15GB partition.
Best of all worlds IMO. Stable repository with security updates quick to come through. And can boot frugal style where changes aren't recorded, except if you want them to be. And runs quicker as changes are recorded in memory instead of to disk. But can be booted to the equivalent of a fully installed Debian (which reminds me another change you should make is make the repositories inspected be a wider range i.e. /etc/apt/sources.list should look like
###### Debian Main Repos
deb http://ftp.uk.debian.org/debian/ jessie main contrib non-free
###### Security
deb http://security.debian.org/ jessie/updates main contrib non-free
If you intend to compile stuff then you should add the sources (src) to that e.g. maybe a sources.list content of :
deb http://http.debian.net/debian/ jessie main contrib non-free
deb-src http://http.debian.net/debian/ jessie main
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main
rufwoof,
That actually sounds amazing! it doesn't sound too terribly complicated, but i would probably still want someone to walk me thru it a little bit more indepth, tho it definately is not out of my skill range at the moment. The system you were describing would be almost perfect to get maximum use out of this old machines specs. I can be reached by adding @outlook.com to my username and sending an email :] perhaps you could walk me through a little bit on an instant messenger or skype? at the moment I'm running tahrpup with xcfe FULL install, and whenever I use an application i'm forcing any saved files to goto the 48 gig partition by browsing to such location.. etc.
This is my first real dive into puppy, and I knew that it had plenty of power to setup such a system as you were describing I just didn't know where to start to get my hands dirty. I migrated recently from Bunsen labs because someone had abandoned the repos and I kept getting KEY ERRORS all over the place installing things from command line, so then I was tracking down package files in the web browser to satisfy dependances and It was just a mess