Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old November 1st, 2006   #11
JDahl
5 Cups of Ubuntu
 
Join Date: Jan 2005
Beans: 31
Re: HOWTO : install and use the open-afs client [dapper]

Openafs 1.4.2 (included in Debian Unstable) works fine with never kernels.
To build a package from Debian's source-package do the following:

1) Make a directory "openafs" and download the packages to it from:
$ mkdir openafs; cd openafs
$ wget http://ftp.debian.org/debian/pool/ma....2.orig.tar.gz
$ wget http://ftp.debian.org/debian/pool/ma....4.2-2.diff.gz

2) Unpack and patch
$ tar xzvf openafs_1.4.2.orig.tar.gz
$ zcat openafs_1.4.2-2.diff.gz | patch -p0

3) Install necessary dependencies
$ sudo apt-get build-dep openafs-client
$ sudo apt-get install build-essential fakeroot

4) Build the Debian packages (takes a long time)
$ cd openafs-1.4.2
$ chmod u+x debian/rules
$ dpkg-buildpackage -rfakeroot
Compilation may fail if you don't have all dependencies installed. Just install the missing packages and rebuild.

5) Install the packages
$ sudo dpkg -i ../openafs-modules-source_1.4.2-2_all.deb openafs-client_1.4.2-2_i386.deb

6) Build the kernel module
$ sudo apt-get install module-assistant
$ sudo module-assistant prepare openafs-modules
$ sudo module-assistant auto-build openafs-modules
$ sudo dpkg -i openafs-modules-2.6.17-10-386_1.4.2-2+2.6.17-10.33_i386.deb

7) Install the packages (and say [Y]es to overwriting /etc config scripts; there's a bug in the old ones)
$ sudo dpkg -i /usr/src/openafs-modules-2.6.17-10-386_1.4.2-2+2.6.17-10.33_i386.deb


That did if it for me, at least.

Last edited by JDahl; November 1st, 2006 at 07:50 PM..
JDahl is offline   Reply With Quote
Old November 3rd, 2006   #12
Sethiano
5 Cups of Ubuntu
 
Join Date: Sep 2005
Location: Sweden
Beans: 34
Ubuntu 7.04 Feisty Fawn
Re: HOWTO : install and use the open-afs client [dapper]

Code:
dpkg-deb: parse error, in file `debian/openafs-dbg/DEBIAN/control' near line 6 package `openafs-dbg':
 `Depends' field, reference to `openafs-fileserver': error in version: version string is empty
This is what i get when I try run the
Code:
dpkg-buildpackage -rfakeroot
command.

Any suggestions?

Thanks!
__________________
"Real programmers does not document. If it was hard to write, it should be hard to read."

Last edited by Sethiano; November 3rd, 2006 at 08:19 AM..
Sethiano is offline   Reply With Quote
Old November 3rd, 2006   #13
JDahl
5 Cups of Ubuntu
 
Join Date: Jan 2005
Beans: 31
Re: HOWTO : install and use the open-afs client [dapper]

I don't know where that error comes from.

This is line 6 from my version of
debian/openafs-dbg/DEBIAN/control

Depends: openafs-fileserver (= 1.4.2-2)

I don't see any reason why yours should be empty. Maybe you can just
manually insert the fileserver version number?

It probably wouldn't take the Ubuntu package maintainer long to update the
openafs package, though, which would be the preferred solution to this problem.

Last edited by JDahl; November 6th, 2006 at 01:58 PM..
JDahl is offline   Reply With Quote
Old November 6th, 2006   #14
Sethiano
5 Cups of Ubuntu
 
Join Date: Sep 2005
Location: Sweden
Beans: 34
Ubuntu 7.04 Feisty Fawn
Re: HOWTO : install and use the open-afs client [dapper]

Quote:
Originally Posted by JDahl View Post
Openafs 1.4.2 (included in Debian Unstable) works fine with never kernels.
To build a package from Debian's source-package do the following:

1) Make a directory "openafs" and download the packages to it from:
$ mkdir openafs; cd openafs
$ wget http://ftp.debian.org/debian/pool/ma....2.orig.tar.gz
$ wget http://ftp.debian.org/debian/pool/ma....4.2-2.diff.gz

2) Unpack and patch
$ tar xzvf openafs_1.4.2.orig.tar.gz
$ zcat openafs_1.4.2-2.diff.gz | patch -p0

3) Install necessary dependencies
$ sudo apt-get build-dep openafs-client
$ sudo apt-get install build-essential fakeroot

4) Build the Debian packages (takes a long time)
$ cd openafs-1.4.2
$ chmod u+x debian/rules
$ dpkg-buildpackage -rfakeroot
Compilation may fail if you don't have all dependencies installed. Just install the missing packages and rebuild.

5) Install the packages
$ sudo dpkg -i ../openafs-modules-source_1.4.2-2_all.deb openafs-client_1.4.2-2_i386.deb

6) Build the kernel module
$ sudo apt-get install module-assistant
$ sudo module-assistant prepare openafs-modules
$ sudo module-assistant auto-build openafs-modules
$ sudo dpkg -i openafs-modules-2.6.17-10-386_1.4.2-2+2.6.17-10.33_i386.deb

7) Install the packages (and say [Y]es to overwriting /etc config scripts; there's a bug in the old ones)
$ sudo dpkg -i /usr/src/openafs-modules-2.6.17-10-386_1.4.2-2+2.6.17-10.33_i386.deb


That did if it for me, at least.
So, I did a upgrade to Edgy Eft with kernel 2.6.17-10-386 and your guide workt perfectly!

Thanks for all the help!

P.S Now that we know this, JDahl and other users should be aware that there is possible to run AFS perfectly on Edgy Eft.
__________________
"Real programmers does not document. If it was hard to write, it should be hard to read."
Sethiano is offline   Reply With Quote
Old November 14th, 2006   #15
jamesotron
First Cup of Ubuntu
 
Join Date: Nov 2006
Beans: 4
Re: HOWTO : install and use the open-afs client [dapper]

I managed to get openafs-modules to build on my Edgy ppc64 (G5 iMac) machine and all seems to be working except for a stack trace in aklog:

Code:
[16:31][jnt@bingo]~$ kinit jtys003
Password for jtys003@EC.AUCKLAND.AC.NZ: 
[16:32][jnt@bingo]~$ aklog
stackcheck = 0: stack = 0 
topstack = 0xf7fcb03c: stackptr = 0xf7f9b008: stacksize = 0x30000
Wed Nov 15 16:32:04 2006 LWP: stack overflow in process IO MANAGER!
Aborted (core dumped)
If anyone has any suggestions I'd be glad to hear them.
jamesotron is offline   Reply With Quote
Old December 8th, 2006   #16
krugger
Spilled the Beans
 
Join Date: Sep 2006
My beans are hidden!
Re: HOWTO : install and use the open-afs client [dapper]

The current openAFS version in the universe repositories is still 1.4.1. Why is that? Debian packages for 1.4.2 which solve the rlim problem that is happening with the 2.6.17/18 kernel has been in debian testing for about a month now. Who do I have to mail to get openAFS to 1.4.2 in universe?

And version 1.5.12 of AFS lists only Windows and Mac support.

Besides suggesting that you report the stack overflow to the AFS people, I can't help much more.

EDIT: my noobiness made me forget to check if it had been released in feisty, lets see if I a backport is possible

Last edited by krugger; December 8th, 2006 at 07:23 AM..
krugger is offline   Reply With Quote
Old December 15th, 2006   #17
bodhi.zazen
Ubuntu Guru
 
bodhi.zazen's Avatar
 
Join Date: Apr 2006
Location: Montana
My beans are hidden!
Xubuntu Development Release
Send a message via Yahoo to bodhi.zazen
Re: HOWTO : install and use the open-afs client [dapper]

Nice How-to

This thread has been added to the UDSF wiki.

Open-afs_client
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999

bodhi.zazen is offline   Reply With Quote
Old December 30th, 2006   #18
JMoriarty
First Cup of Ubuntu
 
Join Date: Dec 2006
My beans are hidden!
Re: HOWTO : install and use the open-afs client [dapper]

Backport openafs-1.4.2 from Feisty:

1. Edit /etc/apt/sources.list to add these lines:
deb http://fr.archive.ubuntu.com/ubuntu/ feisty universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ feisty universe multiverse

This will add the feisty repositories.
2. Edit /etc/apt/preferences file to add:
Package: *
Pin: release a=feisty
Pin-Priority: 200

Package: openafs-modules-source
Pin: release a=feisty
Pin-Priority: 999

This will deactivate all feisty packages except the openafs-modules-sources package.

After that, proceed as usual with openafs installation.
JMoriarty is offline   Reply With Quote
Old August 29th, 2007   #19
Luggy
Gee! These Aren't Roasted!
 
Luggy's Avatar
 
Join Date: Jul 2005
Location: Manitoba
Beans: 172
Ubuntu 9.10 Karmic Koala
Re: HOWTO : install and use the open-afs client [dapper]

I've been following the original instructions and I'm encountering a strange problem. When I try and start afs I get the following error
Code:
paul@paul-desktop:~$ sudo /etc/init.d/openafs-client start
Password:
Starting AFS services: afsd.
afsd: All AFS daemons started.
afsd: Can't mount AFS on /afs(22)
Any ideas?
Luggy is offline   Reply With Quote
Old September 29th, 2007   #20
lamnk
5 Cups of Ubuntu
 
lamnk's Avatar
 
Join Date: Aug 2007
Beans: 27
Re: HOWTO : install and use the open-afs client [dapper]

Quote:
Originally Posted by Luggy View Post
I've been following the original instructions and I'm encountering a strange problem. When I try and start afs I get the following error
Code:
afsd: Can't mount AFS on /afs(22)
I think it's very obvious from the output that afsd has no write access on /afs ...
__________________
Lamnk
lamnk is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:56 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry