# DEBIAN

Updated . Posted . Visible to the public.

#How to Upgrade from Debian 11 to Debian 12
link Show archive.org snapshot

lsb_release -a
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get autoremove
reboot
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list

Example:

deb https://deb.debian.org/debian bookworm main
deb https://deb.debian.org/debian bookworm main non-free-firmware

apt-get update -y
apt-get upgrade --without-new-pkgs -y
apt-get full-upgrade -y
reboot
lsb_release -a

DEBIAN 11

PACOTES

TOOLS

su - -c 'cat /etc/apt/sources.list | grep "contrib non-free" || \
sed -i "s/main/main contrib non-free/g" /etc/apt/sources.list
uname -a | grep "x86_64"; \
if [ $? -eq 0 ]; then dpkg --add-architecture i386; fi
apt update && \
apt -y upgrade && \
apt -y dist-upgrade && \
apt -y autoremove
apt -y install \
       build-essential dkms linux-headers-$(uname -r) \
       git \
       htop \
       sudo \
       psmisc \
       neofetch \
       net-tools \
       netselect-apt \
       lsb-release \
       firmware-linux \
       firmware-misc-nonfree
gpasswd -a '$USER' sudo'  

apt -y install qemu-guest-agent        
systemctl enable qemu-guest-agent
systemctl status qemu-guest-agent
systemctl start qemu-guest-agent
                    

WORKSTATION

dpkg --add-architecture i386 && 
apt update && sudo apt -y upgrade
apt -y install \
          xorg \
          fluxbox \
          xrdp \
          wine \
          wine32 \
          filezilla \
          terminator \
          chromium \
          remmina \
          firefox-esr \
          firefox-esr-l10n-pt-br 

MENU


[begin] (Fluxbox)

      [exec] (Terminal) {terminator} <>
      [exec] (Browser) {chromium} <>
      [exec] (Winbox) {winbox} <>
      [exec] (RDP) {remmina} <>
      [exec] (Xkill) {xkill} <>

   [exit] (Exit)

[end]

DESKTOP

dpkg --add-architecture i386 && 
apt update && sudo apt -y upgrade
apt -y install \
          xorg \
          task-xfce-desktop \
          xscreensaver-* unicode-screensaver \
          wine \
          wine32 \
          simplescreenrecorder \
          filezilla \
          deepin-terminal \
          compiz \
          emerald \
          simple-ccsm \
          compiz-plugins-default \
          compiz-plugins-experimental \
          cairo-dock \
          remmina \
          chromium \
          firefox-esr \
          firefox-esr-l10n-pt-br 

systemback

$ git clone https://github.com/fconidi/systemback-install_pack-1.9.4.git
$ cd systemback-install_pack-1.9.4/
$ chmod +x install.sh
$ sudo ./install.sh

timeshift
como resetar qualquer programa no linux

welrbraga Show archive.org snapshot
logkeys Show archive.org snapshot
https://github.com/kernc/logkeys.git

backup sources.list

$ sudo cp /etc/apt/sources.list{,.df}

HD UUID

ls -lh /dev/disk/by-uuid/* | sed "s/^.*\/dev\/.*\/by-uuid\/\(.*\) -> .*\/\([^\/]*\)/\/dev\/\2 -> \1/g"

$PATH

echo 'export PATH=~/bin:$PATH' >>~/.profile
echo 'export PATH=$PATH:~/bin' >>~/.profile

BASH ID

echo $SHLVL

Arithmetical

(( a = 2 + 2 ))
echo $a
4

(( a = 2 + 3 ))
echo $a
5

(( a = 2 + 2 ))
(( a = a + 2 ))
echo $a
6

(( a = 5 * 5 ))
echo $a
25

BASH date

echo Hours = $(date +%H)
echo Minutes = $(date +%M)
echo Seconds = $(date +%S)
echo Nanoseconds = $(date +%N)
echo Epoch Time = $(date +%s)

echo "current time = $(date +%H:%M:%S:%N)"

# can also use %T which displays Time in HH:MM:SS format.

echo "current time in 24 hour format = $(date +%T)"

# can also use %r to display time in 12 hour format.

echo "current time in 12 hour format = $(date +%r)"

systemctl get-default

systemctl set-default multi-user.target

systemctl set-default graphical.target

Quando foi que vocĂȘ instalou a sua distro?

ls -lct /etc | tail -1 | awk '{print $6, $7, $8}'

Profile picture of L3UNIX
L3UNIX
Last edit
L3UNIX
Posted by L3UNIX to L3UNIX's deck (2022-01-15 18:43)