Ubuntu Fan

life with ubuntu on a thinkpad T40

Archive for the ‘ubuntu’ Category

Remote X Applications

Posted by ubuntufan on August 17, 2007

I know, I know…I’ve disappeared for a while. Summer is busy for me and I had to…..well I really have no excuse, but I’m back again for at least a while.

As you may or probably do not know, my work environment is composed of 29 glorious, non-windows servers. A fair amount of them are Solaris 9 with a dusting of Solaris 10, with the rest being various Linux distros. I wish I could change them all to the same distro but everything works, so I won’t complain too much. I occasionally wander away from the command line and need to run an X application of some sort; usually an installer. No problem right? From a CLI, just type xhost + , ssh to the Solaris box I need, export the display and that’s it…run any X app you like. Wait…what’s this? Error: Can’t open display: ????

This was making me mad….I had to install Oracle and didn’t feel like having to dig around to find out what the problem was. I brought up my Chatzilla window and logged into #ubuntu ( a great place for answers) The solution was simple and I believe it is a new security “feature” in 7.04 ( but I’m not 100% sure) All you have to do is go to the system menu, click on Administration and then click on Login Window. From there, click on the security tab and un-check the “Deny TCP connections to Xserver” check box….that’s it. Everything will work as expected from there.

There is a chance that this could possibly be a security hole but it’s easy enough to toggle on and off when needed if you’re paranoid. Hope this helps.

Dale

Posted in Administration, Networking, ubuntu, xorg | 16 Comments »

Beryl. Take 2.

Posted by ubuntufan on April 6, 2007

In case you haven’t read, I received my new T40 the other day. I decided to install Ubuntu Feisty on it instead of Edgy, mainly because I read that it had built in support for XGL and Beryl/Compiz goodies. Once installed, I started poking around. Navigating to system->preferences, I noticed a new option called Desktop Effects

effects1.png

This worked! Well it sort of worked. I was getting odd behavior where menu items weren’t showing up in some windows. NOTHING was showing up in a terminal, I mean not even typed text. But hey, the windows wobbled and the cube was there. I figured that I was on the right track. So for fun, I fed The Google “Feisty T40” to see what got regurgitated . The first hit I got was a link to a thread on the Ubuntu Forums telling the requester, who was having the same issue, to type the following 2 commands.

gconftool-2 --type int --set /apps/compiz/general/screen0/options/hsize 4

gconftool-2 --type int --set /apps/compiz/general/screen0/options/number_of_desktops 1

I figured it was worth a shot. BAM! It worked. I like these cool effects, I’m a eye candy weenie I suppose. For a couple of days I was happy…then I thought I’d give full blown Beryl a shot. I mean, I’m basically there right?

So this morning my Dad and I have a 9:00am tee time. As I sit here drinking my coffee, I opened up a terminal window and type.
sudo apt-get install beryl beryl-manager emerald-themes

After a few minutes I try to launch beryl-manager…….VIOLA!  It works. Now I don’t know what I was missing with my last T40, but I couldn’t get this to work for anything. The folks working on Feisty have done an outstanding job putting this together and I’m thankful.

On a side note, I hear that the shipit site was down with a message that they would be back shortly shipping shiny new Feisty CDs, but I can’t verify that as it appears to be back to normal now.

Here’s a screenshot.

The Cube

Dale

Posted in Beryl, General Linux, Thinkpad, ubuntu | 10 Comments »

Dual Display on Dell Latitude D600

Posted by ubuntufan on April 4, 2007

Most of you know that I have been using a Dell Latitude D600 at my new job. It’s not a bad little system. I do like the 1400×1050 resolution. Anyhoo, I needed to get dual displays working so I could drive an external 19″ LCD as well as use the real estate of the laptops LCD while I’m at my desk. I wrote a previous post on detecting dual displays and switching the xorg.conf but never got around to posting my actual xorg.conf file. Withour further delay, here it is:


# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg


Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/CID"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection


Section "Module"
Load "GLcore"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection


Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf)"
Driver "ati"
BusID "PCI:1:0:0"
Screen 0
Option "DRI" "true"
Option "ColorTilling" "on"
Option "EnablePageFlip" "true"
Option "AccelMethode" "EXA"
Option "XAANoOffscreenPixmaps" "true"
Option "RenderAccel" "true"
Option "AGPMode" "8"
Option "AGPFastWrite" "on"
EndSection

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf) 2"
Driver "ati"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Monitor"
Identifier "Laptop Monitor"
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Acer Monitor"
VendorName "Acer"
ModelName "SyncMaster 900NF"
HorizSync 30-86
VertRefresh 50-160
Option "DPMS"
EndSection

Section "Screen"
Identifier "Laptop Screen"
Device "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf)"
Monitor "Laptop Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 4
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 8
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 15
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 16
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 24
Modes "1400x1050"
EndSubSection
EndSection

Section "Screen"
Identifier "Acer Screen"
Device "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf) 2"
Monitor "Acer Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "ServerFlags"
Option "Xinerama" "ON"
EndSection

Section "ServerLayout"
Identifier "Dualhead Layout"
Screen 0 "Laptop Screen" 0 0
Screen 1 "Acer Screen" RightOf "Laptop Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
Option "AIGLX" "true"
EndSection

Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "false"
EndSection

I’m not doing anything fancy here. I do like the fact that I can have the displays running different resolutions and drag windows back and forth. This was a bit troublesome on my old T40. I think it was because I wasn’t using Xinerama but I can’t recall. I’ll have to try this out on my new T40…..pictures of the new laptop soon.

Dale

Posted in displays, General Linux, Laptop, ubuntu, xorg | 4 Comments »