Skip to main content

Blocklist-Update.sh

Blocklist-Update.sh is a script that I wrote to manage blocklists from bluetack etc to be used in conjunction with Transmission torrent downloader in Linux/MacOS. The script can be taylored to work with Qbittorrent as well, but the placement of the blocklists means you'd have to redirect the blocklist to go somewhere locally manageable as Transmission uses its own blocklist directory in .config. I believe there are about 10 lists there now. It works well for my needs. It can be ran weekly using crontab in standard user profile.  To download:  blocklist-update.sh To download the others:  Github

LINUX PERMISSIONS AND GROUPS

 Linux is inherently more secure than other operating systems by the wide range of permissions that it uses for each individual file. Most new users who install Linux on their desktops will do so in a way that their default user has access to the Wheel group. The Wheel group manages things like installing to and uninstalling from as well as system configurations using sudo privilege. It does this in a way that is secure. Normally the user won’t directly be able to access these services without typing sudo or super user do. Sudo tells the shell that the user is requesting elevated privilege directly and asks for the sudo password found in the passwd file. Sudo also suggest switching a user from the normal group level of User to Wheel, but unless the user’s name is already in the Wheel, the user will not be able to gain root access anyway, not even with a password. This type of access control prevents many user apps from gaining access to Kernel space memory and control. In Linux, each group is separate from the other with Wheel controlling the lot, however, by default, to edit and read many system files the user must have root access and have his/her name in the Wheel. This trickles down to individual file permissions as well. File permissions have a specific number or series of numbers assigned to them; such as 4, 0, 1. The first number defines what user the file is tied to, the second refers to the group and the final one defines the permissions respectively. These numbers usually come in three digits and are added up for specific types of permission. For instance, 777 gives the file across the board permissions and each number represents another access permission. The three big ones are read, write, and execute. Execution of a particular file is not the same as in Windows. Windows executables will not work on Linux, but in this sense of the word, executable means that the file can perform functions on the system such as the case for bash scripts. This gives it rights to access system configuration and run system commands freely if ran by a user of equal privilege and status. A better example is if I were root and I created a text file, If I gave the file access to other users but kept the file as root, others would be able to read the file but not write to it. That privilege remains with the root user who created it. Most of the time when making a script file executable, I use the command chmod +x where x means executable chmod changes the file credentials to allow that to happen. Chmod works with the aforementioned numbers as well, but since chmod +x is a quick and painless way to tell the system to execute the file for the originating user, it is simpler to do it this way, however, sometimes in Arch Linux systems, after an update, a file changes permissions where root files are typically 777 these come out as 775 or 755 and these are not correct, though in most cases it doesn’t cause an issue, but this depends greatly on the file. In such a scenario it would be easy enough to change by using sudo chmod and the numbers required. Chown deals mainly with groups but works in a similar way to chmod. Chown means change ownership and it allows the user to change a file’s user and group name to that of say root for example. Sudo chown $USER $GROUP $Filename is the syntax often used when running this command. Permissions are a lot more confusing in Linux than in Windows and the way Linux handles permissions is even more confusing. I will link some resources below that explain these things in more detail and with more elegance than I can do in this article.


Elithecomputerguy's Video About Permissions In Linux

Comments

Popular posts from this blog

NOSCRIPT CONFIGURATION FOR PALE MOON SPECIFICALLY

I wrote an article before about making Pale Moon more private. I covered a few of the settings and back end changes I make each time I install it. I mentioned Noscript, but I didn’t give any details about how I set it up. First though, you have to get the version already marked for your version of “Firefox” or in this case, Pale Moon. If you went to https://addons.palemoon.org/addon/noscript/ you would probably find the Pale Moon addons page devoted to the newest possible Noscript being marked specifically for Pale Moon. Other versions may work, but these are hybrid addons and the closer we get to Noscript 10, the less I trust it to work with Pale Moon specifically. I just opt to stick with 5.0.6. There have been people asking about what happens when Maone, the developer stops supporting the hybrid versions of Noscript, “Will it work with Pale Moon?” Why yes it will. Noscript blocks scripts, that’s its main function and it will do that as long as Java script exists on a page.

SSD PARTITION ALIGNMENT

I was searching for more information regarding SSDs last night as that is what I now use, I found an interesting little tip that most users will never have to worry about, but people using Arch Linux, Manjaro or Windows that was cloned from another drive may want to consider checking this. The Partition manager within Linux normally takes good care to ensure that you have some free space to be used by the SSD in the event that a cell becomes worn out or corrupted. Also, Linux generally ensures that a proper amount of unallocated drive space is set aside preceeding the partition. However, on my own image of Manjaro, I discovered that this was not the case. The partition was “out of alignment”. To fix this situation, I found an article on  Lifehacker that went into instructional detail about how to solve this from a live environment or an image of Gparted . Gparted is a separate live environment of Linux that is based on Debian and uses Gparted as the main tool to manage par

PALE MOON PRIVACY SETUP

I did a review of Pale Moon back when 27.6.2 came out in linux. I had mostly great things to say about the browser then and my feelings towards it have not changed. Pale Moon is a very useful tool for scowering the net. It has privacy at its core with a few implementations made by Moonchild, the lead developer, built in. I also mentioned the point that Pale Moon has a canvas poisoning feature in the backend, however, I wasn’t very clear about how to turn it on. I thought in this tutorial, I’d show with a series of screen shots, some of the useful settings and preferences that I change to make Pale Moon a bit more private. I also thought I’d take this time to rant a little more about some of the not so savory issues with Firefox which have recently come under scrutiny by various people in the the Linux world. First order of business, if you haven’t heard, Mozilla recently added an extension into their browser which gave people ads. That’s right, they were ads for a specific t