DSLinux
DSLinux, a linux that runs on a Nintendo DS Lite, is the nicest fiddle I’ve found in many years. Here some links:
- DSOrganize - An Organizer for the DS.
Recepie: Remove login, go straight to shell
In Order to remove the login-prompt, i’ve compiled linuxds with the getty in busybox and changed vendors/Nintendo/SUPERCARDSD/inittab (of course because I have a SUPERCARDSD) to:
tty1::linux:/bin/getty -n -l /bin/sh 38400 tty1
With this option set, I get a root-prompt as soon as I boot the linuxds.
Recepie: Adding hosts to hosts file
This is for sure not the nice way to do things, but it works: I’ve edited vendors/Nintendo/SUPERCARDSD/Makefile and changed the line:
$(ROMFSINST) -s /$(FATFS)/linux/etc/hosts /etc/hosts
to
$(ROMFSINST) /etc/hosts
and created the file vendors/Nintendo/SUPERCARDSD/Makefile with the 127.0.0.1 kira-entry for my ds and my other hosts below.
Recepie: Adding passwordless ssh connecticon from the DS to a server
First, generate a new RSA key with a box running openssh with ssh-keygen -t rsa and save into a file called id_rsa. Use no passphrase if you want passwordless connection. Then add the contents of the id_rsa.pub to the bottom of the .ssh/authorized_keys-file of the server. Then i’ve used ftpget on the DS to get the id_rsa file from my laptop. Now the key needs to be converted from openssh to dropbear format with: dropbearconvert openssh dropbear id_rsa id_rsa-conf, so you end up with a file id_rsa.conf. With this file you can create a connection with ssh -i id_rsa-conv -l user host.