iCulture forum | iPhone, iPad,  iPod touch, Apple TV en iOS

iCulture forum | iPhone, iPad, iPod touch, Apple TV en iOS (https://forum.iculture.nl/)
-   Ringtones en Wallpapers (https://forum.iculture.nl/f22/media/f23/ringtones-wallpapers/)
-   -   Linux script dat mp3 converteerd en upload naar je iphone (https://forum.iculture.nl/f22/media/f23/ringtones-wallpapers/14636-linux-script-mp3-converteerd-upload-naar-iphone.html)

william_acke 15-06-08 23:41

Linux script dat mp3 converteerd en upload naar je iphone
 
Ik heb de instructies in het engels geschreven voor een andere website, maar ik denk niet dat dit een probleem mag vormen..

This is the ultimate and easiest way to convert mp3's to Ringtones and uploads it automaticly to your iphone and deletes all temporary files..

First you have to make a safe connection with your iphone, you just follow the instructions bellow (just copy paste the commands)
source for the connection: iPhone | fsckin w/ linux

Follow these instruction to make a connection with your Iphone

1) Search for gstreamer in add/remove programs and add everything with the name starting with gstreamer, including ubuntu restricted extras.
2) Turn off auto-lock on your iPhone by going to Settings | General | Auto-Lock | Never
3) Open terminal

sudo apt-get install sshfs
sudo adduser wayne fuse [Replace wayne with your username]
sudo gedit /etc/hosts

Add IP adress of your Iphone (Settings -> Wi-Fi -> Bleu arrow -> access point)
Save and quit
ssh-keygen -t rsa
Press 3 Times ENTER

Output:
Quote:
Ghttp://www.warez-bb.org/templates/fi...ote_header.gifenerating public/private rsa key pair.
Enter file in which to save the key (/home/wayne/.ssh/id_rsa): [ENTER]
Enter passphrase (empty for no passphrase): [ENTER]
Enter same passphrase again: [ENTER]
Your identification has been saved in /home/wayne/.ssh/id_rsa.
Your public key has been saved in /home/wayne/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx wayne@gutsy
wayne@gutsy:~/Desktop$


ssh root@iphone
Don’t worry, if it takes a long time - the first time you connect, it takes about 30 seconds to generate keys on the iPhone.
Output:
Quote:
whttp://www.warez-bb.org/templates/fi...ote_header.gifayne@gutsy:~/Desktop$ ssh root@iphone
The authenticity of host 'iphone (10.0.0.196)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'iphone,10.0.0.196' (RSA) to the list of known hosts.
root@iphone's password: alpine [This is the default password]
#

At the # prompt type the following:
passwd root [Type in the new password twice.]
passwd mobile [Type in the new password twice.]

mkdir ~/.ssh << [Error that it exists is OK.]
chmod go-w / ~
cp /etc/ssh_config /etc/ssh_config.bak
echo AuthorizedKeysFile .ssh/authorized_keys >> /etc/sshd_config
exit
scp ~/.ssh/id_rsa.pub root@iphone:.ssh/authorized_keys

Output:
Quote:
rhttp://www.warez-bb.org/templates/fi...ote_header.gifoot@iphone's password: [type the new password you setup here]
id_rsa.pub 100% 393 0.4KB/s 00:00
wayne@gutsy:~$


sudo mkdir /media/iphone/ -m 777
sshfs root@iphone:/var/root/Media /media/iphone/
ln -s /media/iphone/iTunes_Control /media/iphone/iPod_Control

4) Download Ringtone_Utility_for_Linux to your Personal Map
5) The program is configured for my Limewire map, you can change it to your music directory on the first line
cd LimeWire/Saved -> ex. cd Documents/Music
5) Open new Terminal
chmod 777 Ringtone_Utility_for_Linux
./Ringtone_Utility_for_Linux


Download
RapidShare: Easy Filehosting



With instructions:
RapidShare: Easy Filehosting

NO PASS

I just started writting little scripts, I tought this was really usefull, if you think so too, please let me know.. Also if you think there are some improvements to be made, let me know!


Alle tijden zijn GMT +2. Het is nu 05:41.