-
Notifications
You must be signed in to change notification settings - Fork 7
1. [EN] How to Install?
- RaspberryPi 4 or RaspberryPi 5
- MicroSD 128GB or more (Class A2 is recommended)
- RaspberryPi OS LITE(64-bit) for RaspberryPI 4
- RaspberryPi OS LITE(64-bit) for RaspberryPI 5
You can download RaspberryPi OS Imager from here.
https://www.raspberrypi.com/software/
We recommend, over 128GB storage size.
When you run a RaspberryPi OS Imager, Please select your type of device(RaspberryPi 4 or RaspberryPi 5). OS Type is "RaspberryPi OS LITE(64-bit)". and storage means your SDcard drive.
- Raspberry Pi Device: "RASPBERRY PI 4" or "RASPBERRY PI 4"
- Operating System: "RASPBERRY PI OS LITE(64-bit)"
- Storage: << Choose your SDcard drive >>
Then, click NEXT
button.
Click EDIT SETTINGS
button.
- Host name:
unvtportable.local
If there are multiple devices, prefix the host name with the two-digit aircraft ID. Example:unvtportable01.local
- User name:
unvt
- Password:
unvt
or you can modify any password - Wi-Fi Settings: depends on your environment
- Locale Settings: depends on your remote PC and Language
Then, click SAVE
button.
- Check the "Enable SSH"
Then, click SAVE
button.
Click YES
button.
Click YES
button again.
Please wait a moment...
You can remove SDcard. After that, you should insert it into the RaspberryPi device.
Connect USB-C cable for Power, Automatically your RaspberryPi device will start.
ssh-keygen -R unvtportable.local
sudo apt update -y
sudo apt install nginx
sudo systemctl status nginx
- Start:
sudo systemctl start nginx
- Stop:
sudo systemctl stop nginx
- ReStart:
sudo systemctl restart nginx
hostname -I
unvt@unvtportable:~ $ hostname -I 10.0.4.10
unvt@unvtportable:~ $ hostname -I 192.168.137.48
Access IP addresshttp://x.x.x.x/ with a web browser to check operation
Modify the NetworkManager.conf file using the nano editor to allow NetworkManager to manage the Wi-Fi interface. It is important to set managed=true
.
sudo nano /etc/NetworkManager/NetworkManager.conf
Delete the [main][ifupdown] part by pressing Ctrl + k
key, paste the following, and overwrite the file (press Ctrl + s
to save, Ctrl + x
to exit).
[main]
plugins=ifupdown,keyfile
dhcp=internal
[ifupdown]
managed=true
sudo reboot
<<< Please wait a few minutes for a Wi-Fi connection >>>
- Default SSID: UNVTportable
- Default Password: UNVTportable
When testing with multiple units, add a suffix as follows
- SSID: UNVTportable0x
- Default Password: UNVTportable
sudo nmcli dev wifi hotspot ifname wlan0 ssid UNVTportable band bg password UNVTportable
sudo nmcli dev wifi hotspot ifname wlan0 ssid UNVTportable0x band bg password UNVTportable
After a while, the RaspberryPi automatically switches Wi-Fi access point and the ssh connection is interrupted. 2-3 minutes of coffee time.
When UNVTportable appears at the Wi-Fi access point, connect using the password UNVTportable.
Reconfirm IP address
hostname -I
unvt@unvtportable:~ $ hostname -I 10.42.0.1
IP address was 10.0.4.10 earlier changed to 10.42.0.1. Access http://10.42.0.1/ with a web browser to check the operation.
Access point auto-activation settings
sudo nmcli connection modify Hotspot autoconnect yes
The owner is root account.
ls -ld /var/www/html
unvt@unvtportable:~ $ ls -ld /var/www/html drwxr-xr-x 2 root root 4096 Oct 3 14:41 /var/www/html
Change access privileges to unvt account and unvt group -R option makes owner privileges recursively unvt even under html files.
sudo chown -R unvt:unvt /var/www/html
unvt@unvtportable:~ $ ls -ld /var/www/html drwxr-xr-x 2 unvt unvt 4096 Oct 3 14:41 /var/www/html
Confirm that access rights have been properly changed from root to the unvt account.
https://github.com/mapconcierge/unvtportable2024dataset4test
- index.html
- main.js
- maplibre-gl.css
- maplibre-gl.js
- pmtiles.js
- style.css
- data/
- zxy/
Thank you for template files by @asahina820
Update this conceptual diagram for data placement rules https://github.com/unvt/portable/wiki/2.-How-to-use
In the local machine's terminal, move the current directory to the path of the MapLibre-related files.
cd [dataset's path]
Don't forget to include the -r option for the scp command and upload
scp -r * [email protected]:/var/www/html/
taichi@MacBookProM1Pro2021 html % scp -r . [email protected]:/var/www/html/
[email protected]'s password:
maplibre-gl.js 100% 1142KB 2.9MB/s 00:00
._maplibre-gl.js 100% 4096 283.5KB/s 00:00
._index.html 100% 4096 683.6KB/s 00:00
style.json 100% 79KB 1.6MB/s 00:00
Thus, data transfer at once. Time for a cup of coffee.
If you access http://10.42.0.1/ in a web browser, you should see a MapLibre GL map.
This project is maintained by UN OpenGIS Initiative, WG7 Smart Maps
supported by Taichi Furuhashi Laboratory, Aoyama Gakuin University, Japan