Freebsd Installation , Brief Howto
This post cross-posted at Daemon Diaries
I recently installed FreeBSD on my laptop … here is how it went:
Backing Up!
Before we do ANYTHING , make sure you backup all data that you cannot afford to lose … because more than likely we are going to be erasing any of that durring the partitioning portion … you have been warned
Disclaimer: I am not responsible if your machine is damaged or harmed in this process , if you follow the guide EXACTLY there should be no problem
- Go to FreeBSD.org
- Find your architecture in the list and choose [ISO]
- In the list of downloads , the files you need should be called 7.0-RELEASE-(YOUR ARCHITECTURE)-disc(1-3).iso , if you want to have the maximum amount of packages available to you you must have all three discs
- Burn all three disc images to CD
- Insert the first disc and reboot your PC
- Select your country
- Choose Standard Installation
-
STOP!
… depending on how you setup this next big all of your data may be erased ,
BACKUP YOUR DATA NOW
- Once you’ve backed up all of your data , press the d key until all slices are deleted
- Press the c key to create a new slice … make this one about double the amount of physical ram you have in your computer , if you have 512 megs of ram make this one 1024 megs (1gig) for the type , enter 130 for a swap partition
- Now select the remaining unused space and accept the default size (or change if if you want more than one partition and enter type 165 (UFS , the FreeBSD default)
- Now in the next screen (the BSD DiskLabel editor) press the c key and enter an amount equal to double the amount of your ram , for instance if you have 512 megs of ram enter 1024M here , select swap as the type
- press the c key again , accept the default , select FS as the type and enter / as the Mount Point
- Press the q key to finish
- Select the distribution set you want , the descriptions are pretty accurate … I chose X-User which is a pretty good base to use (you can change this at any time)
- this is the VERY LAST CHANCE to save your data … after this it will all be overwritten , select CD/DVD for your source and sit back while FreeBSD installs (this should take between 20-40 minutes depending on your processor speed)
Optional Steps
- follow the prompts after the installation , insert the other cds as the installer requests and after you reboot you should have a full working FreeBSD system , you do have X but no window manager
- to easily get a window manager running , login as root at the login prompt using the password you set in the installer
- type “pkg_add -r openbox” to install a window manager
- type “pkg_add -r feh” to install a program to set your wallpaper
- type “pkg_add -r xterm” for an x-terminal-emulator
- type “pkg_add -r firefox” to install a web browser
- finally type “pkg_add -r sudo” to install the sudo package … we’ll configure this later
- type logout to log out of the root user account
- now login as your user account
- type vi ~/.xinitrc , press the i key and type “exec openbox-session” , press the escape key , and type “:wq”
- Finally type startx to open X and openbox will open , press the right mouse button to view the openbox menu
Setting up openbox
Setting up sudo
sudo is a program that allows users to act as root to do certain tasks like adding packages , installing ports ,or editing system files
- login as root from a virtual-term and type visudo
- press the i key , add a line at the bottom that says “%wheel ALL=(ALL) ALL” , press the escape key and type “:wq”
- now you need to add your user to the “wheel” group to get sudo access , to do this type (as root) “pw usermod -G ftpusers” and replace with your user name…
Now as a regular user you can type sudo followed by your password to execute any command as root
About this entry
You’re currently reading “Freebsd Installation , Brief Howto,” an entry on Syntactic Whitespace
- Published:
- Saturday, June 14th, 2008 at 9:30 pm
- Author:
- Mike
- Tags:
- bsd, FreeBSD, Guide, HowTO, tutorial, UNIX, Unix-Clone, Unix-Variant
No comments
Jump to comment form | comments rss | trackback uri