Sunday, November 11, 2012

Installing PS3 Media Server on Ubuntu 12.04

Thanks to happy-neko (ppa:happy-neko/ps3mediaserver), it is now so much easier to install PS3 Meida Server on Ubuntu 12.04.

1. Resources

"Easy setup guide for Ubuntu / Debian (DEB packages and repo)"

2. Installation

$ sudo apt-add-repository ppa:happy-neko/ps3mediaserver

$ sudo apt-get update
$ sudo apt-get install ps3mediaserver

3. Start the Media Server

Just go to Application menu and select "PS3 Media Server" item from the "Sond & Video" category. (I am using Classic Desktop.)

4. Settings

Selected "eth0" (in my case) as its network device.
Added few of my folders to Shared Folders.

Friday, October 12, 2012

Installing Ramaze on Ubuntu 12.04

Installed Ramaze on my Ubuntu 12.04.

1. Resources
 (a) Ramaze home:
 (b) My previous installation: Installing Ramaze on Ubuntu (11.04)

2. Installation
$ sudo gem install ramaze
[sudo] password for socrateos: 
Fetching: rack-1.4.1.gem (100%)
Fetching: innate-2012.03.gem (100%)
Fetching: ramaze-2012.04.14.gem (100%)
Successfully installed rack-1.4.1
Successfully installed innate-2012.03
Successfully installed ramaze-2012.04.14
3 gems installed
Installing ri documentation for rack-1.4.1...
Installing ri documentation for innate-2012.03...
Installing ri documentation for ramaze-2012.04.14...
Installing RDoc documentation for rack-1.4.1...
Installing RDoc documentation for innate-2012.03...
Installing RDoc documentation for ramaze-2012.04.14...

3. Test Installation
$ ramaze --version
$ irb
irb(main):001:0> require "ramaze"
=> true
irb(main):002:0> exit
4. Create an Application
$ cd /work/ruby/ramaze
$ ramaze create myapp
The application has been generated and saved in myapp
$ cd myapp
$ ls -la
total 44
drwxrwxr-x 8 socrateos socrateos 4096 Oct 12 23:51 .
drwxrwxr-x 3 socrateos socrateos 4096 Oct 12 23:51 ..
-rw-r--r-- 1 socrateos socrateos  385 Oct 12 23:51 app.rb
-rwxr-xr-x 1 socrateos socrateos  701 Oct 12 23:51
drwxrwxr-x 2 socrateos socrateos 4096 Oct 12 23:51 controller
drwxrwxr-x 2 socrateos socrateos 4096 Oct 12 23:51 layout
drwxrwxr-x 2 socrateos socrateos 4096 Oct 12 23:51 model
drwxrwxr-x 4 socrateos socrateos 4096 Oct 12 23:51 public
drwxrwxr-x 2 socrateos socrateos 4096 Oct 12 23:51 spec
-rwxr-xr-x 1 socrateos socrateos  576 Oct 12 23:51 start.rb
drwxrwxr-x 2 socrateos socrateos 4096 Oct 12 23:51 view
5. Run
$ ruby start.rb
D [2012-10-12 23:52:07 $31631] DEBUG | : Using webrick
I [2012-10-12 23:52:08 $31631]  INFO | : WEBrick 1.3.1
I [2012-10-12 23:52:08 $31631]  INFO | : ruby 1.9.3 (2012-04-20) [x86_64-linux]
D [2012-10-12 23:52:08 $31631] DEBUG | :, 7000)
D [2012-10-12 23:52:08 $31631] DEBUG | : Rack::Handler::WEBrick is mounted on /.
I [2012-10-12 23:52:08 $31631]  INFO | : WEBrick::HTTPServer#start: pid=31631 port=7000

6. View

Wednesday, October 10, 2012

Changing Apache port number

I've changed apache default port 80 to 8000.

1. Resources

Creating a web server to host Ruby on Rails and PHP using Phusion Passenger, Nginx, and Apache

2. Back up original port config file

$ cd /etc/apache2
$ sudo cp ports.conf ports.conf.bak.original

3. Change the port

$ sudo gedit ports.conf


NameVirtualHost *:80
Listen 80


NameVirtualHost *:8000
Listen 8000

4. Change the virtual host

$ cd /etc/apache2/sites-enabled
$ sudo gedit 000-default


<VirtualHost *:80>


<VirtualHost *:8000>

5. Restart the Apache

$ sudo /etc/init.d/apache2 restart

6. Test



Friday, September 21, 2012

Installing Nginx on Ubuntu 12.04

Installed Nginx on Ubuntu 12.04.

1. Resources
My previous installation on Ubuntu 11.04.

2. Installation
I used Synaptic to install Nginx.
It installed the following packages: nginx, nginx-common, nginx-full.

3. Check Installation
$ nginx -V
nginx version: nginx/1.1.19
TLS SNI support enabled
configure arguments: 
--conf-path=/etc/nginx/nginx.conf                     # config file

4. Start server
$ sudo /etc/init.d/nginx start
Starting nginx: nginx.

5. Test

Friday, September 7, 2012

Installing WinFF on Ubuntu 12.04

Installed WinFF (a GUI for video converter, ffmpeg) on my Ubuntu 12.04.

1. Resources

WinFF home:
FFmpeg home:

2. Installation

I installed it ("winff") using Synaptic.
It installed the following:

 libav-tools libavdevice53 libavfilter2 winff winff-doc

It placed its symlink under Sound and Video menu.

Thursday, September 6, 2012

Installing WordPress on Ubuntu 12.04 (Server)

Installed WordPress on my Ubuntu 12.04 Server.

1. Resources

How To Install WordPress in Ubuntu Server 12.04 LTS

2. Requirements

You need LAMP Server (Appache, MySQL, PHP) to install WordPress.
See Installing LAMP Server on Ubuntu 12.04

3. Installation

I used Synaptic to install WordPress.
Just search for wordpress and install.

It installed the following packages:


4. Check Installation

$ find / -name wordpress

$ ls /usr/share/wordpress/
index.php           wp-comments-post.php  wp-links-opml.php  wp-settings.php
readme.html         wp-config-sample.php  wp-load.php        wp-signup.php
wp-activate.php     wp-config.php         wp-login.php       wp-trackback.php
wp-admin            wp-content            wp-mail.php        xmlrpc.php
wp-app.php          wp-cron.php           wp-pass.php
wp-blog-header.php  wp-includes           wp-register.php

5. Create a Symbolic Link of WP folder in Appache Document Root

$ sudo ln -s /usr/share/wordpress /var/www/wp

6. Run Setup program

Find a setup program.

$ ls /usr/share/doc/wordpress/examples/
apache.conf  setup-mysql

Found it (setup-mysql). Let's run it.

I use "wordpress" for user name.
I use "localhost" for database name (same as URL)

$ sudo bash /usr/share/doc/wordpress/examples/setup-mysql  -n wordpress localhost
PING localhost ( 56(84) bytes of data.
64 bytes from localhost ( icmp_req=1 ttl=64 time=0.083 ms
--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.083/0.083/0.083/0.000 ms
/etc/wordpress/config-localhost.php written
Trying to create upload directory: /srv/www/wp-uploads/localhost
Setting up permissions
Goto http://localhost to setup Wordpress

6. Change Owner of WordPress folder [updated]

$ sudo chown -R www-data usr/share/wordpress

I had a problem installing a new plugin for wordpress, getting an error:
"Unable to locate WordPress Plugin directory."

Changing of owner of WordPress folder fixed the error.

7. Test

Go to: http//localhost/wp

There we have it!

Installing LAMP Server on Ubuntu 12.04 (Server)

Installed LAMP Server, using tasksel.
I needed it to experiment WordPress.

1. Resources

Install Lamp With 1 Command In Ubuntu 12.04...
Easy LAMP Server Installation

2. Installation

Launch tasksel.

$ sudo tasksel

Select and Install "LAMP Server".
Give a password for MySQL root when prompted.

3. Check Appache2 Installation

Go to:

4. Check PHP Installation

Create a new php file.

$ sudo gedit /var/www/phpinfo.php

Enter the following:

<?php phpinfo() ?>

Restart Appache2.

sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                                                 ... waiting              [ OK ]
$ sudo /etc/init.d/apache2 status
Apache2 is running (pid 17784).

Now go to: 


Monday, September 3, 2012

Installing nautilus-open-terminal

I found a convenient application, nautilus-open-terminal, which opens Terminal from withing Nautilus. Now I can open Terminal by right-clicking on a folder in Nautilus and selecting Open in terminal, making the folder current directory in  the terminal.

1. Resources

Add Open in Terminal Command to Nautilus Context Menu in Ubuntu 11.10 (Oneiric Ocelot)

2. Installation

I searched and installed nautilus-open-terminal from Synapitc.

Installing a Label Maker on Ubuntu (12.04)

Installed a label maker called glabels.

1. Resources
Ubuntu App Review (gLabels label maker):

2. Installation

Search for and install "glabels" from Software center.
After installation, you can launch it from the Office menu group.

Thursday, August 30, 2012

Installing PostgreSQL 9.1 on Ubuntu 12.04, using Synaptic

Installed PostgreSQL 9.1 on my  Ubuntu 12.04 (Server), using Synaptic.

1. Resources

My Previous Installation: Installing PostgreSQL 9.0 on Ubuntu (11.04) using PPA

2. Install using Synaptic

Search and install "postgresql" in Synaptic.
It installed the following packages:

  postgresql-9.1           object-relational SQL database, version 9.1 server
  postgresql-client-9.1    front-end programs for PostgreSQL 9.1
  libpq5                   PostgreSQL C client library
  postgresql-client-common manager for multiple PostgreSQL client versions
  postgresql-common        PostgreSQL database-cluster manager

3. Check Installation

$ psql -V                    # check psql version
psql (PostgreSQL) 9.1.5

4. Setup Root User 'postgres'

Installer creates a new unix user "postgres". It also creates PostgreSQL user with the same name. Neither has a password. So I give password for both.

$ finger postgres            # check if installer created a new user 'postgres'
Login: postgres          Name: PostgreSQL administrator
Directory: /var/lib/postgresql       Shell: /bin/bash
Never logged in.
No mail.
No Plan.
$ sudo passwd postgres       # give this new user 'postgres' a unix password
$ su postgres                # switch to this user 'postgres'
$ psql                       # launch psql as root user 'postgres'
postgres=# alter user postgres with password 'secret';  # give a postgresql password
postgres=# \q                # quit psql
$ exit                       # exit from user 'postgres'

5. Make Myself a PostgresSQL User

$ su postgres                # switch to root user 'postgres'
$ psql                       # launch psql
psql (9.1.5)
postgres=# CREATE ROLE socrateos WITH CREATEDB CREATEROLE LOGIN PASSWORD 'secret';   # add myself as a PostgreSQL user with these rights
postgres=# CREATE DATABASE testdb; # create a new database
postgres=# \q                # quit psql
$ exit                       # exit from user 'postgres'
$ psql testdb                # login to testdb as myself (not root user)
psql (9.1.5)
testdb=> CREATE DATABASE mydb; # see if I can create a database
testdb=> \c mydb;            # connect to a newly created database
You are now connected to database "mydb" as user "socrateos".
mydb=> CREATE TABLE table1(id SERIAL PRIMARY KEY, name VARCHAR(30));
NOTICE:  CREATE TABLE will create implicit sequence "table1_id_seq" for serial column ""
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "table1_pkey" for table "table1"
mydb=> INSERT INTO table1(name) VALUES('adam');
mydb=> INSERT INTO table1(name) VALUES('eve');
mydb=> SELECT * FROM table1;
 id | name 
  1 | adam
  2 | eve
(2 rows)
mydb=> \q

6. Configure PostgreSQL Server

I want to configure the server for its error log file.

$ su postgres                 # switch to user postgres
$ cd /etc/postgresql/9.1/main # go to config directory
$ cp postgresql.conf postgresql.conf.bak.original  # make a backup
$ exit                        # exit from user 'postgres'

I edited postgresql.conf to enable the following.

log_destination = 'stderr' # 2012-09-05 enabled.
logging_collector = on     # 2012-09-05 enabled and turned on.
log_directory = 'pg_log'   # 2012-09-05 enabled. I will create this folder.
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # 2012-09-05 enabled.
log_truncate_on_rotation = off  # 2012-09-05 enabled and keep it off
log_rotation_age = 1d      # 2012-09-05 enabled.
log_rotation_size = 10MB   # 2012-09-05 enabled.

Now I create a log directory that I specified in the config.

$ su postgres              # switch to user postgres
$ cd ~                     # go to the home directory of postgres
$ cd 9.1/main/             # go to the directory where to create a log directory
$ mkdir pg_log             # create a log directory
$ exit                     # exit from user 'postgres'

7. Restart the Server

I need to restart the server to activate the new configuration.

$ sudo /etc/init.d/postgresql restart
 * Restarting PostgreSQL 9.1 database server [ OK ]
$ sudo /etc/init.d/postgresql status
 Running clusters: 9.1/main

8. Check the New Error Log

Yes, it created a new log where I wanted.

$ sudo ls /var/lib/postgresql/9.1/main/pg_log

9. Finally Install PGADMIN3, a GUI Admin app

I used Software Center to find and install pgadmin3.
It can be launched from the "Programming" menu group.

10. How to uninstall PostgreSQL installed as above.

Use the Synaptic and specify and delete the items it install in the  step above (#2).

Tuesday, August 28, 2012

Installing an FTP Server (vsftpd) on Ubuntu 12.04

Installed vsftpd (Very Secure FTP Server) on my Ubuntu 12.04 (server).

1. References

 Probably the most secure and fastest FTP server for UNIX-like systems
 Howto: Easy FTP with vsftpd

2. Installation 

 Find and install vsftpd in Synaptic.

3. Configurations

$ sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bak.original    ; backup original
$ gksudo gedit /etc/vsftpd.conf

I made the following changes:
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
# Uncomment this to allow local users to log in.

4. Restart the Server

$ sudo /etc/init.d/vsftpd restart

5. Test

Using Filezilla, access "localhost" with a ubuntu account.

It worked!

Wednesday, August 22, 2012

Installing Ruby 1.9.3 from Source on Ubuntu 12.04

I have installed Ruby 1.9.3 on Ubuntu 12.04 from source.

1. Resources

Ruby Home page: Download
Setting Up Ubuntu 12.04 with Ruby 1.9.3
Install Ruby 1.9.3 with libyaml on CentOS

2. Dowload

Download the following files.

ruby-1.9.3-p194.tar.gz (
yaml-0.1.4.tar.gz (

Note that I needed yaml installed from its source because my first attempt of installation was not complete due to an error when I did:

$ gem --version
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.

3. Preparations

$ sudo apt-get update
$ sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core python-software-properties

Note that despite including libyaml-dev, it failed on my first attemp; hence, a need to install yaml from source as shown next.

4. Install yaml from Source

$ cd Downloads/
$ tar -xvzf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4/
$ ./configure
$ ./make
$ ./sudo make install

5. Install Ruby from Source

$ cd Downloads/
$ tar -xvzf ruby-1.9.3-p194.tar.gz
$ cd ruby-1.9.3-p194/
$ ./configure
$ ./make
$ ./sudo make install

6. Check

$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
$ gem --version
$ irb --version
irb 0.9.6(09/06/30)
$ irb
irb(main):001:0> 1+2
=> 3
irb(main):002:0> exit

Tuesday, August 21, 2012

Installing Qt Creator on Ubuntu 12.04

Installed Qt Creator 2.5 on Ubuntu 12.04, using Software Center.

I searched for Qt Creator in Software Center.
The default version was 2.4.1, but a newer version (2.5) was available.
So I selected v 2.5 and installed it.
The documentation installed was still for Qt Creator 2.4.1.
The version of Qt itself was 4.8.1 (64bit).

Sunday, August 19, 2012

Bridged Networking for VirtualBox on Ubuntu 12.04 (Server)

I've changed to Bridged Network from NAT for VirtualBox.
It was very simple.

1. Resources

Virtual networking

2. Changed to a Bridged Network from NAT.

Open VirtualBox.
Select a virtual machine.
Click the Settings button from the tool bar.
Go to Network page.
Select Bridge Adapter from the drop-down list of Attached to items.
Select a physical network (eth0), if not already.
Save the settings.

3. Reset network settings of the virtual machine accordingly.

It is now just like any other physical machine in my network.

4. Repeat 2-3 for all virtual machines.

Wednesday, August 15, 2012

Installing Samba on Ubuntu 12.04 (Server)

I've installed Samba to share files among other ubuntu and Windows PCs.

Using Synaptic, I installed
(1) samba
(2) system-config-samba
(3) winbind

Monday, August 13, 2012

Installing Synaptic on Ubuntu 12.04

I've installed Synaptic on my Ubuntu 12.04 (server + desktop).

I like Synaptic package manager, but Ubuntu 12.04 does not install it by default.
So I installed it.

$ sudo apt-get install synaptic 

Tuesday, August 7, 2012

Installing VirtualBox on Ubuntu 12.04

I've installed VirtualBox on my Ubuntu 12.04 (Server with Classic Desktop).


1. Open Ubuntu Software Center under Application menu.
2. Search for "virtualbox" and install it.

Adding a Guest OS (Windows Server 2003)

1. I made my Ubuntu (Host) to have a static IP. (see "Changing to Static IP")
2. Open VirtualBox from Application > Accessories menu.
3. Click "New" to create a virtual machine and follow the instruction (using original DVD).
4. I used the defalt (NAT) networking mode. (see "Virtual Networking")

Updating Windows Server 2003

I configured it for automatic download for updates, but it never did anything.
So I manually downloaded to install Windows Server 2003 Service Pack 2.

Changing to Static IP in Ubuntu 12.04, using a GUI tool

I have changed my network address of Ubuntu (12.04) to a static IP, using a GUI netwok tool.

Using Classic Desktop's Menubar,
1. System Tools > Administration > Network Tools.
2. Select "Ethernet Interface (eth0)" and click "Settings" button.
3. Select "Wired Connection 1" from the list and click "Edit" button.
4. Go to the "IPv4 Settings" tab.
5. Change the Method from Automatic (DHCP) to Manual
6. Click "Add" button and enter an appropriate IP address.
7. Enter DNS server. (I obtained it from my Verizon Fios router settings)

Thursday, June 7, 2012

Restoring Classic Desktop in Ubuntu 12.04

I tried to like the new desktop Unity, but I failed to do so.
So I restored the classic desktop.

1. Resource
Return to Gnome Classic in Ubuntu 12.04 (Precise Pangolin):

2. Install Classic Desktop
Press Ctl+Alt+T to launch the Terminal. (It is not readily available in Unity desktop.)
$ sudo apt-get install gnome-session-fallback

3. Switch to Classic Desktop
Log off.
Select GNOME Classic from the drop down menu icon in the login window.

Sunday, April 29, 2012

Installing Ubuntu Server 12.04 on Primergy Server TX100 S2

I have upgraded my Primergy TX100 S2 server with Ubuntu Server 12.04. This is my second installation of Ubuntu server on this machine. The previously installed version of the Ubuntu Server was 11.10.

1. Resouces 
Ubuntu Server 12.04 LTS Download: Brasero: (Tool to burn disk image to CD/DVD) Primergy Server TX100 S2: (my machine)
Blog: Step by Step tutorial to install Ubuntu Server 12.04

2. Getting Ubuntu Server 12.04. 
I downloaded Ubuntu Server 12.04 image file (ubuntu-12.04-server-amd64.iso) from Ubuntu site ( Then burned it to a DVD using Brasero.

3. Installation 
Select Language: English
Select "Install Ubuntu Server" from the initial menu.
Select Language for installation process: English
Country: United States
Keyboard Selection: No (automatic detection)
Keyboard Layout: English (US)
Hostname: primergy01
Full Name for the new user: socrateos
User name: socrateos
Encrypit home directory: No
Time zone: Yes (correct detection of time zone)
Partition: Guided - use entire disk and setup LVM
Accept warning of "all data on the disk ... will be erased"
Remove existing logical volume data: Yes
Write changes to disks and configure LVM: Yes
Amount of volume group to use: 2.0 TB (default)
Write changes to disks: Yes
Installing the base system ...
HTTP proxy information: (blank for none)
How do you want to manage upgrades: No automatic updates
Software selection:
 OpenSSH server
 Virtual Machine host
 Ubuntu Desktop
Install GRUB boot loader to the master boot record: Yes (Spit out DVD) and Continue to reboot (First login was success)

Wednesday, March 28, 2012

Installing Ubuntu Server 11.10 on Primergy Server TX100 S2

I have installed Ubuntu Server 11.10 on Fujitsu Primergy Server TX100 S2.

1. Resources

Primergy TX100 S2:

KVM Installation:
Ubuntu Documentation: KVMInstallation

Static IP:
HowtoForge:The Perfect Server - Ubuntu 11.10 [ISPConfig 3] - Page 3

2. Preparation

I removed the internal 250TB HDD and installed 2 x 2TB HDD (Hitachi Deskstar 3Gb/s 3.5" 7200RPM).

I went into the BIOS setting using F2 key. Under the Boot menu, set the CD/DVD on top of the priority list. Under Advanced System Configuration, change the SATA Mode from RAID to AHCI.

3. Ubuntu Installation

I used a CD that contains Ubuntu Server 11.10 installer downloaded from Ubuntu site. For partition, I selected Guided - Use entire disk and set up LVM option. For software options, I selected (1) Basic Ubuntu Server, (2) OpenSSH server, (3) PostgreSQL database server, (4) Print Server, (5) Virtual Machine host -- for now anyway.

It finished installation without any problem. It even found a correct Network driver automatically. It was simple.

4. Check the installation.

(a) Check the network connection.
$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:19:99:c0:81:19  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::219:99ff:fec0:8119/64 Scope:Link
          RX packets:138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27347 (27.3 KB)  TX bytes:19638 (19.6 KB)
          Interrupt:17 Memory:c0020000-c0040000 

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:50 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:22193 (22.1 KB)  TX bytes:22193 (22.1 KB)

virbr0    Link encap:Ethernet  HWaddr ee:78:98:ce:2e:bf  
          inet addr:  Bcast:  Mask:
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=64 time=2.45 ms
64 bytes from icmp_req=2 ttl=64 time=0.635 ms
64 bytes from icmp_req=3 ttl=64 time=0.616 ms

(b) Check its CPU.
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model  : 37
model name : Intel(R) Core(TM) i3 CPU         540  @ 3.07GHz
stepping : 5
cpu MHz  : 1197.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id  : 0
cpu cores : 2
apicid  : 0
initial apicid : 0
fpu  : yes
fpu_exception : yes
cpuid level : 11
wp  : yes
flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 6118.75
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model  : 37
model name : Intel(R) Core(TM) i3 CPU         540  @ 3.07GHz
stepping : 5
cpu MHz  : 1197.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id  : 2
cpu cores : 2
apicid  : 5
initial apicid : 5
fpu  : yes
fpu_exception : yes
cpuid level : 11
wp  : yes
flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 6117.84
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

(c) Check KVM (virtual machine hosting).
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

5. Make IP address static.

Since the default network address is using DHCP, I want to change it to be a static IP.
$ sudo vi /etc/netwrok/interfaces
# The primary network interface
auto eth0
iface eth0 inet dhcp
Now change that to be like:
# The primary network interface
auto eth0
iface eth0 inet static

Saturday, February 4, 2012

Installing JRuby on Windows (64bit Vista)

I have installed JRuby on my Windows (64bit Vista).

1. Check if I have Java (JRE) installed.
C:\>java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

2. Download JRuby.
Since I already have JRE installed, I downloaded:
"JRuby 1.6.6 Windows Executable (x64) (md5, sha1)"
from the official site:

3. Install JRuby.
Just double click the installer to install.

4. Check the installation.
I closed and reopened the terminal and checked the version installed.
C:\>jruby -v
jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (Java HotSpot(TM) Client VM 1.6.0_16) [Windows Vista-x86-java]
Check also jirb.
irb(main):001:0> 1+2
=> 3

5. Resouce(s)

JRuby Home:

Thursday, January 12, 2012

Learning Ramaze (5) - Designing a Page

I am learning Ramaze, a light-weight web framework for Ruby. I am learning it by modifying a plain skelton created by Ramze - bit by bit. A web app I am trying to build is a (PostgreSQL) database management tool. I want to use it for day-to-day data access as an end user of databases. I also want to use it to develop databases as a database designer. So my web has Data and Design pages.

In this post, I want to describe a design of my Design page.

1. Features
I want my Design page to have the following features.
a. Display List of Features
b. Display Diagrams (Workflows, Functionalities and Data models)
c. Display Data Models (Definitions of Tables and Columns)
d. Create Databases (Deployment of Data Models)

2. Workflow Description
There will be several workflow blocks.
a. Creating Database Project (Project Manager)
b. Determining List of Features (Project Manager)
c. Determining Workflow Blocks (Database Designer)
d. Drawing Workflow Diagrams (Database Designer)
e. Designing Data Models (Database Designer)
f. Designing Functionality and UI (Database Designer)
g. Building Database (Database Programmer)
h. Deploying Database (Database Administrator)

3. Workflow Diagrams

4. Data Modeling

5. Functionality and UI

6. Build Database

7. Deployment of Data Models