Difference between revisions of "Scientific Linux"

From Amahi Wiki
Jump to: navigation, search
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''NOTE:''' This is not officially supported my Amahi. Be advised that Scientific Linux has not been tested with Fedora 14.
+
{{MessageBox|
 +
backgroundcolor = #ffaaaa|
 +
image =Warning.png|
 +
heading =WARNING|
 +
message = This is only for developers, advanced users and testers. Do NOT use with data you would not mind losing!}}
  
 
==Install==
 
==Install==
Download a Scientific Linux 6.1 DVD iso from either:
+
Download a Scientific Linux 6.1 x86_64 DVD iso from:
http://ftp.scientificlinux.org/linux/sc ... ll-DVD.iso
+
http://ftp.scientificlinux.org/linux/scientific/6.1/x86_64/iso/SL-61-x86_64-2011-07-27-Install-DVD.iso
Or
+
Or a Scientific Linux 6.1 i386 DVD iso from:
http://ftp.scientificlinux.org/linux/sc ... ll-DVD.iso
+
http://ftp.scientificlinux.org/linux/scientific/6.1/i386/iso/SL-61-i386-2011-07-27-Install-DVD.iso
Depending on your machines processor (32bit or 64bit)
+
    Depending on your machines processor (32bit or 64bit)
Note: I used the x86_64 version.
+
        Note: These instructions are based on the x86_64 version.  
  
Install and update Scientific Linux 6.1 ( I did a minimal desktop installation )
+
Install 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 to ensure everything is ok
+
    Reboot when requested.
 +
    You will be asked to create 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 to install a few packages from SL's repository:
+
    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 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 different one.
 +
    Click in the box (at the top) next to 'Connect automatically'
 +
    Click on the 'Apply' button and enter root password when asked.
  
{{Code|yum install ruby-libs php-mbstring ImageMagick gcc rpm-build}}
+
    Now open a terminal and change to the root user:
 +
    su -
 +
    Enter root password
 +
   
 +
    Now we need to turn off Selinux
 +
    nano /etc/sysconfig/selinux
 +
    Change:
 +
    SELINUX=enforcing
 +
    To:
 +
    SELINUX=disabled
  
Now you need to download and install the following packages:
+
    Reboot to 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.rpm
+
    Once the system is updated, reboot again
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
+
You now to install a couple of repositories:
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.
+
yum -y install http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
Login in as none root user
+
 +
yum -y install http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.rpm
  
{{Code|mkdir $HOME/rpm $HOME/rpm/SOURCES $HOME/rpm/SPECS $HOME/rpm/BUILD $HOME/rpm/SRPMS $HOME/rpm/RPMS $HOME/rpm/RPMS
+
Now install a few packages:
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
+
<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: cadaver
+
<pre><nowiki>wget ftp://rpmfind.net/linux/fedora/releases/13/Everything/x86_64/os/Packages/cadaver-0.23.3-1.fc13.x86_64.rpm
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
+
wget http://download.fedora.redhat.com/pub/fedora/linux/updates/14/x86_64/boost-random-1.44.0-8.fc14.x86_64.rpm</nowiki>
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
+
yum -y localinstall cadaver-0.23.3-1.fc13.x86_64.rpm
%setup -q
 
  
%build
+
yum -y localinstall boost-random-1.44.0-8.fc14.x86_64.rpm</pre>
%configure --with-neon=%{_prefix} LDFLAGS=-pie CFLAGS="$RPM_OPT_FLAGS -fpie"
 
make %{?_smp_mflags}
 
  
%install
+
Now you need to create an Amahi repo file:
rm -rf $RPM_BUILD_ROOT
 
%makeinstall
 
  
%clean
+
nano /etc/yum.repos.d/amahi.repo
rm -rf $RPM_BUILD_ROOT
 
  
%files
+
<pre>[amahi]
%defattr(-,root,root)
+
name<nowiki>=</nowiki>Amahi repository for Fedora 14
%{_bindir}/*
+
baseurl<nowiki>=</nowiki>http://f14.amahi.org/
%doc NEWS FAQ THANKS TODO COPYING README ChangeLog
+
enabled<nowiki>=</nowiki>1
%{_mandir}/*/*
+
gpgcheck<nowiki>=</nowiki>0
/usr/share/locale/en@quot/LC_MESSAGES/cadaver.mo
+
gpgkey<nowiki>=</nowiki>file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amahi
/usr/share/locale/es/LC_MESSAGES/cadaver.mo
+
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>
/usr/share/locale/it/LC_MESSAGES/cadaver.mo}}
 
  
%changelog
+
When hda-suite is installed later, it overwrites the amahi.repo file, so we will install hda-release first then reset the repo file.
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
+
yum -y install hda-release
- rebuilt
 
  
* Wed May 12 2004 Joe Orton <jorton@redhat.com> 0.22.1-2
+
Once it installed recreate the amahi.repo file as above.
- build as PIE
 
  
* Tue Apr 20 2004 Joe Orton <jorton@redhat.com> 0.22.1-1
+
Edit /etc/issue and add 'Fedora' to the end of the top line.
- 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>
+
nano /etc/issue
- rebuilt
 
  
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
+
Scientific Linux release 6.1 (Carbon) Fedora <--- Added here!
- rebuilt
+
Kernel \r on an \m
  
* Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.20.5-5
+
There are a few problems with the DNS server.
- rebuild
+
Create /etc/rndc.key
 +
rndc-confgen -a
  
* Fri Nov 22 2002 Joe Orton <jorton@redhat.com> 0.20.5-4
+
Change the owner of /etc/rndc.key
- force use of bundled neon (#78260)
+
chown named /etc/rndc.key
  
* Mon Nov 4 2002 Joe Orton <jorton@redhat.com> 0.20.5-3
+
Change the owner of /var/named.
- rebuild in new environment
+
chown -R named:named /var/named
  
* Fri Aug 30 2002 Joe Orton <jorton@redhat.com> 0.20.5-2
+
Finally, restart the DNS server.  
- update to 0.20.5; many bug fixes, minor security-related
+
service named restart
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
+
Now install the Amahi packages:
 +
yum -y install hda-suite
  
Scientific Linux release 6.1 (Carbon) Fedora <--- Added here!
+
Unfortunately, to see and download apps, you computer has to use an alias.
Kernel \r on an \m
+
cp /etc/redhat-release /etc/redhat-release.orig
 +
echo "Fedora release 14 (Laughlin)" > /etc/redhat-release
  
The Openvpn files are not in the required place, create a link
+
Start the Amahi web installer:
ln -s /usr/share/openvpn /usr/lib64/openvpn
+
service amahi-installer start
 +
 +
Goto: 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 install instructions here: http://wiki.amahi.org/index.php/Self-install-existing
+
You can also install by going to http://your-hda-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 least
+
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
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.
 
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.

Latest revision as of 17:27, 9 January 2021

Warning.png WARNING
This is only for developers, advanced users and testers. Do NOT use with data you would not mind losing!



Install

Download a Scientific Linux 6.1 x86_64 DVD iso from: http://ftp.scientificlinux.org/linux/scientific/6.1/x86_64/iso/SL-61-x86_64-2011-07-27-Install-DVD.iso Or a Scientific Linux 6.1 i386 DVD iso from: http://ftp.scientificlinux.org/linux/scientific/6.1/i386/iso/SL-61-i386-2011-07-27-Install-DVD.iso

   Depending on your machines processor (32bit or 64bit)
       Note: These instructions are based on the x86_64 version. 

Install 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 create 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
   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 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 different one.
   Click in the box (at the top) next to 'Connect automatically'
   Click on the 'Apply' button and enter root password when asked.
   Now open a terminal and change to the root user:
   su -
   Enter root password
   
   Now we need to turn off Selinux
   nano /etc/sysconfig/selinux
   Change:
   SELINUX=enforcing
   To:
   SELINUX=disabled
   Reboot to ensure everything is ok then update
   Again, as root in a terminal
   yum update
   Once the system is updated, reboot again

You now to install a couple of repositories:

yum -y install http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

yum -y install http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.rpm

Now install a few packages:

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

Finally, we need to download and install a couple of packages:

wget ftp://rpmfind.net/linux/fedora/releases/13/Everything/x86_64/os/Packages/cadaver-0.23.3-1.fc13.x86_64.rpm

wget http://download.fedora.redhat.com/pub/fedora/linux/updates/14/x86_64/boost-random-1.44.0-8.fc14.x86_64.rpm

yum -y localinstall cadaver-0.23.3-1.fc13.x86_64.rpm

yum -y localinstall boost-random-1.44.0-8.fc14.x86_64.rpm

Now you need to create an Amahi repo file:

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

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.

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

There are a few problems with the DNS server. Create /etc/rndc.key

rndc-confgen -a

Change the owner of /etc/rndc.key

chown named /etc/rndc.key

Change the owner of /var/named.

chown -R named:named /var/named

Finally, restart the DNS server.

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 start

​ Goto: 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.

You can also install by going to http://your-hda-ipaddress:2000 from another PC but you will have to temporarily turn off the firewall:

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 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.