Chinese Documentation: README_CN.md
This script is specifically designed for terminal environments on Android 16 systems, enabling quick configuration of graphical interface access for Debian 12. After configuration, you can access the native Debian 12 GUI environment within the Android terminal from your PC through the following steps:
- Run this script in the Android terminal to complete configuration
- Execute
adb forward tcp:5901 tcp:5901on your PC for port forwarding - Connect using any VNC client to
localhost:5901
- One-click Configuration: Automates installation and configuration of all necessary components
- SSH Access: Configures SSH service with modified default port 10022
- GUI Support: Installs full desktop environment and VNC server
- Smart Detection: Automatically skips completed configuration steps
- UTF-8 Locale Check: Prevents redundant locale configuration
- Detailed Logging: Color-coded messages for different operation levels
- Android 16 system terminal environment
- Save the script to your Android terminal device (e.g.,
android16-terminal.sh) - Grant execution permissions:
chmod +x android16-terminal.sh
- Execute the script:
./android16-terminal.sh
- Ensure Android device is connected via USB
- Perform port forwarding on PC:
adb forward tcp:5901 tcp:5901
- Open VNC client and connect to:
localhost:5901 - Enter the VNC password set during script execution
The script performs the following configurations sequentially:
- System Updates: Refresh package lists
- SSH Service Configuration:
- Install OpenSSH server
- Modify SSH port to 10022
- Enable password authentication
- Locale Settings:
- Install locales package
- Prompt for UTF-8 locale setup only when unconfigured
- Desktop Environment Installation:
- Install tasksel utility
- Deploy full desktop environment
- VNC Server Configuration:
- Install TigerVNC server
- Set VNC password (first-run only)
- Configure VNC server parameters
- Enable automatic startup on boot
- VNC password setup prompt appears during first execution - remember your credentials
- Script may require multiple confirmations during execution - follow on-screen instructions
- Recommended to run in stable network environment for reliable package downloads
- After configuration, manage VNC service with:
- Start:
sudo systemctl start tigervncserver@:1.service - Stop:
sudo systemctl stop tigervncserver@:1.service - Check status:
sudo systemctl status tigervncserver@:1.service
- Start:
We welcome Issues and Pull Requests to improve this project. Please provide detailed error descriptions and reproduction steps when reporting issues.
This project is open-sourced under MIT License.