Monthly Archives: March 2012
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.