07 July, 2018

Epson ET-2750

Epson ET-2750 on my LAN.


Epson has released printer drivers for Linux, but the drivers are not made for Arch Linux. I downloaded the drivers, and found the relevant .pdo files, but the USB install did not work as expected in CUPS.

On the tiny printer screen I saw a wifi option, entered the LAN password. Then I could visit the printer on a local tcp/ip address. From the web interface installing the printer was easy.

So don't mess with drivers, just use the wifi options.

05 July, 2018

Running Koala on Max

Koala is a nice tool for SASS, Less and JavaScript kompilation / testing. However if you try to run the program on a Mac you have to allow the program.

After installation find the program in your Programs folder. Then press 'control' and right-click on the program launcher icon. Now you are able to run the program.

After this the program will launch normally from the launchpad.

03 June, 2018

Gmail Becomes Useless

Google tracking me via mobile devices


Now - every time I try to log into my gmail account Google wants to send an SMS with a code. Now this may look as if it's security, but in reality it is spying on the user. Since I don't have my mobile next to me all the time, the gmail account will become too cumbersome to use. So now I think the time has come where I will stop using gmail.

If I cannot log into my account without a mobile device gmail becomes useless.

22 May, 2018

Arch Linux: Guitarix Settings

Here's how to connect your electric guitar to a Linux system. In this case Manjaro (Arch Linux).

Jack connections: Qjackctl

Guitarix: note the connections between input and output.

Latex: reference to a figure / image

How to make the see page X trick

First: the figure

\begin{figure}
  \includegraphics[width=\linewidth]{images/at-i.jpg}
  \caption{XXX}
  \label{fig:XXX}
\end{figure}\index{XXX}

Now the reference to the illustration:

... see page~   \pageref{fig:XXX}


15 May, 2018

[ SOLVED ] Arch Manjaro: WordPress REST API error 404

Error 404: WordPress REST API on a localhost


WordPress runs on my Manjaro distro of Arch Linux. But the REST API does not work at all. I have tried:


  • Install the plugin via git pull https://github.com/WP-API/WP-API.git 
  • Set the folder permissions to 777
  • Reset the WordPress database after pretty links disaster
  • Reinstall the plugin from git pull https://github.com/WP-API/WP-API.git
Mostly I get error 401, but sometimes it's 502.

Ideas?

---

A fellow lecturer suggested to edit /etc/httpd/conf/httpd.conf :

Quote from this page:
"When the server finds an .htaccess file (as specified by AccessFileName), it needs to know which directives declared in that file can override earlier configuration directives.
Only available in sections

AllowOverride is valid only in  sections specified without regular expressions, not in  or  sections.
When this directive is set to None and AllowOverrideList is set to None.htaccess files are completely ignored. In this case, the server will not even attempt to read .htaccess files in the filesystem.

When this directive is set to All, then any directive which has the .htaccess Context is allowed in .htaccess files."
After that a directory as added that pointed to WordPress:
    AllowOverride All
    AllowOverrideList All
    Require all granted
In a WordPress forum an author suggested to change the permalinks to "post name". The .htaccess file had to be created, with this content:


   RewriteEngine On
   RewriteBase /wordpress/
   RewriteRule ^index\.php$ - [L]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . /wordpress/index.php [L]


After a restart of Apache the REST API responded correctly:

# sudo systemctl restart httpd

Et voila!

Json from the REST API

Install themes / plugins

In order to install themes and plugins the owner of the folders should be the Apache user http, so:

# chown -R http:http wordpress/

And so the WordPress installation is ready to fly on the localhost.



10 May, 2018

Apache: how to use a local folder for your code on localhost


  1. Create a folder for your html
    # mkdir ~/html_root
  2. Create a symbolic link in /srv/html/
    # sudo ln -s /home/USER/html_root/ X
  3. Write your code, and test it in a browser, as in:
    # http://localhost/X/

[SOLVED] Install WordPress on a Arch Linux Manjaro LAMP Stack

Bingo! WordPress up and running on Manjaro (Arch Linux)


I followed this recipe. Found on HowToForge.