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

Friday 30 November 2007

Upgrade Ubuntu Feisty to Gutsy, problem SWAP

My swap file was disabled after updrade, solution:

get UUID of the swap partition ex:

sudo vol_id /dev/sda2

output:

D_FS_USAGE=other
ID_FS_TYPE=swap
ID_FS_VERSION=2
ID_FS_UUID=15d63259-800b-4c5d-b459-480013793ec5
ID_FS_UUID_ENC=15d63259-800b-4c5d-b459-480013793ec5
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=


update the line :
UUID=15d63259-800b-4c5d-b459-480013793ec5 none swap sw 0 0
in /etc/fstab
with the correct value for UUID.

Thursday 22 November 2007

speed up Eclipse under linux

1. use official java VM
2. add/modify params in eclipse.ini:
-Xms1024m
-Xmx1024m
-XX:PermSize=256m
-XX:MaxPermSize=256m

NOTE: settings for 2048MB of RAM.
Adapt this to your amount of ram: http://www.eclipsezone.com/eclipse/forums/t61618.html

Or use vim... and ant!

Wednesday 7 November 2007

Web 2.0 ... The Machine is Us/ing Us

Advance Web Schemas

Advance Web Java Server Faces Schemas (picture taken 31.08.07):



Sunday 21 October 2007

Ubuntu - Programme par défaut par type de fichier

Les fichiers de config qui définisse quel programme est utilisé pour ouvrir un certain type de fichier sont (càd le programme par défaut):

~/.local/share/applications/defaults.list (pour l'utilisateur courant)

/usr/share/applications/defaults.list (pour tout le système).

Thursday 13 September 2007

My Firefox Addons

DictionarySearch
Foxmarks
LiveClick
StumbleUpon
Tab Mix Plus

Monday 10 September 2007

Horaire Automne/Hiver 2007/08


Lundi
16:10 - 17:45 302 SMA1 2351c English Cambridge Advanced Certificate Biel

17:55 - 19:30 N.322 N.321
MDM3 7503a Advanced C++ Biel


Mardi

14:15 - 17:45 N.333 SOE1 7212a Development of Moblie Applications (MC) Biel


N.421 RTG1 SOE1
FLU1


Biel

Mercredi

08:00 - 09:35 308 PFD1 7512a Advanced XML Biel

09:50 - 11:25 406 BIE1 7408a Advanced Web Technology Biel

11:40 - 13:15 406 BIE1 7408a Advanced Web Technology Biel

Jeudi

09:50 - 13:15 N.521 GZR1 7311a I-Seminar Biel


408 DUE1 RLM1


Biel


503 CLJ1 FRC1


Biel


509 BEO1

Biel

16:10 - 19:30 N.421 FRC1 DOJ1
7212a Development of Moblie Applications (MC) Biel

Vendredi

08:00 - 11:25 N.111 MYF1 7213a Availability, Reliability and Security (MC) Biel


N.319 REP1 MDM1


Biel

Tuesday 21 August 2007

Internet TV

Joost
WiTV
Veoh
Babelgum
miro
Democracy

Monday 2 July 2007

Insert line numbers in Vim Search/replace

Just enter the following command in Vim, to replace all XXX match with the number of the line where the match is:

:%s/XXX/\=line(".")

Ex:

this is a example : XXX
and XXX


... is then

this is a example : 1
and 2

Sunday 3 June 2007

Ubuntu sticker: Windows Vista Dismissed

Inspired by a "Vista-Capable" User Avatar which said "Windows Vista incapable/ Stick with Windows XP", a Linux supporter made this cool sticker. Would be nice to see it available in real.



read more | digg story

Saturday 26 May 2007

Dyndns Netopia Configuration

Telnet Connection

telnet
is something like 192.168.1.1

Commands:
>configure
>set dynamic-dns option [ off | dyndns.org ]
>set dynamic-dns ddns-host-name myhostname.dyndns.org
>set dynamic-dns ddns-user-name myusername
>set dynamic-dns ddns-user-password myuserpassword

Taken from www.netopia.com/support/hardware/SoftwareUserGuideV761-Clsc.pdf

Monday 21 May 2007

Unlock the Gnome keyring upon login

If you are a Ubuntu and a network manager user, you have probably seen (and maybe see it each time you login) the unlock keyring dialog, and you are probably sick of it too. Here is a solution to that problem that works!

Avoid Network-manager ask for password. read more
Faire que le network-manager ne demande pas de mot de passe.
(en français ici si vous en avez marre-de-taper-votre-mot-de-passe-dans-nm-applet


Monday 23 April 2007

Envy - Easy Way To Install Nvidia Drivers in Ubuntu

Envy an easy script to install Nvidia drivers by Alberto Milone, read more.


wget http://albertomilone.com/ubuntu/nvidia/scripts/
envy_0.8.1-0ubuntu6_all.deb

sudo dpkg -i envy_0.8.1-0ubuntu6_all.deb

Friday 20 April 2007

See What Version of a Package Is Installed on Ubuntu

dpkg -s

Taken from: HowToGeek

Ubuntu computer" and "trash" icons on the Desktop

Open gconf-editor (sudo apt-get install gconf-editor) then :

apps -> nautilus -> desktop

Thursday 19 April 2007

Ubuntu 7.04 (Feisty Fawn) has officially been released!

The beta and the wait is over. Ubuntu 7.04 has been released and is available for immediate download.



read more | digg story

Tuesday 17 April 2007

Some links...

http://badvista.fsf.org/
http://www.defectivebydesign.org/node

Sunday 15 April 2007

Backup Script for Ubuntu/Debian

#
# Backup script
#
# Use this script at your own risk !!!
#
# author: zeekox
# license: free
#

if [ `whoami` != 'root' ]
then
echo ''
echo 'You must be root to execute this script.'
exit
fi

cd ~/recovery/

dir=`date +%d%b%y`

mkdir $dir

cd $dir

echo 'Make sure debconf-utils is installed...'
apt-get install debconf-utils
echo 'OK'

echo 'Optain package selections...'
dpkg --get-selections > pkgSel
echo 'OK'

echo 'Optain debconf selections...'
debconf-get-selections > debconfSel
echo 'OK'

echo 'Copying source listes...'
cp -r /etc/apt/sources.list* .
echo 'OK'

echo ''
echo 'Backup completed in '`pwd`

Tuesday 3 April 2007

Ubuntu + java 6 + eclipse 3.2.1

Use the command line tools (java/javac):

sudo update-alternatives --config java

and edit the /etc/jvm file.


Set Java 6 compliance
:

Window/Preferences/...

Java -> Compiler -> Compiler Compliance Level set to 6.0

Use the official JRE from SUN in Eclipse:

Window/Preferences/...

Java -> Installed JREs -> Add...

Enter path to sun's JRE, something like: /usr/lib/jvm/java-6-sun-1.6.0.00

Select it in the list of Installed JREs.

Friday 30 March 2007

Firefox Bookmark Synchronization

Just use foxmarks

Monday 26 March 2007

Mail Notification

http://www.linuxlinks.com/Software/Internet/Mail/Notification/index.shtml

Sunday 18 March 2007

Ubuntu Customization

GDM (fenêtre de connexion): Ubuntu G2

Icons: Human Azul

Metacity (bordure de fenêtre): Blendish

GTK (boutons, combo, ...): Ubuntulooks-cool

Tuesday 13 March 2007

Artistes hip hop (and others) to know

royce da 59 (song hip hop boom)
dj premiers
R A the rugged man
Afu-ra
Old Dirty Bastard
MOP-ante up, cold as ice
autechre flutter ant te
dead prez
x-ecutioners

Thursday 8 March 2007

Linux Directory Structure Vim Commands

http://www.tuxfiles.org/

Monday 5 March 2007

Linux for windows developers

http://rick-ross.com/papers/borcon2003/1204.html#AddResources

Initramfs

http://doc.ubuntu-fr.org/uuid_et_label
http://kernel-handbook.alioth.debian.org/ch-initramfs.html

http://www.debianhelp.org/node/4368

Update Dapper to Edgy

Après installation nécessaire:


sudo dpkg --configure -a  


Attention pas égale à sudo dpkg-reconfigure -a