FAQs

now browsing by category

 

Howto switch to another ruby version (temporarily, per project, or globally) using rbenv

undefined

As systems engineer, who setups and maintains different servers running Ruby On Rails applications ” testing, staging, and production servers”, I’ve many ruby versions installed on my machine and I’ve to switch between them when deploying new code of ROR apps to any of my servers. Why I’ve to switchRead More

How to remove/delete CTRL-M (^M) characters from text files in Linux and UNIX systems

undefined

In this mini post, I’ll show you some methods/options to remove CTRL-M (^M) blue carriage return characters from a file in Linux and UNIX systems. Here’s you’ll find the exact answer for the following questions: How to convert plain text files in DOS/MAC format to UNIX format? Newly created SSLRead More

How to remove duplicate lines from text files on Linux/UNIX systems

undefined

One day, I was preparing a blacklist to block the porn websites on a web proxy website called “anaproxy.com”. After checking the server access logs, I could extract all the accessed urls from it’s access log, I did some operations on the urls to extract only the domain “actually IRead More

How to Logrotate Ruby On Rails Application’s Logs On Linux Systems

undefined

In this post, I’ll show you how to successfully rotate your Ruby On Rails application’s logs using Logrotate on Linux systems. Log rotation is a very important process to save your servers disk space and guarantee a healthy working environment for Linux OS. This post is valid for both RPMRead More

Howto Fix/Solve Logrotate Complains About Insecure Permissions on Parent Directory on CentOS/RHEL Linux Systems

undefined

In this post, I’ll solve an annoying error appeared when I enabled logrotate on one of my apps running on CentOS 7 Linux systems. By default on CentOS/RHEL 7, the parent permissions on your log directories play a vital role in whether or not logrotate will be able/willing to processRead More

Howto change the encoding of text files in Linux systems

undefined

How many times did you want to change the encoding of a text files in Linux systems? or How many times did you try to watch a movie and it’s subtitles .srt  showed in unreadable shapes “characters” and you needed to change it to readable characters? Sure many times youRead More

Howto remove/fix “WARNING: terminal is not fully functional” in docker

undefined

How many times did you try to use  top command in docker container and it didn’t work? or How many times did you try to use vim or less command and it didn’t work properly? For me many times. Both me and you saw the following error/warning messages before andRead More

Howto import a database into a Docker container

undefined

Congrats! you’re migrating your works/development environments into Docker containers. This is a new start for you as a system/devops engineer, as docker will solve many issues you faced before due to packages conflicts and package’s releases conflicts. Here’s the issue I face and made my write the mini post, AfterRead More

Howto find and detect the encoding of text files in Linux systems

undefined

How many times did you want to find and detect the encoding of a text files in Linux systems? or How many times did you try to watch a movie and it’s subtitles .srt  showed in unreadable shapes “characters” ? All this because you are using a wrong encoding formatRead More

Howto remove / solve “ruby-build: definition not found or ruby version not found ” on Linux systems

undefined

In this mini post I’ll show you how to update your installed ruby version with a higher one not found by ruby-build  on Linux systems (Both RPM Family “Redhat / CentOS  / Scientific Linux and Debian Family “Debian / Ubuntu”). This mini post will solve this error message “ruby-build: definitionRead More