How to set up a Raspberry Pi 4 (Canakit). (2023)

introduction

I have an old laptop that downloads my torrents and serves as a plex server. Unfortunately, it's dying, so I need a replacement.

Today we have access to an unprecedented amount of low-power computing power. You can buy lots of small, low-power boards that will run complete Linux distributions and give you access to everything you've ever wanted in terms of services. The workhorse of this category is the Raspberry Pi.

The latest version of the Pi is the Raspberry Pi 4. It has a 1.5GHz quad core ARM processor and RAM options from 1GB to 8GB I believe.

You can get a full load of everything you need for $120, and this board (about the size of a credit card) can be a basic Linux server for you, but also a lot more advanced if needed. It's got power when you need it, and with Linux behind it, there's almost nothing it can't do.

This guide explains how to configure a Raspberry Pi in terms of a few different applications/uses.

Usos

While my laptop handled torrenting and a Plex server, the Raspberry Pi is a Linux machine that can offer me a lot more services. Here is a list of things I hope to use it for:

  • Strom
  • Servidor Plex
  • general file sharing
  • Jenkins CI-Server
  • Servdor Redmine
  • Subversion-Server
  • IFTTT runner
  • wiki
  • Storage of scanned documents

See below for more information/objectives about some of them.

general file sharing

I'm hoping to find some form of file sharing that will allow me to connect my 750GB laptop drive, which now contains all my old files, to the Raspberry Pi and seamlessly mount the drive on Windows computers, with it seeing and behaving like if it were a local drive.

IFTTT runner

I'm joining IFTTT for home automation. I currently have a nest, remote controlled blinds, and a whole house fan that I hope I can automate somehow.

My ultimate goal is to have this system regulate the temperature in our house automatically, primarily through the whole house fan. By turning on the whole house fan when the outside temperature is lower than the indoor temperature, you can cost-effectively cool the house. However, there are a number of aspects to consider:

  • Indoor and outdoor temperature monitoring
  • Monitor for open windows
  • Turn the fan on and off throughout the house

There are numerous sensors that can be integrated with IFTTT; I know one in particular that also has 8 temperature sensors with humidity (which is always a good thing). There are also window sensors that can also be integrated with IFTTT. The only big difficulty is controlling the entire fan in the house, but luckily it's possible.

My whole house fan has an RF controller. It should be fairly easy to identify the frequency you are using, buy a transceiver and duplicate the RF signals it produces to turn the fan on and off. If I plug this into my own custom board I should be able to:

  1. Create a WiFi enabled board that can control the fan directly or
  2. Create a board that plugs into USB on the Raspberry Pi that, in combination with a Python script, controls the fan (and the Raspberry Pi can handle network I/O).

I'll probably go with approach number 2 for simplicity. I have the skills to write a Python script that has a REST style web interface that communicates with the board via USB to Serial to control what is connected to my custom board. It doesn't have to be just one thing right now.

I'll try to fully cover this approach in another blog post, so this is just a preview.

Storage of scanned documents

Right now I scan documents one by one straight to my PC, rename them and save them to an encrypted volume. There are utilities that handle many of the difficult aspects of this process. One of them I know ismelt paper. I imagine using PaperMerge to simply scan a few pages, sort them into individual documents, do OCR, align them, etc. and put them into a document management system.

unpacking

I bought a kit that has everything you need to get a Raspberry Pi 4 working:

  • Raspberry Pi 4
  • Energy Adapter
  • temperature drops
  • Cair
  • SD card
  • power switch
  • cabo HDMI

The PSU, I should note, is a beast. It's a 5V/3A adapter that enables Turbo Charge on my phone. It's worth grabbing a few of these for general use if you have a phone with a USB-C charging port.

I'm going to say something about heatsinks - I haven't tried this, but I'm told that heatsinks areNOOptional. While you can do without it, it certainly adds to the card's overall stability. And for a board that's meant to stay in a corner, be powerful, and not make waves, stability is key, especially when you need the performance this board delivers. Conclusion: USE HEAT SINKS.

Not sure about the power button at the moment - it's a power button that corresponds to the USB-C connection. It can be very useful, we'll see.

It should be noted that the HDMI cable is a regular mini (or is it micro?) HDMI to HDMI cable. Very useful.

The case just does everything perfectly. Highly recommended.

So when you unpack everything that was removed from the box it looks like this:

missing photo :(

The first thing I'll do is connect the heatsinks. These heatsinks are great because they just stick - peel back the backing and attach them to the appropriate chip. The question is, which chip is right?

These are the heat sinks:

missing photo :(

There are three of them, all different sizes, so it should be easy, right?

The biggest goes to the processor: the biggest metal-clad chip on the board.

This is a photo of the larger heatsink attached:

missing photo :(

The second largest is on the SDRAM chip as seen below:

missing photo :(

And the last one, the smallest one, goes on the USB 3.0 controller as below:

missing photo :(

The other aspect of cooling is the fan that came with my kit. You can connect it to 5V for fast operation or 3.3V for slower (quieter) operation. As I find the fan after the heatsinks a bit excessive, I leave it at 3.3V.

The configuration looks like this:

missing photo :(

And here comes the fan in the box, but how? There are two options: Tag-Up or Tag-Down. The tag pulls air through the box and out the top, in my opinion. The other way will kick you out.

EmThat's itDiscuss the forum post on how to do it. I placed the label face-up on top of the case:

missing photo :(

Then, to protect the case, I slid the end with the HDMI connector under the tabs on that end of the base. The next step would be to attach the top (not the lid), but I had to disconnect the fan wires and then run them through the top:

missing photo :(

So I put on the top cover:

missing photo :(

And now it's a single unit, ready to go.

Then I plug in the power supply and wait for a light to appear. I really see a light:

missing photo :(

So now I have an almost completely assembled board. About.

SD card imagem

The next step in this process is to generate an SD card image that can boot the Raspberry Pi in Linux.

Technically, Canakit comes with a pre-image SD card that already has Linux installed. I could use that, but I'd like to build one from scratch so I know I can get the latest software and render the image if needed.

I'm going to use a type of Linux called Raspbian Lite because I've used it before.

Generally I will follow the steps found.Here.

Installation des Balena-Recorders

Balena Etcher can be foundHere.

There is a download button on this page that I can't get the URL for, but I clicked on it and downloaded the installer.

I double-clicked to start and did the following:

  1. In the first balenaEtcher configuration screen, you accepted the license by clicking on "I agree".
  2. It resolved itself. That was it. The program starts.

It already recognized the SD card connected via USB stick, so now I just need the image to record.

Raspbian Lite

Latest Raspbian Lite image can be foundHere. A ZIP file of the latest image will be downloaded.

The .img file is in the ZIP file.

Write image to SD card

These are the steps I followed:

  1. In balenaEtcher, select the “Flash from File” option.
  2. I found the file I extracted from the zip file and selected it.
  3. I clicked on Flash! Button.
  4. I received a UAC warning and allowed the operation
  5. It took about a minute for a 32GB card.

Using the SD card

To use the card, insert it into the Raspberry Pi's micro SD card slot and turn it on.

I did, and the first thing I noticed was a screen popped up saying the root partition was resized and restarted.

It started and then presented a login screen. This is the default login:

Username: pi Password: raspberry

Now you're in!

The first thing to do is get it on a network. I'll start with my wireless network for simplicity.

initial setting

I have some things I've done before in my earlier notes.

  1. Run the following commands:
cd /etc/defaultsudo cp keyboard keyboard.'date +%d%b%y'.orgsudo nano keyboard
  1. In the "key" file, change the XKBLAYOUT option to "we" and save the file.

Raspi-Config

Raspi-Config is the top-level configuration utility for the Raspberry Pi.

Access is gained by typing:

sudo raspi-config

It offers several options. The first option is to change the password for user "pi" to something other than the default password. Of course, this is good security policy, so do it.

Option 2 is for configuring network options. Below is option 2 for wireless networks that I set up.

The first step is to select the country where you are going to use: United States for me.

Then you have to enter the SSID manually. Maybe a search box would pop up if I didn't type anything in the text box but manually typed in and entered the passphrase.

Next, in the interface options, we can enable the SSH server.

Under Interface Options, the SSH server is the P2 option. So I chose to enable the SSH server. Then he told me it was activated and that was it.

At this point, the image is almost ready to use. I'll save it to my PC so I can revert back to a clean install if needed.

A good thing to set up now is an SSH key that allows automatic SSH login to the Raspberry Pi.

Save SD card image to file

I found a guide to create an image from an SD cardHere.

The relevant program to use here is Win32DiskImager, which can be downloadedHere.

I followed these steps to install the Win32DiskImager:

  1. On the License Agreement page, accept the agreement and click Next.
  2. On the installation path page, accept the default and click Next.
  3. I accepted the default Start menu folder and clicked Next.
  4. I decided not to add a desktop shortcut and clicked Next.
  5. I went through everything and clicked 'Install'
  6. The program was installed and on the last page I unchecked to read the README and allowed to start the program. Then I clicked 'Done'

Once installed, I used the program as follows:

  1. Under 'Image File' I used the file dialog to identify the path where I wanted to save the image file
  2. I set "device" to the USB stick where my SD card was located.
  3. I clicked the "Read" button and read from the SD card the image file I specified. It took about half an hour for a 32GB SD card.

Resize SD card image

I'm still trying to figure out how to do this on Windows.

Connect to your Rasp Pi via SSH

You can get a full bash terminal over SSH by following these instructions.

Find out your Rasp Pi's IP address

First you need to find out your Rasp Pi's IP address. Type the following into the Rasp Pi terminal:

ifconfig

This will give you the status of the network interface. After connecting to the wireless network, look for the IP address of the "wlan" adapter. If using cable, look for eth0. The IP address is the IP address that follows the "inet" value (or "inet6" if using IPv6). Write it down so you can connect with it.

Mine was 192.168.50.44.

connection with Putty

The putty client allows you to get a terminal on the Pi via SSH. How to use it:

(Video) Canakit Raspberry Pi 4 Unboxing and Initial Setup

  1. Open Putty: The Putty settings window appears
  2. Enter the IP address of the Rasp Pi in 'Hostname'
  3. SSH is the default connection type; If not, change it (port 22)
  4. In Saved Sessions, enter a name for the session and click on the Save button.
  5. Click "Open" to start the connection
  6. When you connect to the Rasp Pi for the first time, you will get a PUTTY security warning that server keys are not cached, etc. etc. Click "Yes".
  7. A login screen will appear. Sign in using the credentials you set earlier.

Configure an automatic login

Auto login means you don't have to enter your username or password when accessing the Rasp Pi via SSH. It makes working with your Pi a breeze, and when it comes to ease of use, anything helps.

Think of it this way: if you're going to be using your Pi to its full potential, you're going to be using SSH a lot. thousands of times. This can save two seconds when connecting. It's hours saved. It's worth it.. Also, by lowering the barriers to working with Pi, you have fewer excuses to avoid working with Pi.

To set up automatic login, let's generate an SSH key on the Pi and then import it into Putty.

This is what I did to generate the key.

pi@raspberrypi:/etc $ ssh-keygen-Trs-B4096-C "Automatic login 9-9-2020"Generating an RSA public/private key pair. Enter the file in which to store the key (/home/pi/.ssh/id_rsa): Created directory "/home/pi/.ssh". Enter password (blank if no password): Enter the same password again: Your id was saved in /home/pi/.ssh/id_rsa. Your public key has been saved in /home/pi/.ssh/id_rsa.pub. The key fingerprint is: SHA256: WjZxbaL2hnAbQAy/FkKMGiHYSBppfp2unbSCmva6m/ U Auto login 9-9-2020The random key image is:+---[RSA 4096]----+|** ooo. ||O..o. . ||+or or = . hi ||.. . ++ or || . . +S || +B* || ..+ + or or || +oo.+ . ||===..E |+----[SHA256]-----+pi@raspberrypi:/etc $ CD~/.sshpi@frambuesapi:~/.ssh$ c.p.id_rsa.pub privileged_keys

This will generate a key in /home/pi/.ssh. Then we copy the key to the "authorized_keys" folder. The next step is to save the key to the PC using Putty. This is how we do:

pi@frambuesapi:~/.ssh$ gatoid_rsa-----BEGIN OPENSSH PRIVATE KEY-----Key - no you can't see it. -----END OF OPENING PRIVATE KEY-----

I copied everything after the 'cat id_rsa' and saved it as a text file on my desktop: 'RasPi_Personal_Auto-Login_9_9_2020.txt'.

I need to import this key into my PC using a program called "PuTTYGen". I just typed this into the start menu (I have Windows 10).

To import my key, I proceed as follows:

  1. Next to Upload an existing private key file, click Upload.
  2. I navigate to the desktop where I saved my file and change the file type to "All Files" in the dialog so I can see my text file. It's worth noting here that my file had blank lines before the BEGIN and after the END and this prevented putty from understanding the file the first time until I deleted it.
  3. I get a dialog saying the import was successful, but I need to save the key before I can use it with Putty. I click OK.
  4. Under "Save Generated Key" I click "Save Private Key".
  5. They want me to confirm that I don't want to save this with a password. No. So I click yes.
  6. Again, I save it to the desktop with the same filename, but this time with a .ppk extension. At this point, you can close PuttyGen.
  7. open putty
  8. Start the process of generating a new connection to the Rasp Pi by entering the IP address in the "Hostname (or IP address)" field. The connection type should already be SSH, so it's defined there.
  9. On the left side of the window, find and enter the "Connection/Authentication/SSH" menu
  10. Next to "Private key file for authentication", click the "Browse" button.
  11. Select the .ppk file created earlier and click OK.
  12. Now look for the “Connection/Data” menu on the left side of the window.
  13. From this menu, change the auto login username to "pi".
  14. Now go back to the Session menu (all the way to the top) on the left side of the screen.
  15. Save this connection as something easy to understand like 'RasPi_Auto-Login'
  16. The new connection is displayed in the list. Double click and enjoy SSH to your Rasp Pi without password!

Docker installation

VonThat's itsite, Docker can be installed with a single command like this:

curl -sSL "https://gist.githubusercontent.com/jaymoulin/e749a189511cd965f45919f2f99e45f3/raw/0e650b38fde684c4ac534b254099d6d5543375f1/ARM%2520(Raspberry%2520PI)%2525Dockerstall" sudo sh && sudo usermod -aG docker $OF THE USER

I pasted this into putty and a lot of things happened, but I ended up with this:

Error getting http://raspbian.raspberrypi.org/raspbian/pool/main/p/python3.7/python3.7-dev_3.7.3-2+deb10u1_armhf.deb 404 Not Found [IP: 93.93.128.193 80] E : Some files cannot be recovered. Maybe run apt-get update or try --fix-missing?

That's what I did, I actually need to do an update on apt-get like I've never done before. So I wrote:

sudo apt-get-update

I let it run until the end (which took a while).

Once that was done, I went back to the original command and ran it. It also took a while. So ended up with this error:

Befehl "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-agngpakf --no-warn-script-location --no-binary : nenhum: --binary-only: nenhum: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- ferramentas de configuração>=rueda 40.8.0"cffi>=1.1; python_implementation != 'PyPy'"" failed with error code 1 on None

I'm trying a different approach toHere.

To do this:

curl-sSL https://get.docker.com | Sch

It gave me a warning that I already had Docker installed, but I let it go anyway. Seems to have worked fine though.

So I proceeded like this:

sudo usermod -aG docker pisudo docker run hello-world

Dockers Hello-World has successfully done this. By the way, this is a feature that every software should have.

Removing Docker Containers for a Clean Install

More than once I had to completely delete and re-download a new Docker container. I thought I'd better document the steps on how to do this if you ever need to again.

Setting up a Plex server via Docker

On the surface, this should be something simple.

I use addresses fromHere.

First, I need a USB drive for external storage. I found an old 8GB device that seems ridiculously slow. I hope nothing hurts.

Mount a USB drive

I plugged in my drive, it should be recognized. I can find out by listing the hard drives in RasPi. I've done this twice already: once with the drive connected and once without:

pi@frambuesapi:~ $ ls/dev/sd*/dev/sda /dev/sda1pi@frambuesapi:~ $ ls/dev/sd*ls: cannot access '/dev/sd*': no ​​such file or directory

Seems pretty safe to bet it's the flash drive. I can mount like this:

pi@frambuesapi:~ $ sudoMontar /dev/sda1 /mnt/usb drivemount: /mnt/usbdrive: mount point does not exist.

Oops. First I need to create this directory:

pi@frambuesapi:/ $ sudo mkdir/mnt/usb drivepi@frambuesapi:/ $ sudoMontar /dev/sda1 /mnt/usb drive

So it's easy to assemble.

Added support for exFAT

One of my external drives is formatted as exFAT. My Rasp Pi cannot mount this.

found a pageHere.

pi@frambuesapi:~ $ sudoapt-get updateHit:1 https://download.docker.com/linux/raspbian buster InReleaseGet:2 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]Get:3 http://raspbian.raspberrypi. org/ raspbian buster InRelease [15.0 kB] Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB] Get:5 http://archive.raspberrypi.org/debian buster/ main armhf Packages [ 330 kB] 13.4 MB retrieved in 8 sec (1681 kB/s) Read package lists... Donepi@frambuesapi:~ $ sudoapt-get update--- Plenty to hold here ---pi@frambuesapi:~ $ sudoapt-getTo installformer meltable fatReading package lists... DoneBuilding a dependency treeReading status information... DoneThe following package was automatically installed and is no longer needed: rpi-eeprom-imagesUse 'sudo apt autoremove' to remove it. The following additional packages will be installed: exfat-utils The following NEW packages will be installed: exfat-fuse exfat-utils0 updated, 2 newly installed, 0 to remove, and 5 not updated. You need 67.7KB of files. After this process, another memory space of 260 kB is occupied. Do you want to continue [Y/n] yGet:1 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf exfat-fuse armhf 1.3.0-1 [27.5 kB]Get:2 http: //mirror .sjc02 .svwh.net/raspbian/raspbian buster/main armhf exfat-utils armhf 1.3.0-1 [40.3 kB] Get 67.7 kB in 1 s (57.7 kB/s) Select from a previously unselected Exfat fuse pack. (Reading the database...41633 files and directories currently installed.)Preparing to unpack.../exfat-fuse_1.3.0-1_armhf.deb...exfat-fuse(1.3.0-1) unpack... select the exfat -utils package not selected above. Prepare to unpack .../exfat-utils_1.3.0-1_armhf.deb ...unpack exfat-utils (1.3.0-1) ...configure exfat-utils (1.3.0-1) ...configure exfat -fuse (1.3.0-1) ... processing triggers for man-db (2.8.5-2) ...pi@frambuesapi:~ $ sudoapt-getTo installexfat-utilsReading package lists... Building dependency tree Done Reading status info... Done exfat-utils is now the latest version (1.3.0-1). exfat-utils has been configured to allow manual installation. The following package was installed automatically and is no longer needed: rpi-eeprom-images Use 'sudo apt autoremove' to remove it. 0 updated, 0 newly installed, 0 to remove and 5 not updated.pi@raspberrypi:/mnt/usb-Laufwerk $ sudoMontar /dev/sda1 /mnt/usb driveFUSE exfat 1.3.0 WARNING: The volume was not properly unmounted. Fuse: device not found, try 'fuse modprobe' firstpi@raspberrypi:/mnt/usb-Laufwerk $ fuse mod probemodprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.97-v7l+/modules.dep.bin'modprobe: FATAL: module backup is not in the /lib/modules/4.19.97-v7l+ directorypi@raspberrypi:/mnt/usb-Laufwerk $ sudoto assemble-Texfat /dev/sda1 /mnt/usb-Laufwerk/FUSE exfat 1.3.0 WARNING: The volume was not properly unmounted. Fuse: device not found, try 'fuse modprobe' first

Turns out you'll need to restart the Raspberry Pi after all that.

So I could theoretically mount the drive, but I started having problems with my USB drive adapters.

23.09.2020

Well, I finally fixed this problem by ordering aHub powered by USB 3.0to connect both units.

The Rasp Pi could power one unit on its own, but never two, so you needed the powered hub to connect both at the same time.

Now connected and mounted - exFAT support works great.

9/24/20 Ha ha! Did you think a powered hub would solve my problems? YOU ARE WRONG!

Turns out my powered on hub is trying to power my RasPI and I DON'T LIKE IT!

I need another hub that doesn't give feedback to RasPi.

Hereis a site that discusses the issue and provides some potentially compatible hubs.

Really, after not looking at the site much,That's itHe is the only one who will suffice me.

Automatically mount drive on startup

Possible set of addressesHere.

I'll start with the Automount Configuration section.

I'll start with this:

pi@frambuesapi:~ $ negroNúmero uuid fstype partuuid MountPoint SDA16E1-2724 └─Sda1 VFAT ED9BF8D7-01 MMCBLK04BBD-D3E7 ├─MMCBLK0P1 VFAT 738A4D67-01 /Boot45e99191-771b-4e12-A526-

This gives me the filesystem type and PARTUUID I need for the next step. I'm looking at the /dev/sda1 drive to get my information.

For reference, this information is:

  • File system type: vfat
  • YOUR ID: ed9bf8d7-01

I copy PARTUUID to the clipboard.

I use this command line to edit the /etc/fstab file:

/pi@frambuesapi:~ $ sudonano /etc/fstab

And at the end I add this line:

PARTUUID=ed9bf8d7-01 /mnt/usbdrive vfat defaults,auto,users,rw,nofail 0 0

In theory yes. I test by doing a reboot, like this:

pi@frambuesapi:~ $ sudorestart

Behold, it is quite insensitive. The site suggested that changes I made to /etc/fstab would cause it to take an extra 90 seconds to boot.

I think this is accurate.

But after everything boots, I run this command and see this output and it tells me that everything is as it should be:

pi@frambuesapi:~ $ sudolsblkUUID, NOME, FSTYPE, PARTUUID, MOUNT-PUNKTUUID NAME FSTYPE PARTUUID MOUNTPOINT sda16E1-2724 └─sda1 vfat ed9bf8d7-01 /mnt/usbdrive mmcblk04BBD-D3E7 ├─mmcblk0p1 vfat 738a4d67-01 /boot45e99191-771b-4e12-a526-0779148892cb └─mmcblk0p2 ext4 738a4d67-02 /

Yes, the MOUNTPOINT for device /dev/sda1 is as it should be.

Very. Then.

Formatting a new drive

I recently bought a new external drive because my media server's drive is filling up. So I need to get it ready to work with Plex on the Raspberry Pi. It was formatted as NTFS, but I really don't want that. I need to figure out which file system to use and how to format tit.

several people insideThat's itThread suggest XFS. It is said to be good for large files.

Bueno,That's itPage suggests that all I need to do is:

sudo mkfs.xfs /dev/sdc1

We will try.

Well, it doesn't have mkfs.xfs. This is what I believe I need to install to get this:

pi@frambuesapi:~ $ sudoapt-getTo installxfsprogsReading package lists... DoneBuilding a dependency treeReading status information... DoneThe following package was automatically installed and is no longer needed: rpi-eeprom-imagesUse 'sudo apt autoremove' to remove it. The following additional packages will be installed: libreadline5Recommended packages: xfsdump acl quotaThe following NEW packages will be installed: libreadline5 xfsprogs0 updated, 2 newly installed, 0 to remove, and 29 not updated. You need 912 KB of files. After this operation, 3388 kB of additional disk space will be used. Do you want to continue? [Y/n] YGet:1 http://raspbian.mirror.axinja.net/raspbian buster/main armhf libreadline5 armhf 5.2+dfsg-3 [103 kB]Get:2 http://raspbian.mirror.axinja.net /buster raspbian/main armhf xfsprogs armhf 4.20.0-1 [809 kB]Get 912 kB in 2s (451 kB/s)Choose previously unselected package libreadline5:armhf.(Reading database... 52676 files and directories currently installed. ) Preparing to unpack .../libreadline5_5.2+dfsg-3_armhf.deb ...unpacking libreadline5:armhf (5.2+dfsg-3) ...Select xfsprogs from previously unselected package.Preparing to unpack .. ./xfsprogs_4 .20.0- 1_armhf.deb ... unpacking xfsprogs (4.20.0-1) ... configuring libreadline5:armhf (5.2+dfsg-3) ... configuring xfsprogs (4.20.0-1) .. . update-initramfs: deferred update (trigger on) processing triggers for man-db (2.8.5-2) ... processing triggers for libc-bin (2.28-10+rpi1) ... processing triggers for initramfs - tools (0.133+deb10u1) . ..

USB drive mount setup

Here's the fstab I use to mount my two drives at the same time:

proc /proc proc defaults 0 0PARTUUID=738a4d67-01 /boot vfat defaults 0 2PARTUUID=738a4d67-02 / ext4 defaults,noatime 0 1PARTUUID=4aaed96b-01 /mnt/nas vfat defaults,auto,users,rw,nofail 0 0PARTUUID=1de59ff2 -01 /mnt/torrents exfat defaults,auto,users,rw,nofail 0 0

Install Plex via Docker

Now I need to run a Docker command line:

pi@frambuesapi:/ $ Docker execution-D --Continue=Always--NameComplex-v/mnt/usb drive:/media--neto=Wirt jaymoulin/plexDocker: Permission was denied when trying to connect to the Docker daemon socket on unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers /create ? name=plex: unix flag /var/run/docker.sock: connect: Access is denied. See docker run --help.pi@frambuesapi:/ $ sudoDocker execution-D --Continue=Always--NameComplex-v/mnt/usb drive:/media--neto=Wirt jaymoulin/plex

Well that first error is because I forgot to use sudo because I didn't restart before. After using sudo it worked.

Then I go to http://192.168.50.44:32400/manage to manage it...

It works.

Wow. That was easy.

Run Plex with External HD

Well, now I've connected my media drive to the Rasp Pi. How do I get Plex working again with the new settings?

pi@frambuesapi:~ $ Docker-Stop-PlexusComplexpi@frambuesapi:~ $ pd-DockerCONTAINER IMAGE ID COMMAND CREATE STATUS DOORS NAMESd8d39033ecc1 haugene/transmission-openvpn:latest-armhf "/usr/bin/entry.sh d..." 10 days ago Up to 14 minutes (good) 0.0.0.0:9091->9091/tcp angry_Goldsteinpi@frambuesapi:~ $ Docker execution-D --Continue=Always--NameComplex-v/mnt/torrents:/media--neto=Wirt jaymoulin/plexDocker: Daemon Error Response: Conflict. Container name "/plex" is already used by container "c2065d31b4f0ca3e740315a06b9535748bd947baa58acba46f1e91626732f298". You must delete (or rename) this container before you can reuse this name.

Okay... it wasn't right...

pi@frambuesapi:~ $ Docker execution-D --Continue=Always-v/mnt/torrents:/media jaymoulin/plex1a0600f158d30e6ee35c7342f5995bc97b213982c96e13a3a087ad2f43e54aff

Then! That worked!

Except I can't access the server from my laptop. Functions?

pi@frambuesapi:~ $ pd-DockerCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES1a0600f158d3 jaymoulin/plex "daemon-pms" 3 minutes ago Up 3 minutes 32400/tcp serene_goldbergd8d39033ecc1 haugene/transmission-openvpn:latest-armhf "/usr/bin/entry.sh d..." 10 days ago Up to 22 minutes (good) 0.0.0.0:9091->9091/tcp angry_Goldstein

Run. Is port forwarding working correctly? Why don't I try to add port forwarding to the command line explicitly?

docker run -d --restart=always -v /mnt/torrents:/media jaymoulin/plex -p 32400:32400
pi@frambuesapi:~ $ Docker execution-D --Continue=Always-v/mnt/torrents:/media- book page32400:32400 jaymoulin/plexpapá08c59e0f66764b8aa4a7c7ddddbae98e1d6938acc7e2ade8eb3d483c1e8163

That worked.

Except…

There must be more. I can't connect properly to the Plex server. I can go to http://192.168.50.44:32400/manage and it loads but it also says it can't communicate with my Raspberry Pi. I'm still missing something here.

What happens if I remove and reinstall this container?

pi@frambuesapi:~ $ Docker ImagesRepository tag ID of image created sizejaymoulin/plex Last 5EB3D5FF1080 3 weeks ago 202Mbhaugene/transmission-openvpn ultimo-armhf 2adda52281cd 4 weeks ago 309mbhaugene/transmission-openvpn ultycheld orthent ee7968739e88 4 weeks agotransmissionndyultymission. months ago 4.85kBpi@frambuesapi:~ $ Stauerrmmoody_gauss focused_wiles risa_villani quirky plex_bhabha gay_goldberg speechless_jones jealousy_gausspi@frambuesapi:~ $ StauerrmComplexComplexpi@frambuesapi:~ $ sudoDocker execution-D --Continue=Always--NameComplex-v/mnt/torrents:/media--neto=Wirt jaymoulin/plexc125429ff26e7c9a65d6ba1c190b95b00a09011f49ac780a8a8bb0efaf13d995

Hmm, no data. It's the same behavior.

Maybe I didn't delete it correctly. I try this:

pi@frambuesapi:~ $ ventana koppelbar rmi jaymoulin/plex-FUntagged: jaymoulin/plex:latestUntagged: jaymoulin/plex@sha256:53abfee666150e18a4ca6a49e14942b7b93f18984d410fa98ee3a05bc45b03e3Deleted: sha256:5eb3d5ff108078e2dd8f32b61f58f262c0edd1574fd03fa9cb60a02e54466e5dpi@frambuesapi:~ $ sudoDocker execution-D --Continue=Always--NameComplex-v/mnt/torrents:/media--neto=Wirt jaymoulin/plexUnable to find image 'jaymoulin/plex:latest' locallylatest: Pulling from jaymoulin/plexe68f2aaec91c: Already existsadbe693323bb: Already exists18214b7504c5: Already existsc2974ca466f5: Already exists9e99806a6d24: Already existsDigest: sha256:53abfee666150e18a4ca6a49e14942b7b93f18984d410fa98ee3a05bc45b03e3Status: Downloaded newer image for jaymoulin/plex:latestdocker: Error response de daemon: Konflikt. O nome do recipiente "/plex" já está sendo usado pelo recipiente "c125429ff26e7c9a65d6ba1c190b95b00a09011f49ac780a8a8bb0efaf13d995". Deve eliminar (ou alterar o nome) este recipiente para poder reutilizar este nome. Consultar Sie 'docker run --help'.

Phew, it couldn't be easier, right?

look for this errorHere.

Okay, let's see what your steps do:

pi@frambuesapi:~ $ pd-Docker-ACONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESc125429ff26e jaymoulin/plex "daemon-pms" 11 minutes ago Terminated (0) 9 minutes ago plexdad08c59e0f6 jaymoulin/plex "daemon-pms" 19 minutes ago Terminated (0) 10 minutes ago ecstatic_hamilton40235647b1c/2 jaymoulin jaymoulin -p 32400:32400" 21 minutes ago Created 32400/tcp quirky_bhabha1a0600f158d3 jaymoulin/plex "daemon-pms" 29 minutes ago Finished (0) 22 minutes ago serene_goldbergd8d39033ecc1 haugene/transmission-openvpn:latest-armhf "/usr/bin/entry.sh d..." 10 days ago Up to 48 minutes (good) 0.0.0.0:9091->9091/tcp angry_Goldstein5a31a1162635 haugene/transmission-openvpn:latest-armhf "/usr/bin/entry.sh d…" 2 weeks ago Finished (0) 11 days ago zealous_gaussadbe9ba4ac34 ee7968739e88 "dumb-init /etc/open…" 2 weeks ago Finished (1 ) 2 weeks ago Cranky_gauss858aef494521 ee7968739e88 "dumb-init /etc/open…" 2 weeks ago Finished (1) 2 weeks ago Laugh_villani883598a1c459 ee7968739e88 "dumb-init /etc/open…" 2 weeks ago Finished (1) 2 weeks ago -focussed_wilesa7 world36177 "/hello" 3 weeks ago Finished (0) 3 weeks ago stupefied_jones

Okay, I need to remove all containers associated with jaymoulin/plex.

Then I run the command again:

pi@frambuesapi:~ $ sudoDocker execution-D --Continue=Always--NameComplex-v/mnt/torrents:/media--neto=Wirt jaymoulin/plexedfb618a400520b0ebd234d957beb78fead1e867733536b083ed59a4523895e0

And I go to 192.168.50.44:32400/manage….

And it's initial setup again!

Transfer Metadata from Windows to Linux

I already have a Plex server on Windows. I will transfer all the media files by connecting the external hard drive to the RasPi, but I also need to transfer all the metadata, for example B. whether a file has already been viewed or not.

That's itIt's a first guess on how to do it.

That's itand another.

Here

(Video) Canakit Raspberry Pi 4 Unboxing, Overview, And Setup Guide

Okay, the first thing I need to do is figure out where to copy these files into the Plex container.

I can get a shell in the Plex container with this command:

pi@frambuesapi:~ $ Stauerexecutive -ANDcomplex /bin/sch/ # lsbin dev etc home lib media mnt proc root run sbin srv sys tmp usr var

Alright ♥….

This afternoon. It's time to stop tonight.

I found them. Not where anyone said they would be, but here:

/Library/Application Support/Plex Media Server

Regarding collecting the files from my current Plex server, I encountered something that is not an inconvenience, but rather a difficulty.

It should compress the entire Plex directory, perhaps not including the cache folder. My problem is that the update folder is about 6GB. Enormously. It takes 20 hours to compress it so it can be sent to disk. Some people (in the Reddit thread) say you don't even need all these folders, you can make do with one.

So... maybe you don't need to copy the updates folder.

Worth trying.

Heck, my Linux Plex server doesn't even have an updates folder.

So how do I stop Plex server on Docker?

I listed the processes on a hunch:

~/Library/Application Support/Plex Media Server # DPPID USERTIME COMMAND 1 root 0:00 {daemon-pms} /bin/sh /usr/sbin/daemon-pms 7 root 0:00 {start_pms} /bin/sh /usr/sbin/start_pms 8 root 1: 53 . /Plex Media Server 22 root 0:21 {Plex Script Hos} Plex Plugin [com.plexapp.system] /usr/ 68 root 0:00 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plex 7478 root 0 :00 /bin/sh 7492 root 0:00 ps

Then I will kill them.

I'll do it like this:

  1. Zip the Plex config directories on my current server into a zip file
  2. Put the ZIP file on the external hard drive
  3. Connect external hard drive to Rasp Pi
  4. Reboot or Rasp Pi
  5. SSH no RasPi
  6. Get a Shell on Plex Docker
  7. Sair do Plex no Docker
  8. Extract files from external hard drive to Plex config directory
  9. Restart the Rasp Pi or at least the Plex Docker container
  10. Make sure I can see the new Plex server on all my TVs and that the seen status matches my old server.

So all I have to do is stream from RSS and get rid of that old computer.

I can't get out of plex in docker with just ps.

I have to find another way.

Every time I try to terminate the Plex process, ALL my shell sessions in Docker are terminated.

Ok... how does it start on startup?

Nada em init.d

This is my /etc/inittab:

# /etc/inittab::sysinit:/sbin/openrc sysinit::sysinit:/sbin/openrc boot::wait:/sbin/openrc por padrão# Define a Getty Pair'Stty1::respawn:/sbin/getty 38400 tty1tty2::respawn:/sbin/getty 38400 tty2tty3::respawn:/sbin/getty 38400 tty3tty4::respawn:/sbin/getty 38400 tty4tty5::respawn:/sbin/getty 38400 tty5tty6::respawn:/sbin/getty 38400 tty6# Put a getty on the serial port#ttyS0::respawn:/sbin/getty-EUttyS0 115200 vt100# things fordo forthe 3 finger salute::ctrlaltdel:/sbin/reboot# things forAgainbefore restarting::off:/sbin/off openrc

No plex there...

Here's something:

/usr/sbin# gatostart_pms#!/bin/sch#change these parametersEm/etc/default/plexmediaserverexportar PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6exportar PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserverexportar PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000exportar PLEX_MEDIA_SERVER_TMPDIR=/tmpexportar PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HEIM}/Library/Application Support"tente -f /etc/default/plexmediaserver && . /etc/default/plexmediaserverI [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR"]Thenmkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR"E [ ! p.s? -eq 0]Thenecho "WARNING CANNOT CREATE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, MAKE SURE I HAVE PERMISSION!"output 1 fifiexportar LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}/lib"export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"Eco$PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS$PLEX_MEDIA_SERVER_MAX_STACK_SIZE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIRulimit -s $PLEX_MAX_STACK_SIZE(cd/usr/lib/plexmediaserver; ./Plex\media\server)

This is what the important line looks like:

(cd/usr/lib/plexmediaserver; ./Plex\media\server)

This is the executable file. You must start with others. He is definitely the one to kill.

Perhaps you could comment out this line in the script and restart Docker and copy everything.

Well I made the edit and now the container is stuck in a restart loop.

SighIt's time to erase it and start over.

Okay, I'll delete it and start over with a twist: I'll map the config directory in Plex Docker to a local folder where I unzipped the config zip file from my old Plex server.

I started with this line:

docker run -d --restart=always --name plex -v /mnt/torrents:/media --net=host -v /mnt/torrents/PlexLib:/root/Library jaymoulin/plex

And I'll go through the initial setup again. Fingers crossed.

And it looks like it didn't last. I stop Docker and unzip the zip file where I mapped the paths and start again.

I tried it. Not data.

I went to docker and couldn't even find the config library where I left it last time.

This afternoon. I have to put this to bed.

30.09.20

Okay, I realized something: I can't work with the entire Plex metadata directory. It's pretty big, even without some suspicious folders. Zip, unzip, transfer, etc. takes forever. I can not do it. It will not work.

All I need is the observed state. Accessories? I probably picked the wrong ones last time. I will get new ones. Records? No configuration? Probably not.

I just want the observed state, nothing more. As?

That's itPerhaps.

I had to download the SQLite command line toolsHere.

So I did this:

echo ".dump metadata_item_settings" | sqlite3 com.plexapp.plugins.library.db | grep -v TABELA | grep -v ÍNDICE > Konfiguration.sql

This seems to have done it. Now I have a settings.sql file.

Now I need to get sqlite3 on RasPi?

I do this:

pi@frambuesapi:~ $ sudoapt-getTo installsqlite3Reading package lists... DoneCreating dependency treeReading status information... DoneThe following package was automatically installed and is no longer needed: rpi-eeprom-imagesUse 'sudo apt autoremove' to remove it.Suggested packages: sqlite3-docOs following packages are NEW at to be installed: sqlite30 updated, 1 newly installed, 0 to remove and 17 not updated. You need 839 KB of files. After this process, another 2278 kB of storage space is occupied. Retrieve: 1 http://mirror.sjc02 .svwh.net/raspbian/raspbian buster/main armhf sqlite3 armhf 3.27.2-3 [839 kB] 839 kB obtained in 1s (855 kB/s) Selection of previously unselected package sqlite3 . (Reading database... 43130 files and directories currently installed.) Preparing to unzip .../sqlite3_3.27.2-3_armhf.deb ... unzipping sqlite3 (3.27.2-3) ... configuring sqlite3 (3.27 . 2- 3) ... Processing triggers for man -db (2.8.5-2) ...pi@frambuesapi:~ $ sqlite3SQLite Version 3.27.2 2019-02-25 16:06:06 Type ".help" for usage tips. Connected to an in-memory temporary database. Use ".open FILENAME" to reopen a persistent database.sqlite>

This seems to work.

Then you should be able to:

cat-Konfiguration.sql | sqlite3 com.plexapp.plugins.library.db

configuration changes

If I change any settings on the Plex server, I list them here.

Plex-Addons

When I add Plex plugins, I list them here.

Plex Impressions on the Rasp Pi

I set up my Plex server and am currently testing a movie.

I look at the output from above and the processor is safe. However, you are running the media scanner and it is consuming more CPU.

It must take a long time to download episode descriptions, cover art, and such. TV shows last forever.

Only certain movies work. The broken ones just say the movie is not available. It is not game mode based.

Maybe it fits.

Plays HD very well. No long load times or anything like that.

Once the cover is downloaded, everything seems to load quickly as you browse movies.

TV art and descriptions are starting to arrive.

Sound missing from some new downloads. However, older TV shows work fine.

VPN setup on a Rasp Pi

HereIt's a good starting point for my application.

ntp configuration

I'll start with the NTP section.

The steps say I probably don't need to do anything; it should already be configured.

I do this command line to check if NTP is up and running:

pi@frambuesapi:/ $ ntpq- book page-bash: ntpq: command not found

Hmmmm, that's no consolation.

Searching the web, I find a topic that might helpHere.

I run this command as suggested:

sudo apt-get update && sudo apt-get -y install ntp

And when I do that, it installs; requires a lot of scrolling, but no errors. When I try the verification step again, I get the following:

pi@frambuesapi:/ $ ntpq- book pageremote refid st t quando o polling atinge o atraso de compensação de jitter ==================================== == == ===================================== 0.debian.pool.n .POOL . 16p - 64 0 0,000 0,000 0,001 1.debian.pool.n .POOL. 16 p - 64 0 0,000 0,000 0,001 2.debian.pool.n .POOL. 16 p - 64 0 0,000 0,000 0,001 3.debian.pool.n .POOL. 16 p - 64 0 0,000 0,000 0,001 tick.chi1.ntfo. 206.55.64.76 3 ou 1 64 1 36.594 -5.182 0,372*Logiplex.NET 18.26.4.105 2 ou 2 64 1 55.960 -0.119 0,452 Darwin.Kenyonra 80.72.48 3 ou 1 64 1 39. ntp.stanfo 171.64.7.105 2U 2 64 1 37.839 -0.233 0,168 T2.Time.BF1.YAH 129.6.15.28 2U 2 64 1 71.870 02.9107 S.9107 S.9107. 64 1 41.924 -0.940 0.915 mis.wci.com 216.218.192.202 2 u - 64 1 61.305 10.074 0.895 clock.fmt.he.ne .CDMA. 1 u 1 64 1 37.733 -2.424 0.973 tick.sol.net 206.55.64.77 3 u - 64 1 89.365 11.456 3.823 time.cloudflare 10.98.8.8 3 u - 64 1 9.788 -1.072 0.596

That seems correct.

OpenVPN-Installation

This is how I try to install OpenVPN via apt-get:

pi@frambuesapi:/ $ sudoapt-getTo installabbreviationReading package lists... Done Building dependency tree Reading state info... Done The following additional packages will be installed: easy-rsa libccid liblzo2-2 libpkcs11-helper1 opensc opensc-pkcs11 pcscd Suggested packages: pcmciautils openvpn-systemd- resolved the following NEW packages will be installed: easy-rsa libccid liblzo2-2 libpkcs11-helper1 opensc opensc-pkcs11 openvpn pcscd0 updated, 8 newly installed, 0 to remove and 66 not updated. You need 1958 KB of files. After this operation, 5437 kB of additional disk space will be used. Do you want to continue? [Y/n] yGet:1 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf easy-rsa all 3.0.6-1 [37.9 kB]Get:2 http://mirror .sjc02 .svwh.net/raspbian/raspbian buster/main armhf libccid armhf 1.4.30-1 [328 kB] Retrievals: 3 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf liblzo2-2 armhf 2.10 -0.1 [48.4 kB]Get:4 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libpkcs11-helper1 armhf 1.25.1-1 [41.9 kB]Get:5 http://mirror. sjc02.svwh.net/raspbian/raspbian buster/main armhf opensc-pkcs11 armhf 0.19.0-1 [718 kB]Get:6 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf opensc armhf 0.19.0-1 [274 kB] Retrieve:7 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf openvpn armhf 2.4.7-1 [426 kB] Retrieve:8 http://mirror .sjc02.svwh.net/raspbian/raspbian buster/main armhf pcscd armhf 1.8.24-1 [84.8 kB] Achieved 1958 kB in 3 s (645 kB/s) Package default... Easy rsa package selection not yet selected . (The database is being read... 41325 files and directories are currently installed.) Preparation for unpacking .../0-easy-rsa_3.0.6-1_all.deb ... unpacking easy-rsa (3.0 .6- 1) . • Selection of previously unselected libccid package. Preparing to unpack .. ./1-libccid_1.4.30-1_armhf.deb ...unpacking libccid (1.4.30-1) ...selecting previously unselected package liblzo2-2:armhf.Preparing to unpack ... / 2 - liblzo2-2_2.10 -0.1_armhf.deb ... unpacking liblzo2-2:armhf (2.10-0.1) ... Selecting previously unselected package libpkcs11-helper1:armhf. Preparing to unzip .../3- libpkcs11-helper1_1. 25.1-1_armhf.deb ...unpacking libpkcs11-helper1:armhf (1.25.1-1) ...selecting previously unselected package opensc-pkcs11:armhf.Preparing to unpack .../4-opensc -pkcs11_0.19.0- 1_armhf .deb ... unpacking opensc-pkcs11:armhf (0.19.0-1) ... selecting a previously unselected package opensc.Preparing to unpack .../5-opensc_0.19.0-1_armhf. deb ... unpack opensc (0.19 .0-1) ... select an openvpn package not previously selected. 1) ...Selecting the previously unselected pcscd package. 1) ...pcscd configuration (1.8.24-1) ...symlink creates /etc/systemd/system/sockets.target.wants/pcscd.socket → /lib/systemd/system/pcscd.socket.Configuration liblzo2 - 2:armhf (2.10-0.1) ...libpkcs11-helper1:armhf (1.25.1-1) configuration ...opensc-pkcs11:armhf (0.19.0-1) configuration ...Easy configuration - rsa (3.0 6) -1) ...configuring openvpn (2.4.7-1) ...[ ok ] restarting the Virtual Private Network Daemon.:.symlink /etc/systemd/system/multi-user created.target .wants/ openvpn. service → /lib/systemd/system/openvpn.service.opensc configuration (0.19.0-1) ... trigger processing for systemd (241-7~deb10u2+rpi1) ...

So it looks like it worked.

Download OpenVPN PIA profiles

Then I follow the steps to download and unzip the PIA OpenVPN profiles:

pi@frambuesapi:/ $ sudowget https://www.privateinternetaccess.com/openvpn/openvpn.zip--2020-09-04 03:17:11-- https://www.privateinternetaccess.com/openvpn/openvpn.zipResolving www.privateinternetaccess.com (www.privateinternetaccess.com)... 69.192.206.86Connecting a www .privateinternetaccess.com (www.privateinternetaccess.com)|69.192.206.86|:443... connected.HTTP request sent, waiting for response... 200 OKLength: 131897 (129K) [application/zip]Saving to: ' openvpn . Zipper'openvpn.zip 100%[===========================>]128.81K--.-KB/sEm0,1 Sek09/04/2020 03:17:11 (1,11 MB/s) - 'openvpn.zip' salvo [131897/131897]pi@frambuesapi:/ $ sudoapt-getTo installunpackReading package lists... Finished building dependency tree Reading status info... Doneunzip is already latest version (6.0-23+deb10u1).0 up to date, 0 newly installed, 0 to remove, 66 not updated.pi@frambuesapi:/ $ unzip openvpn.zip-DabbreviationFile: openvpn.zipcheckdir: Unable to create dump directory: openvpn permission deniedpi@frambuesapi:/ $ sudounzip openvpn.zip-DabbreviationData: openvpn.zip Inflation: openvpn/AU Melbourne Inflation: openvpn/CA Montreal.ovpn Inflation: openvpn/CA Ontario.ovpn Inflation: openvpn/CA Toronto.ovpn Inflation: openvpn /CA Vancouver.ovpn Inflation: openvpn/Czech Republic. ovpn Inflation: openvpn/DE Berlin.ovpn Inflation: openvpn/DE Frankfurt.ovpn Inflation: openvpn/Denmark.ovpn Inflation: openvpn/Estland.ovpn Inflation: openvpn/Finland.ovpn Inflation: openvpn/France.ovpn Inflation: openvpn/Griechenland .ovpn Inflation: openvpn/Hungary.ovpn Inflation: openvpn/Iceland.ovpn Inflation: openvpn/India.ovpn Inflation: openvpn/Ireland.ovpn Inflation: openvpn/Israel.ovpn Inflation: openvpn/Italy.ovpn Aufblasen: openvpn/Japan. ovpn Aufblasen: openvpn/Lettland.ovpn Aufblasen Doing: openvpn/Lithuania.ovpn Inflation: openvpn/Luxembourg.ovpn Inflation: openvpn/Moldova.ovpn Inflation: openvpn/Netherlands.ovpn Inflation: openvpn/New Zealand.ovpn Inflation: openvpn/ Northern Macedonia.ovpn Inflation: openvpn/Norwegen . Ovpn Inflation: openvpn/Polen.ovpn Inflation: openvpn/Portugal.ovpn Inflation: openvpn/Rumänien.ovpn Inflation: openvpn/Serbien.ovpn Inflation: openvpn/Singapur.ovpn Inflation: openvpn/Slovakia.ovpn Inflation: openvpn/Südafrika. aufgeblasenes ovpn: openvpn/Spanien.ovpn aufgeblasen: openvpn/Sweden.ovpn aufgeblasen: openvpn/Switzerland.ovpn aufgeblasen: openvpn/Turkey.ovpn aufgeblasen: openvpn/UAE.ovpn aufgeblasen: openvpn/UK London.ovpn aufgeblasen: Manchester openvpn/UK .ovpn aufblasend: openvpn/UK Southampton.ovpn aufblasend: openvpn/US Atlanta.ovpn aufblasend: openvpn/US California.ovpn aufblasend: openvpn/US Chicago.ovpn aufblasend: openvpn/US Dallas.ovpn aufblasend: openvpn/US Denver.ovpn Aufblasen: openvpn/US East.ovpn Aufblasen: openvpn/US Florida.ovpn Aufblasen: openvpn/US Houston.ovpn Aufblasen: openvpn/US Las Vegas.ovpn Aufblasen: openvpn/US New York City.ovpn Aufblasen: openvpn/US Seattle. ovpn aufblasen: openvpn/US Silicon Valley.ovpn aufblasen: openvpn/US Washington DC.ovpn aufblasen: openvpn/US West.ovpn aufblasen: openvpn/Ukraine.ovpn aufblasen: openvpn/ca.rsa.2048.crt aufblasen: openvpn/crl .rsa.2048.move

Then I copy the certificates and profiles:

pi@frambuesapi:/ $ sudo cpopenvpn/ca.rsa.2048.crt openvpn/crl.rsa.2048.pem /etc/openvpn/pi@frambuesapi:/ $ sudo cpopenvpn/USA\Denver.ovpn /etc/openvpn/US\Denver.conf

Configure a password file

I did the following:

pi@frambuesapi:~ $ sudonano /etc/openvpn/loginpi@frambuesapi:~ $ sudo chmod600 /etc/openvpn/login

and of course inAccessfile I put my username in the first name and my password in the second line. The second command changed the permissions on the file so that only the root user can read it.

Next, I need to configure the VPN to use this file.

I need to edit the /etc/openvpn/US\Denver.conf file. I changed this line:

Authentication User Password

furthermore:

auth-user-pass /etc/openvpn/login

This configured OpenVPN to use that password file.

VPN tests

Here is the command line I used to test the VPN and the output:

pi@frambuesapi:~ $ sudoabbreviation--config/etc/openvpn/US\Denver.confMon Sep 7 04:12:45 2020 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] created on Feb 20, 2019 Mon Sep 7 04:12:45 2020 Library Versions: OpenSSL 1.1.1d Sep 10, 2019, LZO 2.10 Mon Sep 7 04:12:45 2020 TCP/UDP: Preserving remote address used by last time: [AF_INET] 174.128.242.226:1198Mon 7 04:12:45 Local 2020 UDP Link: (not bound) Mon Sep 7 04:12:45 Remote 2020 UDP Link: [AF_INET] 174.128.242.226:1198 Mon , Sep 7 04:12:45 WARNING: This configuration may cache passwords in memory - use the auth-nocache option to prevent this tun0 openMo Sep 7 04:12:47 2020 /sbin/ip link set dev tun0 up mtu 1500Mon Sep 7 04:12:47 2020 /sbin/ip addr add dev tun0 local 10.7.11.6 peer 10.7.11.5 Mon Sep 7 04:12:47 2020 Boot sequence completed

This is a successful result. Ctrl+C ends this.

Setting up a torrent client on the Rasp Pi

That's itlooks like a great Docker-style way to get a torrent client.

First, I created folders for torrent files and torrent downloads on my USB drive.

So I ran this:

pi@frambuesapi:~ $ Docker execution-D --Continue=Always--Namestreaming-tu p.sI WENT -tu) -v/mnt/usb drive/torrentFiles/-v/mnt/usb drive/torrents- book page9091:80- book page51413:51413- book page51413:51413/udp-mi PORTO=80 Jaymoulin/TransmissionUnable to find image 'jaymoulin/transmission:latest' locallylatest: Pulling from jaymoulin/transmission0776aeec3430: Pull complete04dcf910c102: Pull complete5e175c9477f5: Pull complete1cc20c3a8ea5: Pull completef01a37760413: Pull completeDigest: sha256:acfc58e4229522b728c2be41be44de7ff73729da5e05fbd0bf31b45e69e1f92aStatus: Downloaded newer image for jaymoulin/transmission:latestd5061c55932a9eb2852d0f5a3b4ac91f5718d244cfc4419e8f57caf96413151d9

This seems to have worked wonderfully. Let's see what we need to do to verify the installation.

Oh, I made a mistake. I didn't set the routes correctly. But I had to remove the docker flow and download it again with these commands:

pi@frambuesapi:~ $ Docker stops streamingstreamingpi@frambuesapi:~ $ Stauerrmstreamingstreamingpi@frambuesapi:~ $ Docker execution-D --Continue=Always--Namestreaming-tu p.sI WENT -tu) -v/path/to/input/torrents:/mnt/usbdrive/torrentFiles/-v/path/to/downloaded files:/mnt/usbdrive/torrents- book page9091:80- book page51413:51413- book page51413:51413/udp-mi PORTO=80 Jaymoulin/Transmissionf2dc5fcfe9e08b96e55ff71158d0457e7beb9294c5c2585ff6b580d2659f3926

At this point you should be able to access 192.168.50.44:9091 with a web browser and see the Transmission web interface.

I am not

(Video) Raspberry Pi 4 Getting Started

That makes me sad.

How can I fix this?

Streaming and OpenVPN on a Docker

found a websiteHere

It says to install it with this command line:

p.s Docker execution--cap-add=NET_ADMIN-D \ -v/your/storage/path/:/data\ -v/etc/hora local:/etc/hora local:ro\ -mi CREATE_TUN_DEVICE=TRUE \ -mi OPENVPN_PROVIDER=PIA\ -mi OPENVPN_CONFIG=California\Toronto\ -mi OPENVPN_USERNAME=from the user\ -mi OPENVPN_PASSWORD=to allow\ -mi WEBPROXY_ENABLED=INCORRECT \ -mi ROD LOCAL=192.168.0.0/16\ --log-controllerjson file\ --log-optarmaximum size=10m\ - book page9091:9091\heap/streaming-openvpn

What would I need to change to do this in my setup?

p.s Docker execution--cap-add=NET_ADMIN-D \ -v/mnt/usb drive/torrents/:/data\ -v/etc/hora local:/etc/hora local:ro\ -mi CREATE_TUN_DEVICE=TRUE \ -mi OPENVPN_PROVIDER=PIA\ -mi OPENVPN_CONFIG=California\Denver\ -mi OPENVPN_USERNAME=from the user\ -mi OPENVPN_PASSWORD=to allow\ -mi WEBPROXY_ENABLED=INCORRECT \ -mi ROD LOCAL=192.168.50.0/24\ --log-controllerjson file\ --log-optarmaximum size=10m\ - book page9091:9091\heap/streaming-openvpn

I also look at the list of environment variablesHere.

I'm particularly interested in the LOCAL_NETWORK option. I want the value to span across 192.168.50.xxx, my local LAN.

I wearThat's itwebsite to calculate the corresponding value. Turns out it's "192.168.50.0/24".

Then I ran the above and got this output:

Unable to find image 'haugene/transmission-openvpn:latest' locallylatest: Pulling from haugene/transmission-openvpn3f2411103a12: Pull complete4da04088b2c2: Pull completeab1184837b6f: Pull complete354c6da61dcc: Pull completefaed08aca42b: Pull completed7c7f0b89ec9: Pull completef206b2064c44: Pull complete85d221ac7edf: Pull complete9d3429593a91: Pull completeDigest: sha256:56177b53358134f4d1b5ecab999d982a34fdb741fe7cbf9bef48efcfbb017a11Estado: Imagen más nueva baixada para haugene/transmission-openvpn:latest883598a1c45969cc21365928b29282a1404fbb4d1d4d4d1dac9d4d1dac4d4d4d

But I still don't have a web interface.

So I try this:

pi@frambuesapi:~ $ docker laufen heaps/streaming-openvpnstandard_init_linux.go:211: exec user process caused "run format error"

And what does that mean?

This could mean that the Docker container was not designed for this architecture.

So I use this command to get the correct Docker container:

docker run --cap-add=NET_ADMIN -d \ -v /mnt/usbdrive/torrents/:/data \ -v /etc/localtime:/etc/localtime:ro \ -e CREATE_TUN_DEVICE=true \-e OPENVPN_PROVIDER=PIA \-e OPENVPN_CONFIG=CA\ Denver \ -e OPENVPN_USERNAME=usuário \-e OPENVPN_PASSWORD=contraseña \-e WEBPROXY_ENABLED=false \-e LOCAL_NETWORK=192.168.50.0/24 \ --log-driver json-file \--log- opt max-size=10m \-p 9091:9091 \haugene/transmission-openvpn:latest-armhfNão foi possível encontrar a imagem 'haugene/transmission-openvpn:latest-armhf' localmentelatest-armhf: extrayendo de haugene/transmission-openvpn770c4d307a2e: extracción completa0b233ee442e0 : Pull complete3a9ab8cba906: Pull complete85d08d01a9ef: Pull complete29c792061d71: Pull completefedbfe21d473: Pull completeaf93c37ed24c: Pull completeb3bae2cc3e34: Pull complete9e02f8493f06: Pull completeeb2f72d6761c: Pull completefe524bef95e5: Pull complete8c1d821b314a: Pull complete910247dcf4fc: Pull complete8ace303956b5: Pull completee97232dee793: Pull completec4e62d28fe61: Pull completed ab34ad90a69: Pull complete82a4a 95e2c78: Pull complete5f15f9ab2f3c: Pull completebf388eb360ba: Pull completef96e0c5e7936: Pull completefe1e7300c139: Pull complete49dafb91bee7: Pull complete1d6d8f0bed77: Pull completee5b177c0172c: Pull completeeede4bbb4adc: Pull complete0e77e9ff87a9: Pull complete420926a0a652: Pull completeDigest: sha256:dc1b6a7c8b59ac806cae791c976efdd224c51de09f1a2b82ce85d61a8944d40bStatus: Downloaded newer image for haugene/transmission -openvpn:neueste -armhf5a31a1162635ae7e64b4e0bea3c82dc19c9064981f486288b77726e927307452

Now a Docker PS shows its execution. Does the web interface work?

And yes.

Success!

However, I had no idea if I was connected to the internet via VPN or not. And I don't see any mention of an RSS option.

Test the torrent client to ensure it uses VPN

I will try to downloadSlackwareISOTorrent first for a few reasons:

  1. It's legal, so I don't have a problem if the VPN doesn't work.
  2. It will show if Bittorrent works
  3. I hope I can see where the data is going (hopefully VPN)

Unfortunately, as soon as I try to download something, everything slows down. I can't even get the web interface back.

EUthinkIt's my USB drive. I think it's so slow it sucks.

I think I need to try another USB stick.

Oh look, I've waited a while and it really works.

So to get a terminalwithinthe Docker container running Transmission, I do this:

pi@frambuesapi:~ $ Stauerexecutive -ANDexcited_gauss /bin/bashroot@5a31a1162635:/# 

And then, since my torrent is running, I use netstat to show me the traffic in and out of the Docker container:

root@5a31a1162635:/# liquid stateAktive Internetverbindungen (ohne Server) Proto Recv-Q Send-Q Local address Foreign address Statetcp 119678 0 10.15.11.6:50113 189.115.109.112.s:54912 BLISHEDtcp 0 0 10.15.11.6:50869 i19-les101-119.2855 :119.2855 56221 CPE-25-209-179-35: 63550 ESECIDOTCP 0 0 10.15. 11.6:4717 104-163-137-251.q: 37040 Time_waittcp 496963 0 10.15. 11.6: 60537 114.234.81.95.cht: 40618 Syn_SenttCP 1 0 10.15.11.6:58217 PRAETERIAN 0 10.15.11.6:42341 Ifep: 17007 ESTABLISH 0 0 5A31A1626655: EstablishCidotCP 0 0 10.15.11691 POOL-128-4 -223: 1198 estabelecimentocidotcp 2492400 0 10.15.11.6:59299 UDP069456US.HAWAI: 6881 estabelecimentoCp 644 0 5A31A1A1A1A1A1A11A11A11A11A11A11A11A1A1A1A1A1A1A1A1A1A1A1A1A11A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A.HAWAI: 6881 -136.sl:32935 LAST_ACKtcp 0 1 10.15.11.6:48933 gehost von.leasewe:52822 LAST_ACKtcp 95 0 10.15. 11.6:39363-net-25-3 79.c:37:37563 established ttcp0. 33795 IFCONFIG.com.UA:6981 ESEED: 36881 Time_WAITTCP 1060 0 5A31A162635: 9091 DESDTOP-NE7661: 57824 ESECIDOTCP 0 1 10.15.11.6:428: 42801. 1726-4: 63602 EstableCidotCP 0 0 10.15.11.61.6.7.11.7.11.61.63.63.67.11.7.11.6.7.11. T-: 36011 Established :49847 hosted by.leasewe:52822 ESTABLISHEDtcp 0 87 10.11.6:60847 19-les01-leasewe:52822 ESTABLISHEDtcp 0 87 10.11.6:60847 19-les01-les01-leasewe:52822 ESTA. 6:60847 Last 0t8-526 Last 0t8-526 Last 0t8-526 Last 0t8-526 .11.6:60219 94-2009-171.10.15.11.6:52659 p54bde485.dip0.t-:5 1413 EstablishedTCP 0 1 -bro:45 ; EstablecidoTCP 0 0 10.15.11.6:40471 45.162.228.187:4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444 ¿ ESTABLECIDOtcp 0 0 10.15.11.6:40471 93-143- 149 -148.AD:49708 ESECIDOTC 0 0.15.11.6:54213 NS383199.P-46-10: 5 NNE76661 : 57821 RUNNING IN STATE 65588 0 10.15.11.6:5003 UDP09999529Uds. -13-12-12-12-10 : 9091 Desktop-nne766611: 57822 EstablishedTCP 0 0 10.15.11.6:42243 173.44.55.179:8589 Base Year 0 10.15.11. -137-224-199. 0 10.15.11.6:404 71 5-13-122-102.RESI: 60226 FATTCP 0 0 5A31A1662635: 9091 Desktop-NE7661: 5782222635: 585345 216 10.15.11.6:42321 D207-81-235-8 198.b: 14956 EINRICHTUNG TCP 0 0 10.15.11.6:35693 c-73-137-224-199.:22223 EINRICHTUNG TCP 0 0 10.1615;:2 11-96.deplo:http ESTABLISH tcp 0 0 6a315:11 DESKTOP-NE76661:57826 ESTABLISH tcp 0 1 10.15.11.6:49695 SYN_SENTUNIX-Domain-Connectors) active Prosto.(keine Server) RefCnt Indicator Type Status Add I-Node- Proot@5a31a1162635:/# ifconfigeth0: flags=4163<UP, BROADCAST, RUNNING, MULTICASTER> 1500 peopleinet 172.17.0.2 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:ac:11:00:02 txqueuelen 0 (Ethernet) RX packets 230732 bytes 278810967 (265.8 MiB) RX 0 discarded Errors 0 072 frame overflows .TX 10895658 bytes (10.3 MiB) TX errors 0 discarded 0 overflows 0 operators 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> 65536 peopleinet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1000 (local loopback) RX Packets 80 bytes 11827 (11.5 KiB) RX Error 0 discarded 0 overflow 0 frames 0 TX Packets 80 bytes 11827 (11.5 KiB) TX -Errors 0 discarded 0 overflow 0 operator 0 collisions 0tun0:flags=4305 <UP, PEER TO PEER, CURRENT, NOARP, MULTICAST> 1500 peopleinet 10.15.11.6 netmask 255.255.255.255 destination 10.15.11.5 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuing 100 (UNSPEC ) RX Packets 195063 bytes 256756956 (244.8 MiB) RX Error 0 discarded 0 overflow 0 frames 0 TX Packets 62520 bytes 3979045 (3.7 MiB) TX Error 0 discarded 821 overflow 0 carriers 0 collisions 0

So 10.x.x.x activity happens across the VPN (as we can see from ifconfig which shows that tun0 address is 10.15.11.6). The other IPv6 activity is the web interface for streaming (you can see it's on port 9091).

In my setup, the .torrent file I uploaded via the web interface is placed in "/mnt/usbdrive/torrents/transmission-home/torrents". The actual file is (temporarily) downloaded to '/mnt/usbdrive/torrents/transmission-home/resume' and when done copied to...?

Let the torrent docker container start automatically

Turns out my docker container doesn't start automatically. Let's figure out how to do this.

I work according to the instructions.Here.

Turns out all you have to do is add -always restart to the command

docker run --restart always --cap-add=NET_ADMIN -d \ -v /mnt/usbdrive/torrents/:/data \ -v /etc/localtime:/etc/localtime:ro \ -e CREATE_TUN_DEVICE=true \- e OPENVPN_PROVIDER=PIA \-e OPENVPN_CONFIG=CA\ Denver \ -e OPENVPN_USERNAME=usuário \-e OPENVPN_PASSWORD=Contraste \-e WEBPROXY_ENABLED=false \-e LOCAL_NETWORK=192.168.50.0/24 \ --log-driver json-file \ --log-opt max-size=10m \-p 9091:9091 \haugene/transmission-openvpn:latest-armhf

Torrent client setup to read an RSS feed

find somethingHere.

Well, on this side Ito wantto do the Docker setup, but I have a sneaking suspicion it will create a new Docker container that will also contain Transmission. I just want to download RSS feeds into my existing streaming VPN directory.

Perhaps you could use one of the other steps.

Ok I need ruby ​​in streaming docker.

so i do this:

pi@raspberrypi:/etc $ Stauerexecutive -ANDangry_goldstein /bin/bashroot@d8d39033ecc1:/# lsbin boot config data dev etc home lib media mnt opt ​​​​proc root run sbin srv sys tmp usr varroot@d8d39033ecc1:/# Happinessbash: gem: command not foundroot@d8d39033ecc1:/# apt-getapt 1.8.2.1 (armhf) Usage: apt-get [options] command apt-get [options] install|remove pkg1 [pkg2 ...] apt-get [options] source pkg1 [pkg2 ...] apt-get is a command-line interface for retrieving packages and information about them from authenticated sources, and for installing, updating, and removing packages along with their dependencies. Commonly used commands: update: get new package lists update: perform an update install: install new packages (libc6 not libc6.deb) reinstall: reinstall packages (package is libc6, not libc6.deb) remove: remove packages purge: remove packages and configuration files autoremove - Automatically removes all unused packages dist-upgrade - Distribution upgrade, see apt-get(8) dselect-upgrade - dselect selections follow build-dep - Configure build dependencies for clean source packages: delete downloaded zip files autoclean: toggle delete downloaded zip files. download - downloads the binary package to the current directory changelog - downloads and displays the changelog for the specified package See apt-get(8) for more information on available commands. Configuration options and syntax are detailed in apt.conf(5). See sources.list(5) to configure sources. Package and version options can be expressed via apt_preferences(5). Security details are available from apt-secure(8). This APT has Super Cow Powers.root@d8d39033ecc1:/# apt-getTo installTo scrubReading package lists... Building dependency tree Done Reading status info... DoneE: Unable to find Ruby packageroot@d8d39033ecc1:/# apt-get updateRetrieve1 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB] Retrieve2 http://archive.raspbian.org/raspbian buster InRelease [15,0 kB] Retrieve3 http:/ /archive.raspbian .org/raspbian buster/ pacotes main armhf [18,3 MB]Get:4 http://archive.raspberrypi.org/debian buster/main armhf packages [331 kB]Get:5 http://archive .raspbian .org/raspbian packages buster/rpi armhf [ 1299 B] recupera 6 pacotes http://archive.raspbian.org/raspbian buster/non-free armhf [126 kB] recupera 7 pacotes http://archive.raspbian .org /raspbian buster/ firmware armhf [1201 B]Obter :8 http://archive.raspbian.org/raspbian buster/contrib armhf packages [68,6 kB]Obter 18,9 MB em 4min 40s (67,4 kB/s)Ler listas de pacotes ... Concluídoroot@d8d39033ecc1:/# apt-getTo installTo scrubReading package lists... Done Building dependency tree Reading state info... Done The following additional packages will be installed: liruby2.5 libyaml-0-2 rake ruby-did you-mean-ruby ruby-minitest ruby- net- telnet ruby ​​​​​​-power- assert ruby-test-unit ruby-xmlrpc ruby2.5 rubygems-integration Suggested packages: ri ruby-dev bundler Recommended packages: zip sources-lato libjs-jquery The following NEW packages will be installed : liruby2. 5 libyaml-0 -2 rake ruby ​​​​​​ruby - Did you mean ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby-xmlrpc ruby2.5 rubygems-integration0 updated, 12 freshly installed , 0 to remove and 4 not updated. I need 3858KB of files. After this process, another 15.3 MB of disk space will be used. Recover 1 http://archive.raspbian.org/raspbian buster/main armhf rubygems-integration all 1.11+deb10u1 [5212 B] Recover 2 http://archive.raspbian.org/raspbian buster/main armhf ruby2.5 armhf 2.5 .5-3+deb10u2 [400kB]Get:3 http://archive.raspbian.org/raspbian buster/main armhf ruby ​​​​​​armhf 1:2.5.1+b1 [11.6kB]Get:4 http: / /archive .raspbian.org/raspbian buster/main armhf rake all 12.3.1-3+deb10u1 [67.1 kB] Get:5 http://archive.raspbian.org/raspbian buster/main armhf ruby- did-you - mean all 1.2 .1-1 [14.4 kB]Get:6 http://archive.raspbian.org/raspbian buster/main armhf ruby-minitest all 5.11.3-1 [54.8 kB] Get:7 http://archive.raspbian. org/raspbian buster/main armhf ruby-net-telnet all 0.1.1-2 [12.5 kB] Get:8 http://archive.raspbian.org/raspbian buster /main armhf ruby-power -assert all 1.1 .1- 1 [10.9 kB]Get:9 http://archive.raspbian.org/raspbian buster/main armhf ruby-test-unit all 3.2.8-1 [ 72.4 kB]Get:10 http://archive . raspbian.org/raspbian buster/main armhf ruby-xmlrpc all 0. 3.0-2 [23.7 kB] Get:11 http://archiv. raspbian.org/raspbian buster/main armhf libyaml-0-2 armhf 0.2.1-1 [38.8 kB] Retrievals: 12 http://archive.raspbian.org/raspbian buster/main armhf liruby2.5 armhf 2.5. 5- 3+deb10u2 [3146 kB]Get 3858 kB in 28s (138 kB/s)Choose previously unselected Rubyge package ms-integration.(Reading database... 11950 files and directories currently installed.)Prepare- if to unzip. ../00 - rubygems-integration_1.11+deb10u1_all.deb...unpacking rubygems-integration (1.11+deb10u1) ...selecting previously unselected package ruby2.5.Preparing to unpack .../01-ruby2 . 5_2.5.5-3+ deb10u2_armhf.deb ...unpacking ruby2.5 (2.5.5-3+deb10u2) ...preselecting unselected package ruby. Preparing to unpack .../02-ruby_1%3a2. 5.1 +b1_armhf.deb ...unpack ruby ​​​​(1:2.5.1+b1) ...select rake package not previously selected.Prepare to unpack .. ./03-rake_12.3.1-3+ deb10u1_all. deb ...unpack ra ke (12.3.1- 3+deb10u1) ...select previously unselected package ruby ​​-you-wanted-to-prepare-to-extract.../04 -ruby-you-have-my_1.2.1 -1_all.deb . .. unpack ruby-did-you-mean-(1.2.1-1) ... select the previously unpacked package ruby-minitest. Preparing to unpack.../ 05-ruby-minitest_5.11.3-1_all.deb ... Unpacking ruby-minitest (5.11.3-1) ...Select previously unselected package ruby-net-t elnet.Preparing to unpack . ../06-ruby-net-telnet_0.1.1-2_all.deb ...unpack ruby-net-telnet (0.1.1-2) ...select previously unselected package ruby-power-assert .Prepare to unpack. . ./07-ruby-power-assert_1.1.1-1_all.deb ...unpack ruby ​​​​​​-power -assert(1.1.1-1) ...select the previously unselected package ruby-test-unit . Preparing to unpack .../08-ruby-test-unit_3.2.8-1_all.deb ... Unpacking ruby-test-unit (3.2.8-1) ... Selecting the previously unchecked package ruby-xmlrpc. Preparing to unpack .../09-ruby-xmlrpc_0.3.0-2_all.deb ...unpacking ruby-xmlrpc (0.3.0-2) ...selecting the previously unchecked package libyaml-0-2:armhf. unpacking. .. /10-libyaml-0-2_0.2.1-1_armhf.deb ...unpack libyaml-0-2:armhf (0.2.1-1) ...Select the previously unselected package liruby2.5:armhf .Preparation to unpack .. ./11-libruby2.5_2.5.5-3+deb10u2_armhf.deb ...unpack liruby2.5:armhf (2.5.5-3+deb10u2) ...configure ruby-power-assert (1.1 .1 -1 ) ...configure libyaml-0-2:armhf (0.2.1-1) ...configure rubyg ems-integration (1.11+deb10u1) ...configure ruby-minitest (5.11.3-1) .. .configure ruby-test-unit (3.2.8-1) ... configure ruby-net-telnet (0.1.1-2) ... configure-ruby-did you mean (1.2.1-1) . .confi configure ruby-xmlrpc (0.3.0-2) ... configure ruby2.5 ( 2.5.5-3+deb10u2) ... configure ruby ​​​​​​(1:2.5.1+b1) ... rake configure (12.3 .1-3+deb10u1) ...configure liruby2.5:armhf (2.5 .5-3+deb10u2) ...rendering trigger for libc-bin (2.28-10+rpi1) ...root@d8d39033ecc1:/#root@d8d39033ecc1:/# HappinessTo installtransmission-rssRetrieve: open_uri_redirections-0.2.1.gem (100%) Open_uri_redirections-0.2.1 successfully installed. Obtained: ffi-1.13.1.gem (100%) Building native extensions. This may take a while... ERROR: Failed to install RSS stream: ERROR: Failed to create native gem extension. current directory: /var/lib/gems/2.5.0/gems/ffi-1.13.1/ext/ffi_c/usr/bin/ruby2.5 -r ./siteconf20201012-350-1cfd7g5.rb extconf.rbmkmf.rb can Cannot find header files for Ruby in /usr/lib/ruby/include/ruby.hextconf Inspection results are in /var/lib/gems/2.5.0/extensions/arm-linux/2.5.0/ffi -1.13 .1/ gem_make.out logged in

OK, this is fun.

Regardless, I'm dealing with my /etc/ folder.

I need to create a config file with the correct RSS feed urls.

This will look like this:

Feeds: - URL: http://example.com/feed1 download_path: /home/user/Downloads

and this file is called….

/etc/transmission-rss.conf

Good. Let's do it. And thank goodness Docker has Nano.

One of the questions is... where should the mapped paths to my drive go?

Then I check this file: /data/transmission-home/transmission-log

And I see this:

[2020-10-12 03:32:38.135] watchdir Could not open directory '/data/watch' (2): No such file or directory (watchdir.c:354)

This is telling me that my directors might not be properly configured for mapping. In fact, when I'm looking through the docker, I don't see anything in the folders that should contain my TV shows that don't have shows.

So I did something wrong...

Okay, I've updated my command line to run Docker like this:

docker run --restart always --cap-add=NET_ADMIN -d -v /mnt/torrents/:/data -v /mnt/torrents/torrentFiles:/data/watch -v /etc/localtime:/etc/localtime: ro -e CREATE_TUN_DEVICE=true -e OPENVPN_PROVIDER=PIA -e OPENVPN_CONFIG=CA\ Denver -e OPENVPN_USERNAME=uname -e OPENVPN_PASSWORD=pass -e WEBPROXY_ENABLED=false -e LOCAL_NETWORK=192.168.50.0/24 --log-driver json-file --log-opt max-size=10m -p 9091:9091 haugene/transmission-openvpn:latest-armhf

And it seems to be working. I see the file where they should be. And I see where the observation files should be.

And the bug we found?

well i foundThat's it.

You want me to do these kinds of things:

sudo apt-get install ruby2.0-devsudo apt-get install ruby2.2-devsudo apt-get install ruby2.3-dev

But unfortunately it does not recognize any of these packages.

So I'm stuck. Wait, I had to do another apt-get update. Then he recognized ruby-dev

And it's settled. What is the next?

We try the Gem RSS installation flow again and see that it fails again:

root@72d64126b585:/data/clock# apt-getTo installRuby-devReading package lists... Completed dependency tree Reading status information... DoneE: Unable to find package ruby-devroot@72d64126b585:/data/clock# apt-getTo installruby-dev2.0Reading package lists... DoneBuilding dependency treeReading status information... DoneE: Unable to find package ruby-dev2.0E: Unable to find packages for glob 'ruby-dev2.0'E: Unable to find the package regularly to become the expression 'ruby -dev2.0'root@72d64126b585:/data/clock# apt-getTo installruby2.0-devReading package lists... DoneBuilding dependency treeReading status information... DoneE: Unable to find package ruby2.0-devE: Unable to find any packages for glob 'ruby2.0-dev'E: Unable to find find a regular expression package 'ruby2.0-dev'root@72d64126b585:/data/clock# apt-get updateRetrieve1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB] Retrieve2 http://archive.raspbian.org/raspbian buster InRelease [15.0 kB] Retrieve3 http://archive.raspberrypi.org /debian buster/ main armhf packages [331 kB] Get:4 http://archive.raspbian.org/raspbian buster/rpi armhf packages [1299 B] Get:5 http://archive.raspbian .org/raspbian buster/ contrib armhf packages [ 68.6 kB] Retrieve:6 http://archive.raspbian.org/raspbian buster/non-free armhf packages [126 kB] Retrieve:7 http://archive .raspbian.org /raspbian buster/ firmware armhf packages [1201 B ]Get:8 http://archive.raspbian.org/raspbian buster/main armhf packages [18.3 MB]Get 18.9 MB in 3min 35s (87.7 kB/s) Read the package lists... Doneroot@72d64126b585:/data/clock# apt-getTo installrubydevReading package lists... Completed dependency tree Reading status information... DoneE: Unable to find package rubydevroot@72d64126b585:/data/clock# apt-getTo installRuby-devReading package lists... Done Building dependency tree Reading status information... Done The following additional packages will be installed: libgmp-dev libgmpxx4ldbl liruby2.5 libyaml-0-2 rake ruby ​​​​​​​​ruby-d do you mean ruby-minitest ruby​​-net -telnet ruby-power-assert ruby-test-unit ruby-xmlrpc ruby2.5 ruby2.5-dev rubygems-integration Suggested packages: gmp-doc libgmp10-doc libmpfr- dev ri bundler Suggested packages: zip fonts-lato libjs -jquery ruby2.5 -doc The following NEW packages will be installed: libgmp-dev libgmpxx4ldbl libruby2.5 libyaml-0-2 rake ruby​​ruby-dev ruby-dat- you-mean ruby-minitest ruby-net-telnet ruby​​-power-assert ruby-test - unit ruby-xmlrpc ruby2.5 ruby2.5-dev rubygems-integration0 updated, 16 newly installed, 0 to remove and 4 not updated. You need 4875 KB of files. After this process, another 17.5 MB of hard disk space is occupied. Retrievals: 1 http://archive.raspbian.org/raspbian buster/main armhf libgmpxx4ldbl armhf 2:6.1.2+dfsg-4 [21.8 kB] Retrievals: 2 http://archive.raspbian.org/raspbian buster /main armhf libgmp-dev armhf 2:6.1.2+dfsg-4 [570 kB]Get:3 http://archive.raspbian.org/raspbian buster/main armhf rubygems-integration all 1.11+deb10u1 [ 5212 B] Get : 4 http://archive.raspbian.org/raspbian buster/main armhf ruby2.5 armhf 2.5.5-3+deb10u2 [400 kB] Retrieves: 5 http://archive.raspbian.org/raspbian buster/main armhf ruby armhf 1:2.5.1+b1 [11.6 kB] Get: 6 http://archive.raspbian.org/raspbian buster/main armhf rake all 12.3. 1-3+deb10u1 [67.1 kB]Get: 7 http://archive.raspbian.org/raspbian buster/main armhf ruby-did-you-mean all 1.2.1-1 [14.4 kB]Get: 8 http://archive.raspbian.org/raspbian buster/main armhf ruby-minitest all 5.11.3-1 [54.8 kB]Get:9 http://archive.raspbian.org/raspbian buster/main armhf ruby ​​​​-net-telnet all 0.1 .1-2 [12.5 kB] Retrieve:10 http://archive.raspbian.org/raspbian buster/main armhf ruby-power-assert all 1.1.1-1 [10.9 kB ]Retrieve: 11 http://archive. raspbian.org/raspbian buster/main armhf ruby-unit test all 3.2.8-1 [72.4 kB] Retrieves: 12 http://archive.raspbian.org/raspbian buster /main armhf ruby-xmlrpc all 0.3.0-2 [23.7 kB] Retrieved: 13 http://archive.raspbian.org/raspbian buster/main armhf libyaml-0-2 armhf 0.2.1-1 [38.8 kB] Retrieved 14 http://archive.raspbian .org /raspbian buster/main armhf liruby2.5 armhf 2.5.5-3+deb10u2 [3146 kB] Retrieved: http://archive.raspbian.org/raspbian buster /main armhf ruby2.5-dev armhf 2.5.5- 3+ deb10u2 [415 kB] Recoveries: 16 http://archive.raspbian.org/raspbian buster/principal armhf ruby-dev armhf 1:2.5.1+b1 [10.4 kB ] Got 4875 kB in 1 min 25 sec (57.4 kB/s) Selecting previously unselected package libgmpxx4ldbl: armhf. (Reading the database... 11950 files and directories currently installed). Preparing to unpack.../00-libgmpxx4ldbl_2%3a6.1.2+dfsg-4_armhf.deb ...unpacking libgmpxx4ldbl:armhf (2:6.1.2+dfsg-4) ...selecting previously unselected package libgmp-dev : armhf .Preparing to unpack .../01-libgmp-dev_2%3a6 .1.2+dfsg-4_armhf.deb ...unpacking libgmp-dev:armhf (2:6.1.2+dfsg-4) ... Selecting the previous unselected package rubygems-integration. Preparing to unpack. ../03-ruby2.5_2.5.5 -3+deb10u2_armhf.deb ...unpacking ruby2.5 (2.5.5-3+deb10u2) ...selecting previously unselected ruby ​​package. Preparing to unpack ... / 04 - ruby_1%3a2.5.1+b1_armhf.deb . ...unpacking Ruby (1:2.5.1+b1) ...picking rake from a previously unselected package. 3+deb10u1) ...Select the previously unpacked package ruby-did-mean.Prepare to unpack .../06-ruby-did-mean_1.2.1-1_all.deb ...unpack ruby-did-mean - ( 1.2. 1-1) ...Select the previously unpacked ruby-minitest package. Prepare to unpack.../07-ruby-minitest_5.11.3-1_all.deb ...unpack ruby-minitest (5.11.3 -1 ) ... Select the previously unselected ruby-net-telnet package. Prepare to unpack .../08-ruby-net-telnet_0.1.1-2_all.deb ...unpack ruby-net-telnet (0.1.1 - 2 ) ...S Selecting previously unselected package ruby- power-assert. Prepare to unpack .../09-ruby-power-assert_1.1.1-1_all.deb ...unpack ruby-power-assert (1.1 .1-1) ... Selecting previously unselected package ruby-test -unit. Preparing to unpack .../10-ruby-test-unit_3.2.8-1_all.deb ...unpacking ruby-test-unit (3.2.8-1) ... Prepare to select unselected package ruby- xmlrpc.Prepare Start unpacking .../11-ruby-xmlrpc_0.3.0-2_all.deb ...And ntpacke ruby-xmlrpc (0.3.0-2) ...Select previously unselected package libyaml-0-2 : armhf.Preparing to unpack .../12-libyaml-0-2_0.2.1-1_armhf.deb ... Unpack libyaml-0-2:armhf (0.2.1-1) ... Selecting previously unselected liruby2 package . 5:armhf.Preparation for unpacking .../13-libruby2.5_2.5.5-3+deb10u2_armhf.deb ...unpacking liruby2.5:armhf (2.5.5-3+deb10u2) ...preselecting the package ruby2 not selected ) . ..Selecting previously unselected package ruby-dev:armhf.Preparing to unpack .../15-ruby-dev_1%3a2.5.1+b1_armhf.deb ...unpacking ruby-dev:armhf (1:2.5.1+ b1 ) ...configure ruby-power-assert (1.1.1-1) ...configure libyaml-0-2:armhf (0.2.1-1) ...configure rubygems-integration (1.11+deb10u1) .. configure ruby-minitest (5.11.3-1) ... configure libgmpxx4ldbl:armhf (2:6.1.2+dfsg-4) ... configure ruby-test-unit (3.2.8-1) ...configure ruby -net-telnet (0.1.1-2) ... configure-ruby-did-he-mine (1.2.1-1) ... configure ruby-xmlrpc (0.3.0-2) ... configure libgmp-dev: armhf (2:6.1.2+dfsg-4) ... configure Ruby2.5 (2.5.5-3+deb10u2) ... configure Ruby (1:2.5.1+b1) . ..Configure Rake (12.3.1-3+deb10u1) ...Configure liruby2.5:armhf (2.5.5-3+deb10u2) ...Configure ruby2.5-dev:armhf (2.5.5-3+deb10u2 ) ) ... configure ruby-dev:armhf (1:2.5.1+b1) ... render triggers for libc-bin (2.28-10+rpi1) ...root@72d64126b585:/data/clock# apt-getTo installTo scrubReading package lists... DoneCreate dependency treeReading status information... Doneruby is already the latest version (1:2.5.1+b1).ruby configured to install manually.0 up to date, 0 newly installed, 0 for remove and 4 not updated.root@72d64126b585:/data/clock# HappinessTo installtransmission-rssRetrieve: open_uri_redirections-0.2.1.gem (100%) Open_uri_redirections-0.2.1 successfully installed. Obtained: ffi-1.13.1.gem (100%) Building native extensions. This may take a while... ERROR: Failed to install RSS stream: ERROR: Failed to create native gem extension. current directory: /var/lib/gems/2.5.0/gems/ffi-1.13.1/ext/ffi_c/usr/bin/ruby2.5 -r ./siteconf20201012-459-7qd6op.rb extconf.rbverifying ffi. h... *** extconf.rb failed *** Could not create makefile for some reason, probably missing required libraries and/or headers. See the mkmf.log file for more details. It may be that you need configuration options. Available configuration options: --with-opt-dir --without-opt-dir --with-opt-include--one-eight-include=${between}/to contain--con-opt-lib--sin-opt-lib=${between}/lib--with-make-prog --sem-make-prog --srcdir=. -- Brochure--ruby=/usr/bin/$(RUBY_BASE_NAME)2.5--con-ffi_c-dir --sin-ffi_c-dir --con-ffi_c-include--sin-ffi_c-include=${ffi_c-dir}/to contain--con-ffi_c-lib--sin-ffi_c-lib=${ffi_c-dir}/lib--enable-libffi-system --disable-libffi-system --with-libffi-config --without-libffi-config --with-pkg-config --without-pkg-config/usr/lib/ruby/2.5 .0/mkmf.rb:456:in `try_do': The compiler could not create an executable. (RuntimeError) You must first install the development tools. from /usr/lib/ruby/2.5.0/mkmf.rb:590:in `try_cpp' from /usr/lib/ruby/2.5.0/mkmf.rb:1098:in `block in have_header' in /usr/ lib/ruby/2.5.0/mkmf.rb:948:on 'block on check_for' from /usr/lib/ruby/2.5.0/mkmf.rb:350:on 'block (2 level) on delay' from / usr/lib/ruby/2.5.0/mkmf.rb:320:on 'open' from /usr/lib/ruby/2.5.0/mkmf.rb:350:on 'block to move' from /usr/lib/ ruby/2.5.0/mkmf.rb:320:when 'open' /usr/lib/ruby/2.5.0/mkmf.rb:346:when 'doze' /usr/lib/ruby/2.5.0/mkmf. rb:947:in `checking_for' of /usr/lib/ruby/2.5.0/mkmf.rb:1097:in `have_header' of extconf.rb:10:in `system_libffi_usable?'de extconf.rb:42:in `<Principal>'To see why this extension failed to compile, check the mkmf.log found here: /var/lib/gems/2.5.0/extensions/arm-linux/2.5.0/ffi-1.13.1/mkmf. logextconf failed, exit code 1Gem files remain installed in /var/lib/gems/2.5.0/gems/ffi-1.13.1 for verification. The results were logged to /var/lib/gems/2.5.0/extensions/arm-linux/2.5.0/ffi-1.13.1/gem_make.out

Pulmonary infection. of.

I've been working for 2.5 hours. How effective is my time? In 2.5 hours I can overcome a bottleneck that hit a $100 million project. Or I can't fix something that costs $0.

Well, these $100 million people are just plain wrong in evaluating your project.

Mine is much more important.

It's more expensive.

Will I ever have fun here?

Anyway, the log file I should look at (mkmf.log) looks like this:

não se encontra a configuração do pacote para libffi"gcc -o conftest -I/usr/include/arm-linux-gnueabihf/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I /usr /include/ruby-2.5.0 -I.-Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -g -O2 -fdebug-prefix-map=/build/ruby2.5-cMKrLr/ruby2.5-2.5 .5 =. -fstack-protector-strong -Wformat -Werror=formato-seguridad -fPIC conftest.c -L. -L/usr/lib/arm-linux-gnueabihf -L. -Wl,-z,relro -Wl ,-z,jetzt -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.5 -lpthread -lgmp -ldl -lcrypt -lm -lc"überprüftes Programm war:/* start */1: #to contain"rubin.h"2:3: int main(int argc, char **argv)4: {5: returns 0;6: }/* fim */

At least one link says to install gcc. Then doapt-get install gcc

It's always something, now this:

ERROR: Failed to create native gem extension.

And now this?

I'm supposed to install ruby-dev, so maybe I should.

So I do this:

root@72d64126b585:/var/lib/gems/2.5.0/extensions/arm-linux/2.5.0/ffi-1.13.1# apt-getTo installAgainReading package lists... DoneBuilding a dependency treeReading status information... DoneSuggested packages: make-docThe following NEW packages will be installed: make0 updated, 1 newly installed, 0 to remove, and 4 not updated. You need 321 KB of files. After this process, another memory space of 1279 kB is occupied. Get: 1 http://archive.raspbian.org/raspbian buster/main armhf make armhf 4.2.1-1.2 [321 kB] Got 321 kB in 2s (156 kB/s)sh: 0: getcwd() failed: No such a file or directory. Previously unselected package does Select. (Reading database... 13749 files and directories currently installed.) Preparing to unpack.../make_4.2.1-1.2_armhf .deb ... unpacking make (4.2.1-1.2 ) ...configuring make (4.2) .1 -1.2) ...root@72d64126b585:/var/lib/gems/2.5.0/extensions/arm-linux/2.5.0/ffi-1.13.1# HappinessTo installtransmission-rssERROR: Running gem... (Errno::ENOENT) No such file or directory - getcwdroot@72d64126b585:/var/lib/gems/2.5.0/extensions/arm-linux/2.5.0/ffi-1.13.1#

And... I don't have anything here.

I'm just restarting.

No. The same. It simply doesn't install.

ok i install build-essential

Then I try to install the gem again.

DOES NOT FAIL IMMEDIATELY. And it doesn't fail at all.

Now I just need this config file?

This will look like this:

Feeds: - URL: http://showrss.info/user/127411.rss?magnets=true&namespaces=true&name=null&quality=null&re=null download_path: /data/torrents

and this file is called….

/etc/transmission-rss.conf

But… I have no idea if that works or not.

Time to install that babck HD in the other notebook.

I completely failed to get it working again.

Setting Up a Subversion Server on a Rasp Pi

Definitely

Setting up a Jekyll Server on a RasPi

Definitely

Setting Up a Jenkins Server on a Rasp Pi

Definitely

Setting Up a Redmine Server on a Rasp Pi

Definitely

Setting Up a NAS on a Rasp Pi

I have an old hard drive that I want to access from my network. At this point, I unfortunately think that Samba sharing might be the best option for file sharing on Windows 10. Am I right?

(Video) CanaKit Raspberry Pi 4 (4GB) Starter Kit Unboxing and Initial Setup

That's itWebsite offers some alternatives.

  1. SSH Sharing - Seems to be pretty command line oriented. Not quite what I'm looking for.
  2. Samba: This is what I think I have to use
  3. Shared Folders - This... feels like Samba again...

So it's Samba for me.

I wearThat's itPage for Samba installation instructions.

Install Samba

This is what I do:

pi@frambuesapi:~ $ sudoapt-get updateRetrieve1 https://download.docker.com/linux/raspbian buster InRelease [29,7 kB] Retrieve2 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB] Retrieve3 http ://raspbian .raspberrypi.org/raspbian buster InRelease [15.0 kB]Get:4 https://download.docker.com/linux/raspbian buster/stable armhf packages [7361 B]Get:5 http:// raspbian.raspberrypi.org/ packages raspbian buster/main armhf [13,0 MB] Busca: 6 http://archive.raspberrypi.org/debian buster/main armhf packages [331 kB] Obtido 13,4 MB em 13 s ( 1071 kB/s) Lendo listas de pacotes.. . Concluídopi@frambuesapi:~ $ sudoapt-getTo installsamba samba-common-binReading package lists... DoneBuilding dependency treeReading state information... DoneThe following package was automatically installed and is no longer required: rpi-eeprom-imagesUse 'sudo apt autoremove' to remove it.The following additional packages will be installed: attr ibverbs-providers libavahi-client3 libboost-atomic1.67.0 libboost-iostreams1.67.0 libboost-regex1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libcephfs2 libcups2 libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libgpgme11 libibverbs1 libjansson4 libldb1 libnspr4 libnss3 libpython2.7 librados2 libtdb1 libtevent0 python-crypto python-dnspython python-gpg python-ldb python-samba python-talloc python-tdb samba-common samba-dsdb-modules samba-libs samba-vfs-modules tdb-toolsSuggested packages: cups-common python-crypto-doc bind9 bind9utils ctdb ldb-tools smbldap-tools ufw winbind heimdal-clientsThe following NEW packages will be installed: attr ibverbs-providers libavahi-client3 libboost-atomic1.67.0 libboost-iostreams1.67.0 libboost-regex1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libcephfs2 libcups2 libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libgpgme11 libibverbs1 libjansson4 libldb1 libnspr4 libnss3 libpython2.7 librados2 libtdb1 libtevent0 python-crypto python-dnspython python-gpg python-ldb python-samba python-talloc python-tdb samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools0 upgraded, 38 newly installed, 0 to remove and 17 not upgraded.Need to get 26.8 MB of archives.After this operation, 101 MB of additional disk space will be used.Do you want to continue? [Y/n] yGet:1 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf python-dnspython all 1.16.0-1 [90.1 kB]Get:2 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf python-crypto armhf 2.6.1-9+b1 [248 kB]Get:3 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libtdb1 armhf 1.3.16-2+b1 [39.0 kB]Get:4 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libtevent0 armhf 0.9.37-1 [27.6 kB]Get:5 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libldb1 armhf 2:1.5.1+really1.4.6-3 [109 kB]Get:6 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libpython2.7 armhf 2.7.16-2+deb10u1 [873 kB]Get:7 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf python-ldb armhf 2:1.5.1+really1.4.6-3 [33.1 kB]Get:8 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf python-tdb armhf 1.3.16-2+b1 [16.0 kB]Get:9 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libavahi-client3 armhf 0.7-4+b1 [54.0 kB]Get:10 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libcups2 armhf 2.2.10-6+deb10u3 [287 kB]Get:11 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libjansson4 armhf 2.12-1 [34.6 kB]Get:12 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf python-talloc armhf 2.1.14-2 [12.3 kB]Get:13 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf samba-libs armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [4,700 kB]Get:14 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf python-samba armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [1,794 kB]Get:15 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf samba-common all 2:4.9.5+dfsg-5+deb10u1+rpi1 [170 kB]Get:16 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf samba-common-bin armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [570 kB]Get:17 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf tdb-tools armhf 1.3.16-2+b1 [26.9 kB]Get:18 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf samba armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [1,010 kB]Get:19 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf attr armhf 1:2.4.48-4 [39.4 kB]Get:20 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libibverbs1 armhf 22.1-1 [43.5 kB]Get:21 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf ibverbs-providers armhf 22.1-1 [20.2 kB]Get:22 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libboost-atomic1.67.0 armhf 1.67.0-13+deb10u1 [226 kB]Get:23 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libboost-iostreams1.67.0 armhf 1.67.0-13+deb10u1 [245 kB]Get:24 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libboost-regex1.67.0 armhf 1.67.0-13+deb10u1 [430 kB]Get:25 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libboost-system1.67.0 armhf 1.67.0-13+deb10u1 [229 kB]Get:26 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libboost-thread1.67.0 armhf 1.67.0-13+deb10u1 [260 kB]Get:27 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libnspr4 armhf 2:4.20-1 [89.6 kB]Get:28 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libnss3 armhf 2:3.42.1-1+deb10u3 [944 kB]Get:29 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf librados2 armhf 12.2.11+dfsg1-2.1+rpi1 [2,337 kB]Get:30 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libcephfs2 armhf 12.2.11+dfsg1-2.1+rpi1 [380 kB]Get:31 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libglusterfs0 armhf 5.5-3 [2,724 kB]Get:32 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libgfxdr0 armhf 5.5-3 [2,488 kB]Get:33 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libgfrpc0 armhf 5.5-3 [2,506 kB]Get:34 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libgfapi0 armhf 5.5-3 [2,524 kB]Get:35 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libgpgme11 armhf 1.12.0-6 [230 kB]Get:36 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf python-gpg armhf 1.12.0-6 [275 kB]Get:37 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf samba-dsdb-modules armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [345 kB]Get:38 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf samba-vfs-modules armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [400 kB]Fetched 26.8 MB in 36s (739 kB/s)Extracting templates from packages: 100%Preconfiguring packages ...Selecting previously unselected package python-dnspython.(Reading database ... 41657 files and directories currently installed.)Preparing to unpack .../00-python-dnspython_1.16.0-1_all.deb ...Unpacking python-dnspython (1.16.0-1) ...Selecting previously unselected package python-crypto.Preparing to unpack .../01-python-crypto_2.6.1-9+b1_armhf.deb ...Unpacking python-crypto (2.6.1-9+b1) ...Selecting previously unselected package libtdb1:armhf.Preparing to unpack .../02-libtdb1_1.3.16-2+b1_armhf.deb ...Unpacking libtdb1:armhf (1.3.16-2+b1) ...Selecting previously unselected package libtevent0:armhf.Preparing to unpack .../03-libtevent0_0.9.37-1_armhf.deb ...Unpacking libtevent0:armhf (0.9.37-1) ...Selecting previously unselected package libldb1:armhf.Preparing to unpack .../04-libldb1_2%3a1.5.1+really1.4.6-3_armhf.deb ...Unpacking libldb1:armhf (2:1.5.1+really1.4.6-3) ...Selecting previously unselected package libpython2.7:armhf.Preparing to unpack .../05-libpython2.7_2.7.16-2+deb10u1_armhf.deb ...Unpacking libpython2.7:armhf (2.7.16-2+deb10u1) ...Selecting previously unselected package python-ldb.Preparing to unpack .../06-python-ldb_2%3a1.5.1+really1.4.6-3_armhf.deb ...Unpacking python-ldb (2:1.5.1+really1.4.6-3) ...Selecting previously unselected package python-tdb.Preparing to unpack .../07-python-tdb_1.3.16-2+b1_armhf.deb ...Unpacking python-tdb (1.3.16-2+b1) ...Selecting previously unselected package libavahi-client3:armhf.Preparing to unpack .../08-libavahi-client3_0.7-4+b1_armhf.deb ...Unpacking libavahi-client3:armhf (0.7-4+b1) ...Selecting previously unselected package libcups2:armhf.Preparing to unpack .../09-libcups2_2.2.10-6+deb10u3_armhf.deb ...Unpacking libcups2:armhf (2.2.10-6+deb10u3) ...Selecting previously unselected package libjansson4:armhf.Preparing to unpack .../10-libjansson4_2.12-1_armhf.deb ...Unpacking libjansson4:armhf (2.12-1) ...Selecting previously unselected package python-talloc:armhf.Preparing to unpack .../11-python-talloc_2.1.14-2_armhf.deb ...Unpacking python-talloc:armhf (2.1.14-2) ...Selecting previously unselected package samba-libs:armhf.Preparing to unpack .../12-samba-libs_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...Unpacking samba-libs:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Selecting previously unselected package python-samba.Preparing to unpack .../13-python-samba_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...Unpacking python-samba (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Selecting previously unselected package samba-common.Preparing to unpack .../14-samba-common_2%3a4.9.5+dfsg-5+deb10u1+rpi1_all.deb ...Unpacking samba-common (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Selecting previously unselected package samba-common-bin.Preparing to unpack .../15-samba-common-bin_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...Unpacking samba-common-bin (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Selecting previously unselected package tdb-tools.Preparing to unpack .../16-tdb-tools_1.3.16-2+b1_armhf.deb ...Unpacking tdb-tools (1.3.16-2+b1) ...Selecting previously unselected package samba.Preparing to unpack .../17-samba_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...Unpacking samba (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Selecting previously unselected package attr.Preparing to unpack .../18-attr_1%3a2.4.48-4_armhf.deb ...Unpacking attr (1:2.4.48-4) ...Selecting previously unselected package libibverbs1:armhf.Preparing to unpack .../19-libibverbs1_22.1-1_armhf.deb ...Unpacking libibverbs1:armhf (22.1-1) ...Selecting previously unselected package ibverbs-providers:armhf.Preparing to unpack .../20-ibverbs-providers_22.1-1_armhf.deb ...Unpacking ibverbs-providers:armhf (22.1-1) ...Selecting previously unselected package libboost-atomic1.67.0:armhf.Preparing to unpack .../21-libboost-atomic1.67.0_1.67.0-13+deb10u1_armhf.deb ...Unpacking libboost-atomic1.67.0:armhf (1.67.0-13+deb10u1) ...Selecting previously unselected package libboost-iostreams1.67.0:armhf.Preparing to unpack .../22-libboost-iostreams1.67.0_1.67.0-13+deb10u1_armhf.deb ...Unpacking libboost-iostreams1.67.0:armhf (1.67.0-13+deb10u1) ...Selecting previously unselected package libboost-regex1.67.0:armhf.Preparing to unpack .../23-libboost-regex1.67.0_1.67.0-13+deb10u1_armhf.deb ...Unpacking libboost-regex1.67.0:armhf (1.67.0-13+deb10u1) ...Selecting previously unselected package libboost-system1.67.0:armhf.Preparing to unpack .../24-libboost-system1.67.0_1.67.0-13+deb10u1_armhf.deb ...Unpacking libboost-system1.67.0:armhf (1.67.0-13+deb10u1) ...Selecting previously unselected package libboost-thread1.67.0:armhf.Preparing to unpack .../25-libboost-thread1.67.0_1.67.0-13+deb10u1_armhf.deb ...Unpacking libboost-thread1.67.0:armhf (1.67.0-13+deb10u1) ...Selecting previously unselected package libnspr4:armhf.Preparing to unpack .../26-libnspr4_2%3a4.20-1_armhf.deb ...Unpacking libnspr4:armhf (2:4.20-1) ...Selecting previously unselected package libnss3:armhf.Preparing to unpack .../27-libnss3_2%3a3.42.1-1+deb10u3_armhf.deb ...Unpacking libnss3:armhf (2:3.42.1-1+deb10u3) ...Selecting previously unselected package librados2:armhf.Preparing to unpack .../28-librados2_12.2.11+dfsg1-2.1+rpi1_armhf.deb ...Unpacking librados2:armhf (12.2.11+dfsg1-2.1+rpi1) ...Selecting previously unselected package libcephfs2:armhf.Preparing to unpack .../29-libcephfs2_12.2.11+dfsg1-2.1+rpi1_armhf.deb ...Unpacking libcephfs2:armhf (12.2.11+dfsg1-2.1+rpi1) ...Selecting previously unselected package libglusterfs0:armhf.Preparing to unpack .../30-libglusterfs0_5.5-3_armhf.deb ...Unpacking libglusterfs0:armhf (5.5-3) ...Selecting previously unselected package libgfxdr0:armhf.Preparing to unpack .../31-libgfxdr0_5.5-3_armhf.deb ...Unpacking libgfxdr0:armhf (5.5-3) ...Selecting previously unselected package libgfrpc0:armhf.Preparing to unpack .../32-libgfrpc0_5.5-3_armhf.deb ...Unpacking libgfrpc0:armhf (5.5-3) ...Selecting previously unselected package libgfapi0:armhf.Preparing to unpack .../33-libgfapi0_5.5-3_armhf.deb ...Unpacking libgfapi0:armhf (5.5-3) ...Selecting previously unselected package libgpgme11:armhf.Preparing to unpack .../34-libgpgme11_1.12.0-6_armhf.deb ...Unpacking libgpgme11:armhf (1.12.0-6) ...Selecting previously unselected package python-gpg.Preparing to unpack .../35-python-gpg_1.12.0-6_armhf.deb ...Unpacking python-gpg (1.12.0-6) ...Selecting previously unselected package samba-dsdb-modules:armhf.Preparing to unpack .../36-samba-dsdb-modules_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...Unpacking samba-dsdb-modules:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Selecting previously unselected package samba-vfs-modules:armhf.Preparing to unpack .../37-samba-vfs-modules_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...Unpacking samba-vfs-modules:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Setting up python-crypto (2.6.1-9+b1) ...Setting up libibverbs1:armhf (22.1-1) ...Setting up libpython2.7:armhf (2.7.16-2+deb10u1) ...Setting up libboost-regex1.67.0:armhf (1.67.0-13+deb10u1) ...Setting up ibverbs-providers:armhf (22.1-1) ...Setting up attr (1:2.4.48-4) ...Setting up libtdb1:armhf (1.3.16-2+b1) ...Setting up samba-common (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Creating config file /etc/samba/smb.conf with new versionSetting up libgpgme11:armhf (1.12.0-6) ...Setting up libjansson4:armhf (2.12-1) ...Setting up libglusterfs0:armhf (5.5-3) ...Setting up libtevent0:armhf (0.9.37-1) ...Setting up libnspr4:armhf (2:4.20-1) ...Setting up tdb-tools (1.3.16-2+b1) ...update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto modeSetting up libboost-iostreams1.67.0:armhf (1.67.0-13+deb10u1) ...Setting up python-tdb (1.3.16-2+b1) ...Setting up libboost-atomic1.67.0:armhf (1.67.0-13+deb10u1) ...Setting up python-dnspython (1.16.0-1) ...Setting up libboost-system1.67.0:armhf (1.67.0-13+deb10u1) ...Setting up python-gpg (1.12.0-6) ...Setting up python-talloc:armhf (2.1.14-2) ...Setting up libavahi-client3:armhf (0.7-4+b1) ...Setting up libgfxdr0:armhf (5.5-3) ...Setting up libldb1:armhf (2:1.5.1+really1.4.6-3) ...Setting up libboost-thread1.67.0:armhf (1.67.0-13+deb10u1) ...Setting up libnss3:armhf (2:3.42.1-1+deb10u3) ...Setting up python-ldb (2:1.5.1+really1.4.6-3) ...Setting up libcups2:armhf (2.2.10-6+deb10u3) ...Setting up libgfrpc0:armhf (5.5-3) ...Setting up librados2:armhf (12.2.11+dfsg1-2.1+rpi1) ...Setting up samba-libs:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Setting up libcephfs2:armhf (12.2.11+dfsg1-2.1+rpi1) ...Setting up libgfapi0:armhf (5.5-3) ...Setting up samba-dsdb-modules:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Setting up python-samba (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Setting up samba-vfs-modules:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Setting up samba-common-bin (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Checking smb.conf with testparmLoad smb config files from /etc/samba/smb.confLoaded services file OK.Server role: ROLE_STANDALONEDoneSetting up samba (2:4.9.5+dfsg-5+deb10u1+rpi1) ...Adding group `sambashare' (GID 116) ...Done.Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.servicePlease ignore the following error about deb-systemd-helper not finding those services.(samba-ad-dc.service masked)Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked./usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directoryCreated symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.Processing triggers for systemd (241-7~deb10u4+rpi1) ...Processing triggers for man-db (2.8.5-2) ...Processing triggers for libc-bin (2.28-10+rpi1) ...

It's worth noting that halfway through, a screen popped up offering to change my settings to allow my DHCP server to input the address of my network's WINS server.

I'm pretty sure I don't have any of that, but I let it happen.

The next step for this site is to create the directory from which I will share content and set its permissions to "1777". This would give everyone full access.

I don't think this is what you want, and my directory already exists anyway, so I'm not sure what to do in this situation. What I'm going to do is ignore that part of the instructions, try sharing my disk, and see later if I have permission issues with that.

Configure Samba

There is a text file that contains the Samba configuration and allows us to define a new share. Here is the command I used to edit the file:

pi@frambuesapi:~ $ sudonano /etc/samba/smb.conf

Then I add the following lines at the end of the file:

[compartir]Comentar = NAS FilesPath = /mnt/nasBrowseable = yesWriteable = noonly guest = nocreate mask = 0777directory mask = 0777Public = yesGuest ok = yes

Then it looks like I need to create a user and start Samba.

Create a user and start Samba

I'll start by doing the same thing they do on the site:

pi@raspberry:/mnt/nas $ sudosmbpassword-ApiNew SMB password: xxxx Re-enter new SMB password: xxxx Pi user added.pi@raspberry:/mnt/nas $ sudo/etc/init.d/samba restartsudo: /etc/init.d/samba: command not found

Hmm, that last one is interesting. Do I need a reset?

We will try!

Hmm, no, that didn't help either.

Let's see if we can access the share...

Yes I Can. I'm logging in with my username pi.

The share is located at \192.168.50.44\share

And I can transfer at about 2MB/sec.

I've seen worse.

Then…. I really don't want to login to the share with my RasPi's admin password. I need to create another user and give him access to the share.

Also, I need to change the name of [share].

Hmm, more bad news: I'm experiencing a terminal slowdown when transferring this file. Interesting….

Here's how I added the user:

pi@raspberry:/mnt/nas $ sudoadd user smuserAdding user `smber'... Added new group `smber' (1001)... Added new user `smber' (1001) with group `smber'... Create home directory `/home/smber' .. Copy files from `/etc/skel' ...New password: Repeat new password: No password specified New password: Repeat new password: Password: Password updated successfully Change password information User for smbuser Type new value or press ENTER for Name Full standard [ ]: Room number []: Work phone []: Home phone []: Other []: Is the information correct? [Y/n]

I used a "guest" password as I couldn't just leave it blank.

And... I'm not sure I want to go much further here. I'm not sure I want to make the share writable.

I think I can process that now.

Configure a scan folder

  1. Create a folder called "Scans" on the NAS.
pi@frambuesapi:~ $ CD/mnt/naspi@raspberry:/mnt/nas $ sudo mkdirsweeps
  1. Change directory permissions to allow user smuser to write to it
pi@raspberry:/mnt/nas $ sudo chownsmuser: scanschown: property change 'scans': operation not allowed

This may not be possible with an exFAT formatted hard drive.

Let's try adding a new writable share for smbuser.

I added this to /etc/samba/smb.conf:

[Escaneos]Path = /mnt/nas/ScansBrowseable = yesWriteable = yesonly guest = nocreate mask = 0777directory mask = 0777Public = yesGuest ok = yes

Then I restart the Rasp Pi.

But unfortunately I am unable to create a Windows file when I login as smuser.

Working from a websiteHere.

The first thing I'm trying to do is add a read-only field, so it looks like this:

[Escaneos]Path = /mnt/nas/ScansBrowseable = yesWriteable = yesonly guest = nocreate mask = 0777directory mask = 0777Public = yesGuest ok = yesread only = no

No, it's not possible.

OK, what's next?

I would really like to fix the exFAT user permissions issue.That's itsays it should do the trick.

Ok... that doesn't solve the problem right away. can i eat now

No, not him

Okay, I think we want to mount the drive as a smbuser so it's writable.

Okay, usmbus is uid 1001.

My fstab now looks like this:

proc /proc proc defaults 0 0PARTUUID=738a4d67-01 /boot vfat defaults 0 2PARTUUID=738a4d67-02 / ext4 defaults,noatime 0 1PARTUUID=4aaed96b-01 /mnt/nas vfat defaults,auto,users,rw,nofail 0 0PARTUUID=1de59ff2 -01 /mnt/torrents exfat defaults,auto,users,rw,nofail,uid=1001,gid=1001,umask=022 0 0# a paging file is not a paging partition, there is no line here# use file swap dphys-swap[enable|disable]forThat's it

I ended up using force user=root in the smb.conf file.

It looks like a defeat.

Anyway, now I need a document management system.

I'm going withwithout paper.

I start like this:

First I had to install git and for that I had to do an apt-get update.

So I did both...

pi@frambuesapi:~ $ sudoapt-getTo installgitReading package lists... DoneBuilding a dependency treeReading status information... DoneThe following package was automatically installed and is no longer needed: rpi-eeprom-imagesUse 'sudo apt autoremove' to remove it. The following additional packages will be installed: git-man libcurl3-gnutls liberor-perlRecommended packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: git git-man libcurl3-gnutls liberr-perl0 updated, 4 newly installed , 0 to delete and 17 not updated. You need compressed files of 6137 KB. After this process, another 32.9 MB of disk space will be used. Do you want to continue? [Y/n]Get:1 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf libcurl3-gnutls armhf 7.64.0-4+deb10u1 [292 kB]Get:2 http://mirror .sjc02.svwh.net/raspbian/raspbian buster/main armhf liberror-perl todo 0.17027-2 [30.9 kB]Get:3 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf git -man all 1:2.20.1-2+deb10u3 [1620 kB]Err:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf git armhf 1:2.20.1-2+deb10u3 connection error [IP : 93.93 . 128193 80] 1943 kB retrieved in 2 min 34 sec (12.7 kB/s) E: Unable to connect http://raspbian.raspberrypi.org/raspbian/pool/main/g/git/git_2.20.1 - 2 +deb10u3_armhf . deb failed [IP: 93.93.128.193 80]E: Unable to get some files, maybe run apt-get update or try --fix-missing?pi@frambuesapi:~ $ sudoapt-get updateGet1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB] Get2 https://download.docker.com/linux/raspbian buster InRelease [29,7 kB] Get3 http ://archive .raspberrypi.org/debian buster InRelease [32,6 kB] Retrieve4 http://archive.raspberrypi.org/debian buster/main armhf Packages [331 kB] Retrieve5 http://raspbian.raspberrypi.org/raspbian buster /main armhf packages [13,0 MB]Get: 6 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf packages [58,7 kB]Obter 13,5 MB em 2min 54s (77,4 kB/s)Ler listas de pacotes... Concluídopi@frambuesapi:~ $ sudoapt-getTo installgitReading package lists... DoneBuilding a dependency treeReading status information... DoneThe following package was automatically installed and is no longer needed: rpi-eeprom-imagesUse 'sudo apt autoremove' to remove it. The following additional packages will be installed: git-man libcurl3-gnutls liberor-perlRecommended packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: git git-man libcurl3-gnutls liberr-perl0 updated, 4 newly installed , 0 to delete and 29 not updated. You will need 4194kB/6137kB of compressed files. After this process, another 32.9 MB of disk space will be used. Do you want to continue? [Y/n]Get:1 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf git armhf 1:2.20.1-2+deb10u3 [4194 kB] 4194 kB retrieved in 18s (233 kB /s)Select the previously unselected package libcurl3-gnutls:armhf.(Reading the database... 43138 files and directories currently installed.)Prepare to unpack.../libcurl3-gnutls_7.64.0-4+deb10u1_armhf .deb .. .Unpack libcurl3 -gnutls:armhf (7.64.0-4+deb10u1) ...Selecting previously unselected package liberror-perl.Preparing to unpack .../liberror-perl_0.17027-2_all.deb . .Unpacking libererror-perl ( 0.17027 -2) ...Select the previously unselected package git-man. Prepare to unzip .../git-man_1%3a2.20.1-2+deb10u3_all.deb ...unzip git-man (1 :2.20.1-2 + deb10u3 ) ...Select previously unselected package git . Prepare to unpack .../git_1%3a2.20.1-2+deb10u3_armhf.deb ...unpack git (1:2.20.1- 2+deb10u3) ...configure ndo libcurl3 -gnutls:armhf (7.64.0 -4+deb10u1) ...configure lib error-perl (0.17027-2) ...configure git-man (1:2.20.1-2+deb10u3) ...configure g up git (1:2.20.1- 2+deb10u3) ...render triggers for man-db (2.8.5-2) ...render trigger for libc-bin (2.28-10+rpi1) ...
pi@frambuesapi:~ $ Clone do git https://github.com/the-paperless-project/paperless.git

This creates a "paperless" folder where I change the working directory.

So I try to follow those instructions.Here.

In step 3 I consider having docker already installed and docker-compose installed.

Fortunately, the two basic files I need to create and customize are in the paperless folder.

So I take your advice.

I need to modify docker-compose.yml to my liking. The things I like are:

  • Restart changed forever: Restart: always
  • Leave the web server port as it was: 8000
  • The health check sounds interesting, but I'll leave it at that.

Now we come to something actionable: volume.

There is a data and media folder and a consumption folder. What are you doing? The website says the only thing I need to change is the consumer directory: I'm going to set it to /mnt/nas/Scans. Apparently I had to do this in two places: on the web server and on the consumer.

So that's what I did. I then saved the file as docker-compose.yml.

Then in docker-compose.env

I didn't change anything there.

Now I do this:

docker-compose up -d

And ha! I don't have docker-compose installed. I think I was wrong.

So I did this:

pi@raspberrypi:~/sem role $ sudoreis-EU "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-p.syour name -S)-p.syour name -Metro)" /usr/local/bin/docker-compose% Total % Received % Xferd Average Speed ​​Time Time Time Current Download Rate Total Speed ​​Consumed Remaining100 9 100 9 0 0 31 0 --:--:-- --:--:-- --:-- :-- 31pi@raspberrypi:~/sem role $ sudo chmod+x /usr/local/bin/docker-composepi@raspberrypi:~/sem role $ sudo-ln -S/usr/local/bin/docker-compose /usr/bin/docker-compose

Yeah... that didn't work. The download specifically.

Turns out Raspbery and Pi don't have a ready-made version of Compose on the official website. so i try thisHere

So I try:

sudo pip3 -v install docker-compose

And it does things for a while... Okay, it doesn't look like it failed anywhere.

It's time to try the Docker command again.

It works!

Work a little...

OK, what's the next step?

docker-compose run --rm webserver create superuser

It makes me enter a password, so I do that.

I can now access the web interface on port 8000 @ http://192.168.50.44:8000

Well what do I do with it?

It doesn't specify what formats it can write. My scanner can do JPEG.

Okay, I have a jpeg in there, I had to make some changes to get the consuming directory - my source and destination have changed. After repairing my docker compose file and restarting, I was able to bring up a shell for paperless consumer docker and a CD to ./consume and see the expected files.

I even saw a piece of paper running across the top

But I don't see any documents.

I look in /usr/src/paperless/media/documents/originals and see a PDF. You might think that was it.

But it's neither biased nor anything. It doesn't seem to be complete.

I wonder if my files are blocking the script.

It could be the JPEG. I deleted everything but that, and I still got kicked out of the consumer docker.

tesseract is always the last thing to run.

Looks like it's over. There is a new .jpg file in the original folder. But no, it's not fixed. And somehow the old pdf reappeared.

phew All my projects end up like this.

resources

FAQs

What does a CanaKit Raspberry Pi 4 do? ›

This kit includes everything you need except a monitor, keyboard, and mouse for a functional computer. It includes wireless to connect to the internet. This kit includes heatsinks and a fan to cool the processor board. The Raspberry pi 4 is a great way to learn electronics and programming.

Does pi4 need active cooling? ›

Active cooling is definitely more effective for lowering the temperature on your Raspberry Pi 4, especially if you're overclocking the board. While active cooling isn't always necessary, it's a good safety measure to help ensure that your Pi continues to work properly.

Does Raspberry Pi 4 need cooling fan? ›

You will need a fan if you're regularly using the Pi for more extended periods. Regardless of what tasks you perform with the Raspberry Pi 4 or for how long you're usually using it; it is still best to install a fan considering the tiny board's upgraded specs.

Where to put Raspberry Pi 4 heatsinks? ›

The most important location to attach a heatsink is over the processor (sometimes referred to as the SoC for Raspberry Pis), but you can essentially place one anywhere that it won't interfere with the Pi's connectors.

Is Raspberry Pi 4 discontinued? ›

RS Group has stopped the manufacture of Raspberry Pi 4, Raspberry Pi 3 and the Raspberry Pi Pico.

Can Raspberry Pi 4 install Wine? ›

The installation of Wine on Raspberry Pi is quite simple, as mentioned in the above guidelines, it requires only an i386 architecture and an installation command. After installing, you can download any Windows application and run it on the terminal using the “wine” command with the application name.

Is 2.4 amps enough for Raspberry Pi 4? ›

Because the new SoC needs more power, the Raspberry Pi 4 B charges over USB Type-C instead of micro USB. It also requires a power adapter that can deliver at least 3 amps of power and 5 volts, though you may be able to get away with 2.5 amps if you don't attach many peripherals to the USB ports.

How many cameras can you put on a Raspberry Pi 4? ›

One adapter board can connect FOUR cameras on a single Raspberry Pi board, and includes support for the High-Quality Camera!

Does the CanaKit Raspberry Pi 4 have WIFI? ›

CanaKit - Raspberry Pi 4 Starter MAX Kit 4GB RAM

A: Yes it is. A: It has a built in wifi. A: It has both Wi-Fi and wired ether net options. Some cases that are made of metal with hinder the Wi-Fi performance but this case is entirely plastic and does not obstruct the signal.

Does CanaKit Raspberry Pi 4 have Bluetooth? ›

This product's key features include a high-performance 64-bit quad-core processor, dual-display output via two Micro HDMI ports, up to 4K resolution, hardware video decoding at up to 4Kp60, up to 4GB of RAM, dual-band 2.4/5.0 GHz wireless LAN, Bluetooth 5.0, Gigabit Ethernet, USB 3.0, and PoE capability.

What does a CanaKit PiSwitch do? ›

The CanaKit PiSwitch provides a premium quality and reliable power switch to the Raspberry Pi! It comes in a sleek high-gloss finish and contains a built-in LED indicator. It is made of high-quality materials to minimize electrical resistance.

What temp is too hot for Pi4? ›

To prevent overheating, all Raspberry Pi boards begin to throttle the processor when the temperature reaches 80°C and even further when it reaches the max temp of 85°C.

How long will a Raspberry Pi 4 last? ›

The Raspberry Pi lifespan is said to be around 7-10 years. The usual reason for major damage is due to a user's lack of care with the device. Users don't protect the device from power breakdowns and SD card failures, or it is kept in a rough environment.

Can a Raspberry Pi 4 overheat? ›

A reported issue with Raspberry Pi can be overheating, with a resulting loss of performance, when the board is exposed to high temperatures. All electrical devices are qualified to a specific operating temperature range at which the device will work effectively.

What are the disadvantages of Raspberry Pi 4? ›

It does not replace the computer, and the processor is not as fast. It is a time consuming to download and install software i.e.; unable to do any complex multitasking. Not compatible with the other operating systems such as Windows.

Can you leave a Raspberry Pi running 24 7? ›

Yes, Raspberry Pi can handle 24/7 run time when used with proper linear power supply which must be regulated through DC adapter or any good quality battery supply. Components or other electronics parts won't get fried until and unless you provide wrong power supply or more voltage than recommended.

Can Raspberry Pi 4 Replace PC? ›

With programming, everything is quite good. Of course, the Raspberry Pi can't replace most professional desktops, but in general, it can run almost all programming languages and frameworks, from Python to Fortran.

Do heatsinks need airflow? ›

The heat sink has a thermal conductor that carries heat away from the CPU into fins that provide a large surface area for the heat to dissipate throughout the rest of the computer, thus cooling both the heat sink and processor. Both a heat sink and a radiator require airflow and, therefore, both have fans built in.

Do heatsinks help RAM? ›

But when it comes to RAM and performance, heat spreaders barely matter. These days they're largely for show. Memory modules don't get hot enough for their heatsinks to make much of a difference.

How do I connect an external fan to my Raspberry Pi? ›

Connect the fan to the Pi

Connect the fan's red wire to GPIO pin 4 (5V) and the black wire to GPIO pin 6 (ground). The fan should receive power automatically when the Pi is booted. If you'd like your fan to only run when needed (based on Pi temperature), check out our Raspberry Pi fan controller guide.

How do I connect my Raspberry Pi GPIO 4 fan? ›

To install the fan, pop off the top of the Pi case, line up the Case fan inside the top of the case, and push it in until the tabs click into place. Plug the red, black, and blue wires into the Pi's GPIO header like it shows on the side of the box.

Where do I connect 4pin fan? ›

If you want to use the PWM function then the 4 Pin fan must be connected to a 4 Pin header on the motherboard. If you connect the 4 Pin fan connector to a 3 Pin header, then the fan will run at maximum RPM.

Videos

1. CanaKit Starter Kit for the Raspberry Pi 4 4GB Setup with Heat Sink+Fan install & Test!
(Wagner's TechTalk)
2. CanaKit Raspberry Pi 4 with 8GB RAM Uboxing and Setup (including fan)
(Wagner's TechTalk)
3. Raspberry Pi 4 NEEDS A FAN - How to Install CanaKit Heatsink and Fan
(TechHut)
4. Canakit Raspberry Pi 4 8GB Extreme Kit [Aluminum case] : Setup Guide
(Wagner's TechTalk)
5. How to Install Heatsinks on the Raspberry Pi 4 (CanaKit) + Temperature Performance Comparison
(Edje Electronics)
6. Raspberry Pi 4: Unboxing and initial set-up
(Ten Minute Tech)
Top Articles
Latest Posts
Article information

Author: Moshe Kshlerin

Last Updated: 12/20/2022

Views: 6185

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.