compile

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Squid: Compile with SSL support under Debian Wheezy / Jessie

wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/scripts/master/compile.squid.with.ssl.support.sh -O - | bash -s

#!/bin/bash

# add Debian Wheezy backports repository
cat <<EOF> /etc/apt/sources.list.d/wheezy-backports.list
deb http://ftp.de.debian.org/debian wheezy-backports main
deb-src http://ftp.de.debian.org/debian wheezy-backports main
EOF
 
# 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 http://dl.panticz.de/squid/squid3-3.4.8_enable_ssl.diff -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/squid3.pid' '--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'

Links
http://ubuntuforums.org/showthread.php?t=2171061

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
wget http://mirrors.kernel.org/ubuntu/pool/universe/b/byacc/byacc_20130925-1_i386.deb
dpkg -i byacc_20130925-1_i386.deb

git config --global color.ui auto

# check out source
git clone git://git.ipfire.org/ipfire-2.x.git

ln -sf /bin/bash /bin/sh

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

HowTo: Compile Nautilus

Install compiled 64bit version
wget http://dl.panticz.de/nautilus/nautilus_3.2.1-0ubuntu3.1_amd64.deb
sudo dpkg -i /tmp/nautilus_3.2.1-0ubuntu3.1_amd64.deb
nautilus -q

Automatic installation script
wget http://dl.panticz.de/scripts/rebuild.nautilus.sh -O - | bash -

#!/bin/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

Links
http://www.omgubuntu.co.uk/2011/12/how-to-move-nautilus-navigation-buttons-back-to-the-left
http://ubuntuforums.org/showthread.php?p=11501676#post11501676

Compile Docky with Stacks under Ubuntu

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

wget http://www.panticz.de/sites/default/files/Docky/compile.docky.stacks.sh.txt -O - | bash -

Script code:
#!/bin/bash

# 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
fi

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

Install Docky Stacks (already compiled)
http://www.panticz.de/Download-and-install-Docky-Stacks-under-Ubuntu

Links
http://wiki.go-docky.com/index.php?title=Installing
http://www.omgubuntu.co.uk/2010/06/stacks-for-docky-looks-like-a-dream-works-like-one-too/

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/sources.list.org
 
cat <<EOF>> /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ feisty main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu/ feisty main universe multiverse restricted
EOF
 
apt-get update
apt-get source xserver-xorg-video-ati
 
mv /etc/apt/sources.list.org /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
faker

Install stress test

# install
sudo apt-get install -y stress
 
stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 600s
 
# LINKS
http://packages.ubuntu.com/saucy/stress

Compile CTCS

sudo su
 
cd /usr/src/
apt-get install dpkg-dev lm-sensors dialog build-essential
echo "deb-src http://archive.ubuntu.com/ubuntu 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 http://downloads.sourceforge.net/sourceforge/va-ctcs/ctcs-1.3.0.tgz -P /tmp
tar xzf /tmp/ctcs-*.tgz -C /tmp
cd /tmp/ctcs-*/
make all
 
# 1.3.1
wget http://downloads.sourceforge.net/sourceforge/va-ctcs/ctcs-1.3.1-pre1.tgz -P /tmp
tar xzf /tmp/ctcs-*.tgz -C /tmp
cd /tmp/ctcs-
Syndicate content