Atheos is a web-based code editor that provides an efficient and customizable environment for coding. It is easy to install and use on various operating systems, including Fedora CoreOS.
In this tutorial, we will go through the steps of installing Atheos on Fedora CoreOS Latest.
Before we proceed with the installation, ensure that you have the following:
The first step is to install Apache2 on your Fedora CoreOS Latest system. To install Apache2, run the following command:
sudo dnf install httpd
After the installation is completed, start the Apache2 service by running the following command:
sudo systemctl start httpd
Finally, enable the Apache2 service to start automatically on system boot by running the following command:
sudo systemctl enable httpd
After installing Apache2, the next step is to install PHP. To install PHP, run the following command:
sudo dnf install php-fpm php-json php-zip php-mbstring php-gd php-xml -y
After the installation is completed, start the PHP-FPM service by running the following command:
sudo systemctl start php-fpm
Finally, enable the PHP-FPM service to start automatically on system boot by running the following command:
sudo systemctl enable php-fpm
The next step is to install the MariaDB database server. To do this, run the following command:
sudo dnf install mariadb-server -y
After the installation is completed, start the MariaDB service by running the following command:
sudo systemctl start mariadb
Finally, enable the MariaDB service to start automatically on system boot by running the following command:
sudo systemctl enable mariadb
After installing the MariaDB server, it is essential to secure it by running the following command:
sudo mysql_secure_installation
Follow the prompts to set the root password, remove the anonymous user, restrict remote access to the database server, and remove test databases and users.
Next, create a new database for Atheos by running the following command:
sudo mysql -u root -p
Enter your root password when prompted, and then execute the following SQL commands to create a new database, user, and grant privileges:
CREATE DATABASE atheos;
CREATE USER 'atheosuser'@'localhost' IDENTIFIED BY 'your-secure-password';
GRANT ALL PRIVILEGES ON atheos.* TO 'atheosuser'@'localhost';
Replace 'your-secure-password' with a strong password of your choice.
Finally, exit the MySQL client by running the following command:
exit
Download the latest version of Atheos from the official website:
wget -O atheos.zip https://download.atheos.io/latest.zip
After downloading, extract the zip file to Apache2's default root directory:
sudo unzip atheos.zip -d /var/www/html/
Change the ownership of the atheos directory to the Apache user (usually apache or httpd):
sudo chown -R apache:apache /var/www/html/atheos
Navigate to the Atheos installation directory and open the config.json
file with your editor:
cd /var/www/html/atheos
sudo nano config.json
Update the port
and url
values to reflect your server's IP address and port (usually 80):
{
"server": {
"port": 80,
"url": "http://your-server-ip"
},
"email": false,
"allow_origins": ["*"],
"project_permissions": false,
"allow_file_listing": true
}
Save and close the file.
Open the Apache2 configuration file with your editor:
sudo nano /etc/httpd/conf/httpd.conf
Navigate to the bottom of the file and add the following lines to enable PHP-FPM and set the document root to the Atheos directory:
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost/"
</FilesMatch>
DocumentRoot "/var/www/html/atheos"
Save and close the file.
Restart the Apache2 service for the new configuration to take effect:
sudo systemctl restart httpd
Open your web browser and navigate to the URL you configured in Step 6. You should see the Atheos login page.
Login with the new account you configured in Step 4 or use the default credentials:
Username: admin
Password: admin
That's it! You have successfully installed and configured Atheos on your Fedora CoreOS Latest system.
In this tutorial, we went through the steps of installing and configuring Atheos on Fedora CoreOS Latest. Now, you can use Atheos to code and develop easily and efficiently, using the web-based code editor's features.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!