My Top 5 Applications List

Frequently Use Application

Application that I frequently use  [Sorry I use Mac OS + Elementary os so I have got nothing for windows user (what windows user can do is find the alternative application (good source : alternativeto.net) ) ]

 1. Alfre
Alfre
Image 1.1 – Alfre

This is a Mac Software and comes under utility software (its a user experience enhancement app) and I think in my view is the quickest way to launch app without using mouse or touch pad best of all its free  🙂 . Just shortcuts + application name -> launch. simple as that. Once you get use to with this app I bet you will never want to launch application from application folder or even from dock!. 😀

For more information go here (link)

 2. Google Chrome (Web application OR Web apps)
Google-Chrome
Image 1.2 – Google Chrome

While I run Google Chrome a lot its now what I use most. Its web application that I use most [Internet 🙂 ] , in other word its just a best gate way or medium to use web application out there. Chrome is based on Open Source application Chromium and is supported by Google and its free too.

I use internet for many purpose so customising the browser is must for me. While Google Chrome have these like creating application shortcuts for web app it does not work in Mac because of application restriction in Mac OS [it only works in Windows and Linux System]. But even if you have option to create a shorts for your web apps  you can’t customise according to your web apps rather you customise your browser which I think is disadvantage of Google Chrome and I don’t think there are any other browser which will allow us to do that either (or I don’t about such browser).

But there is work around for such thing (Sorry its only for Mac user).

For Mac user: To make Google Chrome application user this script (download), You will need to download a suitable icon for each app. Good source of icon can be found here.

Now option key + space, this will go to search bar, type terminal and enter. Then run

 sh /path/to/script/makeapp.sh
NoticeNote: I found this script on web so I don’t know who wrote this script. No credit taken!

This will create a web app in application folder and you can customise it accrodingly like installing necessary extension.

NoticeNote: if you don’t want to transfer all the settings from your old browser don’t use google chrome sync

The only downside of doing this is it will take some space but I don’t think its a issue any more 🙂 . From here its up to you to create what ever web app link you want! (my favorites web apps are CodeAcademy, Feedly, Stumbleupon, Grooveshark, Gmail, Lumosity, Facebook  and WordPress). You can even use this to use for Openmediavault web management and Plex Web management.

For more information (here)

 3. Cyberduck
Google-Chrome
Image 1.3 – Cyberduck

Cyberduck is application that I use to connect a remote server. It supports SSH, FTP, WebDAV (HTTP/SSL), Google Drive, S3 -Amazon and much more. This application also runs in windows system too. It has good User Interface and easy use. Again, best of all its open source and its free.

For more information & download (link)

 4. BetterTouch Tool
BetterTouch Tool
Image 1.4 – BetterTouch Tool

BetterTouch Tool is a utility application. It enhance user experience. This will give you feature that can be found in KDE / Gnome and even Windows Desktop Environment. It gives your option like custom shortcuts for windows size (see image 1.5). This application can utility the your multi touch touch pad as well as keyboard shortcuts and its free.

BTT - Windows
Image 1.5 – BetterTouch Tool Preview

For more information & download (link)

 5. Onyx
onyx
Image 1.6 – Onyx

Onyx is a all in one Mac os utility application. This application does many things to make your Mac os as healthy as possible. Fix disk problem, refresh index and enable/disable hidden attributes of Mac os. And its free application.

For more information & download (link)

End of Frequently Use Application
Advertisements

Debian As DNS and DHCP Server

DNS and DHCP Server Setup – Debian

1358155333_configure-debianDebian Operating System (OS) is free and open source OS (download). It have been around for a while now almost two decade (initial release on 1993). It’s currently at its 6th version also know as  “Squeeze”. This OS is very stable as so many of its derivatives OS are flowering and gaining more popularity. One of the example would be “Ubuntu” (download).

1. To setup Debian as DNS server, first we need to update our application database

apt-get update & apt-get upgrade

 Now I will install aptitude application. This is a advance version of apt-get and has much more function.

apt-get install aptitude

After this, we need to install bind9. This will act as DNS server.

aptitude install bind9 bind9utils

Again, we need to edit name.conf.option to assign DNS.

nano /etc/bind/named.conf.options

options {
directory “/var/cache/bind”;

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0’s placeholder.

forwarders {
// Google Public DNS
//8.8.8.8;
//8.8.4.4;

// OpenDNS
208.67.222.222;
208.67.220.220;

//New ip

};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};

Make that option look like this. I am using OpenDns. It gives you more option to configure your network like blocking adware and other domain (Only downside is that you should have static ip or if you have dynamic ip then you have to install opendns ip updater software for more info go here)

OR you can use Google DNS, remove forward slash and put that infront of 208.67.222.222, 208.67.220.220.

Just to be sure which DNS is fast you can use. For Mac & Windows user : Namebench (download). This application can identify which DNS is faster for you and you can use that DNS ip in this configure file. Just add that ip below New ip.

NoticeNote: This is very basic DNS settings, you can also assign more advance DNS settings like assigning zones but I am not going to detail in here. For more info go to (link)

2. Setting up DHCP server, we need to install isc-dhcp-server

aptitude install isc-dhcp-server

Now we need to configure its setting

nano /etc/dhcp/dhcpd.conf
# option definitions common to all supported networks…
option domain-name “[your server domain name]“;
option domain-name-servers [your server ip];
default-lease-time 6000;
max-lease-time 7200;
allow unknown-clients;
# DHCP server to understand the network topology.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200; #Range of client’s IP addresses: 100 to 200
option routers [Your router ip]; #usually its 192.168.0.1 or 192.168.1.1
filename “pxelinux.0”;
next-server [Your Server ip];
option subnet-mask 255.255.255.0;
}

After that give a domain name and server ip. Also you can see that I have given my ip range starting from 100 and ending 200.  You can change that according to your need.

Restart dhcp server

/etc/init.d/isc-dhcp-server restart

You server will start assigning ip once client request it. I think one more thing that you need to do is, you need to change your router settings and change it to forward ip to dhcp server but every router.

NoticeNote: Any thing between [..] should be replace including [ ].
End of DNS and DHCP Server Setup – Debian

Remote Server Access (LXDE + VNC)

LXDE Desktop + VNC For Remote Server Access – Debian

LXDE Desktop is very light weight desktop environment for linux. For more information goto here. The main reason I choose this desktop environment is because of its simplicity as well as light weight desktop environment. LXDE will provide all the functionality with clean interface for remote server management.

snap
Image 1.1 – LXDE Desktop Environment
apt-get update & apt-get upgrade

Now installing few LXDE Core files and TightVNC Server

apt-get install xorg lxde-core lxde-icon-theme tightvncserver

Run TightVNC Server to create its config file

tightvncserver :1

Now it will ask you to enter a new password. Its a password for your VNC client. And again it will ask if you want to give a password for view only mode. Its up to you.

Now Kill TightVNC process

tightvncserver -kill :1

Run this command to add few extra line in xstartup files

nano  ~/.vnc/xstartup

Now add this line at the end of the file and save and exit

lxterminal & /usr/bin/lxsession -s LXDE &

Now to run TightVNC Server just run

tightvncserver :1

For Mac client : option key + k will give you option to connect to server Or use free software called Chickenvnc, For Windows client, download TightVNC Java Viewer (here). Mac / Windows user both can also try RealVNC its fast.

NoticeNote : If it didn’t ask any password use your user login password while login from client computer.
[server ip]:5901

Now it should ask you password and taadaa you are using VNC now 😀

-=-=-=[ To run tightvncserver at startup ]=-=-=-
nano /etc/init.d/tightvncserver

And copy following code and past it (download) and change root to the user account that you are using to run tightvncserver

#!/bin/sh
### BEGIN INIT INFO
# Provides: tightvncserver
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop tightvncserver
### END INIT INFO

# More details see:
# http://www.penguintutor.com/linux/tightvnc

### Customize this entry
# Set the USER variable to the name of the user to start tightvncserver under
export USER=’root
### End customization required

eval cd ~$USER

case “$1” in
start)
su $USER -c ‘/usr/bin/tightvncserver :1’
echo “Starting TightVNC server for $USER ”
;;
stop)
pkill Xtightvnc
echo “Tightvncserver stopped”
;;
*)
echo “Usage: /etc/init.d/tightvncserver {start|stop}”
exit 1
;;
esac
exit 0

After this run

sudo chmod 775 /etc/init.d/tightvncserver
update-rc.d tightvncserver defaults

Now next time you boot it will automatically runs tighvncserver

NoticeUpdate: To run application in LXDE as startup app, copy your application.desktop file (usually its in your desktop, otherwise make one by going to menu and right click on application and “add to desktop”) to [user]/.config/autostart
Tunnelling through SSH (make sure tunneling is allowed in ssh config)
ssh -l user -p [ssh port usually 22] -L5901:localhost:5901 serverIp
Example (in client terminal) : ssh -l root -p 22 -L5901:localhost:5901 10.10.0.1
goto vnc client and put localhost:5901
End of LXDE Desktop + VNC For Remote Server Access – Debian


Plex Media Server Management

Plex Media Server (PMS)Management

What next after you install Plex Media Server (if you have not goto here)? Answer of this question is very straight forward. Plex has very straight forward setup and very good web management system.

Goto browser and type

[your server id]:32400/web

OR if you are using same computer as server as well as client then

127.0.0.1:32400/web

This should show you a web interface to manage your contain (see image 1.1).

PMS Web Managment
Image 1.1 – Plex Media Server (PMS) Web Manager
PMS Web Managment
Image 1.2 – Plex Media Server (PMS) Client – Refocus for plex back to blue edition theme

I already have three media section in my library and lots of plugins. I will show you how you can setup these library sections later. For now, copy all you media files to server and place in particular folder.

For example,

I have a movie called “Samurai X: Trust & Betrayal” (it does not matter which format it is). You need to name it like this

[Movie Name]([published year]).[file extension]
Samurai X – Trust and Betrayal (1999).mkv

Naming file correctly will help Plex to get media detail quickly. And if you have sub title you can use same format and put both file in same folder.

Now for TV Series where there are lots of episodes you have to following simple naming rule like above.

[TV Series Name][Season Number][Episode Number].[file extension]
Boys Over Flowers – S01E01.avi

This is when you have a episode with single files. Note: S01 is Season 1 and E01 is Episode 1

Boys Over Flowers – S01E01-S01E03.avi

This is when you have multi episodes in one file. In here I have episode 1 – 3 in one file.

Boys Over Flowers – S00E01

This is when you have special episodes. It goes to Season 0.

You can download Filebot (link) to change all episodes name with easy.

All the media files should be with in the reach of Plex media server. For example, plex cannot connect to remote server to get file or in cloud. So what ever media file you have its best to keep in server. After you copied media files go back to web interface (image 1.1).

Click on plus button below my library label in image 1.1 is on right of TV Shows. It will give you option to select different types of media, like Movie, TV Shows, Music, Photo, Home Movies. Select what your media is and then select folder.

After than depending on number of videos, sit back and relax as plex will find all the details that you need automatically.

Download Plex client (For Mac & Windows here its free! )(For iOS & Android you need to goto either app store or Google play and it is not free apps) to view contain.

Note: if you are anime fan like me I would recommend you use AniDB as agent when you create a section for Anime.

First of all, download AniDB agent (download) after this unzip it and copy that to

/Application Support/Plex Media Server/Plug-ins

after this you might need to restart PMS.

Now to create anime section,

  1. Click on “+”  plus sign
  2. Select TV Shows select the path (anime folder)
  3. Click on show advance option, under Agent drop down menu select AniDB.
  4. Done
  5. Next you need to register at http://anidb.net (its free)
  6. Again go to manage -> Settings
  7. Click on Agents ->TV Shows  ->AniDB
  8. Click on AniDB Settings -> Enter your name and password
  9. Done.

Refresh that section and all the detail will be downloaded from http://anidb.net .

To change your PMC themes, For windows user: Download Plex Skin Manage (here) / For Mac user: Preen Skin Manage (here)
 End of Plex Media Server (PMS)Management

Openmediavault + Plex Media Server as Home Media Server

– [ Server Introduction ] –

OpenMediaVault (OMV) is a Debian based headless Operating System (OS). I have been using this for a while now. More I use this OS more I fall in love with. Reason for this is mainly because of its beautiful web based management system, plugin system (DLNA,CUPS, Tranmission) and  its based OS.

omvImage 1.1 – OpenMediaVault (OVM) Web Interface

Openmediavault is very lite weight operating system (download here).  It has straight forward installation method. I think the only problem with installation is that it takes whole hard drive (HD) for OS installation which mean you cannot use that HD for file storage purpose. Similarly, you cannot customise the space that you would like to give to OS unlike other operating system.( So Be Carefully before you install this OS make a backup!)

There is work around for this problem either you can (1) install OS in fast pendrive or (2) you can shrink you partition after you install the OS. I prefer second option and its much safer than pendrive as anyone can unplug pendrive and whole system will stop working. I am not going to explain how to install the OS in detail.

1. For installing OS in pendrive, insert your pendrive then run the installation. It will give you option later on to install in it.

2. For installing OS in hardrive  – follow in screen setup and install everything then you need a live OS to shrink partition. I prefer Partedmagic (download). Just boot in to live OS and use Partition Editor (its a Gparted application) to shrink to the size partition to size that you want to give to os (I would prefer 20GB so that you can play around with os later). (maybe I will explain this in detail near future?)

After installation of OS you will get a ip for you server (it will show your ip on your monitor). Just go to other computer at home and type that ip in your chosen browser (I prefer chrome but its up to you). It will now show you the login box. For the first time your login detail will be

User Name: admin
Password: openmediavault

To change the password, after you login you can do this

System -> General Settings ->Web Administrator password

Next thing we need to do is to enable ssh service. We need this to run different terminal command in server. Not everything can be done from web management system.

Go to Services -> SSH -> Enable (tick) ->OK

Again you need to download SSH client, if you are using Linux or Mac OS its build in system but for Windows system you need to download SSH client. My favorite SSH client for windows is putty (download). Putty is very user friend application. One does not need to spend more than 10 min to connect to SSH server.

puttyImage 1.2 – Putty

We will be using SSH to run different command remotely in server.

– [ End of Server Pre-Setup ] –
– [ Plex Media Server Introduction ] –

After this, we will install Plex Media Server (PMS) in server. Plex Media Server (PMS) is a server application which auto manage the media content and serves it to different platform. You can find its client apps in Windows & Mac OS as well as in mobile platform (iOS, Android) plus it can also be install in Apple TV, its build in Google TV, LG Connected Devices, Roku.

myplexImage 2.1 – Plex Media Server (PMS) Web Manager

Installing PMS in OpenMediaVault (OMV)

1. First thing we should know is that OMV is not ground up build system. It is based on Debian System. So anything that runs in debian will run in OMV. Plex Media Server (PMS) does run in debian system but not in direct way. PMS has .deb installation file which are base on Ubuntu OS (which like OMV is base on debian too). Lets start the installation, first you need to add repo (its a web link where file are kept) in source.list file in OMV.

Connect to SSH and run following command in order.

apt-get update
apt-get install curl

Add this line deb http://shell.ninthgate.se/packages/debian squeeze main

echo “deb http://shell.ninthgate.se/packages/debian squeeze main” >>/etc/apt/sources.list
apt-get update
apt-get install plexmediaserver

These command will add repo “deb http://shell.ninthgate.se/packages/debian squeeze main” to /etc/apt/source.list and keys to login to web. If everything went well without the error then plexmediaserver should be install.

Now check if plexmediaserver is running or not

/etc/init.d/plexmediaserver status

if it says “Plex Media Server process running” then PMS is running.(Please go to client browser and type http://serverip:32400/web to verify it) If it gave error like file not found or “Plex Media Server process not running” then it might be due to two possible reason. Either the installation didn’t add user plex or there is no file called plexmediaserver in /etc/init.d/

Either way the solution I found will work. We need to run PMS as root user. Follow the steps below

export LD_LIBRARY_PATH=/usr/lib/plexmediaserver

Now we need to check if there is plexmediaserver file in /etc/init.d/ or not

nano /etc/init.d/plexmediaserver

If this gives you empty editor then copy following code.


#!/bin/sh
### BEGIN INIT INFO
# Provides: plexmediaserver
# Required-Start: $remote_fs $syslog $networking
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Plex Media Server
# Description: Plex Media Server for Linux,
# More information at http://www.plexapp.com
# Many thanks to the great PlexApp team for their wonderfull job !
# Author: Cedric Quillevere / origin@killy.net
# Rewamped Christian Svedin / christian.svedin@gmail.com
# Version: 1.2
### END INIT INFO
# Read configuration variable file if it is present
[ -r /etc/default/plexmediaserver ] && . /etc/default/plexmediaserver

test -f “/usr/lib/plexmediaserver/start.sh” || exit 0

plex_running=`ps ax | grep “\./Plex Media Server” | awk ‘{ print $1 }’ | wc -l`

case “$1” in
start)
if [ “$plex_running” -gt 1 ]; then
echo “Plex already running…”
exit 0
fi
echo -n “Starting Plex Media Server: ”
su -l $PLEX_MEDIA_SERVER_USER -c “/usr/sbin/start_pms &” >/dev/null 2>&1
sleep 1
echo “done”
;;
stop)
if [ “$plex_running” -eq 1 ]; then
echo “Plex Media Server is not running (no process found)…”
exit 0
fi
echo -n “Killing Plex Media Server: ”
# Trying to kill the Plex Media Server itself but also the Plug-ins
ps ax | grep “Plex Media Server” | awk ‘{ print $1 }’ | xargs kill -9 >/dev/null 2>&1
ps ax | grep “Plex DLNA Server” | awk ‘{ print $1 }’ | xargs kill -9 >/dev/null 2>&1
sleep 1
echo “done”
;;
restart)
sh $0 stop
sh $0 start
;;
status)
if [ “$plex_running” -gt 1 ]; then
echo “Plex Media Server process running.”
else
echo “It seems that Plex Media Server isn’t running (no process found).”
fi
;;
*)
echo “Usage: $0 {start|stop|restart|status}”
exit 1
;;
esac

exit 0

Now, we need to change plex to root in /etc/default/plexmediaserver files

nano /etc/default/plexmediaserver

At line 19 change plex to root again.

Now run

chmod 775 /etc/init.d/plexmediaserver
/etc/init.d/plexmediaserver restart

Check if plex is running or not

/etc/init.d/plexmediaserver status

If it says “Plex Media Server process running.”

Now goto your client computer (i.e laptop / tab) and goto browser and type

[your server ip]:32400/web

It will show you the Plex’s web management system where you can add/remove contain.

NoticeNote: Using root user to run any application is not recommended, specially if you are concern about security. And If you use root to run PMS, every time you update PMS you need to go back to /etc/init.d/plexmediaserver, delete it and rename plexmediaserve.dpkg to plexmediaserver and restart demon.
 – [ End of Plex Media Server Installation ] –
– [ Optional for OMV- Moving PMS Library ] –

If you are like me who have small partition for you OS then you might need to think of moving Plex Media Server Application Library to different partition.

The easiest solution that I found is to make symbolic link of your Library folder.

First copy all the files from your library to other partition. (I am running PMS as root if you are using any other user then you need to change root to that user name)

cp -avr /root/Library /media/[partition name]/Library

Just in Case make a backup

mv /root/Library  /root/Library.bak

Now Symbolic link your Library folder

ln -s /media/[partition name]/Library /root/Library
– [ End of Optional for OMV- Moving PMS Library ] –