Skip to content

Instantly share code, notes, and snippets.

@shanku9
Created February 15, 2022 18:21
Show Gist options
  • Save shanku9/2dc0b08699804d5b06c9a138bd9ef974 to your computer and use it in GitHub Desktop.
Save shanku9/2dc0b08699804d5b06c9a138bd9ef974 to your computer and use it in GitHub Desktop.
install 11319 logs
➜ ~ ssh u204@10.253.1.90
u204@10.253.1.90's password:
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-99-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon 14 Feb 2022 07:53:58 PM UTC
System load: 0.01
Usage of /: 16.1% of 38.63GB
Memory usage: 2%
Swap usage: 0%
Processes: 301
Users logged in: 1
IPv4 address for ens160: 10.253.1.90
IPv6 address for ens192: 2620:10d:c089:701:250:56ff:fe87:c656
0 updates can be applied immediately.
Last login: Mon Feb 14 19:53:47 2022
u204@u204:~$
u204@u204:~$
u204@u204:~$
u204@u204:~$
u204@u204:~$
u204@u204:~$ ls
u204@u204:~$ sudo visudo
[sudo] password for u204:
u204@u204:~$
u204@u204:~$
u204@u204:~$
u204@u204:~$ sudo cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
u204 ALL=(ALL) NOPASSWD:ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
u204@u204:~$
u204@u204:~$
u204@u204:~$
u204@u204:~$
u204@u204:~$ cat <<EOF > requirements.txt
> ansible==5.2.0
> ansible-core==2.12.1
> cryptography==2.8
> Jinja2==2.10.1
> MarkupSafe==1.1.0
> packaging==21.3
> pyparsing==3.0.6
> PyYAML==5.3.1
> resolvelib==0.5.4
> EOF
u204@u204:~$
u204@u204:~$
u204@u204:~$ sudo apt-get update && sudo apt-get install python3-pip python3 wget -y
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Fetched 336 kB in 1s (402 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.8.2-0ubuntu2).
python3 set to manually installed.
wget is already the newest version (1.20.3-1ubuntu2).
wget set to manually installed.
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9
gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils
libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libexpat1-dev libfakeroot
libfile-fcntllock-perl libgcc-9-dev libgomp1 libisl22 libitm1 liblsan0 libmpc3 libpython3-dev libpython3.8-dev libquadmath0
libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make manpages-dev python-pip-whl python3-dev python3-wheel python3.8-dev
zlib1g-dev
Suggested packages:
binutils-doc cpp-doc gcc-9-locales debian-keyring g++-multilib g++-9-multilib gcc-9-doc gcc-multilib autoconf automake
libtool flex bison gdb gcc-doc gcc-9-multilib glibc-doc bzr libstdc++-9-doc make-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9
gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils
libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libexpat1-dev libfakeroot
libfile-fcntllock-perl libgcc-9-dev libgomp1 libisl22 libitm1 liblsan0 libmpc3 libpython3-dev libpython3.8-dev libquadmath0
libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make manpages-dev python-pip-whl python3-dev python3-pip python3-wheel
python3.8-dev zlib1g-dev
0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.8 MB of archives.
After this operation, 214 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-common amd64 2.34-6ubuntu1.3 [207 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libbinutils amd64 2.34-6ubuntu1.3 [474 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf-nobfd0 amd64 2.34-6ubuntu1.3 [47.4 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libctf0 amd64 2.34-6ubuntu1.3 [46.6 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.34-6ubuntu1.3 [1,613 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 binutils amd64 2.34-6ubuntu1.3 [3,380 B]
Get:7 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc-dev-bin amd64 2.31-0ubuntu9.2 [71.8 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-99.112 [1,126 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libcrypt-dev amd64 1:4.4.10-10ubuntu4 [104 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dev amd64 2.31-0ubuntu9.2 [2,520 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-base amd64 9.3.0-17ubuntu1~20.04 [19.1 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libisl22 amd64 0.22.1-1 [592 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libmpc3 amd64 1.1.0-1 [40.8 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 cpp-9 amd64 9.3.0-17ubuntu1~20.04 [7,494 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu focal/main amd64 cpp amd64 4:9.3.0-1ubuntu2 [27.6 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcc1-0 amd64 10.3.0-1ubuntu1~20.04 [48.8 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgomp1 amd64 10.3.0-1ubuntu1~20.04 [102 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libitm1 amd64 10.3.0-1ubuntu1~20.04 [26.2 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libatomic1 amd64 10.3.0-1ubuntu1~20.04 [9,284 B]
Get:20 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libasan5 amd64 9.3.0-17ubuntu1~20.04 [394 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 liblsan0 amd64 10.3.0-1ubuntu1~20.04 [835 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libtsan0 amd64 10.3.0-1ubuntu1~20.04 [2,009 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libubsan1 amd64 10.3.0-1ubuntu1~20.04 [784 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libquadmath0 amd64 10.3.0-1ubuntu1~20.04 [146 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgcc-9-dev amd64 9.3.0-17ubuntu1~20.04 [2,360 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.3.0-17ubuntu1~20.04 [8,241 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu focal/main amd64 gcc amd64 4:9.3.0-1ubuntu2 [5,208 B]
Get:28 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libstdc++-9-dev amd64 9.3.0-17ubuntu1~20.04 [1,714 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.3.0-17ubuntu1~20.04 [8,405 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu focal/main amd64 g++ amd64 4:9.3.0-1ubuntu2 [1,604 B]
Get:31 http://us.archive.ubuntu.com/ubuntu focal/main amd64 make amd64 4.2.1-1.2 [162 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libdpkg-perl all 1.19.7ubuntu3 [230 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu focal/main amd64 dpkg-dev all 1.19.7ubuntu3 [679 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 build-essential amd64 12.8ubuntu1.1 [4,664 B]
Get:35 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libfakeroot amd64 1.24-1 [25.7 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu focal/main amd64 fakeroot amd64 1.24-1 [62.6 kB]
Get:37 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-diff-perl all 1.19.03-2 [46.6 kB]
Get:38 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-diff-xs-perl amd64 0.04-6 [11.3 kB]
Get:39 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:40 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libexpat1-dev amd64 2.2.9-1build1 [116 kB]
Get:41 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libfile-fcntllock-perl amd64 0.22-3build4 [33.1 kB]
Get:42 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-dev amd64 3.8.10-0ubuntu1~20.04.2 [3,950 kB]
Get:43 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libpython3-dev amd64 3.8.2-0ubuntu2 [7,236 B]
Get:44 http://us.archive.ubuntu.com/ubuntu focal/main amd64 manpages-dev all 5.05-1 [2,266 kB]
Get:45 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.6 [1,805 kB]
Get:46 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu1.2 [155 kB]
Get:47 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-dev amd64 3.8.10-0ubuntu1~20.04.2 [510 kB]
Get:48 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-dev amd64 3.8.2-0ubuntu2 [1,212 B]
Get:49 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-wheel all 0.34.2-1 [23.8 kB]
Get:50 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3-pip all 20.0.2-5ubuntu1.6 [231 kB]
Fetched 49.8 MB in 2s (22.9 MB/s)
Extracting templates from packages: 100%
Selecting previously unselected package binutils-common:amd64.
(Reading database ... 71709 files and directories currently installed.)
Preparing to unpack .../00-binutils-common_2.34-6ubuntu1.3_amd64.deb ...
Unpacking binutils-common:amd64 (2.34-6ubuntu1.3) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../01-libbinutils_2.34-6ubuntu1.3_amd64.deb ...
Unpacking libbinutils:amd64 (2.34-6ubuntu1.3) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../02-libctf-nobfd0_2.34-6ubuntu1.3_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../03-libctf0_2.34-6ubuntu1.3_amd64.deb ...
Unpacking libctf0:amd64 (2.34-6ubuntu1.3) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../04-binutils-x86-64-linux-gnu_2.34-6ubuntu1.3_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...
Selecting previously unselected package binutils.
Preparing to unpack .../05-binutils_2.34-6ubuntu1.3_amd64.deb ...
Unpacking binutils (2.34-6ubuntu1.3) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../06-libc-dev-bin_2.31-0ubuntu9.2_amd64.deb ...
Unpacking libc-dev-bin (2.31-0ubuntu9.2) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../07-linux-libc-dev_5.4.0-99.112_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.4.0-99.112) ...
Selecting previously unselected package libcrypt-dev:amd64.
Preparing to unpack .../08-libcrypt-dev_1%3a4.4.10-10ubuntu4_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../09-libc6-dev_2.31-0ubuntu9.2_amd64.deb ...
Unpacking libc6-dev:amd64 (2.31-0ubuntu9.2) ...
Selecting previously unselected package gcc-9-base:amd64.
Preparing to unpack .../10-gcc-9-base_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking gcc-9-base:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package libisl22:amd64.
Preparing to unpack .../11-libisl22_0.22.1-1_amd64.deb ...
Unpacking libisl22:amd64 (0.22.1-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../12-libmpc3_1.1.0-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.1.0-1) ...
Selecting previously unselected package cpp-9.
Preparing to unpack .../13-cpp-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking cpp-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package cpp.
Preparing to unpack .../14-cpp_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking cpp (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../15-libcc1-0_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libcc1-0:amd64 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../16-libgomp1_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libgomp1:amd64 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../17-libitm1_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libitm1:amd64 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../18-libatomic1_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libatomic1:amd64 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libasan5:amd64.
Preparing to unpack .../19-libasan5_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libasan5:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../20-liblsan0_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking liblsan0:amd64 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../21-libtsan0_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libtsan0:amd64 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../22-libubsan1_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libubsan1:amd64 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../23-libquadmath0_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libquadmath0:amd64 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libgcc-9-dev:amd64.
Preparing to unpack .../24-libgcc-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libgcc-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package gcc-9.
Preparing to unpack .../25-gcc-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking gcc-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package gcc.
Preparing to unpack .../26-gcc_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking gcc (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package libstdc++-9-dev:amd64.
Preparing to unpack .../27-libstdc++-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package g++-9.
Preparing to unpack .../28-g++-9_9.3.0-17ubuntu1~20.04_amd64.deb ...
Unpacking g++-9 (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package g++.
Preparing to unpack .../29-g++_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking g++ (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package make.
Preparing to unpack .../30-make_4.2.1-1.2_amd64.deb ...
Unpacking make (4.2.1-1.2) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../31-libdpkg-perl_1.19.7ubuntu3_all.deb ...
Unpacking libdpkg-perl (1.19.7ubuntu3) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../32-dpkg-dev_1.19.7ubuntu3_all.deb ...
Unpacking dpkg-dev (1.19.7ubuntu3) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../33-build-essential_12.8ubuntu1.1_amd64.deb ...
Unpacking build-essential (12.8ubuntu1.1) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../34-libfakeroot_1.24-1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.24-1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../35-fakeroot_1.24-1_amd64.deb ...
Unpacking fakeroot (1.24-1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../36-libalgorithm-diff-perl_1.19.03-2_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-2) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../37-libalgorithm-diff-xs-perl_0.04-6_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-6) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../38-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../39-libexpat1-dev_2.2.9-1build1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.2.9-1build1) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../40-libfile-fcntllock-perl_0.22-3build4_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3build4) ...
Selecting previously unselected package libpython3.8-dev:amd64.
Preparing to unpack .../41-libpython3.8-dev_3.8.10-0ubuntu1~20.04.2_amd64.deb ...
Unpacking libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04.2) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../42-libpython3-dev_3.8.2-0ubuntu2_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.8.2-0ubuntu2) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../43-manpages-dev_5.05-1_all.deb ...
Unpacking manpages-dev (5.05-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../44-python-pip-whl_20.0.2-5ubuntu1.6_all.deb ...
Unpacking python-pip-whl (20.0.2-5ubuntu1.6) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../45-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu1.2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1.2) ...
Selecting previously unselected package python3.8-dev.
Preparing to unpack .../46-python3.8-dev_3.8.10-0ubuntu1~20.04.2_amd64.deb ...
Unpacking python3.8-dev (3.8.10-0ubuntu1~20.04.2) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../47-python3-dev_3.8.2-0ubuntu2_amd64.deb ...
Unpacking python3-dev (3.8.2-0ubuntu2) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../48-python3-wheel_0.34.2-1_all.deb ...
Unpacking python3-wheel (0.34.2-1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../49-python3-pip_20.0.2-5ubuntu1.6_all.deb ...
Unpacking python3-pip (20.0.2-5ubuntu1.6) ...
Setting up manpages-dev (5.05-1) ...
Setting up libfile-fcntllock-perl (0.22-3build4) ...
Setting up libalgorithm-diff-perl (1.19.03-2) ...
Setting up binutils-common:amd64 (2.34-6ubuntu1.3) ...
Setting up linux-libc-dev:amd64 (5.4.0-99.112) ...
Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...
Setting up libgomp1:amd64 (10.3.0-1ubuntu1~20.04) ...
Setting up python3-wheel (0.34.2-1) ...
Setting up libfakeroot:amd64 (1.24-1) ...
Setting up fakeroot (1.24-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up make (4.2.1-1.2) ...
Setting up libquadmath0:amd64 (10.3.0-1ubuntu1~20.04) ...
Setting up libmpc3:amd64 (1.1.0-1) ...
Setting up libatomic1:amd64 (10.3.0-1ubuntu1~20.04) ...
Setting up libdpkg-perl (1.19.7ubuntu3) ...
Setting up libubsan1:amd64 (10.3.0-1ubuntu1~20.04) ...
Setting up libcrypt-dev:amd64 (1:4.4.10-10ubuntu4) ...
Setting up libisl22:amd64 (0.22.1-1) ...
Setting up python-pip-whl (20.0.2-5ubuntu1.6) ...
Setting up libbinutils:amd64 (2.34-6ubuntu1.3) ...
Setting up libc-dev-bin (2.31-0ubuntu9.2) ...
Setting up libalgorithm-diff-xs-perl (0.04-6) ...
Setting up libcc1-0:amd64 (10.3.0-1ubuntu1~20.04) ...
Setting up liblsan0:amd64 (10.3.0-1ubuntu1~20.04) ...
Setting up libitm1:amd64 (10.3.0-1ubuntu1~20.04) ...
Setting up gcc-9-base:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libtsan0:amd64 (10.3.0-1ubuntu1~20.04) ...
Setting up libctf0:amd64 (2.34-6ubuntu1.3) ...
Setting up libasan5:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up python3-pip (20.0.2-5ubuntu1.6) ...
Setting up cpp-9 (9.3.0-17ubuntu1~20.04) ...
Setting up libc6-dev:amd64 (2.31-0ubuntu9.2) ...
Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...
Setting up binutils (2.34-6ubuntu1.3) ...
Setting up dpkg-dev (1.19.7ubuntu3) ...
Setting up libgcc-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up libexpat1-dev:amd64 (2.2.9-1build1) ...
Setting up libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04.2) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1.2) ...
Setting up cpp (4:9.3.0-1ubuntu2) ...
Setting up gcc-9 (9.3.0-17ubuntu1~20.04) ...
Setting up libpython3-dev:amd64 (3.8.2-0ubuntu2) ...
Setting up libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) ...
Setting up gcc (4:9.3.0-1ubuntu2) ...
Setting up g++-9 (9.3.0-17ubuntu1~20.04) ...
Setting up python3.8-dev (3.8.10-0ubuntu1~20.04.2) ...
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.8ubuntu1.1) ...
Setting up python3-dev (3.8.2-0ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
u204@u204:~$ sudo python3 -m pip install -r requirements.txt
Collecting ansible==5.2.0
Downloading ansible-5.2.0.tar.gz (37.9 MB)
|████████████████████████████████| 37.9 MB 39.6 MB/s
Collecting ansible-core==2.12.1
Downloading ansible-core-2.12.1.tar.gz (7.4 MB)
|████████████████████████████████| 7.4 MB 16.3 MB/s
Requirement already satisfied: cryptography==2.8 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (2.8)
Requirement already satisfied: Jinja2==2.10.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (2.10.1)
Requirement already satisfied: MarkupSafe==1.1.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5)) (1.1.0)
Collecting packaging==21.3
Downloading packaging-21.3-py3-none-any.whl (40 kB)
|████████████████████████████████| 40 kB 17.6 MB/s
Collecting pyparsing==3.0.6
Downloading pyparsing-3.0.6-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 20.4 MB/s
Requirement already satisfied: PyYAML==5.3.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 8)) (5.3.1)
Collecting resolvelib==0.5.4
Downloading resolvelib-0.5.4-py2.py3-none-any.whl (12 kB)
Building wheels for collected packages: ansible, ansible-core
Building wheel for ansible (setup.py) ... done
Created wheel for ansible: filename=ansible-5.2.0-py3-none-any.whl size=62990786 sha256=c73a5a38c488448ba3760c5d47f55fb6f05b8a8261b2d7fb29a616f8fbc11372
Stored in directory: /root/.cache/pip/wheels/d8/ee/28/bc3d171cb674cdc6ab434127534b87e5e89956f9e6c0a71af2
Building wheel for ansible-core (setup.py) ... done
Created wheel for ansible-core: filename=ansible_core-2.12.1-py3-none-any.whl size=2073412 sha256=d058cf5ad171aa3adcb26c6da0a8dc0a76b74942ed3a53b789227820f756d082
Stored in directory: /root/.cache/pip/wheels/34/bd/63/4f3348987a1079c559b4f10f5a8460784d8ac803d46e762d87
Successfully built ansible ansible-core
Installing collected packages: pyparsing, packaging, resolvelib, ansible-core, ansible
Successfully installed ansible-5.2.0 ansible-core-2.12.1 packaging-21.3 pyparsing-3.0.6 resolvelib-0.5.4
u204@u204:~$
u204@u204:~$
u204@u204:~$ ip a sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:87:cc:06 brd ff:ff:ff:ff:ff:ff
inet 10.253.1.90/24 brd 10.253.1.255 scope global dynamic ens160
valid_lft 85991sec preferred_lft 85991sec
inet6 fe80::250:56ff:fe87:cc06/64 scope link
valid_lft forever preferred_lft forever
3: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:87:c6:56 brd ff:ff:ff:ff:ff:ff
inet6 2620:10d:c089:701:250:56ff:fe87:c656/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 86391sec preferred_lft 14391sec
inet6 fe80::250:56ff:fe87:c656/64 scope link
valid_lft forever preferred_lft forever
u204@u204:~$
u204@u204:~$ git clone https://github.com/magma/magma.git
Cloning into 'magma'...
remote: Enumerating objects: 236070, done.
remote: Counting objects: 100% (57/57), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 236070 (delta 31), reused 19 (delta 6), pack-reused 236013
Receiving objects: 100% (236070/236070), 214.09 MiB | 21.15 MiB/s, done.
Resolving deltas: 100% (163600/163600), done.
Updating files: 100% (9154/9154), done.
u204@u204:~$ cd magma/lte/gateway/deploy/magma_5g_agw
-bash: cd: magma/lte/gateway/deploy/magma_5g_agw: No such file or directory
u204@u204:~$
u204@u204:~$ ls
magma requirements.txt
u204@u204:~$ cd magma/lte/gateway/deploy/
u204@u204:~/magma/lte/gateway/deploy$ ls
agwc-helm-charts agw_ovs_user_space.sh hosts magma_docker.yml magma_trfserver.yml
agw_install_docker.sh agw_post_install_ubuntu.sh magma_deploy.yml magma_prod.yml roles
agw_install_ubuntu.sh agw_pre_check_ubuntu.sh magma_dev_focal.yml magma_test.yml
u204@u204:~/magma/lte/gateway/deploy$
u204@u204:~/magma/lte/gateway/deploy$
u204@u204:~/magma/lte/gateway/deploy$ find / -iname "magma_5g_agw*" 2>1
u204@u204:~/magma/lte/gateway/deploy$
u204@u204:~/magma/lte/gateway/deploy$
u204@u204:~/magma/lte/gateway/deploy$
u204@u204:~/magma/lte/gateway/deploy$
u204@u204:~/magma/lte/gateway/deploy$
u204@u204:~/magma/lte/gateway/deploy$
u204@u204:~/magma/lte/gateway/deploy$ cd -
/home/u204
u204@u204:~$
u204@u204:~$ ls
magma requirements.txt
u204@u204:~$ rm -rf magma/
u204@u204:~$
u204@u204:~$
u204@u204:~$ ls
requirements.txt
u204@u204:~$ git clone https://github.com/wavelabsai/magma.git
Cloning into 'magma'...
remote: Enumerating objects: 231745, done.
remote: Total 231745 (delta 0), reused 0 (delta 0), pack-reused 231745
Receiving objects: 100% (231745/231745), 196.19 MiB | 26.56 MiB/s, done.
Resolving deltas: 100% (160727/160727), done.
Updating files: 100% (9099/9099), done.
u204@u204:~$ cd magma/lte/gateway/deploy/magma_5g_agw
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ ls
agw_ansible_hosts agw_deploy.yaml agw_info.yaml ansible.cfg ansible_vars.yaml README.md roles
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ ip a sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:87:cc:06 brd ff:ff:ff:ff:ff:ff
inet 10.253.1.90/24 brd 10.253.1.255 scope global dynamic ens160
valid_lft 85254sec preferred_lft 85254sec
inet6 fe80::250:56ff:fe87:cc06/64 scope link
valid_lft forever preferred_lft forever
3: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:87:c6:56 brd ff:ff:ff:ff:ff:ff
inet6 2620:10d:c089:701:250:56ff:fe87:c656/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 86398sec preferred_lft 14398sec
inet6 fe80::250:56ff:fe87:c656/64 scope link
valid_lft forever preferred_lft forever
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ nano agw_ansible_hosts
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ cat agw_ansible_hosts
all:
hosts:
10.253.1.90
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ ls
agw_ansible_hosts agw_deploy.yaml agw_info.yaml ansible.cfg ansible_vars.yaml README.md roles
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ nano ansible.cfg
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ nano -l ansible.cfg
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ cd -
/home/u204
u204@u204:~$ ssh-keygen -t ed25519
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/u204/.ssh/id_ed25519):
Created directory '/home/u204/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/u204/.ssh/id_ed25519
Your public key has been saved in /home/u204/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:nvwZ8he7Qk2N/C5TfQF0KICwEp9rZyLkb9IsAaE1OII u204@u204
The key's randomart image is:
+--[ED25519 256]--+
|.oo. .. ... .... |
|E...o o. . o. |
|oo o + ..o. |
| + . . + .. |
| + + oS o . ..|
| B +o .. o o o|
| o = =.. = .|
| + +.o= . |
| +o.+ |
+----[SHA256]-----+
u204@u204:~$ cd -
/home/u204/magma/lte/gateway/deploy/magma_5g_agw
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ nano -l ansible.cfg
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ cat ansible_vars.yaml
# Make it false if you want to use static IP
configure_dhcp: true
# Uncomment eth0, eth1, eth0_netmask, eth1_netmask, eth0_gateway, eth1_gateway if you want to use static IP.
# eth0: ""
# eth1: ""
# eth0_netmask: ""
# eth1_netmask: ""
# eth0_gateway: ""
# eth1_gateway: ""
magma_control_proxy_path: ""
magma_rootCA_path: ""
magma_5g_upgrade: true
# If you want any specific version to be installed then uncomment the below and specify the version
magma5gVersion: "1.7.0-1643760676-2482dea0"
magma_pkgrepo_dist: "focal-1.6.1"u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ nano ansible_vars.yaml
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ nano -l ansible_vars.yaml
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ cat ansible_vars.yaml
# Make it false if you want to use static IP
configure_dhcp: true
# Uncomment eth0, eth1, eth0_netmask, eth1_netmask, eth0_gateway, eth1_gateway if you want to use static IP.
# eth0: ""
# eth1: ""
# eth0_netmask: ""
# eth1_netmask: ""
# eth0_gateway: ""
# eth1_gateway: ""
magma_control_proxy_path: ""
magma_rootCA_path: ""
magma_5g_upgrade: false
# If you want any specific version to be installed then uncomment the below and specify the version
magma5gVersion: "1.7.0-1643760676-2482dea0"
magma_pkgrepo_dist: "focal-1.6.0"
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ ansible-playbook agw_deploy.yaml -e "@ansible_vars.yaml"
PLAY [Install AGW] *************************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************
Monday 14 February 2022 20:19:47 +0000 (0:00:00.044) 0:00:00.044 *******
fatal: [10.253.1.90]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '10.253.1.90' (ECDSA) to the list of known hosts.\r\nu204@10.253.1.90: Permission denied (publickey,password).", "unreachable": true}
PLAY RECAP *********************************************************************************************************************
10.253.1.90 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Monday 14 February 2022 20:19:47 +0000 (0:00:00.078) 0:00:00.123 *******
===============================================================================
Gathering Facts --------------------------------------------------------------------------------------------------------- 0.08s
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ ping 10.253.1.90
PING 10.253.1.90 (10.253.1.90) 56(84) bytes of data.
64 bytes from 10.253.1.90: icmp_seq=1 ttl=64 time=0.020 ms
64 bytes from 10.253.1.90: icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from 10.253.1.90: icmp_seq=3 ttl=64 time=0.030 ms
^C
--- 10.253.1.90 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2029ms
rtt min/avg/max/mdev = 0.020/0.027/0.032/0.005 ms
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ ansible-playbook agw_deploy.yaml -e "@ansible_vars.yaml" --ask-pass
SSH password:
PLAY [Install AGW] *************************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************
Monday 14 February 2022 20:20:27 +0000 (0:00:00.044) 0:00:00.044 *******
fatal: [10.253.1.90]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords or pkcs11_provider, you must install the sshpass program"}
PLAY RECAP *********************************************************************************************************************
10.253.1.90 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Monday 14 February 2022 20:20:27 +0000 (0:00:00.019) 0:00:00.064 *******
===============================================================================
Gathering Facts --------------------------------------------------------------------------------------------------------- 0.02s
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ apt install sshpass
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ sudo apt install sshpass
[sudo] password for u204:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sshpass
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.5 kB of archives.
After this operation, 30.7 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 sshpass amd64 1.06-1 [10.5 kB]
Fetched 10.5 kB in 0s (44.9 kB/s)
Selecting previously unselected package sshpass.
(Reading database ... 77822 files and directories currently installed.)
Preparing to unpack .../sshpass_1.06-1_amd64.deb ...
Unpacking sshpass (1.06-1) ...
Setting up sshpass (1.06-1) ...
Processing triggers for man-db (2.9.1-1) ...
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ ansible-playbook agw_deploy.yaml -e "@ansible_vars.yaml" --ask-pass
SSH password:
PLAY [Install AGW] ******************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************************
Monday 14 February 2022 20:21:28 +0000 (0:00:00.044) 0:00:00.044 *******
fatal: [10.253.1.90]: FAILED! => {"msg": "Timeout (62s) waiting for privilege escalation prompt: "}
PLAY RECAP **************************************************************************************************************************************************************
10.253.1.90 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Monday 14 February 2022 20:22:31 +0000 (0:01:03.261) 0:01:03.305 *******
===============================================================================
Gathering Facts ------------------------------------------------------------------------------------------------------------------------------------------------- 63.26s
u204@u204:~/magma/lte/gateway/deploy/magma_5g_agw$ sudo cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
u204 ALL=(ALL) NOPASSWD:ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment