Difference between revisions of "Template:OfficialDebianCore"
(updated by API) |
(updated by API) |
||
Line 9: | Line 9: | ||
===View IP address=== | ===View IP address=== | ||
Since the Debian Bullseye hostname is the hardware model by default, you can use the ping command to get the IP address:<code>ping {{{1}}}</code><br/> | Since the Debian Bullseye hostname is the hardware model by default, you can use the ping command to get the IP address:<code>ping {{{1}}}</code><br/> | ||
+ | Debian Bullseye uses network-manager to manage the network, and the network ports are configured to automatically obtain IP addresses by DHCP (including devices with multiple network ports). | ||
===Connect to Debian via SSH=== | ===Connect to Debian via SSH=== | ||
Run the following command<code>ssh pi@{{{1}}}</code><br/> | Run the following command<code>ssh pi@{{{1}}}</code><br/> | ||
Line 51: | Line 52: | ||
cd sd-fuse_rk3568 | cd sd-fuse_rk3568 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | | NanoPi-R6C | ||
| NanoPi-R6S = | | NanoPi-R6S = | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 108: | Line 110: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
After installation, visit: http://Device-IP-Address:8888 on your computer browser to view the nextcloud web page. | After installation, visit: http://Device-IP-Address:8888 on your computer browser to view the nextcloud web page. | ||
+ | <!-- | ||
+ | ====Configure Docker with the overlay2 storage driver==== | ||
+ | See this document: [[Configure Docker with the overlay2 storage driver]] | ||
+ | --> |
Revision as of 03:47, 8 March 2023
Contents
1 Work with Debian Core
1.1 Account & Password
Regular Account:
User Name: pi
Password: pi
Root:
the root user account is disabled by default, you may configure the root password through the 'sudo passwd root' command.
1.2 View IP address
Since the Debian Bullseye hostname is the hardware model by default, you can use the ping command to get the IP address:ping {{{1}}}
Debian Bullseye uses network-manager to manage the network, and the network ports are configured to automatically obtain IP addresses by DHCP (including devices with multiple network ports).
1.3 Connect to Debian via SSH
Run the following commandssh pi@{{{1}}}
The default password is: pi
1.4 Update Software Packages
$ sudo apt-get update
1.5 Change time zone
1.5.1 Check the current time zone
timedatectl
1.5.2 List all available time zones
timedatectl list-timezones
1.5.3 Set the time zone (e.g. Shanghai)
sudo timedatectl set-timezone Asia/Shanghai
1.6 Change startup LOGO
Replace the following two files in the kernel source code directory and recompile the kernel:
kernel/logo.bmp
kernel/logo_kernel.bmp
Or use the script to operate, as shown below:
- Download scripts:
git clone https://github.com/friendlyarm/sd-fuse_rk3399.git -b kernel-4.19 --single-branch cd sd-fuse_rk3399
- Compile kernel and repackage firmware
convert files/logo.jpg -type truecolor /tmp/logo.bmp convert files/logo.jpg -type truecolor /tmp/logo_kernel.bmp sudo LOGO=/tmp/logo.bmp KERNEL_LOGO=/tmp/logo_kernel.bmp ./build-kernel.sh debian-bullseye-core-arm64 sudo ./mk-sd-image.sh debian-bullseye-core-arm64 sudo ./mk-emmc-image.sh debian-bullseye-core-arm64
1.7 Soft Factory Reset
Execute the following command in a terminal:
sudo firstboot && sudo reboot
1.8 Install Docker Engine on Debian
The docker installer uses iptables for nat, unfortunately Debian uses nftables, here we just setup Debian to use the legacy iptables:
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
1.8.1 Install Docker Engine
curl -fsSL https://get.docker.com | bash
Let’s verify:
sudo docker info
1.8.2 Run Docker as a non-root user
sudo groupadd docker sudo gpasswd -a ${USER} docker sudo systemctl restart docker sudo chmod a+rw /var/run/docker.sock
Let’s verify:
docker images
1.8.3 Testing Docker: Installing Nextcloud with docker
mkdir ~/nextcloud -p docker run -d -p 8888:80 --name nextcloud -v ~/nextcloud/:/var/www/html/ --restart=always --privileged=true arm64v8/nextcloud
After installation, visit: http://Device-IP-Address:8888 on your computer browser to view the nextcloud web page.