Install VNC Server Pada Centos 5

Tuesday, October 12, 2010

Apa itu VNC..? VNC adalah sejenis remote desktop (pada windows), dimana kita dapat mengontrol komputer kita dalam jarak jauh, selama komputer yang sedang di remote dalam keadaan terhubung ke internet.. Akan tetapi dalam hal ini kita menggunakan VPS, yang sebenarnya sama saja dengan komputer, tetapi bersifat virtual..

Langsung aja ya..

1. Cek versi Centos kita, x86 (i386) atau x86_64 (64 bit)

uname -i

2. Tambahkan repository dari rpmforge ke VPS kita.

Untuk Centos x86 (i386)

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm

Untuk Centos x64 (x86_64)

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm

3. Setelah terinstall, selanjutnya ketik seperti dibawah ini untuk mengupdate repository yang telah kita tambah tadi.

yum update

4. Install VNC Server

yum install vncserver

5. Install GNOME Desktop Environment. Apa itu GNOME..? GNOME adalah sebuah Desktop (GUI) untuk Sistem Operasi Linux. Sebenarnya masih ada Desktop lain seperti KDE, namun kali ini ane lebih memilih GNOME. Proses ini akan berlangsung cukup lama, karna itu ane sarankan pada saat menginstall kita tinggal makan dulu tongue

yum groupinstall “GNOME Desktop Environment”

6. Seanjutnya kita buat user baru sebagai user VNC, sekaligus passwordnya.

adduser zeilent
passwd zeilent

7. Setelah itu login ke SSH dengan user dan password yang telah kita buat tadi (seilent), lalu ketik command berikut.

vncpasswd

8. Kembali lagi ke root dengan login ulang ke SSH (menggunakan user root). Lalu kita edit file yang ada di /etc/sysconfig/vncserver menjadi kurang lebih seperti ini :

VNCSERVERS="1:zeilent"
VNCSERVERARGS[1]="-geometry 1024x600"

9. Setelah itu kita menuju direktori /home/zeilent/.vnc (pake titik). Setelah itu buat file yang bernama xstartup yang isinya seperti ini.

#!/bin/sh
( while true ; do xterm ; done ) &
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

    xsetroot -solid grey
    vncconfig -iconic &
    xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    twm &

    CHMOD file tersebut ke 777, dengan mengetikkan.
    chmod 777 /home/seilent/.vnc/xstartup

    10. Langkah selanjutnya kita tambahkan baris berikut pada file iptables yang berada di /etc/sysconfig (satu rumah dengan file vncserver). Jika file tersebut tidak ada pada server, lewati saja langkah ini (lumayan bonus 1 step).

    -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 1 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 5801 -j ACCEPT
    -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 5901 -j ACCEPT

    Selanjutnya kita restart iptables.

    service iptables restart

    11. Jalankan VNC Server kalian, dan tambahkan ke dalam startup dengan mengetikkan perintah berikut.

    service vncserver start
    chkconfig vncserver on

    12. Untuk melihat VNC kita, dapat menggunakan aplikasi TightVNC, yang dapat di download di.

    http://www.tightvnc.com/download/2.0.2/tightvnc-2.0.2-setup.exe

    13. Install, lalu jalankan program TightVNC. Pada kolom putih panjang, isi dengan ipaddresvps:1 (misal 89.23.55.66:1)

    Selesai, jika sudah terkoneksi, kalian akan melihat tampilan desktop VPS kalian sendiri, seperti layaknya komputer linux pada umumnya.


    http://cupre.info

    Read more...

Install LAMP server Centos 5

LAMP (Linux Apache Mysql Php) adalah hal “wajib” yang harus diinstall di server kita jikalau ingin membuat sebuah webserver / blog. Misalnya seperti wordpress.Kita langsung aja..
Oia, Untuk melihat hostname kita tinggal masuk saja ke terminal, nanti disitu akan muncul seperti root@hostname.

Yuk kita mulai ;)

1. Kita mulai dengan mysql dulu ya, langsung saja kita install mysql lewat yum.

yum install mysql mysql-server

2. Selanjutnya langsung saja kita jalankan mysql dan tambahkan ke startup

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

3. Kalau sudah, sekarang waktunya untuk men set master user dan password mysql.

mysqladmin -u root password PasswordSQLnya
mysqladmin -h Hostnamenya -u root password PasswordSQLnya

4. Mysql udah beres, sekarang kita install apache (httpd).
Sama seperti mysql, kita dapat install melalui yum :D

yum install httpd

5. Tambahkan ke startup, dan jalankan apache.

chkconfig --levels 235 httpd on
service httpd start

Apache udah terinstall, coba arahkan browser kalian ke http://alamatIP/ kalo muncul seperti ini, berarti langsung lewatin aja 1 langkah yang dibawah ini.

6. Pas dibuka tiba – tiba ada tulisan “No Route To Host”, berarti di iptables belum di open port 80 nya. Tau kan kita harus ngapain..? Tancep gas ke /etc/sysconfig, terus edit file iptables :D
Kita selipin ini di file tersebut.

-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 -j ACCEPT

Terus restart iptablesnya.

service iptables restart

Udah deh, lanjut ke step berikutnya.

Apache udah beres. Sekarang waktunya php yang kita install. Langsung aja ya.
7. Install php sama module – modulenya

yum install php php-mysql php-mbstring php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc

8. Karena PHP itu lengket banget sama apache, jadi segala yang terjadi di php baru bisa dilihat setelah apache di restart. Jadi kita restart apachenya.

service httpd restart

Siip, udah selesai. LAMP server udah terpasang di VPS.
Selanjutnya kita install phpmyadmin ya, karena tanpa itu kita bakalan kebingungan dalam manage mysql database ;) )

phpmyadmin juga ga jauh gampang kok installnya, pake yum juga. Lanjuut… :D
9. Kita install phpmyadminnya.

yum install phpmyadmin

10. Lalu kita edit file phpmyadmin.conf yang terletak di /etc/httpd/conf.d/ . Karena kalau tidak nanti kita akan mendapatkan 403 Forbidden saat mengakses phpmyadmin.

Sebelum :

#
# Web application to manage MySQL
#


Order Deny,Allow
Deny from all
Allow from 127.0.0.1

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

Sesudah :

#
# Web application to manage MySQL
#
#
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

11. Proses edit mengedit belum selesai, sekarang kita edit file config.inc.php yang terletak di /usr/share/phpmyadmin/

Cari baris

$cfg['Servers'][$i]['auth_type'] = 'cookie';

Ganti dengan

$cfg['Servers'][$i]['auth_type'] = 'http';

12. Selanjutnya kita restart apache lagi

service httpd restart

Coba buka alamat http://alamatIP/phpmyadmin . Dan yang muncul adalah :



http://cupre.info

Read more...

Cara Setting Ptunnel Di Webmin

#!/bin/sh
#
# chkconfig: 345 99 01
#
# description: program startup script by seilent

############################################################################
## GANTI sesuai dengan nama program kalian
## DAEMON menunjukkan lokasi dimana program kalian berada
## NamaProgram menunjukkan program yang ingin kalian jalankan
## NamaScript menunjukkan nama script yang kalian letakkan di /etc/init.d/
############################################################################
DAEMON="/usr/bin/NamaProgram"

############# Ganti seperlunya saja ##############
# Untuk mengecek keberadaan program
test -f $DAEMON || exit 0

# The init commands
case "$1" in
start)
echo "Starting ptunnel..."
$DAEMON > /dev/null 2>&1 &
;;
stop)
echo "Stopping ptunnel..."
kill -9 `ps -C ptunnel -o pid --no-headers`
;;
restart)
echo "Stopping ptunnel..."
kill -9 `ps -C ptunnel -o pid --no-headers`
echo "Starting ptunnel..."
$DAEMON > /dev/null 2>&1 &
;;
*)
echo "usage: /etc/init.d/ptunnel"
echo "$0 {start | stop | restart}"
exit 1
;;
esac

Read more...

Cara install Webmin VPS Debian

Installing Webmin in Debian

#apt-get install webmin webmin-core

After the installation If you want to access webmin from any machine in your network edit the /etc/webmin/ miniserv.conf file change the “allow” option

allow=127.0.0.1 to allow=0.0.0.0

If you want to restrict webmin for only your network you can do in this allow option

Once you change this and save your file and restart the webmin using following command

#/etc/init.d/webmin restart
#/etc/init.d/webmin start
Go to your browser and type:- https://ipaddress:10000 and you can login using the debian linux root as username and password for root.

If you ou need any webmin modules for your applications you can download from here

Update Webmin online from your machine

Click on Webmin Configuration under webmin tab from here click on Upgrade Webmin and select the Latest version from www.webmin.com option now click on upgrade webmin button this will start the webmin upgrade from webmin site

Downloading http://www.webmin.com/download/webmin-1.290.tar.gz ..
Downloading http://easynews.dl.sourceforge.net/sourceforge/webadmin/webmin-1.290.tar.gz (10324511 bytes) ..
Received 1024 bytes (0 %)
Received 1033216 bytes (10 %)
Received 2065408 bytes (20 %)
Received 3097600 bytes (30 %)
Received 4130816 bytes (40 %)
Received 5163008 bytes (50 %)
Received 6195200 bytes (60 %)
Received 7227392 bytes (70 %)
Received 8260608 bytes (80 %)
Received 9292800 bytes (90 %)
Received 10324511 bytes (100 %)
.. Download complete.
No package signature verification done.

Running setup.sh script to upgrade Webmin .. Please wait a minute until it is complete before continuing.

Other available options

From local file
From uploaded file
From ftp or http URL

Installing Webmin from latest .deb package

You can download latest .deb from here

#wget http://prdownloads.sourceforge.net/webadmin/webmin_1.290.deb

#dpkg --install webmin_1.290_all.deb

the install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/

Installing Webmin in Ubuntu

You can use the above procedure but if you want to install latest version you can download from webmin site download section

Prerequisites

Perl 5 interpreter and libnet-ssleay-perl

#apt-get install perl5 libnet-ssleay-perl

Now you need to download the latest webmin from the above downloadlink

Download ‘webmin-1.290.tar.gz’ (at the time of writing) to some location in your machine ex:- /usr/local/src

#wget http://prdownloads.sourceforge.net/webadmin/webmin-1.290.tar.gz

#cd /usr/local/src

#tar xzvf webmin-1.290.tar.gz

#cd webmin-1.290

#sh setup.sh

This will start the installation and now it will prompt for several questions answer them as follows

Config file directory [/etc/webmin]:
Leave as default, or change as you wish

Log file directory [/var/webmin]:
Leave as default, or change as you wish

Full path to perl (default /usr/bin/perl):
Leave as default, or change as you wish

Operating system:
Enter ’6'

Version:
Enter ’6'

Web server port (default 10000):

This is where you can start to make webmin more secure then the standard install you get with apt-get, Synaptic, or RPM. Leave as default or change it to what ever port you want.

Login name (default admin):

It is ‘admin’, so you can leave it as that, or put in any name that you like.

Login password:

By creating the user above and giving it a password, you have now made it so you will not need to log into webmin with root.

Password again:

enter your password again

If you did not install ‘libnet-ssleay-perl’ you will get the following message:

‘The Perl SSLeay library is not installed. SSL not available.’ You can continue with the install, but it would be more secure if you install sslrelay.

Use SSL (y/n):y

Choose yes here

Start Webmin at boot time (y/n):y

select here y

At this point it is going to configure things, install things, and create things…

It will then tell you that you can log in to https://hostname:10000 and to accept the certificate.

Webmin User Password Change

If you want to change root password in webmin use this included Perl script:

# /usr/share/webmin/changepass.pl /etc/webmin root

If you want to install any standard modules you can download from here

If you want to install third party modules you can download from here

Read more...

Cara Install OpenVPN Untuk Tunneling

ls -al /dev/net/tunls -al /dev/net/tun
ls
dir
yum install gcc
wget http://openvpn.net/release/openvpn-2.0.9.tar.gz
wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm
yum install rpm-build
yum install autoconf.noarch
yum install zlib-devel
yum install pam-devel
yum install openssl-devel
yum install make
rpmbuild --rebuild lzo-1.08-4.rf.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/lzo-*.rpm
rpmbuild -tb openvpn-2.0.9.tar.gz
rpm -Uvh /usr/src/redhat/RPMS/i386/openvpn-2.0.9-1.i386.rpm
cp -r /usr/share/doc/openvpn-2.0.9/easy-rsa/2.0 /etc/openvpn/easy-rsa -R
cd /etc/openvpn/easy-rsa/
source ./vars
./vars
./clean-all
./build-ca
./build-key-server mobinity
./build-dh
cd /etc/openvpn/easy-rsa/keys
rename folder keys jadi 1194 menggunakan winscp dan download file ca.crt ke computer anda.dan block semua file yg ada di folder 1194 rubah common nya jadi 0777.
cd /etc/openvpn/
dir
rm server.conf
y
vi server.conf
a
paste config yang mau dipasang seperti dibawah ini:

port 1194
proto tcp-server
dev tun
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
ca /etc/openvpn/easy-rsa/1194/ca.crt
cert /etc/openvpn/easy-rsa/1194/mobinity.crt
key /etc/openvpn/easy-rsa/1194/mobinity.key
dh /etc/openvpn/easy-rsa/1194/dh1024.pem
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist ip-1194.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "route-method exe"
push "route-delay 2"
keepalive 5 30
cipher bf-cbc
max-clients 140
user nobody
persist-key
persist-tun
verb 3
comp-lzo

esc
:update
:exit

cat /dev/net/tun
service openvpn start
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 127.0.0.0/24 -o venet0 -j SNAT --to 117.103.xxx.xxx <<service iptables status
service iptables save
service openvpn restart

Read more...

Install HPN SSH di Centos

Buat seluruh orang yang punya server VPS pasti tau yang namanya SSH. Dan bagi beberapa orang menggunakan SSH untuk tunneling agar IP addres mereka tersembunyi..Tapi tau nggak kalau kecepatan tunneling SSH itu hanya 1 Mbps..?

Akan tetapi ada patchnya agar SSH menjadi ngacir dengan menggunakan HPN SSH..

Tanpa basa – basi lagi, langsung kita praktekin aja ya..

1. Install aplikasi yang kita butuhkan untuk mencompile dan patch SSH agar menjadi HPN SSH

yum install zlib zlib-devel pam pam-devel openssl openssl-devel gcc patch

2. Sekarang kita pindah ke direktori /usr/src terus download bahan yang mau diinstall

cd /usr/src
wget http://ftp.plig.net/pub/OpenBSD/OpenSSH/portable/openssh-5.5p1.tar.gz
wget http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.5p1-hpn13v9.diff.gz

3. Selanjutnya kita extract SSH mentahan kita, terus masuk ke direktorynya

tar -xzvf openssh-5.5p1.tar.gz
cd openssh-5.5p1

4. Setelah itu kita apply patch HPN SSH nya

zcat /usr/src/openssh-5.5p1-hpn13v9.diff.gz | patch

Proses patching sedang berjalan, nggak lama kok. :D
5. Kalau udah, kita configure SSH yang telah di patch tadi

./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam

Jangan cuman pake ./configure , soalnya ujungnya failed biasanya rolling on the floor
6. Eits, jangan langsung di make dan make install. Kita hapus dulu config SSH sebelumnya biar nggak conflict

rm /etc/ssh/ssh_config
rm /etc/ssh/sshd_config

7. Nnah, sekarang baru kita make terus make install.

make
make install

Nanti bakalan ada beberapa file exist, biarin aja soalnya beberapa file seharusnya nggak di replace :D
8. Langkah terakhir kita restart SSH nya

service sshd restart

Udah deh, coba logout terus login lagi. Versi SSH nya bakalan berubah jadi SSH-2.0-OpenSSH_5.5p1-hpn13v9

Sekarang semua udah selesai

Read more...

install Rapidleech VPS Centos 5

Saturday, October 9, 2010

1. Install apache + php5

yum install httpd
yum install php php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
service httpd start
chkconfig httpd on

cd /var/www/html
wget http://rapidleech.googlecode.com/files/rapidleech-svn322.zip
unzip *.zip
cp -r r322/* /var/www/html/
rm -r -f r322
chmod 777 files
chmod 777 configs
cd configs
chmod 777 files.lst

Restart

Done

http://Ip_address

Read more...
Powered by Blogger.

  © Blogger template The Professional Template II by Ourblogtemplates.com 2009

Back to TOP