Author: Lucas

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Internet speed test on Linux

There is a tool on the speedtest.net website that allows us to carry out speed tests on our connection via the browser.   But how do you perform this test on a Linux server via SSH?   We’re going to use a python script provided by speedtest.net. First, let’s install python: apt-get install python-minimal We

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)  

Latest news

Latest news directly from our blog.