Selasa, 15 Desember 2009

a2enmod

a2enmod he he ini cara membuat user dir yang mudah dengan ubuntu tidak sesulit di centos :)


pastikan apache+mysql+php sudah di apt-get install yah


1.buat direktory public_html di home anda

2.kemudian buka terminal lalu ketik seperti di

ubuntu@ubuntu-laptop:~$ sudo a2enmod
[sudo] password for ubuntu:
Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias
Which module(s) do you want to enable (wildcards ok)?
userdir  <------- kamu ketik ini kemudian di enter hingga keluar kata2

Enabling module userdir.
Run '/etc/init.d/apache2 restart' to activate new configuration!

kemudian sudo /etc/init.d/apache2 restart

3.buat file php info kemudian taro di

direktory public_html di home anda

 

4. lalu akses di browser  http://localhost/~ubuntu/info seperti ini,.




jadi deh :)

selamat mencoba

ingin costum DocumentRoot di centos...

ingin costum apache di centos...

salah satunya ingin merubah dockument root

[root@apache ~]# vi /etc/httpd/conf/httpd.conf

maka akan keluar setingan  httpd.conf

kemudian cari dengan mengetikan "?" kemudian ketik  DocumentRoot "

untuk nextnya jangan teken enter,.. teken huruf "N" sampai target DocumentRootnya ketemu..
 
jika sudah bertemu nah langsung aja exekusi :P

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot "/var/www/html" <--- ini defaultnya
DocumentRoot "/home/tester/"  <--- setelah di rubah


kemudian disafe dan jangan lupa di restart apachenya biar efek perubahannya keliatan... 

rdesktop

rdesktop kalo ngk salah sih :P suatu client untuk Remote Desktop Protokol (RDP), digunakan untuk me-remote sebuah server . Bentuk akses remote yang bisa diperoleh adalah akses pada mode grafis/X.

kira 2 rdesktop  itu seperti ini,..

jangan lupa install dulu rdestopnya

#tar xpfz rdesktop-1.1.0.tar.gz
#cd rdesktop-1.1.0
#./configure
#make
#make install

rdesktop -g 90% [ip target]

atau


rdesktop -u admi -g 1024x768+0+0 target.com

keterangan option

-u: username
 -d: domain
 -s: shell
 -c: working directory
 -p: password (auto logon)
 -n: client hostname
 -k: keyboard layout (hex)
 -g: desktop geometry (WxH)
 -f: full-screen mode
 -b: force bitmap updates
 -e: disable encryption (French TS)
 -m: do not send motion events
 -l: do not request license


sekian mudah bermanfaat ^__^

Senin, 14 Desember 2009

SSH Tunneling di Windows

tunneling mungkin tidak asing lagi untuk di dengar,...
biasanya sih buat ngakalin koneksi inet yang semakin melemot alias byar pet :D

tapi kendala itu bisa di atasin dengan cara tunneling ke server [ ini kalo ada kenalan yang servernya bersedia di tunneling he he ]

pertama pastikan kondisi di browser anda
seperti ini menggunakan manual proxy



nah kalo sudah di buat manual proxy seperti di atas,...
buru2 dah di simpen itu setinganya :D

langkah selanjutkan,.. pastikan anda sudah memiliki sofware  putty.exe

kalo sudah kemudian buka cmd ikutin caranya seperti gambar di bawh ini
-----------------------




selama proses tunneling,... cmd nya jangan di tutup biarin aja,..


selamat berselancar ria deh :D

Update repository ubuntu ke server lokal

mungkin udah banyak yang ngasih tau cara ini,..
cuman biasanya masih ada aja yang nanya,,, :D

saat instalasi awal biasanya isi dari /etc/apt/sources.list


#deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

#deb http://id.archive.ubuntu.com/ubuntu/ jaunty main restricted
#deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
#deb http://id.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
#deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
#deb http://id.archive.ubuntu.com/ubuntu/ jaunty universe
#deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty universe
#deb http://id.archive.ubuntu.com/ubuntu/ jaunty-updates universe
#deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
#deb http://id.archive.ubuntu.com/ubuntu/ jaunty multiverse
#deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty multiverse
#deb http://id.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
#deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://id.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

#deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
#deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
#deb http://security.ubuntu.com/ubuntu jaunty-security universe
#deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
#deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
#deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse



---------------------------------------------------------------------------------------------------------------------------------
nah kita edit file /etc/apt/sources.list
jangan lupa di backup dulu sebelumnya

cp /etc/apt/sources.list  /etc/apt/sources.list.old

kemudia gunakan vi, vim, gedit atau yang lainya

ubuntu@ubuntu-laptop:~$ sudo gedit /etc/apt/sources.list

atau
ubuntu@ubuntu-laptop:# gedit /etc/apt/sources.list

kemudian hapus semua isi /etc/apt/sources.list dan ganti
dengan di bawah ini ,




---------------------------------------------------------------------------------------------------------------------------------
deb http://kambing.ui.ac.id/ubuntu jaunty main restricted universe multiverse
deb-src http://kambing.ui.ac.id/ubuntu jaunty main restricted universe multiverse

## MAJOR BUG FIX UPDATES produced after the final release
deb http://kambing.ui.ac.id/ubuntu jaunty-updates main restricted universe multiverse
deb-src http://kambing.ui.ac.id/ubuntu jaunty-updates main restricted universe multiverse



## UBUNTU SECURITY UPDATES
deb http://kambing.ui.ac.id/ubuntu jaunty-security main restricted universe multiverse
deb-src http://kambing.ui.ac.id/ubuntu jaunty-security main restricted universe multiverse

## BACKPORTS REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)
deb http://kambing.ui.ac.id/ubuntu jaunty-backports main restricted universe multiverse
deb-src http://kambing.ui.ac.id/ubuntu jaunty-backports main restricted universe multiverse
----------------------------------------------------------------------------------------------------------------------------------
kalo sudah

disafe file tersebut,.. kemudian

ubuntu@ubuntu-laptop:# apt-get update


----------------------------------------------------------------------------------------------------------------------------------
semoga bermanfaat
-----------------------------------------------------------------------------------------------------------------------------------

Minggu, 06 Desember 2009