Howto Setup iTunes-compatible Media server in Ubuntu
View original post
mt-daapd is a DAAP server that works with most POSIX compatible operating systems. It allows you to share your music collection over the local network using the same protocol iTunes uses, so real iTunes users may peruse your music.
Moreover, if your music is in more esoteric formats like FLAC, Ogg Vorbis, or Musepack, these can be converted on the fly to different formats (usually WAV), so that your entire music collection can be listened to by normal iTunes clients.
It also features a web interface that can be used to control components of the server, trigger database updates, and create playlists.
Preparing your system
First of all install ID3 tag support (so mt-daapd can read mp3 files)
sudo apt-get install libid3tag0
Now install mt-daapd using the following command
sudo apt-get install mt-daapd
Configuring mt-daapd
Configuration file is located at /etc/mt-daapd.conf, so make your changes there and test this file using the following command
sudo mt-daapd -f
Also you have to remember to add the Avahi Daemon to your startup scripts with the following command
sudo update-rc.d avahi-daemon defaults
that provides mt-daapd the Apple ZeroConf services (also known as “Rendezvous” or “Bonjour”). Otherwise your iTunes machines won’t be able to discover the mt-daapd server even thou the server itself is running properly.
To enable smart playlists you have to use the administration WebUI with http://localhost:3689.
Now it will prompt for the username and password as admin and your password setup in mt-daapd.conf file
Once it opens you should see the following screen

You can edit smart playlists under the smart playlists tab either directly as logic script or using the wizard (provided) to fill the rules for playlist generation point-n-click way.

Configuration setup screen

Filed under Ubuntu | Comment (0)
FTP Server setup with TLS (Transport Layer Security) on Debian
View original post
ProFTPD is a ftp server written for use on Unix and Unix-a-like operating systems, there is no support for native use under Microsoft Windows.
The TLS protocol allows applications to communicate across a network in a way designed to prevent eavesdropping, tampering, and message forgery. TLS provides endpoint authentication and communications privacy over the Internet using cryptography. Typically, only the server is authenticated (i.e., its identity is ensured) while the client remains unauthenticated.
FTP is a very insecure protocol because all passwords and all data are transferred in clear text. By using TLS, the whole communication can be encrypted, thus making FTP much more secure. This article explains how to set up ProFTPd with TLS on a Debian Etch server.
Install ProFTPd And OpenSSL
#apt-get install proftpd openssl
You will be asked a question:
Run proftpd from inetd or standalone?
This will complete the installation.
Configuring proftpd
Now you need to open /etc/proftpd/proftpd.conf and change UseIPv6 from on to off; otherwise you’ll get a warning like this when you start ProFTPd
#vi /etc/proftpd/proftpd.conf
UseIPv6 off
For security reasons you can add the following lines to /etc/proftpd.conf
DefaultRoot ~
IdentLookups off
ServerIdent on “Secure FTP Server”
and restart Proftpd using the following command
#/etc/init.d/proftpd restart
Creating The SSL Certificate For TLS
In order to use TLS, we must create an SSL certificate. I create it in /etc/proftpd/ssl, therefore I create that directory first:
#mkdir /etc/proftpd/ssl
Afterwards, we can generate the SSL certificate as follows:
#openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:
Enabling TLS In ProFTPd
In order to enable TLS in ProFTPd, open /etc/proftpd/proftpd.conf and find the section beginning with
<IfModule mod_tls.c>
vi /etc/proftpd/proftpd.conf
It should look like this:
<IfModule mod_tls.c>
TLSEngine off
</IfModule>
Modify it as follows
<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/log/proftpd/tls.log
TLSProtocol SSLv23
TLSOptions NoCertRequest
TLSRSACertificateFile /etc/proftpd/ssl/proftpd.cert.pem
TLSRSACertificateKeyFile /etc/proftpd/ssl/proftpd.key.pem
TLSVerifyClient off
TLSRequired on
</IfModule>
If you use TLSRequired on, then only TLS connections are allowed (this locks out any users with old FTP clients that don’t have TLS support); by commenting out that line or using TLSRequired off both TLS and non-TLS connections are allowed, depending on what the FTP client supports.
Restart ProFTPd using the following command
/etc/init.d/proftpd restart
That’s it. You can now try to connect using your FTP client; however, you should configure your FTP client to use TLS (this is a must if you use TLSRequired on).
If you’re having problems with TLS, you can take a look at the TLS log file /var/log/proftpd/tls.log.
Tags: install proftpd debian, proftp configuration with tls, proftp server with tls debian, proftpd debianinstall proftpd debian, proftp configuration with tls, proftp server with tls debian, proftpd debian
©2008 Debian Admin. All Rights Reserved.
.
Filed under Debian | Comment (0)
