I have another server running as a repo server. To make the files available all I had to do was put a sym link in the APache DocumentRoot directory. In this case it was "/var/www/html". The symlink pointed to where I actually had the repo tree (like for FC12).
But with Amahi, the DocumentRoot is still "/var/www/html", but Amahi does not use this location.
Where how would I get something like:
http://hda.home/fedora/12/os/i386/ accessible?
Running a repo offof Amahi
Re: Running a repo offof Amahi
I just so happen to have made script recently to do this. I made a web app called repo, then added a symlink there to go to the location of the files. Then, you can point the repo url to http://repo/path/to/repo/files.
It worked great. I was gonna post the guidance in the wiki. I have it in a html file at the moment.
It worked great. I was gonna post the guidance in the wiki. I have it in a html file at the moment.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Running a repo offof Amahi
Can you please pass the info over to me so I can set this up?
I want to rebuild my main repo server tomorrow and it seems to be easier to set up Amahi as my repo server than any of my other boxes here.
Also did you install craterepo (I don't need that right now, but have used it a lot for other projects).
I want to rebuild my main repo server tomorrow and it seems to be easier to set up Amahi as my repo server than any of my other boxes here.
Also did you install craterepo (I don't need that right now, but have used it a lot for other projects).
Re: Running a repo offof Amahi
Cool. Here ya go http://wiki.amahi.org/index.php/HDA_as_ ... epo_Server. I still need to add the part for DVD packages. This is just the bits for updates.
If you have anything to add, please let me know. I have tested this on my hda and worked great.
If you have anything to add, please let me know. I have tested this on my hda and worked great.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Running a repo offof Amahi
Some feedback and need of help.
The web app setup went fine.
But http:repo/domain is NOT instantly available, as you have to wait until hdactl gets run again or:
service hdactl restart
Here is what I put in my index.html
<html>
<UL>
<LI><A HREF="FC12">Fedora 12</A>
<LI><A HREF="Centos-5.5">Centos 5.5</A>
</UL>
</html>
Having multiple directories under the repo is of vallue. But, the Centos one gets a 403 access error:
You don't have permission to access /Centos-5.5 on this server.
And I don't see it:
html]# ls -ls
total 8
4 lrwxrwxrwx 1 root root 60 2010-11-02 13:42 Centos-5.5 -> /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos/5.5
0 lrwxrwxrwx 1 root root 31 2010-11-02 11:05 FC12 -> /var/hda/files/repo/fedora/FC12
4 -rw-r--r-- 1 root root 99 2010-11-02 13:43 index.html
[root@homebase html]# ls -ls FC12/
total 8
4 drwxr-xr-x 3 root root 4096 2009-11-21 19:35 os
4 drwxr-xr-x 3 root root 4096 2009-11-22 21:25 updates
[root@homebase html]# ls -ls Centos-5.5/
total 4
4 drwxr-xr-x 3 root root 4096 2010-11-02 14:04 os
Centos is on my USB drive, but the permissions SEEM ok...
The web app setup went fine.
But http:repo/domain is NOT instantly available, as you have to wait until hdactl gets run again or:
service hdactl restart
Here is what I put in my index.html
<html>
<UL>
<LI><A HREF="FC12">Fedora 12</A>
<LI><A HREF="Centos-5.5">Centos 5.5</A>
</UL>
</html>
Having multiple directories under the repo is of vallue. But, the Centos one gets a 403 access error:
You don't have permission to access /Centos-5.5 on this server.
And I don't see it:
html]# ls -ls
total 8
4 lrwxrwxrwx 1 root root 60 2010-11-02 13:42 Centos-5.5 -> /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos/5.5
0 lrwxrwxrwx 1 root root 31 2010-11-02 11:05 FC12 -> /var/hda/files/repo/fedora/FC12
4 -rw-r--r-- 1 root root 99 2010-11-02 13:43 index.html
[root@homebase html]# ls -ls FC12/
total 8
4 drwxr-xr-x 3 root root 4096 2009-11-21 19:35 os
4 drwxr-xr-x 3 root root 4096 2009-11-22 21:25 updates
[root@homebase html]# ls -ls Centos-5.5/
total 4
4 drwxr-xr-x 3 root root 4096 2010-11-02 14:04 os
Centos is on my USB drive, but the permissions SEEM ok...
Re: Running a repo offof Amahi
Maybe its the symlink that is causing the issue.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Running a repo offof Amahi
What is that 2 and 0 in the first column? I created the symlinks the same way, using Nautilus while logged in as root.
In one case the symlink is to a 'regular' partition, in the other a USB drive.
In one case the symlink is to a 'regular' partition, in the other a USB drive.
Re: Running a repo offof Amahi
I don't understand what you mean by 2 and 0. So the symlink did not work?
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Running a repo offof Amahi
Opps that is 0 and 4. Look at this:
html]# ls -ls
total 8
4 lrwxrwxrwx 1 root root 60 2010-11-02 13:42 Centos-5.5 -> /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos/5.5
0 lrwxrwxrwx 1 root root 31 2010-11-02 11:05 FC12 -> /var/hda/files/repo/fedora/FC12
The symlinks that are referenced in the index.html have the same permissions, but the 1st column is different. FC12 works, but Centos-5.5 does not. Further the actual directories have the same permissions:
# ls -ls /var/hda/files/repo/fedora
total 4
4 drwxr-xr-x 4 root root 4096 2010-11-02 11:04 FC12
# ls -ls /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos
total 4
4 drwxr-xr-x 3 root root 4096 2010-11-02 14:04 5.5
There is some difference in the trees getting to these links, but I thought that does not matter. Plus they are different drives (the one not working is removable), but why?
So any help is appreciated...
html]# ls -ls
total 8
4 lrwxrwxrwx 1 root root 60 2010-11-02 13:42 Centos-5.5 -> /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos/5.5
0 lrwxrwxrwx 1 root root 31 2010-11-02 11:05 FC12 -> /var/hda/files/repo/fedora/FC12
The symlinks that are referenced in the index.html have the same permissions, but the 1st column is different. FC12 works, but Centos-5.5 does not. Further the actual directories have the same permissions:
# ls -ls /var/hda/files/repo/fedora
total 4
4 drwxr-xr-x 4 root root 4096 2010-11-02 11:04 FC12
# ls -ls /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos
total 4
4 drwxr-xr-x 3 root root 4096 2010-11-02 14:04 5.5
There is some difference in the trees getting to these links, but I thought that does not matter. Plus they are different drives (the one not working is removable), but why?
So any help is appreciated...
Re: Running a repo offof Amahi
Ah...yea that is strange. Not real good with symlinks...but there has to be a simple answer I would think. Might need to google this one.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Who is online
Users browsing this forum: No registered users and 62 guests