Tag Archives: Linux Mint

Cache Ubuntu updates on a central network PC

This is how to use apt-cacher-ng to cache Ubuntu/Debian/Linux-Mint updates on a central LAN/Virtual PC, in case you are running multiple instances of Ubuntu on different PCs in a LAN or, if you are running them in a virtual machines.

This could help significantly with load times and leave internet bandwidth for other things, and make installing a new instance of Ubuntu on a virtual machine and updating it a much faster job.

On the central server run this, assuming its ip is 192.168.1.25

sudo -i
apt-get install apt-cacher-ng
echo 'Acquire::http { Proxy "http://192.168.1.25:3142"; };' > /etc/apt/apt.conf.d/02proxy

On every other computer you want it to use the cache on the central server:

echo 'Acquire::http { Proxy "http://192.168.123.5:3142"; };' > /etc/apt/apt.conf.d/02proxy

If, at anytime, you want to disable the cache and update using the internet directly on any single computer:

echo '' > /etc/apt/apt.conf.d/02proxy

Then you can execute the previous command any time to return using the cache.

Turn your laptop into a wireless access point using Hostapd

This is a guide to turn your old laptop into an access point, using Ubuntu or Debian as your operating system.

We are assuming your laptop have only one wireless card installed, if you have an extra usb wireless adapter during performing the steps in this guide, you may need to do extra steps to not apply the wrong settings to the wrong device.

Step 1

Run everything from here as root:

sudo -i

Install necessary tools:

apt-get install iw hostapd bridge-utils

Step 2 Continue reading Turn your laptop into a wireless access point using Hostapd

Install Ubuntu or Linux Mint with Btrfs disk compression enabled

This is a guide for installing Ubuntu or Linux Mint with full file system compression enabled, on a BTRFS partition.

This guide is intended to be simple and not for advanced users.
For beginners, this guide will take less time than other advanced guides.

This is useful in case you have a storage device with limited space, like an SSD, or you just want few extra GBs.

Continue reading Install Ubuntu or Linux Mint with Btrfs disk compression enabled