├── 2nd-drive.md
├── Best-Arabic-Font-in-Linux.md
├── Debian-Post-Install.md
├── Fedora-36-Post.md
├── Fedora-37-Post.md
├── PopShell-Install.md
├── README.md
├── Ubuntu-22.04-Post-Install.md
├── Ubuntu-22.10-Post-Install.md
├── Ubuntu-Update.md
├── VirtManager-Share.md
├── VirtManager-Win-Share.md
├── VirtManager-Win11.md
├── VirtManager.md
├── Waydroid.md
├── Xfce-Customized-Debian-11.md
├── ZSH.md
├── appimages.md
├── elementaryOS6-PostInstall.md
├── gnome-keybindings.md
├── macOS-theme-for-Ubuntu.md
└── tesseract.md
/2nd-drive.md:
--------------------------------------------------------------------------------
1 | # 2nd drive on Linux
2 |
3 |
4 | ## Add the hard drive via `fstab`
5 |
6 | - Connect the drive to your system and start it.
7 |
8 | - The drive should appear under `/media/$USER/`
9 |
10 | - To make it auto mount after boot.
11 |
12 | - Get Drive `UUID`
13 |
14 | ```sh
15 | sudo blkid
16 | ```
17 |
18 | - Add it to `fstab`
19 |
20 | ```sh
21 | sudo nano /etc/fstab
22 | ```
23 |
24 | ```
25 | UUID="107E6F7D6A8CD554" /mnt/2nd-ntfs ntfs defaults 0 0
26 | ```
27 |
28 | ## Missing hard drive from `fstab`
29 |
30 | - You have to remove the missing hard dive from `fstab`
31 |
32 | backup the original file first:
33 |
34 | ```sh
35 | cp /etc/fstab /etc/fstab.bk
36 | ```
37 |
38 | open `fstab` file:
39 |
40 | ```sh
41 | sudo nano /etc/fstab
42 | ```
43 |
44 | Add `#` at the start of the line or delete the line:
45 |
46 | ```
47 | # UUID="107E6F7D6A8CD554" /mnt/2nd-ntfs ntfs defaults 0 0
48 | ```
49 |
50 | reboot
--------------------------------------------------------------------------------
/Best-Arabic-Font-in-Linux.md:
--------------------------------------------------------------------------------
1 | # Best Arabic Font in Linux
2 |
3 | > This Guide is for Ubuntu, Fedora 36+ has these configs by default.
4 |
5 | 1. Update System
6 |
7 | ```sh
8 | sudo apt update
9 | ```
10 |
11 | 2. Install `ubuntu-restricted-extras`
12 |
13 | ```sh
14 | sudo apt install ubuntu-restricted-extras ubuntu-restricted-addons
15 | ```
16 |
17 | 3. Download and Install Fonts
18 |
19 | - Download the below fonts
20 |
21 | [Noto Sans Arabic](https://fonts.google.com/specimen/Noto+Sans+Arabic)
22 | [Arimo](https://fonts.google.com/specimen/Arimo)
23 | [Cousine](https://fonts.google.com/specimen/Cousine)
24 | [Tinos](https://fonts.google.com/specimen/Tinos)
25 |
26 | - Extract it to its folders
27 |
28 | ```bash
29 | find . -name '*.zip' -exec sh -c 'unzip -d "${1%.*}" "$1"' _ {} \;
30 | ```
31 |
32 | - Install it on the system
33 |
34 | ```bash
35 | sudo cp -r Arimo Cousine Tinos Noto_Sans_Arabic /usr/share/fonts/
36 | ```
37 |
38 | 4. Config File
39 |
40 | - Create `fontconfig` Folder
41 |
42 | ```bash
43 | mkdir ~/.config/fontconfig
44 | ```
45 |
46 | - Create `fonts.conf` file
47 |
48 | ```bash
49 | nano ~/.config/fontconfig/fonts.conf
50 | ```
51 |
52 | - Copy the below to the file
53 |
54 | ```xml
55 |
56 |
57 |
58 |
59 |
60 | sans-serif
61 |
62 | Arimo
63 | Noto Sans Arabic
64 |
65 |
66 |
67 |
68 | serif
69 |
70 | Tinos
71 | Noto Sans Arabic
72 |
73 |
74 |
75 |
76 | Sans
77 |
78 | Arimo
79 | Noto Sans Arabic
80 |
81 |
82 |
83 |
84 | monospace
85 |
86 | Cousine
87 | Noto Sans Arabic
88 |
89 |
90 |
91 |
92 | Arial
93 |
94 | Arimo
95 |
96 |
97 |
98 | Helvetica
99 |
100 | Arimo
101 |
102 |
103 |
104 | Verdana
105 |
106 | Arimo
107 |
108 |
109 |
110 | Tahoma
111 |
112 | Arimo
113 |
114 |
115 |
116 |
117 | Comic Sans MS
118 |
119 | Arimo
120 |
121 |
122 |
123 | Times New Roman
124 |
125 | Tinos
126 |
127 |
128 |
129 | Times
130 |
131 | Tinos
132 |
133 |
134 |
135 | Courier New
136 |
137 | Cousine
138 |
139 |
140 |
141 | ```
142 |
143 | - Press CTRL+O to Save
144 |
145 | - Press CTRL+X to Exit
146 |
147 | 5. Update Fonts and Config
148 |
149 | ```bash
150 | sudo fc-cache -fv
151 | ```
152 |
153 | 6. Firefox
154 |
155 | Change Sans-serif Arabic font to `Noto Sans Arabic` or `Noto Sans Arabic UI`
156 |
157 | 7. Reboot
158 |
159 | ```bash
160 | sudo reboot now
161 | ```
162 |
163 | ## For FlatPak apps
164 |
165 | copy the `fonts.conf` file to `~/.var/app//config/fontconfig/`
166 |
167 | ----
168 |
169 | > Links from the old tutorial:
170 | https://bit.ly/3jdmH4a
171 | https://bit.ly/35TxicB
172 | https://bit.ly/35P6fPt
173 | https://bit.ly/3xQHi2d
174 | https://bit.ly/3qmvO42
--------------------------------------------------------------------------------
/Debian-Post-Install.md:
--------------------------------------------------------------------------------
1 | # Debian 11 Post Install
2 |
3 | ## Install `sudo` if not installed
4 |
5 | ```sh
6 | su
7 | apt install sudo
8 | ```
9 |
10 | ## Add User to `sudo` Group
11 |
12 | ```sh
13 | su
14 | gpasswd -a $USER sudo
15 | ```
16 |
17 | ## Enable None Free
18 |
19 | ```sh
20 | cat /etc/apt/sources.list | grep "contrib non-free" || sudo sed -i "s/main/main contrib non-free/g" /etc/apt/sources.list
21 | ```
22 |
23 | ## Install Codecs, Microsoft Fonts and rar support (Ubuntu restricted-extras)
24 |
25 | ```sh
26 | sudo apt install libavcodec-extra ttf-mscorefonts-installer rar unrar gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-vaapi
27 | ```
28 |
29 | ## Microsoft Fonts alternatives for "Cambria, Calibri"
30 |
31 | ```sh
32 | sudo apt install fonts-crosextra-caladea fonts-crosextra-carlito
33 | ```
34 |
35 | ## Install and Enable Firewall
36 |
37 | ```sh
38 | sudo apt install ufw
39 | sudo ufw enable
40 | sudo ufw allow ssh
41 | ```
42 |
43 | ## Apps
44 |
45 | ```sh
46 | sudo apt install plocate htop
47 | sudo updatedb
48 | ```
49 |
50 | ## Flatpak Support
51 |
52 | ```sh
53 | sudo apt install flatpak
54 | sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
55 | ```
56 |
57 | ## Nvidia Drivers
58 |
59 | ```sh
60 | sudo apt install nvidia-detect
61 | sudo nvidia-detect
62 | ```
63 |
64 | ## CPU Microcode
65 |
66 | - For Intel CPUs
67 |
68 | ```sh
69 | sudo apt install intel-microcode
70 | ```
71 |
72 | - For AMD CPUs
73 |
74 | ```sh
75 | sudo apt install amd64-microcode
76 | ```
77 |
78 | ## Better Software center (for Xfce Only)
79 |
80 | ```sh
81 | sudo apt install gnome-software
82 | sudo apt install gnome-software-plugin-flatpak
83 | ```
84 |
85 | ## Better Battery Life - Optional and for laptops only
86 |
87 | ```sh
88 | sudo apt install tlp
89 | ```
--------------------------------------------------------------------------------
/Fedora-36-Post.md:
--------------------------------------------------------------------------------
1 | # Fedora 36 Post-installation Steps
2 |
3 | ## General Steps
4 |
5 | * Speed up DNF
6 |
7 | Set fastestmirror
8 |
9 | ```sh
10 | sudo echo 'fastestmirror=true' | sudo tee -a /etc/dnf/dnf.conf
11 | ```
12 |
13 | Set deltarpm #optional
14 |
15 | ```sh
16 | echo 'deltarpm=true' | sudo tee -a /etc/dnf/dnf.conf
17 | ```
18 |
19 | Set parallel downloads #optional
20 |
21 | ```sh
22 | echo 'max_parallel_downloads=5' | sudo tee -a /etc/dnf/dnf.conf
23 | ```
24 |
25 | * Enable [RPM Fusion](https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/)
26 |
27 | 1. free
28 |
29 | ```sh
30 | sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
31 | ```
32 |
33 | 2. nonfree
34 |
35 | ```sh
36 | sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
37 | ```
38 |
39 | * Update
40 |
41 | ```sh
42 | sudo dnf --refresh upgrade
43 | ```
44 |
45 | * [Flatpak](https://flatpak.org/setup/Fedora)
46 |
47 | ```sh
48 | flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
49 | ```
50 |
51 | * Enable Third-Party Repositories
52 |
53 | * Install [NVIDIA Drivers](https://rpmfusion.org/Howto/NVIDIA)
54 |
55 | * Installing plugins for playing [video and audio](https://docs.fedoraproject.org/en-US/quick-docs/assembly_installing-plugins-for-playing-movies-and-music/)
56 |
57 | ```sh
58 | sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel
59 | ```
60 |
61 | ```sh
62 | sudo dnf install lame\* --exclude=lame-devel
63 | ```
64 |
65 | ```sh
66 | sudo dnf group upgrade --with-optional Multimedia
67 | ```
68 |
69 | * Install [ZSH](https://www.youtube.com/watch?v=fDuGKsQ3bV4)
70 |
71 | * Install Your Favorite Apps
72 |
73 | * Backups and Snapshots !!
74 |
75 |
76 | ## Fedora Workstation ONLY
77 |
78 | * Install GNOME Tweaks
79 |
80 | ```sh
81 | sudo dnf install gnome-tweaks
82 | ```
83 |
84 | * Install file-roller
85 |
86 | ```sh
87 | sudo dnf install file-roller
88 | ```
89 |
90 | * Install [Extension Manager](https://flathub.org/apps/details/com.mattjakeman.ExtensionManager) from flathub
91 |
92 | ```sh
93 | flatpak install flathub com.mattjakeman.ExtensionManager
94 | ```
95 |
96 | * Install Your [Extensions](https://www.youtube.com/watch?v=6yEJ43LLIJg)
97 |
98 | ## Fedora KDE Plasma ONLY
99 |
100 | * Enable Video Thumbnails in Dolphin
101 |
102 | 1. Install `ffmpegthumbs`
103 |
104 | ```sh
105 | sudo dnf install ffmpegthumbs
106 | ```
107 |
108 | 2. Enable it in Dolphin:
109 |
110 | From Dolphin Open:
111 | Menu > Configure > Configure Dolphin > General > Previews > Video Files (ffmpegthumbs)
112 |
113 | ## Fedora Xfce ONLY
114 |
115 | ```sh
116 | sudo dnf install tumbler tumbler-extras ffmpegthumbnailer
117 | ```
--------------------------------------------------------------------------------
/Fedora-37-Post.md:
--------------------------------------------------------------------------------
1 | # Fedora 37 Post-installation Steps
2 |
3 | ## Speed up DNF
4 |
5 | - Set fastestmirror
6 |
7 | ```sh
8 | echo 'fastestmirror=true' | sudo tee -a /etc/dnf/dnf.conf
9 | ```
10 |
11 | - Set deltarpm #optional
12 |
13 | ```sh
14 | echo 'deltarpm=true' | sudo tee -a /etc/dnf/dnf.conf
15 | ```
16 |
17 | - Set parallel downloads #optional
18 |
19 | ```sh
20 | echo 'max_parallel_downloads=5' | sudo tee -a /etc/dnf/dnf.conf
21 | ```
22 |
23 | ## Enable [RPM Fusion](https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/) Free and None-Free
24 |
25 | ```sh
26 | 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
27 | ```
28 |
29 | ```sh
30 | sudo dnf --refresh upgrade
31 | ```
32 |
33 | ```sh
34 | sudo dnf groupupdate core
35 | ```
36 |
37 | ## [Flathub](https://flatpak.org/setup/Fedora)
38 |
39 | ```sh
40 | flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
41 | ```
42 |
43 | ## Enable Third-Party Repositories if You Didn't
44 |
45 | ## Install [NVIDIA Drivers](https://rpmfusion.org/Howto/NVIDIA)
46 |
47 | ## Hardware acceleration
48 |
49 | ### Hardware acceleration for AMD and Intel
50 |
51 | ```sh
52 | sudo dnf swap mesa-va-drivers mesa-va-drivers-freeworld
53 | ```
54 |
55 | ### Hardware acceleration for AMD
56 |
57 | ```sh
58 | sudo dnf swap mesa-vdpau-drivers mesa-vdpau-drivers-freeworld
59 | ```
60 |
61 | ## Installing plugins for playing [video and audio](https://docs.fedoraproject.org/en-US/quick-docs/assembly_installing-plugins-for-playing-movies-and-music/)
62 |
63 | ```sh
64 | sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel
65 | ```
66 |
67 | ```sh
68 | sudo dnf install lame\* --exclude=lame-devel
69 | ```
70 |
71 | ```sh
72 | sudo dnf group upgrade --with-optional Multimedia
73 | ```
74 |
75 | ## Install Your Favorite Apps
76 |
77 | ```sh
78 | sudo dnf install unrar
79 | ```
80 |
81 | ## Backup system with Timeshift
82 |
83 | ```sh
84 | sudo dnf install timeshift
85 | ```
86 |
87 | ## Backup your data with [Deja Dup](https://flathub.org/apps/details/org.gnome.DejaDup)
88 |
89 | ```sh
90 | flatpak install flathub org.gnome.DejaDup
91 | ```
92 |
93 | ## Fedora Workstation ONLY
94 |
95 | ### Install GNOME Tweaks
96 |
97 | ```sh
98 | sudo dnf install gnome-tweaks
99 | ```
100 |
101 | ### Install [Extension Manager](https://flathub.org/apps/details/com.mattjakeman.ExtensionManager) from flathub
102 |
103 | ```sh
104 | flatpak install flathub com.mattjakeman.ExtensionManager
105 | ```
106 |
107 | ### Install Your [Extensions](https://www.youtube.com/watch?v=6yEJ43LLIJg)
108 |
109 | ## Install [ZSH](https://www.youtube.com/watch?v=fDuGKsQ3bV4)
110 |
111 | ## Fedora KDE Plasma ONLY
112 |
113 | ### Enable Video Thumbnails in Dolphin
114 |
115 | - Install `ffmpegthumbs`
116 |
117 | ```sh
118 | sudo dnf install ffmpegthumbs
119 | ```
120 |
121 | - Enable it in Dolphin:
122 |
123 | From Dolphin Open:
124 | Menu > Configure > Configure Dolphin > General > Previews > Video Files (ffmpegthumbs)
125 |
126 | ## Fedora Xfce ONLY
127 |
128 | ```sh
129 | sudo dnf install tumbler tumbler-extras ffmpegthumbnailer
130 | ```
--------------------------------------------------------------------------------
/PopShell-Install.md:
--------------------------------------------------------------------------------
1 | # Install Pop Shell on other GNOME DEs
2 |
3 | ## Ubuntu and Zorin OS Core (Ubuntu Based Distros)
4 |
5 | 1. Install git and build dependencies
6 |
7 | ```sh
8 | sudo apt install git node-typescript make
9 | ```
10 |
11 | 2. Clone the repository
12 |
13 | ```sh
14 | git clone https://github.com/pop-os/shell.git
15 | ```
16 |
17 | 3. Open the new `shell` dir
18 |
19 | ```sh
20 | cd shell
21 | ```
22 |
23 | 4. Install Pop Shell
24 |
25 | ```sh
26 | make local-install
27 | ```
28 |
29 | > NOTE:
30 | If you Get and error logout and login, then try the last two steps again
31 |
32 | ## Fedora
33 |
34 | Install it from Fedora repostitories
35 |
36 | ```sh
37 | sudo dnf install gnome-shell-extension-pop-shell
38 | ```
39 |
40 | > REF:
41 | [Using Pop Shell on other GNOME Desktops](https://support.system76.com/articles/pop-shell/)
42 | [launcher](https://github.com/pop-os/launcher)
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Tutorials
2 |
3 | Linux Tutorials
--------------------------------------------------------------------------------
/Ubuntu-22.04-Post-Install.md:
--------------------------------------------------------------------------------
1 | ## Ubuntu 22.04 Post Installation
2 |
3 | * Update
4 |
5 | ```bash
6 | sudo apt update && sudo apt upgrade -y
7 | ```
8 |
9 | * Remove Firefox Snap and Install Firefox Deb
10 |
11 | 1. Remove Firefox Snap
12 |
13 | ```sh
14 | sudo apt remove --purge firefox
15 | ```
16 | ```sh
17 | sudo snap remove --purge firefox
18 | ```
19 |
20 | 2. add Mozilla team PPA
21 |
22 | ```sh
23 | sudo add-apt-repository ppa:mozillateam/ppa
24 | ```
25 |
26 | 3. set Mozilla team PPA as high Priority
27 |
28 | ```sh
29 | echo '
30 | Package: *
31 | Pin: release o=LP-PPA-mozillateam
32 | Pin-Priority: 1001
33 | ' | sudo tee /etc/apt/preferences.d/firefox
34 | ```
35 |
36 | OR
37 |
38 | ```sh
39 | echo '
40 | Package: firefox*
41 | Pin: release o=LP-PPA-mozillateam
42 | Pin-Priority: 501
43 | ' | sudo tee /etc/apt/preferences.d/firefox
44 | ```
45 |
46 | - block the Ubuntu repo
47 |
48 | ```sh
49 | echo '
50 | Package: firefox*
51 | Pin: release o=Ubuntu*
52 | Pin-Priority: -1
53 | ' | sudo tee /etc/apt/preferences.d/firefox
54 | ```
55 |
56 | > **About Pin and PPA Priority:**
57 | > *From apt man page*
58 | > - P >= 1000:
59 | causes a version to be installed even if this constitutes a downgrade of the package
60 | > - 990 <= P < 1000:
61 | causes a version to be installed even if it does not come from the target release, unlessthe installed version is more recent
62 | > - 500 <= P < 990:
63 | causes a version to be installed unless there is a version available belonging to the targetrelease or the installed version is more recent
64 | > - 100 <= P < 500:
65 | causes a version to be installed unless there is a version available belonging to some otherdistribution or the installed version is more recent
66 | > - 0 < P < 100:
67 | causes a version to be installed only if there is no installed version of the package
68 | > - P < 0:
69 | prevents the version from being installed
70 | > - P = 0:
71 | has undefined behaviour, do not use it.
72 |
73 | 4. set Firefox for automatic updates
74 | ```sh
75 | echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
76 | ```
77 |
78 | 5. Update
79 |
80 | ```sh
81 | sudo apt update
82 | ```
83 |
84 | 6. install Firefox DEB
85 |
86 | ```bash
87 | sudo apt install firefox
88 | ```
89 |
90 | * Install Ubuntu Restricted Extras
91 |
92 | ```bash
93 | sudo apt install ubuntu-restricted-extras
94 | ```
95 |
96 | * Minimize on Click
97 |
98 | ```bash
99 | gsettings set org.gnome.shell.extensions.dash-to-dock click-action minimize
100 | ```
101 |
102 | * Flatpak
103 |
104 | ```bash
105 | sudo apt install gnome-software gnome-software-plugin-flatpak flatpak
106 | ```
107 | ```bash
108 | flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
109 | ```
110 |
111 | * Extensions and Tweaks
112 |
113 | ```bash
114 | sudo apt install chrome-gnome-shell gnome-shell-extension-prefs
115 | ```
116 |
117 | ```bash
118 | sudo apt install gnome-tweaks gnome-shell-extension-manager
119 | ```
120 |
121 | * Arabic Keyboard
122 |
123 | * Backup
124 |
125 | 1. Timeshift
126 |
127 | ```bash
128 | sudo apt install timeshift
129 | ```
130 |
131 | 2. Backup your files with [Deja Dup](https://flathub.org/apps/details/org.gnome.DejaDup)
--------------------------------------------------------------------------------
/Ubuntu-22.10-Post-Install.md:
--------------------------------------------------------------------------------
1 | # Ubuntu 22.10 Post Installation
2 |
3 | ## Update
4 |
5 | ```sh
6 | sudo apt update && sudo apt upgrade -y
7 | ```
8 |
9 | ## Remove Firefox Snap and Install Firefox Deb
10 |
11 | 1. ### Remove Firefox Snap
12 |
13 | ```sh
14 | sudo apt remove --autoremove firefox
15 | ```
16 |
17 | ```sh
18 | sudo snap remove --purge firefox
19 | ```
20 |
21 | 2. ### Add Mozilla Team PPA
22 |
23 | ```sh
24 | sudo add-apt-repository ppa:mozillateam/ppa
25 | ```
26 |
27 | 3. ### Set Mozilla team PPA as high Priority
28 |
29 | ```sh
30 | echo '
31 | Package: *
32 | Pin: release o=LP-PPA-mozillateam
33 | Pin-Priority: 1001
34 | ' | sudo tee /etc/apt/preferences.d/firefox-ppa-priority
35 | ```
36 |
37 | 4. ### Block the Ubuntu repo
38 |
39 | ```sh
40 | echo '
41 | Package: firefox*
42 | Pin: release o=Ubuntu*
43 | Pin-Priority: -1
44 | ' | sudo tee /etc/apt/preferences.d/firefox-ubuntu-block
45 | ```
46 |
47 | 5. ### Set Firefox for automatic updates
48 | ```sh
49 | echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
50 | ```
51 |
52 | 6. ### Update
53 |
54 | ```sh
55 | sudo apt update
56 | ```
57 |
58 | 7. ### Install Firefox DEB
59 |
60 | ```sh
61 | sudo apt install firefox
62 | ```
63 |
64 | ## Install Ubuntu Restricted Extras
65 |
66 | ```sh
67 | sudo apt install ubuntu-restricted-extras
68 | ```
69 |
70 | ## Minimize on Click
71 |
72 | ### Minimize on Click the old style
73 |
74 | ```sh
75 | gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
76 | ```
77 |
78 | ### Minimize on Click 22.10 style
79 |
80 | ```sh
81 | gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'focus-minimize-or-appspread'
82 | ```
83 |
84 | ## Flatpak and Flathub
85 |
86 | ```sh
87 | sudo apt install flatpak
88 | ```
89 | ```sh
90 | flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
91 | ```
92 |
93 | ## Gnome Software
94 |
95 | ```sh
96 | sudo apt install gnome-software gnome-software-plugin-flatpak
97 | ```
98 |
99 | ## AppImage Support
100 |
101 | ```sh
102 | sudo apt install libfuse2
103 | ```
104 |
105 | ## Gnome Extensions
106 |
107 | ```sh
108 | sudo apt install chrome-gnome-shell gnome-shell-extension-prefs gnome-shell-extension-manager
109 | ```
110 |
111 | ## Gnome Tweaks
112 |
113 | ```sh
114 | sudo apt install gnome-tweaks
115 | ```
116 |
117 | ## Enable ‘New Documents’ context menu
118 |
119 | ```sh
120 | touch ~/Templates/new
121 | ```
122 |
123 | ## Arabic Keyboard
124 |
125 | ## System Backup with Timeshift
126 |
127 | ```sh
128 | sudo apt install timeshift
129 | ```
130 |
131 | ## Backup your files with [Deja Dup](https://flathub.org/apps/details/org.gnome.DejaDup)
132 |
133 | ## Update again
134 |
135 | ```sh
136 | sudo apt update && sudo apt upgrade -y && flatpak update -y && sudo snap refresh
137 | ```
--------------------------------------------------------------------------------
/Ubuntu-Update.md:
--------------------------------------------------------------------------------
1 | # Update Ubuntu
2 |
3 | ## from Terminal
4 |
5 | ```sh
6 | sudo apt update && sudo apt upgrade -y && flatpak update -y && sudo snap refresh
7 | ```
8 |
9 | ## add it as an alias
10 |
11 | add the below line to `.bashrs` or `.zshrc`
12 |
13 | ```sh
14 | alias update='sudo apt update && sudo apt upgrade -y && flatpak update -y && sudo snap refresh'
15 | ```
16 |
--------------------------------------------------------------------------------
/VirtManager-Share.md:
--------------------------------------------------------------------------------
1 | # Virt Manager - Share with Linux Guest
2 |
3 | ## ClipBoard, Drag and Drop - مشاركة النصوص
4 |
5 | - Debian - Ubuntu
6 |
7 | ```sh
8 | sudo apt install spice-vdagent
9 | ```
10 |
11 | - Fedora
12 |
13 | ```sh
14 | sudo dnf install spice-vdagent
15 | ```
16 |
17 | - Arch
18 |
19 | ```sh
20 | sudo pacman -S spice-vdagent
21 | ```
22 |
23 | - NixOS
24 |
25 | add the below line to `configuration.nix`
26 |
27 | ```nix
28 | services.spice-vdagentd.enable = true;
29 | ```
30 |
31 | ---------
32 |
33 | ## Shared Folder - مشاركة الملفات
34 |
35 | ### Requirements
36 |
37 | - qemu-kvm version 5.0 at least
38 |
39 | ```sh
40 | qemu-kvm -version
41 | ```
42 |
43 | ### On Host
44 |
45 | - creat the folder you want to share
46 |
47 | - Open VM settings > Memory and enable `shared memory` or add:
48 |
49 | ```xml
50 |
51 |
52 |
53 |
54 | ```
55 |
56 | - Add Hardware and chose Filesystem:
57 |
58 | - Driver `virtiofs`
59 | - Source path `/shared/folder/on/host`
60 | - Target path `shared-folder-name-on-guest`
61 |
62 | Or add
63 |
64 | ```xml
65 |
66 |
67 |
68 |
69 |
70 |
71 | ```
72 |
73 | - Start your VM
74 |
75 | ### On Guest
76 |
77 | - Creat a folder to mount the share
78 |
79 | ```sh
80 | mkdir host-share
81 | ```
82 |
83 | - Run:
84 |
85 | ```sh
86 | sudo mount -t virtiofs shared-folder-name-on-guest /path/to/mount/on/guest
87 | ```
88 |
89 | - auto mount
90 |
91 | ```sh
92 | sudo nano /etc/fstab
93 | ```
94 |
95 | append
96 |
97 | ```s
98 | shared-folder-name-on-guest /path/to/mount/on/guest virtiofs defaults 0 0
99 | ```
100 |
101 | or
102 |
103 | ```sh
104 | echo "shared-folder-name-on-guest /path/to/mount/on/guest virtiofs defaults 0 0" | sudo tee -a /etc/fstab
105 | ```
106 |
107 | - Mount
108 |
109 | ```sh
110 | sudo mount -a
111 | ```
112 |
113 | or
114 |
115 | ```sh
116 | sudo reboot now
117 | ```
118 |
119 | ### NixOS Guest
120 |
121 | ```sh
122 | sudo nano /etc/nixos/configuration.nix
123 | ```
124 |
125 | ```nix
126 | systemd.mounts = [
127 | {
128 | what = "shared-folder-name-on-guest";
129 | where = "/path/to/mount/on/guest";
130 | type = "virtiofs";
131 | wantedBy = [ "multi-user.target" ];
132 | enable = true;
133 | }
134 | ];
135 | ```
136 |
137 | ```sh
138 | sudo nixos-rebuild switch
139 | ```
140 |
141 | ```sh
142 | sudo reboot now
143 | ```
--------------------------------------------------------------------------------
/VirtManager-Win-Share.md:
--------------------------------------------------------------------------------
1 | # Share a folder with Windows guest in Virt Manager
2 |
3 | ## Host Steps
4 |
5 | - Create a `/shared/folder/on/host` on the Host.
6 | - Open VM settings > Memory and enable `shared memory` or add:
7 |
8 | ```xml
9 |
10 |
11 |
12 |
13 | ```
14 |
15 | - Add Hardware - Filesystem:
16 |
17 | > Change `source dir` and `target dir` to fit your setup
18 |
19 | ```xml
20 |
21 |
22 |
23 |
24 |
25 |
26 | ```
27 |
28 | - Download [WinFsp](https://github.com/winfsp/winfsp/releases/latest)
29 | - Start Windows VM
30 |
31 | ## Windows VM Steps
32 |
33 | - Copy `WinFsp` file to the VM and Install it
34 | - Open Services and find `VirtIO-FS Service` set it to `Automatic` and start it.
35 | - Restart
--------------------------------------------------------------------------------
/VirtManager-Win11.md:
--------------------------------------------------------------------------------
1 | # Install Windows 11 in Virt Manager
2 |
3 | ## Requirements
4 |
5 | - Download [Windows 11 ISO](https://www.microsoft.com/software-download/windows11)
6 | - Download [VirtIO WIN ISO](https://github.com/virtio-win/virtio-win-pkg-scripts)
7 | - Install `swtpm` and `edk2-ovmf` as shown below:
8 |
9 | Fedora
10 |
11 | ```sh
12 | sudo dnf install swtpm edk2-ovmf
13 | ```
14 |
15 | Ubuntu
16 |
17 | ```sh
18 | sudo apt install swtpm ovmf
19 | ```
20 |
21 | Arch
22 |
23 | ```sh
24 | sudo pacman -S swtpm edk2-ovmf
25 | ```
26 |
27 | ## Creat new VM with
28 |
29 | - Create `qcow2` file (find out [how](https://www.youtube.com/watch?v=B4ExUl3mnco))
30 | - Add Hardware TPM (Emulated - CRB - 2.0)
31 | - Firmware to UEFI x86_64 with secure boot (OVMF_CODE.secboot.fd)
32 | - Set Disk to `VirtIO`
33 | - Add 2nd cdrom with `virtio-win.iso` mounted
34 | - Set network card to `VirtIO`
35 | - Set Display to `Spice`
36 | - Set Video to `QXL`
37 |
38 | ## Boot the VM
39 | - Where do you want to install windows ?
40 | - Click `Load driver`
41 | - Browse
42 | - VirtIO CDrom
43 | - amd64
44 | - w11
45 | - OK
46 | - Next
47 | - New
48 | - Apply
49 | - OK
50 | - Next
51 | ## Post Install
52 | - Shutdown the system and add new `Channel` to the VM with `org.qemu.guest_agent.0` as a Name and Device Type `UNIX socket (unix)`
53 | - Start the system and Install `virtio-win-guest-tools` from VirtIO ISO.
54 | - Restart
--------------------------------------------------------------------------------
/VirtManager.md:
--------------------------------------------------------------------------------
1 | # Virt Manager KVM
2 |
3 | ## support الدعم
4 |
5 | ### Hardware support المعالج
6 |
7 | KVM requires that the virtual machine host's processor has virtualization support (named **VT-x** for Intel processors and **AMD-V** for AMD processors). You can check whether your processor supports hardware virtualization with the following command:
8 |
9 | ```sh
10 | lscpu | grep Virtualization
11 | ```
12 |
13 | If nothing is displayed after running th command, then your processor does not support hardware virtualization, and you will not be able to use KVM.
14 |
15 | >Note: You may need to enable virtualization support in your BIOS. All x86_64 processors manufactured by AMD and Intel in the last 10 years support virtualization. If it looks like your processor does not support virtualization, it is almost certainly turned off in the BIOS.
16 |
17 | ### Kernel support النواة
18 |
19 | ensure that the kernel modules are automatically loaded, with the command:
20 |
21 | ```sh
22 | lsmod | grep kvm
23 | ```
24 |
25 | ## Install التنصيب
26 |
27 | ### Fedora 36 +
28 |
29 | - حزم أساسية
30 |
31 | ```sh
32 | sudo dnf install virt-manager qemu-kvm libvirt virt-viewer virt-install python3-libguestfs virt-top bridge-utils guestfs-tools libguestfs-tools libvirt-devel
33 | ```
34 |
35 | - حزم إضافية
36 |
37 | ```sh
38 | sudo dnf install genisoimage dnsmasq libosinfo libosinfo-devel
39 | ```
40 |
41 | For More [Fedora Docs](https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-virtualization/)
42 |
43 | ### Ubuntu 22.04 +
44 |
45 | ```sh
46 | sudo apt install virt-manager
47 | ```
48 |
49 | For More [Ubuntu Docs](https://help.ubuntu.com/community/KVM/VirtManager)
50 |
51 | ### Arch
52 |
53 | Find the steps at [Arch WiKi](https://wiki.archlinux.org/title/Virt-Manager)
54 |
55 | ## Add user to `kvm` and `libvirt` groups
56 |
57 | ```sh
58 | sudo usermod -aG kvm,libvirt $USER
59 | ```
60 |
61 | ## Restart the system
62 |
63 | ## Dynamically Allocated Disk in KVM - إنشاء وحدة تخزين ذات مساحة متغيرة
64 |
65 | - Create a 120 GB Disk:
66 |
67 | ```sh
68 | qemu-img create -f qcow2 -o preallocation=off 120-disk.qcow2 120G
69 | ```
70 |
71 | - Script:
72 |
73 | ```sh
74 | #!/bin/sh
75 |
76 | read -p "Enter the disk size in GBs like "80G": " a
77 | while [[ -z "$a" ]]; do
78 | read -p "Enter the disk size, please! " a
79 | done
80 |
81 | qemu-img create -f qcow2 -o preallocation=off $a-disk.qcow2 $a
82 | ```
--------------------------------------------------------------------------------
/Waydroid.md:
--------------------------------------------------------------------------------
1 | # Waydroid
2 |
3 | ## Install WayDroid
4 |
5 | ### Fedora 36
6 |
7 | > **NOTE: Kernels 5.18.18 to 5.19.5 are broken**
8 |
9 | 1. Add the Copr repository
10 |
11 | ```sh
12 | sudo dnf copr enable aleasto/waydroid
13 | ```
14 |
15 | 2. Install waydroid
16 |
17 | ```sh
18 | sudo dnf install waydroid
19 | ```
20 |
21 | When launching waydroid from the application menu you'll be asked to initialize waydroid with some android images. Use the following links:
22 |
23 | System OTA: `https://ota.waydro.id/system`
24 |
25 | Vendor OTA: `https://ota.waydro.id/vendor`
26 |
27 | > NOTE: THIS WILL DOWNLOAD NON-FREE COMPONENTS (ffmpeg, possibly others)
28 |
29 | ### Ubuntu 22.04
30 |
31 | - Install Pre-requisites
32 |
33 | ```sh
34 | sudo apt install curl ca-certificates -y
35 | ```
36 |
37 | - The Repo
38 |
39 | Add the repo to your sources.list (for droidian & ubports, this step can be skipped)
40 | Replace DISTRO="jammy" with your current target. Options: focal, jammy, ubuntu-devel, bookworm, bullseye, sid
41 |
42 | ```sh
43 | export DISTRO="jammy"
44 | ```
45 |
46 | ```sh
47 | sudo curl --proto '=https' --tlsv1.2 -Sf https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg && \
48 | echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > ~/waydroid.list && \
49 | sudo mv ~/waydroid.list /etc/apt/sources.list.d/waydroid.list && \
50 | sudo apt update
51 | ```
52 |
53 | - Install Waydroid
54 |
55 | ```sh
56 | sudo apt install waydroid -y
57 | ```
58 |
59 | Then start Waydroid from the applications menu.
60 |
61 | ----
62 |
63 | ### GPU Requirements
64 |
65 | Waydroid currently works best with Intel GPUs. They should work out of the box.
66 |
67 | AMD GPUs appear to have mixed results (in particular, the _RX 6800_ does not work); if Waydroid does _not_ work you might also want to try the NVIDIA instructions below.
68 |
69 | NVIDIA GPUs do _not_ work currently, but there are 2 workarounds:
70 |
71 | - Switch to integrated graphic card if possible;
72 | - Use software rendering:
73 | - Make sure that you have already run `waydroid init` (see [#Installation](https://wiki.archlinux.org/title/Waydroid#Installation) section)
74 | - Edit `/var/lib/waydroid/waydroid_base.prop` and set:
75 |
76 | ```
77 | ro.hardware.gralloc=default
78 | ro.hardware.egl=swiftshader
79 | ```
80 |
81 | - [Restart](https://wiki.archlinux.org/title/Restart "Restart") the `waydroid-container.service`.
82 |
83 |
84 | ## Install and Run Android Applications
85 |
86 | Waydroid is able to perform a few various operations found by using the waydroid app -h command:
87 |
88 | ```
89 | usage: waydroid app [-h] {install,remove,launch,list} ...
90 |
91 | optional arguments:
92 | -h, --help show this help message and exit
93 |
94 | subaction:
95 | {install,remove,launch,list}
96 | install push a single package to the container and install it
97 | remove remove single app package from the container
98 | launch start single application
99 | list list installed applications
100 | ```
101 |
102 | To launch an app ising CLI, you would want to use the waydroid app launch command:
103 |
104 | ```sh
105 | waydroid app launch xyz.apk
106 | ```
107 |
108 | You can also install Android applications from the command line.
109 |
110 | ```sh
111 | waydroid app install xyz.apk
112 | ```
113 |
114 | The apk files you will sometimes find on the internet tend to only have arm support, and will therefore not work on x86_64.
115 |
116 | You may want to install [F-Droid](https://f-droid.org/) to get applications graphically. Note that the Google Play Store will not work as is, because it relies on the proprietary Google Play Services, which are not installed.
117 |
118 | ## Waydroid Prop Options
119 |
120 | Waydroid uses various properties in order to tell the underlying Android system how to behave in a few places. To do this, we use the `waydroid prop` command. To unset a prop, `waydroid prop set ""`
121 |
122 | ### Properties
123 |
124 | - waydroid prop set persist.waydroid.multi_windows true/false (bool) Enables/Disables persistent freeform window mode
125 | - waydroid prop set persist.waydroid.invert_colors true/false (bool) Swaps the color space from RGBA to BGRA (only works with our patched mutter so far)
126 | - waydroid prop set persist.waydroid.height_padding 0-9999 (int) Adjust Height padding (30 will allow you to use navbar on mobile)
127 | - waydroid prop set persist.waydroid.width_padding 0-9999 (int) Adjust width padding
128 | - waydroid prop set waydroid.display_width 0-9999 (int) (auto-generated) Auto generated size of Waydroid screen
129 | - waydroid prop set persist.waydroid.width 0-9999 (int) Used for user to override desired resolution
130 | - waydroid prop set persist.waydroid.suspend true/false (bool) Keep Waydroid awake and do not let container sleep
131 |
132 | ## Setting up a shared folder
133 |
134 | Setting up a shared folders to copy files from `source` to `target`.
135 |
136 | > `Source` files will be accessible from `Target` but not Editable.
137 |
138 | ```sh
139 | sudo mount --bind
140 | ```
141 |
142 | > We will setup the `host` folder to copy files from the host, and the `droid` folder to copy files from waydroid.
143 |
144 | Example:
145 |
146 | - Copy files from Linux to Waydroid:
147 | - on Waydroid Create a `/Waydroid/host` folder
148 | - on Host Create a `~/Waydroid/host` folder
149 | ```sh
150 | mkdir ~/Waydroid/host
151 | ```
152 | - Bind Linux folder to the Android one
153 | ```sh
154 | sudo mount --bind ~/Waydroid/host ~/.local/share/waydroid/data/media/0/Waydroid/host
155 | ```
156 |
157 | - Copy files from Waydroid to Linux :
158 | - on Waydroid Create a `/Waydroid/droid` folder
159 | - on Host Create a `~/Waydroid/droid` folder
160 | ```sh
161 | mkdir ~/Waydroid/droid
162 | ```
163 | - Bind Linux folder to the Android one
164 | ```sh
165 | sudo mount --bind ~/.local/share/waydroid/data/media/0/Waydroid/droid ~/Waydroid/droid
166 | ```
167 |
168 | ## Clipboard
169 |
170 | > Replace `dnf` with the appropriate command for your distro.
171 |
172 | - Install pip
173 |
174 | ```sh
175 | sudo dnf install pip
176 | ```
177 |
178 | - install wl-clipboard
179 |
180 | ```sh
181 | sudo dnf install wl-clipboard
182 | ```
183 |
184 | - install pyclip
185 |
186 | ```sh
187 | pip install --upgrade pip pyclip
188 | ```
189 |
190 | - add `$HOME/.local/bin/` to your $PATH
191 |
192 | add
193 |
194 | ```
195 | export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
196 | ```
197 |
198 | to the appropriate file `.zshenv` or `.bashrc` or `.profile`
199 |
200 | - reboot the system
--------------------------------------------------------------------------------
/Xfce-Customized-Debian-11.md:
--------------------------------------------------------------------------------
1 | # Xfce Customized - Debian 11
2 |
3 | ## Install packages
4 |
5 | ```sh
6 | sudo apt-get install gnome-themes-extra gtk2-engines-murrine gtk2-engines-pixbuf git wget
7 | ```
8 |
9 | ## Wallpaper
10 |
11 | - Download the [Wallpaper](https://www.wallpaperflare.com/debian-linux-mountains-river-forest-nature-wallpaper-ypoud)
12 |
13 | - Rename the file to `debian-wallpaper.jpg`
14 |
15 | - Copy it to `/usr/share/backgrounds/`
16 |
17 | ```sh
18 | sudo mv debian-wallpaper.jpg /usr/share/backgrounds/
19 | ```
20 |
21 | - open Desktop or `xfdesktop-settings` and set the wallpaper
22 |
23 | - in Icons TAB set `icon type` to `NONE` if you dont need desktop shortcuts
24 |
25 | ## Install Theme
26 |
27 | ```sh
28 | cd Downloads
29 | ```
30 |
31 | ```sh
32 | git clone https://github.com/vinceliuice/Graphite-gtk-theme.git
33 | ```
34 |
35 | ```sh
36 | cd Graphite-gtk-theme
37 | ```
38 |
39 | ```sh
40 | sudo ./install.sh -d /usr/share/themes
41 | ```
42 |
43 | ## Install Icons
44 |
45 | ```sh
46 | cd ..
47 | ```
48 |
49 | ```sh
50 | git clone https://github.com/vinceliuice/Tela-circle-icon-theme.git
51 | ```
52 |
53 | ```sh
54 | cd Tela-circle-icon-theme
55 | ```
56 |
57 | ```sh
58 | sudo ./install.sh -d /usr/share/icons
59 | ```
60 |
61 | ## Install Cursors
62 |
63 | ```sh
64 | cd ..
65 | ```
66 |
67 | ```sh
68 | git clone https://github.com/vinceliuice/Graphite-cursors.git
69 | ```
70 |
71 | ```sh
72 | cd Graphite-cursors
73 | ```
74 |
75 | ```sh
76 | sudo ./install.sh
77 | ```
78 |
79 | ## Install grub2 theme
80 |
81 | ```
82 | cd ../Graphite-gtk-theme/other/grub2
83 | ```
84 |
85 | ```sh
86 | sudo ./install.sh
87 | ```
88 |
89 | ## Install Fonts
90 |
91 | ```sh
92 | cd ~/Downloads
93 | ```
94 |
95 | ```sh
96 | mkdir fonts && cd fonts
97 | ```
98 |
99 | ```sh
100 | wget https://fonts.google.com/download?family=Noto%20Sans%20Arabic -O NotoSansArabic.zip /
101 | wget https://fonts.google.com/download?family=Arimo -O Arimo.zip /
102 | wget https://fonts.google.com/download?family=Cousine -O Cousine.zip /
103 | wget https://fonts.google.com/download?family=Tinos -O Tinos.zip /
104 | wget https://fonts.google.com/download?family=Roboto -O Roboto.zip /
105 | wget https://github.com/be5invis/Iosevka/releases/download/v15.6.3/ttf-iosevka-term-15.6.3.zip -O IosevkaTerm.zip
106 | ```
107 |
108 | - Extract it to its folders
109 |
110 | ```sh
111 | find . -name '*.zip' -exec sh -c 'sudo unzip -d /usr/share/fonts/"${1%.*}" "$1"' _ {} \;
112 | ```
113 |
114 | - Config File
115 |
116 | - Create `fontconfig` Folder
117 |
118 | ```bash
119 | mkdir ~/.config/fontconfig
120 | ```
121 |
122 | - Create `fonts.conf` file
123 |
124 | ```bash
125 | nano ~/.config/fontconfig/fonts.conf
126 | ```
127 |
128 | - Copy the below to the file
129 |
130 | ```xml
131 |
132 |
133 |
134 |
135 |
136 | sans-serif
137 |
138 | Arimo
139 | Noto Sans Arabic
140 |
141 |
142 |
143 |
144 | serif
145 |
146 | Tinos
147 | Noto Sans Arabic
148 |
149 |
150 |
151 |
152 | Sans
153 |
154 | Arimo
155 | Noto Sans Arabic
156 |
157 |
158 |
159 |
160 | monospace
161 |
162 | Cousine
163 | Noto Sans Arabic
164 |
165 |
166 |
167 |
168 | Arial
169 |
170 | Arimo
171 |
172 |
173 |
174 | Helvetica
175 |
176 | Arimo
177 |
178 |
179 |
180 | Verdana
181 |
182 | Arimo
183 |
184 |
185 |
186 | Tahoma
187 |
188 | Arimo
189 |
190 |
191 |
192 |
193 | Comic Sans MS
194 |
195 | Arimo
196 |
197 |
198 |
199 | Times New Roman
200 |
201 | Tinos
202 |
203 |
204 |
205 | Times
206 |
207 | Tinos
208 |
209 |
210 |
211 | Courier New
212 |
213 | Cousine
214 |
215 |
216 |
217 | ```
218 |
219 | - Press CTRL+O to Save
220 |
221 | - Press CTRL+X to Exit
222 |
223 | - Update Fonts and Config
224 |
225 | ```bash
226 | sudo fc-cache -fv
227 | ```
228 |
229 | ---
230 |
231 | ## Set Theme
232 |
233 | - Open Appearance Settings
234 |
235 | * set Style to Graphite-Dark
236 | * set Icons to Tela circle dark
237 | * set Default Font to Roboto Regular
238 | * set Default Monospcae Font to Iosevka Term Regular
239 |
240 | - Open Mouse and Touchpad
241 | * set Theme to Graphite light Cursors
242 |
243 | - Open Window Manager Settings
244 |
245 | - in Style
246 | * set theme to Graphite-Dark
247 | * set Title Font to Roboto Regular
248 |
249 | - Open Window Manager Tweaks Settings
250 |
251 | * in Copositor
252 | * set Opacity to your liking
253 | * uncheck Show shadows under dock windows
254 |
255 | ---
256 |
257 | ## Xfce Panel
258 |
259 | - Open Panel Preferences
260 |
261 | - in Display:
262 |
263 | * set Mode to Deskbar
264 | * set Row size to 50
265 |
266 | - in Appearance:
267 |
268 | * set Fixed icon size (pixels) to 23
269 | * set Opacity Enter to `80` and Leave to `80`
270 | - in Items
271 | * add Whisker Menu and move it to the top
272 | * remove Applications Menu
273 | * remove Window Buttons
274 | * remove the first Separator
275 | * select the second Separator and set its Appearance to Expand
276 | * remove Workspace Switcher
277 | * add System Load Monitor
278 | * remove Clock
279 | * add DateTime item for DATE only and set Font
280 | * add DateTime item for TIME only and set Font
281 | * add Keyboard Layouts and configure it
282 |
283 | - open Settings for Action Buttons on the panel
284 |
285 | * Set Appearance to Action Buttons
286 | * uncheck all items but `LogOut..`
287 | * check Show comfirmation dialog
288 |
289 | - open Settings for Status Tray Items
290 |
291 | * Set Fixed icon size (pixels) to 16
292 |
293 |
294 | - add Weather item and set it up
295 |
296 |
297 |
298 | - REMOVE PANAEL 2
299 |
300 | ---
301 |
302 | ## Whisker Menu
303 |
304 | open Whisker Menu settings
305 |
306 | - In Appearance
307 |
308 | * Select Show as list
309 | * uncheck Show Category Names
310 | * uncheck Show application tooltip
311 | * uncheck Show application descriptions
312 | * uncheck Position categories next to panel button
313 | * Set Application icon size to Small
314 | * Set Background opacity to 80
315 |
316 | - in Panel Button
317 |
318 | * Click on the Icon
319 | * set Select icon from to All Icons
320 | * Search for Search Icon and select it and hit OK
321 | * check Use a single panel row
322 |
323 | - in Behavior
324 |
325 | * set Default Category to All Applications
326 | * for Menu Check Switch categories by hovering
327 |
328 | - in Commands
329 | * uncheck all
330 |
331 | - Open the Whisker Menu and expand it to the bottom of the screen
332 |
333 | - Set Super Key open Whisker Menu
334 |
335 | * Open Keyboard Settings > Application Shortcuts
336 | * Click Add
337 | * Command: `xfce4-popup-whiskermenu`
338 |
339 |
340 | ## Plank Dock
341 |
342 | - Install plank dock
343 |
344 | ```sh
345 | sudo apt install plank
346 | ```
347 |
348 | - open it from the app menu
349 |
350 | - Theme it
351 |
352 | ```sh
353 | mkdir ~/.local/share/plank/themes/shade && wget https://raw.githubusercontent.com/kennyh7279/plank-themes/main/shade/dock.theme -O ~/.local/share/plank/themes/shade/dock.theme
354 | ```
355 |
356 | - open plank settings
357 |
358 | ```sh
359 | plank --preferences
360 | ```
361 |
362 | in Appearance
363 |
364 | Set Theme to shade
365 | Set Icon Size to 40
366 | Enable Icon Zoom and set it to 135
367 |
368 | in Docklets
369 |
370 | add Desktop to the Dock
371 |
372 | - close the pank settings
373 |
374 | - add your apps to the dock
375 |
376 | - add plank to start up apps
377 |
378 | Open Session and Startup settings > Application Autostart
379 |
380 | add new item
381 |
382 | Name: Plank Dock
383 | Description: Plank Dock
384 | Command: plank
385 | Trigger: on login
386 |
387 | ---
388 |
389 | ## Ulauncher
390 |
391 | - Donwload [Ulauncher](https://ulauncher.io/#Download)
392 |
393 | - Install the DEB file
394 | ```bash
395 | sudo apt install ./ulauncher*.deb -y
396 | ```
397 |
398 | - Create a Dir for theme
399 |
400 | ```sh
401 | mkdir -p ~/.config/ulauncher/user-themes
402 | ```
403 |
404 | - Download and install Matcha-Dark-Azul
405 |
406 | ```sh
407 | git clone https://github.com/matbme/Matcha-dark-aliz-for-ULauncher.git ~/.config/ulauncher/user-themes/Matcha-dark-aliz
408 | ```
409 |
410 | - Make Sure it auto start from ULauncher Settings
411 |
412 | ---
413 |
414 | ## slick-greeter
415 |
416 | - Install slick-greeter
417 |
418 | ```sh
419 | sudo apt install slick-greeter lightdm-settings
420 | ```
421 |
422 | - Open Login Window
423 |
424 | in Appearance Set the Theme and Background
425 |
426 | in Users Turn OFF `Hide the user list`
427 |
428 | - Restart the system
429 |
430 | ## ZSH
431 |
432 | - Install Packages
433 |
434 | ```bash
435 | sudo apt install zsh ranger
436 | ```
437 |
438 | - Create the Folders
439 |
440 | ```bash
441 | mkdir -p ~/.config/zsh/plugins && mkdir -p ~/.cache/zsh
442 | ```
443 |
444 | - Move '.zshrc' file to '$HOME/.config/zsh'
445 |
446 | ```sh
447 | echo -e '\n\n# zsh\nexport ZDOTDIR="$HOME/.config/zsh"\n[[ ! -f "$HOME/.local/bin/" ]] || PATH="$PATH:$HOME/.local/bin/"\nexport LESSHISTFILE=-' >> ~/.zshenv
448 | ```
449 |
450 | - Download Fonts
451 |
452 | ```bash
453 | wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf -P ./MesloLGS-NF
454 | ```
455 |
456 | - Install Fonts
457 |
458 | ```bash
459 | sudo mv MesloLGS-NF /usr/share/fonts
460 | ```
461 |
462 | - Set the shell font
463 |
464 | Set the shell font to MesloLGS NF Regular
465 |
466 | > Close and reopen the terminal
467 |
468 | Set the shell font to MesloLGS NF Regular
469 |
470 | - Download Plugins
471 |
472 | ```sh
473 | git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/autosuggestions && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/zsh/plugins/syntax-highlighting && git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git ~/.config/zsh/plugins/autocomplete && git clone https://github.com/spaceship-prompt/spaceship-prompt.git --depth=1 ~/.config/zsh/plugins/spaceship-prompt
474 | ```
475 |
476 | - Create `.zshrc` file
477 |
478 |
479 | ```sh
480 | nano ~/.config/zsh/.zshrc
481 | ```
482 |
483 | - copy the below to the file
484 |
485 | ```sh
486 | # Aliases
487 | alias ls='ls --color=auto'
488 | alias ll='ls -lah --color=auto'
489 | alias grep='grep --color=auto'
490 | alias update='sudo apt update && sudo apt upgrade -y && flatpak update -y'
491 | alias clean='sudo apt autoremove -y && sudo apt autoclean -y && flatpak remove --unused -y'
492 |
493 |
494 | # Use vi keybindings even if our EDITOR is set to vi
495 | bindkey -e
496 |
497 | setopt histignorealldups sharehistory autocd extendedglob nomatch notify
498 |
499 | # history
500 | HISTFILE=~/.config/zsh/.histfile
501 | HISTSIZE=10000
502 | SAVEHIST=10000
503 |
504 | # Use modern completion system
505 | autoload -Uz compinit
506 | compinit
507 |
508 | #--- Plugins Options ---#
509 |
510 | source ~/.config/zsh/plugins/syntax-highlighting/zsh-syntax-highlighting.zsh
511 | source ~/.config/zsh/plugins/autosuggestions/zsh-autosuggestions.zsh
512 | source ~/.config/zsh/plugins/autocomplete/zsh-autocomplete.plugin.zsh
513 | source ~/.config/zsh/plugins/spaceship-prompt/spaceship.zsh
514 |
515 | # ranger-cd
516 | function ranger-cd {
517 | tempfile="$(mktemp -t tmp.XXXXXX)"
518 | /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"
519 | test -f "$tempfile" &&
520 | if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
521 | cd -- "$(cat "$tempfile")"
522 | fi
523 | rm -f -- "$tempfile"
524 | }
525 |
526 | #ranger-cd will run by alt+r
527 | bindkey -s "^\er" "ranger-cd\n"
528 | ```
529 |
530 | - Press CTRL+O to Save
531 |
532 | - Press CTRL+X to Exit
533 |
534 | - ZSH as the default shell
535 |
536 | * for `root`
537 |
538 | ```bash
539 | sudo -s
540 | ```
541 |
542 | ```bash
543 | chsh -s /bin/zsh root
544 | ```
545 |
546 | ```bash
547 | exit
548 | ```
549 |
550 | * for `user`
551 |
552 | ```bash
553 | chsh -s /bin/zsh $USER
554 | ```
555 |
556 | - Restart the System
--------------------------------------------------------------------------------
/ZSH.md:
--------------------------------------------------------------------------------
1 | # ZSH
2 |
3 | ## Update your system
4 |
5 | * Ubuntu
6 |
7 | ```bash
8 | sudo apt update && sudo apt upgrade -y
9 | ```
10 |
11 | ```bash
12 | sudo apt autoremove && sudo apt autoclean
13 | ```
14 |
15 | * Fedora
16 |
17 | ```bash
18 | sudo dnf upgrade
19 | ```
20 |
21 | ## Install Packages
22 |
23 | * Ubuntu
24 |
25 | ```bash
26 | sudo apt install zsh ranger git wget
27 | ```
28 |
29 | * Fedora
30 |
31 | ```bash
32 | sudo dnf install zsh ranger git wget util-linux-user
33 | ```
34 |
35 | ## Create the Folders
36 |
37 | ```bash
38 | mkdir -p ~/.config/zsh/plugins && mkdir -p ~/.cache/zsh
39 | ```
40 |
41 | ## Move '.zshrc' file to '$HOME/.config/zsh'
42 |
43 | * Ubuntu
44 |
45 | ```bash
46 | echo -e '\n\n# zsh\nexport ZDOTDIR="$HOME/.config/zsh"' >> ~/.profile
47 | ```
48 |
49 | * Fedora
50 |
51 | DO NOTHING
52 |
53 | ## Download Fonts
54 |
55 | ```bash
56 | wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf -P ./MesloLGS-NF
57 | ```
58 |
59 | ## Install Fonts
60 |
61 | ```bash
62 | sudo mv MesloLGS-NF /usr/share/fonts
63 | ```
64 |
65 | ## Set the shell font
66 |
67 | * Ubuntu
68 |
69 | Set the shell font to MesloLGS NF Regular
70 |
71 | * Fedora
72 |
73 | > Close and reopen the terminal
74 |
75 | Set the shell font to MesloLGS NF Regular
76 |
77 | ## LOGOUT and LOGIN
78 |
79 | ## Run `zsh` and configure it
80 |
81 | ```bash
82 | zsh
83 | ```
84 |
85 | ## Download Plugins
86 |
87 | ```bash
88 | git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/autosuggestions && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/zsh/plugins/syntax-highlighting && git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.config/zsh/plugins/powerlevel10k
89 | ```
90 |
91 | ## Install Plugins
92 |
93 | * Ubuntu
94 |
95 | ```bash
96 | echo -e '\n\n# Plugins\nsource ~/.config/zsh/plugins/powerlevel10k/powerlevel10k.zsh-theme\nsource ~/.config/zsh/plugins/autosuggestions/zsh-autosuggestions.zsh\nsource ~/.config/zsh/plugins/syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.config/zsh/.zshrc
97 | ```
98 |
99 | * Fedora
100 |
101 | ```bash
102 | echo -e '\n\n# Plugins\nsource ~/.config/zsh/plugins/powerlevel10k/powerlevel10k.zsh-theme\nsource ~/.config/zsh/plugins/autosuggestions/zsh-autosuggestions.zsh\nsource ~/.config/zsh/plugins/syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
103 | ```
104 |
105 | ## add ranger to zsh
106 |
107 | * Ubuntu
108 |
109 | ```bash
110 | echo -e '\n\n# ranger-cd\nfunction ranger-cd {\n tempfile="$(mktemp -t tmp.XXXXXX)"\n /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"\n test -f "$tempfile" &&\n if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then\n cd -- "$(cat "$tempfile")"\n fi \n rm -f -- "$tempfile"\n}\n\n#ranger-cd will run by alt+r\nbindkey -s "^\\er" "ranger-cd\\n"' >> ~/.config/zsh/.zshrc
111 | ```
112 |
113 | * Fedora
114 |
115 | ```bash
116 | echo -e '\n\n# ranger-cd\nfunction ranger-cd {\n tempfile="$(mktemp -t tmp.XXXXXX)"\n /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}"\n test -f "$tempfile" &&\n if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then\n cd -- "$(cat "$tempfile")"\n fi \n rm -f -- "$tempfile"\n}\n\n#ranger-cd will run by alt+r\nbindkey -s "^\\er" "ranger-cd\\n"' >> ~/.zshrc
117 | ```
118 |
119 | ## ZSH as the default shell
120 |
121 | * for `root`
122 |
123 | ```bash
124 | sudo -s
125 | ```
126 |
127 | ```bash
128 | chsh -s /bin/zsh root
129 | ```
130 |
131 | ```bash
132 | exit
133 | ```
134 |
135 | * for `user`
136 |
137 | ```bash
138 | chsh -s /bin/zsh $USER
139 | ```
140 |
141 | ## LOGOUT and LOGIN
142 |
143 | ## Open the Terminal and Configure it
144 |
--------------------------------------------------------------------------------
/appimages.md:
--------------------------------------------------------------------------------
1 | ## how to install
2 |
3 | ### Via AppImage Launcher
4 |
5 | - Download the [app](https://github.com/TheAssassin/AppImageLauncher)
6 |
7 | - Install it
8 |
9 | - Run the `AppImage` Program
10 |
11 | ### Manual
12 |
13 | - Make `AppImage` executable
14 |
15 | ```sh
16 | chmod a+x
17 | ```
18 |
19 | - Get `.png` icon
20 |
21 | - create `.desktop` file
22 |
23 | ```ini
24 | [Desktop Entry]
25 | Type=Application
26 | Name=APPNAME
27 | Exec=PATH/TO/APP/APPIMAGE
28 | Icon=PATH/TO/APP/ICON
29 | Categories=EX"AudioVideo;Video;"
30 | Comment=ABOUT THE APP
31 | GenericName=APP GENERAL NAME
32 | Terminal=false
33 | ```
34 |
35 | - Copy the new `.desktop` file to:
36 |
37 | ```
38 | $HOME/.local/share/applications/
39 | ```
40 |
41 | ## Make appimages fully portable.
42 |
43 | - Create a dir named `AppImageFile.home`
44 |
45 | ## Advanced: Extract AppImge
46 |
47 | ```sh
48 | ./AppImageFile --appimage-extract
49 | ```
50 |
51 | ## Advanced: `desktop-file-utils`
52 |
53 | - Validate `.desktop`
54 |
55 | ```sh
56 | desktop-file-validate app.desktop
57 | ```
58 |
59 | - Install `.desktop`
60 |
61 | ```sh
62 | desktop-file-install --dir=$HOME/.local/share/applications /path/to/app.desktop
63 | ```
64 |
65 | - Update desktop database
66 |
67 | ```sh
68 | update-desktop-database ~/.local/share/applications
69 | ```
70 |
71 | ---
72 |
73 | >Reference:
74 | [desktop entries - arch wiki](https://wiki.archlinux.org/title/desktop_entries)
75 | [desktop entry specifications - freedesktop](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html)
76 | [menu specifications - freedesktop](https://specifications.freedesktop.org/menu-spec/menu-spec-latest.html)
77 | [Xdg-menu - arch wiki](https://wiki.archlinux.org/title/Xdg-menu)
78 | [portable appimage](https://docs.appimage.org/user-guide/portable-mode.html)
--------------------------------------------------------------------------------
/elementaryOS6-PostInstall.md:
--------------------------------------------------------------------------------
1 | # elementary OS 6 - Post Install
2 |
3 | ## Update and Clean
4 |
5 | * Update
6 |
7 | ```bash
8 | sudo apt update && sudo apt upgrade -y
9 | ```
10 |
11 | * Clean
12 |
13 | ```bash
14 | sudo apt autoremove && sudo apt autoclean
15 | ```
16 |
17 | ## Change the Hostname
18 |
19 | 1. Change the hostname using `hostnamectl`
20 |
21 | ```bash
22 | sudo hostnamectl set-hostname NEW-NAME
23 | ```
24 |
25 | 2. Edit the /etc/hosts file
26 |
27 | ```bash
28 | sudo nano /etc/hosts
29 | ```
30 |
31 | ## Install Pantheon Tweaks
32 |
33 | Install the required packages
34 |
35 | ```bash
36 | sudo apt install -y software-properties-common
37 | ```
38 |
39 | Add the repository
40 |
41 | ```bash
42 | sudo add-apt-repository -y ppa:philip.scott/pantheon-tweaks
43 | ```
44 |
45 | Install Pantheon Tweaks
46 |
47 | ```bash
48 | sudo apt install -y pantheon-tweaks
49 | ```
50 |
51 | ## Flatpak
52 |
53 | Add Flathub as a system remote:
54 |
55 | ```bash
56 | flatpak remote-add --if-not-exists flathub --system https://flathub.org/repo/flathub.flatpakrepo
57 | ```
58 |
59 | Install Apps (e.g. VLC)
60 |
61 | * system-wide:
62 |
63 | ```bash
64 | flatpak install --system flathub org.videolan.VLC
65 | ```
66 |
67 | * user:
68 |
69 | ```bash
70 | flatpak install --user flathub org.videolan.VLC
71 | ```
72 |
--------------------------------------------------------------------------------
/gnome-keybindings.md:
--------------------------------------------------------------------------------
1 | # gnome-keybindings
2 |
3 | ## Set `switch-input-source` to `Alt+Shift` open terminal and run:
4 |
5 | * Set `switch-input-source` switch to Shift+Alt LEFT
6 |
7 | ```bash
8 | gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['Alt_L']"
9 | ```
10 |
11 | * set `switch-input-source-backward` to Alt+Shift LEFT
12 |
13 | ```bash
14 | gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['Shift_L']"
15 | ```
16 |
17 | to view current keybindings run:
18 |
19 | ```bash
20 | gsettings get org.gnome.desktop.wm.keybindings switch-input-source
21 | gsettings get org.gnome.desktop.wm.keybindings switch-input-source-backward
22 | ```
23 |
--------------------------------------------------------------------------------
/macOS-theme-for-Ubuntu.md:
--------------------------------------------------------------------------------
1 | ## macOS Theme for Ubuntu
2 |
3 | 1. Download Packages
4 | ```bash
5 | sudo apt install git gnome-tweaks -y
6 | ```
7 |
8 | 2. Install [Firefox Extension](https://extensions.gnome.org)
9 |
10 | 3. Install Extensions
11 | 1. [Dash to Dock](https://extensions.gnome.org/extension/307/dash-to-dock)
12 | - Set Dock Position to the Bottom
13 | - Disable Intelligent autohide
14 | 2. [User Themes](https://extensions.gnome.org/extension/19/user-themes)
15 |
16 | 4. Create a work directory
17 |
18 | ```bash
19 | mkdir mac-theme && cd mac-theme
20 | ```
21 |
22 | 5. Main Theme
23 | - Download
24 | ```bash
25 | git clone https://github.com/vinceliuice/WhiteSur-gtk-theme.git
26 | ```
27 | - Install Main Theme
28 | ```bash
29 | ./WhiteSur-gtk-theme/install.sh -c dark -c light -i ubuntu -N mojave
30 | ```
31 | - Install the Theme for Firefox and Dash to Dock
32 | ```bash
33 | ./WhiteSur-gtk-theme/tweaks.sh -f -d
34 | ```
35 |
36 | 6. Install icons
37 | - Download
38 | ```bash
39 | git clone https://github.com/vinceliuice/WhiteSur-icon-theme.git
40 | ```
41 | - Install
42 | ```bash
43 | ./WhiteSur-icon-theme/install.sh
44 | ```
45 |
46 | 7. Cursors
47 | - Download
48 | ```bash
49 | git clone https://github.com/vinceliuice/McMojave-cursors
50 | ```
51 | - Install
52 | ```bash
53 | cd McMojave-cursors && ./install.sh && cd ..
54 | ```
55 |
56 | 8. Wallpapers
57 | - Download
58 | ```bash
59 | wget https://codeload.github.com/vinceliuice/WhiteSur-gtk-theme/zip/wallpapers
60 | ```
61 | - Extract
62 | ```bash
63 | unzip wallpapers
64 | ```
65 | - Install
66 | ```bash
67 | sudo ./WhiteSur-gtk-theme-wallpapers/install-gnome-backgrounds.sh
68 | ```
69 |
70 | 9. Ulauncher - You have two options to install it
71 |
72 | 1. via PPA
73 | - add the PPA
74 | ```bash
75 | sudo add-apt-repository ppa:agornostal/ulauncher
76 | ```
77 | - Update
78 | ```bash
79 | sudo apt update
80 | ```
81 | - Insatall the app
82 | ```bash
83 | sudo apt install ulauncher -y
84 | ```
85 |
86 | 2. via DEB file - IF YOUR DISTRO NOT SUPPORTED VIA PPA
87 | - Install `wget` if it's not installed already
88 | ```bash
89 | sudo apt install wget -y
90 | ```
91 | - Download the latest release from GitHub
92 | ```bash
93 | wget https://github.com/$(wget https://github.com/Ulauncher/Ulauncher/releases/latest -O - | egrep '/.*/.*/.*deb' -o)
94 | ```
95 | - Install the DEB file
96 | ```bash
97 | sudo apt install ./ulauncher*.deb -y
98 | ```
99 |
100 | 10. Install `wmctrl` for Wayland
101 | ```bash
102 | sudo apt install wmctrl -y
103 | ```
104 |
105 | 11. SET Super+u for `ulauncher-toggle`
106 |
--------------------------------------------------------------------------------
/tesseract.md:
--------------------------------------------------------------------------------
1 | # Tesseract OCR
2 |
3 | ## About Tesseract OCR - تعريف بالأداة
4 |
5 | [wikipedia](https://en.wikipedia.org/wiki/Tesseract_(software))
6 | [Github](https://github.com/tesseract-ocr/tesseract)
7 |
8 | ## install - التنصيب
9 |
10 | - Fedora
11 |
12 | >pre-installed on Fedora 36
13 |
14 | ```sh
15 | sudo dnf install tesseract
16 | ```
17 |
18 | - Ubuntu
19 |
20 | ```sh
21 | sudo apt install tesseract-ocr
22 | ```
23 |
24 | - Arch
25 |
26 | ```sh
27 | sudo pacman -Sy
28 | sudo pacman -S tesseract-data-eng
29 | ```
30 |
31 | ## Arabic Support - دعم اللغة العربية
32 |
33 | - Fedora
34 |
35 | ```sh
36 | sudo dnf install tesseract-langpack-ara
37 | ```
38 |
39 | - Ubuntu
40 |
41 | ```sh
42 | sudo apt install tesseract-ocr-ara
43 | ```
44 |
45 | - Arch
46 |
47 | ```sh
48 | sudo pacman -S tesseract-data-ara
49 | ```
50 |
51 | ## Usage - الاستخدام
52 |
53 | - Arabic only - اللغة العربية فقط
54 |
55 | ```sh
56 | tesseract -l ara image.png text
57 | ```
58 |
59 | - English only - اللغة الإنجليزية فقط
60 |
61 | ```sh
62 | tesseract -l eng image.png text
63 | ```
64 |
65 | - Arabic and English - العربية والإنجليزية معًا
66 |
67 | ```sh
68 | tesseract -l ara+eng image.png text
69 | ```
70 |
71 | > More Examples - مزيد من الأمثلة: [here - هنا](https://tesseract-ocr.github.io/tessdoc/Command-Line-Usage.html)
--------------------------------------------------------------------------------