Update system package list:
sudo apt-get updateUpgrade installed packages
sudo apt-get -y upgradeUpgrade distibution
sudo apt-get -y dist-upgradeScript
sudo suapt-get updateapt-get -y upgradeapt-get -y dist-upgrade*** needs improvement ***https://www.raspberrypi.org/documentation/configuration/use-a-proxy.md
Um ausgehende Verbindungen über einen Proxyserver zu leiten, ist folgende Konfiguration notwendig.
Im Beispiel ist für die gängigsten Anwendungen (http, https und ftp) die Konfiguration aufgezeigt.
pi@raspi ~ $ sudo nano /etc/profile.d/proxy.sh
Nun die Konfiguration selbst:
export http_proxy=http://172.18.249.201:3128
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
export FTP_PROXY=$http_proxy
apt-get über Proxy
In den Ordner apt.conf.d wechseln:
pi@raspi ~ $ sudo nano /etc/apt/apt.conf.d/10proxy
Nun die Konfiguration selbst:
Ohne Authentifizierung:
Acquire::http::Proxy "http://172.18.249.201:3128";
Mit Authentifizierung:
Acquire::http::Proxy "http://username:password@yourproxyaddress:proxyport";
Enable via desktop
Enable via console
Allow ssh login as root
You need to give the root account a password? Have you done?sudo passwd rootYou should check your ssh config
sudo nano /etc/ssh/sshd_configRestart SSH server
sudo /etc/init.d/ssh restartHINWEIS:
Was aber tun bei einer Headless-Installation (RasPi ohne Tastatur und Monitor)? Dazu müssen Sie auf dem Rechner, auf dem Sie die SD-Karte für den Raspberry Pi vorbereiten, in der boot-Partition eine Datei namens ssh anlegen (z. B. unter Linux mit touch /<Mountpoint>/boot/ssh). Beim nächsten Booten des Raspberry Pi wird dadurch der SSH-Server gestartet und auch auf Dauer aktiviert. Die Datei /boot/ssh wird anschließend gelöscht. Somit können Sie sich per SSH auf dem Raspberry Pi einloggen. Danach ändern Sie sofort das Default-Passwort. Auf jeden Fall sollten Sie das Passwort des Benutzers "pi" ändern, bevor Ihr RasPi mit dem Internet verbunden wird.
Falls es Sie interessiert, wie der Trick mit der (leeren) Datei ssh funktioniert, hier die Auflösung. Dazu wird beim Bootvorgang das folgende Shellscript aufgerufen. Das kann man beispielsweise erreichen, indem der Aufruf in die Datei /etc/rc.localeingetragen wird. Es muss auf alle Fälle mit Root-Rechten laufen.
#!/bin/bash# Abbruch, wenn die Datei /boot/ssh nicht vorhanden isttest -f /boot/ssh || return 0# ssh freigeben/bin/systemctl enable ssh# ssh starten/bin/systemctl start ssh# Datei loeschen/bin/rm -f /boot/sshIf something goes wrong, is missing or corrupted ...
sudo apt remove package-nameor
sudo apt purge package-name... because purge will also remove any config files that might be left behind
Also make sure to ...
sudo apt update... between uninstalling and reinstalling, just in case.
raspi-config is the Raspberry Pi configuration tool
Usage
You will be shown raspi-config on first booting into Raspbian.
To open the configuration tool after this, simply run the following from the command line:
sudo raspi-config┌───────────────────┤ Raspberry Pi Software Configuration Tool (raspi-config) ├────────────────────┐│ ││ 1 Change User Password Change password for the current user ││ 2 Network Options Configure network settings ││ 3 Boot Options Configure options for start-up ││ 4 Localisation Options Set up language and regional settings to match your location ││ 5 Interfacing Options Configure connections to peripherals ││ 6 Overclock Configure overclocking for your Pi ││ 7 Advanced Options Configure advanced settings ││ 8 Update Update this tool to the latest version ││ 9 About raspi-config Information about this configuration tool ││ ││ ││ ││ <Select> <Finish> ││ │└──────────────────────────────────────────────────────────────────────────────────────────────────┘WHAT RASPI-CONFIG DOES
Generally speaking, raspi-config aims to provide the functionality to make the most common configuration changes. This may result in automated edits to /boot/config.txt and various standard Linux configuration files. Some options require a reboot to take effect. If you changed any of those, raspi-config will ask if you wish to reboot now when you select the <Finish> button.
sudo service dhcpcd status Verify and check DHCP activity and settingsudo service dhcpcd start or restart Run or restart DHCP servicesudo systemctl enable dhcpcd Set and enable DHCP service for automated run on Raspberry Pi startupsudo nano /etc/dhcpcd.conf Open file to change existing IP settingssudo service networking restart Restart and apply new network settingsip a Check IP addressip r Check routingcat /etc/resolv.conf Check DNS resolver settingssudo hostname -b {NEW_NAME} Change hostnameOr use wicd-curses to setup network quick and simple
sudo apt-get install wicd-curses Installsudo wicd-cursesSwapping: https://www.elektronik-kompendium.de/sites/raspberry-pi/2002131.htm
apt-get (Debian/Ubuntu/Mint)
By adding the webmin repository and Jamie Cameron's key it is possible to install & maintain the latest Webmin/Usermin versions.
Just Cut&Paste the entire text below and hit enter. This will install the latest Webmin version by adding the webmin-repo and corresponding key as well as installing necessary packages:
sudo sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list'wget -qO - http://www.webmin.com/jcameron-key.asc | sudo apt-key add -sudo apt-get updatesudo apt-get -y install webminSimplest OpenVPN setup and configuration, designed for Raspberry Pi
::: INSTALLATION :::
Source: