____

Sunday, January 15, 2012

What happened to "ALT+BACKSPACE" in Ubuntu ?
How to restart Xorg ?

We all know old friend  alt+backspace which forced the XORG to be restarted when the computer screen was frozen .
and also the other old friend CTRL+ALT+DELETE , which is also disabled .

  What happened to Alt+Backspace in Ubuntu 11.10 ? (How to restart the X in ubuntu)
in pervious versions of Ubuntu (and other Gnome-based linuxes) , whenever the X crashed (the graphical window system manager) we would hit Alt+Backspace and the X would be restarted .

However , in the new versions of ubuntu, alt+backspace  doesn't work anymore and it been replaced by Alt+Printscreen+K
which is better . why ? because ALT+Printscreent+K combination could be caught by Kernel when the whole X is totaly gone, (remember those times that Alt-backspace wouldn't work ? it was because it was totaly gone , but now Alt Print Screen would be sent to Kernel which is better idea) 


Another explaintion of this change is, nowadays lots of applications use ALT+something as short cut and it would lead to restart the X by accident and possible data loss .


What happened to CTRL+ALT+DELETE , How to call System Monitor  or Kill a process or Log out in Ubuntu 11.10?
The CTRL+ALT+DELETE has been replaced by "CTRL+ALT+BACKSPACE" .
which it simply calls system monitor , so you could see the Ram usage and also the processes and kill them or End them or Map their memory usage .



Saturday, January 14, 2012

How to handle space in file name in any Linux terminal

Today I wanted to mount My Passport External Hard disk and it reminded me of how I used to be nevrous whenever I wanted to do any operation (copy/move/delete...) on any file or folder with blank Space character in its name in the terminal , (we dont have this problem in graphical file managers)

Lets learn once forever , how to treat it here is the simple rule :

Whenever you see the space in the name you just replace it with "\ " without Qouation Marks .
for example this will NOT work in terminal

cd /media/My Passport
because it has an space in it , to make it work I add "\ " for each space but the following will work

cd /media/My\ Passport
and it works , I promise .

Tuesday, January 10, 2012

How to install Python 2.7 in Ubuntu 11.10

I am taking Crypyology this quarter with Professor Schaefer and he uses python in the class , I installed Python 2.7 on ubuntu 11.10 64bit , installing it is easy as other apps , just the step 3 is a bit different.

1- Download the Python 2.7 source code and Extract it do the Desktop

2- Do the things that we do for all other compiles


cd Desktop
cd Python-2.7
./configure
make


3- This is the important part it is altinstall not install !
sudo make altinstall



4- Test it
medya@medya:~/Desktop$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "hi shevin"
hi shevin
>>>

Related Posts: