Monday, January 30, 2006

Setup Temperature Sensors

My machine keeps overheating and while I hunt for thermal paste my superkaramba wiget Cynapse keeps me upto date on the weather conditions inside the cabinet.
My Mobo: MicroStar International (MSI) KM266
My CPU: AMD Athlon XP 2200

Links to setup the lm_sensors:
Using Torsmo to Monitor Hardware
Getting SuperKaramba Sensors to Work in Fedora Core I

Output of my sensors-detect:

I will now generate the commands needed to load the I2C modules.
Sometimes, a chip is available both through the ISA bus and an I2C bus.
ISA bus access is faster, but you need to load an additional driver module
for it. If you have the choice, do you want to use the ISA bus or the
I2C/SMBus (ISA/smbus)?

To make the sensors modules behave correctly, add these lines to
/etc/modprobe.conf:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

WARNING! If you have some things built into your kernel, the list above
will contain too many modules. Skip the appropriate ones! You really should
try these commands right now to make sure everything is working properly.
Monitoring programs won't work until it's done.


Output of sensors -f:
sorceress:/etc/rc.d # sensors -f
w83697hf-isa-0290
Adapter: ISA adapter
VCore: +1.55 V (min = +1.71 V, max = +1.89 V)
+3.3V: +3.09 V (min = +3.14 V, max = +3.47 V)
+5V: +4.89 V (min = +4.76 V, max = +5.24 V) ALARM
+12V: +11.31 V (min = +10.82 V, max = +13.19 V) ALARM
-12V: -11.87 V (min = -13.18 V, max = -10.80 V) ALARM
-5V: -4.85 V (min = -5.25 V, max = -4.75 V) ALARM
V5SB: +5.30 V (min = +4.76 V, max = +5.24 V)
VBat: +2.96 V (min = +2.40 V, max = +3.60 V) ALARM
fan1: 0 RPM (min = 3813 RPM, div = 2)
fan2: 3901 RPM (min = 10384 RPM, div = 2)
temp1: +86°F (high = +104°F, hyst = +32°F) sensor = thermistor
temp2: +187.7°F (high = +248°F, hyst = +239°F) sensor = diode
alarms: Chassis intrusion detection ALARM
beep_enable:
Sound alarm disabled

eeprom-i2c-0-51
Adapter: SMBus Via Pro adapter at 5000
Memory type: DDR SDRAM DIMM
Memory size (MB): 256

eeprom-i2c-0-50
Adapter: SMBus Via Pro adapter at 5000
Memory type: DDR SDRAM DIMM
Memory size (MB): 256

"Hello World" for UNIX

Explination and Semi Solution for the:
Exception in thread "main" java.lang.NoClassDefFoundError:
"Hello World" for UNIX

Vnc2Swf: Record your vnc sessions

After my prof. insisted that we use Microsoft Producer to record a video of the screen while we were coding his assignment I had to scour the net for its Linux equivalent.

Vnc2Swf basically records your vnc session. It requires a vnc server et viewer to be installed. The video is saved as a swf file.

Quick Info:
If you wish to create a movie of your complete desktop you can run it as follows:
x11vnc -localhost -viewonly &

If you'd rather share a single window run:
x11vnc -localhost -viewonly -id pick &

This will allow you to click upon the window you wish to share with your mouse - after you have done so your selected window will be shared and made available.

Now that you have a running VNC server upon your local host you can create the movie. To do so execute:
vnc2swf -nowindow -o myoutput.swf localhost

-Taken from: Debian Administration :: Creating training movies with Vnc2Swf

Other Links:
x11vnc
vnc2swf

Sunday, January 29, 2006

fstab

snippet of my /etc/fstab.
Allows users access to my Fat32 windows partitions and allows 'users' to modify the partitions.

/dev/hdb1 /windows/audio vfat user,users,gid=users,umask=0002,utf8=true 0 0
/dev/hdb6 /windows/neuro vfat user,users,gid=users,umask=0002,utf8=true 0 0
/dev/hdb5 /windows/video vfat user,users,gid=users,umask=0002,utf8=true 0 0
/dev/hdb7 /windows/virtuo vfat user,users,gid=users,umask=0002,utf8=true 0 0

Alias & httpd.conf

Snippets to create an Alias in Apache (similar to the IIS Virtual Directory).

# Alias for MaN-aT-aRMz
Alias /MaN-aT-aRMz "/windows/Neuro/MaN-aT-aRMz"
<Directory "/windows/Neuro/MaN-aT-aRMz">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

So, basically:
Alias /alias_name "/directory_to_create_an_alias_for"

Xorg.conf

Since I seem to crash my X server quite often when I swap cards and monitors and am lost about the config's of my monitors and gfx cards... sinppets of the /etc/X11/xorg.conf file

Samsung SyncMaster 151s:

Section "Monitor"
DisplaySize 300 230
HorizSync 30-81
Identifier "Monitor[0]"
ModelName "SYNCMASTER 4S"
Option "DPMS"
VendorName "SAMSUNG"
VertRefresh 56-75
UseModes "Modes[0]"
EndSection


BeNQ V772:

Section "Monitor"
DisplaySize 310 230
HorizSync 28-72
Identifier "Monitor[0]"
ModelName "BENQ V772"
Option "DPMS"
VendorName "BNQ"
VertRefresh 43-120
UseModes "Modes[0]"
EndSection


Gfx Onboard MSI KM266-8235

Section "Device"
BoardName "ProSavage DDR-K"
BusID "1:0:0"
Driver "savage"
Identifier "Device[0]"
VendorName "S3"
EndSection


nVIDIA GeForce2 MX400 32MB:

Section "Device"
BoardName "GeForce2 MX/MX 400"
BusID "1:0:0"
Driver "nvidia"
Identifier "Device[0]"
Option "alwaysshared"
#Option "NvAGP" "2"
#Option "NvAGP" "0"
#Option "NvAGP" "3"
#Option "NvAGP" "1"
Option "usevnc" "yes"
Option "httpdir" "/usr/share/vnc/classes"
Option "httpport" "5800"
Option "rfbauth" "/root/.vnc/passwd"
Screen 0
VendorName "NVidia"
EndSection


ATI Radeon 7000 32MB TVO:

**Still figuring it out..