How to Change Hostname of Fedora Linux

Posted on

Different Linux distros have different method to set the hostname. On Fedora Linux, it is quite simple. On newer Fedora releases At least from Fedora 19 (sorry, no sure the exact earliest version): You need to edit the file /etc/hostname which just contains the hostname. On older Fedora releases Sorry, I do not know the
Read more

Additional Repositories for Fedora Linux

Posted on

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 repository provides these software. And they may also package propriety software, such as ATI fglrx dive, NVIDIA driver, into rpm packages. In this post, we
Read more

Converting Video Files for iPod/iPhone/iPad

Posted on

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 .mp4. To play these video files in .wmv .mpg or .rmvb format, we should first convert them to .mov or .mp4 files that can played
Read more

Installing ns-2 and ns-3 on Fedora Linux

Posted on

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 the implementation and method to use them. In this post, we introduce how to install ns-2 and ns-3 on Fedora Linux 15. Install ns-2.34 on
Read more

How to Set Up and Configure NFS Server and Clients

Posted on

NFS is widely deployed and used even after more than twenty year. NFS is easy to set up and easy to use. This introduces how to set up the NFS server and clients. We use the Fedora system as the example. The tutorial here is for RHEL/CentOS/Fedora and derived Linux OSes. Set up an NFS
Read more

How to Upgrade Fedora to Newer Version with Yum

Posted on

The latest tools for upgrading Fedora is FedUp, please check How to upgrade Fedora 19 to Fedora 20 through the network. Please consider PreUpgrade for upgrading Fedora. This is the recommended method. This post makes a list of actions should be done to upgrade Fedora using yum. Please note that this is for experienced users
Read more

Git 101 for New Git Users

Posted on

This post is a tutorial for new users to set up git and clone and use the first repository. This post introduces how to start using git for new users. This post does not introduce details of how to use git commands. Please refer to the git manual or other tutorials for how to commit,
Read more

Vim as Thunderbird’s External Editor in Linux

Posted on

Vim is an excellent editor which I use every day. Thunderbird is a nice email application. However, Thunderbird’s integrated editor is not efficient enough to a Vim user. Why not use Vim as Thunderbird’s editor? In this tutorial, we will introduce how to integrate Vim with Thunderbird together in Linux. Install the “External Editor” Thunderbird
Read more

How to disable IPv6 on Linux (Old Version Kernels)

Posted on

Update: this only works on older Linux kernels (e.g. Fedora 12). For newer kernels, please see How to disabling IPv6 on Linux IPv6 is enabled by default on most Linux distros. However, IPv4 is still the mostly used network and IPv6 is not used in many environment. This post introduces how to disable IPv6 support on
Read more

Installing the Flash Plugin for 64-bit Firefox in Linux x86-64

Posted on

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 on Linux First, download Flash Player Release for 64-bit Linux from Adobe Labs. Then, unpack the package: $ tar xf flashplayer.tar.gz Check whether all
Read more

Setting Up Ubuntu DomU on Xen: Ubuntu 10.10 on Fedora Xen Dom0

Posted on

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 Stable Xen DomU with Fedora: Unmodified Fedora 12 on top of Xenified Fedora 12 Dom0 with Xen 4.0 This post only show the difference which
Read more

Installing and Configuring 32-bit Firefox on 64-bit Linux (Fedora)

Posted on

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 needed ones, this post introduces how to install 32 bit Firefox on 64 bit Linux (Fedora as the example). Install 32-bit firefox First, install firfox.i686
Read more

How to Get System Uptime on Linux and Windows OSes

Posted on

How to find out Linux and Windows uptime is introduced in this post. Linux uptime Linux uptime can be easily found out by the uptime command: $ uptime 22:19:29 up 10 days, 22:26,  5 users,  load average: 0.00, 0.00, 0.00 The system is up for 10 days, 22 hours and 26 minutes. uptime gives a
Read more

Setting Up VPN-like Network Between Several Clusters Using iptables

Posted on

It is common to connect servers with only internal IPs from several clusters. VPN is a common technique for this. With iptables, we can implement many functions of VPN with possibly higher performance. The slides here give a brief introduction to how to set up a VPN-like network between 2 clusters which connect to each
Read more

pkill and pgrep: Process Management Commands

Posted on

This is a introduction to *nix’s process management tools: pkill and pgrep. As this site’s domain name was pkill.info, a introduction to pkill should exist here. NAME pgrep, pkill – look up or signal processes based on name and other attributes SYNOPSIS pgrep [-flvx] [-d delimiter] [-n|-o] [-P ppid,…] [-g pgrp,…] [-s sid,…] [-u euid,…]
Read more

Simple Introduction to paravirt_ops for Xen

Posted on

The is a simple introduction to paravirt_ops in Linux kernel for Xen, VMware, etc. We make this introduction from the view of code. We use the function raw_local_irq_disable() and raw_local_irq_enable() functions in Linux kernel to introduce paravirt_ops for Xen and Xenified kernel. Please download the introduction to paravirt_ops pdf file: introduction-to-pv-ops-v3.pdf

Improving Font Rendering for Fedora Using Bytecode Interpreter

Posted on

Fedora’s font rendering isn’t very nice. At least on my laptop with Fedora 12. Bytecode Interpreter (BCI for short) is disabled by default because of patent issues. As the TrueType bytecode patents have expired. We may enable BCI in Fedora now. TrueType announced that BCI is enabled by default from 2.4. Fedora 12’s TrueType version
Read more

Creating LVM Volume Group

Posted on

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 now is to create one LVM volume group vg_xen for installing LVM backed Xen DomUs from these two disks. We will do this by
Read more

Setting Up LVM Backed Xen DomU

Posted on

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 duplicate DomU and adding storage to DomU. Creating LVM-backed Xen DomU is introduced in this post. Create LVM-backed VBD Suppose we have a LVM volume
Read more

Duplicating LVM Backed Xen DomU

Posted on

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 up file backed Xen DomU. We just need to make a snapshot of the current Xen DomU in seconds. When there are changes to the
Read more