Fiber Hosting

Affordable Professional Dedicated and Co-Location Services

Documentation and Tutorials by Fiber-Hosting LLC

Created for the novice server administrator of unix and linux powered servers.

 

Custom Freebsd Kernel

  • Install

We will need to get the src first:

sysinstall  

select Configure  

select Distributions  

select src  

select sys [/usr/src/sys (FreeBSD Kernel)]  

press Enter  

select FTP  

select Install

If you are not using this tutorial for a Fiber-Hosting server you may want to install from cd-rom in that case:

select CDROM  

select Install
  • Configuration

Time to start on the kernel customization:

cd /usr/src/sys/i386/conf

Going to this direct is for Intel based computers such as Fiber-Hosting’s

We need to copy and rename the generic kernel file

     cp GENERIC MYKERNEL

When editing your kernel keep in mind of some things

Example line from kernel: ANYDEVICE (required)

If the line says required do not comment it out or delete it.
Comment out lines with # instead of deleting them.
Change the line to read:ident MYKERNEL

If you are not sure of what devices your sever has check /var/log/messages if it has been a while since you rebooted reboot before checking /var/log/messages.

  • Compiling kernel

cd /usr/src

make buildkernel KERNCONF=MYKERNEL
If you get errors you have added in a wrong setting or took one out.
To fix it or copy GENERIC back to MYKERNEL and try to fix the changes.  

  • Installing the kernel.
    make installkernel KERNCONF=MYKERNEL

Reboot and changes should take effective.

Share this guide with a friend. These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Slashdot
  • SphereIt
  • StumbleUpon
  • Technorati

Leave a Reply

You must be logged in to post a comment.


Warning: include(/usr/home/admin/domains/fiber-hosting.com/public_html/includes/quotes.php) [function.include]: failed to open stream: No such file or directory in /home/fiber/public_html/docs/wp-content/themes/default/footer.php on line 3

Warning: include() [function.include]: Failed opening '/usr/home/admin/domains/fiber-hosting.com/public_html/includes/quotes.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fiber/public_html/docs/wp-content/themes/default/footer.php on line 3


Entries (RSS) and Comments (RSS).