Adding additional IP addresses in OVH is rather unconventional and the guide they point to in their mail is non-existent. The process, fortunately, is simple:
- ssh to the server as root
- Add the new IP address after the original IPv4 Address
- Save and close the file
- Reboot the server
You should now be able to ssh to the server using the new IP Address (which OVH likes to call Failover IP Address) in addition to the old one.
Repeat the process for any additional IP addresses.
Note: I have tested it on two different OVH Servers (in France & Canada) for Ubuntu 16.04 and Ubuntu 18.04.
Oracle JDK can be easily installed in Ubuntu using apt. Using apt simplifies the job of updating the JDK from time to time.
To install Oracle JDK 8
sudo apt update
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer
dd, the ubiquitous copy tool of Unix/Linux, now comes in with a decent built-in progress indicator.
You can run it by the command-line option: status=progress
dd status=progress if=/dev/sda of=/dev/sdb
Notice how I didn’t add the bs option and used the default. In my experiences the default works best.
Tested on: Ubuntu
How to change Hostname on Ubuntu
First find your current host name by typing:
Open /etc/hostname and change the host name specified there to the new host name.
sudo vi /etc/hostname
Now open /etc/hosts and locate the old host name in the file and change it to the new host name.
sudo vi /etc/hosts
Now restart hostname with:
sudo service hostname restart
How to propagate Hostname Change to DHCP Server and other machines
The chosen host name should be propagated to the DHCP server so that any other computer can refer to this computer by your new chosen hostname. To do that run the following commands:
sudo dhcclient -r ; sudo dhclient
Now you should be able to access this machine by its newly chosen host name from any other machine in the same network and served the same DHCP server.
An exception would be if a machine is configured statically or not configured to use the name server associated with this dhcp server.
Most routers today comes with DHCP server and an associated Name Server which can be configured as shown above.