Posts tagged ‘tricks’

How to re-enable Ctrl+Alt+BackSpace in Ubuntu

In my last post I wrote about what to do when when Linux hangs or completely freezes. In the same post I mentioned that the key command [Ctrl]+[Alt]+[BackSpace] was switched to [Alt]+[PrtSc]+[K] in Ubuntu. This is was done because of the fact that DontZap is no longer an option in the X server and has become an option in XKB instead. This guide is meant for old Ubuntu users and those that have migrated to Ubuntu from other Linux distros.

Before we begin you should note that all these methods will re-enable the [Ctrl]+[Alt]+[BackSpace] key command, but not disable the new [Alt]+[PrtSc]+[K].

These methods should work for Ubuntu 9.10 and 10.04 (and hopefully for the future versions of Ubuntu).

The Easy GUI Way

GNOME

  1. First go to: System > Preferences >Keyboard menu
  2. Then select the Layouts tab and click on the Layout Options button
  3. Then find and select Key sequence to kill the X server and then select Control + Alt + Backspace
  4. And yey! You can now use [Ctrl]+[Alt]+[BackSpace] to kill the X server!

KDE

  1. Open System Settings
  2. Select  Regional & Language
  3. Then select Keyboard Layout
  4. Click on Enable keyboard layouts (in the Layout tab).
  5. Select the Advanced tab
  6. Then find and select Key sequence to kill the X server and then select Control + Alt + Backspace
  7. And now you too should be able to kill the X server with [Ctrl]+[Alt]+[BackSpace] :D

The Terminal Way

Requires installation of a program

  1. Install the “dontzap” package:
    sudo apt-get install dontzap
  2. Type to enable [Ctrl]+[Alt]+[BackSpace]:
    sudo dontzap --disable
  3. And type this if you find out that you want to disable it later:
    sudo dontzap --enable

Does not require an installation (but it is kind of scary)

  1. Open the terminal and type:
    sudo gksudo gedit /etc/X11/xorg.conf
  2. Then add these lines to your xorg.conf file, and then save.
    Section "ServerFlags"
    Option "DontZap" "false"
    EndSection
  3. Then log out (and then in again) from your account (or restart) to enable the changes

Do you know other methods to re-enable [Ctrl]+[Alt]+[BackSpace]? Please tell in a comment ^^

Advertisements

09/06/2010 at 19:37 Leave a comment

How to get hardware information in Linux?

This guide requires use of the Terminal, and can be used on all Linux systems (as far as I know).

The package were going to use is named Hardware Lister (command: lshw).

Most Linux systems and distros comes with this pre-installed as default, but if you should need to install it you just write this in your Terminal:

APT (Debian, Ubuntu…): sudo apt-get install lshw

Yum (Fedora, Red Hat…): sudo yum install lshw

If your system doesn’t use APT or Yum (and doesn’t have lshw pre-installed), you can visit this site for installation instructions: Hardware Lister (lshw).

But as I said most systems comes pre-installed with this package as default, so you doesn’t have to use the commands mentioned over unless this command doesn’t work:

sudo lshw

If you got lot’s of text about your system you have it installed. Yey! But if you get the message bash: lshw: command not found you will have to install it.

This single command gives you all the information you will need about your hardware. But what if you just want some part of this information? No problem, just use these commands:

  • Short summary of all the important information: sudo lshw -short
  • Information about your system (like manufacturer, serial-number, type etc. ) : sudo lshw -class system
  • For memory (RAM, BIOS, firmware etc. ) information type:
    sudo lshw -class memory
  • CPU info: sudo lshw -class cpu
  • Information about your disk(s) sudo lshw -class disk
  • Network information: sudo lshw -class network
  • Disk volum information sudo lshw -class volume
  • Example of how you can combine these commands: sudo lshw -class system -class memory -class cpu

Like you maybe has understood by now, the information in ishw is stored in classes (therefore the -class). So this is just some examples, and if you want the whole list of classes you can visit Hardware Lister’s homepage (or just use sudo lshw and try to memorise the classes by yourself)

But what if you want to store this information in a file, so you dosn’t have to do the lshw information everytime your wondering about some of your hardware info? That’s no problem either :)

  • Store the information as a .txt file: sudo lshw > hardware-info.txt
  • Store it as a HTML file: sudo lshw -html > hardware-info.html
  • And finally as a XML file: sudo lshw -xml > hardware-info.xml

Note that all these commands will save the files in your home folder, and that the commands of course can be combined with the ones mentioned over for you specific needs (but if your not really into using the terminal yet I would stay with the ones I have mentioned here for now).

If your kind of scared of using the Terminal there’s a option for you too: Just go to Synaptic and do a little search for lshw-gtk (gtk-lshw in some distributions) and install it. You can also install it by typing this command in the Terminal sudo apt-get install lshw-gtk (ATP).

02/06/2010 at 20:01 Leave a comment


Licensed Under:

Creative Commons LicenseExcept where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Tux and GNU are published under the GNU General Public License.

Subscribe

Categories


%d bloggers like this: