-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
76 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,32 @@ | ||
#!/bin/sh | ||
# 本机连接ssh [email protected] -p 22密码123456 | ||
# 请根据你自己的网络环境选择是本机(127.0.0.1)、局域网(192.*.*.*)或公网(ipv4地址)来连接 SSH | ||
|
||
# Mirror | ||
RURIMA_LXC_MIRROR="images.linuxcontainers.org" | ||
# OS to install. | ||
RURIMA_LXC_MIRROR=images.linuxcontainers.org | ||
|
||
# OS to install | ||
# Make sure there is setup/${RURIMA_LXC_OS}.sh | ||
RURIMA_LXC_OS="ubuntu" | ||
# OS version to install. | ||
RURIMA_LXC_OS_VERSION="oracular" | ||
RURIMA_LXC_OS=ubuntu | ||
|
||
# Add additional commands other than the system's built-in commands | ||
BUSYBOX_PATHS=" | ||
/data/adb/magisk/busybox | ||
/data/adb/ksu/bin/busybox | ||
/data/adb/ap/bin/busybox | ||
" | ||
HOSTNAME="$(getprop ro.product.model)" | ||
PASSWORD="123456" | ||
PORT="22" | ||
CONTAINER_DIR="/data/${RURIMA_LXC_OS}" | ||
# OS version to install | ||
RURIMA_LXC_OS_VERSION=oracular | ||
|
||
# In a chroot environment, the default interpreters and service startup commands may not be universal across different systems | ||
case "$RURIMA_LXC_OS" in | ||
archlinux|centos|debian|ubuntu) | ||
SHELL="bash" | ||
;; | ||
alpine) | ||
SHELL="sh" | ||
;; | ||
*) | ||
SHELL="sh" | ||
;; | ||
esac | ||
PASSWORD=123456 | ||
PORT=22 | ||
|
||
# The servicectl command is an open-source project. If you find it inconvenient to use, you can opt for other startup commands It is not mandatory | ||
# e.g. /usr/sbin/sshd | ||
case "$RURIMA_LXC_OS" in | ||
archlinux|centos) | ||
START_SERVICES="servicectl start sshd" | ||
;; | ||
debian|ubuntu) | ||
START_SERVICES="service ssh start" | ||
;; | ||
alpine) | ||
START_SERVICES="rc-service sshd restart" | ||
;; | ||
*) | ||
START_SERVICES="" | ||
;; | ||
esac | ||
# OS dir to install | ||
# CONTAINER_DIR="/data/${RURIMA_LXC_OS}" | ||
|
||
|
||
# ruri config | ||
|
||
REQUIRE_SUDO="true" | ||
MOUNT_POINT="/data/media/0" | ||
MOUNT_ENTRANCE="/sdcard" | ||
MOUNT_READ_ONLY="true" | ||
UNMASK_DIRS="false" | ||
PRIVILEGED="false" | ||
RUNTIME="false" | ||
|
||
REQUIRE_SUDO=true | ||
MOUNT_POINT=/data/media/0 | ||
MOUNT_ENTRANCE=/sdcard | ||
MOUNT_READ_ONLY=true | ||
UNMASK_DIRS=false | ||
PRIVILEGED=false | ||
RUNTIME=false | ||
|
||
|
||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters