Ubuntu Notes and How-Tos

Wednesday, October 24, 2007

Using plasma TV as external monitor on a laptop

Specs:

  • HP Pavilion dv1135 (dv1000 series)
  • Panasonic TH-42PV70FA


My plasma displays at 1024x768 @ 70hz when connected to the VGA port of my laptop.
My laptop displays its own desktop while the external monitor displays its own desktop, so it's easy to configure launchers or shortcuts in the other desktop without cluttering your laptop's desktop.


Section "Device"
Identifier "Intel Corporation 82852/855GM Integrated Graphics Device"
Driver "i810"
BusID "PCI:0:2:0"
Option "MonitorLayout" "CRT,LFP"
Screen 0
EndSection
Section "Device"
Identifier "VGA Port"
Driver "i810"
BusID "PCI:0:2:0"
#Option "MonitorLayout" "CRT,LFP"
Screen 1
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection
Section "Monitor"
Identifier "Plasma Monitor"
HorizSync 31-69
VertRefresh 59-86
#Modeline "1024x768" 60.80 1024 1056 1128 1272 768 768 770 796
Modeline "1024x768" 74.10 1024 1064 1152 1320 768 768 770 801
#Modeline "1024x768" 81.55 1024 1064 1168 1352 768 768 770 804
#Modeline "1024x768" 97.41 1024 1072 1192 1416 768 768 771 809
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82852/855GM Integrated Graphics Device"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1280x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x768"
EndSubSection
EndSection

Section "Screen"
Identifier "Plasma Screen"
Device "VGA Port"
Monitor "Plasma Monitor"
DefaultDepth 24

SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Default Screen" RightOf "Plasma Screen"
Screen 1 "Plasma Screen" 0 0
Option "Xinerama" "false"
#Option "Clone" "Off"

InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection

Labels:

Monday, August 20, 2007

How to enable Broadcom 43xx in Feisty

Laptop: Acer Aspire 9300 (AMD64)

  1. Download bcm43xx-fwcutter and install.
  2. Download this to your Desktop.
  3. $ sudo bcm43xx-fwcutter -w /lib/firmware/`uname -r` ~/Desktop/wl_apsta.o
  4. Reboot.
  5. Enable the connection via System>Administration>Networking
If it wireless card isn't detected, do this:
    $ sudo modprobe bcm43xx
then go back to Step 5.

This was taken (and with much thanks) at http://www.segundanariz.com/ubuntu/p=31

Friday, July 13, 2007

Installing Tomcat5.5 in Edgy Server

1. Install "Sun Java6 JDK":

a) $ sudo apt-get install sun-java6-jdk

b) $ vim ~/.bashrc


c) $ sudo update-alternatives --config java
*Choose Java6

2. Install Tomcat5.5:

a) $ sudo apt-get install tomcat5.5 tomcat5.5-webapp

3. Check the newly-installed server:
a)
$ sudo /ect/init.d/tomcat5.5 start

b)
$ w3m http://localhost:8180

3. Setup user admin and manager:

a) $ sudo vim /usr/share/tomcat5.5/conf/tomcat-users.xml


b) $ sudo chmod 0-r /usr/share/tomcat5.5/conf/tomcat-users.xml

Saturday, January 20, 2007

Extract audio from .avi or .mpg file

Prereq: ffmpeg

$ ffmpeg -i file.avi -f file.mp3

Thursday, August 17, 2006

Installing Rubygems

1) Because Debian does not automatically include all the standard Ruby libraries in the basic Ruby package, we need to install essential libs:

$ sudo apt-get install libyaml-ruby libzlib-ruby


2) Download rubygems from rubyforge then:

	$ tar xvfz rubygems-n.n.n.tgz
$ cd rubygems-n.n.n
$ sudo ruby setup.rb


4) And then finally:

	$ echo 'export RUBYOPT=rubygems' >> ~/.bashrc

Wednesday, July 26, 2006

Beagle with CHM filter

Version 0.2.7-2 has the CHM filter so i upgraded to that version at http://ubuntu.cafuego.net/dists/dapper-cafuego/beagle/

1) First things first:



2) Then add the two lines to /et/apt/sources.lst



3) Then



4) Then

Saturday, June 24, 2006

Installing Sun JDK and JRE

1)


2)


*Update:

$ sudo apt-get install sun-java6-jdk