Posts RSS Comments RSS 43 Posts and 31 Comments till now

Archive for the 'linux' Category

Stream downloader

I discover a new simple utility: Mimms.

Mimms allow you to download streams using the MMS protocol and save them to your computer.

You don’t need to install full media player suite (Xine, Mplayer, …). It’s a simple command-line interface, for Debian and Debian-like system, to download streams. In Ubuntu system you need to install this package (repository universe).

Bea Weblogic 81 su Ubuntu Linux

Ho scritto una breve guida su come installare Bea Weblogic 81 su Ubuntu Linux.

Devo dire che è stato più semplice del previsto.

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: