This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vps:newuser [2020/03/11 00:26] jrmu |
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 112: | 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 118: | 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. |