DflyAfterInstall

From shankerbalan.net
Jump to: navigation, search

Contents

Dragonfly BSD After Install

Banner

Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
       The Regents of the University of California.  All rights reserved.

DragonFly 1.7.0-DEVELOPMENT (GENERIC) #0: Wed Sep  6 01:59:51 IST 2006

Welcome to DragonFly!

You can open up a new split-screen window in (n)vi with :N or :E and then
use ^w to switch between the two.
> 

rc.conf

hostname="faith-df.shanu.net"
ifconfig_ed0="inet 192.168.45.2 netmask 255.255.255.0"
defaultrouter="192.168.45.1"

rpcbind_enable="YES"
nfs_client_enable="YES"
moused_enable="YES"
sshd_enable="YES"

cvsup base

  • /etc/supfile
# /etc/supfile
*default host=cvsup.dragonflybsd.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
dragonfly-cvs-src
  • CVSup
> cvsup /etc/supfile 
Password:
Connected to cvsup.dragonflybsd.org
Updating collection dragonfly-cvs-src/cvs
Finished successfully
> 

pkgsrc

Bootstrap

> tail  -20 /usr/src/UPDATING
Starting with the 1.4 release, DragonFly uses NetBSD's pkgsrc package
management system.  The necessary tools to build and maintain packages
are provided in /usr/pkg/bin and /usr/pkg/sbin.  Make sure that these
directories are in your PATH variable.

In order to obtain a reasonably current snapshot of the pkgsrc tree, use
the tarball from NetBSD:

       fetch -o /tmp/pkgsrc.tar.gz ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc.tar.gz
       cd /usr; tar -xzf /tmp/pkgsrc.tar.gz; chown -R root:wheel pkgsrc

This tree can then be kept up to date with cvs update:

       cd /usr/pkgsrc; cvs up

NOTE! If you upgraded from a pre-1.4 system to 1.4 or later, you need to
build and install the pkgsrc bootstrap manually:

       cd /usr/pkgsrc/bootstrap
       ./bootstrap --pkgdbdir /var/db/pkg --prefix /usr/pkg

Update mk.conf

My /usr/pkgsrc is NFS mounted. Using a local work directory to avoid NFS traffic.

### /usr/pkgsrc/etc/mk.conf
WRKOBJDIR=              /usr/tmp/pkgsrc
DISTDIR=                /home/shanu/pkgsrc/distfiles

Install Security Packages

  • audit-packages
> cd /usr/pkgsrc/security/audit-packages/
> sudo bmake install
  • sudo
> cd /usr/pkgsrc/security/sudo
> sudo bmake install

Fix sudoers file later.

Personal tools