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

Labels

computer (48) ubuntu (46) linux (28) tutorial (20) opinion (17) programming (14) software overview (13) terminal (12) troubleshooting (8) life (7) literature (7) poem (7) human languages (6) vim (6) bash (5) google (5) python (5) android (4) cars (4) phpBB (4) suggestion (4) tips (4) 12.04 (3) Chef (3) extension and addons (3) firefox (3) java (3) personal (3) russian (3) shell (3) windows (3) 64bit (2) Calligraphy (2) Chicago (2) Vagrant (2) apple (2) backup (2) bug (2) code (2) eclipse (2) funny (2) google chrome (2) idea (2) monitor (2) php (2) phpBB3 (2) shorter prompt (2) ssh (2) virtualbox (2) $_SERVER['REQUEST_URI'] (1) 2.7 (1) ALT+Backspace (1) AVR (1) Alt-Printscreen-K (1) AutoRotate (1) CTRL+ALT+DELETE (1) DRM (1) Debugging (1) Gimp (1) Gimp 2.8 (1) Microcontroler (1) Restart X (1) UML (1) Ventra (1) adsense (1) amazon (1) audio (1) aws (1) background process (1) battery (1) bing (1) blank (1) blogging (1) bmw (1) boot (1) business review (1) car (1) cd (1) chrome (1) comcast (1) computer kubuntu (1) conference (1) cookie (1) cron (1) database (1) date (1) display (1) domain name (1) download manager (1) dual boot (1) dual monitor (1) extensions (1) feature request (1) file (1) folder (1) freeze (1) gimp single window (1) git (1) gnome 3.10 (1) google docs (1) google plust (1) google+ (1) grep (1) icon (1) install (1) iterator (1) links (1) linu (1) linux links (1) list (1) mac os (1) media server (1) microsoft (1) moonlight (1) music (1) mysql (1) name (1) nautilus (1) netflix (1) notepad++ (1) parking (1) permission (1) philosophy (1) photo (1) prompt (1) protest (1) ps3mediaserver (1) putty (1) read from file (1) realtek (1) resolution (1) roku (1) samsung (1) scala (1) screenshot (1) security (1) selinux (1) server (1) skype (1) space (1) spam (1) spambot (1) sql (1) suspension (1) system monitor (1) tar (1) task manager (1) template design (1) th23 domain (1) thinking (1) ubuntu 13.10 (1) unity (1) vimrc (1) virtual machine (1) weblogic (1) wget (1) with space (1) xorg (1) xrand (1)