Page 3 of 3

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Posted: 10 Dec 2011, 21:04
by fanthom
another cheat is comming for porteus-1.1.
sometimes i want to stay invisible while using porteus outside of my home. i think it would be handy to disable dhcpcd broadcasting for IP during boot.
what about 'nonetwork' cheat?

Code: Select all

if param nonetwork; then chmod -x /union/etc/rc.d/rc.inet1 /union/etc/rc.d/rc.wicd; fi
this would work only for built in network managers: rc.inet1 and wicd

@Ahau
could you prepare description for it, please.

EDIT:\\
wicd is damn stubborn and starts (called by /etc/xdg/autostart/wicd-gtk.desktop) even with non executable /etc/rc.d/rc.wicd.
only way to disable it is to add "Hidden=true" to /etc/xdg/autostart/wicd-tray.desktop which linuxrc does.

@Ahau
i dont like this solution as it can make troubles for users who are saving changes so please add a warning to 'nonetwork' cheatcode that it's recommended to use it in "Always Fresh" mode. you can also add that rescue mode to 'nonetwork' cheat is to run:
chmod +x /union/etc/rc.d/rc.inet1 /union/etc/rc.d/rc.wicd
and remove "Hidden=true" from /etc/xdg/autostart/wicd-tray.desktop file.

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Posted: 12 Dec 2011, 15:06
by Ahau
I'll add this to my "ToDo' list, and will have something ready in a day or two.

would something along the lines of:

Code: Select all

if param nonetwork; then chmod -x /union/etc/rc.d/rc.inet1 /union/etc/rc.d/rc.wicd; echo "Hidden=true" >> /etc/xdg/autostart/wicd-tray.desktop; else chmod +x /union/etc/rc.d/rc.inet1 /union/etc/rc.d/rc.wicd; sed -i  's/Hidden=true//g' /etc/xdg/autostart/wicd-tray.desktop; fi; 
not work?

Posted after 21 hour 23 minutes 58 seconds:
Re: Tweaking of Linux Live Scripts derivative used in Porteus
How does this look?

Code: Select all

nonetwork

   ... This boot parameter will prevent Porteus from automatically
       establishing a network connection on start-up. 
       Note that this cheatcode makes several modifications to 
       your system which must be manually restored, so it is 
       recommended that you only use this cheatcode in "Always
       Fresh" mode.  If you've ignored this advice and need to 
       recover your network connection, please run the following:
       
       chmod +x /etc/rc.d/rc.inet1 /etc/rc.d/rc.wicd
       sed -i 's/Hidden=true//g' /etc/xdg/autostart/wicd-tray.desktop

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Posted: 14 Dec 2011, 15:31
by brokenman
stealth cheatcode.

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Posted: 15 Dec 2011, 09:11
by Hamza
Why not use "resetnet" to restore the network ?

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Posted: 15 Dec 2011, 14:59
by fanthom
Why not use "resetnet" to restore the network ?
are the two commands

Code: Select all

chmod +x /etc/rc.d/rc.inet1 /etc/rc.d/rc.wicd
sed -i 's/Hidden=true//g' /etc/xdg/autostart/wicd-tray.desktop

worth creating an extra script for them?

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Posted: 15 Dec 2011, 18:07
by Hamza
ok, let's stay with this cheatcode which it update the system to don't sync with dhcp server and have not an internet.
An newbie user will not able to open a terminal.

That's up to you.