-
Notifications
You must be signed in to change notification settings - Fork 0
/
00_debian-fresh-install.txt
1341 lines (1085 loc) · 42.8 KB
/
00_debian-fresh-install.txt
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Programs to Create Bootable USB Drives:
https://rufus.ie/en/ (Recommended for Windows users)
https://etcher.balena.io/
Debian: https://www.debian.org/
Firmware:
https://cdimage.debian.org/images/unofficial/non-free/firmware/
Download (Recommended):
https://www.debian.org/download
debian-xx.x.x-amd64-netinst.iso
Debian Live Images:
https://unix.stackexchange.com/questions/307251/is-there-a-try-debian-without-install-option
https://www.debian.org/CD/live/
Debian-12-bookworm firmware:
https://cdimage.debian.org/images/unofficial/non-free/firmware/bookworm/12.0.0/
File: firmware.zip
A Basic Guide:
https://phoenixnap.com/kb/how-to-install-debian-10-buster
Troubleshoot Blank Screen after crossing the GRUB Menu section:
https://forums.debian.net/viewtopic.php?t=63844
Press 'e' when the GRUB appears.
Find the line containing 'ro quiet'.
Add the following commands to the end of the line,
splash nomodeset
CTRL+x [NOTE: On VirtualBox, use the Soft Keyboard from the menu bar.]
Once you enter the desktop:
Add the current user to sudoers:
su
sudo su root
sudo nano /etc/sudoers
Find the section:
#User privilege specification
root ALL=(ALL:ALL) ALL
Then, add your username there as described below.
-------------------------------------
#User privilege specification
root ALL=(ALL:ALL) ALL
yourusername ALL=(ALL: ALL) ALL
-------------------------------------
Reboot the system.
sudo reboot now
Add the current user to sudoers again by doing:
sudo usermod -aG sudo $(whoami)
Edit the GRUB Bootloader:
https://unix.stackexchange.com/questions/538562/how-do-i-edit-grub-cfg-and-save-it
sudo nano /etc/default/grub
Find the line containing 'ro quiet'
Add the following in the same line
splash nomodeset
sudo update-grub
sudo update-grub2
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
https://serverfault.com/questions/717725/journalctl-access-for-non-root-users
sudo usermod -a -G systemd-journal $(whoami)
sudo reboot now
Update the system:
yes | sudo apt update && sudo apt upgrade
Do the following:
# =================================================================
# # https://askubuntu.com/questions/800155/service-command-not-found
# service: command not found
# Solve the problem by adding
# export PATH="$PATH:/usr/sbin"
# to your .bashrc, .bash_aliases, .bash_profile, .profile
# =================================================================
echo "export PATH="'"$PATH:/usr/sbin"'"" >> ~/.bash_profile
echo "export PATH="'"$PATH:/usr/sbin"'"" >> ~/.bashrc
echo "export PATH="'"$PATH:/usr/sbin"'"" >> ~/.bash_aliases
echo "export PATH="'"$PATH:/usr/sbin"'"" >> ~/.profile
Add $HOME/.local/bin/ to the PATH for pip/cargo/pipx etc.:
echo "export PATH="'"$HOME/.local/bin/:$PATH"'"" >> ~/.bash_profile
echo "export PATH="'"$HOME/.local/bin/:$PATH"'"" >> ~/.bashrc
echo "export PATH="'"$HOME/.local/bin/:$PATH"'"" >> ~/.bash_aliases
================================================================================
===================================== IMPORTANT ================================
Install basic packages:
This install script contains the most essential
packages that you'll end up installing anyway.
Run the BASH Script '01_debian_essential.sh' first.
chmod +x 01_debian_essential.sh
./01_debian_essential.sh
================================================================================
Disable Swap if you have SSDs and more than 3GB of RAM:
https://www.tecmint.com/disable-swap-partition-in-centos-ubuntu/
Install the most essential core build tool:
sudo apt install build-essential dkms module-assistant linux-headers-$(uname -r)
Install the common properties package (will be needed later):
yes | sudo apt install software-properties-common
Install 'c': Use C as a shell scripting language:
https://github.com/ryanmjacobs/c
cd ~/
sudo apt install build-essential trash-cli
wget https://raw.githubusercontent.com/ryanmjacobs/c/master/c
sudo install -m 755 c /usr/bin/c
trash c
Enable Backports (not recommended):
https://backports.debian.org/Instructions/
https://linuxconfig.org/how-to-install-and-use-debian-backports
sudo nano/vim/mousepad /etc/apt/sources.list
Add these two lines:
deb http://ftp.debian.org/debian trixie-backports main
deb-src http://ftp.debian.org/debian trixie-backports main
*** NOTE: Always check for the appropriate VERSIONS.
VERSIONS should not mismatch even in the future. ***
bookworm(stable) < trixie(testing)
More info: https://www.debian.org/releases/
yes | sudo apt update
yes | sudo apt install -t trixie-backports <package>
Or,
yes | sudo aptitude install <package>/trixie-backports
However, Debian Trixie has not been released yet.
Debian-XFCE Net-Install ISO didn't install any calculator app.
sudo apt install gnome-calculator
Install GVim+Vim:
apt search vim-gtk
sudo apt install vim-gtk3
Or, if you do not want the GUI Vim,
sudo apt install vim
If you're on a VM, see the text file 'virtualbox-ms-win.txt'.
Partitioning Drives:
https://techencyclopedia.wordpress.com/2020/04/21/debian-10-manual-partition-for-boot-swap-root-home-tmp-srv-var-var-mail-var-log/
# LSB support:
# sudo apt install lsb-release
Codecs:
https://www.sys-hint.com/1075-Installing-Multimedia-Codecs-on-Debian-10
https://phoenixnap.com/kb/add-apt-repository-command-not-found-ubuntu
yes | sudo apt install software-properties-common
yes | sudo apt-add-repository non-free
yes | sudo apt-add-repository contrib
# https://serverfault.com/questions/240920/how-do-i-enable-non-free-packages-on-debian
yes | sudo apt-add-repository --component non-free
# Edit /etc/apt/sources.list with sudo privileges
# sudo nano /etc/apt/sources.list
# Add the following lines if these lines are not present.
# If the lines are found commented, uncomment the lines.
---
deb http://deb.debian.org/debian/ bookworm non-free main contrib non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm non-free main contrib non-free-firmware
deb http://security.debian.org/debian-security bookworm-security non-free main contrib non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security non-free main contrib non-free-firmware
deb http://deb.debian.org/debian/ bookworm-updates non-free main contrib non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-updates non-free main contrib non-free-firmware
---
yes | sudo apt update && sudo apt upgrade
yes | sudo apt install firmware-linux-nonfree
# Intel CPU support:
sudo apt install software-properties-common apt-transport-https ca-certificates curl -y
sudo apt install i965-va-driver-shaders
sudo apt install intel-media-va-driver-non-free
sudo apt install xserver-xorg-video-intel
sudo apt install mesa-utils
sudo apt install intel-opencl-icd intel-media-va-driver-non-free libmfx1
#
# ==============================================================================
# Edit the GRUB Bootloader Menu after installing drivers from Intel:
#
# sudo mousepad /etc/default/grub
# https://askubuntu.com/questions/1383040/no-dev-dri-directory-in-ubuntu-server-20-04
# https://askubuntu.com/questions/1153746/intel-graphics-card-not-bound-to-driver-after-nvidia-driver-installed-ubuntu-18/1154067#1154067
#
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
#https://askubuntu.com/questions/1383040/no-dev-dri-directory-in-ubuntu-server-20-04
#https://askubuntu.com/questions/1153746/intel-graphics-card-not-bound-to-driver-after-nvidia-driver-installed-ubuntu-18/1154067#1154067
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.alpha_support=1"
# Change this line
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
# to
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.alpha_support=1"
# (*** uncommented).
# Update GRUB:
# https://itsfoss.com/update-grub/
#
# sudo update-grub
# sudo grub-mkconfig -o /boot/grub/grub.cfg
# ==============================================================================
#
# Intel HW-Acceleration (didn't work. You might need the following packages later).
# sudo apt install jellyfin jellyfin-ffmpeg5 jellyfin-server jellyfin-web
# See jellyfin.txt for details.
# yes | sudo apt install vlc (Choose the Flatpak version. Do it later.)
yes | sudo apt install libavcodec-extra
yes | sudo apt install libdvdread4 libdvdcss2
yes | sudo dpkg-reconfigure libdvd-pkg
# Winamp alternative
# https://www.reddit.com/r/Ubuntu/comments/tno11g/looking_for_a_winamp_equivalent_for_ubuntu/
sudo apt install audacious
# HDMI Display support:
yes | sudo apt install autorandr
yes | sudo apt install arandr
MS Core Fonts:
https://www.linuxcapable.com/how-to-install-microsoft-fonts-on-debian-linux/
yes | sudo apt update && sudo apt upgrade
yes | sudo apt-add-repository contrib non-free
If the command fails,
yes | sudo apt install software-properties-common
Install MS Fonts,
yes | sudo apt update && sudo apt upgrade
yes | sudo apt-add-repository contrib non-free
yes | sudo apt install ttf-mscorefonts-installer
# https://averagelinuxuser.com/microsoft-fonts-linux/#:~:text=Calibri%20and%20Cambria%20fonts,-Unfortunately%2C%20this%20package&text=These%20Google%20fonts%20are%20metric,package%20manager%20and%20install%20them
yes | sudo apt install fonts-crosextra-carlito fonts-crosextra-caladea && \
sudo fc-cache
# Display dialog boxes
yes | sudo apt install zenity
Themes and Icons:
Search the web version of the Debian repository for the package.
search the apt repo from the command line.
Gray Bird:
apt search greybird-gtk-theme
yes | sudo apt install greybird-gtk-theme
Papyrus:
apt search papirus-icon-theme
yes | sudo apt install papirus-icon-theme
PRO-dark-XFCE-4.14
https://www.xfce-look.org/p/1207818/
Extract to: /usr/share/themes
sudo thunar /usr/share/themes
tar -xvf PRO-dark-XFCE-4.14.tar.xz
sudo cp -r PRO-dark-XFCE-4.14/ /usr/share/themes/PRO-dark-XFCE-4.14
sudo thunar /usr/share/themes
sudo chmod -R 755 /usr/share/themes/PRO-dark-XFCE-4.14
Add Wisker Menu and delete 'Applications Menu' (from the extreme left):
Right-click on the Panel (found on the top of the screen),
Panel Preferences -> Items -> Add -> Whisker Menu
-> Delete -> Window Buttons
-> Add -> Weather Update
Set the SUPER (WINDOWS) Key to open Whisker Menu:
Settings -> Keyboard -> Application Shortcuts - Add
/usr/bin/xfce4-popup-whiskermenu
Right-click on the Clock -> Properties -> Select a Clock/Date Format
Open Thunar File Manager.
Edit -> Configure custom actions...-> Add (+)
Name: Kitty Here
Description: Kitty Terminal Emulator in this Directory Tree
Submenu:
Command: kitty --directory %f
Appearance Conditions TAB:
File Pattern: *
Range (min-max):
Appears if selection contains:
Directories ** (CHECK)
Edit -> Configure custom actions...-> Add (+)
Name: Sakura TE Here
Description: Open Sakura Terminal Emulator Here
Submenu:
Command: sakura %f
Appearance Conditions TAB:
File Pattern: *
Range (min-max):
Appears if selection contains:
Directories ** (CHECK)
Edit -> Configure custom actions...-> Add (+)
Name: GITK
Description: Open GITK in this folder
Submenu:
Command: gitk %f
Appearance Conditions TAB:
File Pattern: *
Range (min-max):
Appears if selection contains:
Directories ** (CHECK)
Edit -> Configure custom actions...-> Add (+)
Name: Giggle
Description: GUI GIT Client
Submenu:
Command: giggle %f
Appearance Conditions TAB:
File Pattern: *
Range (min-max):
Appears if selection contains:
Directories ** (CHECK)
Name: Duration of all video files
Command: xfce4-terminal -e "bash -c '$HOME/shell/ffmpeg_scripts/linux/duration-total.sh';read"
File pattern: *
Appears if selection contains: Directories
Icon: alarm-clock-triggered
# * Written by Anthropic Claude 3.5 Haiku
Name: Duration of Selected Video Files
Command: $HOME/.local/share/applications/thunar-video-duration-action.sh %F
File pattern: *.mp4;*.avi;*.mkv;*.mov;*.wmv;*.webm;*.MP4;*.AVI;*.MKV;*.MOV;*.WMV;*.WEBM
Appears if selection contains: Video Files
Icon: alarm-clock-triggered
# Prerequisites:
# sudo apt install ffmpeg zenity bc
# chmod +x $HOME/.local/share/applications/thunar-video-duration-action.sh
Name: Mediainfo-GUI
Description: technical and tag information about a video or audio file
Submenu:
Command: mediainfo-gui %f
Appearance Conditions TAB:
File Pattern: *
Range (min-max): *
Appears if selection contains: Video Files
Icon: camera-video
# https://www.howtogeek.com/strip-photo-metadata-with-linux-exiftool/
Name: Strip Metadata
Command: exiftool -all= %F
File pattern: *
Appears if selection contains: Image Files
Icon: view-list-images
https://www.baeldung.com/linux/files-remove-metadata
Name: MAT2: Clean Metadata
Command: mat2 %F
File pattern: *
Appears if selection contains: Text+Audio+Video+Image+Other Files (except for Directories)
Icon: application-pdf
Name: Create symlink
Command: ln -Ts %f %n" (symlink)"
File pattern: *
Appears if selection contains: Directories, other files (or, tick all the boxes)
Name: Convert to ODT
Command: unoconv -f odt %F
File pattern: *.doc;*.docx
Appears if selection contains: Other files
Icon: google-docs
Name: Convert to DOCX
Command: unoconv -f docx %F
File pattern: *.odt;*.odp;*.ods
Appears if selection contains: Other files
Icon: google-docs
Name: Export to PDF
Command: unoconv -f pdf %F
File pattern: *.doc;*.docx;*.odt;*.odp;*.pps;*.ppt;*.xls;*.xlsx;*.ods;*.pptx
Appears if selection contains: Other files
Icon: application-pdf
Note: You will need unoconv package for all following actions.
sudo apt install unoconv (360MB)
Type man unoconv for details.
Name: Download subtitles
Command: ~/.local/bin/OpenSubtitlesDownload.py --gui=gnome %F
File pattern: *
Appears if selection contains: Video Files
Icon: gnome-subtitles
Note: You will need to follow the instructions on OpenSubtitlesDownload which requires python and zenity.
https://github.com/emericg/OpenSubtitlesDownload.git
mkdir -p ~/.local/share/nautilus/scripts/
cd ~/.local/share/nautilus/scripts/
wget https://raw.githubusercontent.com/emericg/OpenSubtitlesDownload/master/OpenSubtitlesDownload.py
chmod u+x OpenSubtitlesDownload.py
Name: Convert to JPEG
Command: convert %f -quality 75 %f.jpg
File pattern: *.png;*.webp
Appears if selection contains: Image Files
Name: ProRes to MP4 8 bits
Command: xfce4-terminal -e "bash -c 'ffmpeg -i %f -c:v mjpeg -q:v 0 -crf 0 -preset ultrafast -an %f-2.mov && ffmpeg -i %f-2.mov -c:v libx264 -q:v 0 -preset fast -crf 16 -aspect 16:9 -an %f-3.mov && trash %f-2.mov; read'"
File pattern: *
Appears if selection contains: Video files
Icon: application-video
Name: Open with Exiftool
Command: xfce4-terminal -e "bash -c 'exiftool %f; read'"
File pattern: *
Appears if selection contains: Image Files
Icon: emblem-information
The bash -c with the read command ensures that the terminal window stays open after displaying the metadata, giving you time to review the information before the window closes.
Name: MediaInfo-CLI
Command: xfce4-terminal -e "bash -c 'mediainfo %f; read'"
File pattern: *
Appears if selection contains: Video Files
Icon: camera-video
Thunar - Custom Actions:
https://docs.xfce.org/xfce/thunar/custom-actions#create_a_symbolic_link
https://help.ubuntu.com/community/ThunarCustomActions
Find the XFCE Dock at the bottom of the screen.
Display TAB -> Measurements -> Automatically increase the length (CHECK)
Items TAB -> Add (+) -> Window Buttons
Configure Window Buttons -> Appearance -> UNCHECK 'Show button labels'
-> Behaviour -> CHECK 'Group windows by application'
Settings -> Appearance -> Style -> PRO-dark-XFCE-4.14
Turn on 'Set matching Xfwm4 theme if there is one'
-> Icons -> ePapirus/Vimix/Flat-Remix-Green-Light-darkPanel
Window Manager -> Style - > PRO-dark-XFCE-4.14
Settings -> Settings Editor -> xfwm4 -> button_layout -> CMHS|O [Close, Maximise, Minimise, in that order]
-> xsettings -> FontName -> Sans 9
Add an 'App Finder' using Rofi:
yes | sudo apt install rofi
# Settings -> Keyboard -> Application Shortcut -> Add
# rofi -combi-modi window,drun,ssh -theme solarized -font "hack 10" -show combi -icon -theme "papyrus" -show-icons
# SUPER (WINDOWS) + SPACE
# Additional 'rofi' themes:
# rofi -combi-modi window,drun,ssh -theme Arc-Dark -font "hack 10" -show combi -icon -show-icons
# rofi -combi-modi window,drun,ssh -theme arthur -font "hack 25" -show combi -icon -show-icons -icon-size 35
# rofi -combi-modi window,drun,ssh -theme docu -font "hack 10" -show combi -icon -show-icons
# rofi -combi-modi window,drun,ssh -theme solarized -font "hack 12" -show combi -icon-theme "papyrus" -show-icons -icon-size 16
# rofi-theme-selector
Your desktop should get an exquisite look at this point.
Install some Command-line tools.
yes | sudo apt install neofetch
yes | sudo apt install htop
Audio Output (Line-out):
Whisker Menu -> Settings -> Settings Manager ->
-> [Hardware [Category]] ->
-> PulseAudio Volume Control ->
-> Port: [Drop down menu] Line Out (plugged in)
Disable Sleep:
Disabling sleep is important because you might not get access to running applications once the screen gets locked after a certain duration of inactivity in Debian XFCE.
Caffeine Indicator did not solve the problem.
Whisker Menu -> Settings -> Settings Manager ->
-> [Hardware [Category]] ->
-> Power Management ->
-> General [TAB] When the power button is pressed: Ask. The rest should be set to "Do nothing".
-> System [TAB] System sleep mode: Suspend. When inactive for: Never. {Remember, Suspend + Never}.
-> Display [TAB] -> Display Power Management -> Off.
-> Security [TAB] -> Automatically lock the session: Never. Lock screen when the system is going to sleep [checked].
------Keyboard shortcuts to increase or decrease volume.-------------------------------------------------
https://unix.stackexchange.com/questions/342554/how-to-enable-my-keyboards-volume-keys-in-xfce/412926#412926
https://unix.stackexchange.com/questions/355665/how-to-increase-or-decrease-volume-in-xfce-with-keyboard-shortcuts
Settings->Keyboard->Application Shortcuts and bind
the volume up and volume down keys
For PulseAudio:
edited Jul 27, 2022 at 1:03
ZiyadCodes
answered Dec 25, 2017 at 9:58
Sebastian
req: xfce4-pulseaudio-plugin
req: You'll need a keyboard with a Numeric Key Panel (Number Dial Keys).
# raise volume by each 5%
pactl -- set-sink-volume @DEFAULT_SINK@ +5%
# WINDOWS s +
# Will show: Super+KP +
# reduce volume by each 5%
pactl set-sink-volume @DEFAULT_SINK@ -5%
# WINDOWS s -
# Will show: Super+KP -
# mute/unmute audio
pactl set-sink-mute @DEFAULT_SINK@ toggle
# WINDOWS s .
# Will show: Super+KP .
-------------------------------------------------------------------------
Snap and Flatpak:
Synaptic Package Manager:
yes | sudo apt install synaptic
Install GNOME Software:
yes | sudo apt install gnome-software
Snap:
yes | sudo apt update && sudo apt upgrade
yes | sudo apt install snapd
yes | sudo snap install core
yes | sudo snap install snap-store
Update Snaps:
snap refresh --list
sudo snap refresh
Flatpak:
*** Install Flatpak as root: ***
sudo su root
yes | sudo apt install flatpak
yes | sudo apt install gnome-software-plugin-flatpak
yes | flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Exit su:
exit
sudo reboot now
Update Flatpak Apps:
flatpak update
Flatpak Example:
Install MS Windows layer translator, Bottle from Flatpak:
flatpak install flathub com.usebottles.bottles
flatpak run com.usebottles.bottles
Uninstall a flatpak app:
https://ubuntuhandbook.org/index.php/2021/06/manage-flatpak-apps-ubuntu/
flatpak list --app
Or,
flatpak list --columns=application --app
flatpak uninstall --delete-data app-id
Ex: flatpak uninstall --delete-data com.github.dail8859.NotepadNext
Remove Unused Flatpak Runtimes: https://www.linuxuprising.com/2019/02/how-to-remove-unused-flatpak-runtimes.html
flatpak uninstall --unused
Install a Firewall:
yes | sudo apt install gufw
Install an Antivirus:
sudo apt install chkrootkit
sudo nano /etc/chkrootkit.conf
RUN_DAILY="true"
USERNAME=$(whoami)
Usage (you do not have to scan immediately): sudo chkrootkit >> "/home/$USERNAME/chkrootkit-report.txt"
Install a RootKit Buster:
sudo apt install rkhunter
sudo rkhunter --propupd
sudo rkhunter --update
Usage (you do not have to scan immediately): sudo rkhunter --check --sk --report-warnings-only >> "/home/$USERNAME/rkhunter-report.txt"
Install System Restore/Maintenance Tools:
# Network Time Protocol daemon/utilities
sudo apt install ntp
# tool for selecting tasks
sudo apt install tasksel
# Partition Manager
sudo apt install gparted
sudo apt install gnome-disk-utility
# Volume/Drive/Container Encryption
## https://www.cyberciti.biz/security/howto-linux-hard-disk-encryption-with-luks-cryptsetup-command/
## http://security.stackexchange.com/questions/4590/ddg#4592
sudo apt install gnome-disk-utility
sudo apt install zulucrypt-gui zulucrypt-cli zulumount-gui libzulucrypt-plugins
sudo apt install pmount
sudo apt install luckyluks
sudo apt install cryptsetup cryptmount cryptsetup-bin cryptsetup-initramfs cryptsetup-nuke-password
# File Sync
sudo apt install rsync
sudo apt install grsync
# System Restore
sudo apt install timeshift
# Load Program Faster while launching for the second time
sudo apt install preload
# seahorse: GUI Keyring Manager
# https://mexpolk.wordpress.com/2008/02/06/ubuntu-change-default-keyring-password/
sudo apt install seahorse
# Reduce Eyestrain
sudo apt install redshift-gtk
# Prevent Screen from falling asleep
#sudo apt install caffeine
# Command-line system info tool
sudo apt install hardinfo
# New hardware (firmware)
sudo update-initramfs -u
sudo apt-get install apt-file
sudo apt-file update
# Hardware changes
dmesg | grep firmware
apt-file search <firmware-file-name>
# The Fish Shell
sudo apt install fish
# Power management utility for laptops.
sudo apt install tlp
yes | sudo apt install tlp-rdw
# Set Up Bluetooth
# https://www.howtogeek.com/829360/how-to-set-up-bluetooth-on-linux/
sudo apt install bluetooth bluemon bluez blueman
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
rfkill unblock bluetooth
You might be interested in the following:
(You'll install these utilities for convenience anyway)
# ---------
# 9 AMAZING COMMAND LINE TOOLS for Linux
# https://youtu.be/kFh1acsQ8DQ
# Install OH-MY-BASH:
sudo apt install curl git git-lfs fish -y
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
# Change the theme: .bashrc -> Uncomment:
# OSH_THEME="powerline-plain"
# OSH_THEME="powerline"
## OSH_THEME="brunton"
## OSH_THEME="kitsune"
# OSH_THEME="mairan"
# OSH_THEME="rr"
source ~/.bashrc
# git clone https://github.com/wting/autojump.git
# cd autojump
# python3 install.py
# cd ~/
# echo "[[ -s $HOME/.autojump/etc/profile.d/autojump.sh ]] && source $HOME/.autojump/etc/profile.d/autojump.sh" >> ~/.bashrc
# https://www.cyberciti.biz/faq/add-bash-auto-completion-in-ubuntu-linux/
sudo apt install bash-completion -y
echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc
# autojump
# https://github.com/wting/autojump.git
sudo apt install autojump
sudo apt install fzf
echo '. /usr/share/autojump/autojump.sh' >> ~/.bashrc
source ~/.bashrc
# https://www.tecmint.com/autojump-a-quickest-way-to-navigate-linux-filesystem/1/
# =======================================================
# Install OH-MY-FISH (instructions): ====================
# git clone https://github.com/oh-my-fish/oh-my-fish
# Install manually:
# cd oh-my-fish
# bin/install --offline
# Or, (OMF:- OH-MY-FISH)
# https://github.com/oh-my-fish/oh-my-fish
sudo apt install curl git fish -y
curl -L https://get.oh-my.fish | fish
# fish
# Theming:
# omf list
# omf theme
# omf install bobthefish
# omf install agnoster
# omf reload
# tldr
# https://github.com/tldr-pages/tldr.git
sudo apt install python3-pip -y
pipx install tldr
# ---------
sudo apt install libfuse2
sudo apt install psensor
sudo apt install transmission
sudo apt install surf
# GoldenDict Dictionary DB Reader
# Solve GoldenDict's High CPU usage problem.
# http://goldendict.org/forum/viewtopic.php?f=4&t=2830
# Edit -> Preferences > Full-text search tab ->
# -> "Allow full-text search for:" option is enabled (default option) ->
# -> Disable.
# sudo apt install goldendict # Install Flatpak
# flatpak install flathub org.goldendict.GoldenDict
#
# Goldendict alternative
# sudo apt install stardict
# See shell/stardict.txt for details.
#
# A cross-platform dictionary similar to Wordweb
sudo apt install artha
sudo apt install bzip2
sudo apt install tar
sudo apt install unrar
sudo apt install rar
sudo apt install xz-utils
sudo apt install lrzip
sudo apt install pixz
sudo apt install wmctrl
sudo apt install nscd
sudo apt install xclip
sudo apt install uget
sudo apt install aria2
sudo apt install xarchiver
sudo apt install thunar-archive-plugin
sudo apt install wavemon
# Monitor the status of an 802.11 wireless ethernet link.
sudo apt install wmwave
# Description: WiFi Share and Connect with QR.
sudo apt install wifi-qr
# Launcher.
sudo apt install rofi
# Description: graphical wireless scanner.
sudo apt install linssid
# Screenshot Utility.
sudo apt install flameshot
# Defrag NTFS Volumes.
sudo apt install ntfs-3g
# Download Manager programs
sudo apt install uget
Basic build tools you'll need:
sudo apt install build-essential
sudo apt install patch
sudo apt install make
sudo apt install cmake
sudo apt install diffutils
sudo apt install libomp-dev
sudo apt install curl
sudo apt install python3-pip
python -m pip install --upgrade pip
sudo apt install pipx
sudo apt install git git-lfs gitk git-gui
sudo apt install unzip
# MATE archive manager. Works in XFCE
sudo apt install engrampa engrampa-common
# Generic archive manager. Works in XFCE
sudo apt install xarchiver
sudo apt install thunar-archive-plugin
sudo apt install wget curl
sudo apt install notepadqq
sudo apt update
sudo apt list --upgradable
sudo apt upgrade
sudo apt update
sudo apt install -f
sudo apt install nodejs
sudo apt install jq
# Description: package manager for Node.js
# (npm: Unmet dependencies)
sudo apt install npm
# Update Node.js with NPM (Node Package Manager)
# https://phoenixnap.com/kb/update-node-js-version
sudo apt install npm
npm cache clean -f
sudo npm install -g n
sudo n stable
How To Compare Two Directories on Linux:
https://www.baeldung.com/linux/compare-two-directories
sudo apt install meld
flatpak install org.kde.kdiff3
sudo apt install mc
You might be interested in the following also:
sudo apt install llvm
sudo apt install clang
sudo apt install clangd
sudo apt install clang-tidy
sudo apt install clang-tools
sudo apt install lld
pipx install flawfinder
# https://github.com/friendlyanon/cmake-init
pipx install cmake-init
# Bash Language Server
# https://github.com/bash-lsp/bash-language-server.git
sudo npm i -g bash-language-server
bash-language-server --help
# Description: blackbox testing of Unix command line programs
# cmdtest black box tests Unix command line tools. Roughly, it is given a
# script, its input files, and its expected output files. cmdtest runs
# the script, and checks the output is as expected.
sudo apt install cmdtest
# pnpm package manager
# https://pnpm.io/installation
curl -fsSL https://get.pnpm.io/install.sh | sh -
# other essential development utilities
sudo apt install cdecl
sudo apt install cutils
sudo apt install kitty
sudo apt install sakura
# sudo apt install gnome-terminal
sudo apt install tree
sudo apt install mc
sudo apt install xclip
sudo apt install vim-gtk3
sudo apt install kate
sudo apt install cppcheck
sudo apt install cppcheck-gui
sudo apt install splint
sudo apt install cmake cmake-gui
sudo apt install wget
sudo apt install unzip
sudo apt install git
sudo apt install git-lfs
# https://softwarerecs.stackexchange.com/questions/30351/visualizing-git-diff-linux#30352
# gitk & git-gui
# Both can show results graphically when launched from the directory
# containing .git folder. These are the simplest alternatives
# to dealing with the command-line diff/merge/commit/stage/push tools.
# Can be supplementary utilities even when a CUI is preferred over the GUI.
sudo apt install gitk
sudo apt install git-gui
sudo apt install giggle
# GUI frontends for Git Version Control System:
# Gitg is pretty barebone at the moment. Git Cola comes packed with all the
# bells and whistles needed to control Git from a Graphical User Interface,
# however, it's a little slower. There are many Git GUI frontends out there,
# of them, Git Cola holds nothing back from anyone,
# from a more freedom-friendly perspective.
# For example, there's a free version of a Git GUI client that doesn't allow
# free users to deal with private repositories. Git Cola is neatly comparable to
# advanced GUI clients of the Git VCS like Sourcetree, GitKraken, SmartGit,
# GitHub Desktop, Gitbox, Tower and others.
# --------
# 'qgit' is another excellent Git GUI frontend. In some aspects, it's
# more flexible than Git Cola.
# --------
# I wouldn't recommend any of the GUI frontends of Git since they all come with
# some inadequacies, thus, all those Git frontends are not yet ready to fully
# replace Git's terminal interface.
# GUI Git programs can be used for viewing code history etc.
# They can quickly draw an overview of a repository and track the history of
# changed files at a glance.
# Install any of the following if you are in absolute need of a GUI Git frontend.
# sudo apt install gitg
# sudo apt install qgit
# sudo apt install git-cola
# Flowchart diagram designing program
# https://wiki.gnome.org/Apps/Dia
# (Windows) http://dia-installer.de/index.html.en
# sudo apt install dia
# Dia2Code is a small utility used to generate code from a Dia diagram
# http://dia2code.sourceforge.net/index.html
# sudo apt install dia2code
# Below are some (terminal-based) utilities for adding more
# functionalities to the existing Git installation
sudo apt install git-extras
sudo apt install git-flow
sudo apt install diffutils
sudo apt install diffstat
# Debuggers, code profilers, memory leak testers, build tools,
# code formatting, code/directory compare applications and more
sudo apt install ddd
sudo apt install valgrind
sudo apt install cgdb
sudo apt install astyle
sudo apt install universal-ctags
sudo apt install autoconf
sudo apt install pkg-config
sudo apt install libx11-dev
sudo apt install libglib2.0-doc
sudo apt install libtool
sudo apt install autoproject
sudo apt install autogen
sudo apt install autotools-dev
sudo apt install automake
sudo apt install m4
sudo apt install make
sudo apt install ninja-build
sudo apt install meld
# sudo apt install kdiff3 (use the latest flatpak version)
flatpak install org.kde.kdiff3
# 'fldiff' cannot perform merge operations
# sudo apt install fldiff
# "kdiff3" and "kompare" both are efficient Diff Tools with advanced features.
# While "meld" is way too slow and lags most of the time on larger files,
# it has a rich set of features and it's very easy to use.
# So, "meld" cannot be discarded easily.
# And, "fldiff" doesn't allow merging. With "fldiff",
# you can see the differences, not merge them.
# "meld" is fine for comparing small files side-by-side,
# also it has a relatively smaller footprint.
# Among "kdiff3" and "kompare", "kdiff3" is still a preferred choice of many.
# "kdiff3" and "kompare" occupy mostly the same amount of storage space.
# "kompare" is around 110 MB, and "kdiff3" is 96 MB (approx).
# 'kompare' is slightly clumsy.
# Only install what you need.
# sudo apt install kdiff3 (use the latest flatpak version)