Years go by between the times I install a new Ubuntu/Trinty. It is now time again -- this time to build a machine to replace my wife's antique Win XP.
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
All the searching either shows
Make changes to the /etc/netplan yaml file -- there isn't any - just an empty directory!
-or-
"Click on top right network icon and select settings corresponding to the network interface you wish to assign with the static IP address." --- ya, well, this is Trinity.
..and, of course NONE of this resembles anything I remember from hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
Could someone please point me where to start?
Thank you! Jonesy
On 18/04/2020 21:00, Marvin Jones via trinity-users wrote:
Years go by between the times I install a new Ubuntu/Trinty. It is now time again -- this time to build a machine to replace my wife's antique Win XP.
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
All the searching either shows
Make changes to the /etc/netplan yaml file -- there isn't any - just an empty directory!
-or-
"Click on top right network icon and select settings corresponding to the network interface you wish to assign with the static IP address." --- ya, well, this is Trinity.
..and, of course NONE of this resembles anything I remember from hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
Could someone please point me where to start?
Thank you! Jonesy
Well, setting your ip isn't specifically a TDE job, more an OS task.
If you wand a static IP, set it in the '/etc/network/interfaces' file. You can access it from the desktop if you wish but easier from the command line.
Edit the file with your favourite editor. On the line for the interface you are interested in, change 'dhcp' to 'static' then add something like the following immediately after that line (but change to suit your network);
address 192.168.1.5 netmask 255.255.255.0 gateway 192.168.1.254
On Sat, 18 Apr 2020, Michael Howard via trinity-users wrote:
On 18/04/2020 21:00, Marvin Jones via trinity-users wrote:
Years go by between the times I install a new Ubuntu/Trinty. It is now time again -- this time to build a machine to replace my wife's antique Win XP.
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
All the searching either shows
Make changes to the /etc/netplan yaml file -- there isn't any - just an empty directory!
-or-
"Click on top right network icon and select settings corresponding to the network interface you wish to assign with the static IP address." --- ya, well, this is Trinity.
..and, of course NONE of this resembles anything I remember from hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
Could someone please point me where to start?
Thank you! Jonesy
Well, setting your ip isn't specifically a TDE job, more an OS task.
If you wand a static IP, set it in the '/etc/network/interfaces' file. You can access it from the desktop if you wish but easier from the command line.
Edit the file with your favourite editor. On the line for the interface you are interested in, change 'dhcp' to 'static' then add something like the following immediately after that line (but change to suit your network);
address 192.168.1.5 netmask 255.255.255.0 gateway 192.168.1.254
It's never easy.....
|bea@nix-bea:~$ cat /etc/network/interfaces |# interfaces(5) file used by ifup(8) and ifdown(8) |auto lo |iface lo inet loopback |bea@nix-bea:~$
Do you mean add at the bottom:
dhcp static address 192.168.1.5 netmask 255.255.255.0 gateway 192.168.1.254
... using my network's values....?
Jonesy
--------------------------------------------------------------------- To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On 18/04/2020 21:48, Marvin Jones via trinity-users wrote:
On Sat, 18 Apr 2020, Michael Howard via trinity-users wrote:
On 18/04/2020 21:00, Marvin Jones via trinity-users wrote:
Years go by between the times I install a new Ubuntu/Trinty. It is now time again -- this time to build a machine to replace my wife's antique Win XP.
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
All the searching either shows
Make changes to the /etc/netplan yaml file -- there isn't any - just an empty directory!
-or-
"Click on top right network icon and select settings corresponding to the network interface you wish to assign with the static IP address." --- ya, well, this is Trinity.
..and, of course NONE of this resembles anything I remember from hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
Could someone please point me where to start?
Thank you! Jonesy
Well, setting your ip isn't specifically a TDE job, more an OS task.
If you wand a static IP, set it in the '/etc/network/interfaces' file. You can access it from the desktop if you wish but easier from the command line.
Edit the file with your favourite editor. On the line for the interface you are interested in, change 'dhcp' to 'static' then add something like the following immediately after that line (but change to suit your network);
address 192.168.1.5 netmask 255.255.255.0 gateway 192.168.1.254
It's never easy.....
|bea@nix-bea:~$ cat /etc/network/interfaces |# interfaces(5) file used by ifup(8) and ifdown(8) |auto lo |iface lo inet loopback |bea@nix-bea:~$
Do you mean add at the bottom: . dhcp static address 192.168.1.5 netmask 255.255.255.0 gateway 192.168.1.254
... using my network's values....?
Jonesy
Ah, your using ubuntu 18. I was a bit quick of the mark :) I'm a debian guy but ...
If you have no *.yaml file in your /etc/netplan directory then you might not have any networking setup. If you have no networking setup, it might be you are not connected to your router by any means?
To check your current settings, use 'ip a' and 'ip route show' at a command prompt. This will give you a view of you current setup, i.e. ip range and gateway etc, if you have any, which you probably haven't.
If not then create one as '99_config.yaml' with your specific details. If when you did the 'ip a' above, you got info, great, if not you will need to get the ip range info from your router. You could do this by setting up dhcp first (not sure why you don't want to use dhcp, it is easier). The yaml file for dhcp would be;
network: version: 2 renderer: networkd ethernets: enp3s0: dhcp4: true
where enp3s0 would need to be the device name returned by 'ip a'. probably the second stanza of that printout. Once dhcp is setup, you will know the network details you need to setup static addressing.
Your yaml file for static would be along the lines of (but not with the 10.10.10.0 ip range or the eth0 device name);
network: version: 2 renderer: networkd ethernets: eth0: addresses: - 10.10.10.2/24 gateway4: 10.10.10.1 nameservers: search: [mydomain, otherdomain] addresses: [10.10.10.1, 1.1.1.1]
Change the device name and ip details above to match your own. Or ask again when you know more details.
On Sat, 18 Apr 2020, Michael Howard via trinity-users wrote:
On 18/04/2020 21:48, Marvin Jones via trinity-users wrote:
On Sat, 18 Apr 2020, Michael Howard via trinity-users wrote:
On 18/04/2020 21:00, Marvin Jones via trinity-users wrote:
I want to set a static IP for the box -- and get rid of the DHCP crap. Could someone please point me where to start?
Ah, your using ubuntu 18. I was a bit quick of the mark :) I'm a debian guy but ...
If you have no *.yaml file in your /etc/netplan directory then you might not have any networking setup. If you have no networking setup, it might be you are not connected to your router by any means?
Yup, the /etc/netplan directory was empty. But, I had a working network. I guess without a .yaml in the directory, the network is defined by a full-on DHCP process.
But, taking in your comments below and some of the terse explanation I found in searching the interweb, I built a 01_netcfg.yaml and populated it ... then `sudo netplan apply`
`ifconfig` showed me I had my new, static ip. Then with trepidation, I rebooted. The network came up with my new, static ip. Success!
I can only guess what the difference between 01_netcfg.yaml, 55_netcfg.yaml 99_netcfg.yaml might be. In reading the man pages,I believe later ones can override options set in earlier ones. Too complicated by half.
To check your current settings, use 'ip a' and 'ip route show' at a command prompt. This will give you a view of you current setup, i.e. ip range and gateway etc, if you have any, which you probably haven't.
If not then create one as '99_config.yaml' with your specific details. If when you did the 'ip a' above, you got info, great, if not you will need to get the ip range info from your router. You could do this by setting up dhcp first (not sure why you don't want to use dhcp, it is easier). The yaml file for dhcp would be;
network: version: 2 renderer: networkd ethernets: enp3s0: dhcp4: true
where enp3s0 would need to be the device name returned by 'ip a'. probably the second stanza of that printout. Once dhcp is setup, you will know the network details you need to setup static addressing.
Your yaml file for static would be along the lines of (but not with the 10.10.10.0 ip range or the eth0 device name);
network: version: 2 renderer: networkd ethernets: eth0: addresses: - 10.10.10.2/24 gateway4: 10.10.10.1 nameservers: search: [mydomain, otherdomain] addresses: [10.10.10.1, 1.1.1.1]
Change the device name and ip details above to match your own. Or ask again when you know more details.
Thank you!
Marvin Jones via trinity-users composed on 2020-04-18 14:00 (UTC-0600):
Years go by between the times I install a new Ubuntu/Trinty. It is now time again -- this time to build a machine to replace my wife's antique Win XP.
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
All the searching either shows
Make changes to the /etc/netplan yaml file -- there isn't any - just an empty directory!
-or-
"Click on top right network icon and select settings corresponding to the network interface you wish to assign with the static IP address." --- ya, well, this is Trinity.
..and, of course NONE of this resembles anything I remember from hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
Could someone please point me where to start?
I really don't remember the official procedure for configuring Ubuntu networking, but here's what may be all that you need to know from one of my many using static IP:
# inxi -Snxxza System: Kernel: 4.15.0-91-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 parameters: ro root=LABEL=<filter> net.ifnames=0 radeon.si_support=0 amdgpu.si_support=1 ipv6.disable=1 noresume mitigations=auto consoleblank=0 plymouth.enable=0 vga=791 video=1440x900@60 Desktop: Trinity R14.0.7 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 dm: TDM Distro: Ubuntu 18.04.4 LTS (Bionic Beaver) Network: Device-1: Marvell 88E8056 PCI-E Gigabit Ethernet vendor: SysKonnect driver: sky2 v: 1.30 port: d800 bus ID: 02:00.0 chip ID: 11ab:4364 IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> # cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5).
# The loopback network interface auto lo iface lo inet loopback
# The primary network interface auto eth0 iface eth0 inet static address 192.168.###.### netmask 255.255.255.0 network 192.168.###.### broadcast 192.168.###.### gateway 192.168.###.### # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.###.### dns-search my.lan
On 04/18/2020 03:00 PM, Marvin Jones via trinity-users wrote:
Years go by between the times I install a new Ubuntu/Trinty. It is now time again -- this time to build a machine to replace my wife's antique Win XP.
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
All the searching either shows
Make changes to the /etc/netplan yaml file -- there isn't any - just an empty directory!
-or-
"Click on top right network icon and select settings corresponding to the network interface you wish to assign with the static IP address." --- ya, well, this is Trinity.
..and, of course NONE of this resembles anything I remember from hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
Could someone please point me where to start?
Thank you! Jonesy
See the "server" heading in:
How to configure static IP address on Ubuntu 18.10 Cosmic Cuttlefish Linux https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-10-c...
On Sat, 18 Apr 2020, David C. Rankin wrote:
On 04/18/2020 03:00 PM, Marvin Jones via trinity-users wrote:
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
Could someone please point me where to start?
How to configure static IP address on Ubuntu 18.10 Cosmic Cuttlefish Linux https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-18-10-c...
Yep. That's what it took: a yaml file in /etc/netplan and `netplan`. But most of the hits in web searching seemed to imply there would ALREADY be a yaml file -- set up for the default DHCP. I had no such file after my install -- so I was worried I would get cross- wise with some _other_ network control process I was unaware of.
Jonesy
On Saturday 18 of April 2020 22:00:27 Marvin Jones via trinity-users wrote:
Years go by between the times I install a new Ubuntu/Trinty. It is now time again -- this time to build a machine to replace my wife's antique Win XP.
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
All the searching either shows
Make changes to the /etc/netplan yaml file -- there isn't any - just an empty directory!
-or-
"Click on top right network icon and select settings corresponding to the network interface you wish to assign with the static IP address." --- ya, well, this is Trinity.
..and, of course NONE of this resembles anything I remember from hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
Could someone please point me where to start?
Thank you! Jonesy
Hi
Trinity LiveCD on Ubuntu 18.04 has been configured to work with the TDE NetworkManager applet. NetworkManager did not seem to need netplan to work, so there are no /etc/netplan. You can try to set a static address using TDE NetworkManager - the icon at the bottom right.
Cheers
On Sun, 19 Apr 2020, Slávek Banko wrote:
On Saturday 18 of April 2020 22:00:27 Marvin Jones via trinity-users wrote:
Years go by between the times I install a new Ubuntu/Trinty. It is now time again -- this time to build a machine to replace my wife's antique Win XP.
I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
I want to set a static IP for the box -- and get rid of the DHCP crap.
All the searching either shows
Make changes to the /etc/netplan yaml file -- there isn't any - just an empty directory!
-or-
"Click on top right network icon and select settings corresponding to the network interface you wish to assign with the static IP address." --- ya, well, this is Trinity.
..and, of course NONE of this resembles anything I remember from hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
Could someone please point me where to start?
Trinity LiveCD on Ubuntu 18.04 has been configured to work with the TDE NetworkManager applet. NetworkManager did not seem to need netplan to work, so there are no /etc/netplan. You can try to set a static address using TDE NetworkManager - the icon at the bottom right.
Hi, Slávek
Well, after the initial install there WAS a /etc/netplan. It was empty.
I did try TDENetworkManager. I clicked up the TDE Menu list > Internet > TDENetworkManager . . . . . . . and n o t h i n g happened.
So, I pursued the `netplan` process and was successful.
I see _now_ that TDENetworkManager must be the item in the system tray (with a un-understandable icon) that describes the network connection when clicked on. However, when clicking on "TDENetworkManager" in TDE Menu I was expecting a GUI to pop up with all sort of selections for me (to totally screw up :-).
Thank you, Jonesy