Debian: Difference between revisions
From Andreida
(→Other) |
|||
Line 31: | Line 31: | ||
([https://www.how2shout.com/linux/how-to-install-and-use-backports-in-debian-11-bullseye/ source]) |
([https://www.how2shout.com/linux/how-to-install-and-use-backports-in-debian-11-bullseye/ source]) |
||
* [[Using a backport]] |
|||
Add to the sources files: |
|||
vi /etc/apt/sources.list |
|||
example for Bullseye (Debian 11), add to the end of the file: |
|||
# backports |
|||
deb http://deb.debian.org/debian bullseye-backports main contrib non-free |
|||
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free |
|||
apt-get update |
|||
apt-get install rsnapshot # or whatever you needed |
|||
=== upgrade Debian to the next major version === |
=== upgrade Debian to the next major version === |
Revision as of 19:15, 6 June 2023
Console
- Bulk rename files on a linux system
- Clear the history
- Debian, ssh
- Encrypt a file using gpg
- Find out bits of linux
- debian, dig
- rename a user / change username
Config/Setup/Install
System
- .bashrc
- 32 bit apps on 64 bit debian
- Add non-free firmware drivers
- Debian Proxy on command line
- Debian, alternatives, change defaults for editor or browser
- Debian, entries for the sources.list, apt-get
- Debian, new installation
- Debian, start something at system start
- Firehol
- Linux history with date
- apt-get, proxy
- debian, create swapfile
- debian, minimum to send mail but not receive any
- Check disks
lsblk -f
Use a backport
(source)
upgrade Debian to the next major version
8 -> 9 (jessie -> stretch)
cat /etc/issue apt-get update apt-get upgrade apt-get dist-upgrade sed -i 's/jessie/stretch/g' /etc/apt/sources.list apt-get update apt-get upgrade apt-get dist-upgrade apt-get -y autoremove shutdown -r now cat /etc/issue
9 -> 10 (stretch -> buster)
cat /etc/issue apt-get update apt-get upgrade apt-get dist-upgrade sed -i 's/stretch/buster/g' /etc/apt/sources.list apt-get update apt-get upgrade apt-get dist-upgrade apt-get -y autoremove shutdown -r now cat /etc/issue
10 -> 11 (buster -> bullseye)
cat /etc/issue apt-get update apt-get upgrade apt-get dist-upgrade sed -i 's/buster/bullseye/g' /etc/apt/sources.list sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list apt-get update apt-get upgrade apt-get dist-upgrade apt-get -y autoremove shutdown -r now cat /etc/issue
or something shorter but with less control:
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade sed -i 's/buster/bullseye/g' /etc/apt/sources.list sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y autoremove shutdown -r now cat /etc/issue
date uses wrong timezone, shows wrong format
timedatectl list-timezones | grep Berlin timedatectl set-timezone Europe/Berlin man date vi ~/.bashrc alias date="date +'%F %T'"
Other
- Debian, Citrix client
- Debian, create self signed SSL certificate
- Icedove, attachment list empty, can't open attachment
- Install mumble server
- Install ncurses for php on Debian
- Jabber server jabberd14
- Oracle developer, Type the full pathname of a J2SE installation
- PHP 5.3 with stable debian
- Upgrade Debian Jessie with MediaWiki to Stretch
- debian, apt-get for qmake/make
sudo
apt-get install sudo adduser <user> sudo adduser andreas sudo
User andreas has to relogin for the new group to be enabled.
top
The output of top looks uninteresting and is bad to read. This does not have to be that way. Download Media:Top-config.zip to your home directory, unzip it and hope it does not crash/destroy something in your system. I only tested this with Debian 10.
- download to your home directory
- unzip
- call top
top
I just pressed '?' and tried the things they tell you there. Then I zipped the result.
install c++
sudo apt-get install build-essential manpages-dev libstdc++-8-doc
If libstdc++-8-doc does not exist, check for later versions. libstdc++-9-doc ...
Repository changes
This must be accepted explicitly before updates for this repository can be applied. See apt-secure
apt-get update --allow-releaseinfo-change