Home
|
UNIX
|
Practical
A few inter-Linux tips
Compile a custom kernel
In brief,
make mrproper
make menuconfig / cloneconfig / oldconfig
make bzImage
make modules
make modules_install
Note you may want to have a copy of /boot/config* and load it inside "menuconfig" and compare the changes afterwards.
Initrd
To make the initrd, either use,
mkinitrd
or
mkinitramfs
Kernel modules
List the loader modules,
lsmod
Show the current modules configuration,
modprobe -c
Processes
Processes list or identification,
ps auxfw | less
lsof -i :80
Keyboard
Change the keymap,
loadkeys fr
Memory
To see how much memory you have,
free -m
Note. on this one look at the +/- buffers line which ommits freacking caching.
top
cat /proc/meminfo
dmesg | grep -i mem
vmstat
Disable Linux memory cache on ~2.6.16+ kernel,
sync
cat /proc/sys/vm/drop_caches
#echo 3 > /proc/sys/vm/drop_caches
sysctl vm.drop_caches=3
echo "vm.drop_caches = 3" >> /etc/sysctl.conf"
sync
Set the date
Manually,
date -s 20080101
date 18:00
or,
date -s "20080101 18:00:00"
and,
hwclock --systohc
Note on framebuffer modes
As boot time kernel argument,
vga=791
or
vga=773
Here's the avalable modes,
640x480 800x600 1024x768 1280x1024
256 (8bit) 769 771 773 775
32000 (15bit) 784 787 790 793
65000 (16bit) 785 788 791 794
16.7 Mill.(24bit) 786 789 792 795
Refs. fr.opensuse.org/SDB:Configurer_framebuffer_pour_des_cartes_graphiques_non_prises_en_charge_(GRUB)