<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[linux - themainframe.ca]]></title><description><![CDATA[Technology, Culture, and Opinion]]></description><link>http://themainframe.ca/</link><image><url>http://themainframe.ca/favicon.png</url><title>linux - themainframe.ca</title><link>http://themainframe.ca/</link></image><generator>Ghost 3.41</generator><lastBuildDate>Wed, 15 Apr 2026 04:50:04 GMT</lastBuildDate><atom:link href="http://themainframe.ca/tag/linux/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Tutorial: How to install Grav CMS on Ubuntu 18.04]]></title><description><![CDATA[<p>Grav is a CMS like Wordpress and Drupal.  It has some advantages over those, though.  For example, it doesn't need a database like mysql to work properly.  </p><p>Here's a tutorial with the steps necessary to install on a fresh Ubuntu 18.04 server.</p><h2 id="step-1-pre-requisites">Step 1:  Pre-requisites</h2><p>Grav requires a web</p>]]></description><link>http://themainframe.ca/tutorial-how-to-install-grav-cms-on-ubuntu-18-04/</link><guid isPermaLink="false">5bb1481a863d7d03e7d77e73</guid><category><![CDATA[grav]]></category><category><![CDATA[cms]]></category><category><![CDATA[tutorial]]></category><category><![CDATA[linux]]></category><category><![CDATA[ubuntu 18.04]]></category><category><![CDATA[ubuntu]]></category><category><![CDATA[web server]]></category><dc:creator><![CDATA[miguel]]></dc:creator><pubDate>Mon, 01 Oct 2018 00:31:51 GMT</pubDate><media:content url="http://themainframe.ca/content/images/2018/10/Screen-Shot-2018-09-30-at-6.30.35-PM-1.png" medium="image"/><content:encoded><![CDATA[<img src="http://themainframe.ca/content/images/2018/10/Screen-Shot-2018-09-30-at-6.30.35-PM-1.png" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"><p>Grav is a CMS like Wordpress and Drupal.  It has some advantages over those, though.  For example, it doesn't need a database like mysql to work properly.  </p><p>Here's a tutorial with the steps necessary to install on a fresh Ubuntu 18.04 server.</p><h2 id="step-1-pre-requisites">Step 1:  Pre-requisites</h2><p>Grav requires a web server (we'll use Apache) and PHP, as well as a few extra modules for each.</p><p>Login to your Ubuntu 18.04 server using ssh, or terminal.  Then since we'll be installing stuff as root, use this command to start a root shell.</p><pre><code>sudo -s</code></pre><p>Be careful, because when you're running a root shell, you could accidentally remove important stuff or mess up your system.  So it's a good idea to check commands over before running them, and copy-and-paste is always recommended.</p><p>Now that you're root, you can install Apache and PHP, as well as some PHP extensions that Grav will use:</p><pre><code>apt update &amp;&amp; apt upgrade
apt install apache2 php php-mbstring php-gd php-curl php-xml php-zip
</code></pre><p>Great...  It should look something like this:</p><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/09/Screen-Shot-2018-09-30-at-5.55.25-PM.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/09/Screen-Shot-2018-09-30-at-5.57.38-PM.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><p></p><p>Once it's installed, you'll be able to load up the default Apache page on your webserver by using a web browser.  It should look something like this when you go to your server's address:</p><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/09/Screen-Shot-2018-09-30-at-5.58.43-PM.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><p></p><p>If you get to this point, congratulations.  You have a web server running!</p><p></p><h2 id="step-2-install-grav">Step 2: Install Grav</h2><p>For this next step, you'll have to go to the <a href="https://getgrav.org">Grav site</a> and find the URL of the latest version.  Look for <strong>downloads</strong>, and copy-and-paste the URL.</p><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/10/Screen-Shot-2018-09-30-at-6.01.21-PM.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><p>Now you can download that to the webroot of your server, which should be at /var/www/html/</p><p>The second line below will grab the latest version (which you can copy in paste in place of the getgrav URL, and save it as "grav.zip".</p><pre><code>cd /var/www/html/
wget -O grav.zip https://getgrav.org/download/core/grav-admin/1.5.1</code></pre><p>And the result should be something like this:</p><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/10/Screen-Shot-2018-09-30-at-6.05.54-PM.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><p></p><p>And you should have a zip file named "grav.zip" in the current directory.  We will unzip it.  Of course, we may have to install unzip first :-)<br></p><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/10/Screen-Shot-2018-09-30-at-6.09.47-PM-1.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><p>So go ahead and unzip grav.zip.  Then we can move all the files inside the grav-admin folder to the root of the webserver.  There's a hidden file called ".htaccess" in the grav-admin directory.  Don't forget to grab that one too.  And then you can remove the zip file.</p><pre><code>cd /var/www/html/
unzip grav.zip
mv grav-admin/* /var/www/html/
mv grav-admin/.htacess /var/www/html/
rm grav.zip</code></pre><p>And now we need to set the permissions for the files we just installed.  Since you're logged in as root, we want to change them to the www-data user, which belongs to the Apache webserver.</p><pre><code>chmod -R 755 *
chown -R www-data:www-data *</code></pre><p>It should look like this:</p><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/10/Screen-Shot-2018-09-30-at-6.15.00-PM.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><p>Just a couple more things to do...</p><p>First, we need to create a virtualhost for apache to recognize your site, and to set some module permissions.</p><p>Create a new file called yoursitename.conf at /etc/apache2/sites-available, and put in the following, replacing my example site name (cr7.westwoodtech.ca) with the full address of your site:</p><pre><code>cd /etc/apache2/sites-available
nano cr7-westwoodtech-ca.conf</code></pre><p>And that file should have this in it (copy and paste, changing the example site name):</p><pre><code>&lt;VirtualHost *:80&gt;
     DocumentRoot /var/www/html/
     ServerName cr7.westwoodtech.ca

     &lt;Directory /var/www/html/&gt;
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     &lt;/Directory&gt;
&lt;/VirtualHost&gt;</code></pre><p></p><p>Screenshots of this process:</p><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/10/Screen-Shot-2018-09-30-at-6.22.14-PM.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/10/Screen-Shot-2018-09-30-at-6.22.39-PM.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><p>Great, exit and save that file with Control-X.</p><p>Now we need to enable the site, and while we're at it, we can enable the rewrite module in Apache that Grav will need.  Then restart Apache.  Enter these commands:</p><pre><code>a2ensite cr7-westwoodtech-ca.conf
a2enmod rewrite
systemctl restart apache2
</code></pre><p>If all goes well, you'll be able to load your grav site!</p><figure class="kg-card kg-image-card"><img src="http://themainframe.ca/content/images/2018/10/image.png" class="kg-image" alt="Tutorial: How to install Grav CMS on Ubuntu 18.04"></figure><p></p><p>And from here, you can create your admin user and get started!</p>]]></content:encoded></item><item><title><![CDATA[Slackware Linux Tips]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>Slackware Linux is arguably one of the oldest, surviving versions of Linux; it is my distribution of choice. I am currently running Slackware 12.1 with the shiny 2.6.24.5 smp kernel. Slackware is very robust and secure, it does not use a lot of system overhead to</p>]]></description><link>http://themainframe.ca/slackware-linux-tips/</link><guid isPermaLink="false">5a0f621ed646822baa21231a</guid><category><![CDATA[linux]]></category><category><![CDATA[slackware]]></category><category><![CDATA[tips]]></category><dc:creator><![CDATA[hitest]]></dc:creator><pubDate>Wed, 30 Jan 2008 03:51:33 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>Slackware Linux is arguably one of the oldest, surviving versions of Linux; it is my distribution of choice. I am currently running Slackware 12.1 with the shiny 2.6.24.5 smp kernel. Slackware is very robust and secure, it does not use a lot of system overhead to run. This means that Slackware will run very efficiently on high-end machines and also on older hardware. Slackware has a reputation for being very difficult to use, this reputation is partly deserved.<br>
<a href="http://www.flickr.com/photos/danielmorrison/226221250/"><img src="http://themainframe.ca/images/070128-slack-1.jpg" alt></a></p>
<p>Slackware does not use many graphical interfaces to set-up, configure your computer. You will be required to use a text editor and a root shell prompt to set-up many of the system functions. The installation procedure uses a ncurses based installer, an easy-to-use text based installer. If you are willing to learn, read, and have a lot of fun, then give Slackware Linux a try. If you feel comfortable with navigating on the command-line interface and using a text editor you will love Slackware. Once a Slacker, always a Slacker:-)</p>
<p>In this post I would like to post a few tips, tricks that’ll help you to get your Slackware system up and running. My suggestions work for me, but, feel free to modify as needed, it is your system:-)</p>
<ol>
<li>Slackware typically defaults to run level three. If you would like a graphical log-in prompt open up your favourite text editor and edit /etc/inittab</li>
</ol>
<p>For example you could use nano: #nano /etc/inittab</p>
<p>Change</p>
<p>id:3:initdefault:</p>
<p>To</p>
<p>id:4:initdefault:</p>
<ol start="2">
<li>
<p>If you would like your monitor to be able to go into power save mode then edit /etc/X11/xorg.conf<br>
Add the following line in your Monitor section.<br>
Option “dpms”</p>
</li>
<li>
<p>I recommend that if you wish to optimize your Slackware system to run efficiently that you use the JFS (Journaling File System) when you set-up your root partition. I’ve found that the JFS uses less system resources particularly on older hardware:-)</p>
</li>
<li>
<p>Slackware 12 is able to auto-mount devices, media. If you would like to enable this functionality for your regular user then edit /etc/group<br>
Add your regular user to the following groups: plugdev, cdrom, audio, video, floppy</p>
</li>
<li>
<p>To set-up sound:</p>
</li>
</ol>
<p>This will be done as root at run level three</p>
<h1 id="alsaconf">alsaconf</h1>
<h1 id="alsamixer">alsamixer</h1>
<h1 id="alsactlstore">alsactl store</h1>
<p><a href="http://www.flickr.com/photos/robk/34037000/"><img src="http://themainframe.ca/images/070128-slack-2.jpg" alt></a></p>
<ol start="6">
<li>To set-up your display settings and configure x windows run this command at run level 3.</li>
</ol>
<h1 id="xorgconfig">xorgconfig</h1>
<p>*Note you can also run xorgsetup which will set-up your monitor automagically, but, I prefer the finer settings of xorgconfig.</p>
<ol start="7">
<li>To add a user to your slackware system</li>
</ol>
<h1 id="adduser">adduser</h1>
<ol start="8">
<li>To switch between graphical environments:</li>
</ol>
<p>If you’ve done a full install of Slackware, which I highly recommend then you can switch between the various desktop environments (KDE, Flux, Blackbox, etc.) by issuing the following command at the run level three prompt:</p>
<h1 id="xwmconfig">xwmconfig</h1>
<ol start="9">
<li>
<p>An excellent resource to use for trouble shooting, gathering information is the Slackware book. You can obtain the Slackware book at the Slackware site: <a href="http://www.slackware.com">http://www.slackware.com</a><br>
<a href="http://www.flickr.com/photos/pressthebuttononthetop/188648433/"><img src="http://themainframe.ca/images/070128-slack-3.jpg" alt></a></p>
</li>
<li>
<p>Using Slackware you have the luxury of installing software from a number of sources.</p>
</li>
</ol>
<p>A) You can compile software directly from source code.<br>
B) You can use Slackware build scripts to compile software. I recommend the following site as a trustworthy repository of build scripts, software: <a href="http://www.slackbuilds.org/">http://www.slackbuilds.org/</a><br>
C) You can also download software directly from the Slackware site to update your system: <a href="http://www.slackware.com/">http://www.slackware.com/</a><br>
D) You can use the src2pkg utility to create Slackware packages that can be installed on your system. This is a nifty utility that you can use to transform source code into .tgz packages: <a href="http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/src2pkg/">http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/src2pkg/</a><br>
E) A good resource for installing, upgrading packages is the slackbook: <a href="http://www.slackbook.org/html/book.html#PACKAGE-MANAGEMENT">http://www.slackbook.org/html/book.html#PACKAGE-MANAGEMENT</a><br>
11. If you would like a software firewall on your Slackware system you can use this firewall generator for IP tables: <a href="http://www.slackware.com/%7Ealien/efg/">http://www.slackware.com/%7Ealien/efg/</a></p>
<p>I think that you will enjoy Slackware Linux. Happy Slacking!</p>
<p>hitest</p>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>