Ish shell

之前在安卓手机上通过termux部署安装linux shell,家里有一个闲置的iphone,就想能不能在iphone上也运行shell,最后ish shell APP,
大家有兴趣可以尝试一下。

一、安装

在苹果 app store 直接搜索iSH Shell 安装即可。

二、修改镜像源

  1. 修改/etc/apk/repositories文件

    vi /etc/apk/repositories
    

    最上面添加这两行:

    # 阿里云源
    https://mirrors.aliyun.com/alpine/v3.11/main
    https://mirrors.aliyun.com/alpine/v3.11/community
    # 中科大源
    https://mirrors.ustc.edu.cn/alpine/v3.11/main
    https://mirrors.ustc.edu.cn/alpine/v3.11/community
    #这两行,注意v后面的版本号,对应原来文件中的版本号。
    

    保存退出,使用apk update命令更新列表

  2. sed替换

    sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
    

三、配置ssh server

Here’s a quick step by step guide for running an ssh server.

  1. $ apk add openssh — install the ssh tools and the ssh server.
  2. $ ssh-keygen -A — create the host keys.
  3. $ passwd — Set a password for root to protect your iOS device
  4. $ echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
  5. $ /usr/sbin/sshd

You should now be able to ssh to your device with username root and the password you typed.

SSH from the same device

If you are trying to connect via ssh from the same device, make sure you set the port configuration of sshd to use a non standard one (greater than 1024, eg: 22000).

You can do this by editing /etc/ssh/sshd_config and set Port 22000 (Replace 22000 with any non-standard port).

After this, you can ssh (from iSH itself) using ssh root@localhost -p 22000

四、在后台运行

在终端执行命令$ cat /dev/location > /dev/null &

github地址: https://github.com/ish-app。

Ish iphone和iPad上的终端模拟器-ISO-linux-Shell相关推荐

  1. web浏览器_如何在iPhone和iPad上更改默认的Web浏览器

    当我们使用每一款设备的时候,都会有自带的浏览器,不过通常情况下大家很少用到它,因为它不如第三方的浏览器好用.不过幸运的是Apple发布iOS 14和iPadOS 14时,它进行了一项更改,使第三方浏览 ...

  2. ipad和iphone切图_如何在iPhone和iPad上密码保护照片

    ipad和iphone切图 Sometimes, you need to protect your iPhone or iPad photos from prying eyes that might ...

  3. ipad和iphone切图_如何从iPhone和iPad上的Mail应用程序删除电子邮件帐户

    ipad和iphone切图 Nicole Lienemann/Shutterstock妮可·利尼曼(Nicole Lienemann)/ Shutterstock When you add your ...

  4. 如何在iPhone和iPad上允许“不受信任的快捷方式”

    Khamosh Pathak Khamosh Pathak Shortcuts is now a stock app in iOS 13, iPadOS 13, and beyond. Thanks ...

  5. ipad iphone开发_如何在iPhone或iPad上更改应用程序的语言

    ipad iphone开发 BigTunaOnline/Shutterstock.comBigTunaOnline / Shutterstock.com Apple's iOS 13 makes th ...

  6. ipad和iphone切图_如何在iPhone和iPad上的Messages App中固定对话

    ipad和iphone切图 Khamosh Pathak Khamosh Pathak Between updates from your bank and group chats, the Mess ...

  7. imessage_如何在iPhone和iPad上的iMessage组中提及某人

    imessage Khamosh Pathak Khamosh Pathak Sometimes, it's difficult to get someone's attention in a lar ...

  8. 拜尔滤色拜尔滤色镜_如何在iPhone或iPad上启用滤色器以方便眼睛阅读

    拜尔滤色拜尔滤色镜 On an iPhone or iPad, you can use the "Display Accommodations" accessibility fea ...

  9. 如何在iPhone和iPad上的Safari中在网页上查找文本

    Sometimes it's tough to find specific information within a web page in Safari for iPhone or iPad. Lu ...

最新文章

  1. SCOM2012R2 (5) MONITOR WINDOWS OF WORKGROUP
  2. 12C OCP IZO-62 题库(8月以前)
  3. 【视频】vue组件的局部注册
  4. springboot嵌入thymeleaf后css404_SpringBoot2整合Thymeleaf
  5. 十招教你学会软件破解(转)
  6. 使用K-Means对美因河畔法兰克福的社区进行聚类
  7. show status和show variables区别解析
  8. python写选择排序_如何快速掌握python选择排序算法?
  9. html5双波浪线怎么添加,在WPS中如何给段落添加双波浪线边框
  10. fun(1),fun(2),fun(3)
  11. Linux内核分析——进程的描述和进程的创建
  12. 矩阵变量的矩阵值函数微分公式 (原创)
  13. RedHat7 安装 MySQL 5.7
  14. SDL介绍----1、SDL与SDL安全活动
  15. the7主题footer.php,the7主题的安装和数据导入
  16. 医患诚信系统——软件项目的风险
  17. 使用Arcgis制作的专题地图
  18. SAP ST05 追踪找表法
  19. EasyExcel实现Mysql数据库Excel数据导出
  20. Vue3实现打字机效果

热门文章

  1. git push 报错 error: failed to push some refs to ‘git@xxx/xx.git‘
  2. 企业如何做好终端设备管理?
  3. Virtual Hosts
  4. LATEX教程第四讲——那些不得不说的宏包(下)
  5. 第三章 国外信托公司业务
  6. 《程序员》9月刊推荐:移动应用产业链大势图
  7. ElasticSearch教程-索引的介绍
  8. AD原理图设计中如何添加NET CLASS和差分线
  9. 【论文笔记09】Teaching Machines to Read and Comprehend
  10. 整理 :11个搭讪绝招助你告别单身