Debian: Difference between revisions

From Andreida
(16 intermediate revisions by the same user not shown)
Line 6: Line 6:
* [[Find out bits of linux]]
* [[Find out bits of linux]]
* [[debian, dig]]
* [[debian, dig]]
* [[rename a user / change username]]


= Config/Setup/Install =
= Config/Setup/Install =
Line 22: Line 23:
* [[apt-get, proxy]]
* [[apt-get, proxy]]
* [[debian, create swapfile]]
* [[debian, create swapfile]]
* [[debian, minimum to send mail but not receive any]]
* Check disks
lsblk -f
* [[Error: update-initramfs warning: initramfs-tools configuration sets RESUME but no matching swap device is available]]
* [[Automatically update date/time]]

=== Use a backport ===
([https://www.how2shout.com/linux/how-to-install-and-use-backports-in-debian-11-bullseye/ source])

* [[Using a backport]]


=== upgrade Debian to the next major version ===
=== upgrade Debian to the next major version ===
* [[upgrading Debian to the next major version]]
* update the system

apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
=== date uses wrong timezone, shows wrong format ===
* boot your system
timedatectl list-timezones | grep Berlin
shutdown -r now
timedatectl set-timezone Europe/Berlin
* Check your current major version number
cat /etc/issue
man date
* Goto https://www.debian.org/releases/ and get the names for your current version and the version you want to change to
vi ~/.bashrc
9 Stretch
alias date="date +'%F %T'"
10 Buster
* change the old string to the new string in /etc/apt/sources.list (mind upper-/lowercase)
sed -i 's/stretch/buster/g' /etc/apt/sources.list
* update the system
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y autoremove
* boot your system
shutdown -r now
* Check your current major version number
cat /etc/issue


== Other ==
== Other ==
* [[Debian, E-Mail server]]
* [[Debian, E-Mail server]]
* [[backup with rsnapshot]]
* [[Apache 2]]
* [[Apache 2]]
* [[Installing MediaWiki on Debian]]
* [[Installing MediaWiki on Debian]]
Line 65: Line 67:
adduser andreas sudo
adduser andreas sudo


User andreas has to relogin for the new group to be enabled.
User andreas has to relogin for the new group to be enabled for him.


=== top ===
=== top ===
Line 81: Line 83:
sudo apt-get install build-essential manpages-dev libstdc++-8-doc
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 ...
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


=== screen "press space or return to end" ===
.screenrc
startup_message off

Revision as of 04:08, 11 February 2024

Console

Config/Setup/Install

System

lsblk -f

Use a backport

(source)

upgrade Debian to the next major version

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


sudo

apt-get install sudo
adduser <user> sudo
adduser andreas sudo

User andreas has to relogin for the new group to be enabled for him.

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


screen "press space or return to end"

.screenrc

startup_message off