Reverse Scroll on Fedora 18

Check your mouse ID by typing:

xinput --list


It will show a list something like this:

� Virtual core pointer                     id=2 [master pointer  (3)]
�   ��� Virtual core XTEST pointer               id=4 [slave  pointer  (2)]
�   ��� Microsoft Microsoft�� 2.4GHz Transceiver v7.0 id=9 [slave  pointer  (2)]
�   ��� Microsoft Microsoft�� 2.4GHz Transceiver v7.0 id=10 [slave  pointer  (2)]
� Virtual core keyboard                   id=3 [master keyboard (2)]
    ��� Virtual core XTEST keyboard             id=5 [slave  keyboard (3)]
    ��� Power Button                             id=6 [slave  keyboard (3)]
    ��� Power Button                             id=7 [slave  keyboard (3)]
    ��� Microsoft Microsoft�� 2.4GHz Transceiver v7.0 id=8 [slave  keyboard (3)]



After you get the mouse ID, then type this command to make the mouse scroll reversed:

xinput set-button-map 1 2 3 5 4

Fedora FTP 530 Error

Check your stored password by:

more /etc/passwd

check for the shell location from every lines of the files.
Compare these shells againts the:

/etc/shells

If there's path missing / not defined in the /etc/shells, just add that path (make sure you have installed the shell).

Fedora Mouse Reverse Scroll

Just invoke this to know the current config:

xmodmap -pp

To modify into reversed scroll:

xmodmap -e "pointer = 1 2 5 4 7 6 8 9 10 11 12"

Setting up VNCServer on Fedora 16

1. yum install tigervnc-server 2. cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:3.service 3. vim /etc/systemd.system.vncserver@:3.service     Edit: ExecStart=/sbin/runuser -l -c "/usr/bin/vncserver %i" ExecStop=/sbin/runuser -l -c "/usr/bin/vncserver -kill %i" To: ExecStart=/sbin/runuser -l -c "/usr/bin/vncserver %i" ExecStop=/sbin/runuser -l -c "/usr/bin/vncserver -kill %i" Then save the file 4. systemctl enable vncserver@:3.service 5. systemctl start vncserver@:3.service If you find error: Failed to issue method call: No such file or directory vncserver Then check the running vncserver services by: vncserver -list If found that terminal allready run, kill it by: vncserver -kill

OCI8 Installation on Fedora 16

Install all the Oracle's Instant Client rpms applications from :
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

The transcript of the istallation:
 1021  yum install oracle-instantclient-x86_64-11.2.0.2.0-1.remi.nosrc.rpm
 1022  yum install local oracle-instantclient-x86_64-11.2.0.2.0-1.remi.nosrc.rpm
 1024  yum install local oracle-instantclient11.2-tools-11.2.0.2.0.x86_64.rpm
 1025  yum install local oracle-instantclient11.2-devel-11.2.0.2.0.x86_64.rpm
 1027  yum install local oracle-instantclient11.2-basic-11.2.0.2.0.x86_64.rpm
 1028  yum install local oracle-instantclient11.2-devel-11.2.0.2.0.x86_64.rpm
 1029  yum install local oracle-instantclient11.2-tools-11.2.0.2.0.x86_64.rpm
 1031  yum install local oracle-instantclient11.2-sqlplus-11.2.0.2.0.x86_64.rpm
 1033  yum install local oracle-instantclient11.2-odbc-11.2.0.2.0.x86_64.rpm
 1035  yum install local oracle-instantclient11.2-jdbc-11.2.0.2.0.x86_64.rpm

provide the system variables for oracle installations:
 1099  export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
 1100  export ORACLE_HOME=/usr/lib/oracle/11.2/client64

Install 'libaio' dependencies:
 1110  yum install -y libaio-devel.x86_64
 1111  yum install libaio.x86_64

Install pecl:
 1136  yum install -y pecl
 1137  pecl

Config the pear proxy:
 1139  pear config-set http_proxy http://proxy1:8080/

Install php-devel:
 1142  yum install -y php-devel

Install php-pear:
 1150  yum install php-pear

Using pecl, install oci8:
 1140  pecl install oci8

Inside the installation, provide the argument of instantclient installation location:
"instantclient,/usr/lib/oracle/11.2/client64/lib"
(please re-check the actual location of the installation.
It may differ according to each instantclient version)

Then, add this line into file /etc/php.ini:
extension=oci8.so

Then restart the httpd.

Day 5 in Jelapang

Just started to blog again. So this is why it started with day 5 instead of my first day.

This morning I went out from home still with my wife.around 5 minutes earlier than yesterday.

I saw some of people are the same people I was around with last night when I came home from work.Seems they are in morning shift too.

One thing I like here in the morning LRT is the train which is longer than afternoon trains.It's nice since I can be sitting all the way.

The trip from Jelapang to Choa Chu Kang took around 10 minutes.

Nice Blog!!