The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 changing more text
Author: Mike Raymer 
Date:   28-10-01 19:11

(posted by Dan Langille)

In your article, you talked about how to get your name in your
kernel when performing a uname -a. I've played around with
this as well and in fact, you can change quite a bit of the text.
You just need to edit the right file prior to compiling your kernel.

After editing my kernel file, named KERNEL, and doing the
config KERNEL, change directory to ../../compile/KERNEL.
Once there, use vi, or your editor of choice, and make your
changes to the file vers.c You can edit the name (as you were
doing), the version number and even the OS name (why would
anyone want to hide the fact they run the best operating system
available?). Then proceed with the remainder of compiling your
kernel, make depend && make && make install.

Anyway, thought this might tie into your article and allow you to
customize some aspects of the system output.

If I'm mistaken in what you were attempting to do, then I apologize for not reading the article thoroughly

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum