Category Archives: Linux

Enable local file caching for NFS share on Linux

In Linux, there is a caching filesystem called FS-Cache which enables file caching for network file systems such as NFS. FS-Cache is built into the Linux kernel 2.6.30 and higher. In order for FS-Cache to operate, it needs cache back-end … Continue reading

Posted in Linux, Z1 | Tagged , , | Leave a comment

SSH Tricks

Forcing either IPv4 or IPv6 This is for the scenario that you know which specific protocol works to reach a particular host. Usually good to eliminate the delay for SSH to figure out to switch IP protocols. For IPv4: ssh … Continue reading

Posted in Linux, Z1 | Tagged , , , | Leave a comment

Remote VirtualBox

RemoteBox is a Remote VirtualBox UI. It is similar phpVirtualBox in that allows to manage VirtualBox remotely (on a potentially headless server). They differ in their requirements: RemoteBox does not require much on the server, but you need to install … Continue reading

Posted in Linux, Z1 | Tagged , | Leave a comment

Running Windows on Linux for Free

Microsoft is now making available Windows VM image for testing Internet Explorer for free. You can find them at: Modern IE testing Currently the following versions are available: Windows XP Professional SP3 + IE 6 or 8 Windows Vista + … Continue reading

Posted in Linux, MS-Windows, Z1 | Tagged , , , | Leave a comment

Diskless Archlinux

I am still to test this recipe Server Configuration First of all, we must install the following components: A DHCP server to assign IP addresses to our diskless nodes. A TFTP server to transfer the boot image (a requirement of … Continue reading

Posted in Linux, Z1 | Tagged , , | Leave a comment

ArchLinux tips

Custom Repos and Packages In the repo directory, put all the packages in there. repo-add ./custom.db.tar.gz ./* Add to pacman.conf: [custom] SigLevel = [Package|Databse]Never|Optional|Required Server = path-to-repo See also repo-remove. A package database is a tar file, optionally compressed. Valid … Continue reading

Posted in Linux, Z1 | Tagged , , | Leave a comment

Native Kerberos Authentication with SSH

Pre-requisites First off, you’ll need to make sure that the OpenSSH server’s Kerberos configuration (in /etc/krb5.conf) is correct and works, and that the server’s keytab (typically /etc/krb5.keytab) contains an entry for host/[email protected] (case-sensitive). I won’t go into details on how … Continue reading

Posted in Linux, Z1 | Tagged , , | Leave a comment

PHP Tips

Object oriented introspection property_exists(obj,prop_name) method_exists(obj,method_name) is_a(obj,’clas_name’) or ($obj instanceof ClassName) Dynamic coding Call a method: call_user_func(array($obj,’method’,…args…) You can simply $obj->prop = value to add properties. or you can use __set and __get. See http://php.net/manual/en/language.oop5.overloading.php varargs func_get_arg(num) func_get_args() func_get_num_args()

Posted in IT development, Linux, Web, Z1 | Tagged , , , | Leave a comment

SATA/IDE warm plug/unplug

This is for SATA and IDE interfaces that do not automatically detect added/removed devices. Scanning for newly added discs: echo “- – -” > /sys/class/scsi_host/host0/scan safely removing a disk echo 1 > /sys/block/sda/device/delete Other notes… In the HP MicroServer, we … Continue reading

Posted in Linux, Z1 | Tagged , , , | Leave a comment

Linux Keyboard Tips

Turn number pad into a mouse controller This comes in handy when working at a colo or someplace where you don’t have a mouse and then find yourself needing to use X11. Press the following key combo: Ctrl-Shift-Numlock Now the … Continue reading

Posted in Linux, Z1 | Tagged , , | Leave a comment