Saturday 22 December 2007

Ubuntu Subversion server

Followed HowToGeek tutorial.

Plus sudo chown -R www-data:www-data repos/ (thanks comment in HowToGeek).

My /etc/apache2/mods-available/dav_svn.conf :

<location>
DAV svn

SVNParentPath /var/www/repos

AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
...



Thursday 13 December 2007

Ubuntu 7.10 64 bit on a Toshiba Satellite u300-12g

Correct 1280x800 resolution:

Modify your /etc/X11/xorg.conf like this:

Section "Device"
Identifier "Generic Video Card"
Driver "intel"
BusID "PCI:0:2:0"
Option "monitor-TV" "TVOutput"
...

Section "Monitor"
Identifier "TVOutput"
Option "Disable" "true"
EndSection

usplash 1280x800 (avoid usplash trying other resolutions):
http://doc.ubuntu-fr.org/problemes_usplash



SOUND:

Install latest alsa-driver, alsa-lib, alsa-utils from sources as decribed here:
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/94373/comments/33

Perform the following to place the compiled module at the right place (if needed):
Code:
rm /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko
ln -s /lib/modules/2.6.22-14-generic/kernel/sound/pci/hda/snd-hda-intel.ko /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko

source: http://ubuntuforums.org/showpost.php?p=3475485&postcount=235



Desktop Effects

Comment the blacklist entry of the card in /usr/bin/compiz:
#T="$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12" # intel 965

Advanced Desktop Effects Settings utility:
sudo aptitude install compizconfig-settings-manager



Webcam Chicony:

lsusb:
Bus 007 Device 002: ID 04f2:b008 Chicony Electronics Co., Ltd
...

Get uvcvideo driver (better via package manager, or build it):
http://packages.debian.org/sid/amd64/linux-uvc-tools/download
or for 32 bit (http://packages.debian.org/sid/i386/linux-uvc-tools/download)

Add uvcvideo at the end of your /etc/modules file.

Reboot (or perform sudo modprobe uvcvideo to load the module), and test it with:





Flash for 64 bit:

Use this package (works, at your own risk, not official):
flashplugin-nonfree_9.0.115.0ubuntu2_amd64.deb
Or build it:
https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/9.0.115.0ubuntu2
Bug report:
https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/173890




Bluetooth

Need the omnibook kernel module build or get here as described here:

http://www.itopen.it/2007/11/22/ubuntu-linux-toshiba-satellite-u300/



Tweaking

Avoid at startup (only for 64bit):
Loading, pease wait...
kinit: name_to_dev_t...
kinit: trying to resume from ...

kinit: No resume image, doing normal boot...
  1. Optain the UUID of your swap partition
    cat /etc/fstab | grep swap
  2. place the UUID in /etc/initramfs-tools/conf.d/resume after resume=
  3. sudo update-initramfs -u or sudo update-initramfs -u -k `uname -r`
Source

Saturday 8 December 2007

JBoss tricks

Apply to JBoss 4.2.0.

Enabling remote access :
./jboss/bin/run.sh -b 0.0.0.0
source

Avoid java.lang.OutOfMemoryError: PermGen space ERROR (due to hibernate??), add the following jvm options in /bin/run.conf " ( -> JAVA_OPTS) :

-XX:PermSize=64m -XX:MaxPermSize=128m

source