Archive for January, 2012


A screenshot of Ubuntu 9.04 with GNOME 2.26.

Screenshot of GNOME on Ubuntu - Image via Wikipedia

At times it may happen that your graphical session on ubuntu freezes and you find yourself unable to do anything else. As a MS Windows user, the first thing that comes to your mind is a reboot of your machine, isn’t it? Well, in ubuntu you might have some other options. Let’s see some of them.

Option 1
If your Ubuntu is prior to 10.04, you can try the ctrl+alt+backspace combination. (note that this will instantly kill your X-windows, with all the programs running within it, like the window manager, and probably everything else, and it won’t ask you for any confirmation)
If your Ubuntu is newer than 10.04, bear in mind that the keystroke ctrl+alt+backspace has been disabled and replaced with alt+print screen+k.

Option 2
Using the command line (tou can try and switch to another tty using the Alt+Fn keys like Alt+F1, Alt+F2, etc., or you can use ssh from another machine), kill your graphical interface using the following commands:

/etc/init.d/gdm restart

note: depending on what you chose as a session manager, you might have to use “/etc/init.d/xdm restart” or “/etc/init.d/kdm restart” or, if you have the 11.10 version, try

sudo service lightdm restart

Option 3
Always from a command line, use the following procedure:

1 – retrieve the PID of your X server

ps -e | grep X

2- kill it

sudo kill PID_OBTAINED_ABOVE 
(example: kill 856)

3- restart it

startx &

 

Leave a comment if you think I’ve missed some better procedures.

Advertisements

Well, I know, the post is old (dated dec.19th 2011) but I wanted to try the “Press this” feature to see how it works… 😉

WordPress for Android 2.0 Now Available.

Excel 2007 icon

Image via Wikipedia

There’s a nice feature in Excel (tested on Excel 2007 and 2010) that let’s the user directly copy some data (that can be cells, or a chart, or an object) and paste it as an image, whether in another Excel worksheet or in any other program. (n.d.r.: in previous versions of Excel, the same functionality could be achieved only using some lines of VBA code in a macro).

How to do that? Nothing easier:

  1. select the cells (or the chart or object) that you want to copy;
  2. in the Clipboard group of the Home tab, click the arrow below Paste, click As Picture, and then click Copy as Picture (you will be prompted to choose between some options, but I think they are quite straightforward to understand).
There you go, now your selection is in your clipboard, and you can use it wherever you want, on another Excel worksheet or in your favorite image editor program.

 

Reference: Microsoft online support: Create a picture from cells, a chart or an object