Thursday, October 18, 2007

Using wheel mouse on Ubuntu on VMware

By default, you cannot use wheel of mouse on Ubuntu on VMware.
You should configure /etc/X11/xorg.conf.

First, check your mouse setting in /proc/bus/input/devices.

$ more /proc/bus/input/devices
I: Bus=0011 Vendor=0002 Product=0005 Version=0000
N: Name="ImPS/2 Generic Wheel Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input3
H: Handlers=mouse1 event3 ts1
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
Change your mouse "Driver" and "Device" in /etc/X11/xorg.conf
$ sudo vi /etc/X11/xorg.conf
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ps/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"

Change it like:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "evdev"
Option "CorePointer"
Option "Device" "/dev/input/event3"
Option "Protocol" "ps/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Restart gdm and you can use wheel.
$ sudo /etc/init.d/gdm restart

Tuesday, October 9, 2007

LAMP on Feisty Fawn

LAMP is: Linux, Apache, MySQL and PHP.
I've escaped from database in the past but now I can't.

Actually the document Installing LAMP On Ubuntu For Newbies is good enough to make LAMP correctly.
In addition to my process of setup a LAMP referencing the document, I write how to configure MySQL and phpMyAdmin, application to administrate MySQL remotely.

You need install following pack

  • Apache
    • apache2
  • PHP
    • php5
    • libapache2-mod-php5
  • MySQL
    • mysql-server
Instead of Synaptic, I use command line as the document.

First, install apache.

$ sudo apt-get install apache2

Next, PHP.

$ sudo apt-get install php5 libapache2-mod-php5
Restart Apache.
$ sudo /etc/init.d/apache2 restart
Test PHP.

Write on /var/www/testphp.php following line

<? php phpinfo(); ?> 

Access http://[server's IP address]/testphp.php with your browser to ensure that it shows PHP information.

Next, MySQL.

$ sudo apt-get install mysql-server
Now I start MySQL setting.

If you want to allow other computer to connect to your SQL server, you need to change [Bind Address] in /etc/mysql/my.cnf from to your IP address.

$ sudo vi /etc/mysql/my.cnf
bind-address =
bind-address = [server's IP address]

Create password for MySQL
$ mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.0.38-Ubuntu_0ubuntu1-log Ubuntu 7.04 distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('[パスワード]');
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Install PHPMyAdmin.
$ sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
To give a permission to administrate MySQL from PHP, configure /etc/php5/apache2/php.ini.
$ sudo vi /etc/php5/apache2/php.ini
remove ";".

Restart Apache.

$ sudo /etc/init.d/apache2 restart

Now you can login PHPMyAdmin by accessing http://[server's IP address]/phpmyadmin/.


Monday, October 1, 2007

Celena Linux Mint Beta 021 Installation

Linux Mint is one of Linux distribution for desktop user based on Ubuntu.
It has much more support for multimedia than Ubuntu.

I believe the installation process is completely same as Ubuntu.
I installed Linun Mint Celena BETA021 to VMWare.

Boot PC with CD.


It's cool isn't is?
Select [Start Linux Mint].



Booted up completely.


Double click [Install] for beginning installation process.

First, you need to select locale.
I wanted to use Japanese for installation but I cannot read Japanese yet.


Select time zone.


Keyboard layout.


Partitioning. I use entire disk.
[Manual] shows partition dialog like GPart.


Merge the configuretions of Windows user in the machine to Linux. I don't have any other OSs so there's nothing to see.


Create user.




Click [Install] then is's started installation. It's so easy...