Tripe Monitor Ubuntu – 2 GPUs, 3 Monitors for NVIDIA on Ubuntu 10.10

I’ve be searching on how to do this for 20+ hours. I found all kinds of $400+ cards that required multiple $50 adapters. I found bleeding edge daisy-chaining displayport screens for $1000+… ugh.

Requirements:

1) Inexpensive

2) Not meant for gaming

3) One large desktop

4) Windows maximize to fullscreen for it’s monitor

5) Ubuntu 10.10 x64 because Unity sucks

Solution:

First, install the NVIDIA proprietary drivers (System -> Administration -> Additional Drivers). Next reboot and set the BIOS if needed: In my setup, the onboard video card (GeForce 7050) supports one screen either DVI or VGA. A dirt cheap GeForce 8400 PCIE card handles the other two. I configured the BIOS to boot to the IGP (7050) first because otherwise the 8400 would boot by itself and the 7050 was not even present in the NVIDIA tools (System -> Administration -> NVIDIA X Server Settings) . Now when I boot, the NVIDIA tools shows both GPUs. Close this tool because it’s not designed to work with triple monitor sadly :( . If the NVIDIA tool doesn’t work, try running this: sudo nvidia-xconfig. Logout, log back in, it should work now.

In the NVIDIA tool, you need to enable all monitors. You can just enable them with a separate X Screen for now with Xinerama checked. This won’t actually get what you want,  but it’ll allow the command below to work.

Editing the xorg anyone? Tried that, it wasted a lot of time. Now the holy grail:

sudo nvidia-xconfig --separate-x-screens --render-accel --xinerama

If you get errors, ensure that there are double dashes infront of the three command options. The output should look like this:

user@host:~$ sudo nvidia-xconfig --separate-x-screens --render-accel --xinerama

Using X configuration file: "/etc/X11/xorg.conf".
Option "RenderAccel" "True" added to Screen "Screen0".
Option "RenderAccel" "True" added to Screen "Screen1".
Option "RenderAccel" "True" added to Screen "Screen2".
Option "RenderAccel" "True" added to Screen "Screen2 (2nd)".

WARNING: The Composite X extension does not currently interact well with the
         Xinerama option; the Composite X extension will be disabled.

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

This one command will configure your xorg.conf to automatically span across up to 4 monitors (tested)… perhaps more. It will automatically get the best resolution too. Run that command, logout and login again. You should be on all 3 (or 4) monitors now.

Troubleshooting:

If your screen constantly goes into a ‘no signal, power saving mode, signal’ cycle, clean install your system, or get it’s specs closer to mine:

NVIDIA Driver 260.19.06
 Kernel Linux 2.6.35-32-generic #67-Ubuntu SMP Mon Mar 5 19:39:49 UTC 2012 x86_64 GNU/Linux

You can get the kernel I’m using here.

If your screens are in the wrong order, take the easy way out and just move the cables. xorg.conf is a pain to modify.

If nvidia-xconfig doesn’t work, ensure all monitors are enabled in the NVIDIA graphics tool with separate X Screens. For some reason nvidia-xconfig requires this. Also this shows you weren’t reading because I mentioned it above :)

Here’s the xorg.conf if need it (click continue reading)

Continue reading

Posted in Uncategorized | Leave a comment

wifi robot

my current project:

http://www.rs-tek.net/wiki

Posted in Uncategorized | Leave a comment

Basic SAMBA Config ubuntu/windows file sharing

This post is a lot of information that I had to piece together to make something very simple: allow ubuntu to share files with windows and other ubuntu computers. This is only the basics.

Step1: sudo apt-get install samba

Step2: stop samba, edit smb.conf. Here’s a simple example of mine:

*****************************************
[global]
; General server settings
netbios name = hostname
server string = “”
workgroup = workgroupname
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

passdb backend = tdbsam
security = user
null passwords = false
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast

wins support = yes
interfaces = lo, eth0
bind interfaces only = true

syslog = 1
syslog only = yes

[Home]
path = /home/username
browseable = yes
read only = yes
guest ok = no
create mask = 0644
directory mask = 0755
read list = readonlyuser
write list = writeusers

*****************************************

The above basic directory permission forces read only by default only to defined users. Write users must be explicitly defined. I like this method as it’s easy to share things with your kids without worrying about them accidentally editing/deleting something.

Step 3:

create and enable users:

The users need to be existing Linux users. If not, sudo adduser username.

sudo smbpasswd -a username

If you put the same users on your Windows and Ubuntu computers, there will be no login prompts when you try to access files.

Step 4:

At this point, the Windows system should be able to see your defined directories. Other Linux computers with the Samba client installed can do the same by typing smb://<ipaddress>/ in Nautilus.

5. To mount an NTFS partition every boot, sudo vi /etc/fstab and add this below your first mount:

//server/path /home/user/mountpointdir smbfs username=user,password=pass 0 0

Posted in Tech, Ubuntu | Leave a comment

realvnc 5.4 on ubuntu 10.04 x64

Ever try to install this and get the error “Package libstdc++5 is not installed”? Try to apt-get that and it doesn’t exist? Well it’s an easy install but there are no easy instructions so I made some:

Download vnc-e_4.5_v4_amd64.deb or whatever the current version is from RealVNC’s site. Don’t install it yet. Download libstdc++5_3.3.6-18_amd64.deb (or the current version) from a Debian mirror (google it).

sudo dpkg -i libstdc++5_3.3.6-18_amd64.deb
sudo dpkg -i vnc-e_4.5_v4_amd64.deb

You can now start vncviewer with “vncviewer <server name> &” and the rest of it. If vncviewer won’t run without sudo, delete the .vnc directory in your home directory. Icons install to the internet directory of the gnome start button.

Posted in Tech, Ubuntu | Leave a comment

ESXi 4.0 Server for $250

I built a VMware ESXi server a couple months ago for very little money with used parts. It’s been running for the last couple months, is fast enough for me and houses systems I use every day.The biggest caveat: It’s 32 bit only. If you need 64bit systems this won’t work for you.

Part list:

ebay (used equipment bids)
HDAMA motherboard including dual Opteron 2xx CPU, PSU $40 shipped
8GB DDR 2100 ECC RAM: $100 shipped

NCIX.com/newegg
500 GB SATA Hard disk: $50 on sale
Dynatron A43/A43G 70mm 2 Ball CPU Cooler: ~$35 for two shipped
Syba SD-SATA-150R 2 Channel SATA Controller Card (Part#: SD-SATA150R): $15

The last part was the really necessary part. ESXi is very difficult to install on anything but hardware RAID controllers which can be very expensive. According to the ESXi Whitebox HCL it supported a very inexpensive chipset, the Silicon Image Sil3512. The SD-SATA150R card I bought had a Sil3512 chip. There are probably many others on the market but this one works for sure.

The Dyantron heatsinks are very quiet and cool the CPU well. The HDAMA motherboard is not the best but it was used in some now defunct blade servers which makes them very cheap. I actually bought two shipped for $40 on ebay. The opteron 2xx CPUs are good.  For 64bit emulation, you need something in the 2xxx range of opteron but look at about $400-500 for one of those systems.

ESXi 4.0 installs without any problems, no tinkering required on this system and it hasn’t crashed in two months.

I recently tested this config for ESXi 5.0 and found the CPUs lack the SAHF/LAHF support required by ESXi 5.0. I’m not sure if this motherboard can take the appropriate CPUs.

Posted in Uncategorized | Leave a comment

automated ogg to mp3 conversion

UltimateZer0 from www.linuxquestions.org put down the groundwork for this. I’ve modified it somewhat. Usage: CD into a directory and run this script. It’ll create the mp3s for you from the oggs.

sudo apt-get install vorbis-tools lame will get the required tools for this.

The ogg files don’t auto-delete on their own, this is so you can test them.

#!/bin/bash
#credit: UltimateZer0 from www.linuxquestions.org
#sudo apt-get install vorbis-tools lame

oggdec *ogg
for f in *.wav ; do lame –preset 192 -ms -h “$f” ; done
#lame –preset 192 -ms -h *wav
#rm *.ogg
rm *.wav
#the filenames are .wav.mp3, changes to just .mp3
rename -v ‘s/\.wav.mp3$/\.mp3/’ *

Posted in Tech, Ubuntu | Leave a comment

Customizing wordpress default theme

I’m currently running the default wordpress theme with some minor modifications. The current version can be downloaded here.

Posted in Tech | Leave a comment

SSH Tunneling in Putty

I’ve tried this before but have never been sucessful. With this guide I was able to tunnel VNC over SSH in under 1 minute:

http://martybugs.net/smoothwall/puttyvnc.cgi

Posted in Tech | Leave a comment

Manual NVIDIA graphics driver install

Download the latest driver from nvidia.com/drivers

Log out of Ubuntu, press CTRL+ALT+F1

Login, change to sudo -i and stop /etc/init.d/gdm

Run sh NVidia driver name

Install it saying yes to everything, especially 32bit drivers if it asks (this will prevent Gnome from running in 8.10 with Nvidia 180.22 drivers).

You could probably start the xserver back up but I haven’t experimented with this part enough.

I recently found an issue where a clean install of 64bit ubuntu 8.10 will lose it’s mouse focus in OpenGL fullscreen apps. The workaround is to disable desktop effects. The fix is to manually install the 180.22 driver.

Posted in Ubuntu | 1 Comment

Mouse not working in OpenGL games

I ran into this problem in Ubuntu 8.10 64bit. This doesn’t happen on the same harwdare with Ubuntu 8.10 32bit or 9.04 alpha 3 64bit. In games like Nexuiz and OpenArena I could see my mouse cursor but couldn’t move it. The keyboard worked fine.

A workaround was to disable the Visual Effects under system preferences. Easy enough and I know it’s resolved in 9.04 as I didn’t have this issue there.

Update: The visual effects, even in Ubuntu 10.04 are still buggy: With them enabled, RealVNC won’t update until you close your window and re-open it. For the tiny amount of visual enhancement they provide, the buggy behavior is excessive.

Posted in Ubuntu | Leave a comment