Martin's Tex-Blog

Posts on programming and generally technical topics

Archive for February 2009

Experiences with update from OpenSuse 11 to 11.1 (x86_64)

leave a comment »


Update went without any problems, following problems appeared later on:

1. After first reboot system hang at “Starting Service Jexec”. Recomended solution is to disable this service, to do it you can use your DVD disk and enter “Recovery System” from its start menu, then mount linux partition to be able to enter yast, in my case it was:

mount /dev/sda1 /mnt
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /dev /mnt/dev
chroot /mnt

to find your partition use:

fdisk -l

after that disable jexec in yast : System->System Services->System Services (Runlevel)

2. Later on I could not enter Kde (3.5), the problem was that ATI drivers needed to be reinstalled for new kernel – that was expected. To be able to enter Kde, enter sax2 in shell, this will reset your driver. Then when in Kde you can navigate to Ati website for new driver.

3. Installation of new drivers ( ATI ).

yast2 -i kernel-source make gcc libgcc
wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/64bit/ati-driver-installer-9-1-x86.x86_64.run
sh ati-driver-installer-9-1-x86.x86_64.run
shutdown -r now

that was for ATI Mobility Radeon HD 3400 Series for x86_64 architecture. Funny thing is that on ATI website I had to choose non-mobile category, at first I thought I am installing wrong driver for desktop PC.

After reboot it works great, I even have hi resolution view at system startup (after grub), this didn’t work with previous kernel/ATI driver. But I will have to use vga=0 in grub config as I explain in 4 😦

4. Suspend to disk works properly, resume from disk – does not. There seems to be problems with display driver at startup – right after grub. I was able to properly resume only after entering vga=0 in grub config.

Advertisements

Written by Marcin

February 17, 2009 at 6:57 am

Posted in Linux

JungleDisk on OpenSuse as a subversion server

leave a comment »


JungleDisk with Amazon s3 service is a cheap and very comfortable way to store your data online. It allows access on windows, mac and linux. All data can be encrypted locally before sending to server. Since I dont have very fast internet connection, I am still backing up my data locally, yet I found JD + Amazon s3 a great pair to setup subversion server.

Whole idea is to mount jungledisk bucket as a local folder. Then direct all subversion request to file://[path to mounted folder]. Simple as that, yet requires some typing. I have tested this on two machines – one running OpenSuse 10.2 (32bit) and other with OpenSuse 10.3 (64bit). So lets begin…

If your system lack FUSE file system then follow steps 1-3, you can check it by entering ‘modprobe fuse’ in shell, if module exists then nothing will be on output, otherwise you will see an error. Step 2 is also required if you want to allow all users to access s3 storage.

1. Install FUSE file system, it is available from yast2->Software->Software Management.
2. Create file /etc/fuse.conf with one single line:
user_allow_other
3. Make fuse module run on system boot, go to yast2->System->/etc/sysconfig Editor then navigate to System->Kernel->MODULES_LOADED_ON_BOOT and enter fuse in edit area. You can also follow jungledisk suggestion: “Edit /etc/sysconfig/kernel and add “fuse” to the MODULES_LOADED_ON_BOOT”

If fuse is configured then its time for jungledisk:

1. Download and unpack jungledisk tarball for your system and copy both junglediskmonitor and jungledisk files to /usr/bin folder
2. Run junglediskmonitor (requires GUI) and configure your s3 and jungledisk access. If successfull then in ~/.jungledisk folder you will see jungledisk-settings.xml file.
3. Open ~/.bash_profile (create if missing) and enter following line:

jungledisk ~/jungledisk -o config=/home/user/.jungledisk/jungledisk-settings.xml -o allow_other

where ~/jungledisk is your mount point (create folder if missing), user is your user name.

Now you can either reboot your machine, to check if all configuration is working. After boot you should be able to see after entering ‘df -h’ following line:

jungledisk 382G 0 382G 0% /home/user/jungledisk

INSTALL file that comes from jungledisk suggests also granting permisons on two executables in following way:
chmod o+rw /dev/fuse
chmod o+rw /usr/bin/fusermount

I actually did not have to do that.

You might encounter following errors from SVN during import, commit:

svn: Invalid changes line in rev-file

The solution is to add additional option : -s at the and off jungledisk command in .bash_profile. This option removes some optimizations that appear to cause that error.

Written by Marcin

February 15, 2009 at 7:56 am

Posted in Linux

Downgrade subversion from 1.5 to 1.4 on OpenSuse 11

leave a comment »


Version 1.5 of subversion will modify your repository structure rendering it not possible to use with version 1.4. Another reason for downgrade to 1.4 version is if you store repositories on jungledisk s3 buckets which does not work good with 1.5 version. So if you need 1.4 version to access your repositories then follow this instructions:

1. Uninstall current subversion package using yast2. Actually I’am not 100% sure if that is needed – whether zypper later on will uninstall it on its own.

2. Add package repositories from older version of OpenSuse:

# zypper addrepo http://download.opensuse.org/distribution/10.3/repo/oss/ repo10_3

3. Install version 1.4 of subversion:

zypper install -C subversion=1.4.4

This command will list all dependencies that will have to be installed or downgraded, you will be asked for confirmation before proceeding.

Written by Marcin

February 15, 2009 at 7:41 am

Posted in Linux