snmpd: error on subcontainer ‘ia_addr’ insert (-1)

On Debian 10 system – syslog is flooded with:

snmpd[6578]: error on subcontainer ‘ia_addr’ insert (-1)
snmpd[6578]: error on subcontainer ‘ia_addr’ insert (-1)
snmpd[6578]: error on subcontainer ‘ia_addr’ insert (-1)
This seems to be a bug and to fix it edit systemd unit file:

# cp /lib/systemd/system/snmpd.service /etc/systemd/system/snmpd.service
# sed -i "s|-Lsd|-LS6d|" /etc/systemd/system/snmpd.service
# systemctl daemon-reload
# systemctl restart snmpd

DEBIAN 8 – How to install MySQL server 5.6 or 5.7

I recently had to upgrade MySQL to 5.6 but found that Debian provides MySQL server 5.5 with both Jessie (v8) but the latest GA releases are 5.6 and 5.7 with some enhancements and added features, including support for InnoDB Full-text search.

So to install the latest version on Debian do this:

1. Download the MySQL APT repository config tool (you can see more details here: http://dev.mysql.com/downloads/repo/apt/)

wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb

2. Install the MySQL APT repository config tool

dpkg -i mysql-apt-config_0.7.3-1_all.deb

3. If you get an invalid key error run:
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5

You will be asked to select product and version that you want to install. In the first step, select Server and next select either mysql-5.6 or mysql-5.7. Then click Apply.

3. Update APT

apt-get update

4. Install the server

apt-get install mysql-community-server

Job done.

HP Pro 1102w printer installation in Debian with CUPS

All necessary information are available here.

And the bits that I care about:

Download and Install

Click the link, or cut and paste the whole command line below to download the driver.

    $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz

Now unpack it:

Unpack:
    $ tar zxf foo2zjs.tar.gz
    $ cd foo2zjs

Now compile and install it. The INSTALL file contains more detailed instructions; please read it now.

Compile:
    $ make

Install driver, foomatic XML files, and extra files:
    $ su			OR	$ sudo make install
    # make install

(Optional) If you use CUPS, restart the spooler:
    # make cups			OR	$ sudo make cups

Now create printer entries for your spooler.

Once the above is done simply go to https://Your_cups_server:631/ and add the printer:

cups_p_1102w

and if everything went OK the driver will be visible somewhere near the bottom of the list as listed above.

Debian – VMware Tools

Open VM Tools

Open VM Tools is the open source implementation of VMware Tools and consist of a suite of virtualization utilities that improves the functionality, administration, and management of virtual machines on VMware hypervisors. VMware recommends using the Open VM Tools redistributed by the operating system vendors. For additional information, see knowledge base article 2073803, VMware support of open-vm-tools, at http://kb.vmware.com/kb/2073803.

Install Open VM Tools

  1. Add the following line to the /etc/apt/sources.list file.
    deb http://ftp.debian.org/debian/ wheezy main contrib
  2. Run the commands:
    $ sudo apt-get update
     $ sudo apt-get install open-vm-tools

Source: vmware.com