20250428在ubuntu18.04.6系统上完成编译NanoPi NEO开发板的FriendlyCore系统

【需要拿掉apt在启动之后自动更新】
处理办法1:
最简单的,直接关闭自动更新:

sudo nano /etc/apt/apt.conf.d/20auto-upgrades
把值改为0

代码语言:txt
复制
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";


rootroot@ubuntu:~$ sudo apt install openssh-server
rootroot@ubuntu:~$ sudo apt install terminator
rootroot@ubuntu:~$ sudo apt install samba
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt install gawk
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt install ncurses*
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt-get install exfat-utils exfat-fuse
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt install git
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt-get install u-boot-tools
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt-get install net-tools
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt-get install nethogs
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt install gcc
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt install g++
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt-get install build-essential


rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo cp smb.conf smb.conf.bak1
rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo vi smb.conf
最后面加入:
sudo echo "[rootroot]" >> smb.conf
sudo echo "comment=rootroot Shared Folder" >> smb.conf
sudo echo "path=/" >> smb.conf
sudo echo "#public=yes" >> smb.conf
sudo echo "writable=yes" >> smb.conf
sudo echo "#readonly=yes" >> smb.conf
sudo echo "valid users=rootroot" >> smb.conf
sudo echo "create mask=0700" >> smb.conf
sudo echo "directory mask=0700" >> smb.conf
sudo echo "available=yes" >> smb.conf
sudo echo "browseable=yes" >> smb.conf


rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ sudo smbpasswd -a rootroot
New SMB password:
Retype new SMB password:
Added user rootroot.
rootroot@rootroot-Lenovo-IdeaPad-S410:/etc/samba$ 


20250428在ubuntu18.04.6系统上完成编译NanoPi NEO开发板的FriendlyCore系统
2025/4/28 22:56

整理过的步骤:
【请严重注意,在你编译之前,请务必不要删除.repo目录】
rootroot@ubuntu:~$ cd 07_源代码/
rootroot@ubuntu:~/07_源代码$ ll
rootroot@ubuntu:~/07_源代码$ tar xvf friendlywrt-h3-20200417.tar 
rootroot@ubuntu:~/07_源代码$ mv friendlywrt-h3/ ..
rootroot@ubuntu:~/07_源代码$ cd ..
rootroot@ubuntu:~$ cd friendlywrt-h3/
rootroot@ubuntu:~/friendlywrt-h3$ ll
rootroot@ubuntu:~/friendlywrt-h3$ cd pre-download/
rootroot@ubuntu:~/friendlywrt-h3/pre-download$ ll
rootroot@ubuntu:~/friendlywrt-h3/pre-download$ ./unpack.sh 
rootroot@ubuntu:~/friendlywrt-h3/pre-download$ ll
rootroot@ubuntu:~/friendlywrt-h3/pre-download$ cd ..
rootroot@ubuntu:~/friendlywrt-h3$ ./build.sh nanopi_neo_core.mk
  ./build.sh uboot              -build uboot only
  ./build.sh kernel             -build kernel only
  ./build.sh friendlywrt        -build friendlywrt rootfs only
  ./build.sh sd-img             -pack sd-card image, used to create bootable SD card
  ./build.sh emmc-img           -pack sd-card image, used to write friendlywrt to emmc


 

rootroot@ubuntu:~$ cd 07_源代码/
rootroot@ubuntu:~/07_源代码$ ll
total 4141320
drwxr-xr-x  2 rootroot rootroot       4096 Apr 28 06:18 ./
drwxr-xr-x 16 rootroot rootroot       4096 Apr 28 06:15 ../
-rw-r--r--  1 rootroot rootroot 4078520320 Apr 24 08:43 friendlywrt-h3-20200417.tar
-rw-r--r--  1 rootroot rootroot         62 Apr 24 08:32 friendlywrt-h3-20200417.tar.hash.md5
-rw-r--r--  1 rootroot rootroot  162164494 Apr 24 08:33 linux-kernel-h3-4.14.111-ec36a7d-20231212.tgz
-rw-r--r--  1 rootroot rootroot         80 Apr 24 08:32 linux-kernel-h3-4.14.111-ec36a7d-20231212.tgz.hash.md5
-rw-r--r--  1 rootroot rootroot        844 Apr 24 08:32 sources.txt
rootroot@ubuntu:~/07_源代码$ tar xvf friendlywrt-h3-20200417.tar 
friendlywrt-h3/
friendlywrt-h3/pre-download/
friendlywrt-h3/pre-download/friendlywrt-feeds-r19.07.1.tgz
friendlywrt-h3/pre-download/eflasher.tgz
friendlywrt-h3/pre-download/friendlywrt-dl-r19.07.1.tgz
friendlywrt-h3/pre-download/unpack.sh
friendlywrt-h3/.repo/
friendlywrt-h3/.repo/project-objects/
friendlywrt-h3/.repo/project-objects/friendlywrt.git/


drwxr-xr-x  2 rootroot rootroot 4096 Apr 28 05:52 Pictures/
-rw-r--r--  1 rootroot rootroot  807 Apr 28 05:46 .profile
drwxr-xr-x  2 rootroot rootroot 4096 Apr 28 05:52 Public/
drwx------  2 rootroot rootroot 4096 Apr 28 05:56 .ssh/
-rw-r--r--  1 rootroot rootroot    0 Apr 28 05:57 .sudo_as_admin_successful
drwxr-xr-x  2 rootroot rootroot 4096 Apr 28 05:52 Templates/
drwxr-xr-x  2 rootroot rootroot 4096 Apr 28 05:52 Videos/
-rw-------  1 rootroot rootroot   52 Apr 28 06:10 .Xauthority
rootroot@ubuntu:~$ cd friendlywrt-h3/
rootroot@ubuntu:~/friendlywrt-h3$ ll
total 16
drwxrwxr-x  4 rootroot rootroot 4096 Apr 17  2020 ./
drwxr-xr-x 17 rootroot rootroot 4096 Apr 28 06:19 ../
drwxrwxr-x  2 rootroot rootroot 4096 Apr 17  2020 pre-download/
drwxrwxr-x  7 rootroot rootroot 4096 Apr 17  2020 .repo/
rootroot@ubuntu:~/friendlywrt-h3$ .repo/repo/repo sync -l
Checking out files: 100% (61515/61515), done.
Syncing work tree: 100% (8/8), done.  

rootroot@ubuntu:~/friendlywrt-h3$ ll
total 44
drwxrwxr-x 11 rootroot rootroot 4096 Apr 28 06:19 ./
drwxr-xr-x 17 rootroot rootroot 4096 Apr 28 06:19 ../
lrwxrwxrwx  1 rootroot rootroot   16 Apr 28 06:19 build.sh -> scripts/build.sh*
drwxrwxr-x  3 rootroot rootroot 4096 Apr 28 06:19 configs/
drwxrwxr-x  3 rootroot rootroot 4096 Apr 28 06:19 device/
drwxrwxr-x 12 rootroot rootroot 4096 Apr 28 06:19 friendlywrt/
drwxrwxr-x 26 rootroot rootroot 4096 Apr 28 06:19 kernel/
lrwxrwxrwx  1 rootroot rootroot   19 Apr 28 06:19 out -> scripts/sd-fuse/out/
drwxrwxr-x  2 rootroot rootroot 4096 Apr 17  2020 pre-download/
drwxrwxr-x  7 rootroot rootroot 4096 Apr 17  2020 .repo/
drwxrwxr-x  4 rootroot rootroot 4096 Apr 28 06:19 scripts/
drwxrwxr-x  5 rootroot rootroot 4096 Apr 28 06:19 toolchain/
drwxrwxr-x 25 rootroot rootroot 4096 Apr 28 06:19 u-boot/
rootroot@ubuntu:~/friendlywrt-h3$ cd pre-download/
rootroot@ubuntu:~/friendlywrt-h3/pre-download$ ll
total 960356
drwxrwxr-x  2 rootroot rootroot      4096 Apr 17  2020 ./
drwxrwxr-x 11 rootroot rootroot      4096 Apr 28 06:19 ../
-rw-rw-r--  1 rootroot rootroot 228172949 Apr 14  2020 eflasher.tgz
-rw-rw-r--  1 rootroot rootroot 650028048 Apr 17  2020 friendlywrt-dl-r19.07.1.tgz
-rw-rw-r--  1 rootroot rootroot 105179079 Apr 17  2020 friendlywrt-feeds-r19.07.1.tgz
-rwxr-xr-x  1 rootroot rootroot       280 Apr 17  2020 unpack.sh*
rootroot@ubuntu:~/friendlywrt-h3/pre-download$ ./unpack.sh 
done.
rootroot@ubuntu:~/friendlywrt-h3/pre-download$ ll


  ./build.sh nanopi_duo2.mk
  ./build.sh nanopi_neo_core.mk
  ./build.sh nanopi_r1.mk
  ./build.sh nanopi_neo_air.mk
  ./build.sh nanopi_r1s_h3.mk
  ./build.sh zeropi.mk
  ./build.sh nanopi_m1_plus.mk
  ./build.sh nanopi_neo.mk
  ./build.sh nanopi_m1.mk
  ./build.sh nanopi_neo_s.mk

# build module: 
  ./build.sh all                -build all
  ./build.sh uboot              -build uboot only
  ./build.sh kernel             -build kernel only
  ./build.sh friendlywrt        -build friendlywrt rootfs only
  ./build.sh sd-img             -pack sd-card image, used to create bootable SD card
  ./build.sh emmc-img           -pack sd-card image, used to write friendlywrt to emmc
# clean
  ./build.sh cleanall

rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ ./build.sh nanopi_neo_core.mk
using config device/friendlyelec/h3/nanopi_neo_core.mk
[INFO]: installing toolchain: arm-linux-gcc 4.9.3  
[sudo] password for rootroot: 
Sorry, try again.
[sudo] password for rootroot: 
[INFO]: installing toolchain: aarch-linux-gcc 6.4  
============Start building uboot============
SRC                = /home/rootroot/friendlywrt-h3/u-boot
TARGET_ARCH        = arm
TARGET_PLAT        = h3
TARGET_UBOOT_CONFIG=nanopi_h3_defconfig
TARGET_OSNAME     = friendlywrt_4.14_armhf
=========================================
uboot src: /home/rootroot/friendlywrt-h3/u-boot
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
rootroot@ubuntu:~/friendlywrt-h3$ 

完整的LOG:

rootroot@ubuntu:~$ sudo apt install terminator
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gir1.2-keybinder-3.0 libkeybinder-3.0-0 libpython-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib python python-cairo python-dbus python-gi python-gi-cairo python-minimal python-psutil
  python2.7 python2.7-minimal
Suggested packages:
  python-doc python-tk python-dbus-dbg python-dbus-doc python-psutil-doc python2.7-doc binfmt-support
The following NEW packages will be installed:
  gir1.2-keybinder-3.0 libkeybinder-3.0-0 libpython-stdlib python python-cairo python-dbus python-gi python-gi-cairo python-minimal python-psutil python2.7 python2.7-minimal terminator
The following packages will be upgraded:
  libpython2.7 libpython2.7-minimal libpython2.7-stdlib
3 upgraded, 13 newly installed, 0 to remove and 286 not upgraded.
Need to get 5,867 kB of archives.
After this operation, 9,588 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7 amd64 2.7.17-1~18.04ubuntu1.11 [1,054 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-stdlib amd64 2.7.17-1~18.04ubuntu1.11 [1,919 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-minimal amd64 2.7.17-1~18.04ubuntu1.11 [335 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.17-1~18.04ubuntu1.11 [1,294 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python-minimal amd64 2.7.15~rc1-1 [28.1 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7 amd64 2.7.17-1~18.04ubuntu1.11 [248 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libpython-stdlib amd64 2.7.15~rc1-1 [7,620 B]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python amd64 2.7.15~rc1-1 [140 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libkeybinder-3.0-0 amd64 0.3.2-1 [7,796 B]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 gir1.2-keybinder-3.0 amd64 0.3.2-1 [3,164 B]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python-cairo amd64 1.16.2-1 [56.4 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python-dbus amd64 1.2.6-1 [90.2 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-gi amd64 3.26.1-2ubuntu1 [197 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python-gi-cairo amd64 3.26.1-2ubuntu1 [6,632 B]
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-psutil amd64 5.4.2-1ubuntu0.1 [136 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 terminator all 1.91-1 [344 kB]
Fetched 5,867 kB in 6s (983 kB/s)    

(Reading database ... 154001 files and directories currently installed.)
Preparing to unpack .../0-libpython2.7_2.7.17-1~18.04ubuntu1.11_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.17-1~18.04ubuntu1.11) over (2.7.17-1~18.04ubuntu1.6) ...
Preparing to unpack .../1-libpython2.7-stdlib_2.7.17-1~18.04ubuntu1.11_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.11) over (2.7.17-1~18.04ubuntu1.6) ...
Preparing to unpack .../2-libpython2.7-minimal_2.7.17-1~18.04ubuntu1.11_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.17-1~18.04ubuntu1.11) over (2.7.17-1~18.04ubuntu1.6) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../3-python2.7-minimal_2.7.17-1~18.04ubuntu1.11_amd64.deb ...
Unpacking python2.7-minimal (2.7.17-1~18.04ubuntu1.11) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../4-python-minimal_2.7.15~rc1-1_amd64.deb ...
Unpacking python-minimal (2.7.15~rc1-1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../5-python2.7_2.7.17-1~18.04ubuntu1.11_amd64.deb ...
Unpacking python2.7 (2.7.17-1~18.04ubuntu1.11) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../6-libpython-stdlib_2.7.15~rc1-1_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.15~rc1-1) ...
Setting up libpython2.7-minimal:amd64 (2.7.17-1~18.04ubuntu1.11) ...
Setting up python2.7-minimal (2.7.17-1~18.04ubuntu1.11) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.15~rc1-1) ...
Selecting previously unselected package python.
(Reading database ... 154058 files and directories currently installed.)
Preparing to unpack .../0-python_2.7.15~rc1-1_amd64.deb ...
Unpacking python (2.7.15~rc1-1) ...
Selecting previously unselected package libkeybinder-3.0-0:amd64.
Preparing to unpack .../1-libkeybinder-3.0-0_0.3.2-1_amd64.deb ...
Unpacking libkeybinder-3.0-0:amd64 (0.3.2-1) ...
Selecting previously unselected package gir1.2-keybinder-3.0.
Preparing to unpack .../2-gir1.2-keybinder-3.0_0.3.2-1_amd64.deb ...
Unpacking gir1.2-keybinder-3.0 (0.3.2-1) ...
Selecting previously unselected package python-cairo:amd64.
Preparing to unpack .../3-python-cairo_1.16.2-1_amd64.deb ...
Unpacking python-cairo:amd64 (1.16.2-1) ...
Selecting previously unselected package python-dbus.
Preparing to unpack .../4-python-dbus_1.2.6-1_amd64.deb ...
Unpacking python-dbus (1.2.6-1) ...
Selecting previously unselected package python-gi.
Preparing to unpack .../5-python-gi_3.26.1-2ubuntu1_amd64.deb ...
Unpacking python-gi (3.26.1-2ubuntu1) ...
Selecting previously unselected package python-gi-cairo.
Preparing to unpack .../6-python-gi-cairo_3.26.1-2ubuntu1_amd64.deb ...
Unpacking python-gi-cairo (3.26.1-2ubuntu1) ...
Selecting previously unselected package python-psutil.
Preparing to unpack .../7-python-psutil_5.4.2-1ubuntu0.1_amd64.deb ...
Unpacking python-psutil (5.4.2-1ubuntu0.1) ...
Selecting previously unselected package terminator.
Preparing to unpack .../8-terminator_1.91-1_all.deb ...
Unpacking terminator (1.91-1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.11) ...
Setting up libkeybinder-3.0-0:amd64 (0.3.2-1) ...
Setting up python2.7 (2.7.17-1~18.04ubuntu1.11) ...
Setting up libpython-stdlib:amd64 (2.7.15~rc1-1) ...
Setting up gir1.2-keybinder-3.0 (0.3.2-1) ...
Setting up libpython2.7:amd64 (2.7.17-1~18.04ubuntu1.11) ...
Setting up python (2.7.15~rc1-1) ...
Setting up python-gi (3.26.1-2ubuntu1) ...
Setting up python-psutil (5.4.2-1ubuntu0.1) ...
Setting up python-cairo:amd64 (1.16.2-1) ...
Setting up python-dbus (1.2.6-1) ...
Setting up python-gi-cairo (3.26.1-2ubuntu1) ...
Setting up terminator (1.91-1) ...
update-alternatives: using /usr/bin/terminator to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...

rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ ifconfig

Command 'ifconfig' not found, but can be installed with:

sudo apt install net-tools

rootroot@ubuntu:~$ sudo apt install samba
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  attr ibverbs-providers libcephfs2 libibverbs1 libnl-route-3-200 librados2 libsmbclient libwbclient0 python-crypto python-dnspython python-ldb python-samba python-tdb samba-common samba-common-bin
  samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools
Suggested packages:
  python-crypto-doc python-gpgme bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind heimdal-clients
The following NEW packages will be installed:
  attr ibverbs-providers libcephfs2 libibverbs1 libnl-route-3-200 librados2 python-crypto python-dnspython python-ldb python-samba python-tdb samba samba-common samba-common-bin samba-dsdb-modules
  samba-vfs-modules tdb-tools
The following packages will be upgraded:
  libsmbclient libwbclient0 samba-libs
3 upgraded, 17 newly installed, 0 to remove and 283 not upgraded.
Need to get 13.2 MB of archives.
After this operation, 47.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsmbclient amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [54.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-libs amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [5,256 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libwbclient0 amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [33.5 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python-dnspython all 1.15.0-1 [84.9 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python-crypto amd64 2.6.1-8ubuntu2 [244 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-ldb amd64 2:1.2.3-1ubuntu0.2 [30.8 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python-tdb amd64 1.3.15-2 [11.1 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-samba amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [1,924 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-common all 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [71.7 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-common-bin amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [521 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 tdb-tools amd64 1.3.15-2 [22.4 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [854 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 attr amd64 1:2.4.47-2build1 [25.8 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libnl-route-3-200 amd64 3.2.29-0ubuntu3 [146 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libibverbs1 amd64 17.1-1ubuntu0.2 [44.4 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ibverbs-providers amd64 17.1-1ubuntu0.2 [160 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 librados2 amd64 12.2.13-0ubuntu0.18.04.11 [2,722 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcephfs2 amd64 12.2.13-0ubuntu0.18.04.11 [413 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-dsdb-modules amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [245 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-vfs-modules amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.29 [298 kB]
Fetched 13.2 MB in 8s (1,710 kB/s)                                                                                                                                                                               
Preconfiguring packages ...

(Reading database ... 154459 files and directories currently installed.)
Preparing to unpack .../00-libsmbclient_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.23) ...
Preparing to unpack .../01-samba-libs_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.23) ...
Preparing to unpack .../02-libwbclient0_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.23) ...
Selecting previously unselected package python-dnspython.
Preparing to unpack .../03-python-dnspython_1.15.0-1_all.deb ...
Unpacking python-dnspython (1.15.0-1) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../04-python-crypto_2.6.1-8ubuntu2_amd64.deb ...
Unpacking python-crypto (2.6.1-8ubuntu2) ...
Selecting previously unselected package python-ldb:amd64.
Preparing to unpack .../05-python-ldb_2%3a1.2.3-1ubuntu0.2_amd64.deb ...
Unpacking python-ldb:amd64 (2:1.2.3-1ubuntu0.2) ...
Selecting previously unselected package python-tdb.
Preparing to unpack .../06-python-tdb_1.3.15-2_amd64.deb ...
Unpacking python-tdb (1.3.15-2) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../07-python-samba_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_amd64.deb ...
Unpacking python-samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Selecting previously unselected package samba-common.
Preparing to unpack .../08-samba-common_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_all.deb ...
Unpacking samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../09-samba-common-bin_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_amd64.deb ...
Unpacking samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../10-tdb-tools_1.3.15-2_amd64.deb ...
Unpacking tdb-tools (1.3.15-2) ...
Selecting previously unselected package samba.
Preparing to unpack .../11-samba_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_amd64.deb ...
Unpacking samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Selecting previously unselected package attr.
Preparing to unpack .../12-attr_1%3a2.4.47-2build1_amd64.deb ...
Unpacking attr (1:2.4.47-2build1) ...
Selecting previously unselected package libnl-route-3-200:amd64.
Preparing to unpack .../13-libnl-route-3-200_3.2.29-0ubuntu3_amd64.deb ...
Unpacking libnl-route-3-200:amd64 (3.2.29-0ubuntu3) ...
Selecting previously unselected package libibverbs1:amd64.
Preparing to unpack .../14-libibverbs1_17.1-1ubuntu0.2_amd64.deb ...
Unpacking libibverbs1:amd64 (17.1-1ubuntu0.2) ...
Selecting previously unselected package ibverbs-providers:amd64.
Preparing to unpack .../15-ibverbs-providers_17.1-1ubuntu0.2_amd64.deb ...
Unpacking ibverbs-providers:amd64 (17.1-1ubuntu0.2) ...
Selecting previously unselected package librados2.
Preparing to unpack .../16-librados2_12.2.13-0ubuntu0.18.04.11_amd64.deb ...
Unpacking librados2 (12.2.13-0ubuntu0.18.04.11) ...
Selecting previously unselected package libcephfs2.
Preparing to unpack .../17-libcephfs2_12.2.13-0ubuntu0.18.04.11_amd64.deb ...
Unpacking libcephfs2 (12.2.13-0ubuntu0.18.04.11) ...
Selecting previously unselected package samba-dsdb-modules.
Preparing to unpack .../18-samba-dsdb-modules_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_amd64.deb ...
Unpacking samba-dsdb-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Selecting previously unselected package samba-vfs-modules.
Preparing to unpack .../19-samba-vfs-modules_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.29_amd64.deb ...
Unpacking samba-vfs-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Setting up python-dnspython (1.15.0-1) ...
Setting up libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Setting up python-crypto (2.6.1-8ubuntu2) ...
Setting up samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Setting up samba-vfs-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Setting up python-tdb (1.3.15-2) ...
Setting up samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...

Creating config file /etc/samba/smb.conf with new version
Setting up libnl-route-3-200:amd64 (3.2.29-0ubuntu3) ...
Setting up libsmbclient:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Setting up tdb-tools (1.3.15-2) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up samba-dsdb-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Setting up attr (1:2.4.47-2build1) ...
Setting up python-ldb:amd64 (2:1.2.3-1ubuntu0.2) ...
Setting up libibverbs1:amd64 (17.1-1ubuntu0.2) ...
Setting up python-samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Setting up librados2 (12.2.13-0ubuntu0.18.04.11) ...
Setting up libcephfs2 (12.2.13-0ubuntu0.18.04.11) ...
Setting up ibverbs-providers:amd64 (17.1-1ubuntu0.2) ...
Setting up samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.29) ...
Samba is not being run as an AD Domain Controller, masking samba-ad-dc.service.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for systemd (237-3ubuntu10.52) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ufw (0.36-0ubuntu0.18.04.1) ...

rootroot@ubuntu:~$ sudo apt install gawk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libsigsegv2
Suggested packages:
  gawk-doc
The following NEW packages will be installed:
  gawk libsigsegv2
0 upgraded, 2 newly installed, 0 to remove and 283 not upgraded.
Need to get 416 kB of archives.
After this operation, 1,596 kB of additional disk space will be used.
Do you want to continue? [Y/n] u
Abort.
rootroot@ubuntu:~$ sudo apt install gawk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libsigsegv2
Suggested packages:
  gawk-doc
The following NEW packages will be installed:
  gawk libsigsegv2
0 upgraded, 2 newly installed, 0 to remove and 283 not upgraded.
Need to get 416 kB of archives.
After this operation, 1,596 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libsigsegv2 amd64 2.12-1 [14.7 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 gawk amd64 1:4.1.4+dfsg-1build1 [401 kB]
Fetched 416 kB in 3s (159 kB/s)

Selecting previously unselected package libsigsegv2:amd64.
(Reading database ... 155476 files and directories currently installed.)
Preparing to unpack .../libsigsegv2_2.12-1_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.12-1) ...
Setting up libsigsegv2:amd64 (2.12-1) ...
Selecting previously unselected package gawk.
(Reading database ... 155483 files and directories currently installed.)
Preparing to unpack .../gawk_1%3a4.1.4+dfsg-1build1_amd64.deb ...
Unpacking gawk (1:4.1.4+dfsg-1build1) ...
Setting up gawk (1:4.1.4+dfsg-1build1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...

rootroot@ubuntu:~$ sudo apt install ncurses*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'ncurses-examples' for glob 'ncurses*'
Note, selecting 'ncurses-hexedit' for glob 'ncurses*'
Note, selecting 'ncurses-term' for glob 'ncurses*'
Note, selecting 'ncurses-bin' for glob 'ncurses*'
Note, selecting 'ncurses-dev' for glob 'ncurses*'
Note, selecting 'ncurses-doc' for glob 'ncurses*'
Note, selecting 'ncurses-base' for glob 'ncurses*'
Note, selecting 'ncurses-runtime' for glob 'ncurses*'
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
Note, selecting 'ncurses-base' instead of 'ncurses-runtime'
ncurses-term is already the newest version (6.1-1ubuntu1.18.04.1).
ncurses-term set to manually installed.
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libc-dev-bin libc6 libc6-dbg libc6-dev libncurses5 libncursesw5 libtinfo-dev libtinfo5 linux-libc-dev manpages-dev
Suggested packages:
  glibc-doc
The following NEW packages will be installed:
  libc-dev-bin libc6-dev libncurses5-dev libtinfo-dev linux-libc-dev manpages-dev ncurses-doc ncurses-examples ncurses-hexedit
The following packages will be upgraded:
  libc6 libc6-dbg libncurses5 libncursesw5 libtinfo5 ncurses-base ncurses-bin
7 upgraded, 9 newly installed, 0 to remove and 276 not upgraded.
Need to get 15.6 MB of archives.
After this operation, 36.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ncurses-bin amd64 6.1-1ubuntu1.18.04.1 [163 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ncurses-base all 6.1-1ubuntu1.18.04.1 [18.3 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libc6-dbg amd64 2.27-3ubuntu1.6 [5,162 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libc6 amd64 2.27-3ubuntu1.6 [2,831 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libncurses5 amd64 6.1-1ubuntu1.18.04.1 [95.1 kB]                                                                                             
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtinfo5 amd64 6.1-1ubuntu1.18.04.1 [81.4 kB]                                                                                               
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libncursesw5 amd64 6.1-1ubuntu1.18.04.1 [117 kB]                                                                                             
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libc-dev-bin amd64 2.27-3ubuntu1.6 [71.9 kB]                                                                                                 
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-213.224 [983 kB]                                                                                                 
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libc6-dev amd64 2.27-3ubuntu1.6 [2,587 kB]                                                                                                  
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtinfo-dev amd64 6.1-1ubuntu1.18.04.1 [81.4 kB]                                                                                           
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libncurses5-dev amd64 6.1-1ubuntu1.18.04.1 [174 kB]                                                                                         
Get:13 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1 [2,217 kB]                                                                                                                  
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ncurses-doc all 6.1-1ubuntu1.18.04.1 [654 kB]                                                                                               
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ncurses-examples amd64 6.1-1ubuntu1.18.04.1 [258 kB]                                                                                        
Get:16 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 ncurses-hexedit amd64 0.9.7+orig-3 [65.3 kB]                                                                                                    
Fetched 15.6 MB in 8s (2,033 kB/s)                                                                                                                                                                               
Preconfiguring packages ...

(Reading database ... 155630 files and directories currently installed.)
Preparing to unpack .../ncurses-bin_6.1-1ubuntu1.18.04.1_amd64.deb ...
Unpacking ncurses-bin (6.1-1ubuntu1.18.04.1) over (6.1-1ubuntu1.18.04) ...
Setting up ncurses-bin (6.1-1ubuntu1.18.04.1) ...
(Reading database ... 155630 files and directories currently installed.)
Preparing to unpack .../ncurses-base_6.1-1ubuntu1.18.04.1_all.deb ...
Unpacking ncurses-base (6.1-1ubuntu1.18.04.1) over (6.1-1ubuntu1.18.04) ...
Setting up ncurses-base (6.1-1ubuntu1.18.04.1) ...
(Reading database ... 155630 files and directories currently installed.)
Preparing to unpack .../libc6-dbg_2.27-3ubuntu1.6_amd64.deb ...
Unpacking libc6-dbg:amd64 (2.27-3ubuntu1.6) over (2.27-3ubuntu1.4) ...
Preparing to unpack .../libc6_2.27-3ubuntu1.6_amd64.deb ...
Unpacking libc6:amd64 (2.27-3ubuntu1.6) over (2.27-3ubuntu1.4) ...
Setting up libc6:amd64 (2.27-3ubuntu1.6) ...
(Reading database ... 155630 files and directories currently installed.)
Preparing to unpack .../libncurses5_6.1-1ubuntu1.18.04.1_amd64.deb ...
Unpacking libncurses5:amd64 (6.1-1ubuntu1.18.04.1) over (6.1-1ubuntu1.18.04) ...
Preparing to unpack .../libtinfo5_6.1-1ubuntu1.18.04.1_amd64.deb ...
Unpacking libtinfo5:amd64 (6.1-1ubuntu1.18.04.1) over (6.1-1ubuntu1.18.04) ...
Setting up libtinfo5:amd64 (6.1-1ubuntu1.18.04.1) ...
(Reading database ... 155630 files and directories currently installed.)
Preparing to unpack .../libncursesw5_6.1-1ubuntu1.18.04.1_amd64.deb ...
Unpacking libncursesw5:amd64 (6.1-1ubuntu1.18.04.1) over (6.1-1ubuntu1.18.04) ...
Setting up libncursesw5:amd64 (6.1-1ubuntu1.18.04.1) ...
Selecting previously unselected package libc-dev-bin.
(Reading database ... 155630 files and directories currently installed.)
Preparing to unpack .../0-libc-dev-bin_2.27-3ubuntu1.6_amd64.deb ...
Unpacking libc-dev-bin (2.27-3ubuntu1.6) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../1-linux-libc-dev_4.15.0-213.224_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.15.0-213.224) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../2-libc6-dev_2.27-3ubuntu1.6_amd64.deb ...
Unpacking libc6-dev:amd64 (2.27-3ubuntu1.6) ...
Selecting previously unselected package libtinfo-dev:amd64.
Preparing to unpack .../3-libtinfo-dev_6.1-1ubuntu1.18.04.1_amd64.deb ...
Unpacking libtinfo-dev:amd64 (6.1-1ubuntu1.18.04.1) ...
Selecting previously unselected package libncurses5-dev:amd64.
Preparing to unpack .../4-libncurses5-dev_6.1-1ubuntu1.18.04.1_amd64.deb ...
Unpacking libncurses5-dev:amd64 (6.1-1ubuntu1.18.04.1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../5-manpages-dev_4.15-1_all.deb ...
Unpacking manpages-dev (4.15-1) ...
Selecting previously unselected package ncurses-doc.
Preparing to unpack .../6-ncurses-doc_6.1-1ubuntu1.18.04.1_all.deb ...
Unpacking ncurses-doc (6.1-1ubuntu1.18.04.1) ...
Selecting previously unselected package ncurses-examples.
Preparing to unpack .../7-ncurses-examples_6.1-1ubuntu1.18.04.1_amd64.deb ...
Unpacking ncurses-examples (6.1-1ubuntu1.18.04.1) ...
Selecting previously unselected package ncurses-hexedit.
Preparing to unpack .../8-ncurses-hexedit_0.9.7+orig-3_amd64.deb ...
Unpacking ncurses-hexedit (0.9.7+orig-3) ...
Setting up libncurses5:amd64 (6.1-1ubuntu1.18.04.1) ...
Setting up libc6-dbg:amd64 (2.27-3ubuntu1.6) ...
Setting up linux-libc-dev:amd64 (4.15.0-213.224) ...
Setting up libtinfo-dev:amd64 (6.1-1ubuntu1.18.04.1) ...
Setting up ncurses-doc (6.1-1ubuntu1.18.04.1) ...
Setting up ncurses-hexedit (0.9.7+orig-3) ...
Setting up ncurses-examples (6.1-1ubuntu1.18.04.1) ...
Setting up libc-dev-bin (2.27-3ubuntu1.6) ...
Setting up manpages-dev (4.15-1) ...
Setting up libc6-dev:amd64 (2.27-3ubuntu1.6) ...
Setting up libncurses5-dev:amd64 (6.1-1ubuntu1.18.04.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...

rootroot@ubuntu:~$ sudo apt-get install exfat-utils exfat-fuse
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  exfat-fuse exfat-utils
0 upgraded, 2 newly installed, 0 to remove and 276 not upgraded.
Need to get 64.4 kB of archives.
After this operation, 273 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 exfat-fuse amd64 1.2.8-1 [24.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 exfat-utils amd64 1.2.8-1 [39.9 kB]
Fetched 64.4 kB in 2s (32.3 kB/s)      
Selecting previously unselected package exfat-fuse.
(Reading database ... 160372 files and directories currently installed.)
Preparing to unpack .../exfat-fuse_1.2.8-1_amd64.deb ...
Unpacking exfat-fuse (1.2.8-1) ...
Selecting previously unselected package exfat-utils.
Preparing to unpack .../exfat-utils_1.2.8-1_amd64.deb ...
Unpacking exfat-utils (1.2.8-1) ...
Setting up exfat-utils (1.2.8-1) ...
Setting up exfat-fuse (1.2.8-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
rootroot@ubuntu:~$ sudo apt install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 276 not upgraded.
Need to get 4,817 kB of archives.
After this operation, 34.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 liberror-perl all 0.17025-1 [22.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 git-man all 1:2.17.1-1ubuntu0.18 [804 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 git amd64 1:2.17.1-1ubuntu0.18 [3,990 kB]
Fetched 4,817 kB in 4s (1,112 kB/s)

Selecting previously unselected package liberror-perl.
(Reading database ... 160394 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17025-1_all.deb ...
Unpacking liberror-perl (0.17025-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.17.1-1ubuntu0.18_all.deb ...
Unpacking git-man (1:2.17.1-1ubuntu0.18) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.17.1-1ubuntu0.18_amd64.deb ...
Unpacking git (1:2.17.1-1ubuntu0.18) ...
Setting up git-man (1:2.17.1-1ubuntu0.18) ...
Setting up liberror-perl (0.17025-1) ...
Setting up git (1:2.17.1-1ubuntu0.18) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

rootroot@ubuntu:~$ sudo apt-get install u-boot-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  device-tree-compiler
Recommended packages:
  libubootenv-tool
The following NEW packages will be installed:
  device-tree-compiler u-boot-tools
0 upgraded, 2 newly installed, 0 to remove and 276 not upgraded.
Need to get 402 kB of archives.
After this operation, 1,122 kB of additional disk space will be used.
Do you want to continue? [Y/n] u
Abort.
rootroot@ubuntu:~$ sudo apt-get install u-boot-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  device-tree-compiler
Recommended packages:
  libubootenv-tool
The following NEW packages will be installed:
  device-tree-compiler u-boot-tools
0 upgraded, 2 newly installed, 0 to remove and 276 not upgraded.
Need to get 402 kB of archives.
After this operation, 1,122 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 u-boot-tools amd64 2020.10+dfsg-1ubuntu0~18.04.3 [162 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 device-tree-compiler amd64 1.4.5-3 [239 kB]
Fetched 402 kB in 5s (87.9 kB/s)               
Selecting previously unselected package u-boot-tools.
(Reading database ... 161301 files and directories currently installed.)
Preparing to unpack .../u-boot-tools_2020.10+dfsg-1ubuntu0~18.04.3_amd64.deb ...
Unpacking u-boot-tools (2020.10+dfsg-1ubuntu0~18.04.3) ...
Selecting previously unselected package device-tree-compiler.
Preparing to unpack .../device-tree-compiler_1.4.5-3_amd64.deb ...
Unpacking device-tree-compiler (1.4.5-3) ...
Setting up u-boot-tools (2020.10+dfsg-1ubuntu0~18.04.3) ...
Setting up device-tree-compiler (1.4.5-3) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
rootroot@ubuntu:~$ sudo apt-get install net-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  net-tools
0 upgraded, 1 newly installed, 0 to remove and 276 not upgraded.
Need to get 194 kB of archives.
After this operation, 803 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 net-tools amd64 1.60+git20161116.90da8a0-1ubuntu1 [194 kB]
Fetched 194 kB in 2s (89.7 kB/s)    
Selecting previously unselected package net-tools.
(Reading database ... 161354 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20161116.90da8a0-1ubuntu1_amd64.deb ...
Unpacking net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
Setting up net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
rootroot@ubuntu:~$ sudo apt-get install nethogs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  nethogs
0 upgraded, 1 newly installed, 0 to remove and 276 not upgraded.
Need to get 29.3 kB of archives.
After this operation, 77.8 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 nethogs amd64 0.8.5-2 [29.3 kB]
Fetched 29.3 kB in 3s (11.1 kB/s)                                  
Selecting previously unselected package nethogs.
(Reading database ... 161402 files and directories currently installed.)
Preparing to unpack .../nethogs_0.8.5-2_amd64.deb ...
Unpacking nethogs (0.8.5-2) ...
Setting up nethogs (0.8.5-2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ cd /etc/samba/
rootroot@ubuntu:/etc/samba$ ll
total 36
drwxr-xr-x   3 root root  4096 Apr 28 06:02 ./
drwxr-xr-x 126 root root 12288 Apr 28 06:03 ../
-rw-r--r--   1 root root     8 Nov  9  2022 gdbcommands
-rw-r--r--   1 root root  9542 Apr 28 06:02 smb.conf
drwxr-xr-x   2 root root  4096 Nov  9  2022 tls/
rootroot@ubuntu:/etc/samba$ 
rootroot@ubuntu:/etc/samba$ sudo cp smb.conf smb.conf.bak1
rootroot@ubuntu:/etc/samba$ ll
total 48
drwxr-xr-x   3 root root  4096 Apr 28 06:06 ./
drwxr-xr-x 126 root root 12288 Apr 28 06:03 ../
-rw-r--r--   1 root root     8 Nov  9  2022 gdbcommands
-rw-r--r--   1 root root  9542 Apr 28 06:02 smb.conf
-rw-r--r--   1 root root  9542 Apr 28 06:06 smb.conf.bak1
drwxr-xr-x   2 root root  4096 Nov  9  2022 tls/
rootroot@ubuntu:/etc/samba$ sudo chmod 777 smb.conf
rootroot@ubuntu:/etc/samba$ ll
total 48
drwxr-xr-x   3 root root  4096 Apr 28 06:06 ./
drwxr-xr-x 126 root root 12288 Apr 28 06:03 ../
-rw-r--r--   1 root root     8 Nov  9  2022 gdbcommands
-rwxrwxrwx   1 root root  9542 Apr 28 06:02 smb.conf*
-rw-r--r--   1 root root  9542 Apr 28 06:06 smb.conf.bak1
drwxr-xr-x   2 root root  4096 Nov  9  2022 tls/
rootroot@ubuntu:/etc/samba$ 
rootroot@ubuntu:/etc/samba$ 
rootroot@ubuntu:/etc/samba$ sudo echo "[rootroot]" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "comment=rootroot Shared Folder" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "path=/" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "#public=yes" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "writable=yes" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "#readonly=yes" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "valid users=rootroot" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "create mask=0700" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "directory mask=0700" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "available=yes" >> smb.conf
rootroot@ubuntu:/etc/samba$ sudo echo "browseable=yes" >> smb.conf
rootroot@ubuntu:/etc/samba$ cat smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which 
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic 
# errors. 

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
    server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes

#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
#   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
   server role = standalone server

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or 'domain logons' is set 
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the 
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
;   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
;   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
;   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

[rootroot]
comment=rootroot Shared Folder
path=/
#public=yes
writable=yes
#readonly=yes
valid users=rootroot
create mask=0700
directory mask=0700
available=yes
browseable=yes
rootroot@ubuntu:/etc/samba$ 
rootroot@ubuntu:/etc/samba$ sync
rootroot@ubuntu:/etc/samba$ sync
rootroot@ubuntu:/etc/samba$ sync
rootroot@ubuntu:/etc/samba$ Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(192.168.186.226) at 21:08:14.

Type `help' to learn how to use Xshell prompt.
[D:\~]$ 

Connecting to 192.168.186.226:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-150-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

273 updates can be applied immediately.
237 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

New release '20.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2023.
Last login: Mon Apr 28 05:58:37 2025 from 192.168.186.228
rootroot@ubuntu:~$ 

[END] 2025/4/28 21:10:48

编译LOG:

rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ ./build.sh nanopi_neo_core.mk
using config device/friendlyelec/h3/nanopi_neo_core.mk
============Start building uboot============
SRC                = /home/rootroot/friendlywrt-h3/u-boot
TARGET_ARCH        = arm
TARGET_PLAT        = h3
TARGET_UBOOT_CONFIG=nanopi_h3_defconfig
TARGET_OSNAME     = friendlywrt_4.14_armhf
=========================================
uboot src: /home/rootroot/friendlywrt-h3/u-boot
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  android-tools-fsutils
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
Need to get 70.8 kB of archives.
After this operation, 324 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 android-tools-fsutils amd64 5.1.1.r38-1.1 [70.8 kB]
Fetched 70.8 kB in 2s (39.4 kB/s)                                  

Selecting previously unselected package android-tools-fsutils.
(Reading database ... 161454 files and directories currently installed.)
Preparing to unpack .../android-tools-fsutils_5.1.1.r38-1.1_amd64.deb ...
Unpacking android-tools-fsutils (5.1.1.r38-1.1) ...
Setting up android-tools-fsutils (5.1.1.r38-1.1) ...

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  swig3.0
Suggested packages:
  swig-doc swig-examples swig3.0-examples swig3.0-doc
The following NEW packages will be installed:
  swig swig3.0
0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.
Need to get 1,100 kB of archives.
After this operation, 5,822 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 swig3.0 amd64 3.0.12-1 [1,094 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 swig amd64 3.0.12-1 [6,460 B]
Fetched 1,100 kB in 3s (347 kB/s)

Selecting previously unselected package swig3.0.
(Reading database ... 161466 files and directories currently installed.)
Preparing to unpack .../swig3.0_3.0.12-1_amd64.deb ...
Unpacking swig3.0 (3.0.12-1) ...
Selecting previously unselected package swig.
Preparing to unpack .../swig_3.0.12-1_amd64.deb ...
Unpacking swig (3.0.12-1) ...
Setting up swig3.0 (3.0.12-1) ...
Setting up swig (3.0.12-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  dh-python libexpat1-dev libpython-dev libpython2.7-dev libpython3-dev libpython3.6-dev python2.7-dev python3-distutils python3-lib2to3 python3.6-dev
Suggested packages:
  dpkg-dev
The following NEW packages will be installed:
  dh-python libexpat1-dev libpython-dev libpython2.7-dev libpython3-dev libpython3.6-dev python-dev python2.7-dev python3-dev python3-distutils python3-lib2to3 python3.6-dev
0 upgraded, 12 newly installed, 0 to remove and 45 not upgraded.
Need to get 74.4 MB of archives.
After this operation, 123 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-lib2to3 all 3.6.9-1~18.04 [77.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-distutils all 3.6.9-1~18.04 [144 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 dh-python all 3.20180325ubuntu2 [89.2 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libexpat1-dev amd64 2.2.5-3ubuntu0.9 [124 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-dev amd64 2.7.17-1~18.04ubuntu1.11 [28.3 MB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libpython-dev amd64 2.7.15~rc1-1 [7,684 B]                                                                                                           
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-dev amd64 3.6.9-1~18.04ubuntu1.12 [44.9 MB]                                                                                     
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3-dev amd64 3.6.7-1~18.04 [7,328 B]                                                                                                 
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-dev amd64 2.7.17-1~18.04ubuntu1.11 [285 kB]                                                                                        
Get:10 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 python-dev amd64 2.7.15~rc1-1 [1,256 B]                                                                                                             
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3.6-dev amd64 3.6.9-1~18.04ubuntu1.12 [511 kB]                                                                                        
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-dev amd64 3.6.7-1~18.04 [1,288 B]                                                                                                   
Fetched 74.4 MB in 1min 15s (991 kB/s)                                                                                                                                                                           

Selecting previously unselected package python3-lib2to3.
(Reading database ... 162257 files and directories currently installed.)
Preparing to unpack .../00-python3-lib2to3_3.6.9-1~18.04_all.deb ...
Unpacking python3-lib2to3 (3.6.9-1~18.04) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../01-python3-distutils_3.6.9-1~18.04_all.deb ...
Unpacking python3-distutils (3.6.9-1~18.04) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../02-dh-python_3.20180325ubuntu2_all.deb ...
Unpacking dh-python (3.20180325ubuntu2) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../03-libexpat1-dev_2.2.5-3ubuntu0.9_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.2.5-3ubuntu0.9) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../04-libpython2.7-dev_2.7.17-1~18.04ubuntu1.11_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.17-1~18.04ubuntu1.11) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../05-libpython-dev_2.7.15~rc1-1_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.15~rc1-1) ...
Selecting previously unselected package libpython3.6-dev:amd64.
Preparing to unpack .../06-libpython3.6-dev_3.6.9-1~18.04ubuntu1.12_amd64.deb ...
Unpacking libpython3.6-dev:amd64 (3.6.9-1~18.04ubuntu1.12) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../07-libpython3-dev_3.6.7-1~18.04_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.6.7-1~18.04) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../08-python2.7-dev_2.7.17-1~18.04ubuntu1.11_amd64.deb ...
Unpacking python2.7-dev (2.7.17-1~18.04ubuntu1.11) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../09-python-dev_2.7.15~rc1-1_amd64.deb ...
Unpacking python-dev (2.7.15~rc1-1) ...
Selecting previously unselected package python3.6-dev.
Preparing to unpack .../10-python3.6-dev_3.6.9-1~18.04ubuntu1.12_amd64.deb ...
Unpacking python3.6-dev (3.6.9-1~18.04ubuntu1.12) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../11-python3-dev_3.6.7-1~18.04_amd64.deb ...
Unpacking python3-dev (3.6.7-1~18.04) ...
Setting up libexpat1-dev:amd64 (2.2.5-3ubuntu0.9) ...
Setting up libpython2.7-dev:amd64 (2.7.17-1~18.04ubuntu1.11) ...
Setting up python3-lib2to3 (3.6.9-1~18.04) ...
Setting up python2.7-dev (2.7.17-1~18.04ubuntu1.11) ...
Setting up python3-distutils (3.6.9-1~18.04) ...
Setting up libpython-dev:amd64 (2.7.15~rc1-1) ...
Setting up python-dev (2.7.15~rc1-1) ...
Setting up libpython3.6-dev:amd64 (3.6.9-1~18.04ubuntu1.12) ...
Setting up python3.6-dev (3.6.9-1~18.04ubuntu1.12) ...
Setting up dh-python (3.20180325ubuntu2) ...
Setting up libpython3-dev:amd64 (3.6.7-1~18.04) ...
Setting up python3-dev (3.6.7-1~18.04) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

./build-uboot.sh: line 141: make: command not found
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ gcc -v

Command 'gcc' not found, but can be installed with:

sudo apt install gcc

rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ g++ -v

Command 'g++' not found, but can be installed with:

sudo apt install g++

rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt install gcc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gcc-7 libasan4 libatomic1 libcilkrts5 libgcc-7-dev libitm1 liblsan0 libmpx2 libquadmath0 libtsan0 libubsan0
Suggested packages:
  gcc-multilib make autoconf automake libtool flex bison gcc-doc gcc-7-multilib gcc-7-doc gcc-7-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg
  libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
The following NEW packages will be installed:
  gcc gcc-7 libasan4 libatomic1 libcilkrts5 libgcc-7-dev libitm1 liblsan0 libmpx2 libquadmath0 libtsan0 libubsan0
0 upgraded, 12 newly installed, 0 to remove and 45 not upgraded.
Need to get 12.9 MB of archives.
After this operation, 45.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libitm1 amd64 8.4.0-1ubuntu1~18.04 [27.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libatomic1 amd64 8.4.0-1ubuntu1~18.04 [9,192 B]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libasan4 amd64 7.5.0-3ubuntu1~18.04 [358 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblsan0 amd64 8.4.0-1ubuntu1~18.04 [133 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtsan0 amd64 8.4.0-1ubuntu1~18.04 [288 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libubsan0 amd64 7.5.0-3ubuntu1~18.04 [126 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcilkrts5 amd64 7.5.0-3ubuntu1~18.04 [42.5 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmpx2 amd64 8.4.0-1ubuntu1~18.04 [11.6 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libquadmath0 amd64 8.4.0-1ubuntu1~18.04 [134 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgcc-7-dev amd64 7.5.0-3ubuntu1~18.04 [2,378 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-7 amd64 7.5.0-3ubuntu1~18.04 [9,381 kB]                                                                                                 
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc amd64 4:7.4.0-1ubuntu2.3 [5,184 B]                                                                                                      
Fetched 12.9 MB in 8s (1,707 kB/s)                                                                                                                                                                               

Selecting previously unselected package libitm1:amd64.
(Reading database ... 163014 files and directories currently installed.)
Preparing to unpack .../00-libitm1_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libitm1:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../01-libatomic1_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libatomic1:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libasan4:amd64.
Preparing to unpack .../02-libasan4_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libasan4:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../03-liblsan0_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking liblsan0:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../04-libtsan0_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libtsan0:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../05-libubsan0_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libubsan0:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../06-libcilkrts5_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libcilkrts5:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../07-libmpx2_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libmpx2:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../08-libquadmath0_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libquadmath0:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libgcc-7-dev:amd64.
Preparing to unpack .../09-libgcc-7-dev_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libgcc-7-dev:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package gcc-7.
Preparing to unpack .../10-gcc-7_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking gcc-7 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package gcc.
Preparing to unpack .../11-gcc_4%3a7.4.0-1ubuntu2.3_amd64.deb ...
Unpacking gcc (4:7.4.0-1ubuntu2.3) ...
Setting up libquadmath0:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libatomic1:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libasan4:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up libcilkrts5:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up libubsan0:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up libtsan0:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up liblsan0:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libmpx2:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libitm1:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libgcc-7-dev:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up gcc-7 (7.5.0-3ubuntu1~18.04) ...
Setting up gcc (4:7.4.0-1ubuntu2.3) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.5) ...

rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt install g++
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  g++-7 libstdc++-7-dev
Suggested packages:
  g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg libstdc++-7-doc
The following NEW packages will be installed:
  g++ g++-7 libstdc++-7-dev
0 upgraded, 3 newly installed, 0 to remove and 45 not upgraded.
Need to get 11.2 MB of archives.
After this operation, 42.4 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.5.0-3ubuntu1~18.04 [1,471 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.5.0-3ubuntu1~18.04 [9,697 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.3 [1,568 B]
Fetched 11.2 MB in 5s (2,396 kB/s) 

Selecting previously unselected package libstdc++-7-dev:amd64.
(Reading database ... 163306 files and directories currently installed.)
Preparing to unpack .../libstdc++-7-dev_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libstdc++-7-dev:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package g++-7.
Preparing to unpack .../g++-7_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking g++-7 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a7.4.0-1ubuntu2.3_amd64.deb ...
Unpacking g++ (4:7.4.0-1ubuntu2.3) ...
Setting up libstdc++-7-dev:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up g++-7 (7.5.0-3ubuntu1~18.04) ...
Setting up g++ (4:7.4.0-1ubuntu2.3) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) 
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) 
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ ./build.sh nanopi_neo_core.mk
using config device/friendlyelec/h3/nanopi_neo_core.mk
============Start building uboot============
SRC                = /home/rootroot/friendlywrt-h3/u-boot
TARGET_ARCH        = arm
TARGET_PLAT        = h3
TARGET_UBOOT_CONFIG=nanopi_h3_defconfig
TARGET_OSNAME     = friendlywrt_4.14_armhf
=========================================
uboot src: /home/rootroot/friendlywrt-h3/u-boot
./build-uboot.sh: line 141: make: command not found
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-liberation2 fonts-opensymbol gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gudev-1.0 gir1.2-udisks-2.0 grilo-plugins-0.3-base gstreamer1.0-gtk3 libboost-date-time1.65.1
  libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0 libe-book-0.1-1
  libedataserverui-1.2-2 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6 libgpod-common
  libgpod4 liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libqqwing2v5 libraw16 librevenge-0.0-0 libsgutils2-2 libssh-4 libsuitesparseconfig5
  libvncclient1 libwinpr2-2 libxapian30 libxmlsec1-nss lp-solve media-player-info python3-mako python3-markupsafe syslinux syslinux-common syslinux-legacy usb-creator-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  dpkg-dev fakeroot libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libfakeroot make
Suggested packages:
  debian-keyring make-doc
The following NEW packages will be installed:
  build-essential dpkg-dev fakeroot libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libfakeroot make
0 upgraded, 8 newly installed, 0 to remove and 45 not upgraded.
Need to get 925 kB of archives.
After this operation, 2,974 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 make amd64 4.1-9.1ubuntu1 [154 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg-dev all 1.19.0.5ubuntu2.4 [607 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 build-essential amd64 12.4ubuntu1 [4,758 B]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libfakeroot amd64 1.22-2ubuntu1 [25.9 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 fakeroot amd64 1.22-2ubuntu1 [62.3 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-xs-perl amd64 0.04-5 [11.1 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Fetched 925 kB in 4s (251 kB/s)                     
Selecting previously unselected package make.
(Reading database ... 164120 files and directories currently installed.)
Preparing to unpack .../0-make_4.1-9.1ubuntu1_amd64.deb ...
Unpacking make (4.1-9.1ubuntu1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../1-dpkg-dev_1.19.0.5ubuntu2.4_all.deb ...
Unpacking dpkg-dev (1.19.0.5ubuntu2.4) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../2-build-essential_12.4ubuntu1_amd64.deb ...
Unpacking build-essential (12.4ubuntu1) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../3-libfakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.22-2ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../4-fakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking fakeroot (1.22-2ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../5-libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../6-libalgorithm-diff-xs-perl_0.04-5_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-5) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../7-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Setting up make (4.1-9.1ubuntu1) ...
Setting up dpkg-dev (1.19.0.5ubuntu2.4) ...
Setting up libfakeroot:amd64 (1.22-2ubuntu1) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Setting up build-essential (12.4ubuntu1) ...
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libalgorithm-diff-xs-perl (0.04-5) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.5) ...
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ ./build.sh nanopi_neo_core.mk
using config device/friendlyelec/h3/nanopi_neo_core.mk
============Start building uboot============
SRC                = /home/rootroot/friendlywrt-h3/u-boot
TARGET_ARCH        = arm
TARGET_PLAT        = h3
TARGET_UBOOT_CONFIG=nanopi_h3_defconfig
TARGET_OSNAME     = friendlywrt_4.14_armhf
=========================================
uboot src: /home/rootroot/friendlywrt-h3/u-boot
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     include/autoconf.mk
  GEN     spl/include/autoconf.mk
*** Your GCC is older than 6.0 and will not be supported starting in v2018.01.
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/livetree.o
  SHIPPED scripts/dtc/pylibfdt/libfdt.i
  PYMOD   scripts/dtc/pylibfdt/_libfdt.so
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  SHIPPED scripts/dtc/dtc-lexer.lex.c
  SHIPPED scripts/dtc/dtc-parser.tab.h
  SHIPPED scripts/dtc/dtc-parser.tab.c
  CHK     include/config.h
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  CFG     u-boot.cfg


Generating index for package ./luci-proto-qmi_git-20.101.12886-28fc0fa-1_all.ipk
Generating index for package ./luci-proto-wireguard_git-20.101.12886-28fc0fa-1_all.ipk
Generating index for package ./luci-theme-bootstrap_git-20.101.12886-28fc0fa-1_all.ipk
Generating index for package ./luci_git-20.101.12886-28fc0fa-1_all.ipk
Generating index for package ./rpcd-mod-luci_20191114_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./rpcd-mod-rrdns_20170710_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./adblock_3.8.15-1_all.ipk
Generating index for package ./aria2_1.35.0-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./ariang_1.1.4-2_all.ipk
Generating index for package ./bash_5.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./btrfs-progs_5.4.1-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./cgi-io_18_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./cgroupfs-mount_1.4-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-cpu_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-interface_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-iwinfo_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-load_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-memory_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-network_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-rrdtool_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-thermal_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-uptime_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd-mod-wireless_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./collectd_5.10.0-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./containerd_1.2.10-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./dbus_1.12.12-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./ddns-scripts_2.7.8-15_all.ipk
Generating index for package ./git-http_2.25.0-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./git_2.25.0-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./glib2_2.58.3-5_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./hd-idle_1.05-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libattr_2.4.48-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libcap_2.31-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libdbus_1.12.12-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libdevmapper_2.03.05-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libexif_0.6.21-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libexpat_2.2.9-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libffi_3.2.1-4_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libffmpeg-audio-dec_3.4.7-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libflac_1.3.3-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libgnutls_3.6.12-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libid3tag_0.15.1b-4_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libjpeg_9c-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libmbim_1.22.0-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libnetwork_2019-10-22-3eb39382-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libogg0_1.3.4-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libpcre_8.43-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libqmi_1.24.4-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./librrd1_1.0.50-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libseccomp_2.4.2-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libsqlite3-0_3310100-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libtasn1_4.16.0-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libuv1_1.34.2-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libvorbis_1.3.6-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libwebsockets-full_3.2.1-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./libxml2_2.9.10-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./luci-app-sqm_1.4.0-4_all.ipk
Generating index for package ./minidlna_2018-04-10-799e6cf5-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./miniupnpd_2.1.20191006-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./nlbwmon_2019-06-13-e921ca0a-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./ntpclient_2015_365-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./openconnect_8.05-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./openssh-client-utils_8.1p1-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./openssh-client_8.1p1-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./openssh-keygen_8.1p1-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./qmi-utils_1.24.4-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./rrdtool1_1.0.50-2_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./rsync_3.1.3-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./runc_1.0.0-rc8+91-3e425f80-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./sqm-scripts_1.4.0-4_all.ipk
Generating index for package ./tini_0.18.0-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./triggerhappy_0.5.0-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./ttyd_1.6.0-1_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./vpnc-scripts_20151220-2_all.ipk
Generating index for package ./watchcat_1-7_all.ipk
Generating index for package ./wget_1.20.3-3_arm_cortex-a7_neon-vfpv4.ipk
Generating index for package ./wifischedule_1-2_all.ipk
Generating index for package ./batctl-default_2019.2-3_arm_cortex-a7_neon-vfpv4.ipk
Signing package index...
make[2]: Leaving directory '/home/rootroot/friendlywrt-h3/friendlywrt'
export MAKEFLAGS= ;make -w -r checksum
make[2]: Entering directory '/home/rootroot/friendlywrt-h3/friendlywrt'
cd "/home/rootroot/friendlywrt-h3/friendlywrt"; git log --format=%h -1 toolchain > /home/rootroot/friendlywrt-h3/friendlywrt/tmp/.ver_check
cmp -s /home/rootroot/friendlywrt-h3/friendlywrt/tmp/.ver_check /home/rootroot/friendlywrt-h3/friendlywrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/stamp/.ver_check || { \
    rm -rf /home/rootroot/friendlywrt-h3/friendlywrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi /home/rootroot/friendlywrt-h3/friendlywrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi /home/rootroot/friendlywrt-h3/friendlywrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi /home/rootroot/friendlywrt-h3/friendlywrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi; \
    mkdir -p /home/rootroot/friendlywrt-h3/friendlywrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/stamp; \
    mv /home/rootroot/friendlywrt-h3/friendlywrt/tmp/.ver_check /home/rootroot/friendlywrt-h3/friendlywrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/stamp/.ver_check; \
}
make[2]: Leaving directory '/home/rootroot/friendlywrt-h3/friendlywrt'
make[1]: Leaving directory '/home/rootroot/friendlywrt-h3/friendlywrt'
you take 40:07.97 to build friendlywrt
====Building friendlywrt ok!====
[INFO]: Copying /home/rootroot/friendlywrt-h3/friendlywrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi to /home/rootroot/friendlywrt-h3/scripts/sd-fuse/out/rootfs.OICKqO8AC/  
[INFO]: Applying device/friendlyelec/h3/default-settings to /home/rootroot/friendlywrt-h3/scripts/sd-fuse/out/rootfs.OICKqO8AC  
[INFO]: Applying device/friendlyelec/h3/common-files to /home/rootroot/friendlywrt-h3/scripts/sd-fuse/out/rootfs.OICKqO8AC  
Re-running script under sudo...
[sudo] password for rootroot: 
Sorry, try again.
[sudo] password for rootroot: 
[INFO]: prepare boot.img ...  
Re-running script under sudo...

0+0 records in
0+0 records out
0 bytes copied, 0.000375183 s, 0.0 kB/s
generating ./friendlywrt_4.14_armhf/boot.img done.
[INFO]: prepare rootfs.img ...  
Re-running script under sudo...
Creating filesystem with parameters:
    Size: 352321536
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 7168
    Inode size: 256
    Journal blocks: 1344
    Label: rootfs
    Blocks: 86016
    Block groups: 3
    Reserved block group size: 23
    Suggest size: 264241152
Created filesystem with 8136/21504 inodes and 59614/86016 blocks
'/home/rootroot/friendlywrt-h3/scripts/sd-fuse/prebuilt/partmap.template' -> 'friendlywrt_4.14_armhf/partmap.txt'
generating friendlywrt_4.14_armhf/partmap.txt done.
0
generating friendlywrt_4.14_armhf/rootfs.img done.
0
Generating empty userdata.img (size:104857600)
Creating filesystem with parameters:
    Size: 104857600
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6400
    Inode size: 256
    Journal blocks: 1024
    Label: userdata
    Blocks: 25600
    Block groups: 1
    Reserved block group size: 7
    Suggest size: 25165824
Created filesystem with 11/6400 inodes and 1438/25600 blocks
[INFO]: clean ...  
Re-running script under sudo...
Creating RAW image: out/FriendlyWrt_20250428_NanoPi-NEO-Core_armhf_sd.img (640 MB)
---------------------------------
0+0 records in
0+0 records out
0 bytes copied, 8.1735e-05 s, 0.0 kB/s
Using device: /dev/loop10
---------------------------------
Friendlywrt_4.14_armhf filesystem fusing
Image root: ./friendlywrt_4.14_armhf

----------------------------------------------------------------
[/dev/loop10] capacity = 610MB, 640000000 bytes
current /dev/loop10 partition:
MBR.0 start : 0x0000100000 size 0x002615a000  kB
----------------------------------------------------------------
parsing ./friendlywrt_4.14_armhf/partmap.txt:
part.0 flash=mmc,0:boot0:raw:0x2000,0x17fe000:u-boot-sunxi-with-spl.bin:[RAW] ./friendlywrt_4.14_armhf/u-boot-sunxi-with-spl.bin
part.1 flash=mmc,0:boot:fat:0x1800000,0x2800000:boot.img:[MBR] ./friendlywrt_4.14_armhf/boot.img
part.2 flash=mmc,0:rootfs:ext4:0x4000000,0x15000000:rootfs.img:[MBR] ./friendlywrt_4.14_armhf/rootfs.img
part.3 flash=mmc,0:userdata:ext4:0x19000000,0x0:userdata.img:[MBR] ./friendlywrt_4.14_armhf/userdata.img
----------------------------------------------------------------
create new MBR 3:
[MBR.0] start : 0x0001800000 size 0x0002800000 
[MBR.1] start : 0x0004000000 size 0x0015000000 
[MBR.2] start : 0x0019000000 size 0x0000000000 
----------------------------------------------------------------
copy from: ./friendlywrt_4.14_armhf to /dev/loop10
 [RAW. 0]:     2040 KB | ./friendlywrt_4.14_armhf/u-boot-sunxi-with-spl.bin > 100% : done.
 [MBR. 0]:    40960 KB | ./friendlywrt_4.14_armhf/boot.img                  > 100% : done.
 [MBR. 1]:   236660 KB | ./friendlywrt_4.14_armhf/rootfs.img                > 100% : done.
 [MBR. 2]:     5752 KB | ./friendlywrt_4.14_armhf/userdata.img              > 100% : done.
----------------------------------------------------------------
/dev/loop10: msdos partitions 1 2 3
### try to resize2fs: /dev/loop10p3
resize2fs 1.44.1 (24-Mar-2018)
Resizing the filesystem on /dev/loop10p3 to 53850 (4k) blocks.
The filesystem on /dev/loop10p3 is now 53850 (4k) blocks long.

---------------------------------
Friendlywrt_4.14_armhf is fused successfully.
All done.
---------------------------------
RAW image successfully created (07:26:09).
-rw-r--r-- 1 root root 640000000 Apr 28 07:26 out/FriendlyWrt_20250428_NanoPi-NEO-Core_armhf_sd.img
Tip: You can compress it to save disk space.
-----------------------------------------
Run the following command for sdcard install:
    sudo dd if=out/FriendlyWrt_20250428_NanoPi-NEO-Core_armhf_sd.img bs=1M of=/dev/sdX
-----------------------------------------
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ ./build.sh 
USAGE: ./build.sh <parameter>

# select board: 
  ./build.sh nanopi_duo2.mk
  ./build.sh nanopi_neo_core.mk
  ./build.sh nanopi_r1.mk
  ./build.sh nanopi_neo_air.mk
  ./build.sh nanopi_r1s_h3.mk
  ./build.sh zeropi.mk
  ./build.sh nanopi_m1_plus.mk
  ./build.sh nanopi_neo.mk
  ./build.sh nanopi_m1.mk
  ./build.sh nanopi_neo_s.mk

# build module: 
  ./build.sh all                -build all
  ./build.sh uboot              -build uboot only
  ./build.sh kernel             -build kernel only
  ./build.sh friendlywrt        -build friendlywrt rootfs only
  ./build.sh sd-img             -pack sd-card image, used to create bootable SD card
  ./build.sh emmc-img           -pack sd-card image, used to write friendlywrt to emmc
# clean
  ./build.sh cleanall

rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ ./build.sh emmc-img
[INFO]: Copying /home/rootroot/friendlywrt-h3/friendlywrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi to /home/rootroot/friendlywrt-h3/scripts/sd-fuse/out/rootfs.YjfLcR1Ti/  
[INFO]: Applying device/friendlyelec/h3/default-settings to /home/rootroot/friendlywrt-h3/scripts/sd-fuse/out/rootfs.YjfLcR1Ti  
[INFO]: Applying device/friendlyelec/h3/common-files to /home/rootroot/friendlywrt-h3/scripts/sd-fuse/out/rootfs.YjfLcR1Ti  
Re-running script under sudo...
[INFO]: prepare boot.img ...  
Re-running script under sudo...

0+0 records in
0+0 records out
0 bytes copied, 6.9261e-05 s, 0.0 kB/s
generating ./friendlywrt_4.14_armhf/boot.img done.
[INFO]: prepare rootfs.img ...  
Re-running script under sudo...
Creating filesystem with parameters:
    Size: 352321536
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 7168
    Inode size: 256
    Journal blocks: 1344
    Label: rootfs
    Blocks: 86016
    Block groups: 3
    Reserved block group size: 23
    Suggest size: 264241152
Created filesystem with 8136/21504 inodes and 59614/86016 blocks
'/home/rootroot/friendlywrt-h3/scripts/sd-fuse/prebuilt/partmap.template' -> 'friendlywrt_4.14_armhf/partmap.txt'
generating friendlywrt_4.14_armhf/partmap.txt done.
0
generating friendlywrt_4.14_armhf/rootfs.img done.
0
Generating empty userdata.img (size:104857600)
Creating filesystem with parameters:
    Size: 104857600
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6400
    Inode size: 256
    Journal blocks: 1024
    Label: userdata
    Blocks: 25600
    Block groups: 1
    Reserved block group size: 7
    Suggest size: 25165824
Created filesystem with 11/6400 inodes and 1438/25600 blocks
[INFO]: clean ...  
Re-running script under sudo...
Creating RAW image: out/h3_eflasher-20250428.img (7800 MB)
---------------------------------
0+0 records in
0+0 records out
0 bytes copied, 0.00019976 s, 0.0 kB/s
Using device: /dev/loop10
---------------------------------
Eflasher filesystem fusing
Image root: ./eflasher

----------------------------------------------------------------
[/dev/loop10] capacity = 7438MB, 7799999488 bytes
current /dev/loop10 partition:
MBR.0 start : 0x0000100000 size 0x01d0da8c00  kB
----------------------------------------------------------------
parsing ./eflasher/partmap.txt:
part.0 flash=mmc,0:boot0:raw:0x2000,0x1fe000:u-boot-sunxi-with-spl.bin:[RAW] ./eflasher/u-boot-sunxi-with-spl.bin
part.1 flash=mmc,0:env:raw:0x200000,0x20000:env_eflasher.bin:[RAW] ./eflasher/env_eflasher.bin
part.2 flash=mmc,0:FriendlyARM:fat:0x70900000,0x0:FriendlyARM.img:[MBR] ./eflasher/FriendlyARM.img
part.3 flash=mmc,0:boot:fat:0x1800000,0x2800000:boot.img:[MBR] ./eflasher/boot.img
part.4 flash=mmc,0:rootfs:ext4:0x4000000,0x6c900000:rootfs.img:[MBR] ./eflasher/rootfs.img
----------------------------------------------------------------
create new MBR 3:
[MBR.0] start : 0x0070900000 size 0x0000000000 
[MBR.1] start : 0x0001800000 size 0x0002800000 
[MBR.2] start : 0x0004000000 size 0x006c900000 
----------------------------------------------------------------
copy from: ./eflasher to /dev/loop10
 [RAW. 0]:     2040 KB | ./eflasher/u-boot-sunxi-with-spl.bin > 100% : done.
 [RAW. 1]:      128 KB | ./eflasher/env_eflasher.bin          > 100% : done.
 [MBR. 0]:   163840 KB | ./eflasher/FriendlyARM.img           > 100% : done.
 [MBR. 1]:    40960 KB | ./eflasher/boot.img                  > 100% : done.
 [MBR. 2]:   651766 KB | ./eflasher/rootfs.img                > 100% : done.
----------------------------------------------------------------
/dev/loop10: msdos partitions 2 3 1
---------------------------------
Eflasher is fused successfully.
All done.
mkexfatfs 1.2.8
Creating... done.
Flushing... done.
File system created successfully.
---------------------------------
RAW image successfully created (07:28:16).
-rw-r--r-- 1 root root 7799999488 Apr 28 07:28 out/h3_eflasher-20250428.img
Tip: You can compress it to save disk space.

FUSE exfat 1.2.8
copying /home/rootroot/friendlywrt-h3/scripts/sd-fuse/friendlywrt_4.14_armhf/* to /tmp/media_exfat/friendlywrt_4.14_armhf ...
-rw-r--r-- 1 root root 7799999488 Apr 28 07:28 out/FriendlyWrt_20250428_NanoPi-NEO-Core_armhf_eflasher.img
all done.
-----------------------------------------
Run the following command for sdcard install:
    sudo dd if=out/FriendlyWrt_20250428_NanoPi-NEO-Core_armhf_eflasher.img bs=1M of=/dev/sdX
-----------------------------------------
rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ ./build.sh 
USAGE: ./build.sh <parameter>

# select board: 
  ./build.sh nanopi_duo2.mk
  ./build.sh nanopi_neo_core.mk
  ./build.sh nanopi_r1.mk
  ./build.sh nanopi_neo_air.mk
  ./build.sh nanopi_r1s_h3.mk
  ./build.sh zeropi.mk
  ./build.sh nanopi_m1_plus.mk
  ./build.sh nanopi_neo.mk
  ./build.sh nanopi_m1.mk
  ./build.sh nanopi_neo_s.mk

# build module: 
  ./build.sh all                -build all
  ./build.sh uboot              -build uboot only
  ./build.sh kernel             -build kernel only
  ./build.sh friendlywrt        -build friendlywrt rootfs only
  ./build.sh sd-img             -pack sd-card image, used to create bootable SD card
  ./build.sh emmc-img           -pack sd-card image, used to write friendlywrt to emmc
# clean
  ./build.sh cleanall

rootroot@ubuntu:~/friendlywrt-h3$ 
rootroot@ubuntu:~/friendlywrt-h3$ 


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值