The following guide will provide you with simple to follow steps on how to reset your administrative root password on Linux.
Stop MySQLFirst, stop MySQL server:
# service mysql stop
* Stopping MySQL database server mysqld [ OK ]
Start MySQL server>Start your MySQL server, but skip all grand privileges and networking:
# /usr/sbin/mysqld --skip-grant-tables --skip-networking &
Read more ... AMD’s RX 480 has been out for a little over a week now, and in that week Linux gamers have been clamoring or information on whether and how the card works on their favorite distribution. Sure, Ubuntu 16.04 is officially supported by AMD’s proprietary Pro drivers, but what about everyone else, and what if you want to use those AMDGPU open source drivers that have been in the works for so long? Well, it’s definitely possible, but it’s not all that easy.
WARNING: Here be dragons, big ones. They’re pretty much the kind you’d expect to see flying around Mereen, so if you don’t want to take the chance of breaking your install and some singed eyebrows, turn back now.
Read more ... July 08, 2016
by Rares Aioanei
IntroductionAs the title might suggest, this article will show you how to run X applications without using a window manager or desktop environment. You might ask yourself : why would I want to do that? Well, you might want to run a kiosk system where you only need to run the browser and/or the hardware resources are limited. Or you simply use only one/a few X applications and spend the rest of the time in a terminal so you don't need the overhead of a window manager. Or, last but not least, because it's an interesting experiment, akin to the one where you have to spend X days exclusively in a terminal. Also, it's fun! So let's get started.
Making sure we have all we needWhat you need is pretty simple : a minimal Linux distribution or a similar Unix-like OS with the desired X applications installed and Xorg. In RHEL-based distributions installing Xorg is accomplished by doing
$ sudo yum install xorg-x11*
while in Debian-based operating systems this is done with
$ sudo apt-get install xorg
Read more ... The following config will discuss a basic example on how to execute shell script during a boot time on systemd Linux. There maybe various reason why you might want to execute shell script during Linux startup like for example to start a particular custom service, check disk space, create a backup etc.
The following example below will serve as a basic template to be later modified to suit your specific needs. In the example below we will check a disk space of a
/home/ directory during a boot time and write a report to
Systemd service unitFirst, we need to create a systemd startup script eg.
disk-space-check.serviceand place it into
/etc/systemd/system/ directory. You can find the example of such systemd startup script below:
Read more ... Nginx is quickly overtaking Apache as the favorite web server. For web apps built in languages like Rails and Python it’s virtually ubiquitous, but it’s a bit slower to catch on in the PHP world. Part of the reason for that is how easily PHP and Apache go together. However, PHP and Nginx can cooperate nearly as easily, and with the release of PHP 7, combining the two can be a fairly speedy option.
The PackagesFirst thing’s first. Update Ubuntu and get the the Nginx and PHP packages.
# sudo apt-get update && sudo apt-get -y upgrade
# sudo apt-get -y install nginx php7.0 php7.0-fpm When the installation is finished, the packages should all be in place, and actually running. To make sure that this is the case, you can check that both Nginx and the PHP-FPM services are running in Systemd.
# sudo systemctl status nginx
# sudo systemctl status php7.0-fpm If Systemd confirms that both services are running, the server should actually be up, and you should be able to see the default Nginx welcome page by navigating to
localhost in the browser.
Read more ...