Changes

From Amahi Wiki
Jump to: navigation, search
This setup only needs to be done once. This will set up structure for all repos built for your HDA.
* Enable Advanced Settings in the Amahi Dashboard (Settings-->Settings)
 
* Create a web app called <strong>repo</strong> using the Amahi Dashboard (Applications-->Web App)
 
* Open a terminal window and become <strong>root</strong> user:
{{Code|su -}}
 
* If you want the URL <strong><nowiki>http://repo</nowiki></strong> available immediately, restart hdactl:
{{Code|service hdactl restart}}
 
* Generate <strong>index.html</strong> (OPTIONAL) to allow repo packages to be viewed via web browser):
{{Code|cd /var/hda/web-apps/repo/html
<nowiki></UL></nowiki>
</html>}}
 
* Make directory to hold all repo files, then create symbolic link to the directory:
{{Code|mkdir -p /var/hda/files/yum/f12
cd /var/hda/web-apps/repo/html
ln -s /var/hda/files/yum/f12}}
 
* If you locate the files in a different tree, you will need the appropriate permissions. This is especially important if you build the tree by extracting from a .iso file using Nautilus. Change to a point in the tree and use:
{{Code|<nowiki>find . -type d | xargs chmod 755</nowiki>}}
 
* Disable current Fedora/RPMFusion Update repos for your HDA, then invoke local repo (Skip last 2 lines if RPMFusion repos <strong>NOT</strong> installed):
{{Code|sed -i 's/enabled<nowiki>=</nowiki>1/enabled<nowiki>=</nowiki>0/g' /etc/yum.repos.d/fedora-updates.repo
12,424

edits