-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora-steps
289 lines (237 loc) · 10 KB
/
fedora-steps
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
# vi:ft=sh
# == TODO ==
# kazam
# Super tux kart? (:
# ======
# Emoji fonts: https://gist.github.com/cole-h/8aab0ed9d65efe38496e8e27b96b6a3d
# No caso eu botei o arquivo direto em /etc/fonts/conf.d/
# Before scripting
Change hostname
Create ssh key pair and add to github (ssh-keygen -t ed25519)
Add flathub, because I started using flatpak version of kolourpaint.
Flatpak should already come installed on fedora.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Enable tap to click https://askubuntu.com/questions/1156192/how-to-enable-tap-to-click-in-libinput-on-ubuntu-19-04-x11-unity
(/usr/share/X11/xorg.conf.d/40-libinput.conf)
Maybe comment out the addition of /home/USER/bin in /etc/zprofile? Or maybe start using it, could be nice, too.
Maybe edit /etc/systemd/logind.conf, I prefer to set HandlePowerKey=ignore and
HandlePowerKeyLongPress=poweroff, I don\'t think we even need acpid
QUANDO EU USO O chsh PRA POR O ZSH, NÃO IMPORTA O QUE EU FAÇA,
NEM O ~/.profile NEM O ~/.zprofile ERAM LIDOS
DAÍ EU CRIEI O ARQUIVO /etc/profile.local. ISSO FUNCIONA NO
OPENSUSE TUMBLEWEED, MAS NÃO NO FEDORA. DAÍ EU ALTEREI O
ARQUIVO /etc/profile DIRETAMENTE MESMO
No fedora 37 simplesmente funciona o ~/.profile
I actually added GenericName to both Nautilus and Gnome Terminal desktop
entries (/usr/share/applications/org.gnome.{Nautilus,Terminal}.desktop)
GenericName=Nautilus
and
GenericName=Gnome Terminal
This is so it would appear in parenthesis these names when searching with rofi
After installing blueman, can change the /etc/bluetooth/main.conf to set this:
Experimental=true
This allows it to show the battery of devices
To install ruby, we probably need this first: sudo dnf install openssl1.1 openssl1.1-devel libyaml libyaml-devel
Libyaml and libyaml-devel is needed for 3.2, don\'t know about others
When compiling erlang, use KERL_BUILD_DOCS=yes
# === COMMANDS START HERE ===
# DNF configs
echo 'fastestmirror=False' >> /etc/dnf/dnf.conf
echo 'max_parallel_downloads=20' >> /etc/dnf/dnf.conf
echo 'defaultyes=True' >> /etc/dnf/dnf.conf
# Update. Usually takes forever
sudo dnf update -y
# RPM fusion
# https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# Movies, music etc
# https://docs.fedoraproject.org/en-US/quick-docs/assembly_installing-plugins-for-playing-movies-and-music/
sudo dnf install -y gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel
sudo dnf install -y lame\* --exclude=lame-devel
sudo dnf group upgrade -y --with-optional Multimedia
# sudo dnf group upgrade -y --with-optional Multimedia --allowerasing
# Change languages
echo "LANG=en_GB.UTF-8
LC_CTYPE="pt_BR.utf8"
LC_NUMERIC="pt_BR.utf8"
LC_TIME="pt_BR.utf8"
LC_COLLATE="pt_BR.utf8"
LC_MONETARY="pt_BR.utf8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="pt_BR.utf8"
LC_NAME="pt_BR.utf8"
LC_ADDRESS="pt_BR.utf8"
LC_TELEPHONE="pt_BR.utf8"
LC_MEASUREMENT="pt_BR.utf8"
LC_IDENTIFICATION="pt_BR.utf8"
LC_ALL=" >> /etc/locale.conf
# Gnome-mines and gedit, ultra important, right?
sudo dnf install -y gnome-mines gedit
# Gedit goofiness
gsettings set org.gnome.gedit.preferences.editor insert-spaces true
gsettings set org.gnome.gedit.preferences.editor tabs-size 2
gsettings set org.gnome.gedit.preferences.editor display-right-margin true
# More gnome settings because f*** bells
gsettings set org.gnome.desktop.wm.preferences audible-bell false
gsettings set org.gnome.desktop.sound event-sounds false
# Fuck, and I can't say it enough, bells
# Change /etc/inputrc and uncomment the line with 'set bell-style none' or create this line,
# or use ~/.inputrc or the file specified in INPUTRC environment variable to set it.
# Software to install
# Git e tmux já vêm instalados? Wtf. Jq também? Whaat. Acho que o curl também. :thinking:
# Wtf, Fedora não vem com patch e ed instalados??
sudo dnf install -y zsh util-linux-user xset xclip vlc gimp peek figlet acpi flameshot \
unclutter zoxide xinput pavucontrol alsa-plugins-pulseaudio ripgrep patch alacritty \
fd-find bat
# Discord
# Melhorar isso aqui
# mkdir -p ~/sources/discord-tar-balls
# mkdir -p ~/.local/bin
# cd ~/sources/discord-tar-balls
# wget -P ~/sources/discord-tar-balls -- 'https://discord.com/api/download?platform=linux&format=tar.gz'
# # tar -x -f '~/sources/discord-tar-balls/download?platform=linux&format=tar.gz' -C ~/sources/discord-tar-balls
# # ln -s ~/sources/discord-tar-balls/Discord/Discord ~/.local/bin/discord
# # mv ~/sources/discord-tar-balls/download\?platform=linux\&format=tar.gz discord-`discord -v | grep 'Discord [0-9]' | cut -d ' ' -f 2`.tar.gz
# cd ~
# AwesomeWM and xwallpaper
# xbacklight has been a pain on the new pc, dunno why ): gonna use light I guess
sudo dnf install -y awesome network-manager-applet xcompmgr autoconf automake pixman-devel \
xcb-util-image-devel xcb-util-devel libjpeg-turbo-devel libXpm-devel fontawesome-fonts \
lxappearance light xrandr slock numlockx blueman
# Rofi things
sudo dnf install -y rofi rofimoji
light -N 1
git clone [email protected]:frioux/charitable.git /home/lucas/.config/awesome/charitable
mkdir -p ~/sources
git clone [email protected]:stoeckmann/xwallpaper.git ~/sources/xwallpaper
cd ~/sources/xwallpaper
# Ok
sudo dnf install -y make gcc
./autogen.sh
./configure
make
sudo make install
cd ~
# Change shell to ZSH
chsh -s /usr/bin/zsh
mkdir -p ~/.cache/zsh/
# touch ~/.cache/zsh/history
git clone [email protected]:zdharma-continuum/fast-syntax-highlighting.git /home/lucas/.config/zsh/plugins/fast-syntax-highlighting/
# ASDF stuff
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0
# If want rtx instead of asdf
# curl https://rtx.pub/rtx-latest-linux-x64 > ~/rtx_bin_downloaded_for_now
# chmod +x ~/rtx_bin_downloaded_for_now
# sudo mv ~/rtx_bin_downloaded_for_now /usr/local/bin/rtx
# Since we have not sourced our configs yet, asdf is not in path.
# So, before using it, we have to manually execute this shell script.
. $HOME/.asdf/asdf.sh
# Same goes for rtx
# eval "$(rtx activate zsh)"
# rtx install neovim 0.8.3
# rtx install lua 5.4.3
# rtx install golang 1.18
# rtx global neovim 0.8.3
# rtx global lua 5.4.3
# rtx global golang 1.18
asdf plugin-add neovim
asdf plugin-add lua
asdf plugin-add golang
asdf install neovim 0.9.1
asdf install lua 5.4.3
asdf install golang 1.20.5
asdf global neovim 0.9.1
asdf global lua 5.4.3
asdf global golang 1.20.5
# Nvim?
# As coisas podem dar umas bugadas na hora de
# instalar o treesitter, vai precisar instalar:
sudo dnf in -y gcc-c++ libstdc++ libstdc++-devel
sudo dnf in -y readline-devel
luarocks install luaprompt
mkdir -p ~/.local/bin/
# Comment just to remind that with rtx, don't need to symlink
ln -s ~/.asdf/installs/lua/5.4.3/luarocks/bin/luap ~/.local/bin/luap
go install github.com/charmbracelet/glow@latest
# Install zoom, I guess
mkdir -p ~/Downloads
wget -P ~/Downloads -- https://zoom.us/client/latest/zoom_x86_64.rpm
sudo dnf in -y ~/Downloads/zoom_x86_64.rpm
# Get docker right
# https://docs.docker.com/engine/install/fedora/
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable docker.service
sudo systemctl start docker.service
getent group | grep docker >/dev/null 2>&1 || sudo groupadd docker
sudo usermod -aG docker "$USER"
# Now docker compose is a docker plugin already installed above
#sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# sudo chmod +x /usr/local/bin/docker-compose
# might have to log out and in, or run newgrp docker, to use docker without sudo
# My very simple dmenu
git clone [email protected]:lucassperez/dmenu-simple-build.git ~/sources/dmenu
cd ~/sources/dmenu
sudo dnf in -y libXinerama-devel libXft-devel
make
sudo make install
cd ~
# pulsemixer
wget -P ~/.local/bin/ https://raw.githubusercontent.com/GeorgeFilipkin/pulsemixer/master/pulsemixer && chmod +x .local/bin/pulsemixer
# kolourpaint is a KDE thing and installs shitloads of dependencies,
# so I left it separated here
# sudo dnf install -y kolourpaint
# I'm using flatpak here now
# This needs confirmation, should go at the top of the script, at the before start.
# flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub org.kde.kolourpaint
# Clipmenu
# First, clipnotify + dependencies and then clipmenu
mkdir -p ~/sources
git clone [email protected]:cdown/clipnotify.git ~/sources/clipnotify
sudo dnf in -y libXfixes-devel xsel
cd ~/sources/clipnotify
make
sudo make install
git clone [email protected]:cdown/clipmenu.git ~/sources/clipmenu
cd ~/sources/clipmenu
sudo make install
cd ~
# Xplugd
# Don't forget to create xplugrc AND make it executable!
mkdir -p ~/sources
git clone [email protected]:troglobit/xplugd.git ~/sources/xplugd
sudo dnf in -y libX11-devel libXi-devel libXrandr-devel
cd ~/sources/xplugd
./autogen.sh
./configure
make
sudo make install
cd ~
# Yaru colors? [email protected]:Jannomag/Yaru-Colors.git
# https://github.com/Jannomag/Yaru-Colors
# sct
mkdir -p ~/sources
git clone https://github.com/faf0/sct ~/sources/sct
cd ~/sources/sct
make
sudo make install
cd ~
# tig
sudo dnf in -y tig
# I like having plain vim as well
sudo dnf in -y vim
# Weird stuff
sudo mv /usr/bin/vi /usr/bin/vi-that-came-installed
sudo ln -s /usr/bin/vim /usr/bin/vi
# Nice program. In fedora, the "rename"
# does not work like sed, but rnm does.
# Yay!
mkdir -p ~/.local/bin/
wget -P ~/.local/bin/ -- https://raw.githubusercontent.com/circulosmeos/rnm/master/rnm
chmod +x ~/.local/bin/rnm
# Customize gdm login screen? I can only run it correctly when in gnome, though.
# So gotta do it before login in to awesome or other wm.
flatpak install io.github.realmazharhussain.GdmSettings