Linux on Nspire
How to install Debian on a TI-Nspire CX —
THESE INSTRUCTIONS WILL ONLY WORK ON TI-OS 3.6 OR LOWER!!!
These instructions are written for use on a computer running Debian (If you don’t have a computer running Debian you can use Virtual Box). Steps with a “~” in front will take a while. If you use a Raspberry Pi, you can skip installing qemu-user-static and binfmt-support, and skip step 5
You will need:
- A TI-Nspire CX running TI-OS 3.6 or lower
- A flash drive. The flash drive should ideally be at least 2GB, but 1GB might work.
- A Mini-B OTG USB cable.
- A powered USB hub if you want to plug anything else into the calculator.
- Install Ndless. Ndless lets you run 3rd party programs on your TI-Nspire.
- Prepare a flash drive. Use gparted (or mkfs.ext4) to format the drive as one ext4 partition.
- ~ Install programs on host. “
sudo apt-get install qemu-user-static binfmt-support debootstrap“. These programs let you create and setup a rootfs on one computer. - ~ Debootstrap. Mount the flash drive using “
sudo mount /dev/sdbX /mnt” substituting sdbX for your flash drive. Now run “sudo debootstrap --arch=armel --foreign wheezy /mnt“. This command will install a Debian rootfs onto the flash drive. - Copy qemu-arm-static. Run “
sudo cp /usr/bin/qemu-arm-static /mnt/usr/bin” to copy the arm emulator. - ~ Finish debootstrapping. Change into the new rootfs with “
sudo chroot /mnt“. This will automatically run the arm binaries in the qemu emulator. Finish the job with “/debootstrap/debootstrap --second-stage“. This will install all the programs on the rootfs. - Set a root password. Run “
passwd” to set a root password. - ~ Set up apt-get. Run “
wget http://codinghobbit.no-ip.org/uploads/TI-Nspire/linux/sources.list -o /etc/apt/sources.list” to get the list of sources for apt. Update the sources with “apt-get update”. - Install any extra programs. You will need to download any extra programs you want now, because the calculator doesn’t have internet. Run “
apt-get install -d <package names>” to download the packages. The “-d” is important, otherwise it will try to install the packages as well. You will finish installing the packages when booted into Debian on the calculator. I recommend making a file with all the installed package names so you don’t forget what ones you downloaded. - Install the kernel and linuxloader2. Download these two files: Kernel and linuxloader2 and send them both to your calculator, inside a folder called “linux”. Rename the kernel file to “zImage.tns”.
- Set up boot script. Add “
ext.ll2 linuxloader2” to the end of ndless.cfg.tns (in the ndless folder). This is easily done using nTxt. This line allows you to use a script to boot linux, and saves a whole lot of typing every time you want to boot linux. Download start_usb.ll2.tns and put it into the linux folder, along with zImage.tns and linuxloader2.tns. - ~ Boot! Make sure Ndless is installed and the flash drive is plugged into the calculator and run start_usb.ll2.tns. If all went well Debian should be booting! It takes a while (~2 minutes) to boot, so be patient.
- ~ Finish installing packages. Log in as root, and “
apt-get install <package names>” for any packages you downloaded in step 8. - Add users. Use “
adduser <username>” to add any users to the system.
Done! You have successfully installed a full installation of Debian onto your calculator.
(Credit for linux on the calculator goes to tangrs on omnimaga)
Please leave comments with any suggestions or things I might have missed.
Categorised as: Calculator | Debian | Linux | Nspire | Tutorial