warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/ on line 33.

Squid: Compile with SSL support under Debian Wheezy / Jessie

wget -q --no-check-certificate -O - | bash -s


# add Debian Wheezy backports repository
cat <<EOF> /etc/apt/sources.list.d/wheezy-backports.list
deb wheezy-backports main
deb-src wheezy-backports main
# update repository list
apt-get update
# install required dev packages
apt-get install -y wget openssl devscripts build-essential libssl-dev
# install debian squid3 source code
apt-get source -y squid3
# install all required dependeny packages
apt-get build-dep -y squid3
# enable SSL support
wget -q -O - | patch -p2 squid3-3.4.8/debian/rules
# build packages
cd squid3-3.4.8
debuild -us -uc

Install packages
apt-get install logrotate
dpkg -i *.deb
apt-get install -f

Test configuration
# squid3 -v
Squid Cache: Version 3.4.8
configure options: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=${prefix}/lib/squid3' '--srcdir=.' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--datadir=/usr/share/squid3' '--sysconfdir=/etc/squid3' '--mandir=/usr/share/man' '--enable-inline' '--disable-arch-native' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth-basic=DB,fake,getpwnam,LDAP,MSNT,MSNT-multi-domain,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-auth-ntlm=fake,smb_lm' '--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group' '--enable-url-rewrite-helpers=fake' '--enable-eui' '--enable-esi' '--enable-icmp' '--enable-zph-qos' '--enable-ecap' '--disable-translation' '--with-swapdir=/var/spool/squid3' '--with-logdir=/var/log/squid3' '--with-pidfile=/var/run/' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--enable-ssl' '--with-open-ssl=/etc/ssl/openssl.cnf' '--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security'


Compile IPFire (on 32bit system)

sudo apt-get install -y git
#sudo apt-get install -y git-core gcc g++ realpath make patch bzip2 byacc python-urlgrabber bison gawk texinfo

sudo apt-get install -y git-core g++ realpath patch make python-urlgrabber bison gawk texinfo autoconf screen
# byacc
dpkg -i byacc_20130925-1_i386.deb

git config --global color.ui auto

# check out source
git clone git://

ln -sf /bin/bash /bin/sh

cd ipfire-2.x/
./ downloadsrc
./ gettoolchain

HowTo: Compile Nautilus

Install compiled 64bit version
sudo dpkg -i /tmp/nautilus_3.2.1-0ubuntu3.1_amd64.deb
nautilus -q

Automatic installation script
wget -O - | bash -


cd /usr/src/
sudo apt-get install -y dpkg-dev
sudo apt-get source nautilus
sudo apt-get -y build-dep nautilus
sudo sed -i 's|gtk_toolbar_insert (GTK_TOOLBAR (self->priv->toolbar), item, 0);|gtk_toolbar_insert (GTK_TOOLBAR (self->priv->toolbar), item, 2);|g' nautilus-*/src/nautilus-toolbar.c
cd ./nautilus-*/
sudo dpkg-buildpackage -us -uc -b
sudo dpkg -i /usr/share/nautilus_*-0ubuntu*.deb
nautilus -q


Compile Docky with Stacks under Ubuntu

Quick install (go Applications > Accessories > Terminal and put this line into):

wget -O - | bash -

Script code:

# install requires libraries
sudo add-apt-repository ppa:docky-core/ppa
sudo apt-get update -qq
sudo apt-get install -y bzr libgio2.0-cil-dev automake bzr mono-gmcs libmono-cairo2.0-cil gtk-sharp2 libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libgtk2.0-dev libnotify0.4-cil libgio2.0-cil-dev libtool intltool ca-certificates gnome-desktop-sharp2 libgconf2-dev monodevelop-nunit
sudo apt-get build-dep -y docky

# fix link in maverick (test)
if [ "$(lsb_release -c -s)" == "maverick" ]; then
   sudo touch /var/lib/apt/lists/ppa.launchpad.net_savoirfairelinux_ppa_ubuntu_dists_maverick_main_source_Sources

# build docky stacks
cd /tmp
bzr branch lp:~docky-core/docky/stacks
cd stacks
./configure --prefix=/usr
sudo make install
killall docky
nohup docky > /dev/null &

Install Docky Stacks (already compiled)


Compile xserver-xorg-video-ati-6.6.3 under hardy

apt-get install -y dpkg-dev autoconf libtool fakeroot
mv /etc/apt/sources.list /etc/apt/
cat <<EOF>> /etc/apt/sources.list
deb feisty main universe multiverse restricted
deb-src feisty main universe multiverse restricted
apt-get update
apt-get source xserver-xorg-video-ati
mv /etc/apt/ /etc/apt/sources.list
apt-get update
sudo apt-get -y build-dep xserver-xorg-video-ati
cd xserver-xorg-video-ati-6.6.3
fakeroot ./debian/rules prepare
fakeroot ./debian/rules patch

Install stress test

# install
sudo apt-get install -y stress
stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 600s

Compile CTCS

sudo su
cd /usr/src/
apt-get install dpkg-dev lm-sensors dialog build-essential
echo "deb-src hardy main universe multiverse restricted" >> /etc/apt/sources.list
apt-get update
apt-get source linux-image-$(uname -r)
ln -sf /usr/src/linux-2.6.24/ /usr/src/linux
# 1.3.0
wget -P /tmp
tar xzf /tmp/ctcs-*.tgz -C /tmp
cd /tmp/ctcs-*/
make all
# 1.3.1
wget -P /tmp
tar xzf /tmp/ctcs-*.tgz -C /tmp
cd /tmp/ctcs-
Syndicate content