Networking, Opensource and Experience

top line

What if You fly

WHAT IF ... ...

"Ngak ada kegagalan yang lebih besar dari pada ngabisin sisa hidup lo dengan pertanyaan WHAT IF ?"
When you start something in your life there is always have a big-big question in your head, WHAT IF you fall, seharusnya kita juga mampu berpikir sebaliknya, dan Quote yang paling gue suka dari video ini...


Split interface configuration into a single file

On Debian variant system they will put interface configuration into single configuration file "/etc/network/interfaces" but if we have a lot off interface to manage that will be great to put each configuration into different file(similar to CentOS like), so its possible for us to separate that interface configuration? Absolutely YES.

For the detail, how does it work you should read the interface man page, but I will include a fragment of the man page here.
Lines beginning with "source" are used to include stanzas from other  files,  so configuration can be split into many files. The word "source" is followed by the path of file to be sourced. Shell wildcards can be used.   (See  wordexp(3)  for details.)

XRDP to Remote your Linux machine

If you want to make a remote desktop connection into the Linux Desktop Environment. With this procedure, you will be able to access your Linux Desktop through Remote Desktop ! Here I use the xRDP software package. It’s quite straightforward. It’s quite straightforward.

xRDP is basically a piece of software that allows you to remote desktop into your Linux machine from a Windows computer.  On the Windows machine, you do not need to install any tools, you simply use the standard and builtin tool Remote Desktop Connection.

Istallation Process

Step 1 >> Install XRDP Package
A standard installation for us means that we will be using the xrdp package available within the Ubuntu repository. To install the xrdp software from Ubuntu repository, you will need to issue the following command in a terminal.

 sudo apt-get install xrdp

Step 2 >> Install an alternative Desktop
If you do not install another desktop environment, when you will try to connect to your Ubuntu machine, you will see only a gray screen.  The workaround to this situation is to install an alternate desktop that can work with xrdp software solution.

 sudo apt-get update
 sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon

Step 3 >> Configuring xRDP to use your desktop environment

 sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/

Final step

Now you can connect to your Linux machine from Windows machine with Remote desktop application.

Redirect Menggunakan Policy

Studi kasus:

Beberapa aplikasi di tempatkan pada sebuah host( dimana yang membedakan setiap aplikasi tersebut adalah URI nya, seperti,, .. dst .. jadi setiap user yang akan menggunakan apps tersebut ia akan melemparkan URI berdasarkan aplikasi yang digunakan.
Berdasarkan kasus di atas, maka host utama( akan memiliki virtual server yang sama degan setiap aplikasi yang ada, yang hanya saja berbeda port untuk setiap aplikasi.


Untuk setiap request akan masuk melalui virtual server utama ( yang kemudian jika terdapat URI khusus yang merujuk ke aplikasi maka akan dilakukan redirect menuju aplikasi tersebut.


virtual server utama( :
virtual server apps kalkulator    : vs_calculator
virtual server apps catatan       : vs_note
virtual server apps word           : vs_word

FTP Server Conf

File Transfer Protocol (FTP) biasa digunakan untuk melakukan transfer file antar komputer lebih jelasnya bisa baca di om wiki. Terdapat 3 service untuk FTP yang populer PureFTPD, VsFTPD and ProFTPD, kita akan menggunakan VsFTPD karena ringan dan lebih aman.

Here we go

Step 1 >> Install VsFTPD dan linpam
 sudo apt-get install vsftpd libpam-pwdfile

Step 2 >> Backup file vsftpd  
 sudo mv /etc/vsftpd.conf /etc/vsftpd.conf.bak

Buat file vsftpd yang baru
 sudo nano /etc/vsftpd.conf

Masukkan konfigurasi berikut: