CRUX : Home

Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About

Back to wiki start page

Category: General

Post installation notes

Author

Mikhail Kolesnik

Description

It is a list of common steps someone might want to perform just after the first boot (an extended and updated version of Jukka Heino's text found somewhere in the google's cache). Take it as an example and adjust to your needs with care.

Instructions

Note
It's recommended to select opt/sudo during install. You'll be able to skip some steps if it's not a cleanly installed system.
  1. Add a pkgmk user and group for building ports without root privileges
    # groupadd pkgmk
    # useradd -m -g pkgmk pkgmk
    
  2. Set up fakeroot building in /etc/prt-get.conf
    makecommand sudo -H -u pkgmk /usr/bin/fakeroot /usr/bin/pkgmk
    
  3. Set up source and package directories in /etc/pkgmk.conf
    PKGMK_SOURCE_DIR="/home/pkgmk/distfiles"
    PKGMK_PACKAGE_DIR="/home/pkgmk/packages"
    PKGMK_WORK_DIR="/home/pkgmk/work/$name"
    
  4. Make the directories
    # mkdir /home/pkgmk/{distfiles,packages,work}
    # chown pkgmk:pkgmk /home/pkgmk/*
    # chmod 775 /home/pkgmk/*
    
  5. Add SourceForge mirror to /etc/hosts (sample ip-address is for Heanet mirror, use 193.190.198.97 for Belnet or 69.16.168.245 for easynews)
    193.1.193.66 download.sourceforge.net downloads.sourceforge.net download.sf.net dl.sourceforge.net dl.sf.net
    
  6. Optional: enable contrib repository
    # mv /etc/ports/contrib.rsync.inactive /etc/ports/contrib.rsync
    
  7. Retrieve ports
    # ports -u
    
  8. Get fakeroot
    # cd /usr/ports/opt/fakeroot
    # pkgmk -d -i
    
  9. Optional: get sudo if it wasn't already installed
    # cd /usr/ports/opt/sudo/
    # pkgmk -d -i
    
  10. Some people like to enable extra permissions for wheel group in /etc/sudoers
    %wheel ALL=(ALL) ALL
    
  11. Add a normal user
    # useradd -m -G wheel,pkgmk -s /bin/bash jukka
    # passwd jukka