FreeBSD Installation
A. 5.x vs 4.x The first thing to understand about FreeBSD is that there are two lines of development. The -STABLE branch is marked with a 4.x version number and the most recent version is 4.10. It is well tested and very solid, but does not include the most recent technology. The -CURRENT branch, marked with a 5.x version, is the “unstable” branch. However, it is nicely stable at the moment and is coming along quite well. Most users should go with 5.x and these instructions are only valid for that tree.
NOTE: DragonFlyBSD ( www.dragonflybsd.org ) is a continuation of the 4.x line. It uses lock-less (no mutexes) SMP support and a Light Weight Kernel Threading system. It has a lot of promise and is developing at a breakneck pace, but it should still be thought of as “R/D.”
B. Getting Media I am not going to say much about this. There are links to various ftp mirrors at www.freebsd.org and the directory structure is fairly self-explanatory. There are however several choices for ISO. You should choose the miniinst ISO. It is small and will include everything you need for the base system.
C. Starting Installation After, the CD boots up you will enter the...ahh.....majestic sysinstall. You can safely ignore most of the options and just choose a standard installation. Most of the install process is pretty easy and anyone who has some experience with linux or unix will be able to handle it without much stress. However, creating partitions and dealing with drives will seem very odd to your standard linux user.
D. Hard Disc Management in FreeBSD Ok, the first thing to get used to here is that IDE drives are not hda, hdb...etc. They are ad0, ad1 and so forth. SCSI discs are da0, da1...and so on. There is one other thing that is going to freak some people out. You create slices, not partitions, on the disc and then create partitions within those slices. For example, the first partition in the first slice on the first IDE disc would be ad0s1a. Just accept it.
E. Partitioning Sysinstall will lead you through the partitioning and its fairly easy to understand. The first part will ask you to choose a disc or discs to partition and then will show you a "slice editor." This is where you will create your slice. I advise you to only make one. While multiple slices are easy to deal with, it just adds complication. If this is not your first installation of a BSD type OS, then you can ignore me and why are you reading this again?
After creating your slice, you will be prompted to choose the drive(s) to install an MBR on. The FreeBSD boot loader is nothing to write home about, but it tends towards working. After this step, you can create partitions. There is not much to say here. At the top of the screen it will show your slice(s) and when one of them is selected you can use the controls to create a partition on it. You will need at least a root and swap partition. On the non-swap partitions it is usually a good idea to enable soft-updates.
F. Distribution Sets This is a simple section, select minimal.
G. Continue Installation The rest of this is pretty simple. Make sure you install from the CD and not the Internet. The bulk of the install is now done. After it copies files to your disc, it will start the configuration process. This is all pretty self-evident, but there are a couple things you should know.
Network Configuration
Don't be scared by the names, in *BSD devices are named after their drivers. There is also a short description after the name, so you should be able to choose the right one. The rest of the network config is easy, just follow the prompts.
System Console Configuration
You can pretty much ignore this, you may want to look around for your own knowledge and of course you could pick a nice screen saver here, but other then that I would leave it alone for now.
Time Zone
All I have to say here is that if you live in the US, after you choose “America – North and South” hit the end key. The US is at the bottom of the list and hitting end is the quickest way there.
Linux
Say no, we will do this later and with an updated linux_base.
Mouse
OK, welcome to the wonderful and amazing world of moused. Answer the first question truthfully, and then you can tweak the settings in the “Please configure your mouse” dialog. Whatever you do, be sure to enable the daemon. Also, for most users that is all you will have to do. You can safely ignore the other options.
Package Installation
At this point, the installer will ask you to install binary packages. Say no. These binaries are out of date and not included on our CD.
Of users and roots
This isn't the most thrilling section, add a user when it asks you to and set a root password after that. The only thing I have to say about this process is when the new user dialog comes up leave the “Group:” box unchanged and add “wheel” to the Member groups. You also might want to set your shell to /bin/tcsh. As for setting the root password, if you can't handle that we have bigger problems.
Rebooting
Ok, next it will ask if you would like to visit the general config area. Select no and you will be brought back to the main menu. Exit the install, reboot without the CD in and enjoy the boot messages.
H. The Real Post-Install At this point, I am going to assume that you are now looking at a login prompt and thinking “my my...FreeBSD boots quite quickly doesn't it.” Well, our task is not done yet...there is a reason we did a minimal install. We are going to do most of it ourselves. First, lets upgrade to -CURRENT. This isn't a practice I would usually recommend, but 5.x is close to being tagged stable and -CURRENT is rather solid at the moment. First, I need to explain how things are done in the BSD world.
Sup?
CVS up; you up; we all CVSUP. Cvsup is a very interesting program that I am not going to explain in detail here. All you really need to know is that it updates source trees. You see, that is the thing. You may be used to /usr/src not doing much. In BSD it has a job, it holds the source for the entire base system. However, we did a minimal install and no source is there. It wouldn't be up2date anyway. So, lets fix that. Login as root and type the following: pkg_add -r cvsup-without-gui
pkg_add is the binary installer for FreeBSD and the -r argument tells it to fetch binaries from the net. It will also fetch any deps that you might need. Switch to another console while this is happening and login as root. Do the following:
cd /etc
cp /usr/share/examples/etc/make.conf /etc/make.conf
cp /usr/share/examples/cvsup/standard-supfile /usr
cp /usr/share/examples/cvsup/ports-supfile /usr
chmod u+w /etc/make.conf /usr/standard-supfile /usr/ports-supfile
What was that? Well here is the rundown. Make.conf is the file that controls the building of programs from source on FreeBSD and the supfiles tell cvsup where to get the source for the base system and the ports system, also where to put said source. They come out of /usr/share/examples without the write bit set and that gets annoying. So we set that. Now switch back to the first console and type rehash. This tells tcsh to check its path for new programs. Now, edit the standard supfile that is in /usr. You can either use ee or vi. I like vi. Scroll down to the line that looks a bit odd. It will be something like:
*default host=CHANGE_THIS.FreeBSD.org
The “CHANGE_THIS” is where you put what cvsup server to use. Choose a number between 1 and 9, like 4, and put cvsup4 where CHANGE_THIS is. So it would end up being:
*default host=cvsup4.FreeBSD.org
Now exit your editor and run cvsup /usr/standard-supfile
If everything goes correctly, you will see a lot of text scrolling on the screen. If it says something about a bad connection, try another number.
Make.conf
Now 'tis the time for all good men (and women) to edit their make.conf . This is not difficult, in fact have a look around the file. It may be long, but it is pretty simple. Now, uncomment the CPU setting and the CFLAGS setting. Set the CPU to your CPU (there will be a list in the comments above the setting) and set the CFLAGS to -O2. (NOTE: If the base system fails to build, downgrade your CFLAGS back to -O).
Build Your World
When CVSUP finishes (it will be awhile...go get some coffee), cd to /usr/src and run make buildworld. That command will do exactly what it sounds like. It builds your world, or base system. While its doing that, lets get you a kernel. First, cd to /usr/src/sys/i386/conf then cp GENERIC to some file of your choosing. Any name you want. However, be aware that this is going to show up in a uname -a. Now, crack open your new file and take a look at what a FreeBSD kernel config is like. There are many things you can do here that will improve performance and subtract in size. However, lets keep it simple. Near the top of the file will be the name GENERIC. Change that to your new name. You can now look through the file and you will find several sections that are just for debugging. These will indeed add size and slow down the kernel a bit, but I would leave them for now. Go to the end of the file and make a new line. Add the following:
device pcm
This will add sound support to the kernel. Be aware that you don't need to do this, you can load binary modules at boot or after boot, but this way is easy and sound is used often. Save the file and exit. Go back to your buildworld console and when its done execute make buildkernel KERNCONF=YOUR_KERNEL_CONFIG_NAME
NOTE: NOT THE PATH OF THE KERNEL CONFIG..it knows to look in /usr/src/sys/i386/conf
Installing Your World
This isn't that difficult. First run make installkernel KERNCONF= your config name. Now here is the interesting part. Run mergemaster -p, this program looks through your etc and updates it to match the new /etc in /usr/src. It will display changed files to you, press q and it will give you options. Something like i (install), m (merge) etc. Pick merge and it will open a nice little screen that shows you one file on the right and one on the left. It will go section by section, showing the areas that have changed. Press r or l to choose which section to keep. Its pretty easy to see which section has new stuff and which does not. After the merge, it will prompt you with options for the newly merged file. One of these will be install and this is the one you want. In the latest current, most of what you will be showed is user and group files. Make sure you do select the sections with the new users and groups. After this is done, it will ask you a couple questions that you can say yes to. Now that your /etc is upda ted run make installworld then reboot.
NOTE: You usually don't need to run mergemaster. However, 5.2.1 is a pretty old release and -CURRENT has come a long way.
I. Ports
Welcome to running current. The rest is easy. cd back to /usr and edit the ports supfile the same way you did the standard one. Run cvsup on it and wait. After its done, you will have a full ports tree. There is not much left to say. You now have a working system and a fully updated one too. To install software from ports cd to /usr/ports/category/softwarename/ and run make install clean . If you want linux binary support, install the linux_base port. To find where it is cd to /usr/ports and run make search name=linux_base | less . Enable loading the kernel modules for linux binary support by editing /etc/rc.conf. Just add the line linux_enable="YES" to the file and your set. If this is a desktop system, I would recommend installing /usr/ports/x11/xorg and your choice of /usr/ports/x11/gnome2 or kde3. Have fun .
Get it from:
http://www.madpenguin.org/cms/?m=show&id=1853
Post made with BlogHatter - best blogging software
Tuesday, 2 November 2010
Subscribe to:
Post Comments (Atom)
About Me
Labels
- 1000000 (1)
- 102910 (1)
- 10292010 (1)
- 110510 (1)
- 111210 (1)
- 11122010 (1)
- 1142010 (1)
- 20082004 (1)
- 30000 (1)
- acceleration (1)
- Active (1)
- Adblock (1)
- addon (2)
- AdSense (1)
- ADVERTISEMENT (1)
- after (1)
- against (2)
- Aiding (1)
- alleged (1)
- AllMyApps (1)
- America (1)
- Americans (1)
- among (2)
- Analyzer (1)
- Android (10)
- Androids (1)
- Announcing (1)
- another (1)
- antiUN (1)
- antivirus (1)
- Apple (2)
- Apples (1)
- Appoints (1)
- arrived (1)
- autobookmarking (1)
- autotagging (1)
- available (4)
- Avoiding (1)
- backlash (1)
- backs (1)
- bacon (1)
- ballot (1)
- Beatles (1)
- before (1)
- better (1)
- Beyond (1)
- bigtime (1)
- Billions (1)
- BitTorrent (1)
- black (1)
- BOOKKEEPING (1)
- books (2)
- brandnew (1)
- bringing (1)
- brings (2)
- Britain (1)
- BROKERAGE (1)
- browser (3)
- budget (1)
- Build (1)
- building (2)
- BUSINESS (2)
- Calif (1)
- Canadian (1)
- Carnage (1)
- Cause (1)
- Challenge (1)
- channel (1)
- Charged (1)
- charity (1)
- Chief (1)
- China (2)
- Cholera (1)
- chosen (1)
- Christmasthemed (1)
- Chrome (6)
- ChromeBlock (1)
- cloud (2)
- clusters (1)
- collapse (2)
- color (1)
- colorblind (1)
- coming (3)
- compare (1)
- compete (1)
- Contest (1)
- contributes (1)
- correction (1)
- countries (1)
- crisis (1)
- crown (1)
- Daises (1)
- DanKam (1)
- deadly (1)
- dealer (1)
- deals (1)
- Death (2)
- debate (1)
- debuting (1)
- declares (1)
- defense (1)
- Delhi (2)
- Delicious (1)
- demand (1)
- Democrat (1)
- detained (1)
- Detainees (1)
- devices (1)
- digital (1)
- dismayed (1)
- download (3)
- downloaded (2)
- drama (2)
- Dropbox (1)
- Eagles (1)
- early (1)
- earmark (1)
- easier (1)
- editing (1)
- Eight (1)
- election (2)
- email (1)
- emailing (1)
- embarrass (1)
- emergency (1)
- encourage (1)
- enterprise (1)
- episodes (1)
- Essentials (1)
- Evernote (1)
- every (1)
- ExGitmo (1)
- Explorer (1)
- extension (2)
- extradites (3)
- Facebook (3)
- facial (1)
- failed (1)
- faster (3)
- features (1)
- Fennec (1)
- final (1)
- Firefox (2)
- First (1)
- FishVille (1)
- Fitness (1)
- fixes (1)
- Flash (2)
- Flickr (1)
- Flipboard (1)
- folders (1)
- frequency (1)
- friends (2)
- fuels (1)
- Future (1)
- gains (1)
- Gallery (1)
- gaming (1)
- Garden (1)
- Gnome (1)
- going (1)
- Google (18)
- Gospel (1)
- great (1)
- Group (1)
- Hacker (1)
- Haiti (1)
- Handson (1)
- Handy (1)
- Happy (1)
- hardware (1)
- Hardware (1)
- Headed (1)
- hectic (1)
- Helping (1)
- helps (1)
- heralding (1)
- highlights (3)
- highrise (1)
- history (1)
- holiday (2)
- holidays (1)
- homage (1)
- Honoring (1)
- Hotmail (1)
- Hotpot (1)
- households (1)
- HTML5 (2)
- humans (1)
- hunger (1)
- iBooks (1)
- image (1)
- improve (1)
- Improvements (1)
- Impulse (1)
- information (2)
- innovation (1)
- installment (1)
- Instant (2)
- Instantlike (1)
- integrated (1)
- integration (4)
- interactive (1)
- interface (1)
- Internet (1)
- introduces (2)
- Investments (1)
- investor (1)
- iPhone (2)
- Irish (1)
- issues (1)
- iTunes (2)
- jailbreak (1)
- January (1)
- Jeopardy (1)
- journalism (1)
- Justice (1)
- keyboard (1)
- kibosh (1)
- kills (1)
- Kindle (1)
- Kinect (1)
- Knoword (1)
- landing (1)
- languages (1)
- Lastfm (1)
- launches (4)
- Leader (1)
- leaves (2)
- lighter (1)
- loads (1)
- local (1)
- locationbased (1)
- madefortorrent (1)
- Mafia (1)
- Maker (1)
- Makes (1)
- Mango (1)
- Maxthon (1)
- McCain (1)
- McNabb (1)
- Merchant (2)
- Messenger (1)
- Microsoft (5)
- Microsofts (1)
- midterm (2)
- million (4)
- Millions (1)
- missiles (1)
- Missing (1)
- mobile (3)
- MONEY (1)
- movie (2)
- Mozilla (1)
- multiuser (1)
- Music (1)
- Netflix (1)
- network (1)
- Networking (1)
- nofrills (1)
- offers (2)
- Office (2)
- official (1)
- offline (1)
- Opera (2)
- OpsMgr (1)
- others (1)
- Pakistan (1)
- Palin (1)
- Panoramio (1)
- Passing (1)
- patdowns (1)
- Pelosi (1)
- performance (1)
- Phone (2)
- Photo (2)
- Photos (1)
- phrase (1)
- Pilots (1)
- Pioneer (2)
- Pirates (1)
- Place (2)
- Plants (1)
- playable (1)
- PlayStation (1)
- plugin (1)
- pocket (1)
- Police (1)
- power (2)
- powering (1)
- preparation (1)
- preview (1)
- Previews (2)
- printing (1)
- Product (1)
- Profitable (1)
- protests (1)
- Qaeda (1)
- questions (1)
- Quick (1)
- QuickDesk (1)
- quicklaunch (1)
- RADIO (1)
- Reader (1)
- ready (3)
- Reality (1)
- Really (1)
- recognition (1)
- recommendations (1)
- Redskins (1)
- Republican (1)
- results (2)
- Reuters (8)
- reveals (1)
- review (1)
- revision (1)
- right (1)
- rolling (1)
- Russian (1)
- saved (1)
- scanners (1)
- scifi (2)
- search (6)
- Search (3)
- Searching (1)
- season (1)
- second (1)
- Security (1)
- seeks (1)
- selective (1)
- selfimprovement (1)
- Senate (1)
- seniors (1)
- Server (1)
- serves (1)
- sharing (1)
- sheriff (1)
- shortcut (1)
- should (1)
- SHOUTcast (1)
- showdown (1)
- Shuler (1)
- shutting (1)
- significantly (1)
- Silverlight (1)
- social (1)
- solution (1)
- Songs (1)
- Soros (1)
- sources (1)
- Spending (1)
- Spreadsheet (1)
- stacks (1)
- START (1)
- store (2)
- Store (1)
- SunSpider (1)
- supercomputer (1)
- supercomputers (1)
- support (5)
- supported (1)
- SURVIVAL (1)
- suspect (1)
- Suspected (1)
- swells (1)
- switch (1)
- syncing (1)
- SYSTEM (1)
- tabbed (1)
- takes (1)
- tasty (1)
- TAXSAVING (1)
- Technologist (1)
- Thailand (3)
- thanks (1)
- thirdparty (1)
- those (1)
- times (2)
- TimeWaster (1)
- tools (1)
- torch (1)
- Torrentloving (1)
- tracking (1)
- trends (2)
- Tuesday (1)
- Tweaks (1)
- underrepresented (1)
- update (2)
- updated (3)
- updates (1)
- users (1)
- Veterans (1)
- vetted (1)
- video (2)
- Views (1)
- Virgin (1)
- Vista (1)
- vocabulary (1)
- Voice (1)
- Walmart (1)
- Watson (1)
- WebGL (1)
- Welders (1)
- Winamp (1)
- Windows (8)
- Woman (1)
- Words (1)
- Writer (1)
- Yahoo (4)
- yourself (1)
- YouTube (1)
- zealot (1)
- Zombies (1)
Blog Archive
-
▼
2010
(309)
-
▼
November
(206)
- Hello friends
- Have you ever been using your computer and your sy...
- Winxp Tips And Tricks, Winsock 2 repair
- By default, Microsoft includes the /prefetch:1 swi...
- Win XP Tip, Hidden Back-up utility
- Application and Boot file Defrag
- Winsock 2 Repair
- Downloading BitTorrent Files
- How to do a high Quality DivX rip
- How To Delete Those Persistent Nasty Files
- We all know that WinXP likes to keep itself held t...
- FOR HOTMAIL OR MSN EMAIL USERS
- WinRar Tutorial_Compression profiles, passwords an...
- Microsoft launches Lync: 70 new devices supported ...
- Apple TV to get Last.fm and Web browser jailbreak ...
- Yahoo outs Messenger 11 beta with loads of new fea...
- Microsoft Office 2011 for Mac is significantly fas...
- Google Docs gets mobile editing support on Android...
- Internet Explorer 9 preview 7 available, takes Sun...
- Services to turn off:
- Yahoo! rolling out Google Instant-like previews
- Garden Gnome Carnage is a hectic, Christmas-themed...
- Hands-on video review of Office for Windows Phone 7
- Google launches Hotpot for social place recommenda...
- Windows powering one in ten HPC clusters, but not ...
- ‘We’ve seen this movie before’
- You have no friends on Facebook
- Torrent-loving sci-fi drama Pioneer One landing so...
- Yahoo launches Mafia Wars and FishVille
- How to clear Bios info
- Best Networking Tweaks for Windows Server, Vista a...
- OpsMgr blog has a new home
- FTC Appoints Cool Hacker as First Chief Technologist
- How To Copy A Dvd Which Will Play On A X Box
- An early look at Winamp for Android's SHOUTcast in...
- How To Convert File System, fat - fat32 to ntfs
- First you need a tool called "Resource Hacker". Th...
- How to copy songs from your iPod to your PC
- READ EVEYTHING BEFORE YOU USE ANY METHOD LISTED BELOW
- HOW TO CAPTURE STREAMING MEDIA
- How to bypass web filters
- Britain to Pay Ex-Gitmo Detainees Millions
- Shuler to Challenge Pelosi as Democrat Leader
- "Merchant of Death" Headed for U.S. Justice
- Beatles Songs to be Sold on Apple's iTunes
- The Palin, Inc. Reality Show
- Woman Charged in Calif. with Aiding Qaeda Group
- Handy tools to help Americans vote
- YouTube highlights – 11/4/2010
- Into the cloud: Virgin America goes Google
- Happy holidays from Google Chrome: free holiday Wi...
- Voice Search in underrepresented languages
- Place Search: a faster, easier way to find local i...
- More midterm election search trends
- Searching your way to the ballot box
- Announcing the Panoramio Photo Contest
- Google Apps highlights – 11/12/2010
- The power of Google Instant, now in your pocket
- This week in search 11/12/10
- This week in search 11/05/10
- Google Apps highlights – 10/29/2010
- $5 million to encourage innovation in digital jour...
- A brand-new interface for AdSense
- App Tuesday: Eight new apps for your business
- Improvements to Product Search for this holiday se...
- Helping you find emergency information when you ne...
- Beyond Instant results: Instant Previews
- More midterm election search trends as the results...
- This week in search 10/29/10
- Passing the torch to the cloud: NYU is going Google
- Honoring Veterans Day 2010 at Google
- Cash among 4 chosen for Gospel Music Hall of Fame ...
- GM IPO swells with investor demand: sources (...
- Vick & Eagles embarrass McNabb & Redskins 59-28 ...
- Welders detained in deadly China high-rise fire ...
- Pilots among those dismayed at scanners, pat-downs...
- Suspected US missiles kill 20 in NW Pakistan ...
- U.S. and China both right in QE2 debate: Soros ...
- Euro zone seeks way out of Irish debt crisis ...
- "No pain, no gain," BHP says after failed deals ...
- Billions can be saved in defense budget: McCain ...
- Delhi building collapse leaves 65 dead (AFP)
- In switch, top Senate Republican backs earmark ban...
- Thailand extradites 'Merchant of Death' to US ...
- Cholera backlash fuels anti-UN protests in Haiti ...
- Thailand extradites Russian arms suspect to U.S. ...
- Police: building collapse in New Delhi kills 65 ...
- Ohio sheriff: Missing mom, 2 others may be dead ...
- One in 7 households hit by hunger issues in 2009 ...
- Walmart drug plan for seniors may not be best deal...
- Thailand extradites alleged arms dealer Bout to US...
- First the safety rules
- Step 1
- OK, every time I have to install, reinstall, or op...
- If any of you out there like to use the thumbnail ...
- Avoiding Impulse Spending
- Long Term Investments for the Future
- "What Really Makes You Tick?" 10 questions you sho...
- HOW TO START A MONEY BROKERAGE BUSINESS
- windows xp has burning software built in which can...
- 3 Quick And Easy Ways To Build A Profitable Opt In...
- How To Block Websties Without Software, block webs...
- HOW TO GET FREE RADIO ADVERTISEMENT
- HOW TO SET UP A TAX-SAVING BOOKKEEPING SYSTEM
- How to Bypass BIOS Passwords
- The 24 Hour Fitness Path
- SURVIVAL TIPS FOR
- Some people seem to think our network is a kind of...
- First of all, this tweak only apply to those who o...
- How to build a black box?
- part 1
- Windows Xp Tips 'n' Tricks, Windows XP Tips 'n' Tr...
- How to Add an Option to Print the Contents of a Fo...
- Windows XP Startup and Performance Tweaks
- re you sick of seeing the same tips again and agai...
- WINDOWS XP HIDDEN APPS
- Before you edit the registry, export the keys in t...
- Hi guys...here I found a tutorial of another Foum:
- �� Erasing Your Presence From System Logs ��
- let's pretend you need a serial number for windows...
- How Linux boots
- You can add an Internet URL address bar to your Wi...
- 1. Some ISP's block port 25 so it might not work
- How Download MP3s from Fanscape.com or other Strea...
- Just found this on the net, so I gave it a try.
- How To Access Your Folders From Your Taskbar
- Enable Folder and Icon Refresh
- Simple and useful tip
-
▼
November
(206)
0 comments:
Post a Comment