Posts Tagged ‘ubuntu’

How to Lock Your Machine and Display Application Screen

Friday, September 24th, 2010

We have a couple monitoring applications running on our Linux desktop. To monitor server health, graph utilization through various network monitoring systems. Usually monitoring application required authentication and it will be a security issue if you left your Linux desktop unlock.

But if you lock your Linux desktop, the screen will goes blank and you can’t monitor what is projected on your screen. There is a way to do it with screen saver lock, where you can lock your Linux desktop and at the same time to display when application is running on your monitoring screen.

Lock Your Machine with xlock

First, install xlock in your Linux desktop


shell> sudo apt-get install xlock

After xlock has been install, create a file name lockscreen, chmod to 777 and paste the line below in the file


# /usr/bin/xlock -mode image -geometry 0x0 -timeout 1
shell> vi lockscreen
shell> chmod 755 lockscreen

xlock is screen saver lock, but it can disable the screen saver screen by setting display with “-geometry 0×0″.

You can also bind your keyboard short cut key to launch the lockscreen script through System > Preferences > Keyboard Shortcuts.

How to Check Linux Version and Distro

Wednesday, July 21st, 2010

Who run more than 10 Linux servers with different version of Linux Distro? We all know there are many type of Linux distro such as Ubuntu, Centos, Gentoo, Fedora, debian, OpenSUSE and etc. Every single distro runs on different version and etc. Sometime I am having problem to remember what Linux distro is running on my DNS server or Mail Server, and what Linux version is it on now. There are two methods to find linux version on your server.

To check Linux distro on your server


shell> cat /etc/issue

To check Linux Version and distro on your server


shell> cat /etc/*-release