Differences between revisions 10 and 17 (spanning 7 versions)
Revision 10 as of 2019-12-11 13:05:32
Size: 1901
Editor: Sciuro
Comment:
Revision 17 as of 2020-06-04 22:35:44
Size: 3315
Editor: Sciuro
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#acl All:read
Line 6: Line 5:
= Packages =
== Remove packages ==
To remove a package.
{{{
apt-get --purge remove packagename
}}}
= Description =
Debian (/ˈdɛbiən/), also known as Debian GNU/Linux, is a Linux distribution composed of free and open-source software, developed by the community-supported Debian Project, which was established by Ian Murdock on August 16, 1993. The first version, Debian 0.01, was released on September 15, 1993, and the first stable version, 1.1, was released on June 17, 1996. The Debian Stable branch is the most popular edition for personal computers and servers, and is the basis for many other distributions.
Line 13: Line 8:
To remove unused packages.
{{{
apt-get --purge autoremove
}}}

Get a list of removed packages, but still with there configuration files on disk.
{{{
dpkg --list | grep "^rc"
}}}

Remove all packages with existing configuration files.
{{{
dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge
}}}
(source: [[WikiPedia:Debian|WikiPedia]])
Line 71: Line 53:
=== Disable IpV6 Debian === === Disable IPv6 Debian ===
Line 78: Line 60:
= Packages =
Line 80: Line 62:
These are options in the ''/etc/apt/sources.list''.
Line 98: Line 81:
== Update packages ==
This will only update packages. If additional packages are needed, the package will not be updated. Also the kernel will not be updated.
{{{
apt-get update
apt-get upgrade
}}}

== Update packages with addition installation ==
This also includes kernel upgrades and the installation of additional packages.
{{{
apt-get update
apt-get dist-upgrade
apt-get --purge autoremove
}}}

== Remove packages ==
To remove a package.
{{{
apt-get --purge remove packagename
}}}

To remove unused packages.
{{{
apt-get --purge autoremove
}}}

Get a list of removed packages, but still with there configuration files on disk.
{{{
dpkg --list | grep "^rc"
}}}

Remove all packages with existing configuration files.
{{{
dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge
}}}

== Change legacy boot to UEFI ==
Sometimes you installed Debian with legacy boot. But after a while you really want UEFI. One option is to backup and reinstall your system. An other is converting manualy. [[https://blog.getreu.net/|Jens Getreu]] has made a perfect explanation about this situation. You can find it [[https://blog.getreu.net/projects/legacy-to-uefi-boot/|here]]. (PDF mirror)

Description

Debian (/ˈdɛbiən/), also known as Debian GNU/Linux, is a Linux distribution composed of free and open-source software, developed by the community-supported Debian Project, which was established by Ian Murdock on August 16, 1993. The first version, Debian 0.01, was released on September 15, 1993, and the first stable version, 1.1, was released on June 17, 1996. The Debian Stable branch is the most popular edition for personal computers and servers, and is the basis for many other distributions.

(source: WikiPedia)

Configuration

Network

See also: https://wiki.debian.org/NetworkConfiguration

Default networking

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
    hostname myhostname

For IPv6 DHCP:

iface eth0 inet6 dhcp

For IPv6 SLAAC:

iface eth0 inet6 auto

Bridge

Make sure you don't get an address on you physical interface. Set your interface on manual first.

iface eth0 inet manual
iface eth0 inet6 manual

auto br0
iface br0 inet dhcp
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

If you also want IPv6 on the bridge:

iface br0 inet6 auto
    accept_ra 1

Disable IPv6 Debian

sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w net.ipv6.conf.lo.disable_ipv6=1

Packages

APT resources

These are options in the /etc/apt/sources.list. Always use backports on stable

# stable-backports
deb http://httpredir.debian.org/debian buster-backports main contrib non-free

Debian ansible is a little to old.

# Ansible
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main

Signal is not in the default repo

# Signal
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main

Update packages

This will only update packages. If additional packages are needed, the package will not be updated. Also the kernel will not be updated.

apt-get update
apt-get upgrade

Update packages with addition installation

This also includes kernel upgrades and the installation of additional packages.

apt-get update
apt-get dist-upgrade
apt-get --purge autoremove

Remove packages

To remove a package.

apt-get --purge remove packagename

To remove unused packages.

apt-get --purge autoremove

Get a list of removed packages, but still with there configuration files on disk.

dpkg --list | grep "^rc"

Remove all packages with existing configuration files.

dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge

Change legacy boot to UEFI

Sometimes you installed Debian with legacy boot. But after a while you really want UEFI. One option is to backup and reinstall your system. An other is converting manualy. Jens Getreu has made a perfect explanation about this situation. You can find it here. (PDF mirror)

Usage

Luks

Check if your password works:

cryptsetup luksOpen --test-passphrase /dev/sda5

Howto/Debian (last edited 2020-06-04 22:37:13 by Sciuro)