Last edited by Free In 2020-9-29 17:06 Editor

Sublinux is a Linux operating environment created by using chroot on Android, allowing users to use Android and Linux applications and Docker container services on Station at the same time.
sublinux.png

ROM Download
(1) Download Android ROM (Code: wxtr)

Flash the ROM after downloading.

(2) Download Sublinux ROM (Code: fcqz)

Rename the file to sublinux.img after downloading.

Usage Mode
Copy sublinux.img to an external disk or the internal storage of Station.
Here are 3 ways:

(1)To internal storage (Not recommended)
▪Connect Station and PC with Type-C cable. Copy sublinux.img to the root directory of internal storage.

Shortcomings:
▪The internal storage is limited; when switching the mode, you need to manually migrate the sublinux.img and application data.
▪When restoring factory settings, sublinux.img and application data will be cleared.
(2) To external disk of FAT/NTFS
▪High-speed disk (such as HHD, SSD) is recommended.
Note: FAT is not recommended because the file larger than 4G cannot be stored.
▪Copy sublinux.img to the root directory of external disk→ sublinux directory

Shortcomings:
▪Because FAT/NTFS does not support linux file permission, application data can only be stored in internal storage whose storage is limited.
▪When restoring factory settings, sublinux.img and application data will be cleared.

(3) To external disk of EXT4 (Recommended)
▪High-speed disk (such as HHD, SSD) is recommended. And it needs to be formatted to EXT4.
# Format the external disk to EXT4. Here takes the U disk(sdb) as an example, please back up relevant data and operate carefully!
  1. sudo parted /dev/sdb mktable msdos
Copy the code

# 65535s Please refer to https://blog.csdn.net/open_data/article/details/44828741 to learn how to align partitions; or type 0% directly (it may affect the performance).
  1. sudo parted /dev/sdb mkpart primary ext4 65535s 100%

  2. sudo mke2fs /dev/sdb1 -t ext4

  3. sudo apt install android-sdk-ext4-utils

  4. sudo make_ext4fs /dev/sdb1
Copy the code
▪Copy sublinux.img to the root directory of external disk→ sublinux directory

Advantages:
▪Application data can be stored in sublinux/data directory of the external disk; the space is large enough and data migration is easy.
▪When restoring factory settings, sublinux.img and application data will not be cleared.

Login to Use
After finish copying the sublinux.img, plug the external disk (if you use that) into the blue USB3.0 or USB C/DP interface preferentially.
Connect to power and start or restart. It will be a little slow for the first bootup using sublinux. If you copy to internal storage, it usually takes more than 2 minutes for the first bootup, and it takes more than 30s for the following bootup.
It is recommended to set Station as a static IP. The station_ip below needs to be modified according to the actual situation, such as 192.168.31.100.

SSH Login
Command: ssh station@station_ip
Password: firefly

【Sublinux】Topic List: