Author: Lucas

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Allow Root access in SSH

Some Linux distributions, such as Ubuntu Server, do not allow the Root user to log in to SSH by default. To allow Root access via SSH, edit the sshd_config file: vim /etc/ssh/sshd_config Then look for the PermitRootLogin directive and change it to the following: PermitRootLogin yes Now restart the SSH service: service ssh restart That’s

Standard

Changing the Hostname in Linux

Edit the “/etc/hostname” file, change the current hostname to the desired hostname. vim /etc/hostname Edit the “/etc/hosts” file, replace the old hostname with the new one. vim /etc/hosts Then run the following command: /etc/init.d/hostname.sh start That’s it! To view the current hostname, use the “hostname” command.

Standard

Android getColor() Requires API Level 23

When using a newer API (API level 23) with support for older API’s (API Level 15), we have a small problem when trying to change the background programmatically. “Call requires API level 23 (current min is 15)…” To solve this problem, Android offers ContextCompat: ContextCompat.getColor(context, R.color.suspendedAccount)  

Standard

SSL certificate works on PC but not on Mobile

An SSL Certificate consists of three different keys: Domain certificate. Private key certificate Certificate from the Intermediary Entity (Key Bundle). When SSL is only working for some devices and for others causing such as unreliable, “untrust“, means that there is a problem in item 3 (Intermediary Entity Certificate), also called “Bundle“. What happens is that

Latest news

Latest news directly from our blog.