{"id":459,"date":"2019-01-21T04:43:13","date_gmt":"2019-01-21T04:43:13","guid":{"rendered":"http:\/\/demo6.aiwalls.com\/ipapps\/?p=459"},"modified":"2019-01-21T04:43:13","modified_gmt":"2019-01-21T04:43:13","slug":"how-to-get-a-linux-shell-on-ipad-or-iphone-with-ish","status":"publish","type":"post","link":"https:\/\/www.txd9.com\/?p=459","title":{"rendered":"How to Get a Linux Shell on iPad or iPhone with iSH"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/demo6.aiwalls.com\/ipapps\/wp-content\/ios\/02\/20190120\/ish-linux-shell-ios-610x711515.jpg\" alt=\"iSH Linux shell on iPhone and iPad\" width=\"610\" height=\"711\" \/><\/p>\n<p>Have you ever wished you had a Linux command line on an iPad or iPhone?  With iSH you can get pretty close to accomplishing that goal. iSH Shell is a Linux shell for iOS that uses an x86 emulator to run a simplified version of Alpine Linux on an iPad or iPhone. You can even install packages and additional software directly into iSH with the Alpine package manager, offering access to the world of command line tools like wget, curl, python, git, and much more.<\/p>\n<p>\nInstalling the iSH Shell into iOS is fairly easy but requires TestFlight, which is a developer tool. Thus this is mostly for fun and for tinkering by advanced users. In case it&#8217;s not obvious, iSH is not a full version of Linux with a window manager and GUI like Ubuntu for iPad or iPhone, it&#8217;s just a shell, but it is by far the most functional local command line environment in iOS that is currently available. And it&#8217;s definitely pretty fun to play around with!  <\/p>\n<h2>How to Install iSH Linux Shell on iPad or iPhone<\/h2>\n<p>The simplest way to install iSH is through TestFlight, but you can also side load the app* if you prefer that route:<\/p>\n<ol>\n<li>From the iPad or iPhone, install TestFlight from the App Store by clicking here<\/li>\n<li>From the iPad or iPhone, click the following link: https:\/\/testflight.apple.com\/join\/97i7KM8O<\/li>\n<li>Choose to start testing, and accept the TestFlight Terms<\/li>\n<li>Click &#8220;Install&#8221; in TestFlight, this will install the iSH Shell application into iOS<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/demo6.aiwalls.com\/ipapps\/wp-content\/ios\/02\/20190120\/get-ish-linux-ios-2-610x516516.jpg\" alt=\"Install iSH Shell into iOS\" width=\"610\" height=\"516\" \/><\/p>\n<li>Launch iSH when finished<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/demo6.aiwalls.com\/ipapps\/wp-content\/ios\/02\/20190120\/get-ish-linux-ios-3-610x670517.jpg\" alt=\"Open iSH linux shell on iOS\" width=\"610\" height=\"670\" \/>\n<\/ol>\n<p>iSH will install onto your iPhone or iPad just like any other app, and you can open it and close it like any other iOS app.<\/p>\n<p>Once you open iSH, you&#8217;re in a fairly typical linux command line, and the typical range of commands from ls, mkdir, cd, cat, touch, vi, wget, zip, unzip, tar, chmod, grep, chown, rm, and much more are available to you.<\/p>\n<p>Given that iSH offers a command line environment, you&#8217;ll be doing a lot of typing. Typing on the on-screen touch screen keyboard is exactly what you&#8217;d expect; the typical cumbersome experience of typing on a touch screen, so if you&#8217;re trying to use this in any serious fashion you might want to use an external keyboard with the iOS device.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/demo6.aiwalls.com\/ipapps\/wp-content\/ios\/02\/20190120\/ish-linux-ios-ipad-1-610x458518.jpg\" alt=\"Nano on iPad\" width=\"610\" height=\"458\" \/><\/p>\n<p>* If you want to install iSH without TestFlight you can do so. Instead, download the iSH source from github and then follow instructions for how to side load apps into iOS, using the iSH source. The side load process requires a Mac and Xcode.<\/p>\n<h3>How to Install Packages into iSH on iOS with apk<\/h3>\n<p>You can install new software into iSH with &#8216;apk&#8217;, the Alpine linux package manager.<\/p>\n<p>For example if you want to add lynx to iSH the following command:<\/p>\n<p><code>apk add lynx<\/code><\/p>\n<p>Then you can just run lynx to visit your favorite website as usual with:<\/p>\n<p><code>lynx osxdaily.com<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/demo6.aiwalls.com\/ipapps\/wp-content\/ios\/02\/20190120\/ish-linux-ios-ipad-4-610x458519.jpg\" alt=\"iSH linux shell running lynx on iPad\" width=\"610\" height=\"458\" \/><\/p>\n<p>Or if you want to add python:<\/p>\n<p><code>apk add python<\/code><\/p>\n<p>You can add nearly anything with apk, though not everything works (zsh does not currently work for example, nor does telnet)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/demo6.aiwalls.com\/ipapps\/wp-content\/ios\/02\/20190120\/use-apk-add-packages-ish-linux-ios-610x458520.jpg\" alt=\"Using apk to add packages to iSH Linux shell on iOS\" width=\"610\" height=\"458\" \/><\/p>\n<p>You can update packages with:<\/p>\n<p><code>apk update packagename<\/code><\/p>\n<p>You can also search for package by name:<\/p>\n<p><code>apk search name<\/code><\/p>\n<p>And of course you can remove packages as well:<\/p>\n<p><code>apk del packagename<\/code><\/p>\n<h3>Updating iSH<\/h3>\n<p>Note that you must update iSH Shell from the TestFlight application, rather than the App Store. <\/p>\n<p>This is because some of the functionality offered by iSH is apparently not allowed in the App Store, but perhaps that will change down the road.<\/p>\n<p>The developer is updating iSH fairly often so just open the TestFlight app and install any available updates when they are shown for iSH Shell. <\/p>\n<p>We&#8217;re showing mostly iSH on iPad screenshots here, but it works the exact same on iPhone, just with a much smaller amount of screen space.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/demo6.aiwalls.com\/ipapps\/wp-content\/ios\/02\/20190120\/ish-linux-shell-iphone-369x800521.jpg\" alt=\"iSH Linux shell on iPhone\" width=\"369\" height=\"800\" \/><\/p>\n<p>If all of this seems overly complicated, or you don&#8217;t want to use TestFlight or side load anything, you can try an app that is allowed on the App Store called OpenTerm, OpenTerm gives you a command line of sorts in iOS but it&#8217;s much more limited. <\/p>\n<p>Perhaps one day we&#8217;ll even get an official Terminal application in iOS like there is on the Mac? Until then, try out iSH, or you could just get an ssh client and connect to your own shell elsewhere.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever wished you had a Linux command line on an iPad or iPhone? With iSH you can get pretty close to accomplishing that<\/p>\n","protected":false},"author":1,"featured_media":460,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[13,38,144,143,142],"class_list":["post-459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-tos","tag-ipad","tag-iphone","tag-ish","tag-linux","tag-shell"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.txd9.com\/index.php?rest_route=\/wp\/v2\/posts\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.txd9.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.txd9.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.txd9.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.txd9.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=459"}],"version-history":[{"count":0,"href":"https:\/\/www.txd9.com\/index.php?rest_route=\/wp\/v2\/posts\/459\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.txd9.com\/index.php?rest_route=\/wp\/v2\/media\/460"}],"wp:attachment":[{"href":"https:\/\/www.txd9.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.txd9.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.txd9.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}