Puppy Linux Blog

About





This Blog:
PRITLOG is an extremely simple, small and powerful blog system. 
Just drop Pritlog into your server and it starts running. No separate installation is required. The basic idea is derived from a similar app called PPLOG.

Stats

Users Online: 0
Hits: 0

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.



Author: admin -  Date: 16 Mar 2014 12:39
Category: music -  Visits: 1638

No Comments - Edit - Delete



Mediatomb and UPnP

Puppy linux and Mediatomb Media Server for DLNA and UPnP

The 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


Author: admin -  Date: 18 Dec 2011 04:39
Category: mediatomb -  Visits: 5759

No Comments - Edit - Delete



webcam screenshots

Using ffmpeg with webcam

take 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



Author: admin -  Date: 18 Dec 2011 04:25
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

Author: admin -  Date: 18 Dec 2011 04:21
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 computer

netstat -anp --ip

Author: admin -  Date: 18 Dec 2011 04:15
Category: netstat -  Visits: 2650

No Comments - Edit - Delete



Pages: [1] [2] [3]