IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vps:newuser [2020/03/09 23:29]
jrmu created
vps:newuser [2020/03/20 09:34] (current)
jrmu
Line 54: Line 54:
  
 Please note that this hostname is different from the host; there is an extra username in username.us5.ircnow.org. Please note that this hostname is different from the host; there is an extra username in username.us5.ircnow.org.
 +
 +----
 +
 +To reinstall OpenBSD 6.6:
 +
 +<​code>​
 +$ ssh username@us5.ircnow.org
 +$ cd ~
 +$ rm username.qcow2
 +$ vmctl create -s 20G username.qcow2
 +$ vmctl start username
 +$ vmctl start username
 +$ vmctl console username
 +</​code>​
 +
 +Make sure to configure static networking as well as to set up ping in the background as outlined below.
  
 ---- ----
Line 79: Line 95:
 <​code>​ <​code>​
 # service networking restart # service networking restart
 +</​code>​
 +
 +For Debian:
 +
 +<​code>​
 +systemctl restart networking
 +</​code>​
 +
 +Inside /​etc/​network/​interfaces:​
 +
 +<​code>​
 +source /​etc/​network/​interfaces.d/​*
 +
 +# The loopback network interface
 +auto lo
 +iface lo inet loopback
 +
 +# The primary network interface
 +auto enp0s2
 +iface enp0s2 inet static
 +        address 38.81.163.x
 +        netmask 255.255.255.0
 +        gateway 38.81.163.129
 </​code>​ </​code>​
  
Line 89: Line 128:
 <​code>​ <​code>​
 @reboot /​usr/​bin/​tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129;​ done' \; @reboot /​usr/​bin/​tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129;​ done' \;
 +</​code>​
 +
 +Afterwards, to ensure it runs right away, execute this once:
 +
 +<​code>​
 +/​usr/​bin/​tmux new -d 'while true; do /sbin/ping -i5 38.81.163.129;​ done' \;
 </​code>​ </​code>​
  
Line 95: Line 140:
 <​code>​ <​code>​
 @reboot /​usr/​bin/​tmux new -d 'while true; do /​usr/​bin/​ping -i5 38.81.163.129;​ done' \; @reboot /​usr/​bin/​tmux new -d 'while true; do /​usr/​bin/​ping -i5 38.81.163.129;​ done' \;
 +</​code>​
 +
 +Afterwards, to ensure it runs right away, execute this once:
 +
 +<​code>​
 +/​usr/​bin/​tmux new -d 'while true; do /​usr/​bin/​ping -i5 38.81.163.129; ​
 </​code>​ </​code>​
  
 For Alpine: For Alpine:
 +
 <​code>​ <​code>​
 @reboot /​usr/​bin/​tmux new -d 'while true; do /bin/ping -i5 38.81.163.129;​ done' \; @reboot /​usr/​bin/​tmux new -d 'while true; do /bin/ping -i5 38.81.163.129;​ done' \;
 </​code>​ </​code>​
 +
 +Afterwards, to ensure it runs right away, execute this once:
 +
 +<​code>​
 +/​usr/​bin/​tmux new -d 'while true; do /bin/ping -i5 38.81.163.129;​ done' \;
 +</​code>​
 +
 +----
 +
 +To reinstall OpenBSD:
 +
 +First, log in to the host:
 +
 +<​code>​
 +$ ssh username@us5.ircnow.org
 +$ vmctl stop username
 +$ rm username.qcow2
 +$ vmctl create -s 20G username.qcow2
 +$ vmctl start username
 +$ vmctl console username
 +</​code>​
 +
 +Then, do the installation as usual.