Archive for 'Debian'

1) Install a minimal 64-bit Debian 9 Stretch. Create a regular user "toor".
2) # Make sure CD-ROM is commented out in "/etc/apt/sources.list", and that you have configured an official Debian mirror there. Also make sure "contrib" is configured to your Debian mirror. As root:
apt-get -y update
apt-get -y upgrade
apt-get -y install net-tools openssh-server openssh-client
3) cp -p /etc/network/interfaces /etc/network/interfaces.orig
vi /etc/network/interfaces # Have the following contents. You may modify the contents if necessary.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp3s0
#iface enp3s0 inet dhcp
› Continue reading...

Note 1: It is assumed that the IP of your Debian 9.4 64-bit KVM server is 192.168.1.160. Change this if necessary.
Note 2: It is assumed that the gateway IP of your Debian 9.4 64-bit KVM server is 192.168.1.1. Change this if necessary.
Note 3: It is assumed that the broadcast IP of your Debian 9.4 64-bit KVM server is 192.168.1.255. Change this if necessary.

Setup server for remote access:
1) Install minimal Debian 9.4.0 64-bit. Create a regular user "toor".
2) Remove installation media.
3) # Make sure CD-ROM is commented out in "/etc/apt/sources.list", and that you have configured an official Debian mirror there. Also make sure "contrib" is configured to your Debian mirror.
apt-get -y update
apt-get -y upgrade
apt-get -y install net-tools openssh-server openssh-client
4) vi /etc/network/interfaces # Have the following contents. You may modify the contents if necessary.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp3s0
› Continue reading...

Make build system and compile Squid 3.5
1) Install Debian 9 (amd64) from net install ISO. Make a minimal installation.
2) apt-get -y update ; apt-get -y upgrade ; apt-get -y install openssh-server net-tools
3) apt-get -y install openssl devscripts build-essential fakeroot libdbi-perl libssl1.0-dev
4) cd ~ ; apt-get source -y squid3 # You may ignore the following warning: W: Download is performed unsandboxed as root as file 'squid3_3.5.23-5+deb9u1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
5) apt-get build-dep -y squid3
6) cd squid3-3.5.23
7) vi debian/rules # Make sure the following is defined in the end for "DEB_CONFIGURE_EXTRA_FLAGS":
--with-default-user=proxy \
--enable-ssl \
--enable-ssl-crtd \
--with-openssl \
--disable-ipv6
8) debuild -us -uc # .deb packages will be in ~/

Installation of .deb packages
*) If target machine is different from where you built Squid, install Debian 9 (amd64) from net install ISO. Make a minimal installation.
1) apt-get -y install logrotate net-tools firewalld openssh-server apache2-utils openssl libdbi-perl devscripts
› Continue reading...

Back to top