In order to update to the latest java version on Ubuntu you need to download the latest tar ball from the Java website www.java.com Unzip this using the command: tar zxvf jdk-8u66-linux-x64.tar.gz -C /usr/java Next tell the system that there
Enabling root user in Ubuntu 14.04.3
By default root user account is disabled for login in Ubuntu. Steps mentioned below will allow you to enable the root user and login as root on the OS. Login to your account and open Terminal sudo passwd root Type
Users in MongoDB
User and roles Apart from some authentication systems, MongoDB has users and roles which can be applied to different databases. First, let’s see how to create an admin user for admin database with god-like (root) permissions. Root permissions for all
Adding authentication to MongoDB
MongoDB by default doesn’t provide any authentication mechanism and therefore it is required to activate one by tweaking the configuration file and issuing some commands in the mongodb. Today I will show you how to activate authentication on MongoDB. Create
Compile MongoDB C++ Driver
Today I will describe in short how to compile C++ drivers for MongoDB over Ubuntu 14.04 Make new Directories mkdir /root/mongodb-client-install mkdir /root/mongodb-git cd /root/mongodb-git Getting the source code git clone https://github.com/mongodb/mongo-cxx-driver.git Install pre-requisites apt-get install scons libboost-all-dev build-essential libsasl2-2
Choosing editor for editing with crontab -e
export EDITOR=nano crontab -e
MySQL: “Access denied for user ‘debian-sys-maint’@’localhost’”
For all you Ubuntu/MySQL developers out there, have you ever seen the following? neo@thematrix:~$ sudo /etc/init.d/mysql restart * Stopping MySQL database server mysqld [fail] * Starting MySQL database server mysqld [ OK ] /usr/bin/mysqladmin: connect to server at ‘localhost’ failed
Trust Between Machines Over SSH
1. Test rsync over ssh (with password): Do a rsync to make sure it asks for the password for your account on the remote server, and successfully copies the files to the remote server. The following example will synchronize the
Enabling TokuDB engine in MariaDB
TokuDB is a drop-in replacement for any other storage engine (including InnoDB) so you can switch engines without changing your application. TokuDB is open source, and is available in both a Community Edition and an Enterprise Edition. It is one of
Disabling Transparent HugePages in Ubuntu 14.04 Server LTS
Need might arise to turn off transparent_hugepages which is by default ON in Ubuntu 14.04 LTS Server Version. This might apply to the other distro’s and also to other versions of Ubuntu. Checking transparent_hugepages To check if transparent_hugepages is on