Skip to main content

Linux-Mint

First Steps

  • Spiegelserver ändern und updates installieren
    • Reboot
  • nebenher applets hinzufügen
  • transfer .config files from cloud

Packages to install:

tools:
sudo apt install -y vim htop wget git
Bitwarden:
flatpak -y install com.bitwarden.desktop
Element:
flatpak install -y im.riot.Riot
VSCodium:
flatpak install -y com.vscodium.codium
virt-manager:
sudo apt install -y virt-manager


Only for Thinkpad:

wget https://raw.githubusercontent.com/masksshow/Thinkpad-E14-15-AMD-Gen-2-FIX/main/thinkpad-e15-gen2-firmware-fix.sh

chmod +x thinkpad-e15-gen2-firmware-fix.sh
sudo apt install -y dos2unix acpica-tools


dos2unix thinkpad-e15-gen2-firmware-fix.sh
sudo ./thinkpad-e15-gen2-firmware-fix.sh --grub-setup-dsdt
If Blackscreen:

    crontabErstellen eintrag:Sie ein Skript mit dem Namen wake-up-script.sh im Verzeichnis /opt und fügen Sie den folgenden Inhalt hinzu:

    @reboot#!/bin/bash
    sudoexport rtcwakeDISPLAY=:0
    -mxset memdpms -sforce 2on
    


    Sie können dies mit dem folgenden Befehl tun:

    sudo nano /opt/wake-up-script.sh
    

    Fügen Sie den oben genannten Inhalt in den Nano-Editor ein und drücken Sie Ctrl+X, gefolgt von Y und Enter, um zu speichern und zu beenden.

    Machen Sie das Skript ausführbar:

    sudo chmod +x /opt/wake-up-script.sh
    

    Fügen Sie das Skript zu den systemd-sleep-Ereignissen hinzu. Dies können Sie tun, indem Sie eine Datei im Verzeichnis /lib/systemd/system-sleep/ erstellen. Zum Beispiel:

    sudo nano /lib/systemd/system-sleep/wake-up
    

    Und fügen Sie den folgenden Inhalt hinzu:

    #!/bin/sh
    case $1/$2 in
      post/*)
        /opt/wake-up-script.sh
        ;;
    esac
    

    Dieses Skript wird ausgeführt, wenn Ihr System aus dem Schlafmodus aufwacht (post).

    Machen Sie diese Datei ausführbar:

    sudo chmod +x /lib/systemd/system-sleep/wake-up
    

    Mac Theme:

    git clone https://git.cs30.de/MK_0x41/WhiteSur-icon-theme
    
    git clone https://git.cs30.de/MK_0x41/McMojave-cursors
    
    git clone https://git.cs30.de/MK_0x41/WhiteSur-gtk-theme
    


    Go in every folder and run:

    sudo ./install
    

    For Flatpak support:

    In WhiteSur-gtk-theme:

    sudo cp -r /usr/share/themes/WhiteSur-Dark /home/mk_0x41/.themes/
    sudo flatpak override --filesystem=/home/mk_0x41/.themes/WhiteSur-Dark
    

    Add the Plank:

    sudo apt install -y plank
    

    ctrl + right-click to edit

    To autostart add Plank to Startup-Applications


    Auto Updates:

    Aptoide:

    update-script:

    /usr/local/bin/update_packages.sh

    sudo bash -c 'echo -e "#!/bin/bash\n\napt update\napt upgrade -y\napt autoremove -y\napt autoclean -y" > /usr/local/bin/update_packages.sh' && sudo chmod +x /usr/local/bin/update_packages.sh
    
    #!/bin/bash
    
    apt update
    apt upgrade -y
    apt autoremove -y
    apt autoclean -y
    

    crateapt-updater.service

    sudo bash -c 'echo -e "[Unit]\nDescription=Update all apt packages\n\n[Service]\nType=oneshot\nExecStart=/usr/local/bin/update_packages.sh\n\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/update_packages.service'
    
    
    [Unit]
    Description=Update all apt packages
    
    [Service]
    Type=oneshot
    ExecStart=/usr/local/bin/update_packages.sh
    
    [Install]
    WantedBy=multi-user.target
    
    

    Flatapak:

    create flatpak-updater.service

    sudo bash -c 'echo -e "[Unit]\nDescription=Update all flatpak apps and runtimes\n\n[Service]\nType=oneshot\nExecStart=/usr/bin/flatpak update -y\n\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/flatpak_updater.service'
    
    [Unit]
    Description=Update all flatpak apps and runtimes
    
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/flatpak update -y
    
    [Install]
    WantedBy=multi-user.target
    


    Timer:

    create apt-updater.timer

    sudo bash -c 'echo -e "[Unit]\nDescription=Run update_packages daily\n\n[Timer]\nOnBootSec=5min\nOnUnitActiveSec=24h\nPersistent=true\n\n[Install]\nWantedBy=timers.target" > /etc/systemd/system/update_packages.timer'
    
    [Unit]
    Description=Run update_packages daily
    
    [Timer]
    OnBootSec=5min
    OnUnitActiveSec=24h
    Persistent=true
    
    [Install]
    WantedBy=timers.target
    
    

    create flatpak-updater.timer

    sudo bash -c 'echo -e "[Unit]\nDescription=Run flatpak_updater daily\n\n[Timer]\nOnBootSec=5min\nOnUnitActiveSec=24h\nPersistent=true\n\n[Install]\nWantedBy=timers.target" > /etc/systemd/system/flatpak_updater.timer'
    
    [Unit]
    Description=Run flatpak-updater daily
    
    [Timer]
    OnBootSec=5min
    OnUnitActiveSec=24h
    Persistent=true
    
    [Install]
    WantedBy=timers.target
    


    Aktivierung:

    sudo systemctl daemon-reload
    sudo systemctl enable --now flatpak_updater.timer
    sudo systemctl enable --now update_packages.timer
    

    check:

    sudo systemctl list-timers --all