[TUTORIAL] How to install packages with MobileTerminal

Discussion in 'iOS Jailbreak & Cydia' started by Happyman7, Apr 17, 2010.

  1. Happyman7

    Happyman7 Member

    Joined:
    Sep 2, 2009
    Messages:
    679
    Likes Received:
    7
    Device:
    4G iPod touch

    Please Register or Log in to view images


    This is now updated so you can do it on an iOS4 device!

    Introduction

    So you have just found a kick-ass theme/extension and you want it badly, but here is the catch—Cydia (or Rock) isn't working for you and you can't fix it right now (maybe you're in a café and you only have your iPod). What are you going to do without that kick-ass theme/extension?!? I am about to tell you how to get it.

    What you will need
    All you will need is MobileTerminal, which you can get from Cydia, Rock, or Here.

    Update: If you have an iOS4 device, the Mobile Terminal you get on Cydia won't work, so you have to use the new version of Mobile Terminal, v472 v520. You can get Mobile Terminal v472 v530 here.


    Let's Get Started
    1. First your going to need to open Terminal.
    On your springboard you need to tap the icon labeled "Terminal."

    Please Register or Log in to view images



    2.
    Once you open terminal you should see something like this (mine is themed):

    Please Register or Log in to view images



    3.
    Now for some typing! First you need to login as "root." To do this you need to type:
    Code:
    su
    and then it will say "Password:," where you type your password. (The default password is alpine)

    Please Register or Log in to view images


    Made flashing so you don't panic and then eat your iPod.

    4.
    Now we need to get the full name of the package by searching for it. I will be searching for the theme "Smoog." (If you already know the full package name, skip to step 5). Type this:
    Code:
    apt-cache search <name of package>
    I am searching for the Smoog theme, so I typed:
    Code:
    apt-cache search smoog
    After you type that in and press enter a lot of (human-readable) words will start appearing and it will scroll by itself if there are a lot of results. When you read a result, the first thing you will see is "com.something.packagename," and then a dash ("-"), and finally a description of the theme.

    ----------------------------------------------------------------------
    Update:
    If you have an iOS3 device, you can scroll simply by dragging your finger along the right-hand side of the screen. But if you have an iOS4 device & Mobile Terminal v472, you cannot scroll like you would on earlier devices. Instead, you have to enter a slightly different command to be able to see the whole list, that command would be:
    Code:
    apt-cache search <name of package> | less
    Once you enter that command, you will be presented with a static list of packages/themes, you can scroll by pressing any key. The only way to get out of the list is to press the 'Q' key.

    [B]Update 2:[/B] Scrolling has returned in v520
    ----------------------------------------------------------------------

    I have cropped the photo (so it is easier to read) to the name & description of theme I am interested in.

    Please Register or Log in to view images


    The full package name of the package/theme I am interested in is highlighted in red

    5.
    Now that we know what theme we want, we are finally ready to get and install it!
    To install it we need to type this:
    Code:
    apt-get install <full package name>
    I am getting Smoog so I typed this:
    Code:
    apt-get install com.macciti.smoog
    The "com.macciti.smoog" is the full package name. (when a did my search in step 4 you can see that I highlighted the full package name.

    Please Register or Log in to view images



    After you press enter (A.K.A "return") a lot of words that probably don't make any sense will start going across your screen. And it will probably look like this:

    Please Register or Log in to view images



    Note
    Sometimes it will ask you a (yes/no) question, always ending with "(y/n)," just answer yes this. Example:

    So just type this:
    Code:
    y

    ("y" means yes)
    From there is should continue on with the installation.

    If you are installing an extension or anything that isn't a theme (i.e. SBSettings) go to step 7

    If you are installing a theme (i.e. Smoog) go to step 8 & 9


    7. Now that you have installed your extension it is best that you respring.
    To respring in terminal, you need to type this:
    Code:
    killall SpringBoard
    This is case-sensitive, so make sure you copy it exactly as it is.


    You may now go to step 10


    8.
    When it is finished installing your theme, you are going to want to exit "root" user, for security purposes. To do this, all you have to do is type:
    9. Now we may exit terminal by tapping (I almost wrote taping instead of tapping there) the home button. Once the terminal window is closed
    , open WinterBoard and Huzzah! Your theme is there! You may now select the theme and close WinterBoard

    10. Congratulations! You're done & you just did your first Terminal installation!

    Notes

    • You don't need to add a new source to install a package from Terminal
    • You cannot install packages that require you to pay, that can only be done in Cydia/Rock
    • To uninstall a package from terminal, just type
    If you want this tutorial as a PDF, click here:
    View attachment Install a Package from MobileTerminal.pdf (Sorry, this PDF is outdated)

    If you found this tutorial helpful and/or have a question or recommendation, please say so.


    Edit: This tutorial made it on Rewind #4!

    --------------------------------------------------------------------------------------------------------------------------------
    I have also made a video tutorial that is based off this:

    Please Register or Log in to view images


  2. Theodosius

    Theodosius Active Member

    Joined:
    Jun 9, 2009
    Messages:
    3,071
    Likes Received:
    6
    Device:
    iPad 3
    Nice tutorial, very thorough, although it is rather simple, but can be complicated for some.
  3. Happyman7

    Happyman7 Member

    Joined:
    Sep 2, 2009
    Messages:
    679
    Likes Received:
    7
    Device:
    4G iPod touch
  4. Joe Rossignol

    Joe Rossignol Community Manager Staff Member

    Joined:
    Jan 9, 2008
    Messages:
    11,500
    Likes Received:
    1,268
    Device:
    iPhone 5 (Black)
    I've tagged this thread with tutorial

    Please Register or Log in to view images

    Well done.
  5. Theodosius

    Theodosius Active Member

    Joined:
    Jun 9, 2009
    Messages:
    3,071
    Likes Received:
    6
    Device:
    iPad 3
    Thanks, did that take a long time, looks very nice.
  6. Happyman7

    Happyman7 Member

    Joined:
    Sep 2, 2009
    Messages:
    679
    Likes Received:
    7
    Device:
    4G iPod touch
    *claps* Thanks sooo much

    Please Register or Log in to view images



    You both made my day

    Please Register or Log in to view images



    and yes, it took about 2½ hours to finish and revise.
  7. narwal13

    narwal13 Active Member

    Joined:
    Oct 12, 2009
    Messages:
    3,070
    Likes Received:
    6
    Device:
    5G iPod touch
    Hey, nice tutorial. This will also help if cydia/rock doesn't work, right?
  8. Theodosius

    Theodosius Active Member

    Joined:
    Jun 9, 2009
    Messages:
    3,071
    Likes Received:
    6
    Device:
    iPad 3
    That's what he said at the start of the Tutorial...

    So you have just found a kick-ass theme/extension and you want it badly, but here is the catch—Cydia (or Rock) isn't working for you and you can't fix it right now (maybe you're in a café and you only have your iPod). What are you going to do without that kick-ass theme/extension?!? I am about to tell you how to get it.
  9. SumDaii

    SumDaii Active Member

    Joined:
    Nov 17, 2008
    Messages:
    6,297
    Likes Received:
    0
    Device:
    iPod touch
    Wow, you put a lot of thought into this. Well done for the excellent tut!

    Please Register or Log in to view images

  10. Happyman7

    Happyman7 Member

    Joined:
    Sep 2, 2009
    Messages:
    679
    Likes Received:
    7
    Device:
    4G iPod touch

Share This Page