≡ Menu

source code

PHP: GeSHi Syntax Highlighter Enable / Disable Line Numbers

I'm using GeSHi under php to highlight a source code. How do I turn on or off line numbers using GeSHi?
[click to continue…]

VI / VIM: Open File And Go To Specific Function or Line Number

How do I open a text file using VIM or VI and go to specific line? How do I open a file using vim and go to specific function() in my source code?
[click to continue…]

CentOS or Redhat Enterprise Linux

Can you explains the basic difference between CentOS and RHEL?
[click to continue…]

How do I install FreeBSD kernel source code?

Q. I need to configure FreeBSD kernel but not able to find out source code in /usr/src/sys directory. How do I install FreeBSD source code?

A.Your kernel and all related source code is located at /usr/src/sys directory which is also accessible through the /sys path.

If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The easiest way to do this is by running sysinstall as root, choosing Configure, then Distributions, then src, then base and sys
# sysinstall

Select Configure
Select Distributions
Select src
Then base and sys > Select ok

Further readings

make buildworld cd: can’t cd to /usr/src/tools/build/make_check Error and Solution

'm trying buildworld under FreeBSD operating system. But I'm getting an error which read as follows:

>>> Building an up-to-date make(1)
cd: can't cd to /usr/src/usr.bin/make
*** Error code 2

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

How do I fix this problem?
[click to continue…]