unvt / washi Goto Github PK
View Code? Open in Web Editor NEWa capacity building material
License: Creative Commons Zero v1.0 Universal
a capacity building material
License: Creative Commons Zero v1.0 Universal
Here are some references.
I would recommend vimtutor
command to learn about how to use vi
text editor.
In this issue you can set up WiFi connection and also can change the hostname of your Raspberry Pi so that you can connect to your Raspberry Pi through WiFi. After that, you can connect to your Raspberry Pi from anywhere in the room without connecting your Raspberry Pi and your PC using an Ethernet cable!
sudo raspi-config
Please select 2 Network Options.
You are probably asked to select your country.
Enter your WiFi passphrase then the WiFi connection is set up.
You need to have your own hostname when you have more than two RaspberryPi-s in a single WiFi network. The default hostname is raspberrypi.local
which you used to log in. There will be a hostname conflict if your team connect several RaspberryPi-s with this default hostname.
Select 2 Network Options again.
You can choose a unique name for your Raspberry Pi. I keep the default 'raspberrypi' for this capacity building text for a less confusion.
For we are now using Remote Desktop Connection (RDC), the use of tmux
is less relevant. However, tmux
is useful when you are connecting via CLI, and/or you are using a relatively unstable connection.
Because tmux
is included in equinox
setup, you can simply use tmux
as below.
Now you can do multitasking from a single CLI by Ctrl-b Ctrl-c. See the document below for more details.
tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.
The figure below explains how we wrap UNVT with additional technologies to assist this capacity building activity.
At the center, UNVT is the geospatial toolkit as explained in #51. We wrap UNVT by VS Code (Visual Studio Code) so that we can more easily handle the Command-Line Interface (CLI) and also we can more easily edit the configuration file.
The whole computing environment is implemented on a single-board computer named Raspberry Pi.
In connecting Raspberry Pi with your PC, we use Remote Desktop Connection (on Windows) or Microsoft Remote Desktop (on macOS).
The configuration files and the vector tile data, and the documentation like this document, are shared using GitHub.
Windows or Mac, with WiFi and an Ethernet port.
With an empty microSD card.
Through both an Ethernet cable and also WiFi connection. We need an Ethernet cable connection to set-up your Raspberry Pi.
Raspberry Pi hosting Tirana-Durres Vector Tiles.
Tirana-Durres Vector Tiles will constitute an advanced web map for the Tirana-Durres area, Albania.
CONTENTS HERE DOES NOT NECESSARILY FIT WITH YOUR CONFIGURATION.
Here we install a plain Raspberry Pi OS to a microSD card.
Access https://www.raspberrypi.org/downloads/ and download Raspberry Pi Imager for your OS of your PC.
Double-click imager_x.x.exe to start the installer.
Double-click imager_x.x.dmg to start the installer
Drag and drop Raspberry Pi Imager to Applications.
Following is my case using MacBook Pro. How you can connect your microSD to your PC may differ.
Again, it does not have to be 32GB.
It took about 30 minutes. to finish writing.
ssh
file on the root directory of the microSD.Connect the microSD card to your PC again, so that you can see the content of the microSD card.
Create an empty file and rename it ssh
(without extension or with extension .txt).
After that, you can eject the microSD card.
washi を作るにあたり、Shirley Taylor: Model Business Letters, Emails and Other Business Documents (Seventh Edition) に書かれている次の表現を参考にしています。
英語を母語としていない人が英語でメッセージを書く場合は、以下のような手順を踏んで書くことをお勧めします。
You can connect to your Raspberry Pi by using ssh
command, a standard command bundled with both Windows and macOS.
ssh [email protected]
Please enter the command above and press enter.
Please enter raspberrypi
for a new Raspbian OS installation. This is the default password for a fresh installation.
When you need to power-off your Raspberry Pi, you need to run:
$ sudo poweroff
After your are disconnected from your Raspberry Pi, please allow about ten seconds for Raspberry Pi OS to properly shutdown. Then your are safe to unplug your Raspberry Pi.
Project repository: https://github.com/unvt/equinox
$ curl -sL https://unvt.github.io/equinox/install.sh | bash -
If you see this, you are successful in installing UNVT on your Raspberry Pi.
On Linux, we can use xsel --input --clipboard
instead of pbcopy
on macOS.
If you have just written Raspberry Pi OS to your microSD card in the SD card adapter, first you need to eject your SD card adapter first.
Then you can eject your microSD card from your SD card adapter.
Insert the microSD card to the microSD card slot in your Raspberry Pi.
Please make sure you inserted the microSD card to the end of the slot.
For a direct-connection, you can connect your PC and your Raspberry Pi using an Ethernet cable.
Then you can connect power to your Raspberry Pi. In most cases, we use AC adapter to supply power.
On connecting the power, the system will automatically boot. You need to follow the next steps before you can shut down your Raspberry Pi. Please refrain from simply disconnect power from Raspberry Pi; doing so may damage or even break your Raspberry Pi.
The figure below shows the basic data flow.
UNVT is to support you developing design and style configurations for your geospatial data, in addition to assisting the data to flow.
First, make sure you are in ~/sh2
and you have tiles.mbtiles
. If you do not have tiles.mbtiles
, you need to produce it first.
FIXME
This part will be completed once the capacity building activity is done.
CONTENTS HERE DOES NOT NECESSARILY FIT WITH YOUR CONFIGURATION.
This is a Raspberry Pi hardware. We use Raspberry Pi 4 Model B at this stage, but previous versions or future versions will also be good.
In our case on the photo above, we added a heatsink.
You need to have an empty microSD card as below. The size does not have to be 32GB. 16GB or 8GB should work.
From our experience, it would be a good practice to use an SD card adapter when writing to the microSD card from your PC. Sometimes writing to a microSD card from a PC fails. Below is a microSD card in a SD card adapter.
We have an official Raspberry Pi case as below, with a UNVT sticker on it :-).
Any good USB-C power adapter should work.
A short Ethernet cable will work and will be nice to handle.
FIXME
FIXME
It is not possible to get packages if the cross-cable connection does not provide connection to the Internet.
In this issue, you are creating your own copy of the capacity building material of the phase 1 (sh2).
Access https://github.com/optgeo/sh2.
Then click Fork button in the upper left to create your own fork of sh2.
In my case, I am asked to "Where should we fork sh2?" because I belong to several organizations. I clicked hfu.
You will see this while GitHub is creating a fork for you.
After that you have your own fork.
Complete.
This is a non-technical introduction on why we shall jointly produce, host, style, and optimize vector tiles.
Open https://github.com
Input your username, email, and password. Then "Sign up for GitHub".
Your need to verify your email address.
You should have received an email. Click "Verify email address".
You will see the following screen. You may want to click "Skip this for now".
Then you will see the home page of your GitHub account. That's it.
It was too hard for many participants to use vi(m).
This is https://github.com/unvt/washi/issues/1
.
You may want to bookmark here because we often come back here to move around.
equinox
- UNVT online installer for Raspberry Pi OStmux
sh2
optgeo/sh2
${you}/sh2
${you}/sh2
into your Raspberry PiOr vi hocon/_root.conf
if you are familiar with vi.
Change site_root to http://your-hostname.local:9966.
This compiles the style file from the files in hocon
directory.
sudo reboot
Then disconnect the Ethernet cable, to make sure you are connecting via WiFi next time.
ssh pi@<your hostname>.local
The screenshot above keeps using raspberrypi
as the hostname for convenience in the capacity building process.
Now you are back to your Raspberry Pi via WiFi.
ping www.google.com
for example. Press Ctrl-C to stop pinging.
Here we explain the main contents of UNVT. Please refer to unvt/equinox/README.md for more details, including support tools and libraries.
sh2
part of washi
.durana
(phase 2).This capacity-building document titled washi describes the process to produce vector tiles from openly available geospatial information and host a web map.
We also describe how we can modify the style for the vector tiles.
We also describe how we can calculate indicators for the size of vector tiles and how we can optimize the size of vector tiles.
Before you can connect to your Raspberry Pi using Remote Desktop Connection (or Microsoft Remote Desktop), we need to connect to your Raspberry Pi using Command-Line Interface (CLI). We use CLI to enable remote desktop connection to your Raspberry Pi. In the coming several issues, we explain how we can do it.
We can use Terminal.app. For example, Command+Space terminal
then Enter to start Terminal.app.
We can use the Command Prompt. Enter cmd
on your search then select the Command Prompt.
In the phase 1, we are developing a web map shown below. For a live example, please see https://optgeo.github.io/sh2/.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.