Changes

From Amahi Wiki
Jump to: navigation, search
2,943 bytes removed ,  17:27, 9 January 2021
no edit summary
{{MessageBox|
backgroundcolor = red#ffaaaa|
image =Warning.png|
heading =WARNING|
message = This is recommended only for developers, advanced users, proceed and testers. Do NOT use with caution.data you would not mind losing!}}'''NOTE:''' This is not officially supported my Amahi and still in early development.
==Install==
Download a Scientific Linux 6.1 x86_64 DVD iso from either:http://ftp.scientificlinux.org/linux/sc scientific/6... ll1/x86_64/iso/SL-61-x86_64-2011-07-27-Install-DVD.isoOra Scientific Linux 6.1 i386 DVD iso from:http://ftp.scientificlinux.org/linux/sc scientific/6... ll1/i386/iso/SL-61-i386-2011-07-27-Install-DVD.iso Depending on your machines processor (32bit or 64bit) Note: I used These instructions are based on the x86_64 version.
Install and update Scientific Linux 6.1 ( I did a minimal desktop installation ) Enter the hostname you gave amahi i.e. hda.home.com. Remember the root password.
Reboot when requested. You will be asked to ensure everything is okcreate a user, then when asked 'Synchronize date and time over the internet', click in the box You may get a Kdump error, you can ignore this, click OK then Finish
You now need Login as the user you just created. Right click on the Network icon on the top bar (this is at the right). Then select 'Edit Connections'. Select 'wired', 'System eth0', then the 'IPv4' tab. Change the method to install manual. Click on Add and enter the ipaddress you gave Amahi, press the tab key. Click under 'Gateway' and enter your routes ipaddress. Add your ISP's nameservers and the search domain, this is usually home.com unless you gave Amahi a few packages from SLdifferent one. Click in the box (at the top) next to 'Connect automatically' Click on the 'Apply's repository:button and enter root password when asked.
{{Code|yum install ruby Now open a terminal and change to the root user: su -libs php-mbstring ImageMagick gcc rpm-build}} Enter root password Now we need to turn off Selinux nano /etc/sysconfig/selinux Change: SELINUX=enforcing To: SELINUX=disabled
Now you need Reboot to download and install the following packages:ensure everything is ok then update Again, as root in a terminal yum update
{{code|wget http://apt.sw.be/redhat/el6/en/x86_64/r ... x86_64.rpmwget http://apt.sw.be/redhat/el6/en/x86_64/r ... x86_64.rpmwget ftp://ftp.univie.ac.at/systems/linux/da ... x86_64.rpmwget http://quattorsrv.lal.in2p3.fr/packages ... noarch.rpmwget http://download.fedora.redhat.com/pub/e ... noarch.rpmwget http://download.fedora.redhat.com/pub/e ... x86_64.rpmwget http://passenger.stealthymonkeys.com/rh ... noarch.rpmwget http://passenger.stealthymonkeys.com/rh ... x86_64.rpmwget http://download.fedora.redhat.com/pub/e ... x86_64.rpmwget http://passenger.stealthymonkeys.com/rh ... x86_64.rpmwget http://passenger.stealthymonkeys.com/rh ... x86_64.rpmwget http://passenger.stealthymonkeys.com/rh ... x86_64.rpmwget http://quattorsrv.lal.in2p3.fr/packages ... x86_64.rpmwget http://download.fedora.redhat.com/pub/e ... noarch.rpmwget http://download.fedora.redhat.com/pub/e ... noarch.rpmwget http://download.fedora.redhat.com/pub/e ... x86_64.rpmwget http://download.fedora.redhat.com/pub/e ... x86_64.rpm}} Once the system is updated, reboot again
{{Code|yum localinstall perl-Authen-PAM-0.16-1.2.el6.rf.x86_64.rpmyum localinstall pkcs11-helper-1.08-1.el6.rf.x86_64.rpmyum localinstall openvpn-2.2.0-3.el6.rf.x86_64.rpmyum localinstall fpaste-0.3.5-1.el6.noarch.rpmyum localinstall rubygem-daemon_controller-0.2.5-1.noarch.rpmyum localinstall rubygem-rack-1.1.0-2.el6.noarch.rpmyum localinstall rubygem-fastthread-1.0.7-2.el6.x86_64.rpmyum localinstall rubygem-passenger-3.0.8-2.el6.x86_64.rpmyum localinstall libev-4.03-3.el6.x86_64.rpmyum localinstall rubygem-passenger-native-3.0.8-2.el6.x86_64.rpmyum localinstall ruby-RMagick-2.13.1-6.el6.1.x86_64.rpmyum localinstall rubygem-passenger-native-libs-3.0.8-2.el6_1.8.7.299.x86_64.rpmyum localinstall mod_passenger-3.0.8-2.el6.x86_64.rpmyum localinstall rubygem-rack-test-0.5.4-1.el6.noarch.rpmyum localinstall rubygem-sinatra-1.0-2.el6.noarch.rpmyum localinstall mod_fcgid-2.3.6-1.el6.x86_64.rpmyum localinstall ruby-ldap-0.9.7-10.el6.x86_64.rpm}}You now to install a couple of repositories:
I then had to create a cadaver yum -y install http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm package, as I could not find one via Google yum -y install http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.Login in as none root userrpm
{{Code|mkdir $HOME/rpm $HOME/rpm/SOURCES $HOME/rpm/SPECS $HOME/rpm/BUILD $HOME/rpm/SRPMS $HOME/rpm/RPMS $HOME/rpm/RPMScd rpm/SOURCESwget httpNow install a few packages://www.webdav.org/cadaver/cadaver-0.23.3.tar.gzcd ..cd SPECS}}
you now need to create a spec file <pre>yum -y install ruby-libs php-mbstring ImageMagick perl-Authen-PAM openvpn pkcs11-helper fpaste ruby-RMagick rubygem-rack rubygem-fastthread libev rubygem-rack-test rubygem-sinatra mod_fcgid ruby-ldap rubygem-daemon_controller rubygem-passenger rubygem-passenger-native rubygem-passenger-native-libs mod_passenger bind</pre>
{{Code|nano cadaver.spec}}Finally, we need to download and install a couple of packages:
{{Text|Name<pre><nowiki>wget ftp: cadaverVersion: 0//rpmfind.23.3Release: 3Summary: Command-line WebDAV clientLicense: GPLGroup: Applicationsnet/linux/InternetSource: http:fedora/releases/www.webdav.org13/cadaverEverything/%{name}-%{version}.tar.gzURL: http:x86_64/os/www.webdav.orgPackages/cadaver/BuildRoot: %{_tmppath}/%{name}-%{version}0.23.3-root1.fc13.x86_64.rpm
%descriptioncadaver is a commandwget http://download.fedora.redhat.com/pub/fedora/linux/updates/14/x86_64/boost-line WebDAV client, with support for file upload,download, onrandom-screen display, in1.44.0-place editing, namespace operations(move8.fc14.x86_64.rpm</copy), collection creation and deletion, property manipulation,and resource locking.nowiki>
%prep%setup yum -qy localinstall cadaver-0.23.3-1.fc13.x86_64.rpm
%build%configure yum -y localinstall boost-with-neon<nowiki>=</nowiki>%{_prefix} LDFLAGS<nowiki>=</nowiki>-pie CFLAGS<nowiki>=</nowiki>"$RPM_OPT_FLAGS -fpie"make %{?_smp_mflags} %installrm -rf $RPM_BUILD_ROOT%makeinstall %cleanrm -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<nowiki>*</nowiki> Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>random- rebuilt <nowiki>*</nowiki> Wed May 12 2004 Joe Orton <jorton@redhat.com> 0.22.1-2- build as PIE <nowiki>*</nowiki> Tue Apr 20 2004 Joe Orton <jorton@redhat.com> 0.2244.1-1- update to 0.22.1 <nowiki>*</nowiki> Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>- rebuilt <nowiki>*</nowiki> Fri Oct 3 2003 Joe Orton <jorton@redhat.com> 08.22fc14.0-1- update to 0x86_64.22.0; use system neon <nowiki>*rpm</nowiki> Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.compre> 0.21.0-2- rebuild <nowiki>*</nowiki> Mon Jul 21 2003 Joe Orton <jorton@redhat.com> 0.21.0-1- update to 0.21.0 <nowiki>*</nowiki> Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>- rebuilt <nowiki>*</nowiki> Wed Jan 22 2003 Tim Powers <timp@redhat.com>- rebuilt <nowiki>*</nowiki> Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.20.5-5- rebuild<nowiki>*</nowiki> Fri Nov 22 2002 Joe Orton <jorton@redhat.com> 0.20.5-4- force use of bundled neon (#78260) <nowiki>*</nowiki> Mon Nov 4 2002 Joe Orton <jorton@redhat.com> 0.20.5-3- rebuild in new environment <nowiki>*</nowiki> Fri Aug 30 2002 Joe Orton <jorton@redhat.com> 0.20.5-2- update to 0.20.5; many bug fixes, minor security-relatedfixes, much improved SSL support, a few new features. <nowiki>*</nowiki> Thu Aug 22 2002 Joe Orton <jorton@redhat.com> 0.20.4-1- add --with-force-ssl <nowiki>*</nowiki> Wed May 1 2002 Joe Orton <joe@manyfish.co.uk>- add man page <nowiki>*</nowiki> Sat Jan 19 2002 Joe Orton <joe@manyfish.co.uk>- updated description <nowiki>*</nowiki> Mon Nov 19 2001 Joe Orton <joe@manyfish.co.uk>- Merge changes from Nalin Dahyabhai <nalin@redhat.com>. <nowiki>*</nowiki> Fri Feb 11 2000 Joe Orton <joe@orton.demon.co.uk>- Text descriptions modified <nowiki>*</nowiki> Thu Feb 10 2000 Lee Mallabone <lee0@callnetuk.com>}} * Initial creation You now need to create the cadaver rpm with:{{Code|rpmbuild -bb cadaver.spec}}Next, install the rpm.{{Code|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.
{{Code| nano /etc/yum.repos.d/amahi.repo}}
{{Text|<pre>[amahi]
name<nowiki>=</nowiki>Amahi repository for Fedora 14
baseurl<nowiki>=</nowiki>http://f14.amahi.org/
gpgcheck<nowiki>=</nowiki>0
gpgkey<nowiki>=</nowiki>file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amahi
exclude<nowiki>=</nowiki>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}}</pre> When hda-suite is installed later, it overwrites the amahi.repo file, so we will install hda-release first then reset the repo file. yum -y install hda-release  Once it installed recreate the amahi.repo file as above.
Edit /etc/issue and add 'Fedora' to the end of the top line.
{{Code| nano /etc/issue}} {{Text|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 Scientific Linux release 6.1 (Carbon) Fedora <--- Added here!{{Code|ln -s /usr/share/openvpn /usr/lib64/openvpn}} Kernel \r on an \m
There are a few prolems problems with the DNS server.
Create /etc/rndc.key
{{Code| rndc-confgen -a}}
Change the owner of /etc/rndc.key
{{Code| chown named /etc/rndc.key}} Remove any journal files.{{Code|rm -rf /var/named/dynamic/*.jnl}}
Change the owner of /var/named.
{{Code| chown -R named:named /var/named}}
Finally, restart the DNS server.
{{Code| service named restart}} Now install the Amahi packages: yum -y install hda-suite Unfortunately, to see and download apps, you computer has to use an alias. cp /etc/redhat-release /etc/redhat-release.orig echo "Fedora release 14 (Laughlin)" > /etc/redhat-release Start the Amahi web installer: service amahi-installer startGoto: http://localhost:2000 to complete the install. You can get your Install Code by logging into http://amahi.org and going to your control panel.
Now follow the Amahi You can also install [by going to http://wiki.amahi.org/index.php/Selfyour-installhda-existing instructions]. ipaddress:2000 from another PC but you will have to temporarily turn off the firewall: Ignore the update dhclient command.service iptables stop
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 least2017-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.
12,424

edits