Saving network signons

Technical issues/questions of an intermediate or advanced nature.
raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Saving network signons

Post#16 by raja » 23 May 2022, 08:05

In rootcopy folder , create folder 'etc', open it and create a folder NetworkManager. open and copy systems-connections folder from /etc/Netwworkmanager.

On reboot, your network will be connected automatically. May be you know this years ago.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Saving network signons

Post#17 by Ed_P » 23 May 2022, 15:51

Hi raja. I do have an /etc/NetworkManager folder and I do copy it to my module.

Code: Select all

#                  -- Network files --
                   touch /var/lib/dhcpcd/dhcpd.leases
cp -a --parents    /etc/NetworkManager/system-connections/*       /tmp/mod/
cp -a --parents    /var/run/NetworkManager/*                      /tmp/mod/
cp -a --parents    /var/lib/dhcpcd/*                              /tmp/mod/
cp -a --parents    /etc/hosts                                     /tmp/mod/
But when booting with the module I still have to signon to my wifi network. BTW I don't use rootcopy, I use a save.dat file.

With Porteus 4 this is what I use and it works.

Code: Select all

#                  -- Network files --
#                  touch /var/lib/dhcpcd/dhcpd.leases
cp -a --parents    /etc/NetworkManager/system-connections/*       /tmp/mod/
cp -a --parents    /var/run/NetworkManager/*                      /tmp/mod/
cp -a --parents    /var/lib/dhcpcd/*                              /tmp/mod/
cp -a --parents    /etc/hosts                                     /tmp/mod/
Added in 5 hours 45 minutes 36 seconds:
So I boot the module system, no save.dat file, and before I signon to a wifi connection I have:

Code: Select all

guest@porteus:~$ ls -lght /etc/NetworkManager/system-connections/*.nm*
-rw------- 1 root 343 May 23 17:21 /etc/NetworkManager/system-connections/Auto\ QuickGoose-pro-6b1bdfc4-11f6-4fbc-941e-83eedcac6d97.nmconnection
-rw------- 1 root 364 Mar 18 01:36 /etc/NetworkManager/system-connections/Auto\ Linksys08941-5GHz.nmconnection
-rw------- 1 root 358 Mar 18 01:36 /etc/NetworkManager/system-connections/Auto\ QuickGoose-pro.nmconnection
the long named -pro connection.

I test the non -pro wifi options before entering the password for the -pro connection and now I have two long named networks:

Code: Select all

guest@porteus:~$ ls -lght /etc/NetworkManager/system-connections/*.nm*
-rw------- 1 root 358 May 23 17:27 /etc/NetworkManager/system-connections/Auto\ QuickGoose-pro-6b1bdfc4-11f6-4fbc-941e-83eedcac6d97.nmconnection
-rw------- 1 root 349 May 23 17:26 /etc/NetworkManager/system-connections/Auto\ Linksys08941-5GHz-f0e79101-5da9-410e-9754-dbfcb1abd812.nmconnection
-rw------- 1 root 335 May 23 17:25 /etc/NetworkManager/system-connections/Auto\ QuickGoose.nmconnection
-rw------- 1 root 364 Mar 18 01:36 /etc/NetworkManager/system-connections/Auto\ Linksys08941-5GHz.nmconnection
-rw------- 1 root 358 Mar 18 01:36 /etc/NetworkManager/system-connections/Auto\ QuickGoose-pro.nmconnection
guest@porteus:~$ 
But I've only entered the password for 1.
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Saving network signons

Post#18 by Ed_P » 27 May 2022, 21:00

Ed_P wrote:
23 May 2022, 21:37

Code: Select all

6b1bdfc4-11f6-4fbc-941e-83eedcac6d97
f0e79101-5da9-410e-9754-dbfcb1abd812
So, what setting, option causes Porteus to create each wifi connection a user connects to to be unique? Or what setting, option disables this capability?

Do other users have wifi connections named this way?
Ed

Post Reply