How to configure a new PC

Set­ting up a new com­put­er often requires the set­ting up every time again some set­ting, here is a list of some I use:

Windows 11 

Programme

gesponserte Anwendungen deinstallieren

Fol­gende Pro­gramme kann man get­rost dein­stal­lieren: (Falls man sie doch braucht sollte man sie bewusst instal­lieren)
* Dis­ney+
* Prime Video für Windows

winget

#Winget-Apps
winget install 7zip.7zip                          # Mainstream-ZIP-Program
winget install Betterbird.Betterbird              # Thunderbird-alternative
winget install CPUID.CPU-Z                        # Hardware-Infos
winget install Dropbox.Dropbox                    # Mainstream-Datei-Syncronisation
winget install GIMP.GIMP.3                        # Rasterbilder bearbeiten
winget install Google.Chrome --force              # Mainstream-Browser
winget install Inkscape.Inkscape                  # Vektorgrafik-program
winget install IrfanSkiljan.IrfanView             # Bildbetrachter (auch unübliche Formate)
winget install JonasJohn.RED.Beta                 # Leere Ordner löschen
winget install MartiCliment.UniGetUI              # Grafische Oberfläche für winget
winget install Microsoft.PowerToys                # Nützliche Tools von Microsoft
winget install Mozilla.Firefox.de                 # konfigurierbarer Browser
winget install Mozilla.Thunderbird.ESR.de         # E-Mailprogram Extended Support Release
winget install Notepad++.Notepad++                # Texteditor mit Highlighting
winget install ownCloud.ownCloudDesktop           # Datei-Syncronisation
winget install PlotSoft.PDFill                    # PDF-Tools free
winget install Qalculate.Qalculate                # Rechner
winget install SumatraPDF.SumatraPDF              # lightweight PDF-Viewer
winget install Telegram.TelegramDesktop           # Messenger
winget install TheDocumentFoundation.LibreOffice  # Free Word, Excel, Powerpoint
winget install TrackerSoftware.PDF-XChangeEditor  # PDF-Viewer mit Entfernungsmessung
winget install VideoLAN.VLC                       # Mustik-player
winget install voidtools.Everything               # Alle Dateien durchsuchbar aufgelistet
winget install WinDirStat.WinDirStat              # Dateibelegung checken

#Windows-Subsystem-for-linux
wsl --install
winget install Canonical.Ubuntu                   # Mainstream-Linux

option­al

# Winget-Apps
winget install Apple.iTunes                    # Musik
winget install Balena.Etcher                   # Tool zum erstellen von Boot-images
winget install CrystalDewWorld.CrystalDiskInfo # Festplatten-Info
winget install CrystalDewWorld.CrystalDiskMark # Festplatten-Bechmark
winget install EpicGames.EpicGamesLauncher     # wochentlich Gratis-spiele
winget install fjsoft.MyPhoneExplorer          # Handy-Backup
winget install geeksoftwareGmbH.PDF24Creator   # benutzungsfreundliche GUI für PDFs
winget install GitHub.GitHubDesktop            # GUI für Github
winget install Git.Git                         # Git paketverwaltung
winget install GOG.Galaxy                      # Spiele ohne Kopierschutz
winget install Google.GoogleDrive              # Cloud-Syncronisation
winget install GPL Ghostscript                 # PDF-Tool
winget install MiKTeX.MiKTeX                   # LaTeX
winget install Piriform.CCleaner               # Datenschutz
winget install SuperTuxKart.SuperTuxKart       # Party-Auto-Rennen
winget install Valve.Steam                     # Spiele gute Linux-kontabilität

#MS-Store-Apps
winget install 9NKSQGP7F2NH                    # winget search whatsapp
winget install 9WZDNCRDJ8LH                    # winget search AnyConnect

# Chocolatey-Apps
winget install Chocolatey.Chocolatey           # Package-Manager
choco install briss --pre                      # PDFs zuschneiden

Im Microsoft-Store

Pro­grame im Store laufen in ein­er Sand­box und sind daher sicher­er, aber einige Funktionen/Zugriffe wer­den block­iert und funk­tinieren nicht, daher würde ich einen Text-Edi­tor direkt vom Her­steller installieren.

Installieren

Portable Installationen

Portable Instal­la­tion haben den Vorteil, dass sie nicht in das Betrieb­ssys­tem ein­greifen und daher den Com­put­er nicht verlangsamen

PDF

Einstellungen

regedit.exe

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Print\UnifiedPrintDialog]
"PreferLegacyPrintDialog"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
"{CA6CC9F1-867A-481E-951E-A28C5E4F01EA}"="" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag] 
"ThisPCPolicy"="Hide" 3

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag] 
"ThisPCPolicy"="Hide"

Start-UP

Taskmgr.exe

  • Autostart alles deak­tivieren außer:
  • “Vir­tu­al­Box Guest Aud­di­tions Tray Appli­ca­tions” von “Ora­cle Cor­po­ra­tion” aktiviert lassen [VM: für Monitor-fit]

msconfig.exe

msconfig.exe > Dien­ste> “Alle Microsoft-Dien­ste aus­blenden” > alle deak­tiv­eren bis auf

  • “Cis­co Any­Con­nect Secure Mobil­i­ty Agent” von “Cis­co Sys­tem, Inc.” aktiviert lassen 
  • “EABack­ground­Ser­vice” von “Elec­tron­ic Arts” aktiviert lassen
  • “AdskLi­cens­ingSer­vice” bzw. “FlexNet Licens­ing Ser­vice 64” aktiviert lassen [Auto­CAD]
  • “Leno­vo Hotkey Client Loader” and “Leno­vo PM Ser­vice” für Hotkeys wie Mikro­fon stumm schalten
  • “NVWMI” is system-critical
  • “Office 64 Source Engine (ose64)” is system-critial
  • “SCP DSx Ser­vice” von “Scar­let. Crush prduc­tions” aktiviert lassen [PS3 Con­troller]
  • “Win­dows Sub­stys­tem for Lin­ux” aktiviert lassen

Word

Linux-PC

Settings

AppIndicator

enable AppIndi­ca­tor by enabling “Exten­sion”, use the com­mand gnome-extensions-app

disable gnome-animations

https://fostips.com/disable-ani­ma­tions-speed-up-gnome-ubun­tu/

gsettings set org.gnome.desktop.interface enable-animations false

Applications to install

#!/bin/bash

### Standardprogramme ###########################################
if [ -f "/etc/debian_version" ]; then
 sudo apt-get install texlive     # LaTeX-Base-Paket
 sudo apt install inkscape gimp   #Grafik-Programme
 sudo apt install owncloud-client #Datei-Syncronisation
 sudo apt-get install gnome-tweaks#Gnome einrichten
 sudo apt install vlc             # Musik abspielen
 sudo apt install baobab          # Festplatten-Belegungs-Analyse
 sudo apt install qalculate-gtk   # Rechner
 sudo dnf install libreoffice-writer # office Word-Alternative
 sudo dnf install libreoffice-calc   # Office Excel-Alternative
 sudo dnf install libreoffice-impress# office Powerpoint-Alternative
 sudo apt install chromium-browser   # Firefox-Alternative
 sudo apt-get install flatpak        # Paketverwaltung 
 sudo apt-get install texstudio      # TeX-Editor

fi

if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
sudo dnf update --refresh
 sudo dnf install gimp #edit Rastergrapfics
 sudo dnf install vlc
 sudo dnf install libreoffice-writer libreoffice-calc libreoffice-impress # office
 sudo dnf install owncloud-client owncloud-client-nautilus owncloud-client-nemo
 sudo dnf install xournalpp #edit pdfs
sudo dnf install chromium #Einige *.svg bzw webseiten werden in Firefox nicht richtig angezeigt
 sudo dnf install qalculate
 sudo dnf install geany geany-plugins-lineoperations #my favourite texteditor

 flatpak update
 fwupdmgr update
fi

#### Optionale Programme #######################################
if [ -f "/etc/debian_version" ]; then
sudo apt install qalculate-gtk
sudo apt-get install texlive texlive-lang-german texlive-latex-extra
sudo apt-get install playonlinux
sudo apt-get install julia
# sudo add-apt-repository ppa:sunderme/texstudio
# sudo add-apt-repository ppa:nemh/systemback # Systemwiederherstellung
# sudo add-apt-repository ppa:ubuntu-x-swat/updates #X.org-drivers
# sudo add-apt-repository ppa:embrosyn/xapps
# sudo add-apt-repository ppa:xubuntu-dev/ppa
# sudo add-apt-repository ppa:marlin-devs/marlin-daily
# sudo add-apt-repository ppa:tualatrix/ppa
# sudo add-apt-repository ppa:linuxuprising/java #https://wiki.ubuntuusers.de/Java/Installation/Oracle_Java/Java_11/

sudo apt install oracle-java11-installer-local
sudo apt install oracle-java14-installer

curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-add-repository https://packages.microsoft.com/ubuntu/19.04/prod
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
fi

### Gratis Arbeitsprogramme ################################

#texlive
if [ -f "/etc/debian_version" ]; then
 sudo apt-get install texlive
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
 sudo dnf install texlive texlive-babel-german texlive-cm-super texlive-datetime2-english texlive-datetime2-german texlive-mathabx
 sudo dnf install texlive-epstopdf texlive-els-cas-templates
 sudo dnf install 'tex(acro.sty)' 'tex(biblatex.sty)' 'tex(datetime2.sty)' 'tex(footnotehyper.sty)' 'tex(framed.sty)' 'tex(gensymb.sty)' 'tex(import.sty)' 'tex(inputenx.sty)' 'tex(matlab-prettifier.sty)' 'tex(newunicodechar.sty)' 'tex(pdfcomment.sty)' 'tex(pstool.sty)' 'tex(siunitx.sty)' 'tex(subfigure.sty)' 'tex(tablefootnote.sty)' 'tex(tabu.sty)' 'tex(textcmds.sty)' 'tex(textgreek.sty)' 'tex(textpos.sty)' 'tex(threeparttable.sty)' 'tex(tocbibind.sty)' 'tex(ulem.sty)' 'tex(units.sty)' 'tex(wrapfig.sty)'
 sudo dnf install 'tex(a4wide.sty)' 'tex(anyfontsize.sty)' 'tex(balance.sty)' 'tex(bbm.sty)' 'tex(fouriernc.sty)' 'tex(makecell.sty)' 'tex(mwe.sty)' 'tex(nopageno.sty)' 'tex(scalerel.sty)' 'tex(soulutf8.sty)' 'tex(stfloats.sty)'
 sudo dnf --enablerepo=updates-testing install texlive-elsarticle
 sudo dnf install texstudio texmaker
 tlmgr -ignore-warning --usermode install mathabx orcidlink
 mktextfm mathc10
 #tlmgr -ignore-warning --usermode install acro datetime2 elsarticle inputenx newunicodechar pdfcomment pstool soulutf8 tablefootnote tabu textpos threeparttable wrapfig
 # if no sudo rights
fi


#Abaqus
mkdir -p /scratch/tmp/ #user needs write-permissions in this folder details see https://abaqus-docs.mit.edu/2017/English/SIMACAEEXCRefMap/simaexc-c-envfile.htm

#Grafikprogramme (Inkscape, Gimp,...)
if [ -f "/etc/debian_version" ]; then
 sudo apt install python3-pip cargo npm optipng scour librsvg2-bin #https://github.com/JoKalliauer/cleanupSVG
 sudo apt-get install python3
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
 sudo dnf install python3-pip cargo npm inkscape optipng python3-scour librsvg2-tools #https://github.com/JoKalliauer/cleanupSVG
 sudo dnf install python3
fi
sudo dnf install xfig
python3 -m pip install --upgrade pip
sudo npm install -g npm

sudo dnf install gnuplot
sudo dnf install librsvg2-tools

#Amber
sudo apt install python-nose

#Programme
sudo apt install make

sudo apt-get install gnome-tweaks  # gnome einrichten

sudo dnf install zoom #Konferenzen


if [ -f "/etc/debian_version" ]; then
 sudo apt install wine
 sudo apt install net-tools
 sudo apt-get update && sudo apt-get install -y build-essential libssl-dev uuid-dev libgpgme11-dev squashfs-tools libseccomp-dev wget pkg-config git cryptsetup #https://github.com/JoKalliauer/abaqus-centos-7-singularity
 sudo apt install geany geany-plugin-lineoperations
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
 sudo dnf install wine
 sudo dnf install net-tools
 sudo dnf groupinstall -y 'Development Tools' #https://github.com/JoKalliauer/abaqus-centos-7-singularity
 sudo dnf install -y golang libseccomp-devel squashfs-tools cryptsetup squashfs-tools wget pkg-config git gcc-go golang-bin ksh #https://github.com/JoKalliauer/abaqus-centos-7-singularity

fi


sudo dnf install gnome-shell-extension-appindicator

sudo dnf install nemo-fileroller
sudo dnf install ImageMagick

#disable bitmap-ligatures
touch ~/.fonts.conf #https://askubuntu.com/a/186940/676490



sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap

sudo dnf upgrade



#Private

##Adobe acrobat
if [ -f "/etc/debian_version" ]; then
 sudo snap install acrordrdc #https://linuxconfig.org/how-to-install-adobe-acrobat-reader-dc-wine-on-ubuntu-20-04-focal-fossa-linux
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
 #https://ask.fedoraproject.org/t/how-to-install-playonlinux-on-fedora-32/9267
 sudo rpm --import http://rpm.playonlinux.com/public.gpg
 sudo dnf install http://rpm.playonlinux.com/playonlinux-yum-4-1.noarch.rpm
 sudo dnf config-manager --save --setopt=playonlinux.gpgcheck=1
 sudo dnf install https://dl.fedoraproject.org/pub/fedora/linux/releases/31/Everything/x86_64/os/Packages/p/python2-wxpython-3.0.2.0-26.fc31.x86_64.rpm
 sudo dnf install jq playonlinux.noarch python3-dnf-plugin-versionlock
 sudo dnf versionlock playonlinux
fi

##nautilus backspace https://askubuntu.com/a/1212889/676490
if [ -f "/etc/debian_version" ]; then
 sudo apt-get install python-nautilus
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
 sudo dnf install nautilus-python
fi
#mkdir -p .local/share/nautilus-python/extensions
#cd .local/share/nautilus-python/extensions
#wget https://raw.githubusercontent.com/riclc/nautilus_backspace/master/BackspaceBack.py

##Snap
if [ -f "/etc/debian_version" ]; then
 sudo apt-get install pdftk #https://www.cyberciti.biz/faq/removing-password-from-pdf-on-linux/
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
 sudo snap install pdftk #https://snapcraft.io/install/pdftk/fedora
fi

#Atomistic
if [ -f "/etc/debian_version" ]; then
sudo apt install jmol #Ubuntu
sudo apt install avogadro #Ubuntu
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
sudo snap install jmol
sudo dnf install avogadro
fi
sudo dnf install apbs #https://github.com/Electrostatics/apbs

#Amber
sudo dnf -y install tcsh make gcc gcc-gfortran gcc-c++ which flex bison patch bc libXt-devel libXext-devel perl util-linux wget bzip2 bzip2-devel zlib-devel #http://ambermd.org/InstFedora.php

#Mathematica
cd /opt/Wolfram/Mathematica/11.2/SystemFiles/Libraries/Linux-x86-64
sudo mv libfreetype.so.6 libfreetype.so.6.bak
sudo mv libz.so.1 libz.so.1.bak
sudo ln -s /usr/lib64/libfreetype.so.6 /opt/Wolfram/Mathematica/11.2/SystemFiles/Libraries/Linux-x86-64/libfreetype.so.6


#new
sudo dnf install python3-pillow-tk #https://github.com/jepler/cropgui/issues/89
sudo dnf install libreoffice-langpack-de
sudo dnf install kdocker #thunderbird tray
sudo dnf install tcsh #vmd
sudo dnf install nemo-fileroller
sudo dnf install ImageMagick
sudo dnf install pdfgrep

sudo dnf install cabextract
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
fc-cache -f -v

Windows Subsystem for Linux

sudo apt update
sudo apt upgrade
sudo apt install ocrmypdf tesseract-ocr-eng tesseract-ocr-deu python3-pip # https://ocrmypdf.readthedocs.io/en/latest/installation.html#installing-the-latest-version-on-ubuntu-22-04-lts
sudo apt install autotools-dev automake libtool libleptonica-dev # https://ocrmypdf.readthedocs.io/en/latest/jbig2.html
sudo apt-get install libimage-exiftool-perl perl-doc # https://wiki.ubuntuusers.de/ExifTool/
sudo apt install python3-pip cargo npm inkscape optipng scour librsvg2-bin  python3-scour # https://github.com/JoKalliauer/cleanupSVG

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *