Category: dnf

Useful and Important commands for Fedora 28

After fresh installlation:

sudo dnf update  

Enable and start SSH:

sudo systemctl start sshd.service
sudo systemctl enable sshd.service


RPM Fusion:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

Install Vlc:

sudo dnf install vlc

Restart apache:   

systemctl restart httpd  

                       or

service httpd restart
  
Enable apache on startup:

systemctl enable httpd

Allow http connections:

firewall-cmd –add-service=http –permanent

firewall-cmd –reload

Install  php and Mysql(mariadb):

dnf install php-cli
dnf install mariadb mariadb-server

systemctl restart mariadb

finalize mariadb installation

/usr/bin/mysql_secure_installation

dnf install php-mysqlnd (For php-mysql driver)

After doing all these restart apache

systemctl restart httpd