Re: FirstRUN (Personalized Settings) bug/oversight
Posted: Thu 30 Jul 2015, 17:30
What would those implications be?gcmartin wrote:with obvious implications.
What would those implications be?gcmartin wrote:with obvious implications.
Sorry for the late response. I am on vacation.Sylvander wrote:Would it be possible to have the latest configuration arrangement put into effect by default, after a short [5 second?] timeout?
And the "blank slate" arrangement only put into effect if chosen?
So the user need do nothing to get their personalizations.
Code: Select all
#!/bin/bash
bootdev=`cat /etc/rc.d/PUPSTATE |grep PUPSFS |cut -f1 -d "," |cut -f2 -d "'"`
sync
killall -9 abiword
killall -9 gnumeric
killall -9 textmaker
killall -9 planmaker
killall -9 presentations
killall -9 soffice
killall -9 scalc
killall -9 simpress
killall -9 swriter
killall -9 xchat
killall -9 evince1
killall -9 google-chrome
killall -9 chromiumb
killall -9 chromiumv
killall -9 firefox
killall -9 opera
killall -9 skype
killall -9 gtkdialog3
killall -9 vlc
sync
echo -n hihi > valami
sync
while [ ! `cat valami |grep argument` ]; do
sleep 1
umount /mnt/$bootdev 2>valami
sync
done
killall -9 yaf-splash
sync
/usr/local/apps/Connect/AppRun --connect
rm valami
sync
cim=`/etc/rc.d/rc.firewall save`; vancim=`echo $cim |grep -c addresses`; csaklokal=`echo $vancim |grep -c 127.0.0.1`
if [ $vancim == 0 ] || [ $csaklokal == 1 ]; then
INTERFACES="eth0"
for INTERFACE in $INTERFACES #exs: wlan0 eth0
do
# ------------ last trial with eth0
[ -d /sys/class/net/${INTERFACE}/wireless ] && continue #only want wired.
ifconfig eth0 up > /tmp/sns_wired_log 2>&1
[ $? -ne 0 ] && continue
if ! ifplugstatus-0.18 "eth0" | grep -F -q 'link beat detected' ;then
sleep 1
if ! ifplugstatus "eth0" | grep -F -q 'link beat detected' ;then
sleep 1
if ! ifplugstatus-0.18 "eth0" | grep -F -q 'link beat detected' ;then
sleep 1
if ! ifplugstatus "eth0" | grep -F -q 'link beat detected' ;then
sleep 1
if ! ethtool "eth0" | grep -Fq 'Link detected: yes' ; then
ifconfig eth0 down
sync
continue #no network.
fi
fi
fi
fi
fi
MACADDRESS="`ifconfig -a eth0 | grep -o 'HWaddr .*' | cut -f 2 -d ' '`"
maPATTERN='|'"$MACADDRESS"'|'
DHCPCDFIX="`grep "$maPATTERN" /tmp/sns_connections_wired | head -n 1 | cut -f 7 -d '|'`" #100325 ex: -I ''
MODTIME1="`stat --format=%Y /etc/resolv.conf`"
dhcpcd $DHCPCDFIX eth0 >> /tmp/sns_wired_log 2>&1
MODTIME2="`stat --format=%Y /etc/resolv.conf`"
[ "`grep -v '^#' /etc/resolv.conf`" == "" ] && MODTIME2=$MODTIME1 #fail.
done
sync
chown -Rf spot:spot /root/spot/
sync
if [ "$MODTIME2" != "$MODTIME1" ];then
echo "eth0" > /tmp/sns_interface_success #100325
/etc/rc.d/rc.firewall save
sync
else
ifconfig eth0 down
sync
dhcpcd --release eth0 2>/dev/null
ip route flush dev eth0 #100703
killall -9 yaf-splash
sync
touch /root/spot/aktual
yaf-splash -bg ref -close box -icon /usr/share/pixmaps/puli.png -timeout 10 -text "No network found!!!" &
fi
fi
sync
#restoring latestbackup begins here
mount /dev/$bootdev /mnt/$bootdev
sync
sleep 1
ls -1 /mnt/$bootdev/backups/Puli_backup_* > /dev/null 2>&1
if [ "$?" = "0" ]; then
latest=`ls -t /mnt/$bootdev/backups/Puli_backup_* | head -1`
sync
sleep 1
/usr/bin/Resto $latest
sync
sleep 1
else
umount /mnt/$bootdev
sync
sleep 1
yaf-splash -bg green -close never -fontsize large -timeout 5 -text "Now you can safely unplug the USB drive" &
fi
#restoring latestbackup ends here
The default name of a backup file isSylvander wrote:I've replaced all of the content of the file with the new code you posted.
So far I see no obvious change/difference.
I assume I would see the difference if I understood its workings.
Code: Select all
ls -1 /mnt/$bootdev/backups/Puli_backup_* > /dev/null 2>&1
if [ "$?" = "0" ]; then
latest=`ls -t /mnt/$bootdev/backups/Puli_backup_* | head -1`
sync
Code: Select all
ls -1 /mnt/$bootdev/backups/*.tar.gz > /dev/null 2>&1
if [ "$?" = "0" ]; then
latest=`ls -t /mnt/$bootdev/backups/*.tar.gz | head -1`
sync
Please let me know the configuration choices you still need to make there.Sylvander wrote:It only displays AFTER I manually make the few remaining configuration choices in the welcome dialog.
And then it is SLOW to display after this.
Numlock and Set Time.gjuhasz wrote:Please let me know the configuration choices you still need to make there.
Uploading...Sylvander wrote:When is Puli-6.0.3 going to be released?
Dear Billtoo,Billtoo wrote:I prepared a 32gb flash drive with gparted, ext4 and set the boot flag.
I downloaded the Puli-6.0.3_install.tar.gz, extracted it to a hold
directory,copied all the file to the flash drive then ran grub4dos.
I added kdegames from PPM,also arandr and gkrellm.
Seems to be working fine so far, need to read how to save this.
To a user question: In this Puli version, it is recommended that the involved backups reference to the same security profile.gjuhasz wrote:Unique in Puli: You can restore more than one backups on top of each other, regardless of the machine(s) they were created in.
1. To restore the latest backup, you need to download the http://smokey01.com/gjuhasz/packages/re ... st-1.4.pet package (e.g., to the /packages folder of your pendrive) then reference it in your smartload file as you did for wine and xfe. So, your smartload file should look like this:Sylvander wrote:Is a "Backup" auto-restored by default at startup?
And if it is, how should it be by-passed if needed?
Code: Select all
...
restore_latest
...
wine_puli_wdt
xfe-1.33
...
Code: Select all
...
-restore_latest
...
wine_puli_wdt
xfe-1.33
...
They are saved but (in this release intentionally) not used for restoration. Note that in Puli, QuickSetup provides only info and offers only session-level settings/changes. As far as I know, all features you set here session-by-session (time sync etc.) can be carved in stone in the config files of Puli.Sylvander wrote:SUCCESS! Or so it seemed. But...
d. The Welcome Dialog was displayed needing changes to English language, and keyboard...plus numlock and time-sync...
And when I OK'd those, restartX caused the wallpaper and time display to revert to the old settings.
So, not a complete success.
How to stop the need for a display of the welcome dialog?
...And retain the changes/configurations saved-in and restored-using the backup?
Aren't the welcome-dialog-settings saved in the backup?
Maybe you are restoring an older backup. Will be fixed in the planned Bark 2 version.e. Oh...and by-the-way...
When I try to manually restore the backup [by dragging it onto the "Restore" icon]...
It begins to go through the motions, but doesn't complete the restore [no notification of completion, no change of the wallpaper etc.
There will be no hiccup if, instead of /root you set /root/My Documents for your data in the HomeBank app (see its Settings dialog). Actually, the My Documents folder is saved also during SmartSave.Tried to show my wife how to use Puli for online banking [she knows how to do it using Puppy=Tahrpup multi-session DVD-RW].
There were so many difficulties using Puli we gave up trying.
Too many things didn't "just work"; some things that aught to have been simple were NOT.
Dear Sylvander,Sylvander wrote:Sounds good.
Code: Select all
/etc/rc.d/rc.firewall stop
Code: Select all
/etc/rc.d/rc.firewall start