-
Notifications
You must be signed in to change notification settings - Fork 12
Customizing Cubietruck_Debian
usernamenumber edited this page Nov 8, 2014
·
4 revisions
Cubietruck Debian is a customized version of Debian for the Cubietruck created by Igor Pečovnik. See also, Cubian, a similar (and possibly more viable since it may have more people behind it) project.
It is not necessary to rebuild a Cubietruck_Debian image to do simple customizations like adding and modifying config files. Just do the following (in Linux):
- Download one of the prebuilt images from here
- Unzip the file
- You should now have a file like
Cubietruck_Debian_2.8_wheezy.raw
(you can delete the zip now) - You are now ready to mount and modify the image:
# Create a loopback device that points to the first partition
# (the -o offset is essential!)
$ sudo losetup -v -f -o 1048576 Cubietruck_Debian_2.8_wheezy.raw
Loop device is /dev/loop0
# Mount the loop device
$ mkdir mnt
$ sudo mount /dev/loop0 mnt
You should now be able to modify the filesystem in mnt/
. When you are finished, just sudo umount mnt
and then write the image to an SD card with dd bs=1M if=Cubietruck_Debian_2.8_wheezy.raw of=/dev/NAME_OF_SD_CARD
- It may be possible to use the build script in this project's repo to create an Ubuntu-based image. See this issue for details.