Skip to content

Instantly share code, notes, and snippets.

@takurx
Last active December 22, 2020 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takurx/39f1d4c21d213da2495bae1bbbae7e15 to your computer and use it in GitHub Desktop.
Save takurx/39f1d4c21d213da2495bae1bbbae7e15 to your computer and use it in GitHub Desktop.
write SD card on Ubuntu 20.04 (balenaEther) and arp-scan

write SD card on Ubuntu 20.04 (balenaEther) and arp-scan

balenaEthcher

chiya@ujimatsu:~/Desktop$ ./balenaEtcher-1.5.113-x64.AppImage 
{"message":"getaddrinfo EAI_AGAIN balena.io","stack":"Error: getaddrinfo EAI_AGAIN balena.io\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)","config":{"url":"https://balena.io/etcher/static/config.json","method":"get","headers":{"Accept":"application/json, text/plain, */*","User-Agent":"axios/1.5.113"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"responseType":"json","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1},"code":"EAI_AGAIN"}
ready-to-show: 1118.077ms
{"message":"getaddrinfo EAI_AGAIN balena.io","stack":"Error: getaddrinfo EAI_AGAIN balena.io\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)","config":{"url":"https://balena.io/etcher/static/config.json","method":"get","headers":{"Accept":"application/json, text/plain, */*","User-Agent":"axios/1.5.113"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"responseType":"json","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1},"code":"EAI_AGAIN"}

arp-scan

hiya@ujimatsu:~/Desktop$ sudo apt install arp-scan
[sudo] password for chiya: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gconf2 linux-headers-5.4.0-54 linux-headers-5.4.0-54-generic linux-image-5.4.0-54-generic linux-modules-5.4.0-54-generic
  linux-modules-extra-5.4.0-54-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ieee-data
The following NEW packages will be installed:
  arp-scan ieee-data
0 upgraded, 2 newly installed, 0 to remove and 54 not upgraded.
Need to get 1,927 kB of archives.
After this operation, 11.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 ieee-data all 20180805.1 [1,589 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 arp-scan amd64 1.9.7-1 [338 kB]
Fetched 1,927 kB in 4s (484 kB/s) 
Selecting previously unselected package ieee-data.
(Reading database ... 464703 files and directories currently installed.)
Preparing to unpack .../ieee-data_20180805.1_all.deb ...
Unpacking ieee-data (20180805.1) ...
Selecting previously unselected package arp-scan.
Preparing to unpack .../arp-scan_1.9.7-1_amd64.deb ...
Unpacking arp-scan (1.9.7-1) ...
Setting up ieee-data (20180805.1) ...
Setting up arp-scan (1.9.7-1) ...
Processing triggers for man-db (2.9.1-1) ...
chiya@ujimatsu:~/Desktop$ ip a
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: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether e8:6a:64:88:74:eb brd ff:ff:ff:ff:ff:ff
    inet 10.144.1.209/24 brd 10.144.1.255 scope global dynamic noprefixroute enp0s31f6
       valid_lft 43192sec preferred_lft 43192sec
    inet6 fe80::88d9:28e0:2ab:a28f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 50:76:af:42:a5:81 brd ff:ff:ff:ff:ff:ff
    inet 10.142.170.207/16 brd 10.142.255.255 scope global dynamic noprefixroute wlp3s0
       valid_lft 463sec preferred_lft 463sec
    inet6 240b:12:2a0:9200:a96a:7676:f02a:b102/64 scope global temporary dynamic 
       valid_lft 603923sec preferred_lft 85228sec
    inet6 240b:12:2a0:9200:5276:afff:fe42:a581/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 2591781sec preferred_lft 604581sec
    inet6 fe80::5276:afff:fe42:a581/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
chiya@ujimatsu:~/Desktop$ sudo arp-scan -I enp0s31f6 -l
[sudo] password for chiya: 
Interface: enp0s31f6, type: EN10MB, MAC: e8:6a:64:88:74:eb, IPv4: 10.144.1.209
Starting arp-scan 1.9.7 with 256 hosts (https://github.com/royhills/arp-scan)
10.144.1.1	00:0d:b9:58:ad:b9	PC Engines GmbH
10.144.1.208	00:04:4b:c6:12:7f	NVIDIA

2 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.9.7: 256 hosts scanned in 1.999 seconds (128.06 hosts/sec). 2 responded
chiya@ujimatsu:~/Desktop$ ssh sharo@10.144.1.208
sharo@10.144.1.208's password: 
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.9.140-tegra aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

340 packages can be updated.
66 updates are security updates.

Last login: Fri Nov  6 22:11:54 2020 from 10.142.225.85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment