Page 1 of 1

Can I use rootcopy to store my WEP config in Always Fresh?

Posted: 01 Apr 2014, 09:27
by mparillo
In another thread:
Re: No Sound (Post by brokenman #23297)
brokenman wrote:

Code: Select all

cp -a --parents /etc/asound.conf /mnt/sdxY/porteus/rootcopy
I see a file that makes me think that my WEP config is stored under its SSID in /etc/NetworkManager/system-connections/
But when I try to look at it, Dolphin returns: Access Denied.

Is there somewhere else to look?

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 01 Apr 2014, 19:56
by wread
Try loging in as root!

I have it in /rootcopy/ and it works for me!

Regards

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 02 Apr 2014, 01:28
by brokenman

Code: Select all

su
toor
cp -a --parents /etc/NetworkManager /mnt/sdxY/porteus/rootcopy
Please replace xY for the letters pertaining to yur Porteus installation

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 02 Apr 2014, 10:35
by mparillo
Thank you. When I copied to rootcopy and reboot, I do see an entry for my WEP SSID:
guest@porteus:/etc/NetworkManager/system-connections$ ls -alc
total 8
drwxrwxrwx 2 root root 80 Apr 2 06:06 ./
drwxrwxrwx 8 root root 120 Apr 2 02:04 ../
-rwxrwxrwx 1 root root 358 Apr 2 02:04 RM3T3*

However, it did not 'remember' my password.
Is that because I need to edit the section in [802-11-wireless-security]

guest@porteus:/etc/NetworkManager/system-connections$ cat RM3T3
[connection]
id=RM3T3
uuid=b95d97ef-22fc-46a7-9a9d-73649d9c8a8d
type=802-11-wireless
permissions=user:guest:;
zone=

[802-11-wireless]
ssid=RM3T3
mode=infrastructure
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=none
auth-alg=open
wep-key-flags=1
wep-key-type=1

[ipv4]
method=auto
may-fail=false

[ipv6]
method=ignore
ip6-privacy=0

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 02 Apr 2014, 14:16
by fanthom
maybe you could boot to 'Always Fresh' again -> set your network -> run 'changes-time' script to catch latest updates to the filesystem?
it should help you identify which files needs to be included in /rootcopy

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 02 Apr 2014, 21:20
by francois
changes-time

Thanks, this is a very interesting use of the script. Glad to know that it could be used this way. And good to know about its existence.

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 02 Apr 2014, 22:27
by mparillo
Do I need to install it?
Can I install it in Always Fresh?

Code: Select all

guest@porteus:~$ changes-time
Please enter your root password below
Password: 
-su: /opt/porteus-scripts/changes-time.sh: No such file or directory

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 03 Apr 2014, 01:07
by brokenman
This is one of the most useful scripts Porteus has. I use it daily. Another of fanthoms gems.

@mparillo
Boot into always fresh mode and touch nothing for about 2 minutes.
Setup your wireless so you are connected.
Enter the following commands.

Code: Select all

su
toor
changes-time
2
The last '2' is when it asks you to enter a time in minutes. It will find all files changed within the last 2 minutes. It will dump the files in /root/changesXXXX.

Code: Select all

find /root/changes*
In any case it should be enough to simply copy the /etc/NetworkManager folder to rootcopy. That file should contain your SSID key. Make sure you are connected to the internet before copying it.

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 04 Apr 2014, 09:57
by mparillo
Thank you, and I copied all the changed files to rootcopy, but now my WEP password does not 'take'. Is it possible that I copied too many?

Code: Select all

guest@porteus:/mnt/sdc1/porteus$ ls -R rootcopy 
rootcopy:
etc/  var/

rootcopy/etc:
NetworkManager/  dhcpcd.duid*  resolv.conf*

rootcopy/etc/NetworkManager:
system-connections/

rootcopy/etc/NetworkManager/system-connections:
RM3T3*

rootcopy/var:
lib/  log/  run/

rootcopy/var/lib:
NetworkManager/  dhcpcd/

rootcopy/var/lib/NetworkManager:
seen-bssids*  timestamps*

rootcopy/var/lib/dhcpcd:
dhcpcd-wlan0.lease*

rootcopy/var/log:
messages*  secure*  syslog*  wpa_supplicant.log*

rootcopy/var/run:
dhcpcd-wlan0.pid*
guest@porteus:/mnt/sdc1/porteus$ 

Re: Can I use rootcopy to store my WEP config in Always Fres

Posted: 05 Apr 2014, 18:30
by tome
but now my WEP password does not 'take'
If you use fat or ntfs then you lost file permissions. If you must use rootcopy then
try: copy /etc/rc.d/rc.local to rootcopy, edit rc.local and add commands to set correct permissions for needed folders/files.
Easier way is to create little save.dat.xzm file -> mount and copy here needed file -> move this file to base folder or -> use for storing changes but with changes-ro (or EXIT: + edit changes-exit.conf) cheatcode then you can modify them (persistant) in /mnt/live/memory/images/save.dat.xzm or /mnt/live/memory/images/changes. Probably too complicated in words.