A Rasp Pi wireless access point
Snapped Open
Snap is used for additional administration. Use the snap --help
command for more information on administering snaps (Figure 2). However, before you install snaps to complete the AP, assign a new host name (in this example, pi3) and set the time zone correctly,
$ sudo hostnamectl set-hostname pi3 $ sudo timedatectl set-timezone America/New_York
![](/var/linux_magazin/storage/images/issues/2017/205/wireless-aps-with-ubuntu-core/figure-2/716564-1-eng-US/Figure-2_large.png)
then relaunch the system. After logging in again via SSH, install the wifi-ap snap and then call the script for interactive configuration,
$ snap install wifi-ap $ sudo wifi-ap.setup-wizard
which requires some manual intervention.
In the Wizard, first assign an SSID and, in this case, a password. If you want to set up a public hotspot, respond that you do not want to specify a password. When asked for the IP address, enter 192.168.1.1 or a custom network address. After further questions, which you may answer in the negative (n), if appropriate, enable the AP in the last response. The setup is now complete (Figure 3).
![](/var/linux_magazin/storage/images/issues/2017/205/wireless-aps-with-ubuntu-core/figure-3/716567-1-eng-US/Figure-3_large.png)
Integrating the USB Disk
Installing the Nextcloud file server should be trouble-free with Ubuntu Core. To prepare your system for use with Nextcloud, connect a USB memory stick or hard drive to the AP. You can recognize the correct device by its size in the lsblk -l
output. Alternatively, call
sudo dmesg | tail
after connecting, and glean the information from its output.
Once you know the mass storage identifier, create a USB mount unit called media-usbdisk.mount
in the /etc/systemd/system/
directory (Figure 4). Add the contents of Listing 1 to this file by adjusting the name of the device file accordingly.
Listing 1
USB Mount Unit
![](/var/linux_magazin/storage/images/issues/2017/205/wireless-aps-with-ubuntu-core/figure-4/716570-1-eng-US/Figure-4_large.png)
The Unit
section integrates the external hard drive, but first you have to make it known to the system, so you can use the mass storage:
$ sudo systemctl daemon-reload $ sudo systemctl enable media-usbdisk.mount $ sudo systemctl start media-usbdisk.mount
To continue, install Nextcloud and allow the snap to interact with the hard drive:
$ snap install nextcloud $ snap connect nextcloud:removable-media
Now you should give Nextcloud a few minutes while the configuration runs in the background. After a coffee break, create a self-signed certificate,
$ sudo nextcloud.enable-https self-signed
which is sufficient for domestic use. Alternatively, integrate an existing certificate, or create one from Let's Encrypt (Figure 5) with the command:
$ sudo nextcloud.enable-https lets-encrypt
![](/var/linux_magazin/storage/images/issues/2017/205/wireless-aps-with-ubuntu-core/figure-5/716573-1-eng-US/Figure-5_large.png)
However, you must first prepare the Apache web server – a subject in itself.
Everything is now ready to connect to the AP and to launch Nextcloud. Begin by looking on any computer or other WiFi-enabled device at the list of networks offered and connect to the AP (Figure 6).
![](/var/linux_magazin/storage/images/issues/2017/205/wireless-aps-with-ubuntu-core/figure-6/716576-1-eng-US/Figure-6_large.png)
Next, call https://<Nextcloud IP address> (i.e., the address you assigned to Nextcloud) in your browser. The final step for storing data on the external drive is to select the External Storage app in the Nextcloud GUI and then point /media/usbdisk/ in the admin back end (Figure 7).
![](/var/linux_magazin/storage/images/issues/2017/205/wireless-aps-with-ubuntu-core/figure-7/716579-1-eng-US/Figure-7_large.png)
Conclusions
Rarely has it been so easy to set up a wireless AP in a private cloud. The development of the AP itself takes about half an hour; including the Nextcloud setup takes about an hour. The procedure described here is ideal for devices that are inconspicuous in everyday life and provide their service out of sight.
The AP remains secure because of the encrypted SSH connection to the account and the Ubuntu Snappy Core automatic updates – with the option of returning to the old state in the event of problems.
The integration of Nextcloud on an external disk connected to a Rasp Pi only represents one of the many options for this AP. If necessary, you can easily set up a hot spot, guest access, or a center for home automation on the Raspberry Pi AP.
Infos
- WiFi dongles: http://elinux.org/RPi_USB_Wi-Fi_Adapters
- Ubuntu One account: https://login.ubuntu.com
- Ubuntu Core: http://releases.ubuntu.com/ubuntu-core/16/ubuntu-core-16-pi3.img.xz
- Snap: https://wiki.ubuntuusers.de/snap/
- "Snaps and Flatpaks" by Ferdinand Thommes, Ubuntu User, issue 30, Fall 2016, pg. 32, http://www.ubuntu-user.com/Magazine/Archive/2016/30/The-package-formats-Flatpaks-and-Snaps
- Alt keyboard sequences: https://tools.oratory.com/altcodes.html
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.