MPD + MPC
These are the two programs of choice when playing and serving large music collections.I am currently up to almost 9,000 songs and counting.
This post will describe my setup and config files.
Category: music - Visits: 1638
No Comments - Edit - Delete
Mediatomb and UPnP
Puppy linux and Mediatomb Media Server for DLNA and UPnPThe following is for Mediatomb Version 12
I usually create .pets for easy removal if unwanted
autoconf > 2.6 is required
http://ftp.gnu.org/gnu/autoconf/
untar
./configure
make
make install DESTDIR=/root/test/autoconf-2.65
Download Mediatomb:
svn co http://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb mediatomb
cd to mediatomb directory and:
autoreconf -i
./configure
make
make install DESTDIR=/root/test/mediatomb
Install mediatomb.pet
make sure /root/.mediatomb/config.xml points to /usr/local/share/mediashare not /usr/share/mediatomb
in console:
mediatomb
it should tell you which port it's running on.
access with localhost:[port]/ in your browser
For great trancoding tips, see: http://mediatomb.cc/dokuwiki/transcoding:transcoding
mp3's are playing, video is choppy
Category: mediatomb - Visits: 5759
No Comments - Edit - Delete
webcam screenshots
Using ffmpeg with webcamtake one image per second
-r 1
to take images for 3 seconds
-t 3
so this will give you 3 jpegs in your root directory at vga resolution
Code:
ffmpeg -y -r 1 -t 3 -f video4linux2 -s vga -i /dev/video0 ~/camshot%d.jpeg
similarly here is a cheap way to capture webcam video:
rxvt +sb -bg orange -geometry 80x2 -e ffmpeg -y -f oss -i /dev/audio -f video4linux2 -s qvga -i /dev/video0 ~/a.avi
---------------------------------------
Using mplayer with webcam
changing -frames to different values changes number of screenshots.
mplayer -fps 1 tv:// -tv driver=v4l2:device=/dev/video0:width=320:height=240:outfmt=rgb24 -frames 5 -vo jpeg
Category: ffmpeg - Visits: 3201
No Comments - Edit - Delete
Telnet and email
Open a connection from your computer to your mail server.Code:
telnet mail.domain.ext 110
You should receive a reply like:
Trying ???.???.???.???...
Connected to mail.domain.ext.
Escape character is '^]'.
+OK ready
Then log in:
Code:
USER username
This should give you:
+OK Password required for userName.
Now give your password:
Code:
PASS password
Should yield:
+OK userName has ? visible messages (? hidden) in ????? octets.
To see a list of your emails awaiting collection use the LIST command, this will also show you the id number of your messages (e.g. 1 or 2 etc.)
To view the contents of an email type RETR + the id number of the message (e.g RETR 1).
To delete a message use DELE + the id number of the message (e.g DELE 1).
To leave your mailbox and close the connection use QUIT
Category: email - Visits: 4206
No Comments - Edit - Delete
finding what ports are used
Use the following to find out what ports are being used on linux computernetstat -anp --ip
Category: netstat - Visits: 2650
No Comments - Edit - Delete