Remote Desktop pada Linux dengan FreeNX

freeNX Remote Desktop pada Linux dengan FreeNXBagi pengguna sistem operasi windows sudah tidak asing lagi dengan istilah Remote Desktop yang berfungsi untuk mengakses sebuah komputer baik itu desktop maupun server secara remote.

Sekarang bagaimana ketika kita mempunyai sebuah komputer yang berisikan sistem operasi linux dapat di akses secara remote, dimana lazimnya sebuah komputer dengan OS linux terbiasa diakses melalui konsol atau CLI melalui protokol ssh.

Sebetulnya ada beberapa alternatif untuk melakukan remote akses terhadap komputer dengan sistem operasi linux, salah satunya dengan menggunakan VNC, tetapi menurut pengalaman saya sebuah VNC server cukup berat untuk diakses melalui internet apabila diakses dengan menggunakan koneksi internet yang terbatas.

Di sini saya coba berikan alternatif selain VNC yaitu dengan FreeNX server, dimana memiliki beberapa kelebihan seperti akses yang relatif lebih stabil dan cepat serta yang paling saya suka adalah bisa restore beberapa session login ke server.

Berikut ini adalah langkah-langkah untuk instalasi FreeNX dimana saya menggunakan sistem operasi CentOS 6.5

Langkah 1: Instalasi gnome

Apabila ketika pertama kali anda melakukan instalasi centos dalam bentuk minimal, anda harus tambahkan desktop environment terlebih dahulu, dalam hal ini saya menggunakan gnome.

Langkah 2 : Instalasi FreeNX server

Langkah 3 : Konfigurasi FreeNX Server

ubah konfigurasi pada node.conf

cari baris tulisan ENABLE_PASSDB_AUTHENTICATION dan ubah menjadi

lalu simpan dengan pencet ctrl+O dan keluar dengan ctrl+X

Tambahkan user pada centos

Tambahkan password pada asep

Tambahkan user pada database nxserver

Tambahkan password untuk asep

Restart nxserver

Saat ini komputer linux anda sudah siap untuk di-remote. pada distro linux (linux mint) saya biasa menggunakan remmina sebagai remote desktop client, untuk pengguna windows, anda bisa menggunakan NX Client dari Nomachine atau bisa juga menggunakan OpenNX

Janaan lupa untuk menambahkan key sebagai autentifikasi ke nxserver, key tersebut terdapat di /etc/nxserver/ dengan nama file client.id_dsa.key

asep nx 001 Remote Desktop pada Linux dengan FreeNX

Google Officially Launches Android 4.3 Jelly Bean

Android 4.3 Jelly Bean Google Officially Launches Android 4.3 Jelly BeanGoogle has finally released the latest version of the Android operating system 4.3 Jelly Bean. Version 4.3 is still in Jelly Bean family, but Google ensure that this update will bring several new features that make Android more secure and comfortable.

Good news for gamers. Android 4.3 has support OpenGL ES 3.0, which enables developers to make better games in terms of graphics in Android devices.

Android 4.3 also has a new keyboard with auto correction better. Also there is a little update on the side where the camera icon is changed.

New features are present in Android 4.3 is the multi-user with additional features Profiles Restricted. This feature allows users to create multiple accounts and customize any contents that can only be opened by a particular account. This feature is very useful for those of you who frequently lend your Android device on your baby or your friends.

Google also including DRM APIs that allows media companies to show its contents. For example, high definition streaming video is more easily done.

Android 4.3 Jelly Bean will be available first for the Nexus 4, Nexus 7, Nexus 10, and Samsung Galaxy S4 Google Edition.

ref: kaskus

How To Fix Error FTP in Kloxo

If you get an error when using FTP (Pure-FTP) in kloxo, you can try the following solution:

step 1: Download And Install Pure-Ftp

step 2: Update Kloxo

step 3: Clean Up Kloxo

CPanel: Domain not appearing/missing in DNS Zone

When you click on “Edit DNS Zone” and there are a lot of DNS zones that are missing from the listbox but the websites (and all the stuff such as email, databases, etc.) for these domains work perfectly.

To fix this problem, just running the following command in ssh terminal

What is InnoDB and MyISAM and how to Convert MySql Database Tables from InnoDB to MyISAM

The following is a table comparison between InnoDB with MyISAM

There is minor problem that MyISAM did not support Transactions and innoDB are more relialbe on atomicity. But you can solve that problem by your own programmming design, you can achieve that by random no method, you can achieve parallelism also

Here is a simple shell script to automatically Convert MySql Database from InnoDB to MyISAM.

How to Update FreeBSD Software Package

To Update FreeBSD sofware package and apply security patches, please follow the following step

Step 1: Upgrade FreeBSD ports collection

step 2: install FreeBSD portmanager

Step 3: Check outdated ports list

Step 4: Update FreeBSD packages / software

How do I apply update again?
In order to update system again just type the following command:

How do I apply binary security updates for FreeBSD?

Latest version includes a tool called freebsd-update (thanks to Bok for pointing out this tool). The freebsd-update tool is used to fetch, install, and rollback binary updates to the FreeBSD base system.

Use fetch option to get all available binary updates:

Install Update
Install the most recently fetched updates:

Rollback updates

Optional: You can uninstall most recently installed updates:

Ref: www.cyberciti.biz

How to Upgrade FreeBSD 9.0 to 9.1 using freebsd-update

To upgrade Freebsd, we will be using freebsd-update, a great piece of software that fetches and installs binary updates to FreeBSD.

Step 1 : Fetch updates

If any updates where installed above – reboot your system before continuing.
Step 2 : Upgrade FreeBSD

The system must now be rebooted with the newly installed kernel before the non-kernel components are updated.

Step 3: Install Update
After rebooting, freebsd-update(8) needs to be run again to install the new userland components:
# freebsd-update install
Step 4: Finally, reboot into 9.1-RELEASE
# reboot

ref: bsdguides.org

How to Check and Repair a MySQL Database Through Console SSH

He is step by step explanation on How to Check and Repair a MySQL Database Through Console SSH with Mysqlcheck and Myisamchk are similar in purpose, there are some essential differences. Mysqlcheck as well as Myisamchk can check, repair and analyze MyISAM tables. Mysqlcheck can also check InnoDB tables.

step 1: Log in as ‘root’ via SSH and:
step 2: Shows you if any need repair:

step 3: Recover MySql Database
try ‘safe-recover’ first:

and, if neither that nor this works:

Then use the ‘force’ flag:

If those are not MyISAM tables try Mysqlcheck:

to repair one database:

to repair one table in database:

ref: vps.net

Apache – FastCGI : Error 500, Internal server error

If you try to upload a file through http to your web site running on Apache2/PHP5/mod_fcgid, and in your browser you get the error:

In Apache’s error log you see something like

First check in your php.ini that upload_max_filesize has a big enough value for your upload. By default it’s

Then open your Apache vhost configuration and add the FcgidMaxRequestLen directive with a big enough value (in bytes), for example

which equals roughly 2 MB.

The default value is

which is very small (see http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidmaxrequestlen).

Finally restart Apache.

How to CHMOD Files and Folder

Set chmod a Folder or a file

Set chmod all folders and files

If you really want to do is set the directories to 755 and either leave the files alone or set them to 644 for this you can use the find command e.g.

to change all the directories to 755:

to change all the files to 644: