Raspberry Pi: Difference between revisions

From Yggenyk
Jump to navigation Jump to search
 
Line 36: Line 36:


==Update Docker Images==
==Update Docker Images==
Pulls an image associated with a service defined in a docker-compose.yml or docker-stack.yml file, but does not start containers based on those images.
: '''docker-compose pull'''
: '''docker-compose pull'''
Builds, (re)creates, starts, and attaches to containers for a service.
: '''docker-compose up -d'''
: '''docker-compose up -d'''



Latest revision as of 17:37, 3 June 2021

Raspberry-pi.jpg

Starting up with a new SD card

  1. HOW TO INSTALL NOOBS ON AN SD CARD
  2. Set language, keyboard and timezone

Update Raspbian

First, update your system's package list by entering the following command:

sudo apt-get update

Next, upgrade all your installed packages to their latest versions with the command:

sudo apt-get dist-upgrade

Generally speaking, doing this regularly will keep your installation up to date, in that it will be equivalent to the latest released image available from http://raspberrypi.org/downloads.


However, there are occasional changes made in the Foundation's Raspbian image that require manual intervention, for example a newly introduced package. These are not installed with an upgrade, as this command only updates the packages you already have installed.

Update Docker Images

Pulls an image associated with a service defined in a docker-compose.yml or docker-stack.yml file, but does not start containers based on those images.

docker-compose pull

Builds, (re)creates, starts, and attaches to containers for a service.

docker-compose up -d

Enable SSH

Make the device discoverable by name for Windows

sudo apt-get upgrade
sudo apt-get install samba samba-common-bin

Restart the samba:

sudo service smbd restart

Enable Microsoft Remote Desktop clients to connect to Raspberry Pi

sudo apt-get install xrdp

Apparently there is a/are defect(s) which prevent xrdp working with the vncserver.
However it works with tightvncserver.
Also the order of installation of tightvncserver and xrdp seems to be important.
In summary remove the following packages : xrdp, vnc4server, tightvncserver.

sudo apt-get remove xrdp vnc4server tightvncserver

install tightvncserver followed by xrdp

sudo apt-get install tightvncserver
sudo apt-get install xrdp


Node-RED


MQTT

Raspberry Pi as USB server

Open source

Commercial

VirtualHere allows USB devices to be used remotely over a network just as if they were locally connected!

How to share USB via Network]

Printing to Canon inkjet printers

Components

Google cloud printing

Troubleshooting

View the CUPS error log for debugging and troubleshooting purposes

Edit the /etc/cups/cupsd.conf file, find the section "loglevel" change "info" to "debug" save and exit then restart cups

  1. /etc/init.d/cups restart

or for Ubuntu

$ sudo /etc/init.d/cupsys restart then enter this command to view the log

tail -f /var/log/cups/error_log

Misc

<google>ENGELSK</google>

id=siteTree