![theobroma systems RK3399-Q7 Скачать руководство пользователя страница 30](http://html.mh-extra.com/html/theobroma-systems/rk3399-q7/rk3399-q7_user-manual_1101597030.webp)
Second stage of debootstrap inside the new root dir:
/
debootstrap
/
debootstrap
--
second
-
stage
locale
-
gen en_US
.
UTF
-
8
update
-
locale LANG
=
en_US
.
UTF
-
8
LANGUAGE
=
en_US
.
UTF
-
8
LC_MESSAGES
=
en_US
.
UTF
-
8
Setting up apt sources:
cat
<<
EOT
> /
etc
/
apt
/
sources
.
list
deb http:
//
ports
.
ubuntu
.
com
/
ubuntu
-
ports xenial main
deb http:
//
ports
.
ubuntu
.
com
/
ubuntu
-
ports xenial
-
security main
deb http:
//
ports
.
ubuntu
.
com
/
ubuntu
-
ports xenial
-
updates main
EOT
We can now pull the latest apt database from the Ubuntu mirrors and install the locales package (in jessie the dialog package
might be needed as well):
apt
-
get update
apt
-
get install locales dialog
dpkg
-
reconfigure locales
Install any additional packages inside the chroot. An ssh server and sudo are recommended:
apt install openssh
-
server sudo
Set the root password for logging in via console or ssh:
passwd
root
login
over
ssh
is
not
permitted
by
default
(set
to
“
no
”),
or
permitted
only
with
public
key
(set
to
“
without-password
”). To verify that, run:
cat
/
etc
/
ssh
/
sshd_config
|
grep
"PermitRootLogin"
PermitRootLogin without
-
password
Open the file “
/etc/ssh/sshd_config
” in your editor of choice and set PermitRootLogin to “
yes
”.
A better option would be to create a user besides root:
adduser user
Optionally, you can add it to the
sudo
list:
Release v0.2-3-g574c114
Page
26
Содержание RK3399-Q7
Страница 2: ......