Saturday, August 13, 2011

Fedora 15 install Brisk and ruby on rails

First download Fedora 15 : )
Install it in vm or PC

Setup SSH : ) ( Ref.link )



Basic Setup SSH Server on Fedora.




Usually the ssh is install by default on the installation of Fedora operating system itself.  The article below show the step of the basic setup of ssh server on Fedora Linux operating system.

1.  Open X terminal.

X terminal.

Checking SSH server status.


Using the service command to check the current status of the sshd.

[root@tenouk ~]# service sshd status
sshd is stopped
[root@tenouk ~]#

Start SSH server.


Start the sshd process using service command.

[root@tenouk ~]# service sshd start
Starting sshd:                                             [  OK  ]
[root@tenouk ~]#

Automatically start SSH server.


   Using the chkconfig command to enable and make sure that every time the system restart, the SSH (sshd deamon) start automatically.

1.  Check current configuration status of sshd.

[root@tenouk ssh]# chkconfig --list sshd
sshd            0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@tenouk ssh]#

2.  Using the chkconfig to automatically start the SSH on runlevel 3, 4 and runlevel 5.

[root@tenouk ssh]# chkconfig --level 345 sshd on
[root@tenouk ssh]#

3.  Verify the change for shhd on runlevel 3, 4 and runlevel 5.

[root@tenouk ssh]# chkconfig --list sshd
sshd            0:off   1:off   2:off   3:on    4:on    5:on    6:off
[root@tenouk ssh]#


Install Java For Brisk:(Ref. link )

Using Sun Java Instead
If you require Sun Java or if OpenJDK does not work properly, you can download Sun Java and use it in Fedora.
Download the Java package from:
http://java.sun.com/javase/downloads/index.jsp. Always use the latest update.
Select: Java JRE 6 Update 18 (the JDK is for developers)
On the next page, for Platform select "Linux" for 32-bit users, and "Linux x64" for 64-bit users.
For Language select "Multi-language". Also accept the license agreement, and hit "Continue".
On the next page, select the RPM option:

Java SE Runtime Environment 6u17
jre-6u18-linux-i586-rpm.bin     (32-bit users)

jre-6u18-linux-x64-rpm.bin      (64-bit users) 

To install:

[mirandam@charon Download]$ sudo sh jre-6u18-linux-i586-rpm.bin
-OR-
[mirandam@charon Download]$ sudo sh jre-6u18-linux-x64-rpm.bin


Install Brisk

Install ruby
using yum, by default is 1.8.7 so we need rvm
yum install git 
yum install gcc 
Install rvm
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

if you need to use head version ruby, you also need this.
rvm pkg install zlib


Install sqlite3  
yum install sqlite-devel


After that using bundle to update.

P.S. What the hell!!! gem update need a sudo??=_=凸

No comments: