summaryrefslogtreecommitdiff
path: root/guides/setups/operating-systems/opensuse.org
blob: 1d4a7a9058f94f7c80d920069766ee816e581ca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
* Post-installation setup
** System settings
*** Workspace Behavior
- Virtual Desktops
  - 1 row, 4 desktops
*** Window Management
- Task Switcher
  - Visualization: Thumbnail Grid
*** Shortcuts
- Dolphin
  - Default shortcut: =Meta+F=
- Custom Shortcuts Service
  - Launch Konsole: disable =Ctrl+Alt+T=
- KRunner
  - KRunner: disable =Alt+Space=
- KWin
  - Active Window Demanding Attention: disable =Ctrl+Alt+A=
  - Maximize Window: =Meta+Up=
  - Switch to Next Desktop: =Ctrl+Alt+Right=
  - Switch to Previous Desktop: =Ctrl+Alt+Left=
  - Walk Through Windows of Current Application: disable =Alt+`=
  - Walk Through Windows of Current Application (Reverse): disable =Alt+~=
  - Window to Desktop /n/: =Ctrl+Alt+n=
- Plasma
  - Enable Clipboard Actions: disable =Ctrl+Alt+X=
  - Manually Invoke Action on Current Clipboard: disable =Ctrl+Alt+R=
- Session Management
  - Lock Session: disable =Ctrl+Alt+L=
- Custom Shortcuts:
  - Run editor :: =Meta+E= ⇒ ~emacs~
  - Run web browser :: =Meta+W= ⇒ ~firefox~
  - Run editor :: =Meta+T= ⇒ ~terminator~
  - End session :: =Meta+X= ⇒ ~qdbus-qt5 org.kde.ksmserver /KSMServer logout 1 -1 0~
*** Input devices
- Keyboard
  - Layouts
    - Alternative shortcut: unset
    - Variant: French (legacy, alt.)
  - Advanced
    - [X] Configure keyboard options
      - [X] Caps Lock behavior: Make Caps Lock an additional Ctrl
** Dotfiles
*** =.profile=
#+begin_src sh
if test -d ~/.local/bin
then
    export PATH=~/.local/bin:${PATH}
fi

unset PAGER                     # breaks Python REPL in Emacs.
#+end_src
** Unset root password
https://en.opensuse.org/SDB:Administer_with_sudo
*** Fix eager ~sudo passwd -d root~
- boot on install media
- start rescue mode
- locate partition with ~lsblk~
- ~mount $PARTITION /mnt/disk~
- ~cp /mnt/disk/etc/shadow- /mnt/disk/etc/shadow~
** Global keyboard settings
#+begin_src sh
$ sudo localectl set-x11-keymap fr pc105 latin9 ctrl:nocaps
#+end_src
No idea how to get =ctrl:nocaps= to work for the TTY…
* HOWTO
** Open ports
#+begin_src sh
$ firewall-cmd --add-port=8000/tcp
#+end_src
To make permanent, either:
- run the command with =--permanent=, and restart ~firewalld~ for
  immediate application,
- run the command /a second time/ with =--permanent=,
- run ~firewall-cmd --runtime-to-permanent~.
** Fix broken Nvidia drivers after upgrade
Reinstall Nvidia kernel module:
#+begin_src sh
$ sudo zypper in -f nvidia-gfxG05-kmp-default
#+end_src
** Load X-Box gamepad drivers automatically
- comment out any blacklisting of =xpad= in =/etc/modprobe.d=
  (e.g. xboxdrv installs =/etc/modprobe.d/50-xpad.conf=)
  - if installed, make sure the xboxdrv service is disabled
- ~sudo tee /etc/modules-load.d/xpad.conf <<< xpad~
** Clear up some space for large upgrades
libc and compilers upgrades sometimes fail midway through because
there is no space left.  An easy way to reclaim some space is to
delete some filesystem snapshots:
#+begin_src sh
$ sudo snapper list
$ sudo snapper delete $start-$end
#+end_src