Light-Debian-Core-Live-CD-Wheezy + Porteus-Wheezy
On openbox_xfce version I have no problem installing but running it gives problem because /usr/games is not in PATH env.stemsee wrote:I can't install briquolo, nor zaz ! Any known issues?
Toni, some time ago I thought it was fixed by reading the PATH from /etc/environment but that doesn't work anymore.
Changing it in /etc/profile does work so that needs to be fixed for the next release.
If you can make the change yourself I have absolutely no objection if you change anything in any script of mine as long as you inform me about it.Fred, I might ask you later to include /initrd in exclude folders for RemasterDog.
I trust you don't mess things up
Fred
Hi, Fred.
I hope I will not break RemasterDog It needs only /initrd in exclude command and some extra removing while cleaning. I will post edited version when I'm ready.
Toni
Jwm version PATH is in /etc/profile. Only when xdm is activated it reads the path from xdm config files.fredx181 wrote:Changing it in /etc/profile does work so that needs to be fixed for the next release.
I hope I will not break RemasterDog It needs only /initrd in exclude command and some extra removing while cleaning. I will post edited version when I'm ready.
Toni
Hi Toni,
To avoid misunderstanding; I just mean PATH needs fixed only on openbox version, can you add it to the changes/fixes section?
I just see Jwm version has different remasterdog.
On openbox there's included /tmp as option (as anikin requested), you didn't like it maybe?
As for adding initrd folder as exception to copy, just add it to "--exclude=...." on line 43 like this:
EDIT: Sorry, above must be wrong, probably it is this (with the "/" before initrd, didn't test this):
EDIT: Again wrong, this works, tested now:
Later I changed it to a bit different (which I like more because it's similar setup as the rsync commandline):
So with added initrd folder it is:
And then with excluded initrd folder on line 47:
Fred
Not sure what you mean.Jwm version PATH is in /etc/profile. Only when xdm is activated it reads the path from xdm config files.
To avoid misunderstanding; I just mean PATH needs fixed only on openbox version, can you add it to the changes/fixes section?
I just see Jwm version has different remasterdog.
On openbox there's included /tmp as option (as anikin requested), you didn't like it maybe?
As for adding initrd folder as exception to copy, just add it to "--exclude=...." on line 43 like this:
Code: Select all
TOTAL=$(du -cbs --apparent-size /bin /boot /etc /home /lib /opt /root /sbin /usr /var --exclude="/lib/live/mount,initrd" | awk 'END {print $1}')
Code: Select all
TOTAL=$(du -cbs --apparent-size /bin /boot /etc /home /lib /opt /root /sbin /usr /var --exclude="/lib/live/mount,/initrd" | awk 'END {print $1}')
Code: Select all
TOTAL=$(du -cbs --apparent-size /bin /boot /etc /home /lib /opt /root /sbin /usr /var --exclude=/{lib/live/mount,initrd} | awk 'END {print $1}')
Code: Select all
TOTAL=$(du -cbs --apparent-size / --exclude=/{dev,live,lib/live/mount,cdrom,mnt,proc,sys,media,run,tmp} | awk 'END {print $1}')
Code: Select all
TOTAL=$(du -cbs --apparent-size / --exclude=/{dev,live,lib/live/mount,cdrom,mnt,proc,sys,media,run,tmp,initrd} | awk 'END {print $1}')
Code: Select all
rsync -a / "/mnt/$DRV/$WRKDIR" --exclude=/{dev,live,lib/live/mount,cdrom,mnt,proc,sys,media,run,tmp,initrd} 2> /dev/null &
Last edited by fredx181 on Thu 03 Jul 2014, 20:44, edited 1 time in total.
Hi, Fred.
It is not only /initrd excluding change. I still work on initrd.gz from puppy. It creates some extra files and folders in /lib and /etc that have to be removed in the cleaning section of the script. I will upload edited version of RemasterDog for you when I'm sure what exactly has to be cleaned.
Toni
Done.fredx181 wrote:To avoid misunderstanding; I just mean PATH needs fixed only on openbox version, can you add it to the changes/fixes section?
Maybe I missed it is updated RemasterDog for the iso versions. I will add it from OpenBox version.I just see Jwm version has different remasterdog.
On openbox there's included /tmp as option (as anikin requested), you didn't like it maybe?
It is not only /initrd excluding change. I still work on initrd.gz from puppy. It creates some extra files and folders in /lib and /etc that have to be removed in the cleaning section of the script. I will upload edited version of RemasterDog for you when I'm sure what exactly has to be cleaned.
Toni
Hi Toni,
http://murga-linux.com/puppy/viewtopic. ... 264#773264
Just for info: There are two 'TOTAL=...' occurrences in there, one for the /tmp option on line 37 and on line 95 for the other options (and on line 99 there's the rsync command)
Fred
Thanks!To avoid misunderstanding; I just mean PATH needs fixed only on openbox version, can you add it to the changes/fixes section?
Done.
My reply to Anikin who suggested /tmp as option for remasterdog:Maybe I missed it is updated RemasterDog for the iso versions. I will add it from OpenBox version.
http://murga-linux.com/puppy/viewtopic. ... 264#773264
Just for info: There are two 'TOTAL=...' occurrences in there, one for the /tmp option on line 37 and on line 95 for the other options (and on line 99 there's the rsync command)
Fred
Hi Toni and Fred,
Since you are finalizing remasterdog, one little thing regarding mksquashfs. From what I'm reading, the command in live-build scripts, specifically those of Steven Shiau has a minor difference:that is, boot is explicitly excluded. Not a big deal, just thought I'd mention it. Interesting, the way mksquashfs is used in his scripts:
Since you are finalizing remasterdog, one little thing regarding mksquashfs. From what I'm reading, the command in live-build scripts, specifically those of Steven Shiau has a minor difference:
Code: Select all
-b 1024k -comp xz -Xbcj x86 -e boot
stevenshiau 2012-10-25 02:08:15
Before running mksquashfs, you can assign some environment variables:
export MKSQUASHFS_OPTIONS="-b 1024k -comp xz -Xbcj x86 -e boot"
Then your mksquashfs will honor that.
This was the parameters used when creating GParted live
Not needed I think because for several reasons we want to keep the /boot dir as part of the system.anikin wrote:Since you are finalizing remasterdog, one little thing regarding mksquashfs. From what I'm reading, the command in live-build scripts, specifically those of Steven Shiau has a minor difference:
Code:
-b 1024k -comp xz -Xbcj x86 -e boot
Fred
We need /boot folder to have working mkinitramfs for creating new initrd.img after installing new kernel.
http://www.murga-linux.com/puppy/viewto ... 460#774460
And because we keep /boot/config-3.2.0-4-486 needed for some programs like Firehol:
http://www.murga-linux.com/puppy/viewto ... 473#774473
I'm sure there are more reasons to keep it.
http://www.murga-linux.com/puppy/viewto ... 460#774460
And because we keep /boot/config-3.2.0-4-486 needed for some programs like Firehol:
http://www.murga-linux.com/puppy/viewto ... 473#774473
I'm sure there are more reasons to keep it.
Hi, Fred.
RemasterDog with the changes for puppy initrd.gz boot:
http://smokey01.com/saintless/Fredx181/ ... tmp.tar.gz
The changes you posted yesterday for excluding /initrd + some more cleaning lines added. Copying files progress bar does not move for puppy initrd.gz boot but this is not a big problem. It will be only optional boot method for anyone who like to adapt it better in time.
Toni
RemasterDog with the changes for puppy initrd.gz boot:
http://smokey01.com/saintless/Fredx181/ ... tmp.tar.gz
The changes you posted yesterday for excluding /initrd + some more cleaning lines added. Copying files progress bar does not move for puppy initrd.gz boot but this is not a big problem. It will be only optional boot method for anyone who like to adapt it better in time.
Toni
Hi Toni,
Fred
initrd needs to be excluded also on line 96, now you've changed only the TOTAL line for /tmp option on line 38RemasterDog with the changes for puppy initrd.gz boot:
http://smokey01.com/saintless/Fredx181/ ... tmp.tar.gz
Fred
Hi Toni,
Also line 38 has missing sed command at the end so this way the /tmp option cannot be used, make it this:
On line 96 it needs to be without the sed command:
EDIT:Ooops, line 101 needs change also (has to be "$WORK"):
Fred
Also line 38 has missing sed command at the end so this way the /tmp option cannot be used, make it this:
Code: Select all
TOTAL=$(du -cbs --apparent-size / --exclude=/{dev,live,lib/live/mount,cdrom,mnt,proc,sys,media,run,tmp,initrd} | awk 'END {print $1}' | sed 's/.\{3\}$//')
Code: Select all
TOTAL=$(du -cbs --apparent-size / --exclude=/{dev,live,lib/live/mount,cdrom,mnt,proc,sys,media,run,tmp,initrd} | awk 'END {print $1}')
Code: Select all
rsync -a / "$WORK" --exclude=/{dev,live,lib/live/mount,cdrom,mnt,proc,sys,media,run,tmp,initrd} 2> /dev/null &
Thank you, Fred!
I will add the changes and test it again.
Maybe I miss something, but the script seems to work correct for me as it is uploaded for live-boot-2x and puppy initrd boot. I will recheck later again after the changes.
Edit: No, I actually have tested and proper working the old version of RemasterDog. The uploaded script with /tmp has even defrent workdir . It is "/mnt/$DRV/$WRKDIR" in old one and "$WORK" in the new one. I will recheck all again for errors.
Edit2: It should be OK now. This is what happens when I do copy/paste from previous version of script
Thanks, Fred!
http://smokey01.com/saintless/Fredx181/ ... tmp.tar.gz
Toni
I will add the changes and test it again.
Maybe I miss something, but the script seems to work correct for me as it is uploaded for live-boot-2x and puppy initrd boot. I will recheck later again after the changes.
Edit: No, I actually have tested and proper working the old version of RemasterDog. The uploaded script with /tmp has even defrent workdir . It is "/mnt/$DRV/$WRKDIR" in old one and "$WORK" in the new one. I will recheck all again for errors.
Edit2: It should be OK now. This is what happens when I do copy/paste from previous version of script
Thanks, Fred!
http://smokey01.com/saintless/Fredx181/ ... tmp.tar.gz
Toni
Hi Toni, Fred and everyone,
Please, have a look at this command on line 58 I changed it as follows: but it doesn't seem to do anything, tmpfs size remains unchanged. The same command run in the terminal without 'remount': gives me an increase of tmpfs size.
Please, have a look at this command on line 58
Code: Select all
mount -t tmpfs -o "remount,nosuid,size=${result}%,mode=1777" tmpfs /tmp
Code: Select all
mount -t tmpfs -o "remount,nosuid,size=60%,mode=1777" tmpfs /tmp
Code: Select all
mount -t tmpfs -o "nosuid,size=60%,mode=1777" tmpfs /tmp
This on Wheezy, right? (because on Jessie or Sid it's different).anikin wrote:Hi Toni, Fred and everyone,
Please, have a look at this command on line 58I changed it as follows:Code: Select all
mount -t tmpfs -o "remount,nosuid,size=${result}%,mode=1777" tmpfs /tmp
but it doesn't seem to do anything, tmpfs size remains unchanged. The same command run in the terminal without 'remount':Code: Select all
mount -t tmpfs -o "remount,nosuid,size=60%,mode=1777" tmpfs /tmp
gives me an increase of tmpfs size.Code: Select all
mount -t tmpfs -o "nosuid,size=60%,mode=1777" tmpfs /tmp
The size of /tmp is set in /etc/default/tmpfs and default is 70%.
Code: Select all
TMP_SIZE=70%VM
Code: Select all
mount -t tmpfs -o "remount,nosuid,size=60%,mode=1777" tmpfs /tmp
Code: Select all
mount -t tmpfs -o "remount,nosuid,size=80%,mode=1777" tmpfs /tmp
Code: Select all
root@dog:~# df -h
Filesystem Size Used Avail Use% Mounted on
.. stuff deleted..
tmpfs 802M 28K 802M 1% /tmp
Code: Select all
mount -t tmpfs -o "nosuid,size=60%,mode=1777" tmpfs /tmp
Yes, I'm testing it in Wheezy and the command in the script does nothing for me. In etc/defaults everything is commented out here. If I remember correctly, tmpfs is set to 20% in initrd.
Code: Select all
# Size limits. Please see tmpfs(5) for details on how to configure
# tmpfs size limits.
#TMPFS_SIZE=20%VM
#RUN_SIZE=10%
#LOCK_SIZE=5242880 # 5MiB
#SHM_SIZE=
#TMP_SIZE=