Category: Linux


I recently installed ubuntu 7.10 (feisty fawn) on my Compaq R3000. Since this laptop has an AMD Athlon 64 (3500+), I decided to use the AMD64 version of ubuntu. I was able to get it installed and running well without much fussing. There were 3 main things I wanted to accomplish that did not immediately work:

Install Flash Player 9
Install NVidia Drivers and use GLX Desktop Effects
Configure and use the internal wireless card

I was able to get Flash Player 9 working with nspluginwrapper – this package allows you to install 32-bit Mozilla plugins on a 64-bit version of FireFox.

I got the wireless card working with the bcm43xx package.

I might write more detailed instructions on getting the last two things working later, but I just got the NVidia 64-bit drivers working today so I will go into more detail about them.

Installing the 64-bit NVidia drivers
I read about this great NVidia installation script called Envy in Linux Journal today.
Go to http://albertomilone.com/nvidia_scripts1.html and download the deb file (currently envy_0.9.7-0ubuntu8_all.deb).
Run the file to install Envy.

After Envy is installed, run it from your GUI by going to a terminal and typing “sudo envy -g” (-g == graphical)

The installer will download 60+ packages and install them for you, including the NVidia driver for your computer/configuration.

When it is done you will need to restart your computer.

Enabling Desktop Effects
When it comes back up you should be able to enable the desktop effects by going to “System”=>”Preferences”=>”Desktop Effects” and enabling the options you want.

If you have the same bad luck that I did, you will notice that the desktop effects will have made your title bar and other window decorations disappear. Although I’m not sure what causes this problem, here’s how I fixed it:

sudo nano /etc/X11/xorg.conf

Find the “Device” section and add:

Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"

Find the “Screen” section and make sure the default depth is 24:

DefaultDepth    24

Now restart your computer and you should be good to go!

My /etc/X11/xorg.conf for reference

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# 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 "ServerLayout"
Identifier     "Default Layout"
Screen         "Default Screen" 0 0
InputDevice    "Generic Keyboard"
InputDevice    "Configured Mouse"
InputDevice    "stylus" "SendCoreEvents"
InputDevice    "cursor" "SendCoreEvents"
InputDevice    "eraser" "SendCoreEvents"
InputDevice    "Synaptics Touchpad"
EndSection

Section "Files"

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

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

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

Section "InputDevice"
Identifier     "Configured Mouse"
Driver         "mouse"
Option         "CorePointer"
Option         "Device" "/dev/input/mice"
Option         "Protocol" "ExplorerPS/2"
Option         "ZAxisMapping" "4 5"
Option         "Emulate3Buttons" "true"
Option         "Buttons" "7"
Option         "ButtonMapping" "1 2 3 6 7"
EndSection

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

Section "InputDevice"
Identifier     "stylus"
Driver         "wacom"
Option         "Device" "/dev/input/wacom"
Option         "Type" "stylus"
Option         "ForceDevice" "ISDV4"        # Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier     "eraser"
Driver         "wacom"
Option         "Device" "/dev/input/wacom"
Option         "Type" "eraser"
Option         "ForceDevice" "ISDV4"        # Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier     "cursor"
Driver         "wacom"
Option         "Device" "/dev/input/wacom"
Option         "Type" "cursor"
Option         "ForceDevice" "ISDV4"        # Tablet PC ONLY
EndSection

Section "Monitor"
Identifier     "Generic Monitor"
HorizSync       28.0 - 64.0
VertRefresh     43.0 - 60.0
Option         "DPMS"
EndSection

Section "Device"
Identifier     "nVidia Corporation NV17 [GeForce4 420 Go 32M]"
Driver         "nvidia"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
EndSection

Section "Screen"
Identifier     "Default Screen"
Device         "nVidia Corporation NV17 [GeForce4 420 Go 32M]"
Monitor        "Generic Monitor"
DefaultDepth    24
SubSection     "Display"
Depth       1
Modes      "1280x800"
EndSubSection
SubSection     "Display"
Depth       4
Modes      "1280x800"
EndSubSection
SubSection     "Display"
Depth       8
Modes      "1280x800"
EndSubSection
SubSection     "Display"
Depth       15
Modes      "1280x800"
EndSubSection
SubSection     "Display"
Depth       16
Modes      "1280x800"
EndSubSection
SubSection     "Display"
Depth       24
Modes      "1280x800"
EndSubSection
EndSection

Section "Extensions"
Option         "Composite" "Enable"
EndSection

After many hours trying to figure this out, I finally found a way to enable spamassassin on a Plesk 8 box without buying the PowerPack or the SpamAssassin plugin. For the record, SpamAssassin comes installed with Plesk 8 in every configuration, it’s just not “enabled” for the mail server, Qmail.

My setup: Plesk 8.0 on Fedora Core 4.

This is based on the HOW-TO: setup a PLESK Dedicated Server tutorial.

Special thanks to the all powerful Atomic Rocket Turtle!

First, login to your server with SSH and become root.

Since Plesk moves everything around on us and breaks easily when you mess around, you need to configure yum so you can grab some Plesk pre-configured RPMS:

yum install lynx
lynx -source http://3es.atomicrocketturtle.com/installers/atomic.sh | sh

# now build your qmail-scanner-queue.pl file:
/usr/bin/qmail-scanner-reconfigure

Until I figure out how to make qmail-scanner play nice with drweb antivirus, you will need to uninstall it – who uses “DrWeb” anyway? Also, you’ll want to install qmail-scanner and clamd. qmail-scanner allows you to break into the qmail process and scan messages for spam, viruses, etc before delivery. clamd is the antivirus scanning daemon for ClamAV.

yum remove drweb-qmail drweb
yum install qmail-scanner clamd

Hit ‘y’ for yes – you want to download and install all the dependencies.

Now you should be all setup! Whew! That was easy.

Now you should send yourself the EICAR test virus to see if ClamAV is working.

Check /usr/local/psa/var/log/maillog to see if spamd is checking your mail (spamassassin):

Jan 23 17:42:42 216-55-149-29 spamd[2974]: connection from localhost.localdomain [127.0.0.1] at port 36138
Jan 23 17:42:42 216-55-149-29 spamd[2974]: info: setuid to qscand succeeded
Jan 23 17:42:42 216-55-149-29 spamd[2974]: Creating default_prefs [/var/spool/qscan/.spamassassin/user_prefs]
Jan 23 17:42:42 216-55-149-29 spamd[2974]: Created user preferences file: /var/spool/qscan/.spamassassin/user_prefs
Jan 23 17:42:42 216-55-149-29 spamd[2974]: processing message <00m94g5gf2f73f9b@users.sourceforge.net> for qscand:10003.
Jan 23 17:42:43 216-55-149-29 spamd[2974]: clean message (-0.0/7.0) for qscand:10003 in 1.4 seconds, 394 bytes.
Jan 23 17:42:43 216-55-149-29 spamd[2974]: result: .  0 - NO_RECEIVED,NO_RELAYS scantime=1.4,size=394,mid=<00m94g5gf2f73f9b@users.sourceforge.net>,autolearn=ham

And you can check /var/log/clamav/clamd.log to make sure ClamAV AntiVirus is working:

Tue Jan 23 20:42:51 2007 -> Portable Executable support enabled.
Tue Jan 23 20:42:51 2007 -> Detection of broken executables enabled.
Tue Jan 23 20:42:51 2007 -> Mail files support enabled.
Tue Jan 23 20:42:51 2007 -> Mail: Recursion level limit set to 64.
Tue Jan 23 20:42:51 2007 -> OLE2 support enabled.
Tue Jan 23 20:42:51 2007 -> HTML support enabled.
Tue Jan 23 20:42:51 2007 -> Self checking every 1800 seconds.
Tue Jan 23 20:43:30 2007 -> /tmp/mkt_qs.5057-1169603010/eicar.com: Eicar-Test-Signature FOUND
<strong>Tue Jan 23 20:46:35 2007 -> /var/spool/qscan/tmp/216-55-149-29.dedicated.abac.net11696031957636239/eicar.com: Eicar-Test-Signature FOUND</strong>

You can tell ClamAV to update it’s virus database twice a day like this:

freshclam -d -c 2