Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
tutorials:vps_netbsd [2011/04/30 15:00] – created clemenstutorials:vps_netbsd [2012/01/16 01:58] memnon
Line 21: Line 21:
 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 &lt;username&gt;+  useradd -m -G wheel <username>
  
 Then immediately set its password with: Then immediately set its password with:
  
-  passwd &lt;username&gt;+  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.
Line 78: Line 78:
 To set this up on boot, execute the steps above and then: To set this up on boot, execute the steps above and then:
  
-  echo "nfs_client=YES" &gt;&gt; /etc/rc.conf +  echo "nfs_client=YES" >> /etc/rc.conf 
-  echo "rpcbind=YES" &gt;&gt; /etc/rc.conf +  echo "rpcbind=YES" >> /etc/rc.conf 
-  echo "10.1.0.1 vps" &gt;&gt; /etc/hosts +  echo "10.1.0.1 vps" >> /etc/hosts 
-  echo "vps:/images/pkg_neb501 /images/pkg_neb501 nfs ro" &gt;&gt; /etc/fstab +  echo "vps:/images/pkg_neb501 /images/pkg_neb501 nfs ro" >> /etc/fstab 
-  echo "export PATH=$PATH:/usr/pkg/bin:/usr/pkg/sbin" &gt;&gt; /etc/profile+  echo "export PATH=$PATH:/usr/pkg/bin:/usr/pkg/sbin" >> /etc/profile
  
 Note that you cannot use both this pre-built pkgsrc and pre-built packages from netbsd.org. It may be possible to set the system up so you can, however this is best left to the experienced NetBSD administrator. Note that you cannot use both this pre-built pkgsrc and pre-built packages from netbsd.org. It may be possible to set the system up so you can, however this is best left to the experienced NetBSD administrator.
Line 99: Line 99:
  
   for set in games xbase xcomp xetc xfont xserver ; do \   for set in games xbase xcomp xetc xfont xserver ; do \
-    tar tzf /usr/INSTALL/$set.tgz | sed -e 's/^\.//' &gt;&gt; /tmp/purgelist ; \+    tar tzf /usr/INSTALL/$set.tgz | sed -e 's/^\.//' >> /tmp/purgelist ; \
   done   done