How can I reset the guest account?
- francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: How can I reset the guest account?
Trying to find the best practice with the changes folder:
viewtopic.php?f=48&t=2851
Brokenman:
I always create modules of my changes and leave them in the modules folder. When I am happy that things are stable I merge all the changes modules into a single module. Then I mostly use fresh mode and load the changes module. If I want to save some changes I just save the session as a module and continue in this way. I have NEVER experienced a problem of corruption that couldn't be fixed in seconds using this method.
Fanthom:
You can use the changes-ro feature (ro=read-only). See cheatcodes:
http://www.porteus.org/tutorials/26-gen ... -them.html
But there is more in this thread from well advised users.
viewtopic.php?f=48&t=2851
Brokenman:
I always create modules of my changes and leave them in the modules folder. When I am happy that things are stable I merge all the changes modules into a single module. Then I mostly use fresh mode and load the changes module. If I want to save some changes I just save the session as a module and continue in this way. I have NEVER experienced a problem of corruption that couldn't be fixed in seconds using this method.
Fanthom:
You can use the changes-ro feature (ro=read-only). See cheatcodes:
http://www.porteus.org/tutorials/26-gen ... -them.html
But there is more in this thread from well advised users.
Prendre son temps, profiter de celui qui passe.
-
- Shogun
- Posts: 282
- Joined: 10 Jan 2016, 17:26
- Distribution: Porteus 5.0 rc3 xfce
- Location: Denver, Colorado
Re: How can I reset the guest account?
Thanks, I suppose that is the best practice in terms of doing the least re-writing on flash drives; for simplicity, maintaining a separate copy of an installation deemed stable and using it to save over the /changes folder if it gets corrupted seems to work well enough.
- francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: How can I reset the guest account?
Maybe the best solution would be to use magic folders introduced by falcony for your guest folders or normal account settings. This has been developped by falcony and adapted and improved by fanthom to be added to porteus:
viewtopic.php?f=39&t=985
Other suggestions are proposed by brokenman and others on the topic of usb persistence.
viewtopic.php?f=39&t=985
Other suggestions are proposed by brokenman and others on the topic of usb persistence.
Prendre son temps, profiter de celui qui passe.
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: How can I reset the guest account?
Slaxmax, I thought.francois wrote:best solution would be to use magic folders introduced by falcony
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
- Ed_P
- Contributor
- Posts: 8367
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: How can I reset the guest account?
^ The oldest post I found shows Falcony.
http://forum.porteus.org/viewtopic.php? ... lders#p304
But all change folders, regardless how they are created, need to be backed up/copied for sustainability and recovery.
http://forum.porteus.org/viewtopic.php? ... lders#p304
But all change folders, regardless how they are created, need to be backed up/copied for sustainability and recovery.
Ed
- francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: How can I reset the guest account?
@bogomips:
About magic folders and falcony.
Fanthom`s words cited:
Another great contribution Falcony
I'm really inspired by your 'Magic Folders' feature - although gonna do it in a little bit different way
About magic folders and falcony.
Fanthom`s words cited:
Another great contribution Falcony
I'm really inspired by your 'Magic Folders' feature - although gonna do it in a little bit different way
Prendre son temps, profiter de celui qui passe.
- wread
- Module Guard
- Posts: 1255
- Joined: 09 Jan 2011, 18:48
- Distribution: Porteus v5.0-kde-64 bits
- Location: Santo Domingo
- Contact:
Re: How can I reset the guest account?
Delete "changes" folder.
Cheers!
Cheers!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!
The Porteus Community never sleeps!
-
- Shogun
- Posts: 282
- Joined: 10 Jan 2016, 17:26
- Distribution: Porteus 5.0 rc3 xfce
- Location: Denver, Colorado
Re: How can I reset the guest account?
Now that makes sense -- I did not want to use Magic Folders because I don't know which folders need monitoring (i.e. more specifically than /changes), but if all of guest's changes go in /home/guest, I see its utility.francois wrote:Maybe the best solution would be to use magic folders introduced by falcony for your guest folders or normal account settings. This has been developped by falcony and adapted and improved by fanthom to be added to porteus:
viewtopic.php?f=39&t=985
Other suggestions are proposed by brokenman and others on the topic of usb persistence.
-
- Shogun
- Posts: 282
- Joined: 10 Jan 2016, 17:26
- Distribution: Porteus 5.0 rc3 xfce
- Location: Denver, Colorado
Re: How can I reset the guest account?
That is tantamount to re-installing the whole OS! Between saving over /changes and the use of Magic Folders, I think I already have two less drastic solutions.wread wrote:Delete "changes" folder.
Cheers!
- Ed_P
- Contributor
- Posts: 8367
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: How can I reset the guest account?
Hardly. Only the customizations you have made will be lost. Porteus will still boot and activate the modules you have installed.rchase wrote:That is tantamount to re-installing the whole OS!wread wrote:Delete "changes" folder.
If you want to save only the changes you have made maybe these scripts can help.
findchngs.sh
Code: Select all
#!/bin/sh
# http://forum.porteus.org/viewtopic.php?f=81&t=3776#p27204
X=5
if [ ! "$1" == "" ]; then
X=$1
fi
find /mnt/live/memory/changes -iname "*" -mmin -$X
read
exit
Code: Select all
#!/bin/sh
# http://forum.porteus.org/viewtopic.php?f=81&t=1612&p=11168#p11168
# folders to check (tweak for your needs):
folders="/etc /home /root /opt /usr /var"
# gather all files in one place:
mkdir /tmp/backup_folder
find $folders | xargs -I {} cp -a --parents {} /tmp/backup_folder
#create the module on your desktop with current date:
dir2xzm /tmp/backup_folder $HOME/Desktop/changes-`date +"%m-%d-%y"`.xzm
rm -r /tmp/backup_folder
mkmodchanges.sh
Code: Select all
#!/bin/bash
# Save 3.2 changes as a mod file
# https://forum.porteus.org/viewtopic.php?f=81&t=5981&start=15#p46643
MOD=mychanges
DRV=sda6
# Color definitions
txtbld=$(tput bold) # Bold
txtred=${txtbld}$(tput setaf 1) # Red
rst=$(tput sgr0) # Reset
function redpswd() {
echo -e "$1" $txtred
}
if [ `whoami` != "root" ]; then
# redpswd "Enter root's password"
echo -e "Enter root's password"
su -c "sh $0 $1"
exit
fi
echo $rst
if [ "$1" == "x" ]; then
echo 'find /mnt/live/memory/changes -iname "*" -mmin -3'
find /mnt/live/memory/changes -iname "*" -mmin -3
echo
exit
fi
# Restore
if [ "$1" == "r" ]; then
mloop /mnt/$DRV/porteus3.2/modsavedat/$MOD.xzm
cp -a -v /mnt/loop/* /
# http://forum.porteus.org/viewtopic.php?f=140&t=6646&p=52904#p52904
uloop
exit
fi
if [ -d /tmp/mod/ ]; then
rm -rf /tmp/mod
fi
mkdir -p /tmp/mod
# copy modified files
cp -a --parents /home/guest/.config/nemo/* /tmp/mod/
cp -a --parents /home/guest/.config/gtk-3.0/* /tmp/mod/
cp -a --parents /home/guest/.config/dconf/* /tmp/mod/
cp -a --parents /home/guest/.cache/dconf/* /tmp/mod/
cp -a --parents /home/guest/* /tmp/mod/
cp -a --parents /home/guest/.mozilla/plugins /tmp/mod/
cp -a --parents /home/guest/.mozilla/firefox/profiles.ini /tmp/mod/
cp -a --parents /home/guest/.mozilla/firefox/dxsqumip.default/places.sqlite /tmp/mod/
cp -a --parents /home/guest/.mozilla/firefox/dxsqumip.default/prefs.js /tmp/mod/
cp -a --parents /home/guest/.mozilla/firefox/dxsqumip.default/xulstore.json /tmp/mod/
cp -a --parents /home/guest/.mozilla/firefox/dxsqumip.default/logins.json /tmp/mod/
cp -a --parents /home/guest/.mozilla/firefox/dxsqumip.default/key3.db /tmp/mod/
if [ -d /home/guest/.mozilla/firefox/dxsqumip.default/extensions/ ]; then
cp -a --parents /home/guest/.mozilla/firefox/dxsqumip.default/extensions/* /tmp/mod/
fi
if [ ! -d /home/guest/.java/deployment/security/ ]; then
mkdir -p /home/guest/.java/deployment/security/
cp /home/guest/Backups/Java/*.sites /home/guest/.java/deployment/security/
fi
cp -a --parents /home/guest/.java/deployment/security/exception.sites /tmp/mod/
cp -a --parents /usr/share/mime/packages/freedesktop.org.xml /tmp/mod/
# http://askubuntu.com/questions/478169/why-cant-firefox-run-local-swf-files
cp -a --parents /home/guest/.cinnamon/configs/panel-launchers@cinnamon.org/* /tmp/mod/
cp -a --parents /home/guest/.cinnamon/configs/power@cinnamon.org/* /tmp/mod/
cp -a --parents /home/guest/Desktop/* /tmp/mod/
cp -a --parents /home/guest/Pictures/* /tmp/mod/
cp -a --parents /etc/NetworkManager/system-connections/* /tmp/mod/
cp -a --parents /var/lib/dhcpcd/* /tmp/mod/
cp -a --parents /var/run/NetworkManager/* /tmp/mod/
cp -a --parents /etc/localtime /tmp/mod/
cp -a --parents /etc/rc.d/rc.local* /tmp/mod/
cp -a --parents /usr/share/applications/cups* /tmp/mod/
cp -a --parents /usr/share/applications/*print* /tmp/mod/
cp -a --parents /usr/share/applications/*firefox* /tmp/mod/
if [ -f /usr/share/applications/sun_java* ]; then
cp -a --parents /usr/share/applications/sun_java* /tmp/mod/
fi
cp -a --parents /home/guest/.hplip/hplip.conf /tmp/mod/
cp -a --parents /var/cache/cups/* /tmp/mod/
cp -a --parents /etc/cups/ppd/* /tmp/mod/
cp -a --parents /etc/cups/printers.conf /tmp/mod/
cp -a --parents /etc/hosts /tmp/mod/
cp -a --parents /etc/usm/* /tmp/mod/
cp -a --parents /var/usm/ /tmp/mod/
#echo
#ls -og /tmp/mod/* | grep ":"
#ls -lght /tmp/mod | awk '{ if ($4 < 100) $4 = " "$4 } {print $8,"\t",$5,$6,$7,"\t",$4}'
ls -lght /tmp/mod | awk '{ if ($4 < 100) $4 = " "$4 } {print $5,$6,$7,$4,$8}'
du -hc /tmp/mod/ | grep "total"
echo Changed files copied. Press Enter to create module, Ctrl+C to exit.
read
du -h /tmp/mod/
echo
dir2xzm /tmp/mod /tmp/$MOD.xzm && rm -rf /tmp/mod
echo
ls -sh /tmp/*.xzm
#read
DIR () {
ls -lght --time-style long-iso $1 | awk '{print $5,$6,$4,$7}'
}
TO=Modsavedat
echo
echo Press Enter to copy /tmp/$MOD.xzm to $TO, Ctrl+C to exit.
DIR /tmp/$MOD.xzm
DIR /mnt/$DRV/porteus3.2/$TO/$MOD*.xzm
read
mv /mnt/$DRV/porteus3.2/$TO/$MOD*.xzm /mnt/$DRV/porteus3.2/$TO/$MOD.xyzm
cp /tmp/$MOD.xzm /mnt/$DRV/porteus3.2/$TO
cp /tmp/$MOD.xzm /mnt/$DRV/porteus4.0/Modules
echo Finished!
read
Good luck.
Ed
-
- Shogun
- Posts: 282
- Joined: 10 Jan 2016, 17:26
- Distribution: Porteus 5.0 rc3 xfce
- Location: Denver, Colorado
Re: How can I reset the guest account?
"Only"!?! Since installing the OS is a matter of simply copying a few hundred megabytes of files and running the boot installer, making those customizations represents most of the time involved in readying a Porteus installation for use -- deleting the /changes folder is tantamount to re-installing the whole OS!Ed_P wrote:Hardly. Only the customizations you have made will be lost. Porteus will still boot and activate the modules you have installed.rchase wrote:That is tantamount to re-installing the whole OS!wread wrote:Delete "changes" folder.
Thanks, but I don't know the scripting language and I don't know that your procedure to save differential changes is correct -- if it is, couldn't/shouldn't this be added to the Porteus Settings Centre, i.e. a (manual) option to save differential changes to a file, module, or folder?Ed_P wrote: If you want to save only the changes you have made maybe these scripts can help.
- Ed_P
- Contributor
- Posts: 8367
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: How can I reset the guest account?
What, an hour maybe? Set date/time, add browser favorites, set volume, update USM, create desktop icons, change background, config network, add printer support.rchase wrote:making those customizations represents most of the time involved in readying a Porteus installation for use
You'll never learn younger. I didn't know it either until I started using Porteus a couple of yrs ago.Thanks, but I don't know the scripting language
Maybe someday it will be, if user demand is high and more admins are added to develop the system. The changes-time command is already a part of Porteus.I don't know that your procedure to save differential changes is correct -- if it is, couldn't/shouldn't this be added to the Porteus Settings Centre, i.e. a (manual) option to save differential changes to a file, module, or folder?
Ed
-
- Shogun
- Posts: 282
- Joined: 10 Jan 2016, 17:26
- Distribution: Porteus 5.0 rc3 xfce
- Location: Denver, Colorado
Re: How can I reset the guest account?
That is hardly the same as saving all changes made during the current desktop session. Porteus already saves differential changes to /changes when it is shut down and it would be convenient to be able to save them during the session, and to any file, folder, or module. It would seem that all of the tools must already be in place -- all that should be required is modifying the Settings Centre appropriately.Ed_P wrote:... The changes-time command is already a part of Porteus.
- Ed_P
- Contributor
- Posts: 8367
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: How can I reset the guest account?
Or a user simply learning to use them to suit their particular needs.rchase wrote:It would seem that all of the tools must already be in place -- all that should be required is modifying the Settings Centre appropriately.
Ed
-
- Shogun
- Posts: 282
- Joined: 10 Jan 2016, 17:26
- Distribution: Porteus 5.0 rc3 xfce
- Location: Denver, Colorado
Re: How can I reset the guest account?
No, that would be more of the schizophrenia that leads people to design GUI-based OSs -- then disparage the GUI. A trivial elaboration of the GUI to provide instant access to the saving of differential changes would not compromise Porteus in any way, so it should be added -- unless the purpose of the OS is to do research into Linux, but Porteus is not such an OS.Ed_P wrote:Or a user simply learning to use them to suit their particular needs. ...rchase wrote:It would seem that all of the tools must already be in place -- all that should be required is modifying the Settings Centre appropriately.