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

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
mparillo
White ninja
White ninja
Posts: 22
Joined: 14 Mar 2014, 19:11
Distribution: Porteus-KDE-v3.1-i486 Chrome
Location: USA

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

Post#1 by mparillo » 01 Apr 2014, 09:27

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?

User avatar
wread
Module Guard
Module Guard
Posts: 1113
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

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

Post#2 by wread » 01 Apr 2014, 19:56

Try loging in as root!

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

Regards
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!

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

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

Post#3 by brokenman » 02 Apr 2014, 01:28

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

mparillo
White ninja
White ninja
Posts: 22
Joined: 14 Mar 2014, 19:11
Distribution: Porteus-KDE-v3.1-i486 Chrome
Location: USA

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

Post#4 by mparillo » 02 Apr 2014, 10:35

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

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

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

Post#5 by fanthom » 02 Apr 2014, 14:16

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

User avatar
francois
Contributor
Contributor
Posts: 5124
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

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

Post#6 by francois » 02 Apr 2014, 21:20

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.
Carpe diem.

mparillo
White ninja
White ninja
Posts: 22
Joined: 14 Mar 2014, 19:11
Distribution: Porteus-KDE-v3.1-i486 Chrome
Location: USA

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

Post#7 by mparillo » 02 Apr 2014, 22:27

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

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

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

Post#8 by brokenman » 03 Apr 2014, 01:07

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

mparillo
White ninja
White ninja
Posts: 22
Joined: 14 Mar 2014, 19:11
Distribution: Porteus-KDE-v3.1-i486 Chrome
Location: USA

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

Post#9 by mparillo » 04 Apr 2014, 09:57

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$ 

tome
Contributor
Contributor
Posts: 577
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

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

Post#10 by tome » 05 Apr 2014, 18:30

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.

Post Reply