You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1-1-3. Change SSH and Wi-Fi settings before installation.
Shift + Command + X : open back menu mode
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.
Configure Locale as appropriate for the work environment.
Configure the keyboard layout according to the language used.
Save settings
1-1-4. Install OS on MicroSD card
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.
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
If the error message WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
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.
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:~ $
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:~ $
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:~ $
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)
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.
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.
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-1. Install RaspberryPi OS Lite (32bit).
1-1-1.
Download Raspberry Pi Imager to your local PC
URL: https://www.raspberrypi.com/software/
1-1-2. Using Raspberry Pi OS 1.6.2 installer.
1-1-3. Change SSH and Wi-Fi settings before installation.
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.
Configure Locale as appropriate for the work environment.
Configure the keyboard layout according to the language used.
1-1-4. Install OS on MicroSD card
ssh-keygen -R "host name" ##In the above manual, unvtportable.local
1-2. Insert the installed MicroSD card into the RaspberryPi terminal and boot.
% ssh [email protected]
Password is set to unvt.
It may take some time to make an ssh connection.
1-3. Environment settings
1-3-1. APT Update
% sudo apt update -y
1-3-2. List of packages to be installed
1-3-3. Apatch2 Installation
% sudo apt install -y apache2
You may face the following errors.
The following command may solve the problem.
Temporarily move the debconf database:
Create a new directory for the debconf database:
Install apache2
Restore the debconf database:
1-3-4. hostapd and dnsmasq Installation
sudo apt install hostapd dnsmasq
1-3-5. DHCP settiong
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.
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.
Add the following settings.
1-3-7. hostapd setting
Create a file in
/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.
After that, edit
/etc/default/hostapd
.Change the
DAEMON_CONF
section as followsDAEMON_CONF="/etc/hostapd/hostapd.conf"
1-3-8 Unmasking hostapd
Execute the following commands.
1-3-9 Start the service.
Execute the following commands.
To start the hostapd service from raspberry pi startup, run the following command.
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.1-4-2. Download FTP client software
Cyberduck will be used in this case.
https://cyberduck.softonic.jp/mac
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
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
The text was updated successfully, but these errors were encountered: