Linux deploy tutorial

Source: Internet
Author: User
Tags ssh server

Linux deploy tutorial

Linux deploy is an App that can quickly install and run the Linux operating system on Android devices. It complies with the GPLv3 protocol.

I have been using it for a while and talk about my use experience. The following Linux deploy is short for Ld.

Download and install Ld first. After running Ld, a full-black interface is displayed. It is actually a built-in terminal simulator, but it can only be displayed without any input function.

Press the menu key (three vertices arranged vertically in the lower right corner) and select Settings to enter the Settings.

Items in the settings:

#1: Lock the screen: You can choose to enable it based on your preferences. We recommend that you disable it because VNC Viewer or ssh is used for linux operations, which is irrelevant to Ld, close it.

#2: locking Wi-Fi: We recommend that you enable this function to prevent the vnc or ssh connection from suddenly dropping. Next we will talk about how to set up the ssh service and vnc service. If you disable wifi, you can also operate linux locally.

#3: Language: After selecting Simplified Chinese, exit the software and enter again to complete the language switching.

#4: font size: the font size of the built-in terminal. The default value is 12.

#5: Scroll size: the maximum number of rows retained by the terminal. The default value is 100.

#6: themes: dark and bright colors, which can be adjusted based on your preferences.

#7: display icon: it is recommended to enable it to prevent the background from being killed by the system.

#8: boot: We recommend that you disable it.

#9: environment directory: The system environment directory of Ld, which is not recommended for modification.

#10: built-in terminal: enabled by default.

#11: Create a symbolic link: I don't know what to do. I just need to close it.

#12: Update environment: Run once after the configuration is complete. If there is a change #9, run it again after the modification.

#13: remove the environment: Run this option once before modification #9.

#14: debug mode: displays debugging information.

#15: tracking mode: I personally think that the enhanced version of #14 shows more data volumes, including various background operation commands.

#16: Log: whether to choose to record terminal operation logs. It is recommended to disable this function.

#17: Log File: select a save directory for #16.

 

After setting, you can install linux.

You can adjust the name of the configuration file first.

For example, debian is set because debian is used.

Click the <arrow on the left of the penguin to go to the configuration file editing page.

 

 

The buttons above areAdd a new configuration file, modify the name of the currently selected configuration file, delete the currently selected configuration file, and select.

You can import or export configuration file settings in the options, which is convenient for backup and recovery. However, the exported files do not include Ld settings.

After the setting is complete, you can directly press the return key to return to the terminal interface.

 

 

Next we can start to download and install linux. I use debian, so debian is used as an example.

Different releases may have different settings, but they are basically the same, and they do not seem to need to be modified.

 

Click the download arrow shown in the figure to go to the configuration file modification page.

Directly view the following configurations.

 

# Deployment:

Release Version: including a lot. I chose Debian.

Release Version: each time the release version is updated, it will be a code name. Baidu, I like Debian jessie, which represents the Debian 8. x version. I chose the jessie.

Architecture: depending on the processor, You need to select a different architecture. The machine I use is Xiaomi 2 S, so armhf is selected. Generally, the current CPU architecture is automatically recognized and selected.

Image address: the default is the official release of the default source, are foreign, you can set their own domestic source, like I am Debian, set Debian China official source: http://ftp.cn.debian.org/debian/

Installation type: select a file by default.

Installation path: This setting will be troublesome. Many machines use the/storage/emulated/0/type by default, which is especially prone to read errors, we recommend that you modify the format to/sdcard/xxx. xxx Can be a custom storage directory. Of course, you can directly set the root directory of the img image security.

Image Size: This depends on the file system of your storage and the size of the remaining space. If it is a FAT32 file system, the maximum size cannot exceed 4095 MB, but exFAT or Ext4 does not have this limit. As long as you have enough space, you can set a lot of settings.

User name: linux User Name. Needless to say.

User password: the linux User password. The default password is changeme. The reason for this is that no matter how you set this password, if you want to connect to the VNC service, the password is changeme, I don't know if it is a BUG.

DNS server: This is generally not required.

Localization: linux locale settings, Chinese words is zh_CN.UTF-8.

Desktop Environment: LXDE is used by default. I chose Xfce. If you are confident, try other methods. Anyway, XTerm, LXDE, and Xfce can run normally, and all others are x-server crashes, I don't know why.

Select components: select a desktop environment based on your preferences. If you do not select a desktop environment, the VNC server will not run and the selected desktop environment will not be installed. SSH is recommended. It is easier to operate linux on Android to use command lines.

# Start:

Chroot directory: Skip this setting.

SSH: it is recommended to enable it. It is convenient to use JuiceSSH or ConnectBot SSH for management.

SSH settings: Adjust the SSH service port number. The default value is 22, which is not recommended.

Gui: If the desktop environment and VNC Server are installed, enable it.

Graphics subsystem: Default VNC. I will not introduce the other two.

Gui setting: The color depth is changed to 24, DPI does not move, and the length and width are adjusted based on the machine conditions.

Custom Script: I have never used it...

Custom mounting: We recommend that you enable this feature to access the machine's storage.

Mount point: the absolute path of the Mount directory. It is no good to directly set the root directory/. in linux, cd/mnt can be accessed and managed.

After the configuration is complete, return to the top list of operations and perform the installation operation to start downloading and installation.

The installation process varies depending on the network speed. After the installation is complete, the <install text appears. Check whether an error is reported. If not, the installation is successful.

Execute stop once, and start again after <stop "appears. If <start" appears, the startup command is complete. Check whether an error is returned, if no error is reported, you can use the VNC service or SSH service.

For VNC and SSH server settings, if you are operating on your mobile phone, you can enter localhost directly for the address, and the default port number for SSH is 22 (You have modified it yourself ), the default VNC port number is 5900.

If the network is connected, [x. x. x. x]. The network address is displayed. You can connect to other hosts in the same LAN. For example, if my home WiFi is connected, 192.168.0.101 is displayed. I can directly use ssh 192.168.0.101 on linux: 22. connect to and manage the linux operating on Ld on my mobile phone. The same applies to VNC settings.

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.