Category Archives: Free Code

Setting Up Linux Media Server And Sharing Files Between Multiple Linux Machines

You can connect your multiple machines for sharing multimedia files through a centralized web server. In this tutorial you will learn how to set up Firefly Media Server on Ubuntu Server.

What is Firefly Media Server?

Firefly Media Server (formerly mt-daapd) is an free and open-source media server or daemon for the Roku SoundBridge and iTunes. It serves media files using Roku Server Protocol (RSP) and Digital Audio Access Protocol (DAAP).

Features of Firefly Media Server

  • Support for running on Unix/POSIX platforms
  • Support for running on Microsoft Windows and Mac OS X
  • Support for running on the Apple Inc. iPhone and iPod touch
  • Support for MP3, AAC, Ogg, FLAC, and WMA
  • Support for Roku SoundBridge via RSP
  • Support for on-the-fly transcoding of Ogg, FLAC, ALAC, and WMA
  • On Windows platforms, on-the-fly transcoding of WMA Lossless, WMA Pro and WMA Voice.
  • Web-based configuration
  • Support for user-created smart playlists
  • Integration with iTunes library including reading playlists
  • Supports serving streaming radio stations

Installing Firefly Media Server

Since we are installing on a Ubuntu Server, the installation is simple:

  • Open Linux terminal
  • Run the command sudo apt-get install mt-daap
  • Enter the user password

Configuration

Open configuration file and look for this line:

mp3_dir = /home/media/music

In this line you need to change to reflect the directory from where you will serve your media.

Here I created a new sub-directory in /opt called music.  Perform this action by this command:

sudo mkdir /opt/media

Now make that directory DAAP server readable by using this command:

sudo chmod ug+r -R /opt/media

Other than this there are many more options available in the configuration file like server name, password protection, port, extensions, codec types and many more. Few options are described below:

  • Servername: Name your DAAP server will broadcast. Default is Firefly RELEASE_NUMBER HOSTNAME.
  • Password Protection: Limit access of users to the DAAP server.
  • Port: You may use a port other than the default (3689).
  • Extensions: The file types to be served by DAAP server.
  • Valid Codectypes: Configurations for the format conversion.

Starting Daemon

Complete configuration file, go ahead and move your media files into the directory and start the server using this command:

sudo /etc/init.d/mt-daap start

With this running server you can fire up a DAAP enabled client, just like iTunes or Songbird. DAAP server installation is good for small internal network where you can share multimedia files. It requires a running Linux server.

Network Monitoring With Etherape

EtherApe is a graphical utility that allows you to see in real-time where connections are being made on your network, or between your network or computer and the Internet. If you are experiencing unexpected network activity on your computer or LAN and wish to see where the activity is occurring. Both “local” user and “root user” installations are created; in general you must use the root user installation to see all your network traffic.

sudo apt-get install etherape

Features:

  • Network traffic is displayed graphically. The more “talkative” a node is, the bigger its representation.
  • Node and link color shows the most used protocol.
  • User may select what level of the protocol stack to concentrate on.
  • You may either look at traffic within your network, end to end IP, or even port to port TCP.
  • Data can be captured “off the wire” from a live network connection, or read from a tcpdump capture file.
  • Live data can be read from ethernet, FDDI, PPP, SLIP and WLAN interfaces, plus several other incapsulated formats (e.g. Linux cooked, PPI).
  • The following frame and packet types are currently supported: ETH_II, 802.2, 803.3, IP, IPv6, ARP, X25L3, REVARP, ATALK, AARP, IPX, VINES, TRAIN, LOOP, VLAN, ICMP, IGMP, GGP, IPIP, TCP, EGP, PUP, UDP, IDP, TP, ROUTING, RSVP, GRE, ESP, AH, EON, VINES, EIGRP, OSPF, ENCAP, PIM, IPCOMP, VRRP; and most TCP and UDP services, like TELNET, FTP, HTTP, POP3, NNTP, NETBIOS, IRC, DOMAIN, SNMP, etc.
  • Data display can be refined using a network filter using pcap syntax.
  • Display averaging and node persistence times are fully configurable.
  • Name resolution is done using standard libc functions, thus supporting DNS, hosts file, etc.
  • Clicking on a node/link opens a detail dialog showing protocol breakdown and other traffic statistics.
  • Protocol summary dialog shows global traffic statistics by protocol.
  • Node summary dialog shows traffic statistics by node.
  • Node statistics export to XML file.
  • Scrollkeeper/rarian-compatible manual integrated with yelp.

WordPress Blogging From Android, iOS, BlackBerry, Nokia, WebOS

Making your website’s theme mobile compatible or installing any mobile theme for your WordPress site is good but you can also choose from different mobile apps available for WordPress blogging through smartphone.

WordPress for Android

You can use this for publishing new posts to your blog, responding to comments, getting notified and much more from you Android machine.

Website | Download

WordPress for iOS

iOS app lets you write posts, upload photos, edit pages, and manage comments on your blog from your iPhone, iPad, or iPod touch.

Website | Download

WordPress for BlackBerry

Post to your WordPress blog from your BlackBerry. Manage comments and media, upload videos and more with this BlackBerry native app.

Website | Download

WordPress for Nokia

Nokia app allows you to edit your existing blog content, add new posts and pages, manage comments, and more — directly from your S60 or Maemo-powered Nokia device.

Website | Download

WordPress for WebOS

WebOS represents a different way to blog. It uses Sliding Panels that makes managing existing content on your blog intuitive and powerful.  You can use visual editor for posting content to your blog.

Website | Download

Should I Change My Mind For New Samsung Galaxy Note Sporting 5.5 Inch Screen

I am not sure whether I should change my mind about Samsung’s new Galaxy Note sporting a 5.5-inch screen. It is inconvenient for holding in one hand or against your face but size doesn’t matter if the stuff you carry makes you keep other stuff aside. Likewise hanging a laptop on your shoulder, holding a tablet in your hand, and still keeping a mobile in your pocket is a bad idea.

Nexus 7 is not a subject related to the failure of Google Plus. Google Plus was better than Facebook, it was well-integrated, fast, and really open (unlike Facebook) but it failed because it was not having the critical mass that Facebook already gained. The same thing happened with Facebook’s Email service. This time Facebook was lacking critical mass, unlike Gmail. But quoting this we cannot say that Facebook’s Email service was bad or Google doesn’t know how to work with social networking.

Nexus 7 and Samsung’s new Galaxy Note both work on Android 4.1 Jelly Bean. But I suppose Google knows better working with Android than Samsung.  Samsung was only Android’s marketing vehicle before the existence of Nexus 7.

Android is Google’s baby that Google adopted keeping in mind all its services that is why using Android on any machine prompts you to log in with your Google Account so that you can get connected with Google services hence connecting & using your Google account becomes most useful and important activity on any Android machine. I have used other Android machines and a few of them like Sony Ericsson Xperia fail to connect with Google account and you get confused between hardware and software conflicts. So why not use Nexus 7 where everything comes to Google using Google’s machine for Android is a better option as it would be working better than anything else.  So I’ll be waiting till October for Nexus 7 release in India.

Using Google To Search Within A Specific Website

You may use Google to search certain keywords within a specific website. This can be done by writing Site: followed by website’s address and Keywords which you like to search. For Example:

If you want to search Extinction List in Sangkrit.Net : –

Site:sangkrit.net Extinction List

  • Press Enter

Where Site: is used as a prefix. sangkrit.net is the name of the site. and Extinction List is the keyword you are searching for.

Google Can Convert Currencies

You may use Google for converting currencies. For Example :-

If you want to convert 500 Rupees to US Dollar :-

500 INR in USD

  • Press Enter

This would display the converted amount : –

500 Indian rupees = 9.10100 U.S. dollars

In the same way you can convert USD to YEN, EUR to INR etc.etc.

One Command LAMP Server Installation

Installing LAMP Server

  • Open your Linux Terminal.
  • Type: sudo apt-get install lamp-server^
  • Press Enter

Checking the Installation

  • Open a web browser
  • Type: http://localhost/
  • If your browser shows the message: “It Works” then you have successfully installed LAMP

Tasksel Method

Other than the above given method you may use the Tasksel method for installing LAMP server. Use following given commands on your Linux Terminal:

sudo apt-get install tasksel
sudo tasksel install lamp-server

PhpMyAdmin

If you need to install PhpMyAdmin for managing your website’s database:

sudo apt-get install phpmyadmin

iGoogle, Google Video, Google Mini & Others Don’t Exist On Google Any More

Google is removing the services which are not core to its business. Popular services like iGoogle, Google Video, Google Mini don’t exist anymore. Following is the listing  of services that Google has successfully removed:

  • Knol
  • Sidewiki
  • Desktop
  • Fast Flip
  • One Pass
  • Aardvark
  • Notebook
  • Google Pack
  • Google Wave
  • Google Gears
  • Image Labeler
  • Patent Search
  • Google Related
  • Subscribed Links
  • Picasa for Linux
  • Google Web Security
  • Google Friend Connect
  • Google Bookmarks Lists
  • Google Search Timeline
  • Different Slide Products
  • Google Flu Vaccine Finder
  • Google Maps API for Flash
  • Google Sync for BlackBerry
  • Mobile web app for Google Talk
  • Picasa Web Albums Uploader for Mac
  • Picasa Web Albums Plugin for iPhoto
  • Renewable Energy Cheaper than Coal (RE<C)

Ubuntu Linux: CD-Record Has No Permission To Open Device

If you are receiving common Linux error: cdrecord has no permission to open the device:

  • Open Terminal
  • Type: sudo chmod 777 /dev/scd0
  • Replace “/dev/scd0” with your device

Remember: chmod 777  grants full permission to a folder. The 777 mask indicates that read, write, and execute permission given to all users.

Searching A Specific File Format In Google

On Internet there are millions of files with different formats. Google recognizes them and hence you may search web for a specific file format. Likewise if you want to search certain book in PDF format then you should type the book’s name (in double quotes) followed by filetype and then book’s format in Google’s search box as show in the following given example:

Example: If you want to search book After The Software Wars in PDF format on world wide web:

Type as show below in Google’s search box

“After the Software Wars” filetype:PDF

I congratulate you Mark Zuckerberg for being number one now on planet earth !

Finally facebook has removed google from its global number one rank slot. It is true TODAY that facebook is number one. It will remain so further or not is of lesser importance. Anyone likes it or not is very personal but facebook is now top-most asset formation on planet earth built almost individually by a proficient programmer’s being devotionally focused for what Steve Jobs often praised Mark Zuckerberg. I congratulate you Mark Zuckerberg for being number one on planet earth. You are excellent.