1. Brush in the original image bag of the great God of enshan (the TV box only needs to be completed 1)
Installing the Amlogic USB Burning Tool package will automatically load the driver, otherwise it will be loaded manually
Load mirror N1_mod_by_webpad_v2.2_20180920.img
Uncheck the tool erase flash and erase bootloader
usb 2 is required to connect the computer to the usb public line 0 interface and usb interface next to hdmi interface
If the connection is successful, you will be prompted automatically
Click Start (if unsuccessful, you need to unplug the box cable and power supply again)
Wait for completion to close the box
2. Make image U SB flash disk
Import firmware of U SB flash disk with Win32DiskImager_ 5.77_ Aml-s905_ Debian_ stretch_ default_ 5.0. 2_ 20190401.img
The U SB flash disk needs to be formatted as a whole. If there are multiple disks, they need to be deleted
Wait for the import to complete
Copy the dtb file to the dtb folder on USB flash drive
Edit u env of USB flash disk INI file
If not, add it; otherwise, modify the dtb_name=/dtb/meson-gxl-s905d-phicomm-n1-xiangsm.dtb
3.ADBU disk startup
Insert the usb drive into the usb interface next to the hdmi interface of the box
Open the router management page to view the box IP
Open the batch program and input ip successfully, and the box will restart automatically (if it is an official image, you need to open adb [click the version number continuously on the box])
4. Install debian
Firmware package of enshan God
When the restart is complete, you will be prompted for a password
Use MobaXterm1_CHS1 connection box
Account root
The first two times is the default password 1234
The last 2 times are user-defined passwords, which cannot be too simple
Press ctrl+c to exit the author settings and reconnect the box
Enter NAND SATA install or / root / install sh
Wait for the installation to complete (Complete copy OS to eMMC indicates success)
Shut down now or unplug the power
Unplug the USB flash disk
4.1. system optimization
4.1. 1. Optimize apt source server
# Edit source address file vi /etc/apt/sources.list # i edit shift+inster paste esc exit editing: q! Forced exit: wq! Force save #-------------------------------------------------------- # Replace Ubuntu with deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse #deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse #deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse #deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse #deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse #-------------------------------------------------------- # debian replace with deb [ arch=arm64,armhf ] https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free deb [ arch=arm64,armhf ] https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free deb [ arch=arm64,armhf ] https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free deb [ arch=arm64,armhf ] https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free #deb [ arch=arm64,armhf ] https://mirrors.tuna.tsinghua.edu.cn/debian/ sid main contrib non-free # #-------------------------------------------------------- # Update and upgrade after modification apt-get update # You need to enter y twice halfway apt-get upgrade
4.1. 2. Set the time zone to Beijing time
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone armbian-config #Select personal #Select Timezone #Select Asia #Select Shanghai
4.1. 3. Network configuration (the default DNS source of this part is @ Luminous)
# Turn off the default DNS of ARMBIAN and let it follow the route assignment rm /etc/resolvconf/resolv.conf.d/head && touch /etc/resolvconf/resolv.conf.d/head # Configure wifi select the second Activate a connection, select the wifi to be connected and enter the password nmtui # Configure the physical address of the network card # Check the current MAC of the system and record it ifconfig # ether fc:7c:02:93:00:69 # Edit network card configuration vi /etc/network/interfaces #Add a line under iface eth0 inet dhcp and save it pre-up ifconfig eth0 hw ether fc:7c:02:93:00:69
4.2. Basic configuration
4.2. 1 open ll
# Open ll vi ~/.bashrc # Open comment alias ll='ls -l' # Reload source ~/.bachrc # or . ~/.bashrc
4.2. 2. Mount disk
# View disk fdisk -l # See help for disk operation details, which can be ignored fdisk /dev/sda1 # Format partition mkfs -t ext3 -c /dev/sda1 mke2fs -j /dev/sda1 # View the currently mounted partition and size df -TH # Mount partition mount /dev/sda1 /mnt/mmc -t ntfs # Unmount partition umount /mnt/mmc #Mount if present #The disk contains an unclean file system (0, 0). #The file system wasn't safely closed on Windows. Fixing. #It needs to be repaired #Install ntfs sudo apt-get install ntfs-3g #repair sudo ntfsfix /dev/sda1 #Configuration is permanently effective vi /etc/fstab #join /dev/sda1 /mnt/mmc ntfs defaults 0 0
5. Upgrade centos7 (wifi function is discarded after upgrading)
cd /root wget https://mirrors.tuna.tsinghua.edu.cn/centos-vault/altarch/7.4.1708/isos/aarch64/CentOS-7-aarch64-rootfs-7.4.1708.tar.xz #If the line is disconnected, use the continuation command: wget -c https://mirrors.tuna.tsinghua.ed ... tfs-7.4.1708.tar.xz mkdir /root/x e2fsck -y /dev/mmcblk1p2 mount /dev/mmcblk1p2 /root/x cd x rm -rf * # [size=18.6667px] [error may be reported, please ignore and continue] tar -xvf /root/CentOS-7-aarch64-rootfs-7.4.1708.tar.xz -C /root/x rm -rf /root/x/lib/modules /root/x/lib/firmware cp -rp /lib/modules /root/x/lib cp -rp /lib/firmware /root/x/lib cd /root umount x poweroff # Unplug the USB flash disk, plug in and out the power cable, and restart to enter CentOS, # The account root password is centos
5.1 replace yum source
yum -y install wget cd /etc/yum.repos.d/ wget http://mirrors.aliyun.com/repo/Centos-7.repo # backups mv CentOS-Base.repo CentOS-Base.repo.bak # reduction mv CentOS-Base.repo.bak CentOS-Base.repo # Replace the repo file of the system mv Centos-7.repo CentOS-Base.repo # Replace centos in baseurl with centos altarch vi CentOS-Base.repo # Execute the yum source update command yum clean all yum makecache yum -y update
5.2 upgrading and installing basic tools
yum -y install net-tools.x86_64 bind-utils vim
5.3 installation of pagoda panel
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
6. Install the pagoda panel
6.1. Installation and uninstallation
# You need to enter y twice # Debian version wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh
# You need to enter y twice # Debian version wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh # CentOS 7 version yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
# uninstall wget http://download.bt.cn/install/bt-uninstall.sh sh bt-uninstall.sh
6.2. Basic command
# View default parameters bt default
6.3. problem
# Curl: (28) failed to connect to www.bt cn port 443: Connection timed out # Indicates that dns is contaminated. You need to specify host vi /etc/hosts 42.157.129.124 www.bt.cn echo "60.186.214.94 www.bt.cn" >> /etc/hosts