If on
ubuntusudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
Debiansudo nano /etc/apt/sources.list
deb http://[mirror]/debian/ oldstable main
sudo apt-get update
In the above steps we gain access to libdb4.8 which at this point is safest as libdb5.1 won't work with wallets built with 4.8
Now the process should be the same for both distro's.
sudo apt-get install build-essential libtool autotools-dev autoconf libssl-dev libboost-all-dev libdb4.8-dev libdb4.8++-dev libboost1.54-all-dev libminiupnpc-dev libqt5gui5 libqt5core5 libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev libqrencode-dev
Debian users may need to use libboost1.49-all-dev rather than libboost1.54-all-dev but the above commands should install all the required prerequisites for both the daemon and the QT.
In order to actually make the coin it depends on if its based on the bitcoin 0.9 codebase or the 0.8 base.
If 0.9
./autogen.sh
./configure
make
if 0.8
cd src/
make -f makefile.unix USE_UPNP=1 USE_IPV6=1 USE_QRCODE=1
you can also use the j flag in order to speed up building of the project. Here we assume I have access to 4 cores and am building bitcoin for source
./autogen.sh
./configure
make -j4
Here we assume I only have access to 2 cores and am using litecoin
cd src/
make -j2 -f makefile.unix USE_UPNP=1 USE_IPV6=1 USE_QRCODE=1