Page 2 of 2 FirstFirst 12
Results 21 to 37 of 37

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: +++ iPhone NES Sound How To +++

  1. #21
    yes...that worked !

  2. #22
    okay, for those wondering how a .profile works here we go.
    the .profile file is loaded every time you load the shell.
    the aliases are shortcuts to commands. You can also set up paths so you don't have to specify a path to execute programs.

    A .profile file belongs in the home directory of the user.
    on the iphone this is /var/root

    so to get this working create a text file named .profile with

    alias nosound="launchctl unload /System/Library/LaunchDaemons/coreaudiod.plist"
    alias sound="launchctl load /System/Library/LaunchDaemons/coreaudiod.plist"

    then upload it to your iphone in /var/root/
    set permission to 666

    then launch the shell, either by ssh or terminal
    type "nosound"
    when you are done playing return to the terminal and type "sound"

    *I can confirm this works with the latest version (.24)
    Last edited by frontsidebus; 08-10-2007 at 10:32 PM.

  3. #23
    interesting
    im either gonna dl terminal to my phone or just forget about the sound lol too much work

  4. #24
    iPhone? More like MyPhone
    Join Date
    Jul 2007
    Location
    Buena Park, California, United States
    Posts
    144
    Thanks
    6
    Thanked 10 Times in 6 Posts

    I must not be making this .profile file correctly...set permissions correctly, added those two lines, I get alias: sound: not found in terminal.

    Can you just upload the working .profile file please so I can determine if it's something else wrong on my iPhone?

  5. #25
    okay, here is my .profile which sits in /var/root/.profile
    it is what's between the dashed lines, the dashed lines are not in it
    --------------------------

    # Aliases
    alias pico='pico -w'
    alias rm='rm -i'
    alias ssh='ssh2'
    alias nosound="launchctl unload /System/Library/LaunchDaemons/coreaudiod.plist"
    alias sound="launchctl load /System/Library/LaunchDaemons/coreaudiod.plist"

    # User specific environment
    PATH=$PATH:/sbin:/usr/sbin

    -------------------------

    I have sftp set up, so its just a quick ftp over and upload, but you can ssh the file in to. that command would look like.
    scp -rp /path/to.profile [email protected]*:/var/root
    replace /path/to.profile with the path to where your .profile is, better yet put it in your working directory on your computer and then just use .profile, no need for a path.
    replace the * in the IP with your iphone's IP.
    Once transferred, shh into your ipod
    ssh -l root 192.168.1.*
    again replace the * with your phone's IP
    check your permissions
    chmod 666 /var/root/.profile
    i think 600 would actually work just fine too, but I don't feel like checking.

    Alright, there you have it.

  6. #26
    I've placed an NES specific .profile file up in the download sections for those that want to grab it.

    Tested and works, the sound it ok at best. I'm still waiting on the controls to improve. However, with as quickly as updates are rolling out, I have a feeling it will not be long.

    -David

  7. #27
    ok..i created a file in /var/root w/ winscp named .profile

    copy/pasted fsb's profile and set permission to 600 using mobileterminal, winscp, and putty

    if i go in to terminal and type alias to show all defined alias's nothing shows up

    mobileterminal doesnt seem to be using the .profile

    i dont understand whats wrong ?

    it cant be this hard...i know it it cant...but this is the only thing ive had problems w/
    Last edited by k0mpresd; 08-11-2007 at 11:09 AM.

  8. #28
    Did you reboot? If so, you should just be able to type nosound and then return to NES.

  9. #29
    i am using mobile terminal. Make sure you are using the most up to date version. Also, are you using the default shell? I am, but if you changed this, you could need a different .profile. Here is a terminal session of mine. Try doing the same things and tell me what your results are.
    In case you don't know the part after "-sh-3.2#" is what you type in, so for the first line, you type "echo $$SHELL" and you should get back 2143SHELL

    -sh-3.2# echo $$SHELL
    2143SHELL
    -sh-3.2# cat .profile
    # Aliases
    alias pico='pico -w'
    alias rm='rm -i'
    alias ssh='ssh2'
    alias nosound="launchctl unload /System/Library/LaunchDaemons/coreaudiod.plist"
    alias sound="launchctl load /System/Library/LaunchDaemons/coreaudiod.plist"

    # User specific environment
    PATH=$PATH:/sbin:/usr/sbin-sh-3.2# alias
    nosound='launchctl unload /System/Library/LaunchDaemons/coreaudiod.plist'
    pico='pico -w'
    rm='rm -i'
    sound='launchctl load /System/Library/LaunchDaemons/coreaudiod.plist'
    ssh='ssh2'
    -sh-3.2# sound
    com.apple.mediaserverd: Already loaded
    -sh-3.2# nosound
    -sh-3.2# sound
    -sh-3.2# sound
    com.apple.mediaserverd: Already loaded
    -sh-3.2#

  10. #30
    Quote Originally Posted by frontsidebus View Post
    i am using mobile terminal. Make sure you are using the most up to date version. Also, are you using the default shell? I am, but if you changed this, you could need a different .profile. Here is a terminal session of mine. Try doing the same things and tell me what your results are.
    In case you don't know the part after "-sh-3.2#" is what you type in, so for the first line, you type "echo $$SHELL" and you should get back 2143SHELL
    im on the phone right now but ill post a screenshot when i get off..

    im using v85

    default shell? i would assume so

    and thanks for clearing up the part about "-sh-3.2#"

    thanks for the help though

    edit: screenshot added

    edit agian: this is my problem ~>
    Quote Originally Posted by organik View Post
    the profile is only being read for my if I do 'source var/root/.profile' first. What's the trick to it being read automatically?
    i typed what organik posted and then typed alias and it displayed them fine...
    Attached Thumbnails Attached Thumbnails -foo_0.png  
    Last edited by k0mpresd; 08-11-2007 at 12:29 PM.

  11. #31
    iPhone? More like MyPhone
    Join Date
    Jul 2007
    Location
    Buena Park, California, United States
    Posts
    144
    Thanks
    6
    Thanked 10 Times in 6 Posts

    installed natetrue's iphone binkit and now aliases are taking just fine. Upped the binkit and working .profile to the downloads section.

  12. #32
    why didnt some just post that /bin/login from the bin kit must be installed ?

    that would have made everyones life easier

    after that file was installed and chmod 775 the problem was solved

  13. #33
    I installed natetrue's bin kit and a .profile via winscp and now my sound works when I use the aliases in my mobile terminal, but only thru the headphones, and it runs a lot slower when using sound... It acts like it wants to crash when I try and play it thru the speaker....

    Hardly worth it for all the trouble (fyi for whoever is still trying to get this to work).

    Im sure he will fix it though....

  14. #34
    did u upped tha whole bin kit?

  15. #35
    whole bin kit or use the install over wifi app to install it for you

    make sure to set permission to 775 on installer files or bin kit files if you install it manually

  16. #36
    Quote Originally Posted by k0mpresd View Post
    whole bin kit or use the install over wifi app to install it for you

    make sure to set permission to 775 on installer files or bin kit files if you install it manually
    tha install? ... if i dnt get it

  17. #37
    Quote Originally Posted by thaforgottenone View Post
    tha install? ... if i dnt get it
    the "install" ~> http://www.modmyi.com/forums/showthread.php?t=2231

Page 2 of 2 FirstFirst 12
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •