Tag: Debian

  • Dynamic DNS Using LibCloud – EdgeRouter

    This tutorial is aimed for users with a dynamic IP, and a DNS host that does not support DynDNS. Basically, we will push our new IP every time that it changes. The steps outlined in this tutorial will work with the providers listed in [[https://ci.apache.org/projects/libcloud/docs/dns/supported_providers.html#provider-matrix|Apache’s documentation]], but I have only actually tested with Rackspace. ===…

  • Send Emails From Gmail Through Shell/Script – Linux

    [[[TOC]]] ——- =Intro= Sometimes there is a need to send an email via command line, or in a script (such as using PHP’s `mail()` method); but there is not an MTA (postfix, sendmail, etc) running on the machine. Note that while it is possible to set an MTA up as a gmail smarthost, they will…

  • Configure OpenVPN with X.509 – Ubiquiti EdgeRouter Lite

    In this tutorial, we will be configuring an OpenVPN server with X.509 certs on a Ubiquiti EdgeRouter Lite. We will also go through how to connect a remote Linux client to the VPN. Below is a physical network diagram: {{{ +——————————–+ | Ubiquiti ERL | (Public IP)| |192.168.69.254 =============={eth2 eth0}============= | \ / | |…

  • Configure Linux for Active Directory Authentication With SSSD

    In this tutorial, we will configure a Linux box to authenticate against Active Directory. There are a few different methods to go about this, we will use `sssd` because it is recommended by [[https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/SSSD-Introduction.html|Red Hat]] # Remove pam_ldap if it is installed {{{ # Red Hat/CentOS/Fedora yum remove pam_ldap # Debian/Ubuntu apt-get remove pam_ldap }}}…

  • Install ffmpeg from source on Ubuntu

    This tutorial is designed for a headless server, and does not install anything related to `X11`. These instructions assume that you have escalated to root (`sudo su`), and have been tested with Ubuntu 12.04, 12.10, & 13.04. =Initial Installation= # Remove old `ffmpeg`, `x264`, and `avconv` {{{ apt-get remove -y ffmpeg x264 libav-tools yasm &&…

  • Install scipy for python 2.7 in Ubuntu

    Surprisingly the `scipy` package was not as straightforward of an installation as most Python modules; this tutorial will walk you through that process. # The first step is to download `easy_install`, and the libraries required for `scipy` {{{ lang=bash sudo apt-get install python-setuptools liblapack-dev libblas-dev }}} # Use `easy_install` to install `scipy` and other required…

  • Install/Configure PPTP Client (RHEL/CentOS/Ubuntu)

    Install PPTP Client Ubuntu/Debian {{{ sudo apt-get install pptp-linux }}} RHEL/CentOS/Fedora {{{ sudo yum install pptp }}} Modify chap-secrets `/etc/ppp/chap-secrets` and add the below line (replacing variables) {{{ $USERNAME PPTP $PASSWORD * }}} Create a config file named `vpn.domain.com` in the directory `/etc/ppp/peers`, and add (replacing variables) {{{ pty “pptp $VPN_SERVER –nolaunchpppd” name $USERNAME remotename…

  • Set up Subversion with SSH (svn+ssh)

    [[[TOC]]] =Setup SVN Server= Install Subversion Red Hat/CentOS/Fedora {{{ lang=bash sudo yum install subversion }}} Debian Based (Ubuntu) {{{ lang=bash sudo apt-get install subversion }}} Create a repository {{{ lang=bash sudo mkdir /data01/svn sudo mkdir /data01/svn/repos sudo svnadmin create /data01/svn/repos/new_repo }}} Create an SVN group (add whichever users you would like to it) {{{ lang=bash…