User Tools

Site Tools


start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start [2018/12/06 21:48]
abeverley
start [2024/02/18 15:51] (current)
abeverley [Example: building openarc package from experimental]
Line 3: Line 3:
 ===== About me ===== ===== About me =====
  
-Please either check out my [[http://​uk.linkedin.com/​pub/​andy-beverley/​15/​162/​941|LinkedIn]] page, or email me for my CV.+Please either check out my [[http://​uk.linkedin.com/​pub/​andy-beverley/​15/​162/​941|LinkedIn]] page
 + 
 +===== Build MariaDB with readline support ===== 
 + 
 +I've been frustrated with the use of editline (libedit) instead of readline that MariaDB is now built with in Debian 11. I have found editline to be buggy: its implementation of Ctrl-R and editing of wrapped lines do not work wellplus Ctrl-W not being mapping to delete a word by default is infuriating! 
 + 
 +As I understand it, Debian is no longer able to distribute MariaDB built against readline as the former is GPL2 and the latter GPL3, and apparently the 2 are incompatible ​for distribution. So I have written instructions for [[how to rebuild MariaDB against readline in Debian]]. 
 + 
 +===== Building packages from later versions of Debian for earlier releases ===== 
 + 
 +I had a problem recently whereby [[https://​bugs.debian.org/​cgi-bin/​bugreport.cgi?​bug=982998|a bug]] was fixed in a testing version of Debian (Bookworm) but had not been released to the current stable version (Bullseye). I decided to build the Bookworm version of the package for Bullseye: 
 + 
 +  apt-get install dpkg-dev devscripts 
 +  vim /​etc/​apt/​sources.list # Enable source packages 
 +  apt-get update 
 +  apt source chkrootkit 
 +  apt build-dep chkrootkit 
 +  cd chkrootkit-0.55 
 +  dch --bpo # Update package version so as not to conflict 
 +  debuild -uc -us 
 + 
 +==== Example: building openarc package from experimental ==== 
 + 
 +Add experimental sources to ''/​etc/​apt/​sources.list'':​ 
 + 
 +  deb-src http://​httpredir.debian.org/​debian/​ experimental main contrib 
 + 
 +  apt-get build-dep openarc 
 +  apt-get source openarc 
 +  cd openarc-1.0.0~beta3+dfsg/​ 
 +  cd debian/​patches 
 +  wget https://​github.com/​trusteddomainproject/​OpenARC/​pull/​167.patch 
 +  wget https://​github.com/​trusteddomainproject/​OpenARC/​pull/​168.patch 
 +  wget https://​github.com/​trusteddomainproject/​OpenARC/​pull/​170.patch 
 +  dch --bpo # Add letter to suggested version 
 +  debuild -uc -us 
 + 
 +==== References ==== 
 + 
 +https://​ostechnix.com/​how-to-build-debian-packages-from-source/​ 
 +https://​unix.stackexchange.com/​questions/​112157/​ 
 + 
 +Versioning info: https://​www.debian.org/​doc/​debian-policy/​ch-controlfields.html#​version 
 +===== JSON Web Tokens with Perl ===== 
 + 
 +Some examples of [[how to use JWTs with Perl]] 
 + 
 +===== Bulk resizing images ===== 
 + 
 +  # Maximum width 400px and max height 700px 
 +  mogrify -resize '​400x700>'​ *.png 
 +   
 +  # Maximum width 400px 
 +  mogrify -resize '​400>'​ *.png 
 + 
 +===== Using Overlay (OpenStreetMap) ===== 
 + 
 +[[overlay|Using Overlay to extract data from OpenStreetMap]]
  
 ===== Using iptables and PHP to create a captive portal ===== ===== Using iptables and PHP to create a captive portal =====
  
-  * There are various captive portal software packages available (both free and open source). None of the packages I tried did what I wanted and were not particularly customisable. Therefore I created my own using a few iptables rules and PHP (along with a handful of other standard packages). The page below details the steps taken. [[Using_iptables_and_PHP_to_create_a_captive_portal|Using iptables and PHP to create a captive portal]]+There are various captive portal software packages available (both free and open source). None of the packages I tried did what I wanted and were not particularly customisable. Therefore I created my own using a few iptables rules and PHP (along with a handful of other standard packages). The page below details the steps taken. [[Using_iptables_and_PHP_to_create_a_captive_portal|Using iptables and PHP to create a captive portal]]
  
 ===== Set up Guacamole on Ubuntu in order to share the desktop remotely over the web using HTML5 ===== ===== Set up Guacamole on Ubuntu in order to share the desktop remotely over the web using HTML5 =====
Line 19: Line 76:
 ===== Fair traffic shaping an ADSL line for a local network using Linux ===== ===== Fair traffic shaping an ADSL line for a local network using Linux =====
  
-  * Traffic shaping a standard ADSL link in order to share it with a couple of hundred users is a common problem. There are dozens of bits of software and firewall scripts out there already to do this. This particular page details a method that I have used successfully for several years. It aims to be as simple as possible, is easily customised, and uses connlimit to identify P2P users. Although the latter is not 100% reliable, it seems to work pretty well and does not fall foul of any new/changed P2P software that happens to some of the other scripts. The page is written as more of a tutorial; if you would like to use this in practice, then I recommend you check out the scripts in the "​captive portal from scratch"​ page below. [[Fair_traffic_shaping_an_ADSL_line_for_a_local_network_using_Linux|Fair traffic shaping an ADSL line for a local network using Linux]]+Traffic shaping a standard ADSL link in order to share it with a couple of hundred users is a common problem. There are dozens of bits of software and firewall scripts out there already to do this. This particular page details a method that I have used successfully for several years. It aims to be as simple as possible, is easily customised, and uses connlimit to identify P2P users. Although the latter is not 100% reliable, it seems to work pretty well and does not fall foul of any new/changed P2P software that happens to some of the other scripts. The page is written as more of a tutorial; if you would like to use this in practice, then I recommend you check out the scripts in the "​captive portal from scratch"​ page below. [[Fair_traffic_shaping_an_ADSL_line_for_a_local_network_using_Linux|Fair traffic shaping an ADSL line for a local network using Linux]]
  
 ===== Setting up a captive portal from scratch using Debian ===== ===== Setting up a captive portal from scratch using Debian =====
  
-  * The link below gives the full details from start to finish of installing the Debian operating system, setting up a captive portal and shaping traffic fairly for dozens of users. [[Setting_up_a_captive_portal_from_scratch_using_Debian|Setting up a captive portal from scratch using Debian]]+The link below gives the full details from start to finish of installing the Debian operating system, setting up a captive portal and shaping traffic fairly for dozens of users. [[Setting_up_a_captive_portal_from_scratch_using_Debian|Setting up a captive portal from scratch using Debian]]
  
 ===== PortalShaper - details of the scripts used in the installation above ===== ===== PortalShaper - details of the scripts used in the installation above =====
Line 51: Line 108:
 ===== Customise live Ubuntu for internet cafe environment ===== ===== Customise live Ubuntu for internet cafe environment =====
  
-  * A page with instructions on how to customise a copy of Ubuntu and make it network bootable in order to use within an internet cafe environment. In my opinion this is vastly superior to most arrangements in internet cafes that I use! [[cubuntu|Customise live Ubuntu for internet cafe environment]]+A page with instructions on how to customise a copy of Ubuntu and make it network bootable in order to use within an internet cafe environment. In my opinion this is vastly superior to most arrangements in internet cafes that I use! [[cubuntu|Customise live Ubuntu for internet cafe environment]]
  
 ===== Setup SMTP authentication with Postfix running on Debian ===== ===== Setup SMTP authentication with Postfix running on Debian =====
  
-  * The original idea of this page was a quick and dirty howto on how to setup SMTP authentication on Postfix. However, it turned out that there was no quick way to achieve what I wanted (encrypted passwords over an unencrypted link, using Courier IMAP as the password database). It also turned out that I was running a non-standard Postfix (it wasn't chrooted). Therefore, as SMTP AUTH and SASL have always been something of a black art to me, I have written a few things down that I have discovered, as well as a quick and dirty howto on setting up a basic SASL database. [[SMTP_authentication_and_Postfix|SMTP authentication and Postfix]]+The original idea of this page was a quick and dirty howto on how to setup SMTP authentication on Postfix. However, it turned out that there was no quick way to achieve what I wanted (encrypted passwords over an unencrypted link, using Courier IMAP as the password database). It also turned out that I was running a non-standard Postfix (it wasn't chrooted). Therefore, as SMTP AUTH and SASL have always been something of a black art to me, I have written a few things down that I have discovered, as well as a quick and dirty howto on setting up a basic SASL database. [[SMTP_authentication_and_Postfix|SMTP authentication and Postfix]]
  
 ===== Setup clamav with Postfix on Debian Lenny in a chroot ===== ===== Setup clamav with Postfix on Debian Lenny in a chroot =====
  
-  * Some quick steps showing something that's quite easy but not immediately obvious. [[Setup_clamav_with_Postfix_on_Debian_Lenny_in_a_chroot|Setup clamav with Postfix on Debian Lenny in a chroot]]+Some quick steps showing something that's quite easy but not immediately obvious. [[Setup_clamav_with_Postfix_on_Debian_Lenny_in_a_chroot|Setup clamav with Postfix on Debian Lenny in a chroot]]
  
  
 ===== Tomatina tomato festival ===== ===== Tomatina tomato festival =====
  
-  * A page with advice about the Tomatina festival that I attended in 2006. [[http://​files.andybev.com/​tomatina/​|La Tomatina Tomato Festival - photos and advice]] +A page with advice about the Tomatina festival that I attended in 2006. [[http://​files.andybev.com/​tomatina/​|La Tomatina Tomato Festival - photos and advice]]
- +
-===== Random computer notes =====+
  
-  * A page with some random notes. [[Computer_notes|Computer notes]] 
  
 andy@andybev.com andy@andybev.com
  
start.1544132894.txt.gz · Last modified: 2018/12/06 21:48 by abeverley