-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux.html
164 lines (164 loc) · 6.46 KB
/
linux.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<html>
<head>
<title>New Linux Machine Setup</title>
</head>
<body>
<ol>
<li>
Firefox
<ul>
<li>Sign in to sync passwords</li>
</ul>
</li>
<li>
Git
<ul>
<li>Install (if not already present)</li>
<li>git config --global user.name "Jeremy Leland"</li>
<li>git config --global user.email "[email protected]"</li>
</ul>
</li>
<li>
Visual Studio Code
<ul>
<li>Install git</li>
<li><a href='https://go.microsoft.com/fwlink/?LinkID=760868'>.deb package</a></li>
<li><a href='https://code.visualstudio.com/docs/setup/linux'>Instructions</a></li>
<li>Sign in with GitHub</li>
<li>Preferences: Window: Title Bar Style: native</li>
<li>Preferences: Window: Menu Bar Visibility: toggle</li>
</ul>
</li>
<li>Steam</li>
</ol>
<ul>
<li>
Steam
<ul>
<strike><li><a href="https://www.dedoimedo.com/computers/steam-linux-4k-scaling.html">Fix DPI</a> with -forcedesktopscaling=1.25</li></strike>
<li>
HiDPI on Fedora: sudo flatpak override com.valvesoftware.Steam --env=STEAM_FORCE_DESKTOPUI_SCALING=1.25
</li>
<li><a href="https://www.phoronix.com/news/Linux-Splitlock-Hurts-Gaming">Turn off split-lock mitigation</a>
<ul>
<li>echo kernel.split_lock_mitigate=0 | sudo tee /etc/sysctl.d/10-farcry6-settings.conf</li>
<li>sudo sysctl -p</li>
</ul>
</li>
</ul>
</li>
<li>
VS Code
<ul>
<li><a href="https://code.visualstudio.com/docs/setup/linux">Linux Setup</a></li>
<li>OpenSUSE: Or maybe opi vscode? Not sure what difference is</li>
<li>Monaco font (<a href="https://github.com/probil/Monaco-IDE-font">GitHub</a>)
<ol>
<li>Put <a href="./conf/Monaco.ttf">Monaco.ttf</a> into your ~/.fonts</li>
<li>Update font cache by running: fc-cache -f -v</li>
</ol>
</li>
<li>
Git
<ol>
<li>Set your username: git config --global user.name "Jeremy Leland"</li>
<li>Set your email address: git config --global user.email "[email protected]"</li>
</ol>
</li>
</ul>
</li>
<li>
Vim
<ul>
<li><a href="https://github.com/junegunn/vim-plug">vim-plug</a> (added to .vimrc)</li>
<li>
<a href="https://github.com/neoclide/coc.nvim">coc</a>
<ul>
<li>Needs node.js (zypper install nodejs21)</li>
<li>:CocInstall coc-json coc-tsserver (added to .vimrc)</li>
</ul>
</li>
<li><a href="./conf/vimrc">.vimrc</a></li>
</ul>
</li>
<li>
Codecs
<ul>
<li>zypper install mozilla-openh264</li>
<li>zypper install opi</li>
<li>opi codecs</li>
<li><a href="https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/">On Fedora</a></li>
<li><a href="https://discussion.fedoraproject.org/t/unable-to-play-h-265-video/70827">Simpler command here</a></li>
<li>sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm && sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin && sudo dnf groupupdate sound-and-video</li>
<li>For libdvdcss, first: sudo dnf install rpmfusion-free-release-tainted</li>
</ul>
</li>
<li>
Wallpaper
<ul>
<li><a href="./wallpapers/wp7585221-autumn-2560x1440-wallpapers.jpg">Autumn</a> (2560x1440)</li>
<li><a href="./wallpapers/forest_fog_trees_126479_1920x1080.jpg">Forest Fog Trees</a> (1920x1080)</li>
</ul>
</li>
<li>
Hostname: hostnamectl set-hostname Todd
</li>
<li>
WiFi
<ul>
<li>MacBook Air (Mid 2012, MacBookAir5,1) needs bcmwl-kernel-source for networking</li>
<li>Realtek RTL88x2bu [AC1200 Techkey] needs <a href="https://github.com/RinCat/RTL88x2BU-Linux-Driver?tab=readme-ov-file#using-dkms-dynamic-kernel-module-support">rtw_8822bu</a>, seems to be in later 6.x series kernels</li>
</ul>
</li>
<li>
Hibernate
<ul>
<li>https://forums.linuxmint.com/viewtopic.php?t=357914</li>
<li>https://forums.linuxmint.com/viewtopic.php?t=284100</li>
</ul>
</li>
<li>
VPN: Private Internet Access
<ul>
<li><a href="https://www.privateinternetaccess.com/download/linux-vpn">Download</a></li>
<li>Login saved in browser Password Manager</li>
<li><b>Inhibit sleep for downloads and uploads in QBittorrent!</b></li>
</ul>
</li>
<li>
Printer (OpenSUSE, in progress)
<ul>
<li>Add user to "lp" group</li>
<li>Disable firewall (figure out why? https://lemmy.world/post/11317523)</li>
<li>Make sure epson2 is uncommented in /etc/sane.d/dll.conf</li>
<li>Optional: Add IP manually to /etc/sane.d/epson2.conf (not needed if firewall disabled)</li>
</ul>
</li>
<li>
EMACS-like keyboard navigation
<ul>
<li>On Windows, use <a href="https://github.com/usuyama/emacs-like-key-bindings-windows">this</a> AutoHotKey script</li>
<li>On Linux, I'm using <a href="https://github.com/wez/evremap">evremap</a> with <a href="./conf/emacs-like.toml">this</a> config</li>
<li>See directions for Systemd on GitHub page, remember to copy bin to /usr/bin/evremap and config file to /etc/evremap.toml</li>
<li>More suggestions <a href="https://lemmy.world/post/12205671">here</a></li>
<li>On Debian, I'm using <a href="https://github.com/rvaiya/keyd">keyd</a>, which has fewer dependencies</li>
</ul>
</li>
<li>
Samba
<ul>
<li>sudo apt install samba</li>
<li>sudo vim /etc/samba/smb.conf</li>
[MEDIA]
path = /mnt/external
browsable = yes
guest ok = yes
writable = yes
read only = no
<li>sudo systemctl restart smbd</li>
<li>sudo ufw allow samba</li>
</ul>
</li>
</ul>
</body>
</html>