I hope many of you will agree that sometimes it’s really good idea to have some small amount of RAM mounted as a filesystem. It may be necessary when running some bash or perl script that handles, say, thousands of small files so it’s much more effective not to waste computer resources on reading/writing data on hard disk but keep those files directly in memory. This idea is known as Virtual RAM Drive or ramdisk and can be setup in Ubuntu or almost any other Linux distribution using the following commands under root (to become root in Ubuntu use "sudo -s“):
# mkdir /tmp/ramdisk; chmod 777 /tmp/ramdisk
# mount -t tmpfs -o size=256M tmpfs /tmp/ramdisk/
where 256M is amount of RAM you wish to allocate for ramdisk. It’s clear that this value should be less than amount of free memory (use “free -m“). BTW, if you specify too many MBs for ramdisk Linux will try to allocate it from RAM and then from swap so resulting performance would be very poor.
Hosts from LAN1 should be able to access hosts at LAN2 and vice-versa through GRE tunnel between R1 and R2. ISP doesn’t care what networks are behind R1 and R2 so the only way to establish connection between LAN1 and LAN2 is to use VPN, in this example we use GRE.

GRE setup example topology
Continue reading…
Date: December 25, 2009. Categories:
solaris.
In order to use install man pages for various commands in Solaris it is necessary to get two packages: SUNWman and SUNWdoc. You can check if they are already installed using commands ‘pkginfo SUNWdoc' and 'pkginfo SUNWman', or just try ‘man man‘. If they are not present in your system you can install them from Solaris 10 cd-rom (I guess you’re using exactly this version of Sun’ operating system):
1. Mount cd-rom:
mount -F hsfs /dev/dsk/c0t1d0s2 /mnt/
where c0t1d0s2 is identifier of your cd-rom and may differ from system to system.
2. Install Packages:
pkgadd -d /mnt/Solaris_10/Product SUNWman
pkgadd -d /mnt/Solaris_10/Product SUNWdoc
Ho-ho-ho, see below a set of Sexy Christmas Wallpapers…
Continue reading…
Date: December 21, 2009. Categories:
linux and unix.
Below list of Linux cheat sheets can be used by everybody who administer Linux operating system including beginners/newbies and bearded gurus.
PDF | Command Line Interface (CLI), Security, Networking
HTML | CLI, Gnome/KDE
PDF | Linux Distributions Cheat Sheets
HTML/PDF | vi, sed, awk
Recent Ideas