Skip to main content

Posts

Showing posts from November, 2019

Setting up a TOR Relay on Mageia6

The Onion Router (TOR) is not a server frequently run by most Linux users, especially North American users. Many countries actively persecute their citizens for their beliefs and anonymity is important for their safety, so I wanted to participate in the effort to assist this project by running a TOR relay server.

I have a dedicated computer that runs a webserver for a hobby site, so I felt that it would be the logical hardware to run the TOR server. It is important for TOR to have access to the correct and accurate time, so the NTP client needs to be installed and configured for your timezone.

Configure the NTP Server
$ xsudo drakwizard ntp
and follow the instructions here to install and configure it. You can launch X-applications over ssh using xsudo.

Install the TOR Application
$ sudo urpmi tor
This will also install the SOCKS proxy software. You may also install a GUI configuration tool, vidalia. We won't be using vidalia, so it won't be covered here.

How to Manage TOR
Vidalia …

Creating a Custom Mageia Repository

As extensive as the Mageia RPM package repositories are, they don't include every application possible and it makes sense to create a local repository of these additional RPMs since I have several Mageia workstations.

Using a remote workstation running lighttpd that acts as a webserver for a car club, it is also configured to allow each user to use ~/public_html as their personal webserver, and so added mageia as a user and will host the custom RPM files there. Configuration for lighttpd can be found here.

There must also be a way for urpmi to know what files are available, so install repoctl which includes the application genhdlists. There is also a stand-alone application, genhdlists2 that accomplishes the same thing and that's what was used here.

$ cd /home/mageia/public_html
$ genhdlists .

If you also use yum of dnf, install mrepo to accomplish the same thing.

Add a Local Repository

To add the new http repository, use urpmi.addmedia.  For example,

$ urpmi.addmedia [options]

$ …

Creating TASK-* RPMs for Mageia: task-codeweavers-essentials

A task-*.rpm package is a metapackage, a special type of package that installs other RPM packages that are delineated as dependencies of the task-*.rpm. They contain no actual data, they just cause the system to install  other RPM packages as directed.

There is a need to create such a package to compliment the installation of Codeweaver's crossover application. As explained in another post, Mageia is a distro unsupported by Codeweavers and has different names for the needed dependencies that are provided by Mageia. Rather than struggle through a long list of packages to install, it would be easier to invoke

$ sudo urpmi crossover-essentials-task

and be done with it.

The first step to create such a package is to build the .spec file. I chose to modify an existing .spec file, so I started with the .spec file from task-lxde. It is shown below.

 Name: task-lxde
Version: 7
Release: %mkrel 1
Epoch: 1
Summary: Metapackage for lxde
Group: Graphical desktop/Other
License: GPL
URL: http://lxde.org
#…