Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

31 October, 2011

Ubuntu: Completely restart wireless network


driver=`sudo ethtool -i wlan0 | grep driver | cut -d ' ' -f 2`;sudo modprobe -r $driver;sudo modprobe $driver;

01 August, 2011

07 November, 2010

[Ubuntu] Cisco VPN using Network-Manager

Just some tips:
1. sudo apt-get install network-manager-vpnc
2. sudo restart network-manager

Please remember to restart network manager, otherwise you cannot establish the connection successfully.

04 May, 2010

[VMWare] Ubuntu 10.04

http://communities.vmware.com/message/1401588#1401588http://communities.vmware.com/message/1401588#1401588

30 June, 2009

VGA setting for GRUB

640×480 800×600 1024×768 1280×1024
8bit 769 771 773 775
15bit 784 787 790 793
16bit 785 788 791 794
24bit 786 789 792 795

29 December, 2008

Disable System Beep Voice

The best solution is to remove the speaker module in the linux kernel

sudo vi /etc/modprobe.d/blacklist
add "blacklist pcspkr"

reboot

Done!

26 December, 2008

Using SSH Tunnel to access BBS under Linux

For example, you want to access ptt.cc behind your company's firewall. Use the follow commands:
ssh -f -N -L1234:ptt.cc:23 username@your_private_server

Then you can telnet localhost:1234 to access ptt.cc

23 February, 2008

Ubuntu: Chinese + English UI

I install gnome-do on my laptop last week. Gnome-Do is a very nice and powerful application launcher, the ideas is come from the Quicksliver.
However, I encounter some weird problems. First, I can not change to key binding from Space to Space. In the end, I found out that I made a stupid mistake, I should use space instead of the capital 'S'... Second, I can not launch some of the applications properly. It is because of the Chinese UI, for example, "Terminal" becomes "終端機". But I can not type chinese in gnome-do window... It is really awkward. Therefore, I decided to change my system language to English. After switching from Chinese UI to English UI, everything works just fine! I can read and type chinese directly without any modification~
After all, gnome-do is a really nice application, I will write some plug-in when I have time.

25 November, 2007

Broken Voice in Ubuntu

use "alsamixer" to adjust the PCM volume to 71~74

15 November, 2007

Customize Linux Kernek for X31 under Ubuntu

First, we need to find a perfect kernel config file for IBM X31.
In this website: http://www.brixandersen.dk/papers/X31/X31.html, the author provide a perfect clean kernel config file.
And then we need to optimize our linux kernel. In this article:http://ubuntuforums.org/showpost.php?p=1174954&postcount=507 they tell you how to tweak your kernel, and remove all unnecessary components.

Note: please remember to select "Filesystem in Userspace support" if you want to mount the ntfs-3g file system

After you set up the perfect config file, it is time to build the kernel.
1. make-kpkg clean
2. make-kpkg -initrd --revision="anything you like" kernel_image
3. dpkg -i kernel-image-ooxx.deb
4. reboot


Done!!

31 October, 2007

Clean Up Your Ubuntu

According to this article: http://ubuntuforums.org/showthread.php?t=140920

1. remove residual config
System > Administration > Synaptic Package Manager
2. sudo apt-get autoclean
3. localepurge
This program can remove unnecessary lang data
4. remove orphan package
sudo deborphan | xargs sudo apt-get -y remove --purge

11 September, 2007

Smooth Font in Ubuntu

According to this article http://ubuntuforums.org/showthread.php?t=343670
You can make the fonts much more beautiful. After the installation, it really works!!

sudo aptitude install libfreetype6 libcairo2 libxft

Extremely smoother~

08 September, 2007

Using Mysql with Python in Ubuntu

I tried to install MysqlDb package on the ubuntu machine. After download the source code package, I try to use "python setup.py build" to install.
But... It told me that the mysql_config could not be found. Ok, then I tried to install mysql_config.
It is not as easy as I thought... I don't know how to install it...
Finally, I found out that mysql_config is hidden under the libmysqlclient15-dev package...

05 September, 2007

Install Mysql 5 + PHP 5 + Apache2 in Ubuntu

sudo apt-get install apache2 php5 mysql-client-5.0 mysql-server-5.0 phpmyadmin libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql

You have to install one more package under AMD64 machine:
sudo apt-get install php5-mcrypt

12 August, 2007

Install Ubuntu 7.04 on X31 with Compizfusion

This is a messy note... I think the only person can understand this article is me~ XD

xorg,conf

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Mobility M6 LY [Radeon Mobility 9000]"
Driver "radeon"
BusID "PCI:1:0:0"

Option "XAANoOffscreenPixmaps" "true"
Option "AGPSize" "32"

Option "AGPFastWrite" "false"
Option "EnablePageFlip" "false"
Option "EnableDepthMoves" "false"
Option "ColorTiling" "false"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. Radeon Mobility M6 LY [Radeon Mobility 9000]"
Monitor "Generic Monitor"
EndSection

Mouse setting
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "yes"
Option "EmulateWheelButton" "2"
Option "ZAxisMapping" "4 5"

Speed up CompizFusion
export __GL_YIELD="NOTHING"; compiz --replace --indirect-rendering -c emerald

Change Firefox System Font
~/.mozilla/firefox/ooxx.default/chrome
create userChorme.css

* {
font-size:13px !important;
font-family: LiHei Pro !important;
}

Speed up Ubuntu!!
http://www.xsol.se/index.php/2007/04/29/feisty-performance-fly-like-a-butterfly/

Make backspace == prev page in firefox
about:config
browser.backspace -> 0

Conky

xorg.conf
In Module section
Load "dbe"
In .conkyrc
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager