Thank you, Sfssfs wrote:Update mount-wizard & russian gettext
I will make deb package tomorrow. looks great this way.
Toni
Hi, Fred.fredx181 wrote:Hi Toni, I changed frisbee, see here:
http://murga-linux.com/puppy/viewtopic. ... 397#801397
Maybe better solution than replacing official bash?
This could have worked if you opened a terminal in /opt/bin or in /opt/apps/geany (where geany is), if you didn't: '/usr/bin/leafpad' is probably a broken symlink.anikin wrote: ln -s geany /usr/bin/leafpad
Code: Select all
ln -sf /opt/apps/geany/geany /usr/bin/leafpad
Code: Select all
cd /opt/bin/ # geany is there as a symlink
ln -sf geany /usr/bin/leafpad # symlink to symlink works also
Code: Select all
cd /opt/apps/geany/
ln -sf geany /usr/bin/leafpad
Not probably, it IS a broken symlink!Fred wrote:ln -s geany /usr/bin/leafpad
This could have worked if you opened a terminal in /opt/bin or in /opt/apps/geany (where geany is), if you didn't: '/usr/bin/leafpad' is probably a broken symlink.
I'm not sure why but I do know that variable with a "-" wasn't already working before;saintless wrote:Hi, Fred.fredx181 wrote:Hi Toni, I changed frisbee, see here:
http://murga-linux.com/puppy/viewtopic. ... 397#801397
Maybe better solution than replacing official bash?
Much better solution but I do not understand why this "-" support is removed from upgraded official debian bash package? Why it is supported in the included default bash but not in the upgraded version?
I suggest we wait with the remastering till we test frisbee proper.
Toni
Code: Select all
root@dog:~# my-var="hello"
bash: my-var=hello: command not found
root@dog:~# my_var="hello"
root@dog:~# echo $my_var
hello
root@dog:~#
OK, Fred. I will make a remaster with last frisbee and will use it for a day or two.fredx181 wrote:Yes, frisbee should be tested, but I'm almost sure it's ok because otherwise it would show error(s) (when running from terminal).
I do, thanks, It's good you keep index of changes otherwise I would be nowhereToni wrote:move-in-crypt (crypt save utility) available if you like to include it in OpenBox version
Code: Select all
instdeb-cli <package1>.deb <package2>.deb <package3>.deb
Thanks, Fred! Added to the changes list.fredx181 wrote:In case you're interested here's scripts for installing deb(s) which will automatically run 'apt-get -f install' (only) if needed, I'll include it in openbox version for right-click option 'Install deb(s)'
Included (for choice): gui script using yad and cli script using xterm.
Can be tested or used from commandline for example using cli script:Code: Select all
instdeb-cli <package1>.deb <package2>.deb <package3>.deb
Code: Select all
PARTSLIST="$(`which sudo` probepart -k 2> /dev/null | grep '^/dev/' | grep -E 'udf|iso9660|ext2|ext3|ext4|reiserfs|msdos|vfat|ntfs|minix' | cut -f 1-3 -d '|' | tr '\n' ' ')"
Code: Select all
PARTSLIST="$(/opt/apps/probepart -k 2> /dev/null | grep '^/dev/' | grep -E 'udf|iso9660|ext2|ext3|ext4|reiserfs|msdos|vfat|ntfs|minix' | cut -f 1-3 -d '|' | tr '\n' ' ')"
Code: Select all
all="`/opt/apps/probepart -k |awk -F"|" '/'$partition'/ {printf ("%.1f", $3/1024/1024)}'`G"
Code: Select all
apt-get purge ffconvert
Code: Select all
#49. if [ $TOTSIZE -gt $RAM ]; then
Yes, I agree, looks good, well thought.Toni wrote:I know it is more work but it will save us troubles later:
Code:
apt-get purge ffconvert
Install separate package with probepart and probedisk:
.......
Thanks for testing but I see no logic in swapping the variables.So I followed the calculation in the script and I think I found the bug in line 49
Code:
#49. if [ $TOTSIZE -gt $RAM ]; then
I swapped the positions of the variables and the script worked.
Code: Select all
ram_size ()
{
[ -r /proc/meminfo ] && \
grep MemTotal /proc/meminfo | \
sed -e 's;.*[[:space:]]\([0-9][0-9]*\)[[:space:]]kB.*;\1;' || :
}
TOTAL=$(du -cbs --apparent-size / --exclude=/{dev,live,lib/live/mount,cdrom,mnt,proc,sys,media,run,tmp,initrd,var/cache/apt,var/lib/apt} | awk 'END {print $1}' | sed 's/.\{3\}$//')
echo total=$TOTAL
SFSSIZE=`echo $TOTAL/3 | bc`
echo sfssize=$SFSSIZE
TEMPSIZE=`df -k /tmp | awk 'END {print $3}'`
TEMPAVAIL=`df -k /tmp | awk 'END {print $4}'`
TOTALTEMP=`echo $TOTAL + $SFSSIZE + $TEMPSIZE | bc`
TOTALTEMPPLUS=`echo $TOTALTEMP/50 | bc`
TOTSIZE=`echo $TOTALTEMP + $TOTALTEMPPLUS | bc`
RAM=$(ram_size)
echo totsize=$TOTSIZE
echo ram=$RAM