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

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

Musik und “Videos” aus­blenden:

Windows Registry Editor Version 5.00

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

[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
  • “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


if [ -f "/etc/debian_version" ]; then
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

sudo apt-get -y install
sudo dpkg --configure -a

do-release-upgrade -d

sudo apt-get -y install
sudo apt-get dist-upgrade

sudo dpkg --configure -a
sudo apt --fix-broken install

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
sudo add-apt-repository ppa:ubuntu-x-swat/updates
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

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
sudo dnf update --refresh
sudo dnf upgrade # --best --allowerasing

flatpak update
sudo flatpak update

fwupdmgr refresh --force
fwupdmgr get-updates
fwupdmgr update
fi



##Gratis

#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 inkscape 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 gimp #edit Rastergrapfics
sudo dnf install gnuplot
sudo dnf install librsvg2-tools

#Amber
sudo apt install python-nose

#Programme
sudo apt install make
sudo apt install baobab # Festplatten-Belegungs-Analyse
sudo apt-get install gnome-tweaks  # gnome einrichten
sudo dnf install chromium #Einige *.svg bzw webseiten werden in Firefox nicht richtig angezeigt
sudo dnf install zoom #Konferenzen
sudo dnf install libreoffice-writer libreoffice-calc libreoffice-impress #MS office ersatz
sudo dnf install vlc
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
 sudo dnf install geany geany-plugins-lineoperations #my favourite texteditor
fi
sudo dnf install owncloud-client owncloud-client-nautilus owncloud-client-nemo
sudo dnf install xournalpp #edit pdfs

sudo dnf install qalculate

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

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 *