Make Your Own Private Cydia Repository!
by , 09-25-2010 at 05:44 AM (2443 Views)
Have a jailbroken iPod Touch/iPhone/iPad and ever wanted to make your own Cydia Repository just for your home network? I'll show you how today.
Things Needed
- MacBook w/ AirPort
- Jailbroken iPhone/iPad/iPod Touch with Cydia
- DPKG Comands from FINK (HERE)
- Ability to read CAREFULLY and Knowledge with Terminal
This guide will cover everything from making your own .deb (Debian Package), Adding Repo Info, Bringing it to Life, Updating it and even assigning it a cool domain name like my infinitymedia.com as shown in the screenshot (not a real website)
Preparations
DPKG
1. You'll notice two files from the package you downloaded earlier, dpkg-deb and dpkg-scanpackages
2. Open Terminal and type:
3. Copy the dpkg-deb and dpkg-scanpackages file into that directory.Code:open /usr/bin
4. Insert password if prompt
5. Done.
Web-Server
1. Open Terminal and type
2. In there, create a folder called cydia, then inside cydia, create a folder called debCode:open /Library/WebServer/Documents
3. Now open System Preferences then go to Sharing, Enable Web Sharing. You should receive an IP, make a note of this.
4. Done.
Step 1 - Creating Packages
1. Create a folder and rename it to the name of your package.
2. In that folder, make two folders; DEBIAN and Library
3. Inside DEBIAN, using TextEdit, make a file called control (no extensions!), this file should have the following information in Plain Text (Press Shift + Command + T before saving)
4. Now inside Library, should be your actual app/theme, if your creating a theme, create a folder called Themes inside the Library folder. If its an Application, put a folder named Application inside Library. Inside the Application folder will be the .app while in Themes there will be a folder containing the theme stuff. You will need to find about coding and theming yourself (Google FTW)Code:Package: com.wiihacks.multitasktoggler Name: iOS4 Multitask Toggler Version: 1.1-1 Architecture: iphoneos-arm Description: Short Description. Keep it one line. Homepage: http://www.wiihacks.com Maintainer: ModderMan Author: ShadowSonic2 Section: Tweaks Depends: Other package ID this app needs to work (E.g, com.shadow.depend)
5. Time to clear out hidden junk, open Terminal and change directory to the directory that has your main package folder and use this command to remove the .ds_store junk.
6. Time to build the actual DEB Package now that its ready. Open Terminal again, change directory and its time to use the new dpkg-deb commandCode:cd Shadow find . -name .DS_Store -ls -exec rm {} \;
Folder being the folder with the DEBIAN and Library folder while the long /User/Shadow.deb is where the deb is located.Code:cd Shadow dpkg-deb -b Folder /Users/Shadow/Documents/cydia/deb/Shadow.deb
Step 2 - Adding files to Your REPO
1. Fire up Terminal once more and type these commands, one line at a time.
You may get small errors or prompts asking you to overwrite Packages. Ignore the errors and overwrite Packages when asked. Notice, you have to do this every time you add new packages to your REPO!Code:cd /Library/WebServer/Documents/cydia/ dpkg-scanpackages deb / > Packages bzip2 -fks ~/Sites/repo/Packages
2. I'm borrowing this from Saurik, so remember, this next part is ALL His. It's optional but if you want cydia to give Info about your repo, you'll need this.
The Release. file has to in the cydia folder we made earlier.
Step 3 - Adding your Repo!
Open up Cydia, go to Manage then Sources. Click Edit then Add.
Your source will be;
http://ip.of.mac/cydia
ip.of.mac would be the address would be the IP address you took earlier. For example, if my Mac's IP on Web Sharing is 10.0.0.7, to add it on Cydia, I'd add;
http://10.0.0.7/cydia
However, if you want it to look a little cooler (this is completely useless as it only works on the device you do it on), SSH into your device or use iFile and navigate into;
/etc/
Inside /etc/, there should be hosts file, open this with a Text Editor. In a new line add;
ip.of.mac website.com
ip.of.mac would be the IP of the mac, while website.com would be the website you want it to be known as. Example,
10.0.0.7 infinity.com
Then save it and you can now add your repo in Cydia using that website, Example;
http://infinity.com/cydia
All Done
Remember your Mac must be on and have Web Sharing Running for it to appear in Cydia. It also must be on the same network as your iDevice.
You can also check out dyndns.com and research on getting a static IP to share the the domain name all over the world. Of course, if your Laws/ISP/Bandwidth doesn't have a problem with it.
![]()












Email Blog Entry