Saturday, October 22, 2016

Raspbian: Script For Synchronizing Date & Time And Updating All Packages (for beginners)

Raspbian: Script For Synchronizing Date & Time And Updating All Packages (for beginners)



Here is my system-update.sh script which able to do these operations:
  • synchronize date & time (DTS) via NTP;
  • write synchronized DTS to my RTC (DS3221) *;
  • update all installed packages.
* - if you want to know how to attach DS3231 (RTC) to your RPi you can read my post Installing hardware RTC (DS3231) to Raspberry Pi

Thursday, October 20, 2016

Названия месяцев на украинском

Названия месяцев на украинском


Напоминалка для забывающих...

Так сложилось, что я понимаю украинский, могу писать и говорить (только медленно), но названия месяцев выучить не могу - вылетают из головы. Думаю эта напоминалка пригодится не только мне, но и другим людям.

January - Январь - Січень         

Sunday, July 24, 2016

sdelete utility for Linux

sdelete utility for Linux



Preamble

As you know, when you deleting file it's does not delete actually from HDD. On some systems you can restore file by using some special utilities. But what do you need to do when you want delete your file permanently and secure? You can use special utilities.

Saturday, July 23, 2016

Vim editor (Linux) tips and tricks!

Vim editor (Linux) tips and tricks!


As you know, some beginner users have many questions about Vim editor. Most popular is "How to close vim editor in linux without saving". So, this document can be like Bible for beginner users

Wednesday, November 11, 2015

Redmine email notifications. Documentation vs Reality

Redmine email notifications. Documentation vs Reality


Problem


You want setup email notifications for Redmine which run's under Debian Jessie. So, you going Aministration-Settings-Email notifications and see notification which says that you need go and edit /etc/redmine/<instance>/configuration.yml file. And you going into /etc/redmine and looking for your instance (default in most cases) and you can't find any configuration.yml

It's sad.

Let's fix it!

Installing Redmine on Linux Debian (Jessie) with Nginx + Thin

Installing Redmine on Linux Debian (Jessie) with Nginx + Thin


Problem


If you tried to install Redmine with Nginx you know that it's very interesting task.

Let's solve this task.

This document based on "Installing Redmine with MySQL Thin and Redmine on Debian Squeeze" and fixes few issues with base document

Also, you can find some useful tricks here:

https://github.com/perusio/redmine-nginx


Friday, October 23, 2015

Fix for accident nginx remove

Fix for accident nginx remove


Problem


I accidentally removed nginx from my Linux Server (Debian Jessie). I did it after my experiments with phusion passenger. I made:

$ sudo rm -rf /etc/nginx
$ sudo rm  /etc/init.d/nginx

And yes, I know that I made a stupid thing :)

After installing nginx by

$ sudo apt-get install nginx


I was able to run it. Test run

$ sudo nginx -t

output:

nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed


See details for solution...

Thursday, October 22, 2015

Resetting a forgotten MySQL root password

Resetting a forgotten MySQL root password


Problem


 You forgot you root MySQL password :)

Solution 


First, we need stop MySQL daemon:

$ sudo /etc/init.d/mysql stop

Also, we can use service command:

$ sudo service mysql stop

Wednesday, October 14, 2015

Pillow library install issue for RPi (running Raspbian)



Pillow library install issue for RPi 2 (running Raspbian)

Problem


I found little issue till Pillow installing (via pip for newly installed Python 3.5 to the almost clear RPi 2 (mod. B) running Raspbian):

ValueError: --enable-jpeg requested but jpeg not found, aborting. 

My Raspbian version (information retrieved by running $ uname --all):

Linux rpi-number08 4.1.10-v7+ #821 SMP PREEMPT Sat Oct 10 00:16:28 BST 2015 armv7l GNU/Linux

Building Python 3.5 on Raspberry Pi 2 (Raspbian)

Building Python 3.5 on Raspberry Pi 2 (Raspbian)


1. Problem



Problem: we want use the latest version of Python to run Flask and other fun stuff on our RPi 2 (mod. B). But only old version of Python (3.2) supported by apt-get.

We need to build and install our own build of latest Python release! So, our target will be Python 3.5.

Also, you may want to know What’s New In Python 3.5

UPD! You can follow procedures for Python 3.6 installation by following Building Python 3.6 on Raspberry Pi 3 from sources (clean Debian)