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
Original:
$ 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"
EndSection

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"
EndSection
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 127.0.0.1 to your IP address.

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

Create password for MySQL
root.
$ 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
;extension=mysql.so
remove ";".
extension=mysql.so

Restart Apache.

$ sudo /etc/init.d/apache2 restart

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

f:id:elsal:20070926151707j:image

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.

f:id:elsal:20070920162756j:image

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

Running...

f:id:elsal:20070920161307j:image


Booted up completely.

f:id:elsal:20070920161306j:image


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.

f:id:elsal:20070920161305j:image


Select time zone.

f:id:elsal:20070920161302j:image


Keyboard layout.

f:id:elsal:20070920161508j:image


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

f:id:elsal:20070920161507j:image


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

f:id:elsal:20070920161506j:image


Create user.

f:id:elsal:20070920161505j:image


Ready?

f:id:elsal:20070920161503j:image


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