SSH & X Forwarding
In modern system, many administration task will rely on the GUI. As you may using remote desktop in M$ Windows environment. Or you may using VNC in X. Or you may using ssh to forward your X display from server to client, your local machine.
Create VM thru CLI
Sample command to create a VM in VirtualBox. # list support OSTYPE VBoxManage list ostypes # create a new VM VBoxManage createvm –name Win7_64 –ostype Windows7_64 –basefolder /home/vbox/VirtualBox –register # modify the VM VBoxManage modifyvm “Win7_64” –memory 1024 –acpi on –boot1 dvd –nic1 bridged –bridgeadapter1 eth1 –vrde on –vrdeauthtype external –vrdeport 10081 –chipset ich9 –vram 128 –mouse usbtablet # Create raw disk VBoxManage internalcommands createrawvmdk -filename /home/vbox/VirtualBox/Win7_64/vm1.vmdk -rawdisk /dev/vlg1/vm1 # Attach a controller to the VM VBoxManage storagectl Win7_64 –name ‘SATA Controller’ –add sata –controller IntelAHCI –sataportcount 4 –bootable on VBoxManage storagectl Win7_64 –name ‘IDE Controller’ –add ide –controller PIIX4
VirtualBox headless authentication
By default, you could choose VRDE authentication as external to authenticate remote display connection request by using PAM. The default PAM service will be login, or you may: Create a new file named /etc/pam.d/vrdpauth In order to use a custom service you must either set the VRDP_AUTH_PAM_SERVICE environment variable (or recompile the library) Sample /etc/pam.d/vrdpauth auth required pam_unix.so account required pam_unix.so
VirtualBox building from source
This post guide you thru the installation of VirtualBox base on my experience on Slackware 13.37. Several extra packages are required to build the VirtualBox from source.
Squidclamav & SquidGuard
This post will guide you to setup an anti-virus and an URL filtering proxy.
Clamav
Clamav is an open source antivirus engine. It have been used for virus scanning engine in a lot of project, e.g. email scanning, web proxy scanning. This post will help you go through some simple steps to install the clamav in your system.
Squid cache proxy
The post will guide you to install a squid-cache server which supporting LDAP authentication and ready for virus scanning and URL filtering. Transparent proxying will be setup for internal network while external user require LDAP authentication to access the proxy.
Backup & Restore using rsnapshot
rsnapshot is a superior utility for remote and local backup. By using rsync and hard links, it could keep multiple full backup by storing only the difference which could preserve a lot of disk space. Moreover, windows machine could be backup by using SAMBA mount.
Linux watching dmb-th broadcasting
dmb-th is the digital TV broadcasting standard using in HK (China). Recent linux kernel included support for these dmb-th device, such that, Linux could watching / capturing digital broadcasting TV stream in HK.