Install Turnkey Linux on the Raspberry Pi B

by | Dec 5, 2016

Installing Turnkey Linux on the Raspberry Pi B



Get a copy of Raspbian Wheezy

Getting a copy of Wheezy is a must, this project will not work correctly on Jessie.  The newest version of Wheezy at time of writing this is July 2013.

Burn the .img file to your SD card, and fire up your Raspberry Pi.


Next do some initial configuration.

Wait for the raspi-config menu.  Once loaded, do the following…

Expand your SD card.
Set your Locale, Time-zone, etc.
In the Advanced menu, set your gpu ram to 16mb.
In the Advanced menu, enable SSH.
In the Overclock menu, bump to Modest, or whatever value you feel comfortable with.
Now Finish, and allow the Raspberry Pi to Reboot.


Set up a Root Password

Set up a root user password by entering the following command.

sudo passwd root

Make sure you pick a strong password.  Enter it twice to confirm.


Convert to Turnkey Linux

Next lets install Turnkey Linux using the TKL_Patch.  Thank you to ghoulmann & Mort’z

We are going to need Root access for this.

sudo su

Clone the git repo to the Raspberry Pi

git clone /tmp/tkl

Next lets compile the Patch.

cd /tmp/tkl/

Next lets turn TurnKey into a system path.

tklpatch-apply / ./core/

This may take a while…  Once complete reboot.


Logging in to Turnkey.

Once the reboot is complete, you will be prompted to login again.  Login with

(your password)

Set up our Network Interfaces.

On the initial install, we will be missing our Network Interfaces. At the prompt enter the following…  (Assuming your logged in with root.  If not, prefix the following command with ‘sudo’)

nano /etc/network/interfaces

This will likely give you a blank file.  If you want to use your DHCP Server for the IP address for your Server enter the following…

auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

If you would like to add a static IP address to your Turnkey server (recommended) enter the following, but set to your networks configuration…

auto lo eth0
iface lo inet loopback
# Set the following to your network settings
iface eth0 inet static

When finished, press Ctrl+x, y to conform save and exit.  This should set up your Network adapter to work in Turnkey.

Lets give this a reboot, and let the system come up again.



Logging in to Webmin

On initial installation Webmin doesn’t run.  We need to start the service.  Start your web browser and enter the following URL.

http://(your ip address):4200

You will be prompted for your login information.  You can log in with your pi username and password.  Once logged in, enter the following.

service webmin start

Once completed, you can now log into the Webmin interface by entering the following in your browser.

http://(your ip address):12321


Now you should be logged into the Webmin panel.  Go ahead and have fun!