≡ Menu

kernel source

Linux: Find Out If a Particular Driver / Feature Compiled Into Running Kernel or Not

Q. I know how to find out information about compiled driver under FreeBSD kernel. But, how do I find out if a Particular feature, driver or filesystem support is compiled into my running Linux kernel or not? How do I find out if DMA support is compiled into my kernel?
[click to continue…]

Suse Linux install vmware tools

Q. I’m using OpenSuse as Guest OS (VPS). Installing SUSE Linux as a VMware Workstation guest operating system was easy task. But how do I setup and install SUSE Linux as a VMware Guest? How do I install vmware tools to improve performance?

A. In order to install Vmware tools, you need to build kernel modules. Building kernel modules is easy provided that following packages are installed on the guest OpenSuse / Suse Linux (VPS):

=> kernel-source

=> binutils

=> make

=> gcc

=> gcc-c++

Install required software

Login to guest oses using SSH or Vmware server console. Use yast command (yast control center) to install required software:
# yast
Select Software > Software management > Add above packages > Accept and install the softwares
The Software Management tool in YaST text mode
(YaST text mode software installation)

If you are using a GUI, you should see screen as follows (YaST2 screen):

Start VMWARE Tools installation

You need to start VMware tools installation from Vmware server console or Vmware Workstation VM menu.
Click on VM Menu > Select Install Vmware Tools... > Click on Install
Start VMWARE Tools installation

Mount the VMware Tools virtual CD

If you are using guest system’s desktop, you should have mounted a CD. If you are using text mode, run mount command as follows:
# mount /dev/hdc /media

mount: block device /dev/hdc is write-protected, mounting read-only

Replace /dev/hdc with actual virtual cd rom drive.

Install the VMware Tools RPM

Finally install rpm file,
cd /media
rpm -ivh VMwareTools-1.0.3-44356.i386.rpm

Configure Vmware tools

Next you need to run the VMware Tools configuration script. You must run script from VMWare server console / Workstation and not from SSH session:
# vmware-config-tools.pl
# vmware-config-tools.pl -default

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