Debian Unattended Security Updates

Follow these instructions and set your email to receive notifications.

https://wiki.debian.org/UnattendedUpgrades

apt-get install unattended-upgrades apt-listchanges

nano /etc/apt/apt.conf.d/50unattended-upgrades

Set your email to receive notificaitons:
Unattended
-Upgrade::Mail "your@email.com";

To activate unattended-upgrades, you need to ensure that the apt configuration stub /etc/apt/apt.conf.d/20auto-upgrades contains at least the following lines:

  • # editor /etc/apt/apt.conf.d/20auto-upgrades

     

    APT::Periodic::Update-Package-Lists "1";
    APT::Periodic::Unattended-Upgrade "1";
    dpkg-reconfigure -plow unattended-upgrades

 

Alternatively, you can also create the apt configuration file /etc/apt/apt.conf.d/02periodic to activate unattended-upgrades:

  • # nano /etc/apt/apt.conf.d/02periodic
    
    

     

    Below is an example /etc/apt/apt.conf.d/02periodic:

    • // Control parameters for cron jobs by /etc/cron.daily/apt-compat //
      
      
      // Enable the update/upgrade script (0=disable)
      APT::Periodic::Enable "1";
      
      
      // Do "apt-get update" automatically every n-days (0=disable)
      APT::Periodic::Update-Package-Lists "1";
      
      
      // Do "apt-get upgrade --download-only" every n-days (0=disable)
      APT::Periodic::Download-Upgradeable-Packages "1";
      
      
      // Run the "unattended-upgrade" security upgrade script
      // every n-days (0=disabled)
      // Requires the package "unattended-upgrades" and will write
      // a log in /var/log/unattended-upgrades
      APT::Periodic::Unattended-Upgrade "1";
      
      
      // Do "apt-get autoclean" every n-days (0=disable)
      APT::Periodic::AutocleanInterval "21";
      
      
      // Send report mail to root
      //     0:  no report             (or null string)
      //     1:  progress report       (actually any string)
      //     2:  + command outputs     (remove -qq, remove 2>/dev/null, add -d)
      //     3:  + trace on
      APT::Periodic::Verbose "2";
      
      Unattended-Upgrade::Mail "your@email.com";
      
      

How to install and remove Sophos Free Antivirus for Linux

This is a great thing to have around.

Beware, it will slow your system down a bit if you have lots of files or large files that will be scanned.

Do not use on a development machine where you compile things or it will be very slow to create builds. Your mileage may vary.

Install

1. If you haven’t already downloaded the installer, do as follows:
a) Go to http://www.sophos.com/en-us/products/free-tools.aspx
b) Find Sophos Anti-Virus for Linux Free Edition and click Download. Follow the instructions to download the tarball to a temporary directory, for example /home/myuser/Downloads.

2. Change to the temporary directory and untar the tarball:
tar -xzvf .

If you have a GUI install you can usually Right click and choose Extract Here to avoid having to issue commands in the terminal.

3. Run the install script:

a) You might have to chmod +x the install.sh file before you can run it.

b) Then  you can run

sudo ./sophos-av/install.sh

4. The installer guides you through the installation:
■ When prompted for the type of auto-update you want, select Sophos.
■ When prompted for the version you want, select Free.
Sophos Anti-Virus is installed in the directory that you selected.

Uninstall

sudo /opt/sophos-av/uninstall.sh

 

Official Sopho Antivirus for Linux PDF Manual

 

List process run by user

 

Replace the [username] with the required username

If you want to use ps then

ps -u [username] 

OR

 ps -ef | grep <username> 

OR

ps -efl | grep <username> 

How to fix Libfaac – configure: error: cannot guess build type; you must specify one – Power8

This issue occurs when compiling on Power8. This is as a result of a rather old config.guess file which is included in the src folder of libfaac.

 

Problem description:

Attempting to ./configure the libfaac packages ends with the following output.

config.guess timestamp = 2006-07-02

 

uname -m = ppc64le

uname -r = 3.13.0-37-generic

uname -s = Linux

uname -v = #64-Ubuntu SMP Mon Sep 22 21:27:09 UTC 2014

 

/usr/bin/uname -p = 

/bin/uname -X     = 

 

hostinfo               = 

/bin/universe          = 

/usr/bin/arch -k       = 

/bin/arch              = 

/usr/bin/oslevel       = 

/usr/convex/getsysinfo = 

 

UNAME_MACHINE = ppc64le

UNAME_RELEASE = 3.13.0-37-generic

UNAME_SYSTEM  = Linux

UNAME_VERSION = #64-Ubuntu SMP Mon Sep 22 21:27:09 UTC 2014

configure: error: cannot guess build type; you must specify one

Solution:

 

Download a proper config.guess that is able to determine the power8 architecture.

Download a modernized config.guess file and overwrite the one in src folder that you are attempting to configure.

Re-run the ./configure command and everything should work as expected.

 

You can download a sample config.guess file below.

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD

 

Sources:

https://www.ibm.com/developerworks/community/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/installing_native_rubygems?lang=en