Friday, 30 November 2012

How to edit a remote file over ssh

When you need to edit a file hosted on a remote host, it will be nice if you can edit the remote file over ssh with vi command, as if it were a local file. Of course you could set up NFS over ssh tunnel to achieve that, but that will be an overkill if this is just one-time usage. So how can I edit a remotely located file over ssh?Read more »

Thursday, 29 November 2012

How to checkout a specific version of git repository

A public git repository is often shared by multiple developers who constantly contribute new code and fixes, and users who check out code to try it. Along with code itself, a git repository contains full commit history of the code, as well as revision tracking information. As such, you can easily checkout a particular version of specific files from git repository if you want. In order to checkout a specific version of git repository, see the following examples.Read more »

Wednesday, 28 November 2012

How to view a list of MySQL users and their privileges

If you are running a multi-user MySQL database, handy commands that show a list of all existing MySQL users and their privileges may be on your cheat sheet. To find out all MySQL users and the permissions granted to each user, log in to your MySQL server, and run the following MySQL commands.Read more »

Tuesday, 27 November 2012

How to convert pdf files to jpg format on Linux

While PDF (short for "Portable Document Format") is a widely used document format supported by a variety of applications on multiple platforms, you may want to convert pdf files to jpg format for several reasons. For example, you may want to embed a pdf file into PowerPoint or OpenOffice Impress presentations, in which case jpg/jpeg images will be easier to work with. Converting a pdf file into jpg also makes it unnecessary to load a separate plugin or external application for web browsers to render it. If you are looking to convert pdf files to jpg/jpeg format on Linux, the following guide will help.Read more »

Monday, 26 November 2012

How to enable X11 forwarding using ssh

X11 forwarding is a mechanism that allows graphical interfaces of X11 programs running on a remote Linux server to be displayed on a local client machine. Behind the scene, the X11 output of a remotely running program is authorized to be sent to localhost via an X11 connection between client and a remote server. SSH has an option to securely tunnel such X11 connections, so that X11 forwarding sessions are encrypted and encapsulated. If you would like to set up X11 forwarding over SSH, check out this guideline.Read more »

Friday, 23 November 2012

How to convert jpg image file to pdf format on Linux

Jpg is without any doubt the most popular format used to share images on the Internet. However, there are several advantages in using pdf images compared to jpg images. For one, while jpg is a raster format with lossy compression, pdf is a layout format that contains both vector and raster graphics. Read more »

Thursday, 22 November 2012

How to start VMware server remote console without web interface

In VMware Server, console access for virtual machines (VMs) is obtained by using VM remote console plug-in of web browsers. However, as VMware Server is no longer supported by VMware, its remote console plug-in has not been usable in the latest web browsers. For example, VM remote console plug-in is broken for Firefox version 3.6 and higher. When you attempt to launch VM console window on the latest Firefox via console plugin, you will get an error saying "Cannot access virtual machine console. The request timed out."Read more »