Fedora Tips#
Install Softwares And Tools#
Install NeoFetch#
- Run the command below
1 |
|
Install Htop#
- Run the command below
1 |
|
Install Chrome#
- Go to
Software application
and install chrome from there. Installing by download RPM file may not be worked.
Install Flameshot#
1 |
|
Install Gnome Tweaks#
1 |
|
Install Docker - Docker Compose#
- Go to this page and following the instruction.
Install Hugo#
- Run the command below to install Hugo
1 |
|
Install ZSH#
- Zsh (short for Z Shell) is a feature-rich and powerful shell program for Unix-like operating systems with lots of interactive features. It is an extended version of the Bourne Shell (sh), with a large number of new features, and support for plugins and themes. It is designed for interactive use and it is also a powerful scripting language.
1 |
|
- Check
zsh
installed version
1 |
|
- Configure
zsh
1 |
|
-
Then you will see the instruction for the first configuration.
- Press 1 to go to the main menu and configure each setting individually.
- Press 2 to populate the
.zshrc
configuration file with the default parameters, which you can later change manually in the.zshrc
file. - Press 0 to create an empty
.zshrc
configuration file and configure everything from scratch. - Press q to exit the configuration and start it again the next time you enter
Zsh
.
-
Then let's set the
zsh
as default shell. - Firstly, let's check the default shell
1 |
|
- If the default
shell
is/bin/bash
then we can change it tozsh
by running the command below.
1 |
|
- After that, let's reload the
zsh
by command.
1 |
|
Install Oh-My-Zsh in Fedora#
- Install
oh-my-zsh
in fedora
1 |
|
- Config theme for
oh-my-zsh
.
1 |
|
- If you check,
robbyrussel
is the default theme for ZSH.
.zshrc | |
---|---|
1 2 3 4 5 6 7 |
|
-
Therefore, to replace or change your ZSH theme, get the name of the theme from
$HOME/.oh-my-zsh/themes/
folder and substitute therobbyrussell
with the new name of your preferred theme. -
For example, to change the themes to
fino-time
theme,$HOME/.oh-my-zsh/themes/fino-time.zsh-theme
.zshrc | |
---|---|
1 2 3 4 5 6 7 |
|
- Then save and run command below to reload.
1 |
|
- Then we can see the result as below.
Install CUPS-PDF#
- This software is designed to produce PDF files in a heterogeneous network by providing a PDF printer on the central fileserver.
- Run commands below for installing
cups-pdf
.
1 |
|
1 |
|
1 |
|
- Then let's open file
/etc/cups/cups-pdf.conf
. Then change the path setting as below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Install Virtual Box#
- Run commands below to install Virtual Box on Fedora 39.
1 |
|
1 |
|
Install Croc#
1 |
|
Install Fzf#
- fzf is a general-purpose command-line fuzzy finder.
1 2 |
|
Install Postman#
- Clone this repository from github and put it in anywhere you like postman-rpm
- Then run the script in that repository.
1 |
|
-
Then an
rpm package
will appear by the end of the process. -
Next install the
rpm package
with the command as below.
1 |
|
Warp VPN#
- Add
cloudflare-warp.repo
to/etc/yum.repos.d/
1 |
|
- Update repo
1 |
|
- Install
1 |
|
- Then use the command below to register WARP client to server. You just need to do this step one time.
1 |
|
- Then use the command below to connect WARP VPN
1 |
|
- Use the command below to disconnect WARP VPN
1 |
|
Install Pip#
- By default, the PIP package is not installed on Fedora, so you will need to install it first. You can install it using the following command.
1 |
|
- Once the PIP package is installed, you can verify the PIP version with the following command.
1 |
|
- Update your PATH variable
- Sometimes, even after installing Python and pip, the “pip command not found” error may persist due to issues with your system’s PATH variable. To fix this, you should add the pip binary directory to your PATH.
- If you’re using the Bash shell, open the
.bashrc
file, while users of the Zsh shell should edit the.zshrc
file.
1 |
|
Fix Issue With Flathub#
- When you install application with
flatpak
, you might get the errorno remote refs found similar to flathub
as below.
1 2 |
|
- To fix this issue we just need to run the script below to add the the flathub repository.
1 |
|
- Then now, you run command for installing your appliction again, then you can see it is successful.
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 |
|
Disable Automatic Airplane Mode When Lib Is Open#
- For laptop user, there could be a quite annoying issue that the
Airplane Mode
automatically turns on when lid is opened on HP laptop.
Create service to remap the scancode#
- Firstly, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to create a service file and edit via Gedit text editor:
1 |
|
- When file opens, paste below lines and save it.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Enable the service#
1 2 |
|
Undo the changes#
1 2 |
|
Disable Swap Memrory#
- On fedora, if you use the command below for disable swap memory.
1 |
|
- Then it will not successful. The swap memory will be enable automatically again after.
- So, to disable swap memory permanently you should use the command below and reboot your computer.
1 |
|
- This command will remove the package which generates its configuration for using swap memory.
- After execute the command above, you should see the successful result as below.
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 |
|
Remote Desktop Sharing#
Enable Remote Desktop Sharing#
- Go to the
setting
->sharing
-> turn on enable sharing button as in the image below.
- Then click on
Remote Desktop
. Inside theRemote Desktop
, enableRemote Desktop
andRemote Control
as in the image below.
- Check the username and password which we will use to login when connect to this Linux machine from another computer.
Connect To Remote Desktop By Linux Machine#
- Go to
Software
application and install theRemmina
application.
- Then open the
Remmina
application, choose typeRDP
and put the IP address of the remote desktop in your LAN network as in the image below and pressenter
.
- Then you will need to input the username and password that we configured in the Remote Desktop Linux machine.
- Finally, you can access your remote desktop as in the image below.
Fix Error Can Not Start Virtual Machine On Virtual Box#
- If you see the error as below.
1 2 3 4 5 6 7 8 9 10 11 |
|
- Then run commands below for fixing on Fedora 39, virtual box 7.0.14.
1 |
|
1 2 |
|
1 |
|
Fix Error Can not Open Terminal In Virtual Box#
- If you can not open the Terminal of Ubuntu in Virtual Box. You can do some steps below.
- Firstly go to
Setting
-->Region & Language
- Next go to section
My Account
- change
Language
to `English (United States). - change
Formats
toUnited States
.
- change
- Next go to section
Login Screen
- change
Language
to `English (United States). - change
Formats
toUnited States
.
- change
- Finally Reboot the Ubuntu Virtual Machine.
Fix Can Not Copy & Paste From Parent Machine To Virtual Machine#
- In Ubuntu Virtual Box choose
Devices
then chooseInsert Guest Additions CD Image...
- Then open injected Image Disk and run commands below.
1 |
|
1 |
|
1 |
|
- Then run command below to install tools.
1 |
|
- Finally reboot the Ubuntu virtual machine then you can copy & paste between parent and Ubuntu virtual machine.
Add Fedora Device Into Tailscale#
1 |
|
Fix Nvidia Driver On Fedora 40#
- Check installed packages for nvidia driver.
1 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
- Remove installed nvidia packages.
1 |
|
- Reinstall the lastest nvidia packages.
1 |
|
- Checks the akmod packages and try all.
1 |
|
- Reboot and access to BIOS system.
- Important: Now let's turn-off the
Secure Boot
in BIOS. - Then reboot and in the login screen choose login with
Gnome on XOrg
. - Finally we can see the
Fix Can't Control GPU Fan In Nvidia Settings#
- Create a configuration file name
Xwrapper.config
with the path/etc/X11/Xwrapper.config
as below.
1 |
|
- Then let's add 2 lines below into that file.
Xwrapper.config | |
---|---|
1 2 |
|
- Then save and reboot the system.
- Then we can control the GPU Fan Setting as in the image below.
Make Second Hard Disk As Fedora Installer#
- This session will be useful if you using Windows and you want to install the Fedora but you don't have the USB stick and you only have 2 Disks: one disk is used for Windows and the other Disk is free. If you have the USB stick then just go with it as documented in the fedora documentation
- Firstly on the Windows machine you should create a WSL2 machine. You can follow steps in WSL2 or the Microsoft Documentation.
- Then for the Free Disk that don't have the installed Windows. Let's open the
Disk Management
of Windows and delete the volume of that Disk.
-
Now, let's mount the hard disk into the WSL2 machine.
-
Let's open the
Windows Power Shell
with theAdministration
and use the command below to list all the available disks with theDeviceID
1 |
|
- Then you can see the results as below.
1 2 3 4 5 6 7 8 |
|
- Now, you can detect disk that you want to mount and use the command below with the
DeviceID
.
1 |
|
- Then let's run the command below to identify the desk that you want to format as
FAT32
.
1 |
|
-
This command lists all block devices and their current filesystem information. Locate the partition you intend to format (e.g.,
/dev/sdb1
). -
Then run the command below to format the disk to
FAT32
1 |
|
- Now, in the WSL2 machine let's download the Fedora Distro that you want. For example we will download the
Fedora Silverblue 42
ISO file by using the command below.
1 |
|
- Then run the command below to create the Fedora boot disk.
1 |
|
- For example.
1 |
|
- After all, let's reboot and in the boot option, let's choose the disk that you install Fedora installation and now you can do the Fedora installation and you can install on the disk that you installed Windows.
Fix Issue Flameshot Not Show Icon In Gnome#
- After install the
Flameshot
app and then you open but the icon of the flameshot application doesn't appear on the top bar then you should install this gnome extension: AppIndicator and KStatusNotifierItem Support.
Use Podman Of Host Machine From ToolBox In Fedora Silverblue#
- If you are using the Fedora Silverblue then you can see that, by default the
Podman
is installed in the host machine and if you are using toolbox which is actually a podman container and there is nopodman
installation there. So to use the installedPodman
in the host machine from the toolbox then you use the command below.
1 |
|
- For example
1 |
|
- Then you can see the result.
1 2 |
|
- Now, let's create alias for the command above then you don't have to type a long command every time you want to use podman from the host machine.
- Let's open the
~/.zshrc
and add the command below to the end of that file.
1 2 |
|
- Then reload the
~/.zshrc
by using the commandsource ~/.zshrc
.