Tweaking of Linux Live Scripts derivative used in Porteus

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
fanthom
Site Admin
Site Admin
Posts: 4566
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Post#31 by fanthom » 10 Dec 2011, 21:04

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.
Please add [Solved] to your thread title if the solution was found.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Post#32 by Ahau » 12 Dec 2011, 15:06

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
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
brokenman
Site Admin
Site Admin
Posts: 5460
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Post#33 by brokenman » 14 Dec 2011, 15:31

stealth cheatcode.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Post#34 by Hamza » 15 Dec 2011, 09:11

Why not use "resetnet" to restore the network ?
NjVFQzY2Rg==

User avatar
fanthom
Site Admin
Site Admin
Posts: 4566
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Post#35 by fanthom » 15 Dec 2011, 14:59

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?
Please add [Solved] to your thread title if the solution was found.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Tweaking of Linux Live Scripts derivative used in Porteu

Post#36 by Hamza » 15 Dec 2011, 18:07

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.
NjVFQzY2Rg==

Post Reply