11

I did a little digging on this and tracked down the purpose for most of the user groups: pi User-specific group. A group is automatically created for each new user; you can ignore this. adm Allows access to log files in /var/log and using xconsole dialout Allows access to serial ports/modem reconfiguration, etc. cdrom Uncreatively, ...


8

This is, as mentioned, the contents of the /etc/motd file. The actual file shown (/run/motd.dynamic) is constructed using the scripts in /etc/update-motd.d and the file /etc/motd. So for static content you can modify /etc/motd but if you want to generate dynamic content then you should add scripts to the /etc/update-motd.d directory.


6

Easiest question today! Answer: Do nothing! :) The Raspberry Pi is not sleeping... it doesn't have a sleep state (as @goldilocks states in his answer). PuTTY has simply terminated the session due to inactivity. Your RPi and any services (your webserver for example) will continue to run, and respond to http requests. And wrt PuTTY, while this is not a ...


6

Info: To have a simple openvpn server installation for reference look at Simple openVPN with static keys. The first idea seeing the picture was that you confused WAN- and LAN-address. But lets look how I understand the setup so far with this example. I assume wifi and wired ethernet are bridged on the router (having the same ip address range). ...


5

I don't like answers that simply say install a clean image as if the OP wasn't aware of that possibility and it also disregards the work that the OP has already done on their installation. So to answer your question directly, here's how to remove the GUI: sudo apt-get remove --purge x11-common sudo apt-get autoremove The first line invalidates a lot of ...


4

As you're using Lite, this is likely a console font issue. You'll need to sudo dpkg-reconfigure console-setup then select UTF-8, then for Character Set, choose # Latin1 and Latin5 - western Europe and Turkic languages You may need to reboot to see the effects of this change. The Linux console still pretty much thinks there are only 256 places in a ...


4

Copy it from /etc/skel/.profile. You'll also find .bashrc in /etc/skel


4

First some general information to get an idea what to do. As you already have found there are in general two ways to configure a Virtual Private Network: a bridged setup on OSI Layer 2 and a routed setup on OSI Layer 3. Nowadays we have mainly two VPN programs that are mostly used: the modern and up comming Wireguard and meanwhile classic OpenVPN. I would ...


3

Use gphoto2 to trigger continuous periodic capture This solution uses gphoto2 to remote control the DSLR and converts a Raspberry Pi to an intervalometer. It sets up the continuous capture as a systemd service so that your camera will start shooting as soon as the Raspberry Pi is ready. Download Raspbian lite and write it to an SD card, e.g. with Etcher. ...


3

Based on the information I can find online (example here), I don't believe the ARM Cortex-A7 used in the Raspberry Pi supports Huge Pages in the L1 TLB, so it most likely won't work properly due to the Hardware itself. If someone finds a more definitive answer, please let us know!


3

The problem got solved by using the following commands: sudo apt-get install ufw sudo ufw allow 22 sudo ufw allow 8090 sudo ufw allow 8092 sudo ufw enable sudo reboot And everything was just fine. Also there was just also a little issue with the web app's splash page. I thank everyone for all recommendations and answers! I will upvote what I can! Thanks ...


3

To do this you need the IP address of your Pi on your local network. You can get that with ifconfig on the command line. Let's say, for example, that it was 192.168.1.42. Then you want to forward port 22 from your router to your Pi. (Port 22 is the standard port for ssh.) In the input form that you have, it looks like that will require a row that looks ...


3

You have discovered a "feature" of the Raspbian Lite OS. The way Raspbian Lite differs from Raspbian is it has no GUI, (Graphical User Interface). So when you try to VNC into the Pi, you are going to get no GUI, as that is exactly what you would get if you connected the Pi to a monitor using HDMI. However, I can confirm that using SSH will work normally. ...


3

You can find the config in ~/.config/mimeapps.list This how it looks for me after editing it: [Default Applications] inode/directory=pcmanfm.desktop audio/mpeg=userapp-mocp-WXKY0Y.desktop video/mp4=userapp-omxplayer.desktop [Added Associations] inode/directory=pcmanfm.desktop; image/jpeg=chromium-browser.desktop; audio/mpeg=userapp-mocp-WXKY0Y.desktop; ...


3

Being two years old, that script has issues such as tying to an older version of OpenCV. Rather than downloading from Itseez's GitHub repo you're better off installing via the Raspbian package repositories. sudo apt update sudo apt install python-opencv


3

You need to use raspberrypi.local on Mac. Whether ping will work depends on the settings of your network. See How to set up networking/WiFi


3

Here's something I came up with that probably does what you want What this does is get the serial number of the pi (32 bit number from /proc/cpuinfo or OTP location 28) - the last 24 bits of which are the last half of the ethernet MAC address (no idea how pi3 wifi MAC address is "calculated") Then, by creating a systemd.link file, you can override the ...


3

As others have commented, yes, you can have multiple I2C devices (that's the whole point of a bus!) Make sure that you only have ONE set of pull-up resistors on the bus. Presumably your oled card already has them, otherwise it would not be working. Unfortunately, many I2C vendors put pullups on their boards; the better ones put solder jumpers that you can ...


3

Debian is a popular Linux/GNU distribution (Linux is the base operating system, GNU provides applications software packages). When the Pi first came out there was no Debian variant to support hardware floating point for the old CPUs used in the Pi. Raspbian was created to allow for hardware floating point and is based on Debian. The Foundation ...


3

Raspbian Lite doesn't have any GUI. It has only a command-line interface. If you want to work on Raspberry with Lite version then you should have a basic understanding of commands and file system of Linux. And Raspbian Lite uses less CPU and memory uses because of no GUI.


2

The pi group is the default group created for the pi user. Each user has a matching group name. dialout allows access to the serial ports. adm is used for system monitoring tasks and gives access to many of the log files in /var/log. netdev members can manage network interfaces. sudo group members can execute any command (If the goal is to have a lower ...


2

Just do an update, this is a known problem with the latest Raspbian Stretch image. When you enable the VNC server, this can happen. Alternatively, if you don't need the VNC server, you can disable it. sudo apt-get update sudo apt-get upgrade sudo reboot


2

That is the "Message of the Day" or "motd" you can find it in /etc/motd sudo nano /etc/motd


2

The error ---[end Kechallengernel panic - not syncing: VFS: Unable to mount root fs unknown-block(179,7) random: crng init done is often mentioned when a corrupt image have been transferred to a SD card or when a SD card is faulty or kernel bugs. I have replaced a corrupt SD card due to this cause and that solved my challenge.


2

The only port that matters is the internal ssh port and host. If you want to ssh into a machine on your LAN that has a LAN address of something like 192.168.5.5 ---- You would put that address in the internal IP address along with port 22. The external port doesn't matter, all that matters is that the port you choose is not blocked by your ISP. You would ...


2

I spent a while running down a rabbit hole on this and I wanted to add something. The motd solution provided here works for the message displayed after the login is authenticated (after entering the password). And that is what I was looking for. So thanks. But in the process I also found this tid-bit that someone might find useful since it is related... If ...


2

If you want to install raspbian desktop you could simply run sudo apt-get install raspberrypi-ui-mods


2

Chain INPUT (policy ACCEPT) TARGET: Accept, PROT: tcp, OPT: --, SOURCE: anywhere, DESTINATION: anywhere, tcp dpt: 8092 Chain FORWARD (policy ACCEPT) Chain OUTPUT (policy ACCEPT) As per Steve's first comment, your culprit here is not iptables, meaning there is no firewall configured on your Pi. The default in this case is the three lines above starting with ...


2

A non root user is not allowed to shutdown. Be sure you really use sudo to execute the command. sudo shutdown -h now Note that the shutdown command is in /sbin/shutdown, which is only in the root user's PATH, which is why the command appears not to exist for regular users.


2

You can use systemd to run a service before getty can prompt for a login. Create your service by adding a file called pre-login-script.service in /lib/systemd/system/, with the following contents: [Unit] Description=Pre Login Script After=sysinit.target [Service] Type=oneshot RemainAfterExit=yes StandardInput=tty-force StandardOutput=tty-force TTYReset=yes ...


Only top voted, non community-wiki answers of a minimum length are eligible