Git and SSH are both powerful tools, and git/ssh work well together. We introduce how to set up git server via ssh in this post. Git server through SSH is ... read more »
Port forwarding is simple to do with iptables in a Linux box which may probably already being used as the firewall or part of the gateway operatioin. In Linux kernels, ... read more »
The mailx or mail command in Linux is still providing service for guys like me, especially when we need to send email automatically by script. gmail is great. Now, how ... read more »
A method to send email notification to a list email addresses by the remote git server after every push from the client will be introduced.
After the client pushing to the ... read more »
Update: Since gitosis is not maintained and supported, please check out gitolite for setting up a new git server. (see the comment from Sitaram Chamarty, the author of gitolite.)
Gitosis is ... read more »
Update on Nov. 18, 2012: ATI fglrx driver works well on Fedora 17 with GNOME 3 Shell. Should work well with later releases. Great driver, ATI!
Update on Nov. 29, 2011: ... read more »
The performance of Xen’s Dom0 is important for the overall system. The disk and network drivers are running on Dom0. I/O intensive guests’ workloads may consume lots Dom0′s CPU cycles. ... read more »
I frequently create new user accounts and change or set password for these accounts on a batch of Linux boxes. The create new user can be done by one command ... read more »
VMware Player and VirtualBox are two cool and free full virtualization solutions and both can run on top of a Linux host. In this post, we introduces how to install, ... read more »
Compress/uncompress files are frequent operations. The normal tools for compressing/uncompressing in Linux is gzip, bzip2, 7z, rar and zip. This post introduces how to compress and uncompress file in Linux ... read more »
The Linux kernel has a generic driver for a graphic framebuffer named vesafb on intel boxes. It provides a nice large console for most of modern displays.
Setting VESA modes for ... read more »
Update: crontab provides some extensions to support this directly–’Ranges can include “steps”, so “1-9/2″ is the same as “1,3,5,7,9″‘. Check the crontab man page for more details. This post provides ... read more »
How to manage users and repositories and how to use these repositories will be introduced in this post. Please refer to Setting Up Git Server Using Gitosis for how to ... read more »
The design of Mac OSX’s theme is very nice. I am always looking for a good theme for my Linux desktop. There are designs influenced by Mac’s style which looks ... read more »
Port forwarding (or tunnelling) is a method to forward one network traffic to another. We will introduce how to forward ports using SSH tunnel in this post.
A simple example
Let’s start ... read more »
The ports used by NFS server can be dynamically assigned by rpbind to any higher number. We need to fix the ports used by NFS server to configure firewall or ... read more »
In this post, how to unified Linux login and home directory using OpenLDAP and NFS/automount will be introduced.
0. System environment
This solution is tested on Fedora 12 systems. This method should ... read more »
If /etc/fstab file is created with errors or the hardware configuration changes such as adding hard disks, Linux will boot into failure state. We can bypass the fstab failure by ... read more »
Setting up Ubuntu 10.10 DomU on top of Fedora Xen Dom0 is introduced in this post. The process of setting up Ubuntu 10.10 DomU is the same as Setting Up ... read more »
The firmware version can be easily checked out in Linux by dmidecode, a tool to locate the computer’s Desktop Management Interface (DMI) table and dump the content to human-readable content. ... read more »
We make mistakes when developing before or after committing in git. We may revert changes and fix our mistake by using git.
Revert entire working tree before committing
We can return the ... read more »
Creating file-backed virtual block device (VBD) for Xen virtual machines and installing Fedora 12 in Xen DomU via internet will be introduced.
The Dom0 platform on top of which this DomU ... read more »
Fedora’s repositories provide most of the software packages needed when using Linux. However, for various consideration, they do not provide some packages, such as MPlayer, ffmpeg. Fortunately, some community maintained ... read more »
As a Linux user, I must keep a copy of Windows. One reason is that I should edit MS Office files, such as .doc, .ppt, .xls and .xml (office 2003 ... read more »
Sharing the networking is important. Setting up a gateway is a good solution to it. Building up the gateway on a Linux box is easy and cost efficient, but reliable. ... read more »
We may need to install some old packages such as the kernel in our Linux box. Let’s use installing a older version of Linux kernel in Fedora as the example ... read more »
How to set date, time and timezone on Linux/Unix box will be introduced in this post.
Unix time, or POSIX time which is a system for describing points in time is ... read more »
LVM’s snapshot feature enables us to duplicate an LVM backed Xen DomU in seconds inside of the same volume group. When we want to duplicate LVM backed Xen DomU from ... read more »
tmpfs has blazing speed. Why not set up a high speed NFS server on top of tmpfs?
A little trick is required for setting NFS server on top of /dev/shm. If ... read more »
The Xen solutions including installing and configuring Dom0 and DomU are summarized here. This post will be updated when our solution changes. Only the latest tested stable solutions are listed ... read more »
We can set up a socks proxy on top of a SSH tunnel. Besides the common proxy functions, such as web browsing, the proxy on top of SSH tunnel also ... read more »
On a x86-64 64 bit Linux system, sometimes we may want to use the 32 bit Firefox, although the support to 64 bit Firefox is getting much better. Just for ... read more »
IPv6 is enabled by default on most Linux distros. However, IPv6 is not used most of time (at least in my case). This post introduces how to disable IPv6 support ... read more »
I don’t use xdm, gdm or kdm… I prefer my Linux booting to init 3. I like logging in to the command-prompt and starting X manually with startx. In my ... read more »
Assumption: There are VBD based Xen DomU virtual machines stored under
/lhome/xen/vm-f11-sample/. There are two files under vm-f11-sample: vm0-f11.run (The configuration file) and vmdisk0 (The virtual disk). Now we want to ... read more »
Taking screenshots in mplayer is simple. mplayer can also take continuous snapshots.
Enable screenshot filter
When we want to take screenshots when playing video, first we need to set the “-vf screenshot” ... read more »
Please refer to here for the platform of this test.
I have done some simple performance test on DomU and Dom0 and compare with the performance on physical machines. These test ... read more »
This post introduces how to install flash plugin to 64-bit firefox on a x86-64 Linux (Fedora as the example). Both 64-bit and 32-bit plugin are available.
64-bit flash plugin for Firefox ... read more »
How to create a LVM group from two hard disk partitions is introduced in this post.
Assume we have installed two hard disks /dev/sdb and /dev/sdc to the server, our task ... read more »
This is the latest stable and recommended stable Xen Dom0 solution on Fedora 12. No serious bug found till now and we will fix the bugs by ourselves if some ... read more »
We usually have video files in .wmv .mpg .rmvb or .mkv formats. The iPod, iPhone or iPad only accept a limited number of video file types, such as .mov and ... read more »
Sometimes we need to have the GUI of some application on the remote server. ssh’s X11 forwarding with “-X” parameter is a good and fast method. But if we want ... read more »
Here is a list of problem that may occur during installing and configuring Xen Dom0 in Fedora. It is found originally in Fedora systems, but the tips in this post ... read more »
Compiling a latex documents may take several steps when bibtex is used with latex. However, this latex compilation process is the same for most documents. We can make it a ... read more »
mplayer/mencoder are powerful tools. This is a list of useful mplayer/mencoder commands.
Extract the audio, convert it to PCM and write the resulting wave file to audio.wav:
mplayer -vo null -hardframedrop -ao ... read more »
ns is a discrete-event network simulator targeted primarily for research and educational use. There are two version of ns, ns-2 and ns-3, which are quite different with each other in ... read more »
Automatic passwrod-less ssh login can make our life easier. To enable this, we need to copy our SSH public keys to the remote machines for automatic password-less login. We introduce ... read more »
LVM volumes as backing for DomU’s file system is an appealing solution to Xen VBD. LVM volumes can dynamically grow/shrink and snapshot. These features make it simple and fast to ... read more »
LVM’s snapshot feature enables us to duplicate an LVM backed Xen DomU in seconds rather than minutes. We no longer need to copy the entire file system image like backing ... read more »