Proxy using an SSH tunnel

Browse the web through your SSH server by turning it into a proxy server.
Secure Shell (SSH) client-server encrypted connection icon
Continue reading

How to auto-start services on boot in CentOS / Red Hat / Oracle Linux?

To auto-start services in CentOS, Red Hat, or Oracle Linux, you can use the built-in chkconfig utility. It is located in the /sbin directory. If you are a regular user (non-root), /sbin may not be in your PATH, so you may have to use the full path to run the chkconfig utility.

centos

Continue reading

Display calibration

Since I use the same monitor (LG W2486L) for my Nintendo Wii U and my computer, I never paid attention to the fact that sometimes I couldn’t see certain colors simply due to wrong calibration on my display.

I use Adobe Lightroom on this PC to enhance my photos, so how could I know if my display was showing what I needed to see?

A friend of mine told me about some videos that could help me with that; at the link below, you can download the videos and find more information.

AVS HD 709: Blu-ray & MP4 Calibration (AVSForum)

I just used the basic settings and now my display looks much better, and I can see a better range of whites and blacks.

You can also run quick browser-based color uniformity, dead-pixel, contrast, and gradient checks directly with my Display Tester (listed on Ferramentas).

YouTube Background for Android 2.2+

YouTube Background Android playback utility launcher icon

I made this app for a friend who wanted to play YouTube videos just to listen to the audio. It’s very simple: it works by sharing a YouTube video URL with the app or googling the video (for instance, go to google.com and type “YouTube lindsey”).

Unfortunately, Google removed this app from Google Play, so it’s archived here.

Historical Note: This APK was built for legacy Android 2.2 (Froyo) devices in 2014; modern Android versions and current TLS/YouTube APIs have evolved considerably since then.

Download

AWS lowers cloud pricing by launching the T2 instance type that can burst to handle occasional workload spikes

Amazon Web Services cloud platform logo

T2 instances are Burstable Performance Instances that provide a baseline level of CPU performance with the ability to burst above the baseline. The baseline performance and ability to burst are governed by CPU Credits. Each T2 instance receives CPU Credits continuously at a set rate depending on the instance size.  T2 instances accrue CPU Credits when they are idle, and use CPU credits when they are active.  T2 instances are a good choice for workloads that don’t use the full CPU often or consistently, but occasionally need to burst (e.g., web servers, developer environments, and small databases).

Continue reading

htop

htop Linux interactive system monitor logo

htop is an interactive text-mode system-monitor process viewer for GNU/Linux. It aims to be a better ‘top’. It shows a frequently updated list of the processes running on a computer, normally ordered by the amount of CPU usage. Unlike top, htop provides a full list of processes running, instead of the top resource-consuming processes. htop uses color and gives visual information about processor, swap and memory status.

Continue reading

Simplify your life with an SSH config file and ClusterSSH

Secure Shell (SSH) client-server encrypted connection icon

If you’re anything like me, you probably log in and out of a half dozen remote servers on a daily basis. And if you’re even more like me, you have trouble remembering all of the various usernames, remote addresses and command line options for things like specifying a non-standard connection port or forwarding local ports to the remote machine. And if you sometimes have to do the same thing across many servers, this post is for you.

Continue reading

Apache: restrict access based on IP address to selected directories

apacheThe Apache web server lets you control access based on various conditions. For example, suppose you want to restrict access to http://subdomain.domain.com/ (mapped to the /var/www/subdomain directory) from the 192.168.1.0/24 network (within an intranet).

Apache provides access control based on client hostname, IP address, or other characteristics of the client request using mod_authz_core in Apache 2.4 (or mod_authz_host / mod_access in legacy Apache 2.2).

Continue reading

How to solve “Falling back to the standard locale” in Ubuntu

ubuntuSometimes you may get an error like this:

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_PAPER = “pt_BR.UTF-8”,

LC_ADDRESS = “pt_BR.UTF-8”,

LC_MONETARY = “pt_BR.UTF-8”,

LC_NUMERIC = “pt_BR.UTF-8”,

LC_TELEPHONE = “pt_BR.UTF-8”,

LC_IDENTIFICATION = “pt_BR.UTF-8”,

LC_MEASUREMENT = “pt_BR.UTF-8”,

LC_TIME = “pt_BR.UTF-8”,

LC_NAME = “pt_BR.UTF-8”,

LANG = “en_US.UTF-8”

are supported and installed on your system.

perl: warning: Falling back to the standard locale (“C”).

Click Continue reading to see how to fix this!

Continue reading

Powerful Redmine in AWS

In this post I will show how to install Redmine on AWS using several useful AWS services (EC2, RDS, S3, SES, ElastiCache) and make it auto-scalable.

Historical Note (2014): This walkthrough originally targeted Ubuntu 14.04 LTS (PV), Ruby 2.x, and Redmine 2.5. Inline corrections below fix command typos, YAML indentation, Apache XML tags, and insecure defaults for anyone referencing the architecture today.

Redmine

Continue reading