Can someone please provide a proper technique for re-IPing an nvOC 19-1.4 box through SSH?
==============
Most of my rigs are remote. I identify them, both locally and on pools, by IP, as I use the IP address as worker name scheme in 1bash.
What I can't do, however, when upgrading to a different nvOC or rxOC build, is change the IP address without putting a monitor on the box and using the GUI.
I've tried multiple online guides meant for Ubuntu 16, as well as other variants, and can't seem to get it right.
Thanks, in advance!
kk003_telegram has code to to send public ip in case of changed (don't know if you need this feature in case your new ip is dynamic)
In case you don't want DHCP here is a guide.
A example for local static ip:
sudo nano /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto enp0s31f6
iface enp0s31f6 inet static
address 192.168.0.243
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
then stop network manager:
sudo systemctl stop network-manager.service
Remove it from system startup:
sudo systemctl disable network-manager.service
Check it has been stopped and removed:
sudo systemctl status network-manager.service
Synchronizing state of network-manager.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install disable network-manager
insserv: warning: current start runlevel(s) (empty) of script `network-manager' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `network-manager' overrides LSB defaults (0 1 6).
insserv: warning: script 'gpu' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (empty) of script `network-manager' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `network-manager' overrides LSB defaults (0 1 6).
insserv: warning: script 'gpu' missing LSB tags and overrides
m1@AyM-desktop:~$ sudo systemctl status network-manager.service
● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:NetworkManager(8)
Oct 24 12:44:11 AyM-desktop systemd[1]: Network Manager is not active.
Note this lines:
● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service;
disabled; vendor preset: enabled)
Active:
inactive (dead)I usually restart system after this type of modifications and re-check again to ensure everything is working like I want.
Let me know if I misunderstood some thing.
Update: I assume you know how to connect to your rigs using ssh and have a well configured router if you are behind one