Giter Club home page Giter Club logo

portable's People

Contributors

hfu avatar kk-kkch03 avatar mapconcierge avatar shogohirasawa avatar yuiseki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

portable's Issues

UNVT Portable 同時接続テスト 2023-06-27

Wi-Fi specification

Raspberry Pi 4: 2.4 & 5GhZ, 802.11 b/g/n/ac

同時に20人以上接続しようとするとエラーが起きる

  • 23人中7人Wi-Fi接続できた。
  • 接続できた7人も地図表示には時間がかかった。

wiki修正

1-1. Install RaspberryPi OS Lite (32bit).

1-1-1.

Download Raspberry Pi Imager to your local PC
URL: https://www.raspberrypi.com/software/
image

1-1-2. Using Raspberry Pi OS 1.6.2 installer.

image

1-1-3.  Change SSH and Wi-Fi settings before installation.

  • Shift + Command + X : open back menu mode

RP_in_01

  • Change Set hostname: from "raspberrypi.local" to "unvtportable.local".

  • Enable SSH ☑ On.

  • Set password for 'pi' user to "unvt".

  • Configure Wi-Fi settings as appropriate for the work environment.

RP_in_02

  • Configure Locale as appropriate for the work environment.

  • Configure the keyboard layout according to the language used.

RP_in_03

  • Save settings

1-1-4.  Install OS on MicroSD card

RP_in_04

If you cannot connect to ssh using the above steps

  • Connect the SD card to your PC and place the file "ssh" directly under boot.

RP_in_05

  • If you create an ssh file with GUI, there is a bug that the created ssh file disappears on the second and subsequent ssh connections.We recommend that you create the ssh file in CUI using the following command.
cd /Volumes/boot  ## Move to boot
touch ssh ## Create ssh file
ls  ## Check for ssh files

RP_in_06

If the error message WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

RP_in_07

  • If you have been through the process of re-installing the OS multiple times, you will probably get this error. This error seems to occur when reconfiguring the hostname with the same hostname that was previously set. If you get the above error, try the following command.

ssh-keygen -R "host name" ##In the above manual, unvtportable.local

1-2.  Insert the installed MicroSD card into the RaspberryPi terminal and boot.

  • Start a terminal and log in remotely via ssh.

% ssh [email protected]

  • Password is set to unvt.

  • It may take some time to make an ssh connection.

taichi@DRONEBIRD ~ % ssh [email protected]
The authenticity of host 'unvtportable.local (fe80::a01:7bba:ad88:7326%en1)' can't be established.
ECDSA key fingerprint is SHA256:Ne6ZQio+CBMdBHB7Rw1BA27l0xtp6oqfJOBGilmTUwQ.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'unvtportable.local,fe80::a01:7bba:ad88:7326%en1' (ECDSA) to the list of known hosts.
[email protected]'s password:
Linux unvtportable 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
pi@unvtportable:~ $

aa

1-3. Environment settings

1-3-1. APT Update

% sudo apt update -y

pi@unvtportable:~ $ sudo apt update -y
Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]                        
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]                     
Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [316 kB]
Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
Fetched 13.6 MB in 49s (279 kB/s)                                                               
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
13 packages can be upgraded. Run 'apt list --upgradable' to see them.
pi@unvtportable:~ $
image

1-3-2.  List of packages to be installed

  • apatch2
  • hostapd
  • dnsmasq

1-3-3. Apatch2 Installation

% sudo apt install -y apache2

pi@unvtportable:~ $ sudo apt install -y apache2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

---

Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1) ...
pi@unvtportable:~ $

149603394-8f39ea65-57a6-4eb7-a323-6912628f7637

You may face the following errors.

pi@unvtportable:~ $ sudo apt install -y apache2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
---
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
Errors were encountered while processing:
 ssl-cert
E: Sub-process /usr/bin/dpkg returned an error code (1)
image

The following command may solve the problem.

Temporarily move the debconf database:

sudo mv /var/cache/debconf /var/cache/debconf.bak

Create a new directory for the debconf database:

sudo mkdir /var/cache/debconf

Install apache2

sudo apt install -y apache2

Restore the debconf database:

sudo rm -r /var/cache/debconf
sudo mv /var/cache/debconf.bak /var/cache/debconf

1-3-4.  hostapd and dnsmasq Installation

sudo apt install hostapd dnsmasq

1-3-5.  DHCP settiong

sudo vi /etc/dnsmasq.conf

Copy and paste the following into the bottom line of the file.
Set the DHCP range from 192.168.10.11 to 192.168.10.200 so that 190 devices can be assigned IP addresses. You can change this range arbitrarily.

interface=wlan0
dhcp-range=192.168.10.11,192.168.10.200,255.255.255.0,12h

1-3-6. DHCP cliant settiong

Configure dhcpcd.conf to set a fixed IP address for the Raspberry Pi. In this case, we will use 192.168.10.10.

sudo vi /etc/dhcpcd.conf

Add the following settings.

interface wlan0
    static ip_address=192.168.10.10/24
    nohook wpa_supplicant

1-3-7. hostapd setting

Create a file in /etc/hostapd/hostapd.conf.

sudo touch /etc/hostapd/hostapd.conf

Copy and paste the following into the created hostapd.conf
SSID and password can be set freely. However, the password must be at least 8 characters long.

ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
interface=wlan0
driver=nl80211
country_code=JP
ssid=UNVTPortable
hw_mode=g
channel=11
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=unvtportable
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

After that, edit /etc/default/hostapd.

sudo vi /etc/default/hostapd

Change the DAEMON_CONF section as follows DAEMON_CONF="/etc/hostapd/hostapd.conf"

1-3-8 Unmasking hostapd

Execute the following commands.

sudo systemctl unmask hostapd.service

1-3-9 Start the service.

Execute the following commands.

sudo systemctl start hostapd.service

To start the hostapd service from raspberry pi startup, run the following command.

sudo systemctl enable hostapd.service

If you see "UNVT Portable" in the SSID list, you have succeeded!

1-4.  FTP transfer of data you want to host

1-4-1.  Change Permission on /var/www to 744

Access the Raspberry Pi via ssh and change the permissions after /var/www. If you do not change the permissions, you will not be able to access files from the outside.

pi@unvtportable:/var/www $ sudo chmod 744 -R .
pi@unvtportable:/var/www $ ls -al
total 12
drwxrwxrwx  3 root root 4096 Jan 15 10:16 .
drwxr-xr-x 12 root root 4096 Jan 15 10:16 ..
drwxrwxrwx  2 root root 4096 Jan 15 10:16 html

1-4-2. Download FTP client software

Cyberduck will be used in this case.
https://cyberduck.softonic.jp/mac

image

1-4-3.  SFTP data transfer with Cyberduck

Launch Cyberduck and connect it to the Raspberry Pi. Set up as follows.
Connect to unvtportable.local via SFTP (port 22) using Cyberduck

  • Connect to unvtportable.local
  • Account: pi
  • Password: unvt

image

1-5. Transfer hosting files to Raspberry Pi

Transfer the following folders and files under /var/www/html as they are.
File migration may take some time.

https://github.com/ShogoHirasawa/UNVTPortable-Buffer/tree/main/html

UN-EC_OSS4SDG_hachathon2022

Title: Offline Web Map Server “UNVT Portable” for Disaster Response

Solution Image

198911739-d5afb86f-388a-44cf-9897-a4134eaee405

HowtoStoreTileDatainUNVTPortable_NTSC.mp4
HowtoInstallUNVTPortable_NTSC.mp4

Challenge:

(7) Open Challenge

Solution Description:

The UN Vector Tile Toolkit is a package of open source tools designed under the UN Open GIS Initiative to enable public basemap providers, such as the UN Geospatial Information Service and national government mapping agencies, to leverage the latest web mapping technology to It is designed to enable public basemap providers such as the United Nations Geospatial Information Service and national government mapping agencies to deliver basemap vector tiles using the latest web mapping technology. (UN Open GIS Initiative, 2022). The UNVT Tile Toolkit is packaged with existing proven open source software that generates, hosts, styles, and optimizes fast, interoperable basemap vector tiles for use in various application frameworks. (The United Nations Vector Tile Toolkit, 2022)

UNVT Portable is a package for RaspberryPi that acts as a hosting server for vector/raster tile maps and can be freely accessed from a web browser in a local network. It is mainly intended to function in an offline environment in the event of a severe disaster. It is possible to combine drone aerial images with OpenStreetMap and various open data prepared in advance and overlay them on a Web browser in municipalities where disaster crisis headquarters have been established. The system is expected to play an active role in use cases to efficiently grasp the situation of the entire disaster area and enable prompt relief and reconstruction work.

Co-authors

  • Taiyu Ozawa
  • Motoya Kawano
  • Wataru Yoshida
  • Kohki Urara Kikuchi
  • Naoya Uematsu

Mentors

  • Hidenori Fujimura
  • Taro Ubukawa
  • Taichi Furuhashi

Tags

UN OpenGIS Initiative, UNVT, RaspberryPi, Vector Tile, MapLibre

2023 アジア理解UNVT portable レクチャーに関する質問

・2022年4月〜現在までにおける、OpenGIS Initiative と UNVTがどんな進化を遂げたのか

・その事例

・PoC implementedについて

・2022年の資料についての質問
↓↓
スクリーンショット 2023-02-23 17 57 05

ここをどう説明するべきか

スクリーンショット 2023-02-23 17 57 57

styleの詳細がわかりません

スクリーンショット 2023-02-23 17 58 21

オフライン環境下でどうやってGitHubに入れるのか

スクリーンショット 2023-02-23 17 58 54

オンライン環境下でラズパイに入れて、オフラインの災害地に持っていくという認識であっているか

スクリーンショット 2023-02-23 17 59 25

optimizeの全体的な意味が分からない

スクリーンショット 2023-02-23 17 59 55

この図は何を示しているのか

スクリーンショット 2023-02-23 18 00 23

この資料の意味意味がわかりません

スクリーンショット 2023-02-23 18 00 47

どういった意味の資料かわかりません

スクリーンショット 2023-02-23 18 01 08

ここもわかりません

スクリーンショット 2023-02-23 18 01 50

これは一体なんでしょうか

再起動時にサーバを自動起動する方法

再起動時にサーバを自動起動する

  1. ラズベリーパイの特定のディレクトリ内(/usr/local/bin/)に自動起動用のシェルを作成する。
sudo nano /usr/local/bin/autostart.sh
  1. 自動起動用のシェルを作成する(nano)。hostapdを再起動する。
#!/bin/sh
sudo systemctl restart hostapd
  1. 作成したシェルスクリプトに実行権限を付与する。
chmod 755 /usr/local/bin/autostart.sh
  1. 起動時に作成したシェルスクリプトが実行するように設定する。
  • /etc/rc.localというファイルは起動時に実行されるので、そこに先ほどのシェルスクリプトを追加します。
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

# Automatically start UNVT4TCG
autostart.sh
printf "UNVT4TCG is working..."

exit 0
  • autostart.sh以下を追記。※画面上で実行された事が確認できるようにprintfも追記

SotM 2022 Poster

Submission requirements

  • The Poster should be for A0 size (841×1189 mm)
  • The Poster should be related to OpenStreetMap
  • The Poster should be open, innovative and transparent (no-copying)
  • The Poster must be your own work (individual, team or institution)
  • The Poster should be under an open license (CC-BY-SA 3.0 or later recommended or CC0 )
  • Maximum two entries per person, team or institution

ポスター作成用ファイル

  • 初期テンプレート on Pages
    各自で URL管理

Backups

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.