Semi-hardcore users are already plunged into work, but don’t forget from those who like the luxury and comfort as much as possible.
Anyone who ever used the Total Commander on Windows System will feel a huge black hole in the force and say: “Something is missing”. You can believe me when I say that I’ve tried a dozen of commander-like applications but only one could approach the minimum expectations set by Christian Ghisler. And this is the Tux Commander. So in the Terminal type:
$> sudo apt-get install tuxcmd tuxcmd-modules
After install, you will find it in the Applications > Accessories menu. The good part is that the Tux Commander supports the most frequently used hotkeys along the F* keys like Shift+F6 (rename), Ctrl+F (new connection, and not only for FTP but for SSH as well), Ctrl+T (new tab), Ctrl+D (bookmark path) etc.
gSTM the SSH tunnel
Sooner or later you will have to publish your work on the Internet. Many web servers allow SSH connections, which is great news for us to make our life a bit easier. With an SSH tunnel, we can reach the distant MySQL through the MySQL Workbench with no problem.
To install type the following command in the Terminal window:
$> sudo apt-get install gstm
When it finishes, the program can be found in the Applications > Internet menu. To add a new port redirection is not like inventing the wheel so it’s a piece of cake. Pay attention on the ports of both the SSH and the MySQL. Maybe the real web server uses non-default ports.
Save and start the service. The settings on the image means that when you connect to the localhost (127.0.0.1) on the port 3307, the gSTM will open an Einstein-Rosen Bridge and redirects everything to the distant server’s port of 3306.
Now in the MySQL Workbench create a new server instance, with Hostname of ‘localhost’, Port is ‘3307’, and the Username and Password is the remote MySQL’s credentials. That’s it.
By default there’s only Firefox. But let’s suppose that you want to test your site in other browsers like, Opera, Google Chrome, Safari or Internet Explorer. Some of them are supported while some are not on the Linux systems.
Among the Firefox there are only two other “mainstream” browser are supported on Ubuntu. The Google Chrome and the Opera.
Google Chrome (Ubuntu name: Chromium Web Browser). In the Terminal type:
$> sudo apt-get install chromium-browser
After install you will find it in the Applications > Internet menu with a blue icon.
Opera Browser. It’s sad but Opera is not in the official Ubuntu packages, so we have to download from the Opera website: http://www.opera.com/browser/download/ When it downloaded double click on the .deb file. That will start the Ubuntu Software Center where you can install the software or you can install it from Terminal:
$> sudo gdebi ~/Downloads/opera_11.11.2109_i386.deb
After install you will find it in the Applications > Internet menu.
There are virtualized solutions to do magic, but I don’t recommend it since the Wine will not produce a full-value application virtualization. So Microsoft Internet Explorer and Apple Safari should be tested in a different way.
If your HOST system is Microsoft Window then you can be happy because you have Internet Explorer and Apple Safari is also available. You have to do four easy steps to be able to test your site located on the VBox Ubuntu.
Time-by-time Oracle arbitrarily change the way the users have to set NAT port forwarding. So I present the method.
On the VM's lower right corner, click on the network icon and choose the 'Network Adapters...' menu.
In the window click on the Port Forwarding button.
Simply add a new port forwarding definition by set the Host port to 88, and the Guest port to 80.
Do not set any IP address.
Close the option windows.
Now we have to change the hosts file. In the command line window type:
C:\> notepad C:\Windows\System32\drivers\etc\hosts
To the end of the file insert the following:
127.0.0.1 foo.localhost 127.0.0.1 www.foo.localhost
Save the file and exit the editor. I didn’t look for dnsmasq-like solution for Windows but I’m sure, you will find one if you look after.
Run Internet Explorer and/or Apple Safari and enter the URL: http://www.foo.localhost:88 and you should see your site.