Running a repo offof Amahi

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Solved - Re: Running a repo offof Amahi

Postby rgmhtt » Wed Nov 03, 2010 9:35 am

The problem was permissions at:

[root@homebase /]# ls -ls /media/
total 4
4 drwx------ 6 root root 4096 2010-11-01 09:52 d4ae05a3-c60f-489d-8159-e16c9a271f0b

I changed that from 700 to 755 and now everything works. I kind of thought that symlink permissions were inherited for the current path, not the 'real' path. Well now I know...

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

Re: Running a repo offof Amahi

Postby bigfoot65 » Wed Nov 03, 2010 10:08 am

Awesome. Glad the wiki helped you. If there was anything I missed, would you please add it. I wanna add the capability for install packages too, just have not gotten to it yet. They can be pulled the same way.
ßîgƒσστ65
Applications Manager

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

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Wed Nov 03, 2010 11:44 am

I made some changes, but I am not experienced with editing a wiki and had some problems for you to clean up. :)

First I could NOT change the index.html to:

<html>
<UL>
<LI><A HREF="f12">f12</A>
</UL>
</html>

The wiki processed the <UL> </UL> stuff.

And I tried to put a double indent for the line after the:

find . -type d | xargs chmod 755

But it put a double bullet as well.

So I left you some work.

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

Re: Running a repo offof Amahi

Postby bigfoot65 » Wed Nov 03, 2010 12:05 pm

Thanks. Changes made.

Not sure if I understand the additional about tree. Can that be explained differently? Maybe give an example.
ßîgƒσστ65
Applications Manager

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

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Wed Nov 03, 2010 12:47 pm

Thanks. Changes made.

Not sure if I understand the additional about tree. Can that be explained differently? Maybe give an example.
Let's say you have downloaded the ISO CDs for Centos 5.5 (all 7 of them) and you used Nautilus Archive Viewer to extract the contents of the ISO into the directory:

/meda/usbstuff/repos/centos/os/i386

All of the subdirectories under i386 will not be accessible and if you viewed the URL you will only see the files in i386 and none of the directories (like CentOS and repodata) because of permissions. But just CD to the i386 directory and run the

find . -type d | xargs chmod 755

command and everything works.

Also if your symlink is to something like /home/user/repos/Trixbox and even Trixbox has the work permissions, change to that directory and run the find command. That fine command (pun intended) runs down the repo tree and fixes all the directory permissions so the repo works!

Got burned on this back with Centos 5.1 when I set up my first repo and the Centos support crew gave me this little fixit command.

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Wed Nov 03, 2010 7:46 pm

I just successfully built a Centos 5.5 server off my new repo!

So the general part of your repo web app is good. It will be a bit before I get a FC12 full repo up and running....

Meanwhile you cover createrepo on the wiki. When I ran a FC12 update repo last year, I did NOT need createrepo to set it up. RSYNC got everything I needed. I have only used createrepo when I build my own specialize repo with my own rpms.

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

Re: Running a repo offof Amahi

Postby bigfoot65 » Thu Nov 04, 2010 4:54 am

Great news. I only included the createrepo line as the tutorials I followed included it. Probably can't hurt to do it even if its not needed.

If I get a chance to test this setup again, I will try it without that line. I have scripts done to do all the work, just have not posted them yet. I need to test them one more time to make sure it all works correctly.
ßîgƒσστ65
Applications Manager

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

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Thu Nov 04, 2010 5:31 am

I am looking at your crontab for getting the FC12 updates and I have a couple questions. You have:

0 1 * * * rsync -avrt rsync://mirrors.kernel.org/fedora/updates/12/i386/ --exclude=debug

Where is the destination? Shouldn't

/var/hda/files/yum/f12/i386/updates

be at the end of this command? And in the script that I use to use, my rsync options are auv. I end the --exclude=debug with a \

--exclude=debug/

I also have:

--delete --exclude=drpms/

So my crontab would be:

0 1 * * * rsync -auv rsync://mirrors.kernel.org/fedora/updates/12/i386/ --delete --exclude=debug/ --exclude=drpms/
/var/hda/files/yum/f12/i386/updates

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

Re: Running a repo offof Amahi

Postby bigfoot65 » Thu Nov 04, 2010 6:09 am

It must have gotten dropped inadvertently. My script had it, but guess copy and paste failed me LOL

Thanks for pointing that out. I did not see the extra parameters you use in the examples I followed, but will gladly add them to the wiki. It might make the downloads a bit smaller too.

Not sure if the / after debug matters. I tried it both ways in the past with the same result, but might not hurt to include it.

I will update the wiki accordingly.
ßîgƒσστ65
Applications Manager

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

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Thu Nov 04, 2010 8:17 pm

I did not see the extra parameters you use in the examples I followed, but will gladly add them to the wiki. It might make the downloads a bit smaller too.
I learned them the hard way. By doing and asking on both the Centos and Fedora lists.

--delete can get really important. I had a time when things got rather messed up as I was NOT deleting old stuff. You don't know this until you get burned. I don't recall the difference between our options, but I recall choosing u over rt; perhaps after ploughing the rsync man pages.

Who is online

Users browsing this forum: No registered users and 23 guests