របៀបប្តូរ​ time zone ពីខំម៉ាន​ឡាញ​ក្នុង​អ៊ូប៊ុនធូ

ថ្ងៃ​នេះ ខ្ញុំ​បានទទួល Odroid-C2 ដែល​បាន​ទិញ​ពី​ Hardkernel កាលពីអាទិត្យ​មុន។ OS ដែល​អាច​ដើរលើ​វាបាន ​ក្នុង​ពេលនេះ​​ មាន​តែ Ubuntu Mate 16.04 LTS ដែល​ជាបេតា នៅឡើយ។ Time zone ដែល​មាន​ស្រាប់ជាដើម​គឺ EST (American Eastern Standard Time)។​ ខ្ញុំ​ត្រូវការ AEST (Australian Eastern Standard Time) ព្រោះខ្ញុំ​នៅ​ស៊ីដនី។ នេះ​ជាខំម៉ាន​ដែល​អាចប្តូរ Time zone បាន ដោយ​វាយ ពី ធើរមិណល់។ មុន​ដំបូង ឆែក​មើលមុនសិន៖ odroid64:~# date Fri Mar 11 08:13:04 EST 2016 ប្រើខំមាន នេះ​ដើម្បី​ប្តូរ​ time zone៖ odroid64:~# dpkg-reconfigure tzdata ជ្រើសយក​ប្រទេស រួច​ទីក្រុង។​ នេះជាលទ្ធផល៖ Current default time zone: 'Australia/Sydney' Local time is now: Sat Mar 12 00:13:57 AEDT 2016. Universal Time is now: Fri Mar 11 13:13:57 UTC 2016. Reference: ...

March 11, 2016 · 1 min · 85 words · kenno

Fedora 23: Ansible util.am_i_root():NameError: global name 'util' is not defined

If you see a similar error message as the following when running Ansible on a Fedora 23 machines, there is an easy fix. It is very likely that a package “python2-dnf” is missing. This package is required for Python script to interact with DNF package manager. There is a good article available at fedoramagazine.org about running Ansible on Fedora 23. (I only found this later, and it’s very informative.)

February 28, 2016 · 1 min · 69 words · kenno

Mouse not working in Xorg on FreeBSD

After installing Mate desktop environment on a fresh FreeBSD 10.2 box, mouse was not working. This is what I have in my /etc/rc.conf: ... moused_enable="YES" hald_enable="YES" dbus_enable="YES" Some suggests that the order of hald and dbus to be swapped around. I tried that, and it still didn’t work. A bit of more Googlings, I found out a working solution [1]. I need to install: xf86-input-mouse. Here’s how I did it: # portmaster x11/drivers/xf86-input-mouse And that was all required. If your keyboard is not working in Xorg, you might want to also install xf86-input-keyboard. ...

February 19, 2016 · 1 min · 105 words · kenno

Upgrading STM32F4-Discovery Firmware on Linux

Not too long ago, upgrading firmware on STM32F4-Discovery board required it to be performed on a Windows machine. That annoyed the heck a lot of people, myself included. There’s a very good news for Linux and Mac users. Now, you can do it from your favorite OSes. Since I’m so excited about this, here’s a short article on how to do just that. First download “STSW-LINK007” from <www.st.com/web/en/catalog/tools/PF260217>. At the time of this writing the file is called: stsw-link007.zip. ...

January 25, 2016 · 1 min · 210 words · kenno

PostgreSQL: Drop a database which has a hyphen in name

Normally to drop a database in PostgreSQL, we can just type: DROP DATABASE database; Here’s a list of my current databases: postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -------------+-----------+----------+-------------+-------------+----------------------- dashboard | dashboard | UTF8 | en_US.UTF-8 | en_US.UTF-8 | postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | postgres-db | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | puppetdb | puppetdb | UTF8 | en_US.UTF8 | en_US.UTF8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres (6 rows) I want to drop a database named postgres-db. So, let’s try to drop it: ...

January 22, 2016 · 1 min · 185 words · kenno