Connect Linux Ubuntu to XServer

Misalkan kita memiliki 2 buah komputer dengan sistem operasi linux. Komputer I sistem operasinya ubuntu (host IP.10.0.0.1), dan komputer II sistem operasinya centos (client IP.10.0.0.2). Untuk dapat masuk ke komputer II dan mengeksekusi perintah-perintah didalam komputer II kita dapat menggunakan ssh. Tapi perintah-perintah yang dapat kita gunakan hanya perintah-perintah dalam mode konsole. Untuk dapat menggukan perintah-perintah dalam mode graphics (GUI) kita menggunakan XServer connection.
Langkah pertama yang akan kita lakukan untuk lebih mudahnya adalah dengan mematikan firewall dikomputer host dan client.

Kemudian edit file /etc/gdm/custom.conf, pada bagian bawah string

[security]

tambahkan :

DisallowTCP=false

Langkah kedua adalah mengedit file /etc/gdm/gdm.schemas, temukan :

security/DisallowTCP Ubah nilainya dari true ke false

Kemudian restart XServer. Untuk melakukan connection ke komputer client, lakukan dikomputer host :

  1. Buka terminal.
  2. Ketikkan : xhost +
  3. Masuk ke komputer client dalam X mode : ssh -X username@10.0.0.2
  4. Tampilkan display pada komputer host : export DISPLAY=10.0.0.1:0.0
  5. Panggil aplikasi gui dikomputer client. Misal gedit, maka aplikasi client akan muncul di komputer host.

totosugito

Hi, This is my notes when I try something. Maybe, this is NOT THE BEST SOLUTION for your problems. If you have other method or idea that better with my post, please share in this blog. Thank for visiting my site.

More Posts - Website

One Response

  1. Bail Bonds 24 Hours Blog
    Bail Bonds 24 Hours Blog August 6, 2011 at 1:40 am |

    Bookmarked your post to stumbleupon!…

    Great post. I subscribed to your rss….

Leave a Reply