en:cube:install
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:cube:install [2021/06/17 12:28] – [Run the Yunohost postinstall] celo | en:cube:install [2021/08/14 16:24] – new install procedure through web interface hgo | ||
---|---|---|---|
Line 9: | Line 9: | ||
In case, for some reason, you are reinstalling a cube and you want to reuse your VPN certificate, | In case, for some reason, you are reinstalling a cube and you want to reuse your VPN certificate, | ||
- | ##Generate a cube file | + | ## Generate a cube file |
To configure Yunohost' | To configure Yunohost' | ||
Line 63: | Line 63: | ||
### Download the Yunohost image | ### Download the Yunohost image | ||
- | Download the latest version of Yunohost for internet cubes (Olimex Lime1 or Lime2) from https:// | + | Download the latest version of Yunohost for internet cubes (Olimex Lime1 or Lime2) from https:// |
- | For instance, for a Lime1: | + | For instance, for a Lime2 board: |
```bash | ```bash | ||
- | wget https://github.com/ | + | wget https://build.yunohost.org/internetcube-buster-4.1.7.4_v2021.04.01-lime2-stable.img.gz |
+ | ``` | ||
+ | |||
+ | Download the image' | ||
+ | ```bash | ||
+ | wget https://build.yunohost.org/internetcube-buster-4.1.7.4_v2021.04.01-lime2-stable.img.gz.sig | ||
+ | ``` | ||
+ | |||
+ | Import the Yunohost GPG key: | ||
+ | ```bash | ||
+ | gpg --keyserver keyserver.ubuntu.com --recv-keys 1904C5B42E4856DCD4E9CF96360AAF3259A3E6FF | ||
+ | ``` | ||
+ | |||
+ | Verify the image' | ||
+ | ```bash | ||
+ | gpg --verify internetcube-buster-4.1.7.4_v2021.04.01-lime2-stable.img.gz.sig | ||
``` | ``` | ||
Uncompress the Yunohost image: | Uncompress the Yunohost image: | ||
```bash | ```bash | ||
- | gunzip | + | gunzip |
``` | ``` | ||
### Flash the SD card | ### Flash the SD card | ||
+ | |||
+ | Read the Yunohost documentatioin for graphical methods: https:// | ||
First, find the device name of your SD card: | First, find the device name of your SD card: | ||
Line 85: | Line 102: | ||
Install the image on your SD card (all data on the SD card will be lost). | Install the image on your SD card (all data on the SD card will be lost). | ||
```bash | ```bash | ||
- | sudo dd if=internetcube_4.1.7.1_v2021.02_lime.img of=/ | + | sudo dd if=internetcube-buster-4.1.7.4_v2021.04.01-lime2-stable.img of=/ |
+ | sync | ||
``` | ``` | ||
Line 111: | Line 129: | ||
In your terminal, run: | In your terminal, run: | ||
```bash | ```bash | ||
- | ./install-sd.sh -l | + | for interface in $(ip link show up | grep "state UP" | cut -d ':' |
+ | sudo arp-scan | ||
+ | done | ||
``` | ``` | ||
- | The script can be download here : [[https:// | + | The output should |
- | + | ||
- | The output should | + | |
``` | ``` | ||
- | Internet Cubes found on the network: | + | 192.168.1.46 |
- | + | ||
- | 1. YunoHost Admin: | + | |
- | SSH Access: | + | |
- | | + | |
``` | ``` | ||
- | In this example, the IP address | + | These are IP addresses |
- | 192.168.1.46 | + | |
- | If the script | + | If you cannot find your cube, try again a couple of minutes later. |
## Run the Yunohost postinstall | ## Run the Yunohost postinstall | ||
Line 135: | Line 148: | ||
(Please replace 192.168.1.46 with the IP address of your Cube found in the previous step) | (Please replace 192.168.1.46 with the IP address of your Cube found in the previous step) | ||
- | Start the Yunohost postinstall and provide: | + | Provide |
* The main domain name | * The main domain name | ||
- | * The admin password | + | * First user name |
- | You will be able to change the admin password | + | * First user password (this will be your admin password) |
+ | * Your cube file generated in a previous step | ||
+ | * Your Wifi hotspot credentials | ||
- | ### Create the first user | + | You will be able to change your passwords later on if you want. |
- | In the admin panel, go to Users and create the first user by providing: | + | ### Install |
- | - username | + | |
- | - firstname | + | |
- | - lastname | + | |
- | - password | + | |
- | This user is a bit special because it will be linked to the root@domain.tld mail address. | + | |
- | ### Install the VPN client | + | Your VPN certificate will be valid for 1 year. |
- | In the admin panel, go to Applications and click on the Install button. | + | Connect |
- | + | ||
- | Search for `VPN Client` app, then install it. | + | |
- | + | ||
- | Copy the .cube file you generated earlier. From your machine, run: | + | |
```bash | ```bash | ||
- | scp neutrinet.cube | + | ssh admin@192.168.1.46 |
``` | ``` | ||
(Please replace 192.168.1.46 with the IP address of your Cube found in the previous step) | (Please replace 192.168.1.46 with the IP address of your Cube found in the previous step) | ||
- | The admin password of your Cube is the same as the one for the admin panel. | ||
- | Connect to your Cube via SSH as admin: | ||
- | ```bash | ||
- | ssh admin@192.168.1.46 | ||
- | ``` | ||
- | |||
- | Configure the VPN client: | ||
- | ```bash | ||
- | ynh-vpnclient-loadcubefile.sh -u raoul -c / | ||
- | ``` | ||
- | (Please replace raoul and neutrinet with the username and password of the first user) | ||
- | |||
- | Check that your cube is connected to the VPN: | ||
- | - Run `ip a` from the cube and check if there is a `tun0` interface | ||
- | - Connect to the IP in your web browser | ||
- | |||
- | ### Install the Neutrinet app | ||
- | |||
- | Your VPN certificate will be valid for 1 year. | ||
Install the Neutrinet app for Yunohost in order to let the cube automatically renew the certificate before expiration: | Install the Neutrinet app for Yunohost in order to let the cube automatically renew the certificate before expiration: |
en/cube/install.txt · Last modified: 2022/09/16 13:07 by celo