Outils pour utilisateurs

Outils du site


Panneau latéral

Tips

Divers

Projets

Ham Radio

Machines

Research

Privé

Études

projets:mudrublic:openbsdinstall

OpenBSD Installation

Initial Setup

QEmu

$ sudo qemu -boot d -hda /dev/cfcard -cdrom /home/ftp/pub/mirrors/openbsd/iso/OpenBSD-3.7-i386.iso

Serial Console Installation

See Serial Terminal.

Boot bsd.rd on the serial console.

>> OpenBSD/i386 BOOT 3.02
boot> stty com0 19200
boot> set tty com0

com0: 19200 baud                                                                
boot> stty                                                                      
com0 speed is 9600
boot> boot bsd.rd

:!: Remember to enable the serial console at the end of the installation process. :!:

Partitions

#                size           offset  fstype [fsize bsize  cpg]               
  a:           800000               63  4.2BSD   2048 16384    1 # /            
  b:           100000           800063    swap                                  
  c:          1000944                0  unused                                  
  d:            50000           900063  4.2BSD   2048 16384    1 # /var/log     
  e:            50881           950063  4.2BSD   2048 16384    1 # /tmp 

Packages

Remove comp46.tgz, game46.tgz and misc46.tgz.

Pre-reboot Configuration

The serial console has to be enabled at boot, both foc kernel messages and user login.

echo "stty com0 19200" > /etc/boot.conf
echo "set tty com0" >> /etc/boot.conf

In /etc/ttys:

tty00   "/usr/libexec/getty std.19200"   vt220   on  secure

Reboot

Now.

Configuration

Needed Packages

# PKG_PATH=ftp://ftp.arcane-networks.fr/pub/OpenBSD/`uname -r`/packages/`uname -m`/
# PKG_PATH=ftp://mirror.internode.on.net/pub/OpenBSD/`uname -r`/packages/`uname -m`/
# pkg_add bash vim-X.X.XXXpX-no_x11

Operator Account

Logging in as root is not recommended.

Activating the Account

# passwd operator
(...)
# mkdir /operator
# chown operator.wheel /operator
# chfn operator

(set the shell to bash)

# vim /etc/group

(add operator in group wheel)

# visudo

(uncomment the line for group wheel)

# logout

Configuration

In .bash_profile, add:

export PS1="\u@\h:\w$ "
export PKG_PATH="ftp://ftp.arcane-networks.fr/pub/OpenBSD/`uname -r`/packages/`uname -m`/"
export PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
export EDITOR="vim"

Mails

All emails to root are sent to operator, for whom emails are forwarded to shtrom-mudrublic@ssji.net. At the beginning of /etc/mail/aliases:

operator:  shtrom-mudrublic@ssji.net
root:      operator
(...)
#operator: root
$ sudo newaliases

Disable SSH Root Logins

In /etc/ssh/sshd_config:

PermitRootLogin no

sysctl

In /etc/sysctl.conf, uncomment:

  • net.inet.ip.forwarding=1
  • net.inet6.ip6.forwarding=1
projets/mudrublic/openbsdinstall.txt · Dernière modification: 2013-11-15 05:06 (modification externe)