User Tools

Site Tools


vps_-_openbsd

Differences

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

Link to this comparison view

Next revision
Previous revision
vps_-_openbsd [2020/11/04 22:21] – created initial document outlining setting root pass and getting started pwrightvps_-_openbsd [2023/06/11 22:03] (current) – add in doas and netwokring cpet
Line 1: Line 1:
-{{::puf800x689.gif?400|}}+{{:puf800x689.gif?nolink&200|}}
  
 ====== OpenBSD on SDF VPS ====== ====== OpenBSD on SDF VPS ======
  
-===== Contents ===== 
  
-  * [[#first_steps|First Steps]] 
-    * [[#root_password| Root Password]]  
-    * [[#user_accounts|User Accounts]] 
-    * [[#networking|Networking]] 
-  * [[#references|References]] 
  
 ===== First Steps ===== ===== First Steps =====
Line 61: Line 55:
 It is also a good habit to create a regular user account for working, using "su" to obtain root privileges as needed. To create a regular user account which is part of the administrative "wheel" group: It is also a good habit to create a regular user account for working, using "su" to obtain root privileges as needed. To create a regular user account which is part of the administrative "wheel" group:
  
-  useradd -m -G wheel <username>+  useradd -m -G wheel username
  
 Then immediately set its password with: Then immediately set its password with:
  
-  passwd <username>+  passwd username
  
 This user will be in the "wheel" group and will be able to perform administrative tasks by runing "su" to obtain superuser privileges using the root password. This user will be in the "wheel" group and will be able to perform administrative tasks by runing "su" to obtain superuser privileges using the root password.
  
 +For doas copy over the example and then edit
 +
 +  cp /etc/example/doas.conf /etc && vi /etc/doas.conf
 +
 +==== Networking ====
 +
 +As root edit /etc/hostname.if (should be xnf0)
 +  
 +  vi /etc/hostname.xnf0
 +  
 +remove the inet autoconf and replace it with inet ip 255.255.255.0
 +
 +As root edit /etc/mygate
 +
 +  vi /etc/mygate 
 +
 +Add in the gateway ip from welcome email
 +
 +As root edit /etc/myname
 +
 +  vi /etc/myname 
 +
 +Add in a hostname that makes sense
 +
 +As root type in /etc/netstart 
 +
 +  sh /etc/netstart
 +  
 +Should now see your ip listed when doing ifconfig
 +
 +Now run sysupgrade twice to get the latest version
  
 ===== References ===== ===== References =====
vps_-_openbsd.1604528482.txt.gz · Last modified: 2020/11/04 22:21 by pwright