21 November 2015

Howto Connect To Windows Share Network (Connect To Server) Easily in PCManFM

In Nautilus 3.4, Nemo, or Caja, there is a very useful menu called "Connect to Server". This menu allow us to connect to a Windows Share network via Samba. If you are using another desktop environment such as LXDE, there aren't such menu, and we need to install third party tool called Gigolo.

But apparently, PCManFM (the default file manager of LXDE) already has such function. We could connect to a Windows Share network in PCManFM easily. Here are the simple steps :

1. Open PCManFM and go to adress bar, and type this command :


example : smb://staff@ then press Enter

2. Once you will be asked to input the Windows Share Network password (if exists), select Remember Forever option.

3. You are connected to Windows Share Network ;)

31 October 2015

How To Connect HipChat in Pidgin

HipChat is an emerging chat application platform. Currently, there is a native, official Linux client that could be downloaded from HipChat website. But as I've been tried it, the application is little bit heavy especially when you are using an old, low-end PC (example : an old dual core Pentium, with less than 2 GB ram).

But hey, don't be sad. Apparently, HipChat uses XMPP protocol so we could connect HipChat in any Messenger Client that supports XMPP such as Pidgin (or Kopete). Here are the steps :

1. Get your HipChat username. Go to your HipChat's XMPP Account Page (you need to login).

2. Go to Pidgin > Manage Accoun > Add :
Protocol : XMPP
Username : Your HipChat username
Domain : chat.hipchat.com
Resource : leave empty
Password : You HipChat password

2. Tadaaa, now you could use HipChat in Pidgin.

How To Easily Bulk Convert OGG to MP3 in Linux

OGG is a common, widely used, and the default audio format in Linux. But sometimes, maybe you need to run your OGG collections in an old MP3 player. If so, there is a great tool called ogg2mp3 that can be used to convert massive OGG files into MP3 in one single process.

You could get the .deb of ogg2mp3 in its Google Code page. This script depends on lame, so you need to install lame first : sudo apt-get install lame.

1. Go to the path where your ogg collections located
2. Run the following command :
ogg2mp3 *.ogg *.mp3

Easily SSH Tunneling in Any Linux Distribution by Using Proxychains

SSH Tunneling is a tricky way to connect to internet network. Theoretically, SSH Tunneling is a mechanism to connect to internet network by "riding" other connection's band. In Windows, there are plenty applications and or tools to use SSH tunneling.

How about Linux desktop?
SSH itself is a tool from Linux world. Thus, SSH Tunneling of course easily can be done in ANY Linux distribution, without ANY third party applications. All you need is ssh command and a tiny tool called proxychains.

SSH tunneling commonly used to bypass regular connection to others' private connection, in order, for example, we could access blocked websites (youtube, porn site, etc). Another common purpose of SSH tunneling is to pursue better internet connection speed.


1. Open terminal and run following command :

ssh -D 12345 user@yourserver.com/your server's IP -p server_port

Example :

ssh -D 12345 andy@ -p 22

Once you're logged in into your server, don't close Terminal.

2. Install Proxychains

sudo apt-get install proxychains

3. Configure proxychains

sudo gedit /etc/proxychains.conf (use your favorite text editor)

Find the line :
socks4 9050
and change the port with our new port 12345 to be like this :
socks4 12345
Save the file and exit.

To use the proxy we've been made, we need to use proxychains in front of any command. Example :

sudo proxychains apt-get update
sudo proxychains apt-get install xxxx xxxx xxxx

Desktop Applications
For desktop applications like Google Chrome, you can edit the shortcut. Example :

sudo gedit /usr/share/applications/google-chrome.desktop

Find the line :

Exec=/usr/bin/google-chrome-stable --incognito

And add proxychains in front of executable command, to be like this :

Exec=proxychains /usr/bin/google-chrome-stable --incognito

Save the file and exit.

GNOME and MATE Users

If you are using GNOME or MATE based Linux distributions, you could easily enable SSH Tunneling proxy in Network Setting. Enter this value :

Sock Host : localhost Port 12345

But still, if you need to use the proxy in command line interface, you still need to use proychains.

03 September 2015

How To Activate PHP Selector in RHEL/Centos/CloudLinux Based Server with WHM/cPanel

PHP selector is an awesome feature in RHEL/Centos/CloudLinux based web server. This feature allow user to select their own need of PHP version. Why do people need different version of PHP? Some need old version (5.2), and some need the newest version.

Today, there are many web scripts (CMS) exists. Some CMS depend on older version of PHP, and some depend on newer, even newest version of PHP. Because of this trend, PHP Selector created.

But for now, this feature is only dedicated for RHEL-based distros. So, if you are running other distros (such as Ubuntu server), this tool isn't available yet.

Here are the steps to activate PHP Selector in cPanel :

1. Install cagefs
# yum install cagefs

2. Install alt-php
# yum groupinstall alt-php

3. Go to WHM, and find CageFS menu.

4. Enable the user you want to be PHP selector active by move from right box (Disabled) to the left box (Enabled).  Then, click Enable CageFS Skeleton.

5. Go to cPanel, and find Select PHP Version menu

6. Voilaa! Now we get PHP selector.