meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
digital:hardware:workstation [2018/10/03 13:43]
natrius
digital:hardware:workstation [2022/02/22 16:47] (current)
natrius
Line 1: Line 1:
-mein Rechner +Workstation 
-Diverse Infos zu meinem Gerät bzw. spezifischen Einstellungen+ 
 +Various things i had to change on my workstation.
  
 ## Learn Linux ## Learn Linux
 +
   * http://overthewire.org/wargames/bandit/bandit0.html   * http://overthewire.org/wargames/bandit/bandit0.html
-  *  +  * VIM https://mariobytes.wordpress.com/2018/10/03/beginners-guide-to-vim/ 
- +  * https://www.youtube.com/channel/UCP2bshADPrVMoNrdJvZEQzw 
-## Ausstattung +  * https://linuxjourney.com/ 
-  * **Tower**Fantec +  * http://www.tipsandtricks.ga/2018/10/20-linux-command-tips-and-tricks-that.html (https://www.reddit.com/r/linux4noobs/comments/9nw7o9/20_linux_command_tips_and_tricks_that_will_save/)
-  * **Mainboard**: +
-  * **CPU**: i5-3557k +
-  * **RAM**16GB  +
-  * **GPU**Nvidia GeForce GTX970 +
- +
-### Eingabegeräte +
-  * **Monitor**2x Dell U2311H +
-  * **Maus**Zowie +
-  * **Tastatur**: Cherry MX3.0+
  
 ## Dualboot ## Dualboot
 +
 Erst Windows, dann Linux, damit der Bootloader korrekt installiert wird. Umgedreht kann es sein, dass direkt in Windows gebooted wird, ohne Auswahlmöglichkeit für Linux - dann muss der Bootloader von Linux einfach neu installiert werden. Erst Windows, dann Linux, damit der Bootloader korrekt installiert wird. Umgedreht kann es sein, dass direkt in Windows gebooted wird, ohne Auswahlmöglichkeit für Linux - dann muss der Bootloader von Linux einfach neu installiert werden.
  
 ### Zeitprobleme ### Zeitprobleme
-Wer Windows und Linux im DualBoot verwendet, wird vielleicht festgestellt haben, dass es immer wieder Probleme mit der Uhrzeit gibt, die mal um 1 oder 2 Stunden abweichen kann. Das liegt daran, dass Windows und Unix-Systeme ihre Uhrzeiten anders in der internen Systemuhr abspeichern. Unix-Systeme speichern historisch ihre Zeit in UTC ab, Windows-Systeme in Lokalzeit (bei uns zur Zeit UTC+2). Zur Wahl stehen drei Möglichkeiten: 
  
-- Damit leben+Wer Windows und Linux im DualBoot verwendet, stellt schnell fest, dass es immer wieder Probleme mit der Uhrzeit gibt, die mal um 1 bis 2 Stunden abweichen kann. Das liegt daran, dass Windows und Unix-Systeme ihre Uhrzeiten anders in der internen Systemuhr abspeichern. Unix-Systeme speichern historisch ihre Zeit in UTC ab, Windows-Systeme in Lokalzeit (bei uns zur Zeit UTC+2). Zur Wahl stehen drei Möglichkeiten: 
 + 
 +  - Damit leben
   - Linux so hacken, dass es Lokalzeit verwendet   - Linux so hacken, dass es Lokalzeit verwendet
   - Windows so hacken, dass es Weltzeit verwendet   - Windows so hacken, dass es Weltzeit verwendet
  
-Nummer 1 ist langweilig. Nummer zwei wäre möglich, aber eigentlich wechselt man die Zeitzone viel zu oft (zum Beispiel beim Wechsel zwischen Sommer- und Winterzeit), als dass das eine einfache, gute und praktikable Lösung zu sein scheint. Also bleibt drittens übrig.+Nummer 1 ist langweilig. Nummer zwei wäre möglich, aber die Zeitzone wird viel zu oft gewechselt (zum Beispiel beim Wechsel zwischen Sommer- und Winterzeit), somit ist das keine einfache, gute und praktikable Lösung. Also bleibt drittens übrig.
  
-Und es ist relativ einfach, denn man muss nur einen Registry-Schlüssel ändern und schon sind diese Probleme gelöst. Man öffnet das Programm „regedit“ und sucht den Schlüssel+Man muss nur einen Registry-Schlüssel ändern und schon sind diese Probleme gelöst. Man öffnet das Programm „regedit“ und sucht den Schlüssel
  
 <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation</code> <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation</code>
  
-hat man diesen gefunden, fügt man dort den DWORD (32Bit) Wert 00000001 unter dem Namen RealTimeIsUniversal“ ein. Und Voila: Windows verwendet die Hardware-Uhr in UTC. Ich habe da auch mal ein Registryfile vorbereitet (win7utcClock.reg), wem das zu schwer ist. Einfach die Datei in eine .reg-Datei umbenennen (also die .txt-Endung entfernen) und los gehts.+dort ''DWORD (32Bit)'' mit dem Wert ''00000001'' unter dem Namen ''RealTimeIsUniversal'' ein. Und Voila: Windows verwendet die Hardware-Uhr in UTC.
  
 ## Linux ## Linux
-### Ubuntu Nvidia Treiber 
-Kontrolle, was installiert ist und welche Treiber empfohlen werden 
-    ubuntu-drivers devices 
  
-PPA hinzufügen +### Linux commands everybody should know 
-    sudo add-apt-repository ppa:graphics-drivers/ppa+ 
 +  * https://raspberrytips.com/raspberry-pi-commands/ 
 + 
 +  * ifconfig is deprecated, you should use ip instead https://p5r.uk/blog/2010/ifconfig-ip-comparison.html 
 +  * service and update-rc.d are deprecated, you should use systemctl instead https://unix.stackexchange.com/questions/300053/what-commands-are-deprecated-by-systemd/300061#300061 
 + 
 +<code>find /home/pi -iname *.tar.gz</code> will not work, because the asterisk will do shell expansion. 
 +<code>find /home/pi -iname "*".tar.gz</code> should do the job 
 + 
 +### Audioswitch Frontpanel (Headphone) - Backpanel (Speakers) 
 + 
 +Open Alsamixer <code>alsamixer</code> and change <code>Analog Output</code> from **"Multichannel"** to **"Stereo Headphones"**. 
 + 
 +#### Script 
 + 
 +https://www.computerbase.de/forum/threads/asus-xonar-dgx-unter-ubuntu-switch-frontpanel-backpanel.1724207/#post-20625405 
 +Save script somewhere where its always available, drag&drop it in the taskbar and click once for switching between Headphones and Speakers. 
 + 
 +<code bash> 
 +#!/bin/bash 
 + 
 +STATE=$(amixer sget 'Analog Output',0 | grep Item0 | cut -d "'" -f2) 
 + 
 +if [ "$STATE" = "Multichannel"
 +then 
 +  amixer sset 'Analog Output',0 'Stereo Headphones FP' > /dev/null 
 +else 
 +  amixer sset 'Analog Output',0 'Multichannel' > /dev/null 
 +fi 
 +</code> 
 + 
 +### Game opens on the wrong monitor
  
-    sudo apt update+To work around this on KDE, I created the following specific Window Behaviour rule:
  
-Für GTX 970 +  - 1) System Settings -> Window Behaviour 
-    sudo apt install nvidia-390+  - 2) Choose Window Rules on the left 
 +  - 3) Click New 
 +  - 4) On the "Window matching" tab (first tab), enter the following 
 +    - 4.1) Enter any description 
 +    - 4.2) Set the Window class to "Exact Match" and enter "metroll" in the input box 
 +    - 4.3) Select all window types 
 +    - 4.4) Leave everything else as "Unimportantl" and empty/unchecked 
 +  - 5) On the "Size & Position" tab 
 +    - 5.1) Check the "Screen" checkbox 
 +    - 5.2) Set the option to Force 
 +    - 5.3) Change the value to the correct monitor (in my case 1) 
 +  - 6) Click ok 
 +  - 7) Click Apply 
 +  - 8) Try restart Metro Last Light
  
-Gerät Neustarten+## Windows
  
-### LTSpice +### After installing
-Install wine first +
-    sudo apt-get install wine+
  
-Download LTspice via http://www.analog.com/en/design-center/design-tools-and-calculators/ltspice-simulator.html+  - https://github.com/Sycnex/Windows10Debloater 
 +  https://github.com/bmrf/tron/blob/master/README.md#use
  
-Click on LTspiceIv.exe and open with wine. Wine will install the program and create a shortcut for you.+### CHKDSK
  
 +Run in the following order to ensure minimum runtime. The third one just if really needed - the first one is read only and will tell you more.
  
 +  - Chkdsk
 +  - Chkdsk /f
 +  - Chkdsk /r