Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

How to install Tonido private cloud server on Ubuntu Linux

 

Tonido is a free application that allows you to access files on your computer from a web browser, from your handheld or any DLNA capable device. The Tonido server enables you to sync files between different devices and to share them securely with your friends so you have a private and secure Cloud.


Tonido is available for all major operting systems incl. Linux, Mac and Windows, there are also apps available for Android, Iphone and Blackberry. Tonido can also be used to backup files from your phone on your desktop. Please note that Tonido is not open source software, but there is a free versions available that I will cover in this tutorial.
This tutorial is about installing Tonido server on Ubuntu Linux.

Tonido installation
The following installation instructions are for a 64 bit system, for 32 bit systems I request you to visit here.

Dual boot : Windows8 and Debian mint

if you want to dual-boot Windows 8 and Linux Mint Debian Edition 2 on a computer with UEFI firmware, this steps given in this tutorial will work also.
Getting From Here To There: To successfully set up a dual-boot system with Windows 7 and Linux Mint Debian 2, you’ll need to have access to a Windows 7 computer. After that, enough space has to be recovered from the C drive to use for installing LMDE 2. Then you’ll download an installation image of LMDE 2, transfer it to a USB stick and then install it alongside Windows 7 on the target hard disk.
To install LMDE 2, the following partitions have to be created:
  • Root partition – mounted at /
  • Home partition – mounted at /home
  • Swap partition
If you’re new to disk partitioning in Linux, take a moment to read Beginners to disks and disk partitions in Linux before embarking on this fun adventure.

SSH in simple five steps

SSH (Secure SHELL) is an open source and most trusted network protocol that is used to login into remote servers for execution of commands and programs. It is also used to transfer files from one computer to another computer over the network using secure copy (SCP) Protocol.
In this article we will show you how to setup password-less login on RHEL/CentOS 7.x/6.x/5.x and Fedorausing ssh keys to connect to remote Linux servers without entering password. Using Password-less login with SSH keys will increase the trust between two Linuxservers for easy file synchronization or transfer.
SSH Passwordless Login
Setup SSH Passwordless Login

owncloud : introduction & features

OwnCloud : ownCloud provides access to your data through a web interface or WebDAV while providing a platform to view, sync and share across devices easily—all under your control. ownCloud’s open architecture is extensible via a simple but powerful API for applications and plugins and works with any storage. Some features are given below :


NITROSHARE 0.3.0: EASILY SEND FILES TO OTHER MACHINES ON THE LOCAL NETWORK

NitroShare is a tool that can be used to easily transfer files between computers on your local network, available for Linux, Windows and Mac OS X.

NitroShare features:
  • no configuration required: each device running NitroShare broadcasts its presence to other devices on the network;
  • supports transferring files as well as directories;
  • displays desktop notifications for completed transfers or when someone on the local network starts or quits NitroShare;
  • simple, easy to use user interface.

How to set up networking between Docker containers

As you may be aware, Docker container technology has emerged as a viable lightweight alternative to full-blown virtualization. There are a growing number of use cases of Docker that the industry adopted in different contexts, for example, enabling rapid build environment, simplifying configuration of your infrastructure, isolating applications in multi-tenant environment, and so on. While you can certainly deploy an application sandbox in a standalone Docker container, many real-world use cases of Docker in production environments may involve deploying a complex multi-tier application in an ensemble of multiple containers, where each container plays a specific role (e.g., load balancer, LAMP stack, database, UI).

HAProxy (High Availability Proxy)

HAProxy(High Availability Proxy) is an open source load balancer which can load balance any TCP service. It is particularly suited for HTTP load balancing as it supports session persistence and layer 7 processing.





HA Proxy Setup  :

I was working with Apache Webserver from very long but when I jumped into the world of NodeJS I started loving websockets. Soon I was planning to integrate my PHP applications with NodeJS. I was happy to use both, till I was not running both the applications on default web service port 80. But when I tried to configure Apache virtual hosting for proxying my request to NodeJS server port, it was not allowing my websocket communication to happen. I tried alot of modules but didn’t got success. And after alot of googling I found something which helped me to achieve what I need. Once I configured HAProxy on my system I was able to serve both applications, PHP and NodeJS through port 80 just by virtual hosting of HAProxy.

How to Increase PhpMyAdmin Session Timeout from 1440 seconds


phpMyAdmin is one of my favorite tools and I use it all the time. But man, the 24-minute session timeout is a huge problem . A short cookie lifetime is all well and good on your production server, but what about when you’re just testing new things  away on the computer in your test envirnment?
Did a little grepping and found that you can override this setting, even though it’s not documented anywhere but in the codes (so far as I can tell). To override it, just open up config.inc.php in the root phpMyAdmin directory and add this setting (anywhere, but  mostly at end of file):
phpmyadmin config file for ubuntu Server : /etc/phpmyadmin/config.inc.php

$cfg['LoginCookieValidity'] = <your_new_timeout>;

Where <your_new_timeout> is some number larger than 1800. Personally, I chose 28800, which is 8 hours.

Define how long a login cookie is valid. Please note that php configuration option session.gc_maxlifetime might limit session validity and if the session is lost, the login cookie is also invalidated. So it is a good idea to set session.gc_maxlifetime at least to the same value of $cfg['LoginCookieValidity'].
php.ini file for ubuntu Server : /etc/php5/apache2/php.ini

Disclaimer! It should go without saying that increasing the timeout is a (comparatively minor) security risk (but a risk nonetheless). Obviously, do not do this on your production server. And as always, proceed with caution.

Setting up a SVN Server on a EC2 Instance (Ubuntu 14.04 LTS)

Setting up an SVN server on my EC2 instance (on AWS), is a major problem whenever we connect svn using key-file(key.pem for AWS).
Here’s my situation:
  • I have a micro EC2 instance hosted with Amazon.
  • I used a non-standard port for ssh access
  • I have a pem file provided by Amazon for access through ssh
  • I run Ubuntu 14.04 Server on my EC2 instance
  • On the client side, I’m running Ububtu 14.04 Desktop
With that out of the way, the first thing I had to do was insure svn was installed on my server and Desktop :
sudo apt-get install -y subversion

Then, on my EC2 instance, I want to create both the directory where I’ll store repositories, and the subsequently, create the repository itself. Permissions and ownership are of the utmost importance. This worked for me:
sudo mkdir -p /srv/svn/
sudo chown ubuntu:ubuntu /srv/svn/
svnadmin create /srv/svn/{repo_name}
Mind the {rep_name} placeholder above 

vim /svnrepos/conf/svnserve.conf
In that file add these three lines:
anon-access = none
auth-access = write
password-db = passwd
Create a password file:
vi /svnrepos/conf/passwd
In that file add a line for your user:
# add users in the format : user = password
tony = mypassword

Ubuntu : Netbeans Installation

This Guide is useful for Netbeans Installation on Ubuntu. Generally we face problems during installation of Netbeans like JDK path, package not available, permissions denied etc. This guide gives  you step by step instructions to easy installation of Netbeans. Hope so it helps you a lot !

1. Update your Ubuntu 14.04 :
Ubuntu is open-source operating system which provides updates frequently for users to overcome security breaches and enhance user experience. Just type this command on your terminal : (open terminal using Ctrl+Alt+t or type terminal in ubuntu search bar )       
sudo add-apt-update

For LAMP stack use following commands :
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install mysql-server mysql-client
sudo apt-get install phpmyadmin
 
2. Download Netbeans from official website :  
Select your os type(32/64 bit) and download from following link :
                               https://netbeans.org/downloads/