Compdigitec Labs

Linux

Scanning with Brother DCP-7065DN in Ubuntu

Saturday, September 12th, 2020

First, make sure the printer is detected in lsusb: Then, either add a udev rule to ensure that we have permission to access it, or use the following one-time hack: Now, install the correct driver for the printer from support.brother.com. For the DCP-7065DN on Ubuntu 64-bit, the following package worked: Check that sane-find-scanner can see […]

Simple recursive DNS server with Unbound DNS

Thursday, July 30th, 2020

This is a simple configuration for running a recursive DNS server (passes DNS requests to another server and caches responses) with the Unbound DNS server. Installation (Ubuntu): Open the config Configuration Replace 8.8.8.8 below with the desired upstream DNS server. Starting the server Debugging / Troubleshooting Query the server Read the DNS server log References: […]

Make fails silently

Tuesday, February 28th, 2017

Run make -d &> log.txt and examine the log. Likely there is some prerequisite which is missing, in the form of “File `foo’ does not exist.”

LaTeX macros ending in numbers

Saturday, February 13th, 2016

Only letters are directly permitted in macro names, but by using csname to create definitions along with a variable command, we can simulate them. First, define the macros with numbers using \csname: Now, create a command which takes in one variable argument, and simply expands it to call the appropriate macro (“xR” + variable) defined […]

Reverse proxy with HTML rewriting using Apache

Sunday, May 25th, 2014

Importing upstream tarballs in Debian with gbp import-orig

Sunday, October 6th, 2013

To build it:

Apache Active Directory authentication

Sunday, September 15th, 2013

Add this to /etc/ldap/ldap.conf: Then add this to a block:

Reverse proxy HTTPS with Apache

Friday, August 23rd, 2013

The procedure is mostly similar to the procedure with regular HTTP, but there are a few gimmicks involved here: Generate a self-signed one or purchase a SSL certificate (*.crt) for the server in question. Make sure you run ‘sudo a2enmod ssl‘ to enable SSL. Make sure you have enable the proxy module with ‘sudo a2enmod […]

CUPS web interface not working

Saturday, August 17th, 2013

CUPS seems to be working fine – documents can be printed and everything seems to work fine, but the web interface at http://localhost:631/ doesn’t work, returning something like: “Firefox can’t establish a connection to the server at localhost:631.” Solution: Open /etc/cups/cupsd.conf as root and ensure that the line: Exists somewhere in the file. Then save […]

OpenGL acceleration in Debian/Ubuntu

Thursday, June 20th, 2013

Getting “Error:  couldn’t get an RGB, Double-buffered visual“? 1) Install video driver Example: 2) Install OpenGL and related libraries/tools: 3) Restart X server or restart computer: 4) Test acceleration: Sample working output:

« Previous Entries