Configuring FreeBSD for VPS

The article below goes through the steps that you need to follow to configure FreeBSD for running a virtual private server.

Edit the superuser password:

# passwd

Update the ports (if you wish to install the latest packages. This process may take a longer time)

# portsnap fetch

# portsnap extract

Install the mc file manager

# cd /usr/ports/misc/mc/

# make install clean

[X] SLANG Build with SLang library

[X] ICONV Build with iconv recoding

[X] NLS Build with NLS support

[X] EDIT Build with internal editor

[ ] X11 Build with X11 library

[X] SUBSHELL Build with subshell support

[ ] SAMBA Build with Samba support

Set up sshd to run from inetd (to save system resources):

# mcedit /etc/inetd.conf

Comment out the line

ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4

# mcedit /etc/rc.conf

delete the line sshd_enable=”YES”

add the line inetd_enable=”YES”

# /etc/rc.d/sshd forcestop

# /etc/rc.d/inetd start

Enable superuser e-mail forwarding:

# mcedit /etc/aliases

root: your@e-mail.address

# newaliases

X Exit -> OK

  • Facebook
  • Digg
  • Google Gmail
  • MySpace
  • Yahoo Mail
  • WordPress
  • Reddit
  • Google Reader
  • Yahoo Bookmarks
  • Windows Live Spaces
  • Blogger Post
  • MyStuff
  • Mixx
  • StumbleUpon
  • LinkedIn
  • Google Bookmarks
  • AOL Mail
  • Twitter
  • Share/Bookmark
Posted on October 6, 2010