Skip to main content

Secure Pastebin application – Zerobin

Zerobin - LogoIf you are a programmer or simply want to share some code/text, you may already be using Pastebin or similar application. Although it is very convenient to do so, you may share some confidential information or data you don’t want anyone to have access except you. This is where ZeroBin enter!

ZeroBin is a minimalist, opensource online pastebin application where the server has zero knowledge of hosted data. Data is encrypted/decrypted in the browser using 256 bits AES before sending to the server making it secure and ensure a certain confidentiality.

Easy to install with no SQL database need, Zerobin is fast and dead easy to use (Paste/send/share the URL). On top of ensuring the server have no knowledge of the data being stored (Useful in case of server breach or seizure), you can also set up expiration time (5 minutes, 10 minutes, 1 hour, 1 day, etc…) and even “burn after reading” to destroy the paste when read.

Zerobin - Screenshot

ZeroBin also includes a discussion feature, if you want to collaborate, discuss around your text.

Interested? Give it a try with their demo.

 

Installation

You will simply need Apache (Or other web server) with PHP 5.2.6 or above. If you don’t have them, please following my tutorial on how to install a LAMP server.

You will also need php5-gd

1) Clone their git repository in your /var/www (Or simply download their master zip)

2) Install php5-gd

In root type:

3) Change ZeroBin folder’s owner to web server user (www-data)

Still in root:

And that’s all!! You should now have access to your ZeroBin using HTTP://YOUR_IP/ZeroBin.

Virtualhost configuration

If you want to access to your Zerobin instance using a subdomain (More friendly, like zb.domain.tld), you can create a dedicated virtualhost (And even using SSL if you want)

You will need to:

1) Create a A redirection in your DNS server/registrar from zb.domain.tld to your IP

2) Have SSL certificate ready. If not you can read this tutorial. (Optional)

3) Create your virtualhost as following:

In /etc/apache2/sites-enabled/, create a file called zerobin (In root):

and paste/adapt the following content:

Adapt the content (Servername, webmaster, SSL certificate and directory, …).

When done, save the file (CTRL+X then Yes) and reload apache: (In root)

You should now have access in HTTPS to your ZeroBin using zb.domain.tld URL.

How to monitor your server with Monitorix

monitorix logoAs briefly introduce in a previous tutorial concerning Munin, it exists plenty of solution to monitor your server (CPU, load, disk use, network use, processes, etc…) but at that time I didn’t heard much about Monitorix (Usually it turns around Munin and Cacti), but I have to admint Monitorix is a very good alternative, and here is why.

 

 

Monitorix is a light monitoring tool (web based), very easy to install and yet with plenty of supported info such as:

– System load average and usage

– Kernel usage

– LM-Sensors and GPU temperatures

– Disk drive temperatures and health

– Filesystem usage and I/O activity

– Network traffic and usage

– Netstat statistics

– System services demand (SSH, ProFTPD, Samba, CUPS, Fail2ban, IMAP, POP3, SMTP, etc…)

– Mail statistics

– Apache/MySQL/FTP/etc… statistics

– Memcached/Alternative PHP Cache statistics

– and many more!

monitoring system load average chart

The project is still actively maintained and they recently released their 3.5.1 version (6th May 2014).

Well and the list of features is growing! They recently added support to monitor unlimited number of APC UPS! (Best UPS brand in my opinion!)

monitorix apc ups chart

Have a look of their many screenshots to see how it looks!

Interested to test it out, here is how to install Monitorix on your own server.

 

Installation

In Debian, Monitorix is not into official repositories, but you can add the generic one from IzzySoft that works for both Ubuntu and Debian.

1) Add IzzySoft repository in your /etc/apt/sources.list

In root, type:

and add at the end of the file, the line:

2) Add the IzzySoft GPG Key and update repository

Simply run (still in root):

3) Install Monitorix

Note that it will also install all its dependencies.

4) Go to http://YourIP:8080/monitorix

Monitorix comes with a default configuration that works out-of-the-box, but you can also modify the configuration in /etc/monitorix/monitorix.conf

I recommend you to read the official documentation if you wish to tweak the reports.

monitorix ethernet chart

 

Virtualhost configuration

Having to access to http://YourIP:8080/monitorix is quite annoying…and if, like me, you prefer to access to your Monitorix instance directly through a dedicated subdomain (like mon.domain.tld), you will need a virtualhost.

You will need to:

1) Create a A redirection in your DNS server/registrar from seo.domain.tld to your IP

2) Install mod proxy html

You will need to install the following packages in root:

And you will also need to activate the mod-proxy-http (Already installed)

3) Create your virtualhost as following:

In /etc/apache2/sites-enabled/, create a file called monitorix (In root):

and paste/adapt the following content:

Adapt the content (ServerAdmin and ServerName).

When done, save the file (CTRL+X then Yes) and reload apache: (In root)

And Voila! You should now have access to your Monitorix using mon.domain.tld directly!

SEO Panel - Installation

Manage your Search Engine Optimization (SEO) – SEO Panel

Improve the Search Engine Optimization of your website can clearly be a full time job and the success is usually coming from your content and your popularity. For example, since I’ve started to write 1 article a day, I got much more traffic than before and trying to refer my blog to my circle of friends, people I know, etc… helped me too. But much more need to be done (Backlinks, keywords optimizations, etc…) and as I’m not an expert, I won’t give you much advice there.

But, if you are looking for a tool to help you improve your SEO and tracks the results, SEO Panel can do the job!

Open source (GPL v2), SEO Panel help you manage your Search Engine Optimization work through:

– Automatic Directory Submission Tool,

– Keyword Position Checker,

– Site Auditor,

– Google and Alexa Rank Checker,

– Backlinks Checker,

– Search Engine Saturation Checker,

– Reports

Many plugins exists (But for a fee) to extend the features of SEO Panel.

seo panel screenshot main page

Actually they have just released a new version (3.5.0), and a demo is available here.

Want to give it a try? Follow below steps.

 

Installation

You will need a Web server (like Apache), MySQL and PHP. If you don’t have it, I suggest you to read my tutorial on how to install a LAMP server.

1) Download latest SEO Panel (either their zip or directly clone their git, which I prefer) into your /var/www

If you don’t have git installed, simply run:

2) Install Curl for PHP

3) Change folder ownership to provide needed permissions.

4) Go to http://YourIP/Seo-Panel to access the web installer

SEO Panel - Installation

You will first see the summary of the requirements and see if you pass them,

Then the second step will be on your MySQL database, to easily create one, I suggest you to use PHPMyAdmin to do so.

SEO Panel - Database

When done, you will have a Warning message for you to remove the install folder and change permission of the config file (config/sp-config.php) to avoid security issues.

5) Remove install folder and change config file permission

6) Create a tmp folder (if not done yet) and set 777 permissions

7) Change admin creditentials (default: spadmin/spadmin)

Go to Profile and change the username and password

You should now have a working SEO Panel instance. If like me you wish to create a dedicated subdomain (seo.domain.tld) instead of using IP/Seo-Panel, follow below steps:

 

Virtualhost configuration

You will need to:

1) Create a A redirection in your DNS server/registrar from seo.domain.tld to your IP

2) Create your virtualhost as following:

In /etc/apache2/sites-enabled/, create a file called seopanel (In root):

and paste/adapt the following content:

Adapt the content (Servername, webmaster and directory, …).

When done, save the file (CTRL+X then Yes) and reload apache: (In root)

And Voila!

If you are looking for support, I recommend you creating an account on their forum.

PS: I’m having some issues with it so far as it keeps loading pages without displaying anything. I’m checking why. If you got the answer let me know in the comments!

Modern & Web based TOP command for your server – Scout Realtime

Did you know that the TOP command (to display a lot of useful realtime information to monitor your server, home computer, etc… such as CPU usage, memory usage, disk usage, processes, etc…) was born 30 years ago?

top screenshotTop has been one of the command I’ve learnt first for my GNU/Linux system (most probably 10 Years ago)

Well I recently discovered Scout Realtime, an intuitive and redesigned TOP command type for your server but web based.

Usually we don’t have much realtime monitoring tool with web interface. I’m using munin to monitor my server but it’s not realtime (but has other strengths)

Scout Realtime have obviously improved what TOP is reporting.
– They have a very smooth scrolling with charts updated every second,
– They got easy to read trends with some historical data,
– They have added the disk and network activity
– They have updated the way to calculate the free ram (They have counted the buffer ram that could be used when needed)
– And finally, they have grouped processes together but no jumping in and out as we have with TOP. It fixed and then easy to read the trends.

Written in Ruby, the installation is very simple. You only need to install Ruby then the package and you’re good to go!

Scout Realtime - Screenshot

It’s still in active development and works great out of the box. But if you want to change a bit the default configuration (add HTTP login, change port, etc…) you will need to wait a next release.

 

Installation

1) Install Ruby

2) Install Scout Realtime

3) Start Scout Realtime

4) Simply go to http://YourIP:5555

You may now want to access to Scout Realtime instance through a subdomain instead of typing your IP and the port. Also by binding the connection to port 80 (or 443), you may have less trouble with proxies too.

 

Virtualhost configuration

To do that, you will need to create a dedicated virtualhost and use ProxyPass and ProxyPassReverse option to access to your service from the port 5555 to the port 80.

You will obviously need a A redirection from top.domain.tld to your IP, in your DNS config (Registrar?)

1) Install Apache mod proxy html

2) Activate the mod-proxy-http (Already installed)

3) Create a dedicated vhost in /etc/apache2/site-enabled/ called scoutrealtime with:

4) Reload Apache

You should now have access to your Scout Realtime instance on top.yourdomain.tld

RSS feed for websites missing it – RSS-Bridge

If like me you are a big user of RSS feeds (most probably you are using on of these RSS Readers?), especially my favourite one, the FreshRSS, you may be frustrated not to be able to follow Twitter accounts (Except if registered) or Youtube, and many more services not providing RSS feeds…

Well, Sebsauvage, the same guy that developed Zerobin (online pastebin) and Shaarli (Previous presented), have made a web service to convert populars non RSS friendly services to Atom/RSS/Json/Html and even plaintext page, called RSS-Bridge.

It currently supports the following services:

  • FlickrExplore : Latest interesting images from Flickr.
  • GoogleSearch : Most recent results from Google Search.
  • Twitter : Can return keyword/hashtag search or user timeline.
  • Identi.ca : Identica user timeline (Should be compatible with other Pump.io instances).
  • YouTube : YouTube user channel feed.
  • Cryptome : Returns the most recent documents from Cryptome.org.
  • DansTonChat: Most recent quotes from danstonchat.com
  • DuckDuckGo: Most recent results from DuckDuckGo.com
  • GuruMed: Most recent entries (full text) from gurumed.org
  • Instagram: Most recent photos from an instagram.com user.
  • OpenClassrooms: Lastest tutorials from fr.openclassrooms.com.
  • Pinterest: Most recent photos from user or search.
  • ScmbBridge: Newest stories from secouchermoinsbete.fr
  • WikipediaENLatest: highlighted articles from Wikipedia in English.
  • WikipediaFRLatest: highlighted articles from Wikipedia in French.
  • WikipediaEOLatest: highlighted articles from Wikipedia in Esperanto.
  • Bandcamp : Returns last release from bandcamp for a tag

Web-based and opensource, you can directly install it on your own server to generate RSS feeds based on those services.

RSS-Bridge

Installation

1) Download the latest archive in your /var/www

2) Uncompress and remove master.zip file

3) Download and copy PHP Simple HTML DOM Parser in vendor/simplehtmldom (required)

4) Change the owner of the rssbridge folder to www-data (apache user to avoid permissions issue)

5) Simply access to http://YOURIP/rssbridge and get the feed you want!

 

Virtualhost configuration

As usual in most of my article, I share my configuration file for my Virtualhost.

If you want to access to your rssbridge service through rssb.domain.tld or a dedicated domain name, you can simply create a vhost.

You can also force HTTPS connection if you want (although there isn’t much confidential info there)

You will need to:

1) Create a A redirection in your DNS server/registrar from rssb.domain.tld to your IP

2) Have SSL certificate ready. If not you can read this tutorial. (Optional)

3) Create your virtualhost as following:

In /etc/apache2/sites-enabled/, create a file called rssbridge (In root):

and paste/adapt the following content:

Adapt the content (Servername, webmaster, SSL certificate and directory, …).

When done, save the file (CTRL+X then Yes) and reload apache: (In root)