Category: Linux

  • Setup SNMPD (v2) in Ubuntu 12.10

    * Install {{{ sudo apt-get install snmpd }}} * Backup old configs {{{ sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org }}} * Create `/etc/snmp/snmpd.conf` {{{ rocommunity public syslocation “Server Closet, 1B” syscontact dave@dlasley.net }}} * Tell snmpd to use the new file and listen on all interfaces ** `sudo nano /etc/default/snmpd` ** Replace {{{ SNMPDOPTS=’-Lsd -Lf /dev/null -u…

  • Ethernet Bonding – Ubuntu 12.10

    * Install package {{{ sudo apt-get install ifenslave-2.6 }}} * Enable Kernel Module: * `sudo nano /etc/modules` * add `bonding` to the end (if not already contained in the file) * Stop networking and load kernel module {{{ sudo stop networking sudo modprobe bonding }}} * Configure `/etc/network/interfaces` {{{ # The loopback network interface auto…

  • Upgrade Ubuntu

    [[[TOC]]] ——— =LTS To Normal= * Update-Manager install, this may or may not already be installed {{{ sudo apt-get install update-manager-core }}} * Set `lts` to `normal` in `/etc/update-manager/release-upgrades` {{{ Prompt=normal }}} * Perform the upgrade {{{ sudo apt-get update sudo do-release-upgrade -d }}} ——— =Normal To LTS= * Update-Manager install, this may or may…

  • Apache Reverse Proxy w/ URL Rewrite & REMOTE_USER Header

    Here is a sample Location block for setting up Apache as an authentication proxy for a remote Trac install. It sets a REMOTE_USER header so that Trac does not need to worry about authentication, and rewrites the URL for the remote URL Schema. {{{ lang=xml line=1 RewriteEngine On #< Allows Rewritin the URL with regexes…

  • `Unrecognized option ‘preset’` in avconv/ffmpeg+x264

    This is because libx264 or the extra codecs are not installed. Install with {{{ #1ang=bash sudo apt-get install -y x264 libx264-123 libx264-dev libavcodec-extra-53 }}}

  • Working with files by inode

    [[[TOC]]] ——- = Find the inode number = * Use either ** `stat {file-name}` ** `ls -il {file-name}` ——- = Remove by inode with find = * `find . -inum [inode-number] -exec rm -Rfi {} \;` ** Beware, this is recursive and does not warn

  • add-apt-repository: command not found

    When attempting to add a repo on my pxe-boot chroot, I got the error: `add-apt-repository: command not found` {{{ root@server:/# add-apt-repository ppa:yannubuntu/boot-repair && apt-get update add-apt-repository: command not found }}} The solution is to install both `python-software-properties` and `software-properties-common` {{{ apt-get install -y python-software-properties software-properties-common }}}

  • Setup PXE Server Ubuntu

    In this tutorial, I will guide you through the process of creating a PXE server on an Ubuntu Host. This guide also includes complete setup instructions for the PXE client and DHCP server. I will also guide you through an effective storage/deployment method so that you may quickly deploy identical PXE images. ——- [[[TOC]]] ——-…

  • WordPress Setup – Ubuntu 12.10

    Requires a configured web server 1. WordPress was surprisingly simple to setup: apt-get install wordpress 2. Symlink wordpress to web directory ln -s /usr/share/wordpress /var/www/wordpress 3. Run setup script. (-n seems to be the database to create and the final option is the domain) /usr/share/doc/wordpress/examples/setup-mysql -n wordpress domain.com 4. Permissions chown -R www-data /usr/share/wordpress \…