Saturday, February 5, 2011

View Your Real X Display Using x11vnc,

I've been manage several servers with different operating systems for a couple of years. I used VNC to remotely view and manage Linux/ UNIX servers through their X displays. If you ever used and configure VNC server at Windows OS, you might find a slight differences with the one at Linux/ UNIX. In windows, you can configure VNC and use it with any display, yet you still can view your real desktop display, the one that you've been and always used. But in Linux/ UNIX, when you configure your VNC server, you can't configure it to connect to your real X display, indeed it always create a new display, so you can't view your existing open applications.

Recently I just found out a very simpe and right Linux/ UNIX application for that purpose, it called x11vnc. X11vnc is a VNC server for real X display, it allows one to view remotely and interact with real X display. With this tools, now I can view and control any X applications running on my server. The usage is very simple either.

First, you must install this tools. For I am using Ubuntu server, this is the command:
server# apt-get install x11vnc

And after it installed, execute this command to run VNC server:
server# x11vnc -display :0
You'll get some notifications upon execute the command, its for security purposes (access password, etc.), just read and customize it according to your server configuration.

After done with above command, you can view X server's display from your client using this command:
client# vncviewer server:0

That's it. If you run the command on server with no errors, right now you can view your real X server's display, with any X application already running on it. Cheers! :)

 

Monday, January 31, 2011

Cygwin: Coloring CLI

I've got this from someone who share it in the internet, so the credit should goes to him/ her :) This is just a note-taking, so I can search it on the archive in the future.

Add these lines to .vimrc file which located on your $HOME directory (or create one if you can't find one):

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif

And for your Cygwin CLI, so you can see clearly. Add this line to your .bashrc file on your $HOME directory:
alias ls="ls -CF --color"

That's it.. restart your Cygwin, and you'll find the differences :)

Sunday, September 19, 2010

Nokia 6300 iSync with Mac OS X

I still keep my old Nokia 6300 for backup purpose and periodically sync to my MacBook Pro to keep the calendar and contact updated. Luckily Mac OS X provide iSync, but I have to install additional plugin to make it recognize my Nokia 6300. All you have to do is get the plugin from here, and just installed it. Or you could download this package, and extract it to /Library/PhonePlugins folder (you must create manually if PhonePlugins folder haven't exist already)

After that, you can launch iSync apps, Add Device, and just follow the instructions. Don't forget to backup your data before syncing the device.

Credit goes to ZealousPost.com

Wednesday, August 11, 2010

Reveal Hidden Apps In Add/Remove Windows Components

This works with Windows XP Professional or Home edition, any service packs. In Add/Remove Programs, on the sidebar you'll find Add/Remove Windows Components button. There, you can add/remove applications that belongs to Windows installation. The problem is, some of them are hidden, so you cannot remove them. By editing a file, you can reveal those apps. Here's how to do it:

1. Start -> Run, type: c:\windows\inf\sysoc.inf

2. On the new popup Notepad window, do ctrl-F and type 'hide' (without quote), then press Enter.
Press Esc button to close Find window and you'll find the first highlighted 'hide' word. Press Del button to eliminate it. Instead of repeating using Find window, you can press F3 button, it will find next 'hide' word. Press Del button - F3 button - Del button and so on.

3. Press Alt-F-X to close the Notepad window, you'll be prompted to save it, answer with 'Yes'

And you're done. Open Control Panel -> Add/Remove Programs -> Add/Remove Windows Components to choose the programs you need.