raspberry pi ftp server (vsftpd)

assuming raspbian
– apt-get install vsftpd
By default vsftpd is configured for anonymous access with read-only permissions. We’re going to change things so that it requires you to authenticate with a local user. Let’s open the configuration file.

sudo nano /etc/vsftpd.conf

We want to change or uncomment the following values.

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
chroot_local_user=YES
user_sub_token=$USER
local_root=/home/$USER/ftp

After that restart the vsftpd service. Now we need to create a couple folders in your local user’s home folder. The ftp folder will be the root when you connect. The way vsftpd works, the root is not allowed to have write permissions on it, so we’ll create a sub-folder inside the root called files which our local user will be allowed to write to. This is where you’d upload/download files from with an FTP client.

mkdir /home/andreas/ftp
mkdir /home/andreas/ftp/files
chmod a-w /home/andreas/ftp

Now you should be able to connect to your from any FTP client and start uploading/downloading files.

iPhone under Linux

inspired by this site:
http://blog.xenodesystems.com/2014/03/how-to-managesync-your-ios-7-device.html

yum -y install kernel-headers
yum -y install kernel-devel
yum groupinstall “Development Tools”
yum groupinstall “Development Libraries”

yum install gcc rhythmbox libgpod ifuse gvfs-afc libtool libusb libusb-devel libplist

yum install libimobiledevice

Now reboot without iDevice connected!

it should now be a massive USB device
Shotwell should see the pictures
Rhythmbox should sync and manage music

raspberry pi magic

Raspberry Pi is magic!

So far it does:
– MPD server (using my media center as SMB share) connected to my speakers (the audio is not that great)
– DNS resolver (http://blueeyedcreature.net/blog/?p=901)
– home automation server (using fhem)
– Airport style music receiver (shairport)
DLNA renderer (for plex?)
– I even used it as a status screen but I didn’t like the giant screen in my home – http://blueeyedcreature.net/blog/?p=811

but I want more!
Continue reading

steam/plex/htpc box 2015

So I am back with Ubuntu 14.04 LTS for the moment because I figured out what was wrong with audio all this time. (multiple things)
can’t wait for the next ubuntu LTS or will go back to Fedora, I swear… the lack of proprietary driver support is the only thing I dislike there. the rest is awesome.

1) Pulseaudio is just shit without a proper systemd implementation (works like a charm for fedora 23)
2) HDMI passthrough has to be specifically enabled in plex settings
3) Nvidia prorietary driver needs to be used for proper hdmi audio passthrough
4) pulseaudio fix needs to be uncommented in /usr/bin/plexhometheater.sh to disable it
5) alternatively apt-get remove pulseaudio < -- after setup, will try again in April 2016 6) HDMI passthrough on your amplifier is counter-productive / sets itself to the wrong source when you sleep the media center / wake without amplifier enabled 7) HDMI-CEC needs more work, now it is just fuckign things up when enabled so DISABLE for now (once I have playstation 4, chromecast and more HDMI stuffz I can re-enable it. after a lot of testing and playing around with it I can now watch AAC, DTS and Dolby surround 2, 5 and 7 channels - everything works and survives reboots. Continue reading

DNS caching resolver for home

Preface: the fortigate I am using at home sucks at DNS – in fact it sucks at many things when you are used to a FritzBox – but I am stubborn and I will do this because I work with fortigates and want the learning experience. (and because I am stubborn)

somehow the big models can all do forward DNS services but the FortiWifi40C somehow can’t even act as a DNS gateway / proxy without bringing the internet experience to a grinding halt here.
(I run a small network, about 5 devices and 4 mobiles and if I can feel it I don’t want to know what a small office will experience…)
But: I have this Raspberry that receives audio via zeroconf and is connected to the network and to my amplifier.
Why not have it act as a caching DNS resolver, too?
Continue reading

fedora 21

so after 7 years I decided to give fedora another try
after ubuntu kinda lost its advantage by being
– as complicated as windows (or windows stopping being annoying?)
– requiring me to tweak it for hours till I like it turns out fedora is no different – it’s either Apple or suck it up and customize :)
– just too old / ancient package manager (as if I know anything about that)

anyway – let’s try it!
Continue reading