Skip to content

Instantly share code, notes, and snippets.

@hyperized
Created August 31, 2017 12:28
Show Gist options
  • Save hyperized/c94ba4b6e35c758cccef513f87992384 to your computer and use it in GitHub Desktop.
Save hyperized/c94ba4b6e35c758cccef513f87992384 to your computer and use it in GitHub Desktop.

How to apt-mirror for Cisofy Lynis

To create our own APT mirror server we've done the following:

$ apt-get install apt-mirror nginx

Put the following in /etc/apt/mirror.list: gist

Put the following in /etc/nginx/sites-enabled/default: gist

Put the following in /etc/cron.d/apt-mirror: gist

Now run:

$ apt-mirror

$ service nginx restart

Assuming your server is called something like: http://apt.my.server/, you can now visit: http://apt.my.server/cisofy

It should show something like: image

Now on a client you can configure APT as following:

Put the following in /etc/apt/sources.list.d/cisofy.list:

deb http://apt.my.server/cisofy/ trusty main

Replace the apt.my.server part with the hostname of your mirror server.

After this, on the client, run:

$ apt-get update

$ apt-get install lynis

And you're done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment