Showing posts with label Tips & Tricks. Show all posts
Showing posts with label Tips & Tricks. 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.

Get on a conference call in seconds by copying in this email address

Setting up conference calls can be a pain, but with this new service, it doesn’t have to be. All you need to do to set up your next meeting is copy in this email address: talk@anymeeting.com.
Anymeeting, the company behind the new service, launched it today to help reduce the friction to actually getting on a call. Once you copy in the email address, all attendees get a reply from Anymeeting with the conference call details.
Screen Shot 2015 03 18 at 4.44.17 pm Get on a conference call in seconds by copying in this email address
The service doesn’t require an account to get on a conference call and the only limitation is you can’t have more than 200 attendees. This makes it great for a quick work phone call, setting up the football team or even a family call.
The only drawback I found when trying the service was that it signed me up to their newsletter once I’d used it, but it was easy enough to unsubscribe. There are paid plans available for Anymeeting’s more advanced service if you need fully-fledged phone conferencing.
If you need a quick, free, no frills service for getting on a conference call, Anymeeting’s new service might just do the trick.
Source : www.thenextweb.com

Send money to friend using FB Messanger

Today facebook adding a new feature in Messenger that gives people a more convenient and secure way to send or receive money between friends. This feature will be rolling out over the coming months in the US.
It’s easy and free.
Messenger Payments
To send money:
  1. Start a message with a friend
  2. Tap the $ icon and enter the amount you want to send
  3. Tap Pay in the top right and add your debit card to send money
To receive money:
  1. Open the conversation from your friend
  2. Tap Add Card in the message and add your debit card to accept money for the first time
The money you send is transferred right away. It may take one to three business days to make the money available to you depending on your bank, just as it does with other deposits.
Secure Network
A dependable and trusted payments processor for game players and advertisers since 2007, Facebook processes more than one million transactions daily on the site and also handles all the payments processed on Messenger.
Incorporating security best practices into our payments business has always been a top priority. We use secure systems that encrypt the connection between you and Facebook as well as your card information when you ask us to store it for you. We use layers of software and hardware protection that meet the highest industry standards. These payment systems are kept in a secured environment that is separate from other parts of the Facebook network and that receive additional monitoring and control. A team of anti-fraud specialists monitor for suspicious purchase activity to help keep accounts safe.
The first time you send or receive money in Messenger, you’ll need to add a Visa or MasterCard debit card issued by a US bank to your account. Once you add a debit card, you can create a PIN to provide additional security the next time you send money. On iOS devices you can also enable Touch ID. As always, you can add another layer of authentication to your account at any time.
The new payments feature is rolling out in the coming months in the US across Android, iOS, and desktop.

Source : www.newsroom.fb.com

Activate WhatsApp Calling Feature


WhatsApp's latest voice calling feature that had been under testing is finally available. The WhatsApp voice calling feature is enabled in the latest version of the WhatsApp Messenger that is now available for download for Android devices on Google Play (version 2.11.561).
However, the feature doesn't come right away to the users. Those who want to have the voice calling feature will need an invite, in the form of a WhatsApp call from any other WhatsApp user who has the feature activated on his/her app.
The steps involved are fairly simple:
1. Go to Google Play and download/update the free WhatsApp Messenger app.
2. Ask any other WhatsApp user you know with the voice calling feature activated to call you via WhatsApp.
Post the call, a user can find the WhatsApp voice calling feature activated on their phones and a new 'Calls' tab to the left of the Chats and Contacts tab on the WhatsApp home screen.
While there have been unofficial APKs floating around promising the feature, but it is advisable that users install the app from Google Play or the official WhatsApp website.

How to enable WhatsApp voice calls (with root)

In case none of this is still working for you, there is another way for rooted users to force the feature onto their phones, but it is a bit of a pain, as you’ll need to be connected to your PC and open a terminal every time you want to WhatsApp call someone (until it is enabled permanently for you).
Just open a terminal emulator and enter the following command:

su -c am start -n com.whatsapp/com.whatsapp.HomeActivity

Coinbase PHP Client Library Tutorials




An easy way to buy, send, and accept bitcoin through the Coinbase API.

This library supports both the API key authentication method and OAuth. The below examples use an API key.

Way2SMS PHP integration

Way2SMS PHP Integration 


Way2Sms is free SMS provider in India as well as abroad, It is best in class service provider. We need SMS verification like OTP (One Time Password ), Notification and information for our website/applications. I also have same requirement for my web application where I need to send OTP for user authentication. I search a lot for free services but  now days, everyone busy to make money so There is no free service for SMS Gateway than I found a way to right a script in PHP which communicate with way2sms and send a message. Hope so it is also work for you.

Requirement : 
PHP 5.5 + 
support for PHP curl
valid way2sms account.
create cookie.txt and temporary.txt in same directory.

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/