Transferring files between an Android device and a Linux system via USB cable


Some newer Android devices do not offer regular USB-drive like connection. Instead they use the MTP protocol.

In order to easily transfer files between your Android device and your favorite Linux distro (yes, Debian!) with a USB cable, via MTP transfer protocol :
As root

apt-get install jmtpfs

Make sure your regular user belongs to the “fuse” group

usermod -a -G fuse username

(you need to logout and login again)

Connect your Android device to your computer with your USB cable, then as a regular user :

mkdir -p ~/Android_transfer
jmtpfs Android_transfer/

After a few seconds, files on the Android device should appear in the mount point 🙂

To properly unmount :

fusermount -u ~/Android_transfer

For more info, as always :

man jmtpfs
jmtpfs -h

Building a simple lightweight web kiosk system with Arch GNU/Linux

Update 29/03/2014 : This tutorial is currently outdated and may not work as intended. I made it before Arch switched to the systemd init system.

Optimized for maximum boot speed and read-only filesystem operation (especially for usb drives and other flash memory cards).

DISCLAIMER : As always, use this tutorial at your own risk!

Hardware used for this howto :
Mini-ITX motherboard with Pentium-M 1.5GHz (centrino)
512M DDR ram
Integrated graphics, sound and ethernet.
8G Compact Flash card with IDE-CF adapter.

Continue reading

How to build a tiny Linux MP3 Player System using Buildroot

How to build a tiny Linux MP3 Player System using Buildroot

Do you have an old spare computer that is rotting somewhere in your attic/cellar? Why not recycle it into a MP3 jukebox! 🙂

An old rig (Pentium 1/2/3-class) with 64Megs of RAM and USB connector will do!

No Harddisk required, a CDROM drive is optional in case that booting from USB doesn’t work.

We will design our (minimalistic but fully automated) Linux system so that a screen and a network interface aren’t even required.
Continue reading

How to create a bootable Linux USB drive using EXTLINUX

This howto will show us how to manually create a bootable USB (flash) drive using the EXTLINUX bootloader.

Unlike SYSLINUX who installs on FAT formatted drives, EXTLINUX can be used for EXT2/3/4 and even btrfs formatted drives.

EXTLINUX is easier to use than GRUB.

Why use the EXT2 filesystem? It is recommended for flash drives as it is a non-journaled filesystem so the write operations are reduced compared to other journaled filesystems.

See for more info.

Continue reading