Fedora – TecAdmin https://tecadmin.net How to guide for System Administrator's and Developers Tue, 01 Nov 2022 10:24:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 Upgrade Fedora: A Step-by-Step Guide For Beginners https://tecadmin.net/upgrade-fedora-version/ https://tecadmin.net/upgrade-fedora-version/#comments Tue, 25 Oct 2022 12:38:17 +0000 https://tecadmin.net/?p=3519 If you’re a new user of Fedora, you might not be aware that it comes in different versions. The latest version of Fedora is referred to as the ‘primary’ version and is called the ‘Current’ version. This means that there are previous versions released by the developers that users can upgrade to from a lower [...]

The post Upgrade Fedora: A Step-by-Step Guide For Beginners appeared first on TecAdmin.

]]>
If you’re a new user of Fedora, you might not be aware that it comes in different versions. The latest version of Fedora is referred to as the ‘primary’ version and is called the ‘Current’ version. This means that there are previous versions released by the developers that users can upgrade to from a lower version. In this article, we look at how to upgrade your Fedora version. Read on for more information…

Upgrade Fedora
Upgrade Fedora

What is a Fedora Version?

The version of Fedora you’re using tells you a lot about the state of the software that comes with the operating system. That’s because the version number corresponds to the date of release, and not the date of the last update. This means that you can find out when the operating system was first launched by looking at the version number. When you upgrade your Fedora version, you’re taking advantage of the latest software and security fixes. You can also switch to a different release channel, which we look at later in this article. This can be helpful if you’re in an organization where software updates are managed centrally.

Tips Before Upgrading Your Fedora Version

  • We recommend that you perform a full backup of your system before you upgrade your Fedora version. This way, you can easily restore your data if something goes wrong with the upgrade. We also recommend that you check the release notes of the new version before you start the upgrade process. These notes will tell you what new features you can expect and any potential issues that you might run into.
  • Before you can upgrade your Fedora version, you have to make sure you have enough space on your hard drive. This is because the upgrade process downloads the ISO file for the new version and installs it alongside the version you’re currently using. It then uses some clever technology to make sure you can toggle between the two versions.

You can upgrade to the latest version of Fedora using either the graphical user interface or the command line. We recommend using the graphical user interface method for the Fedora workstation and using the DNF command line upgrade plugin for Fedora servers.

Upgrading Fedora Workstation (GUI)

The Fedora Workstations are recommended to upgrade using the graphical user interface. Once a new Fedora version is available to upgrade, you will get a notification on the screen.

  1. Then you should go to the Fedora Software section and open the Updates pane. Here you will find the notification of the latest version. Next click the Download button as shown in below screen:
    Upgrade Fedora Workstation
    Download New Fedora Version

  2. Once the download is finished, you will get a Restart & Update button. Just click this button to continue the upgrade process. This will reboot your system and complete the Fedora Upgrade.
    Upgrade Fedora Workstation
    Upgrade Fedora Workstation

Wait for the Fedora upgrade process complete. You can utilize this time with other tasks or have a cup of coffee. Once the upgrade is finished, log in to the Fedora system and check the version.

Upgrade Fedora Using DNF (CLI)

The System upgrade is only officially tested over the 2 previous releases. For example, if the latest Fedora version is 36 then you should upgrade to this version from 35 and 34. If the Fedora version is older than 2 releases, it is recommended to do it in several smaller steps. You can find the current Fedora version with the following commands.

cat /etc/fedora-release 

Fedora release 35 (Thirty Five)

You can visit the official website to find the latest Fedora version details. Then follow the below instructions to upgrade Fedora version:

  1. Uprade current packages on your system. To do this open a terminal and type:
    sudo dnf --refresh upgrade 
    

    This will take a long time as per the available packages to upgrade.

  2. The dnf-plugin-system-upgrade is a plugin for the DNF package manager. Which is used to upgrade fedora systems quickly.
    sudo dnf install dnf-plugin-system-upgrade --best 
    
  3. Once you have installed the plugin. Now download the latest packages of Fedora 36.
    sudo dnf system-upgrade download --refresh --releasever=36 
    
  4. This will start the final upgrade process to get Fedora 36 on your system.
    dnf system-upgrade reboot 
    

    This will reboot your Fedora system and start the upgrade process. You will see a process bar like the below screenshot:

    The upgrade process takes time. Have a cup of coffee and be relaxed until the upgrade is complete.

Post Upgrade Tasks (Optional)

Once the system is upgraded successfully to the latest Fedora version. Rebuild the rpm database with the following command.

rpm --rebuilddb 

Also perform the Distro Sync on your latest Fedora version.

dnf distro-sync --setopt=deltarpm=0 

Conclusion

Nowadays, there is nothing better than using Linux because it has many benefits that are not available to users using other operating systems. One of the best things about using Linux is that you can easily upgrade the version of this operating system between different releases. Many users often wonder how they can upgrade the version of their Linux operating system because this process can be done easily. This article explains how you can upgrade the version of your Fedora Linux operating system.

Reference:
https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/

The post Upgrade Fedora: A Step-by-Step Guide For Beginners appeared first on TecAdmin.

]]>
https://tecadmin.net/upgrade-fedora-version/feed/ 2
How To Install Apache Solr 9.0 on Fedora 36/35 https://tecadmin.net/how-to-install-apache-solr-on-fedora/ https://tecadmin.net/how-to-install-apache-solr-on-fedora/#comments Mon, 23 May 2022 09:27:16 +0000 https://tecadmin.net/?p=13982 Apache Solr is an open-source search platform written on Java. Solr provides full-text search, spell suggestions, custom document ordering and ranking, Snippet generation, and highlighting. This tutorial will help you to install Apache Solr 9.0 on Fedora 36/35/34/33/32 Linux systems. Step 1 – Prerequsities Apache Solr 9.0 required the Java Runtime Environment (JRE) version 11 [...]

The post How To Install Apache Solr 9.0 on Fedora 36/35 appeared first on TecAdmin.

]]>
Apache Solr is an open-source search platform written on Java. Solr provides full-text search, spell suggestions, custom document ordering and ranking, Snippet generation, and highlighting.

This tutorial will help you to install Apache Solr 9.0 on Fedora 36/35/34/33/32 Linux systems.

Step 1 – Prerequsities

Apache Solr 9.0 required the Java Runtime Environment (JRE) version 11 or higher. If the system doesn’t have JRE installed, use the following command to install OpenJDK 17 on the Fedora system.

sudo dnf install java-17-openjdk 

You can check the installed Java version at the command line using:

java -version

openjdk 17.0.3 2022-04-19
OpenJDK Runtime Environment 21.9 (build 17.0.3+7)
OpenJDK 64-Bit Server VM 21.9 (build 17.0.3+7, mixed mode, sharing)

Step 2 – Install Apache Solr on Fedora

Now download the required Solr version from its official site or mirrors. You may also use the below command to download Apache Solr 9.0 from its official website. After that extract the installer script.

wget https://dlcdn.apache.org/solr/solr/9.0.0/solr-9.0.0.tgz 
tar xzf solr-9.0.0.tgz solr-9.0.0/bin/install_solr_service.sh --strip-components=2 

Then execute the installer script with bash shell followed with downloaded Archive file. The command will be like below:

sudo bash ./install_solr_service.sh solr-9.0.0.tgz 

This will create a user with the name solr in your system and finish the installation process. After that start the service default Solr port 8983.

Step 3 – Managing Apache Solr Service

Use the following commands to Start, Stop and check the status of the Solr service.

  • Start Solr service:
    sudo service solr start 
    
  • Stop Solr service:
    sudo service solr stop  
    
  • Restart Solr service:
    sudo service solr restart  
    
  • Check the Solr service status:
    sudo service solr status  
    
    Output
    Found 1 Solr nodes: Solr process 30891 running on port 8983 { "solr_home":"/var/solr/data", "version":"9.0.0 a4eb7aa123dc53f8dac74d80b66a490f2d6b4a26 - janhoy - 2022-05-05 01:00:08", "startTime":"2022-05-26T07:52:42.644Z", "uptime":"0 days, 0 hours, 0 minutes, 14 seconds", "memory":"61.4 MB (%12) of 512 MB"}

Step 4 – Create a New Solr Collection

Apache Solr stores values under a collection. A collection is a single logical index that uses a separate solrconfig.xml configuration file with a single index schema.

You can create a new collection using the Apache Solr command-line utility or using Solr APIs. The below command will create a new collection in Solr named mycol1.

sudo su - solr -c "/opt/solr/bin/solr create -c mycol1 -n data_driven_schema_configs" 
Output:
Created new core 'mycol1'

Step 5 – Allow Solr Access on Public Network

The default Apache Solr runs on localhost only. To allow the Solr server publically accessible over networks, edit the /etc/default/solr.in.sh configuration file.

sudo vim /etc/default/solr.in.sh 

Search for the SOLR_JETTY_HOST variable. Uncomment it by removing the starting hash (#) symbol. Set the value to “0.0.0.0”.

Installing Solr on Fedora Linux
Enable Apache Solr to Listen on Public Network

Save the configuration file and restart Solr service:

sudo service solr restart  

You also need to open the port in the system firewall. The below-mentioned command will open port 8983 in firewalld.

sudo firewall-cmd --permanent  --add-port=8983/tcp 
sudo firewall-cmd --reload 

Step 6 – Access Solr Web Admin Panel

The default Apache Solr runs on port 8983. You can access the Solr port in your web browser and you will get the Solr dashboard.

I already have mapped the domain solr.tecadmin.net with the Fedora server IP address.

  http://solr.tecadmin.net:8983/
Installing Apache Solr on Fedora
Apache Solr Dashboard

Here you can view statics of created collection in previous steps named “mycol1”. Click on “Core Selector” on the left sidebar and select created collection.

Installing Apache Solr on Fedora
Apache Solr Collection Details

Conclusion

This tutorial helped you to install Apache Solr on the Fedora Linux system.

The post How To Install Apache Solr 9.0 on Fedora 36/35 appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-apache-solr-on-fedora/feed/ 11
How to Install PowerShell on Fedora https://tecadmin.net/how-to-install-powershell-on-fedora/ https://tecadmin.net/how-to-install-powershell-on-fedora/#respond Thu, 03 Mar 2022 10:09:13 +0000 https://tecadmin.net/?p=28662 PowerShell is an command line interface as well as a scripting language developed by Microsoft. Similar to bash programing, the PowerShell is also used for automating the jobs for the system management. The current version of PowerShell supported Fedora 32 or greater versions. PowerShell is also available for the Linux systems with an official package [...]

The post How to Install PowerShell on Fedora appeared first on TecAdmin.

]]>
PowerShell is an command line interface as well as a scripting language developed by Microsoft. Similar to bash programing, the PowerShell is also used for automating the jobs for the system management. The current version of PowerShell supported Fedora 32 or greater versions.

PowerShell is also available for the Linux systems with an official package repository. This tutorial will help you for installing PowerShell on Fedora Linux system.

Prerequisites

You must be login as root account or sudo privileged account to your Fedora Linux system.

Enable Microsoft Repository in Fedora

First of all add the Microsoft signature key to your Fedora system by running the following command.

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc 

Next, execute the following command to add the Microsoft repository to the Fedora system

sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm 

Install PowerShell in Fedora

Now run the ‘dnf check-update’, which update the metadata of all enabled repositories. This will not actually update the packages but list all packages.

sudo dnf check-update 

Now, You are prepared to install PowerShell on Fedora system. Run the below command to install PowerShell on Fedora Linux system.

sudo dnf install powershell 
How to Install PowerShell on Fedora Linux
Installing PowerShell on Fedora Linux

That’s it. This will complete the PowerShell installation on your Fedora system.

Access PowerShell in Fedora

To access the PowerShell terminal, type pwsh on a terminal. On successful, you will get the Powershell terminal as below.

pwsh 
How to Install PowerShell on Fedora Linux
Connect to PowerShell

After getting the prompt, type “help” to get detailed information about uses.

How to Uninstall PowerShell on Fedora

If you don’t need PowerShell anymore on your system. Simply type below command to uninstall it.

sudo dnf remove powershell

Conclusion

This guide helped you for installing PowerShell on Fedora Linux system. Now you can use PowerShell features to administer your server and automate the tasks.

The post How to Install PowerShell on Fedora appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-powershell-on-fedora/feed/ 0
How To Install and Configure Drupal on Fedora 35/34 https://tecadmin.net/how-to-install-drupal-on-fedora/ https://tecadmin.net/how-to-install-drupal-on-fedora/#respond Thu, 17 Jun 2021 07:46:16 +0000 https://tecadmin.net/?p=25982 Drupal is a free and open-source content management system (CMS), is flexible for building blogs and websites. It is written in PHP programming language and uses MySQL as a backend database. Drupal is available with thousands of add-ons, which makes it highly customizable. You can deploy Drupal on any web server that supports the PHP [...]

The post How To Install and Configure Drupal on Fedora 35/34 appeared first on TecAdmin.

]]>
Drupal is a free and open-source content management system (CMS), is flexible for building blogs and websites. It is written in PHP programming language and uses MySQL as a backend database. Drupal is available with thousands of add-ons, which makes it highly customizable.

You can deploy Drupal on any web server that supports the PHP programming language. In this tutorial, we will provide you with steps to install Drupal with Apache on Fedora Linux systems.

Prerequisites

This tutorial assumes that:

  • You have a running Fedora system with sudo privileged account access
  • Already completed the LAMP Stack on Fedora system.

Step 1 – Installing Drupal on Fedora

1. You can download the latest Drupal version from the Drupal website. Alternatively, download the latest Drupal code using the following command:

wget -O /tmp/drupal.tar.gz https://www.drupal.org/download-latest/tar.gz 

2. Go to the ‘/var/www/’ folder and extract the downloaded durpal.tar.gz file. You can also change the directory to another location. In that case, use the correct folder in the next commands.

cd /var/www 
sudo tar -zxf /tmp/drupal.tar.gz 

3. Rename the extracted drupal directory to remove the version number. If required, you can keep the folder name as it is.

sudo mv drupal-*  drupal-app 

4. Next create a copy of configuration file from template. Change to “drupal-app/sites/default” directory and copy the default.settings.php file to settings.php with cp command:

cd drupal-app/sites/default 
sudo cp -p default.settings.php settings.php 

5. Now, Create a directory named "files" in the current directory drupal-app/sites/default:

sudo mkdir files 

6. Now set the proper file permissions to make it work. Initially set 777 permission to settings.php, which is required to complete installation.

sudo chmod 777 settings.php 
sudo chmod 775 files/ 
sudo chown -R www-data:www-data /var/www/drupal-app 

Next, configure the Apache server to deploy the Drupal site.

Step 2 – Setup Apache

Create a Virtual Host configuration file for the Drupal installation. In order to secure your site with an SSL certificate, we recommend using a real domain pointed to your server’s IP address.

Let’s create a Apache configuration file for your domain. Make sure to change domain name with yours:

sudo vim /etc/httpd/conf.d/drupal.example.net.conf 

Add the following content.

<VirtualHost *:80>
    ServerAdmin admin@example.net
    ServerName drupal.example.net
    DocumentRoot /var/www/drupal-app
    <Directory /var/www/drupal-app>
        Allowoverride all
    </Directory>
</VirtualHost>

Change the ServerName value with your domain name.

Save and close the configuration file. Then restart the Apache service to reload the configuration file.

sudo systemctl restart httpd 

Step 3 – Running Web Installer

Open your favorite web browser and access the Drupal website as configured in Apache. As per this tutorial, we have configured the website as below URL:

http(s)://drupal.example.net

Follow the on-screen instructions to complete the Drupal installation on the Fedora Linux system.

1. Choose the default language for your Drupal application.

Drupal Installation Choose Languege

2. Then select the type of installation for Drupal. Here you have 3 options to choose from. We recommended going with the default “Standard” installation.

Drupal Installation Select Type

3. Now enter the database details to configure with Drupal. We are using MySQL/MariaDB as the database server. If you are not seeing the MySQL option, make sure you have the PHP MySQL extension installed.

You can also go with the SQLite database for small sites. But if you are planning a large site, we prefer to with MySQL.

Drupal Installation Add database Details

4. Please wait for the installation to complete. This will install all default extensions, themes to this Drupal application.

Drupal Installation Progress

5. Once the above installation finished, it will prompt you to enter application details for your Drupal. Fill in all the details properly.

Also, create an administrator account for Drupal. I recommended not to use username “admin”, keep it something else as I did “dradmin”. Keep your administrator password strong.

Drupal Installation Application Details

6. Once you completed all the steps successfully, you will be redirected to the Drupal admin dashboard. Write down your admin credentials at a secure place, which will be required for subsequent logins.

Drupal Installation  Admin Dashboard

Now customize your entire Drupal site and add the content. Here a new beautiful website journey has been started.

Step 4 – Post Installation

The Drupal installation on your Fedora system has been finished successfully. Now secure the drupal application files with proper file permissions.

cd /var/www/drupal-app 
sudo find . -type d -exec chmod 750 '{}' \; 
sudo find . -type f -exec chmod 640 '{}' \; 
sudo find sites/default/files/ -type d -exec chmod 770 '{}' \; 
sudo find sites/default/files/ -type f -exec chmod 660 '{}' \; 
sudo chmod 440 /var/www/drupal-app/sites/default/settings.php 

Also, remove the downloaded archive file from your system.

rm /tmp/drupal.tar.gz 

Conclusion

This tutorial helped you with installing Drupal on the Fedora Linux system.

The post How To Install and Configure Drupal on Fedora 35/34 appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-drupal-on-fedora/feed/ 0
How To Install TeamViewer on Fedora 36/35/34 https://tecadmin.net/how-to-install-teamviewer-on-fedora/ https://tecadmin.net/how-to-install-teamviewer-on-fedora/#respond Mon, 14 Jun 2021 06:16:04 +0000 https://tecadmin.net/?p=25856 TeamViewer is a powerful remote desktop and file sharing application that works with most operating systems and mobile devices. In order to commercialize the use of TeamViewer, you have to purchase a license. You can use it free for personal use only. An RPM package of Teamviewer is built by the official team and is [...]

The post How To Install TeamViewer on Fedora 36/35/34 appeared first on TecAdmin.

]]>
TeamViewer is a powerful remote desktop and file sharing application that works with most operating systems and mobile devices. In order to commercialize the use of TeamViewer, you have to purchase a license. You can use it free for personal use only.

An RPM package of Teamviewer is built by the official team and is available for installation on Fedora systems. You can download the package from its official website.

This tutorial described how to install TeamViewer on the Fedora Linux system.

Prerequisites

Assuming, you have a running Fedora desktop system. Have access to the desktop environment with a sudo privileged account. The installation part can also be performed via the command line.

Installing TeamViewer on Fedora

First of all, download the latest available version of TeamViewer RPM packages from its official download page. At the writing time of this tutorial, TeamViewer 15 is the latest available version to download and install on Fedora systems.

  1. Downloading the TeamViewer Debian Package – Download the latest verson of TeamViewer Debian package. It is available at TeamViewer for Linux download page. You can also download it via the Linux command line.
    wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm 
    
  2. Installing TeamViewer – Use default Debian package installer (dpkg) to install Team packages. In case dpkg failed with missing dependencies, use apt-get to complete TeamViewer installation on the Ubuntu system including all the required dependencies.
    sudo dnf install teamviewer.x86_64.rpm 
    

That’s it. You have successfully installed TeamViewer on a Fedora system.

Using TeamViewer

TeamViewer application has been successfully installed on a Fedora Linux system. Now, launch the “TeamViewer” from the applications. The Application Launcher location may change as per the desktop environment. You will find an application launcher as shown below screenshot:

Launch TeamViewer on Fedora

Click the TeamViewer launcher icon to start the application. With the first time startup, click “Accept License Agreement” button to continue application.

Running TeamViewer Application on Fedora
Running TeamViewer Application on Fedora

Once the application starts, You will see the TeamViewer id of your application with a random password. You can change this password anytime or set a custom password.

Use this ID to connect your system to remote systems running with the same version of the Teamviewer application. You can also other systems with this application by entering their TeamViewer ID in the “partner ID” input box.

Conclusion

This tutorial helped you to install TeamViewer on Ubuntu systems. Additionally provides you with basic details to connect partner systems.

The post How To Install TeamViewer on Fedora 36/35/34 appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-teamviewer-on-fedora/feed/ 0
How To Install XRDP (Remote Desktop) on Fedora https://tecadmin.net/how-to-install-xrdp-on-fedora/ https://tecadmin.net/how-to-install-xrdp-on-fedora/#comments Sun, 13 Jun 2021 00:24:23 +0000 https://tecadmin.net/?p=25832 Remote Desktop Protocol (RDP) is a protocol that allows users to access desktops on remote systems. The XRDP service provides you a graphical login to the remote machines using Microsoft RDP (​Remote Desktop Protocol). The XRDP also supports two-way clipboard transfer (text, bitmap, file), audio redirection, and drive redirection (mount local client drives on the [...]

The post How To Install XRDP (Remote Desktop) on Fedora appeared first on TecAdmin.

]]>
Remote Desktop Protocol (RDP) is a protocol that allows users to access desktops on remote systems. The XRDP service provides you a graphical login to the remote machines using Microsoft RDP (​Remote Desktop Protocol). The XRDP also supports two-way clipboard transfer (text, bitmap, file), audio redirection, and drive redirection (mount local client drives on the remote machines).

This tutorial helps you to Install XRDP Server (Remote Desktop) on a Fedora Linux system. Also provides the instructions to install a Desktop environment on your system.

Step 1 – Install Desktop Environment

Fedora workstation comes with a default desktop environment. In case you have installed Fedora minimal version or server edition will not have desktop installed. The XRDP server is designed to controls only desktop systems. So you will need to add a desktop environment to your system.

Open a terminal and upgrade all installed packages with the following command:

sudo dnf upgrade 

Once your system is updated, install search for the available Desktop environment for your system.

sudo dnf grouplist -v 

Choose a desktop environment to be installed on your system. The below command will install KDE Plasma desktop on your Fedora system.

sudo dnf install @kde-desktop-environment 

Make sure to use “@” before the package name as you are going to install a group of packages.

Once the installation finished, restart your system to apply the changes.

Step 2 – Install Xrdp (Remote Desktop) on Fedora

The Xrdp packages are available under the default system repositories. You can install the remote desktop service (xrdp) on your Fedora system by executing the following command.

sudo dnf install xrdp -y 

Once the packages installed successfully, start the xrdp service and enable it to auto-start with system boots.

sudo systemctl enable xrdp 
sudo systemctl start xrdp 

Verify the service is started successfully.

sudo systemctl status xrdp 
Running XRDP on Fedora (Remote Desktop Service)
Running XRDP Service on Fedora

The above output shows the Xrdp service is up and running.

Step 3 – Adjust Firewall

The XRDP service uses a standard remote desktop protocol port ie 3389. The fedora systems come with the active FireallD service. So you need to allow access on port 3389 in the firewall for the remote systems.

Execute the following command to open firewall access:

sudo firewall-cmd --permanent --add-port=3389/tcp 

Reload the new rules.

sudo firewall-cmd --reload 

All right, Your system is ready to access over RDP protocol.

Step 4 – Manage SELinux

The systems have SELinux enforcing required to apply SELinux context on xrdp binaries. The following commands will allow the XRDP service to be accessible for remote users.

sudo chcon --type=bin_t /usr/sbin/xrdp 
sudo chcon --type=bin_t /usr/sbin/xrdp-sesman 

At this stage, your system is ready with Remote desktop service. Now connect to your system using any RDP client.

Step 5 – Connect to Remote Desktop

The Xrdp service is successfully installed and ready to connect. On your Windows client, open the RDP client and enter the IP address of the Fedora system.

You can launch the RDP client by typing "mstsc" in the run window or command line.

Connect to Fedora Remote Desktop

The first time, it will prompt a warning message due to the remote system is unknown for your system. Check the box in front of “Don’t ask me again for connection to this computer” and click Yes to continue.

Accept Certificate Warning with Fedora Remote Desktop

Once connected successfully, the remote system prompt for authentication. Enter the login credentials of the remote Fedora system to get remote desktop access.

Authenticate Fedora on XRDP Remote Desktop

On successful authentication, you’ll get remote desktop access.

Access Fedora Remote Desktop with XRDP

Hurrey, Now you can manage your remote Fedora system using the graphical interface.

Conclusion

This tutorial helped you to set up a remote desktop service on Fedora Linux using the Xrdp server. The tutorial also includes steps to install Desktop Environment on your Fedora system.

The post How To Install XRDP (Remote Desktop) on Fedora appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-xrdp-on-fedora/feed/ 3
How To Install Notepad++ on Fedora 35/34 https://tecadmin.net/install-notepad-plus-plus-on-fedora/ https://tecadmin.net/install-notepad-plus-plus-on-fedora/#comments Fri, 29 May 2020 02:14:24 +0000 https://tecadmin.net/?p=21705 Notepad++ is one of the most popular text editor between Windows users. It provides a large number of options to work with it including the syntax highlighting. This application is written on C++ and uses pure Win32 API and STL. It keeps smaller program size and faster executing with lower CPU uses. This tutorial will [...]

The post How To Install Notepad++ on Fedora 35/34 appeared first on TecAdmin.

]]>
Notepad++ is one of the most popular text editor between Windows users. It provides a large number of options to work with it including the syntax highlighting. This application is written on C++ and uses pure Win32 API and STL. It keeps smaller program size and faster executing with lower CPU uses.

This tutorial will help you to install Notepad++ on your Fedora system using snap packages.

Prerequisites

  • Fedora system with Desktop access
  • A sudo privileged account access

Step 1 – Install Snapd

Snapd is a package manager application popular among Linux users. A snap package is a self-contained package including the dependencies. Run the below command to install Snapd daemon on your Fedora system.

sudo dnf install snapd

Next, create a symbolic link to complete the installation on your system.

sudo ln -s /var/lib/snapd/snap /snap

Now, reboot your system to complete the installation. You can simply log out and log in back to apply changes.

Step 2 – Install Notepad++ on Fedora

Notepad++ runs over the WINE platform, which provides compatibility for the Windows application on Unix-like operating systems.

We use snap package manager to install Notepad++, which also install all the required dependency for running it on Fedora system. To install Notepad++ on Fedora, type:

sudo snap install notepad-plus-plus

You will the output like:

notepad-plus-plus 7.8.6 from Taqu Raza (mmtrt) installed

Step 3 – Launch Notepad++

After completing the above step, Notepad++ will be installed on your Fedora system. Now, launch Notepad++ from the applications. Search for you application and you will find a launch icon like:

nodepad++ fedora

Notepad++ is ready to be used on your Fedora system.

installing nodepad++ fedora

Step 4 – Uninstall Notepad++

You can remove snap packages anytime, whenever you don’t required the application. To uninstall Notepad++ from your Fedora system, execute:

sudo snap remove notepad-plus-plus

Conclusion

In this tutorial, you have learned to install Notepad++ on your Fedora Linux system using snap pacakges.

The post How To Install Notepad++ on Fedora 35/34 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-notepad-plus-plus-on-fedora/feed/ 3
How To Install Gradle on Fedora 36/35/34 https://tecadmin.net/install-gradle-fedora/ https://tecadmin.net/install-gradle-fedora/#respond Tue, 14 Apr 2020 17:36:02 +0000 https://tecadmin.net/?p=21041 Gradle is a powerful build tool that supports multiple popular programming languages and technologies. It is also an official build tool for Android. Gradle is a highly customized and extensible tool in most fundamental ways. It is an open-source build tool for the automation of applications. This tutorial will help you to install Gradle on [...]

The post How To Install Gradle on Fedora 36/35/34 appeared first on TecAdmin.

]]>
Gradle is a powerful build tool that supports multiple popular programming languages and technologies. It is also an official build tool for Android. Gradle is a highly customized and extensible tool in most fundamental ways. It is an open-source build tool for the automation of applications.

This tutorial will help you to install Gradle on Fedora 36/35/34/33/32 operating system.

Prerequisites

The Gradle requires Java 8 or higher version installed on the system. Generally, the Fedora system has a default installed Java version on it. to run Java 8 or higher version. You can use the following command to install java if you don’t already have it.

sudo dnf install java-11-openjdk 

Verify the installed Java version on your system.

java -version 

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment 18.9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9, mixed mode, sharing)

After that install some more packages used in this tutorial.

sudo dnf install unzip wget -y 

Install Gradle on Fedora

Once you installed Java on your system. Download the latest Gradle distribution release binary file from its official download page. You can also use the wget command to download the file.

wget https://downloads.gradle-dn.com/distributions/gradle-7.0-bin.zip 

Then extract the downloaded archive and place it in the proper location. Generally, I use /usr/local directory for storing applications. You can use an alternative directory like /opt.

unzip gradle-7.0-bin.zip 
sudo mv gradle-7.0 /usr/local/gradle 

Gradle has been configured on your system.

Setup Environment Variable

Now, you need to set up Gradle with a PATH environment variable, Also make sure the variable is set after the system reboot.

Place a shell script under the profile.d directory to set the PATH variable on reboot. Create a file like the below:

sudo nano /etc/profile.d/gradle.sh 

Add the below configuration to the file

export PATH=/usr/local/gradle/bin:$PATH

Save the file and close it. Now source the script to apply the environment for the current shell.

source /etc/profile.d/gradle.sh 

All done, you have done the Grandle installation on your Fedora system.

Check Gradle Version

Once you finished the Gradle installation, let’s check the installed version on your system.

gradle --version 

Output

Welcome to Gradle 7.0!

Here are the highlights of this release:
 - File system watching enabled by default
 - Support for running with and building Java 16 projects
 - Native support for Apple Silicon processors
 - Dependency catalog feature preview

For more details see https://docs.gradle.org/7.0/release-notes.html


------------------------------------------------------------
Gradle 7.0
------------------------------------------------------------

Build time:   2021-04-09 22:27:31 UTC
Revision:     d5661e3f0e07a8caff705f1badf79fb5df8022c4

Kotlin:       1.4.31
Groovy:       3.0.7
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          11.0.11 (Red Hat, Inc. 11.0.11+9)
OS:           Linux 5.8.15-301.fc33.x86_64 amd64

You will see the results like above. It means Gradle is properly installed on your Fedora system. Next, you may also need Apache Maven on your system.

The post How To Install Gradle on Fedora 36/35/34 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-gradle-fedora/feed/ 0
How To Install PHP Composer on Fedora 36/35/34 https://tecadmin.net/install-composer-fedora/ https://tecadmin.net/install-composer-fedora/#respond Thu, 09 Apr 2020 11:51:08 +0000 https://tecadmin.net/?p=21070 Composer is a dependency management tool for PHP similar to npm for nodejs and bundle for ruby. Using the composer tool we can define the required libraries for our project and install them with the composer in a single command. We don’t need to search for each library individually to install each time. This tutorial [...]

The post How To Install PHP Composer on Fedora 36/35/34 appeared first on TecAdmin.

]]>
Composer is a dependency management tool for PHP similar to npm for nodejs and bundle for ruby. Using the composer tool we can define the required libraries for our project and install them with the composer in a single command. We don’t need to search for each library individually to install each time.

This tutorial will help you to install PHP Composer on Fedora 34/33/32/31/30 Linux. We are assuming that you already have installed PHP on your system.

Prerequisites

  • Sudo privileged account with shell access.
  • You must have PHP installed on your system.

Install Composer on Fedora

PHP Composer is available as a binary file to directly download and use. Open the terminal and download the composer binary file using the curl command-line tool.

curl -sS https://getcomposer.org/installer | php  

Now use the following commands to make composer available globally for all users in your system, which can be used for all PHP applications on that system.

sudo mv composer.phar /usr/local/bin/composer  
sudo chmod +x /usr/local/bin/composer  

To find the version of the composer simply use the following command. This will also show you the uses of the composer on the command line.

composer -V  

Yo will see the output like below:

   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 2.1.14 2021-11-30 10:51:43

Usage:
  command [options] [arguments]

Options:
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --profile                  Display timing and memory usage information
      --no-plugins               Whether to disable plugins.
  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.
      --no-cache                 Prevent use of the cache

Update Composer

If there is an upgrade available, Composer displays the information with every run. Composer is built with the ability to upgrade itself. You just need to run the following command to update composer.phar to the latest version.

composer self-update

The post How To Install PHP Composer on Fedora 36/35/34 appeared first on TecAdmin.

]]>
https://tecadmin.net/install-composer-fedora/feed/ 0
How to Setup Let’s Encrypt SSL with Apache on Fedora https://tecadmin.net/setup-lets-encrypt-ssl-with-apache-on-fedora/ https://tecadmin.net/setup-lets-encrypt-ssl-with-apache-on-fedora/#respond Sat, 04 Apr 2020 05:48:29 +0000 https://tecadmin.net/?p=20734 Let’s Encrypt is a non-profit Certificate Authority (CA) managed by the Internet Security Research Group. It provides free SSL certificates for your domains to secure data on the transport layer. This tutorial will help you to install and secure Apache with Let’s encrypt on the Fedora system. Prerequisites Running Fedora system with shell access A [...]

The post How to Setup Let’s Encrypt SSL with Apache on Fedora appeared first on TecAdmin.

]]>
Let’s Encrypt is a non-profit Certificate Authority (CA) managed by the Internet Security Research Group. It provides free SSL certificates for your domains to secure data on the transport layer. This tutorial will help you to install and secure Apache with Let’s encrypt on the Fedora system.

Prerequisites

  • Running Fedora system with shell access
  • A domain/sub domain pointed to server IP address via public DNS server. For this tutorial, we use webhost.tecadmin.net.

Step 1 – Install Apache

First of all, Install the Apache webserver on your Fedora system. The default package repositories contain Apache packages. You can directly install them using the following command:

sudo dnf install httpd httpd-tools mod_ssl 

Step 2 – Create VirtualHost in Apache

For this tutorial, I have created an index.html file under the default document root. Similarly, you can place your application under the document root of your domain.

sudo echo "<h2>Welcome to Secure TecAdmin.net</h2>" > /var/www/html/index.html 

After that, create a VirtualHost configuration file binding with port 80.

sudo vim /etc/httpd/conf.d/webhost.tecadmin.net.conf 

<VirtualHost *:80>
    ServerAdmin admin@example.com
    ServerName webhost.tecadmin.net
    DocumentRoot /var/www/html
    <Directory /var/www/html>
        Allowoverride all
    </Directory>
</VirtualHost>

Save and close the configuration file. Then restart the Apache service to reload the configuration file.

sudo systemctl restart httpd 

Step 3 – Setup Let’s Encrypt (Certbot) Client

The Certbot ACME is a client application recommended by Let’s Encrypt for systems with shell access. It provides hassle-free automation of certificate issuance, installation, and renewal.

You can install the certbot package along with certbot plugin for Apache using following command:

sudo dnf install python3-certbot-apache 

Above command will add certbot utility in your system. Execute the below command to get more help about certbot command.

sudo certbot -h all 

Step 4 – Create Let’s Encrypt Certificate

Now, you can request let’s encrypt to issue an SSL certificate for your domain. You need to run the certbot command for the Apache server as following:

sudo certbot --apache 

This will list all the virtual hosts configured with Apache on current server. Select the appropriate number with the comma separated. See below screenshot:

Using certbot on Fedora

Let’s encrypt will start the verification process for your domain. Make sure the domain you selected is pointed to this server via the public DNS server.

On successful verification, SSL will be issued for your domain. A separate SSL VirtualHost configuration file will be created for your domain.

Please choose whether or not to redirect HTTP traffic to HTTPS:

  • 1: No redirect – Make no further changes to the webserver configuration.
  • 2: Redirect – Make all requests redirect to secure HTTPS access.

Free Lets Encrypt ssl on Fedora

Enter a number of your choice and press enter. You can also change it latest by directly editing configuration files.

Once the SSL configuration completed successfully, you will see a congratulations message on your screen.

Lets Encrypt on Fedora

Step 5 – Verify Certificate

The Let’s Encrypt SSL has been successfully configured for your domain. This certificate is issued for 3 months only, You can renew it before expiration.

Let’s check the certificate by accessing your site in a web browser.

Let's encrypt Apache

Conclusion

You have successfully secured your website with free Let’s Encrypt SSL certificate. Follow our next tutorial to setup Let’s Encrypt Auto SSL renewal with crontab. The Fedora systems will have default TLS 1.2 and TLS 1.3 enabled.

The post How to Setup Let’s Encrypt SSL with Apache on Fedora appeared first on TecAdmin.

]]>
https://tecadmin.net/setup-lets-encrypt-ssl-with-apache-on-fedora/feed/ 0