Posts RSS Comments RSS 43 Posts and 31 Comments till now

Archive for July, 2007

Ubuntu: manage two monitors

How manage two monitors in Ubuntu system?

First of all, you have tu use ATI fglrx driver, obiously if you have ATI graphic card :-)

Follow the Unofficial ATI Linux driver wiki to 1) install and configuring the driver and 2) enable two monitors.

In short:

  1. install the driver:
  2. sudo apt-get install xorg-driver-fglrx

  3. you shouldn’t need to update xorg.conf, just verify that fglrx is present in this file:
  4. [...]
    Section "Device"
    Identifier "ATI Technologies Inc Radeon Mobility X700 (PCIE)"
    Driver "fglrx"
    [...]
    EndSection
    [...]

  5. enables support fro Big-Desktop, and places the two monitors next to each other (see thread about ATI Big Desktop)
  6. sudo aticonfig --desktop-setup=horizontal --sync-vsync=on --add-pairmode=Width0xHeight0+Width1xHeight1

  7. enable two monitors on the fly:
  8. aticonfig --enable-monitor=lvds,crt1 --effective=now
    Note: in
    aticonfig --enable-monitor=string, string
    string can be one of the following set, separated by commas: none, crt1, crt2, lvds, tv, tmds1, tmds2, auto. Check out connected and enabled monitors using:
    aticonfig --query-monitor

JAVA_HOME: where do I set?

When you install Java (JRE or SDK) on linux system you have to set some environment variables, like JAVA_HOME, J2EE_HOME, etc.

Usually you have to set this variables for all users: system-wide level. OK, I agree. But where do I set JAVA_HOME?

Three alternatives:

  1. /etc/profile
  2. /etc/bash.bashrc
  3. /etc/environment

The first solution. I tried to set the environment variables in /etc/profile: it’s the right place for system wide variables, but in Ubuntu system seems not working.

The second solution worked for all users who use bash. Nice, but there’s another way.

The third solution is to use /etc/environment: in my opinion this is the best way, if the first solution fails.

References: