Saturday, January 7, 2017

How to install google play store on android emulator (Android 7.1.1, API 25)

Recently I have been doing some stuff on android emulators and discovered that there is no google play store over there. Then I found some articles on how to install google play store on emulator (for example this website: www.flinkd.org) But most of the existing tutorials were for android 5, API 21 and when I tried to do them, links to gapps archives were broken and the archive format was slightly different than it is today on opengapps.org. So today I will give you new updated tutorial on how to install google play store on android emulator.

Let's start with a brief overview of what you might need and what are the possible ways of getting google play store on your android emulator.

Thursday, January 5, 2017

Linux - How to copy all files including hidden with cp command

Sometimes we need to copy an entire folder, including all its content from one location to another. For that purposes we can use cp command. But most of users (including me) experience problems with it. If you try to copy files using star wildcard "*", it wont copy hidden files and folders.

For example:
mkdir /tmp/dir1
cp -r /home/username/* /tmp/dir1
This method does not copy hidden files and folders, such as '/home/username/.bashrc'.

Wednesday, January 4, 2017

How to add swap file in Debian or Ubuntu

Swap is used to allow operating system run in fail-over mode, meaning that if it's running out of RAM, it will start swapping some memory pages from RAM into the swap file, on disk. The best way to create swap - is to mount it into partition. But if you don't have a swap partition, or don't have time to create it, you can also add swap using a regular file. Below I will show how to add swap file in Debian based Linux distros.

Tuesday, January 3, 2017

MySQL how to reset root password in Linux (Debian, Ubuntu, etc)

In case you've forgotten or lost your root password from MySQL server, there is a way to reset it. Below you will find detailed guide on how to do it in Linux. In particular, all instructions and commands were tested with Debian 8 and MySQL 5.5, but they should also work on most of other distributions. So let's get started.

Monday, January 2, 2017

How to install python from source in Debian/Ubuntu

There are multiple ways of installing python in Linux. First you can just install it from your distro repository, for example in Debian you need to use these commands (depending on which version do you need):
sudo apt-get install python2.7
sudo apt-get install python3

Sunday, January 1, 2017

ssh how to disable password and allow only key authentication

Key authentication is more secure over password authentication. Just because users might have weak passwords, an attacker can easily brute force them. On the other hand, it's impossible to brute force ssh key. That's why I encourage you to use ssh key authentication and below I will show you how to configure it.