Create your own Ludobox on a Raspberry Pi
Download the Raspbian Linux image
Copy the image to a SD card using the dd
command
ββββsudo dd bs=4M if=2017-01-11-raspbian-jessie-lite.img of=/dev/mmcblk0
ββββsync
Enable SSH on your Raspberry Pi (add an ssh
file to the /boot
disk )
ββββsudo touch /media/MY_CARD_ID/boot/ssh
MY_CARD_ID
should be replaced by the partition ID of your card.
Read also the WIFI instructions from Raspberry Pi's official documentation
You need to edit a WIFI config file called wpa_supplicant.conf
to add the password and name of your WIFI network.
ββββsudo nano /media/MY_CARD_ID/etc/wpa_supplicant/wpa_supplicant.conf
hint: MY_CARD_ID
should be replaced by the ID generated by the system when you mounted the SD card.
Add your WIFI network info to wpa_supplicant.conf
ββββnetwork={
ββββssid="My WIFI"
ββββpsk="mypassword"
ββββkey_mgmt=WPA-PSK
ββββ}
Test your wifi connection
ββββping ludobox.net
hint You can setup multiple networks - see this thread
OK we got the WIFI now
There is two main ways to connect and input commands into a machine like Raspberry Pi :
Read also the SSH instructions from Raspberry Pi's official documentation
Find the Raspberry Pi's local IP on your router (sth like 192.169.1.XX
)
Connect to your pi
ββββssh root@192.169.1.XX # your IP
The default password is raspberry
Update everything
ββββsudo apt-get update && sudo apt-get upgrade
Install Python, git and some softwares used to build dependencies
ββββsudo apt-get install build-essential git python-pip python-dev
Configure your pi properly
Read also the raspi-config instructions from Raspberry Pi's official documentation
ββββraspi-config
Hint You can expand the size of your filesystem to occupt the whole space of your card.
Fix language issue
ββββexport LANGUAGE=en_GB.UTF-8
ββββexport LANG=en_GB.UTF-8
ββββexport LC_ALL=en_GB.UTF-8
ββββlocale-gen en_GB.UTF-8
ββββdpkg-reconfigure locales
Congrats ! Your Pi is now ready
Install Python virtualenv
(why?)
ββββsudo apt-get install python-virtualenv
Create a folder where you will install everything
ββββmkdir MY_LOVELY_LUDOBOX_FOLDER
hint replace MY_LOVELY_LUDOBOX_FOLDER
by your own folder name
Enter the new folder
ββββcd MY_LOVELY_LUDOBOX_FOLDER
Create your virtual environment (called venv
)
ββββvirtualenv venv
Activate your virtual environment
ββββsource ./venv/bin/activate
Download the code using git
ββββgit clone https://github.com/ludobox/ludobox
Install the software
ββββcd ludobox
ββββ./bin/install
Yay ! You have now installed your Ludobox properly
Just go into the folder where you did the install.
ββββcd MY_LOVELY_LUDOBOX_FOLDER
Activate your virtual environment
ββββsource ./venv/bin/activate
Go into the code folder
ββββcd ludobox
Start your box
ββββludobox start
You can access your box by using the local IP address displayed on the screen.
WARNING! You have to be connected to the same WIFI network as the box to be able to access it via this IP address.
Enjoy !
Click on the Download button in the Navbar. You can now see a list of all games available in the Ludobox database on box.ludobox.net.
To download the game you like into your own box, just click on the Download link.
Once the game has been downloaded to your box, it will be shown in yellow.
You can now start making your own copy or fork
Download the blueprints to laser cut the box.
Customize as you wish !