In this Raspberry Pi Samba tutorial, we will be showing you how you can share directories from your Raspberry Pi using the SMB/CIFS protocols.
Category: Raspberry Pi
A VPN (Virtual Private Network) protects your privacy by routing all your Internet traffic through an encrypted server that your ISP (or hackers) can’t see. Setting up and using a log-free VPN service from your PC desktop is straightforward enough, but other devices in your home such as your game console and set-top box don’t let you install VPN software.
One solution is to buy a router that can connect directly to a VPN service, protecting all the traffic on your home network a single stroke. But it could be cheaper (and simpler) just to route all your traffic through a Raspberry Pi that remains connected to the VPN at all times.
In this tutorial, we will show you how you can boot your Raspberry Pi using a USB port instead of the micro-SD card slot!
Please note: This method of booting is experimental and is not guaranteed to work with all USB mass storage devices.
Source: How to boot your Raspberry Pi from a USB mass storage device (ModMyPi)
I almost always setup a samba share on every Raspberry Pi I install, it allows me to easily share files and work on my projects – so I thought I had better write down how I do it.
Source: Setup Raspberry Pi Samba share (Stuff about code)
We originally set out to do this because we were having problems getting an older model laser printer, specifically a Konica Minolta PP1350W, to work with MacOS High Sierra (10.13). With previous versions of MacOS we’d been able to connect the printer directly to the computer, and with some fiddling with drivers and other software, get it to work. But newer versions of MacOS seem to be far less tolerant of this, and we had a spare Raspberry Pi, so the idea came to us to use the Raspberry Pi as a bridge between the printer and any computers on the local network from which we wanted to be able to print. The bonus is that the printer is no longer tethered to a single machine, but instead can potentially be used by any computer on the local network.
You do not need to have a Raspberry Pi to make this work – any computer that can run Linux will do. And of course the Raspberry Pi or other Linux computer can be used for other purposes besides this. We do not guarantee that this technique will work for every older printer out there, but this will work with a surprising number of them.
Source: Convert an older model USB printer to a networked printer using a Raspberry Pi or other Linux-based computer — also works well for making an older printer compatible with a newer version of MacOS – Two “Sort Of” Tech Guys
Looking to take your Python code from the world of command lines and into the convenience of a GUI? Have a Raspberry Pi with a touchscreen that’s going to waste because you don’t have the time to learn a GUI SDK? Look no further, you’ve found your GUI package.
Source: PySimpleGUI (Github)
Note: Scroll down the page for instructions and sample usage. This really does seem like an easy way for Python users to add GUI interfaces to their Python scripts. The author has said in a Reddit post that “It’s based only on tkinter. Zero package dependencies. And it’s a single .py file. That means not much can go wrong.” And that it “Works in Windows, Linux, Mac. Running on my Pi board that has 3.4 installed on it.”
Send email using SSMTP with the command line on a Raspberry Pi. Step-by-Step Illustrated guide to sending emails through the command line in linux
Source: Send Email from Raspberry Pi Command Line (AlgisSalys.com)
The technique shown in this article, which allows you to send email from the command line or a bash script, uses Gmail to send the mail. It should also work on Debian or Ubuntu based systems.
USB boot is available on the Raspberry Pi 3B, 3B+, 3A+ and Raspberry Pi 2B v1.2 models only.
This tutorial explains how to boot your Raspberry Pi from a USB mass storage device such as a flash drive or USB hard disk. Be warned that this feature is experimental and does not work with all USB mass storage devices. See this blog post from Gordon Hollingworth for an explanation of why some USB mass storage devices don’t work, as well as for some background information.
If you’ve ever built a Pi for a kiosk, installation or information display, you’ll find Adafruit’s read-only Pi script invaluable. This script disables all the write-to-SD-card functions, meaning that you can pull the plug without any risk of data loss or corruption. The Adafruit script forces Raspbian to store all its temporary data in memory, […]
Raspberry Pi Pushbutton Shutdown/Startup
The attached script will install shutdown and startup capability using a SPST NO momentary pushbutton
switch connected to GPIO header pins 5 and 6. Pressing the button on a running system will initiate
a graceful shutdown (shutdown -h now). Once shut down, pressing the button will restart the system.
1. Copy install and gpio-shutdown.dtbo to the Raspberry Pi.
2. Make the install script executable:
$ chmod +x install
3. Run the install script:
$ sudo ./install
For additional info, see:
The script can be downloaded from RonR’s original post or directly from https://www.dslreports.com/r0/download/2324182~6a03744946c51bfa4876b6ecd8d4528c/PushButton.zip