Category Archives: Linux

Installing Debian from USB Stick

This post describes how to install Debian Testing (current Testing is Wheezy). The procedure for installing Debian Stable (current Stable is Squeeze) is same, only the download links are different. 1. Install the necessary tools on your computer which runs … Continue reading

Posted in Linux | Tagged | Leave a comment

iptables in Ubuntu

Since 7.10, Ubuntu uses UFW to manage firewall. Well, UFW is easier than iptables, but I prefer to use iptables directly. Keep it less layers. Stop and remove UFW: $ sudo invoke-rc.d ufw remove $ sudo update-rc.d -f ufw remove … Continue reading

Posted in Linux | Tagged , | Leave a comment

My Must-Have PPAs

Within a release life cycle, Ubuntu only maintains the minor upgrades of the applications installed in the release. If you want to keep your applications up-to-date and catch their major upgrades, you have to do the upgrades by yourselves, or … Continue reading

Posted in Linux | Tagged | Leave a comment

Enable VNC Server on Fedora 15

Install: $ sudo yum install tigervnc-server Configure: $ sudo vi /etc/sysconfig/vncservers VNCSERVERS=”1:huangys 2:root” VNCSERVERARGS[1]=”-geometry 1024×768″ VNCSERVERARGS[2]=”-geometry 1024×768″ Set password(s) for user(s): According to the above configuration, we need to set passwords for two users: huangys, root. Logged in as huangys, … Continue reading

Posted in Linux | Tagged , | 1 Comment

Remote Desktop Access with NX

We connect to remote machines, whatever physical or virtual machines, through SSH in most cases, but occasionally we do need to live with graphical desktop. Yes, VNC is always used here, but.. urh.. VNC is too slow! NX is another … Continue reading

Posted in Linux | Tagged , | 1 Comment

Vim

安装: $ sudo apt-get install vim vim-gnome exuberant-ctags 如果发现 GVim 的中文菜单无法显示,是因为 Ubuntu 中文操作系统的字符集写作 UTF-8,而 GVim 中认定的是 UTF8,做以下字符连接即可: $ cd /usr/share/vim/vim72/lang $ sudo ln -s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.vim 安装完基本的 Vim 就可使用了,但要真正用好 Vim,还要根据需求对它进行配置自定义。已经有很多人分享了很好的配置经验,在 Google 中搜索 vimrc 可以找到很多资料。我发现了一个大牛配置,可以拿来学习和作为自己的配置参考。我个人不太喜欢大量地自定义快捷键,还是使用通用的比较好。

Posted in Linux | Tagged | 1 Comment

Mount Remote Windows Share

I’m using CentOS 5.5. Make sure your Linux has Samba client installed. If not, run the below to install it: # yum install samba-client Now mount Windows share: # mount -t cifs //win_server/share -o username=theuser,password=thepwd /mnt/winshare -t cifs: file system … Continue reading

Posted in Linux | Tagged , | Leave a comment

Subversion

1. 安装 从 tarball 安装: $ tar jxvf subversion-1.5.7.tar.bz2 $ cd subversion-1.5.7 $ ./configure –prefix=/opt/subversion –with-apxs=/opt/apache/bin/apxs –with-apr=/opt/apache/bin/apr-1-config –with-apr-util=/opt/apache/bin/apu-1-config $ make clean $ make $ sudo make install 如果在 Debian/Ubuntu 系: $ sudo apt-get install subversion libapache2-svn 2. 版本库 Subversion 支持单版本库,也支持多版本库。采用单一版本库管理所有项目,或者为每个项目建立一个独立的版本库,都是允许的,不过这两者的做法都有些极端。推荐的做法是,将关联度高的项目放在同一个版本库中管理。 … Continue reading

Posted in Linux | Tagged | Leave a comment

Ubuntu 9.10 Quick Guide

1. partitioning If you’re using alternative image to install Ubuntu from ISO without CD, you’ll find that the problem of unable partitioning hard disk is solved. That problem exists in both 8.10 and 9.04 releases. In the installation wizard, there … Continue reading

Posted in Linux | Tagged | 1 Comment

Playing with MLDonkey

If you’re a non-Windows user, Linux or Mac, whatever, and want a client to connect eDonkey network, probably you’ll try aMule which is a clone of eMule. I’m not saying that aMule sucks, but… it’s just not good enough. Actually … Continue reading

Posted in Linux | Tagged | 4 Comments