3-1

Block websites

  1. Install Squid Proxy:

    First, install Squid Proxy server:

    bash
    sudo pacman -Syu squid
  2. Configure Squid Proxy:

    Edit the Squid configuration file to configure URL filtering:

    bash
    sudo nano /etc/squid/squid.conf

    Add or uncomment the following lines to enable URL filtering:

    arduino
    acl block_sites dstdomain "/etc/squid/block_sites.acl" http_access deny block_sites

    Save the changes and exit the editor.

  3. Create Keyword List:

    Create a file containing keywords that you want to block:

    bash
    sudo nano /etc/squid/block_sites.acl

    Add the keywords, each on a separate line:

    arduino
    .adult .porn .explicit

    Save the changes and exit the editor.

  4. Update Permissions:

    Ensure that Squid has the necessary permissions to read the ACL file:

    bash
    sudo chown -R proxy:proxy /etc/squid/block_sites.acl
  5. Restart Squid:

    Restart the Squid service to apply the changes:

    bash
    sudo systemctl restart squid
  6. Test the Configuration:

    Test the configuration by attempting to access websites containing the specified keywords from a web browser. If the configuration is correct, access to these websites should be blocked.

To disable the keyword-based blocking, you can simply remove or comment out the relevant lines in the Squid configuration file (/etc/squid/squid.conf), restart the Squid service, and delete the keyword list file (/etc/squid/block_sites.acl).

Manjaro update failed due to clashes in dependencies

https://forum.manjaro.org/t/pamac-update-problem-jre-jdk/151478/6

Commands suggested in Known information and solutions on forum announcements for this issue don’t work, and users don’t seem to be capable of reading further into the topic to find working solutions

Linux Konsole line wrap

In Linux Konsole, the default line wrap is enabled for Konsole, sometimes is not easy to see when there are multiple lines.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

				
					## Disable line wrap
echo -ne '\e[?7l'

CONTAINER ID   IMAGE                           COMMAND                  CREATED       STATUS                 PORTS                                                                                                                         S
00de854ed1f3   ms2-product                     "java org.springfram…"   2 hours ago   Up 2 hours             0.0.0.0:8081->8080/tcp, :::8081->8080/tcp                                                                                     1
af94d6ac1a5f   rabbitmq:3-management           "docker-entrypoint.s…"   2 hours ago   Up 2 hours (healthy)   4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp1
e08c0897b0d5   ms2-recommendation              "java org.springfram…"   2 hours ago   Up 2 hours             8080/tcp                                                                                                                      1
a5659847b658   ms2-review                      "java org.springfram…"   2 hours ago   Up 2 hours             8080/tcp
				
			
				
					## Enable line wrap
echo -ne '\e[?7h'

00de854ed1f3   ms2-product                     "java org.springfram…"   2 hours ago   Up 2 hours             0.0.0.0:8081->8080/tcp, :::8081->8080/
tcp                                                                                                             ms2-product-1
af94d6ac1a5f   rabbitmq:3-management           "docker-entrypoint.s…"   2 hours ago   Up 2 hours (healthy)   4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, 
:::5672->5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp   ms2-rabbitmq-1
e08c0897b0d5   ms2-recommendation              "java org.springfram…"   2 hours ago   Up 2 hours             8080/
tcp                                                                                                                                              
ms2-recommendation-1
a5659847b658   ms2-review                      "java org.springfram…"   2 hours ago   Up 2 hours             8080/
tcp                                                                                                                                              ms2-review-1