installing on SL6.1

hortimech
Posts: 7
Joined: Tue May 24, 2011 7:22 am

installing on SL6.1

Postby hortimech » Thu Oct 13, 2011 7:39 am

If anybody is interested, I have managed to install Amahi on Scientific Linux 6.1 :D :D
Attachments
Screenshot-Amahi Home Server › Settings - Mozilla Firefox.png
Screenshot showing Amahi running el6 kernel
Screenshot-Amahi Home Server › Settings - Mozilla Firefox.png (87.85 KiB) Viewed 3675 times

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: installing on SL6.1

Postby bigfoot65 » Thu Oct 13, 2011 5:19 pm

Hello,

Does everything seem to work? If so, you could add the guidance to the wiki so others could benefit.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

hortimech
Posts: 7
Joined: Tue May 24, 2011 7:22 am

Re: installing on SL6.1

Postby hortimech » Fri Oct 14, 2011 1:22 am

Everything does seem to work, apart from there are no apps available:

"There are no applications available at this time.

This could be due to a lack of network connectivity."

but I think that this is because I have turned off the dhcp server, the Hda server is running on a test machine.

I will go and update the wiki with how I did it.

hortimech
Posts: 7
Joined: Tue May 24, 2011 7:22 am

Re: installing on SL6.1

Postby hortimech » Fri Oct 14, 2011 3:22 am

I tried to add the instructions to the wiki, created an account, received the first email, confirmed it, received the second email, logged in with temporary password, created new password and then I was taken to the main wiki page.
Having never used a wiki before, I read the help and went to create a new page, found that I couldn't edit the page because I wasn't logged in or something, tried to login and now all I get is this:

Login error
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.

I have tried going back to the main page, opening the wiki in a new tab, pressing the send me a new password button etc, nothing works.
As far as I can see I did nothing wrong, so If you want this in the wiki, please put it there yourselves, I give up. :(

Scientific Linux

NOTE: This is not officially supported my Amahi. Be advised that Scientific Linux has not been tested with Fedora 14.
NOTES

Download a Scientific Linux 6.1 DVD iso from either:
http://ftp.scientificlinux.org/linux/sc ... ll-DVD.iso
Or
http://ftp.scientificlinux.org/linux/sc ... ll-DVD.iso
Depending on your machines processor (32bit or 64bit)
Note: I used the x86_64 version.

Install and update Scientific Linux 6.1 ( I did a minimal desktop installation )

Reboot to ensure everything is ok

You now need to install a few packages from SL's repository:

yum install ruby-libs php-mbstring ImageMagick gcc rpm-build

Now you need to download and install the following packages:

wget http://apt.sw.be/redhat/el6/en/x86_64/r ... x86_64.rpm
wget http://apt.sw.be/redhat/el6/en/x86_64/r ... x86_64.rpm
wget ftp://ftp.univie.ac.at/systems/linux/da ... x86_64.rpm
wget http://quattorsrv.lal.in2p3.fr/packages ... noarch.rpm
wget http://download.fedora.redhat.com/pub/e ... noarch.rpm
wget http://download.fedora.redhat.com/pub/e ... x86_64.rpm
wget http://passenger.stealthymonkeys.com/rh ... noarch.rpm
wget http://passenger.stealthymonkeys.com/rh ... x86_64.rpm
wget http://download.fedora.redhat.com/pub/e ... x86_64.rpm
wget http://passenger.stealthymonkeys.com/rh ... x86_64.rpm
wget http://passenger.stealthymonkeys.com/rh ... x86_64.rpm
wget http://passenger.stealthymonkeys.com/rh ... x86_64.rpm
wget http://quattorsrv.lal.in2p3.fr/packages ... x86_64.rpm
wget http://download.fedora.redhat.com/pub/e ... noarch.rpm
wget http://download.fedora.redhat.com/pub/e ... noarch.rpm
wget http://download.fedora.redhat.com/pub/e ... x86_64.rpm
wget http://download.fedora.redhat.com/pub/e ... x86_64.rpm

yum localinstall perl-Authen-PAM-0.16-1.2.el6.rf.x86_64.rpm
yum localinstall pkcs11-helper-1.08-1.el6.rf.x86_64.rpm
yum localinstall openvpn-2.2.0-3.el6.rf.x86_64.rpm
yum localinstall fpaste-0.3.5-1.el6.noarch.rpm
yum localinstall rubygem-daemon_controller-0.2.5-1.noarch.rpm
yum localinstall rubygem-rack-1.1.0-2.el6.noarch.rpm
yum localinstall rubygem-fastthread-1.0.7-2.el6.x86_64.rpm
yum localinstall rubygem-passenger-3.0.8-2.el6.x86_64.rpm
yum localinstall libev-4.03-3.el6.x86_64.rpm
yum localinstall rubygem-passenger-native-3.0.8-2.el6.x86_64.rpm
yum localinstall ruby-RMagick-2.13.1-6.el6.1.x86_64.rpm
yum localinstall rubygem-passenger-native-libs-3.0.8-2.el6_1.8.7.299.x86_64.rpm
yum localinstall mod_passenger-3.0.8-2.el6.x86_64.rpm
yum localinstall rubygem-rack-test-0.5.4-1.el6.noarch.rpm
yum localinstall rubygem-sinatra-1.0-2.el6.noarch.rpm
yum localinstall mod_fcgid-2.3.6-1.el6.x86_64.rpm
yum localinstall ruby-ldap-0.9.7-10.el6.x86_64.rpm

I then had to create a cadaver rpm package, as I could not find one via Google.
Login in as none root user

mkdir $HOME/rpm $HOME/rpm/SOURCES $HOME/rpm/SPECS $HOME/rpm/BUILD $HOME/rpm/SRPMS $HOME/rpm/RPMS $HOME/rpm/RPMS
cd rpm/SOURCES
wget http://www.webdav.org/cadaver/cadaver-0.23.3.tar.gz
cd ..
cd SPECS

you now need to create a spec file

nano cadaver.spec

Name: cadaver
Version: 0.23.3
Release: 3
Summary: Command-line WebDAV client
License: GPL
Group: Applications/Internet
Source: http://www.webdav.org/cadaver/%{name}-%{version}.tar.gz
URL: http://www.webdav.org/cadaver/
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
cadaver is a command-line WebDAV client, with support for file upload,
download, on-screen display, in-place editing, namespace operations
(move/copy), collection creation and deletion, property manipulation,
and resource locking.

%prep
%setup -q

%build
%configure --with-neon=%{_prefix} LDFLAGS=-pie CFLAGS="$RPM_OPT_FLAGS -fpie"
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/*
%doc NEWS FAQ THANKS TODO COPYING README ChangeLog
%{_mandir}/*/*
/usr/share/locale/en@quot/LC_MESSAGES/cadaver.mo
/usr/share/locale/es/LC_MESSAGES/cadaver.mo
/usr/share/locale/it/LC_MESSAGES/cadaver.mo

%changelog
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Wed May 12 2004 Joe Orton <jorton@redhat.com> 0.22.1-2
- build as PIE

* Tue Apr 20 2004 Joe Orton <jorton@redhat.com> 0.22.1-1
- update to 0.22.1

* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Fri Oct 3 2003 Joe Orton <jorton@redhat.com> 0.22.0-1
- update to 0.22.0; use system neon

* Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.21.0-2
- rebuild

* Mon Jul 21 2003 Joe Orton <jorton@redhat.com> 0.21.0-1
- update to 0.21.0

* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt

* Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.20.5-5
- rebuild

* Fri Nov 22 2002 Joe Orton <jorton@redhat.com> 0.20.5-4
- force use of bundled neon (#78260)

* Mon Nov 4 2002 Joe Orton <jorton@redhat.com> 0.20.5-3
- rebuild in new environment

* Fri Aug 30 2002 Joe Orton <jorton@redhat.com> 0.20.5-2
- update to 0.20.5; many bug fixes, minor security-related
fixes, much improved SSL support, a few new features.

* Thu Aug 22 2002 Joe Orton <jorton@redhat.com> 0.20.4-1
- add --with-force-ssl

* Wed May 1 2002 Joe Orton <joe@manyfish.co.uk>
- add man page

* Sat Jan 19 2002 Joe Orton <joe@manyfish.co.uk>
- updated description

* Mon Nov 19 2001 Joe Orton <joe@manyfish.co.uk>
- Merge changes from Nalin Dahyabhai <nalin@redhat.com>.

* Fri Feb 11 2000 Joe Orton <joe@orton.demon.co.uk>
- Text descriptions modified

* Thu Feb 10 2000 Lee Mallabone <lee0@callnetuk.com>
- Initial creation.

You now need to create the cadaver rpm with:
rpmbuild -bb cadaver.spec
Next, install the rpm.
cd ..
cd RPMS/x86_64 <-- change the x86_64 to i386 if you used the i386 iso install.
yum localinstall cadaver-0.23.3-3.x86_64.rpm <-- again change, if required to match your rpm file.

Now you need to create an Amahi repo file:
Note, you might have to recreate this file if overwitten by Amahi.

nano /etc/yum.repos.d/amahi.repo

[amahi]
name=Amahi repository for Fedora 14
baseurl=http://f14.amahi.org/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amahi
exclude=ruby,ruby-rdoc,ruby-irb,ruby-libs,ruby-ri,ruby-devel,rubygem-passenger-native-libs,mod_passenger,perl-Authen-PAM,rubygem-passenger,rubygem-passenger-native,dhcp,rubygem-rack-test,rubygem-sinatra

Edit /etc/issue and add 'Fedora' to the end of the top line.

nano /etc/issue

Scientific Linux release 6.1 (Carbon) Fedora <--- Added here!
Kernel \r on an \m

The Openvpn files are not in the required place, create a link
ln -s /usr/share/openvpn /usr/lib64/openvpn

Now follow the Amahi install instructions here: http://wiki.amahi.org/index.php/Self-install-existing
ignore the update dhclient command.

At the end you should have a working Amahi Hda server running on Scientific Linux 6.1, this has an E.O.L of Until at least
2017-11-11

I must point out that whilst this worked for me, it may not work for you, but I cannot see any reason why it would not.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: installing on SL6.1

Postby bigfoot65 » Fri Oct 14, 2011 6:28 am

Not sure why the wiki was not cooperating for you. I have created the page and copied your text into it.

http://wiki.amahi.org/index.php/Scientific_Linux

Could you please verify that I got it all entered correctly?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

hortimech
Posts: 7
Joined: Tue May 24, 2011 7:22 am

Re: installing on SL6.1

Postby hortimech » Fri Oct 14, 2011 1:53 pm

Thanks, everything seems right.

But I am having a couple of slight problems, firstly the named server did not work. Tracked this down to no rndc.key, cure:

Open a terminal as root
run the command `rndc-confgen -a`
then change the owner `chown named /etc/rndc.key`
remove the journal files `rm -rf /var/named/dynamic/*.jnl`
finally, restart the Bind server `service named restart`

The other problem is that there are no apps, all I get is:

There are no applications available at this time.
This could be due to a lack of network connectivity.

I have restarted the dhcp server and rebooted, I seem to have all the Amahi files loaded, but do not know where the apps are stored, I am working on this but a hint might help ;)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: installing on SL6.1

Postby bigfoot65 » Fri Oct 14, 2011 2:06 pm

Amahi apps are retrieved from amahi.org. So if there are none available, then that could mean there is no connectivity. Could also be an issue with the link between the HDA and amahi.org.

Also, you should be able to edit the wiki page now that its created. Update it as you see fit.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

hortimech
Posts: 7
Joined: Tue May 24, 2011 7:22 am

Re: installing on SL6.1

Postby hortimech » Wed Oct 19, 2011 5:06 am

I have now update the wiki, I still have the problem with the apps, but I now know what the problem is:

with /etc/redhat.release containing 'Scientific Linux release 6.1 (Carbon)' NO APPS :(

with /etc/redhat.release containing 'Fedora release 14 (Laughlin)' APPS :D :D

OK, what program is hard coded to look for the release? I may be able change it if I can find it.
Oh, and where is 'issue' set as well, that really needs sorting as well.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: installing on SL6.1

Postby bigfoot65 » Wed Oct 19, 2011 6:17 am

That's good to hear. Amahi is coded to work with a specific release. That is by design as things have to be changed in the platform depending on the OS version as well as the OS itself.

We currently have Ubuntu in development as well. Maybe we can add this distro eventually with your help.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

hortimech
Posts: 7
Joined: Tue May 24, 2011 7:22 am

Re: installing on SL6.1

Postby hortimech » Fri Oct 21, 2011 11:02 am

I have now reinstalled again and have found that I could use repositories for most of the required files. I have tested a couple of apps and everything seems ok but would like somebody else to try it out and report back.
I have also rewritten the wiki page to reflect the changes to the install.

Who is online

Users browsing this forum: No registered users and 16 guests