Usually I am using the packages from the official repositories. However, sometimes it’s necessary to use a newer version, I recently had to do this with strongswan and I’m sharing the procedure for other people to try. Get the build dependencies [codesyntax lang=”bash”] apt-get update apt-get install devscripts fakeroot apt-get build-dep strongswan [/codesyntax] Obtain and build … Continue reading Build strongswan v5.5.0 debian package — with debug symbols→
I don’t know about other distributions, but I know that the debug symbols were stripped from Debian/Ubuntu packages. If there are some crashes reported I won’t be able to fully analyze them. The only way to fix this problem is to build the packages again. [codesyntax lang=”bash”] git clone https://github.com/MariaDB/server.git cd server/ git branch -a … Continue reading How to add debug symbols for MariaDB Debian/Ubuntu packages→
Some context might be useful. We have an openldap instance to manage users. We also have phpLDAPadmin, but that’s not the point. The point is that I want to add/edit an user from command line. Adding a user it not a problem. [codesyntax lang=”bash”] ldapadduser john.doe users Warning : using command-line passwords, ldapscripts may not be … Continue reading ldappasswd and “ldap_sasl_interactive_bind_s: Invalid credentials (49)” error message→
Assuming you have a LDAP server somewhere and you don’t want to authenticate users via htpasswd file anymore… I mean, having all your users in one place is a good thing – it’s debatable, but in general is a good thing, right? Now, the technical part… My LDAP structure is like this: – groups: cn=group,ou=groups,dc=example,dc=com … Continue reading Enable LDAP authentication in Apache→
I wanted to have syntax highlighting for a php file I was debugging. Source-highlight given a source file, produces a document with syntax highlighting. These are the output formats already supported: HTML XHTML LATEX MediaWiki (new) ODF (new) TEXINFO ANSI color escape sequences (you can use this feature with less) DocBook These are the input … Continue reading How to enable syntax highlighting in less→
Prozilla Download Accelerator is a multi-threaded download accelerator for Linux which supports both HTTP and FTP protocols and because it makes multiple connections to the server and downloads the file in portions, thus giving a much better speed rate than the conventional download programs which use a single connection, increases download speeds with up to … Continue reading Prozilla – Linux Download Accelerator→
Lately I faced a new challenge. To fully migrate our SVN environment to GIT. After reading a little bit on internet I come up with this plan: Deploy a GIT server Create a new bare repository Make a SVN Clone on a different machine Push it on GIT server Assumptions: SVN Repository: https://192.168.0.5/svn/documentation GIT Server: 192.168.0.22 … Continue reading Migrate from SVN to GIT – step by step tutorial→
The approach is simple: generate a list of installed packages on Debian-based systems and install this list of packages on the new box. This approach is useful when you want to install the same packages on another fresh OS install for example. 1. To export the list of installed packages, proceed as follows: [codesyntax lang=”bash”] … Continue reading How to install the same debian packages on another system→
If you are using CentOS the answer is pretty simple: [codesyntax lang=”bash”] chkconfig –list | grep $(runlevel | awk ‘{ print $2}’):on [/codesyntax] But how about Debian Linux? How is this done? [codesyntax lang=”bash”] R=$(runlevel | awk ‘{ print $2}’) for s in /etc/rc${R}.d/*; do basename $s | grep ‘^S’ | sed ‘s/S[0-9].//g’ ;done [/codesyntax] … Continue reading Debian: How to determine services are enabled at boot→
Let’s assume that when you are trying to install apticron the default config file is not created and when you are trying to execute postinst configure the following error message occurs: Not replacing deleted config file /etc/apticron/apticron.conf The fix is: [codesyntax lang=”bash”] aptitude -o DPkg::Options=”–force-confmiss” reinstall apticron [/codesyntax]