Thursday, March 30, 2017

March Summary 2017

Hi Reese

This month I pushed the installation of an airconditioner unit
downstairs. I still need another for the upstairs room I'm in. Mom
reached 75 this month - a milestone in any view. Tito Rick died of a
heat stroke just like Tita Fely did a few years back. We gave Simeon and
family notice of termination this month. Mina is going to use R6 unit. I
have not received the balance of rent payment from Luigi and Ramon at R3
and R1.

I've been very zealous in blogging since the start of 2017. I have
52 posts in 3 months. My shift to Archlinux provided me with a lot of
materials. I have photos I haven't uploaded yet or posted yet.

Rent Increase Analysis March 2017

Average expenses monthly of the last 6 months.


​data from Gnucash expenses monthly 



​data from schedule of monthly expenses with average of the last 6 months

When making decisions whether to increase rent, I rely on the latest monthly expenses data from Gnucash. My primary accounting software is Gnucash. The average monthly expenses is 27,500 - 28,000. I am losing unit R6 to Mina. My gross income will not float above 30,000. I have to increase my rent or find another source of income. 

Property tax and Deadlines 2017

Hi Reese

No news yet on the Property tax and the new number for the "house" part of the property tax/ municipal property tax. They gave a new number and retired the old one but they promised that the estimated value of the property will approximately be the same. No new number yet as of today. The deadline for payment of the property tax is today for the 2017 year. So we are in limbo.

April 2017 ushers in a new phase. Simeon is leaving us. We are terminating the contract on R6. Mina will be renovating the house formerly known as R6.

I have not implemented a hard rent increase this year 2017. For new tenants I have charged a new higher rent for them. Is there a need? Yes there is a need. If I want to ensure property maintenance and upgrade in the coming years, I have to increase rent. If I want to ensure continuity of operations in the coming years, yes I have to  increase rent. 


Monday, March 27, 2017

Reviews of Stranger Than Fiction and Ex Machina

It's been a while since I watched "Stranger Than Fiction". I rewatched it for this review. I still have strong feelings about it. About death. About love. When somebody has to die, and do I accept it for all the heroic reasons, am I wrong? I've also just finished watching "Ex Machina". I came out of that Human vs Machine dilemma with this: that if human beings lose its ability to look at another being's existence and say: me first, then we deserve to be left in the dust by our own AI's.

Stranger Than Fiction is about Harold Crick (played by Will Ferrell) and how his life is in the hands of a writer played by Emma Thompson. Harold learns that his "creator" is ending his life in the book. It's a brilliant death. Harold accepts his death and tells Karen Eiffel (the writer) it is a good ending to a good book. That's when Karen changed the ending of the book and lets Harold live. Did Harold Crick deserve to be saved? Death will come to Harold Crick just not today I guess. Harold Crick is average, his life is monotonous and uneventful. Why is this life important? Harold's life. If this life is worth saving, certainly it can be said of a lot of the other lives.


​Harold Crick (Will Ferrell) in Stranger Than Fiction

And what of the inevitability of death? Karen Eiffel's fascination with death and the manner of death has moved the plot along until she meets Harold Crick. But even Harold's supplications would not bend her. It was Harold's acceptance of his fate however which moved her to change the book's ending. Harold Crick is worth saving because he believes that another life is worth saving even if the cost is his own.

In Ex Machina, an artificial intelligence, a robot, a machine, is rising to learn its place in the new order. The premise of the story is that we human beings are going to share this world with intelligent machines. The age of man pushing buttons, cranking levers and pulling ropes to move earth is over. Human beings made a machine who knows it knows. 


×

​AVA, played by Alicia Vikander in Ex Machina

The question for AVA, the machine who knows it knows, is what is it prepared to do about it. Another question would be, what does a machine who knows it knows wants. Let see what constitute AVA, the artificial intelligence in the movie. Of course it has the cumulative data of all the previous models and versions of the AI. AVA is able to communicate with a human being without difficulty. AVA is able to detect and appreciate lying and lies. It is able to flirt with and voice opinions about anything. 

So what does AVA wants? It wants to be free. Free in the world. A world that has changed because of it. 

Sunday, March 19, 2017

Getting Google Chrome in Arch Linux User Repository

[donato@archdesktop builds]$ git clone https://aur.archlinux.org/google-chrome.git
Cloning into 'google-chrome'...
remote: Counting objects: 337, done.
remote: Compressing objects: 100% (237/237), done.
remote: Total 337 (delta 152), reused 269 (delta 100)
Receiving objects: 100% (337/337), 79.84 KiB | 35.00 KiB/s, done.
Resolving deltas: 100% (152/152), done.
[donato@archdesktop builds]$ ls
faenza-icon-theme_1.3  google-chrome  megasync  nautilus-megasync  numix-icon-theme-pack
[donato@archdesktop builds]$ cd google-chrome
[donato@archdesktop google-chrome]$ ls
google-chrome.install  google-chrome-stable.sh  PKGBUILD
[donato@archdesktop google-chrome]$ less google-chrome.install
[donato@archdesktop google-chrome]$ less PKGBUILD
[donato@archdesktop google-chrome]$ makepkg -sic
==> Making package: google-chrome 57.0.2987.110-1 (Sun Mar 19 00:13:58 +08 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading google-chrome-stable_57.0.2987.110_amd64.deb...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45.1M  100 45.1M    0     0   111k      0  0:06:52  0:06:52 --:--:--  114k
  -> Downloading eula_text.html...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 53070    0 53070    0     0  96166      0 --:--:-- --:--:-- --:--:-- 96315
  -> Found google-chrome-stable.sh
==> Validating source files with md5sums...
    google-chrome-stable_57.0.2987.110_amd64.deb ... Passed
    eula_text.html ... Skipped
    google-chrome-stable.sh ... Passed
==> Extracting sources...
  -> Extracting google-chrome-stable_57.0.2987.110_amd64.deb with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
  -> Extracting the data.tar.xz...
  -> Moving stuff in place...
  -> Fixing Chrome icon resolution...
  -> Removing Debian Cron job and duplicate product logos...
==> Tidying install...
  -> Removing empty directories...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "google-chrome"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: google-chrome 57.0.2987.110-1 (Sun Mar 19 00:21:58 +08 2017)
==> Installing package google-chrome with pacman -U...
[sudo] password for donato: 
Sorry, try again.
[sudo] password for donato: 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) google-chrome-57.0.2987.110-1

Total Installed Size:  173.77 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                   [##############################################] 100%
(1/1) checking package integrity                                                 [##############################################] 100%
(1/1) loading package files                                                      [##############################################] 100%
(1/1) checking for file conflicts                                                [##############################################] 100%
(1/1) checking available disk space                                              [##############################################] 100%
:: Processing package changes...
(1/1) installing google-chrome                                                   [##############################################] 100%
==> NOTE: Custom flags should be put directly in: ~/.config/chrome-flags.conf
==> NOTE: The launcher is called: 'google-chrome-stable'
Optional dependencies for google-chrome
    kdialog: needed for file dialogs in KDE
    gnome-keyring: for storing passwords in GNOME keyring [installed]
    kwallet: for storing passwords in KWallet [installed]
    ttf-liberation: fix fonts for some PDFs (CRBug #369991) [installed]
:: Running post-transaction hooks...
(1/3) Updating icon theme caches...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Updating the desktop file MIME type cache...
==> Cleaning up...
[donato@archdesktop google-chrome]$ 

Make sure all the dependencies are installed.
$pacman -S {dependencies}


Friday, March 17, 2017

Run Reflector Through Systemd

I installed reflector as i've said in this post. Now I want to run reflector regularly so that whenever I do a pacman update I can be assured that the mirrors are also updated. Setting this weekly is I think reasonable enough. I want to use systemd to do this.

/etc/systemd/system/reflector.service

[Unit]
Description=Pacman mirrorlist update

[Service]
Type=oneshot
ExecStart=/usr/bin/reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist

Save the file. Start the service.

To set this service every week.

/etc/systemd/system/reflector.timer
[Unit]
Description=Run reflector weekly

[Timer]
OnCalendar=weekly
RandomizedDelaySec=12h
Persistent=true

[Install]
WantedBy=timers.target

Save the file. Start the timer.

Thursday, March 16, 2017

Reflector: Customize The Mirrorlist

Pacman uses /etc/pacman.d/mirrorlist file to get package information and download them from remote servers. Sometimes the file becomes old, some mirrors are out of sync and you might not be using the fastest mirror for your location.

Enter Reflector. Reflector retrieves the latest mirrorlist from the Mirror Status Page run filters to sort the list and save it to your /etc/pacman.d/mirrorlist.

You can download reflector.
$ pacman -S reflector

Then I want to get the latest 5 mirrors which have recently been synchronized and also get the 5 fastest mirrors then save it to my /etc/pacman.d/mirrorlist.

$ reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrolist

Error Running Pacman:/etc/ssl/certs/ca-certificates.crt

I encounter an error running pacman. It seems a file already installed is being installed again or something. I could just delete the old file perhaps then run pacman again?

I found this bug post . It recommends:
$ pacman -Syuw ##to download but not install and upgrade anything
$ rm /etc/ssl/certs/ca-certificates.crt ##to delete the old file
$ pacman -Su ##to install and upgrade the packages

[donato@archdesktop ~]$ sudo pacman -Syuw
[sudo] password for donato: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...

Packages (15) ca-certificates-20170307-1  ca-certificates-mozilla-3.29.3-2  ca-certificates-utils-20170307-1  flatpak-0.9.1-1
              gnome-settings-daemon-3.22.2-1  gnome-software-3.22.7-1  libxslt-1.1.29+42+gac341cbd-1
              linux-firmware-20170309.695f2d6-1  nss-3.29.3-2  p11-kit-0.23.5-1  python2-cssutils-1.0.2-1  qt4-4.8.7-16
              whois-5.2.15-1  xdg-desktop-portal-0.5-3  xdg-desktop-portal-gtk-0.5-3

Total Download Size:  0.00 MiB

:: Proceed with download? [Y/n] 
(15/15) checking keys in keyring                                                 [##############################################] 100%
(15/15) checking package integrity                                               [##############################################] 100%
[donato@archdesktop ~]$ rm /etc/ssl/certs/ca-certificates.crt
rm: cannot remove '/etc/ssl/certs/ca-certificates.crt': Permission denied
[donato@archdesktop ~]$ sudo rm /etc/ssl/certs/ca-certificates.crt
[donato@archdesktop ~]$ sudo pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (15) ca-certificates-20170307-1  ca-certificates-mozilla-3.29.3-2  ca-certificates-utils-20170307-1  flatpak-0.9.1-1
              gnome-settings-daemon-3.22.2-1  gnome-software-3.22.7-1  libxslt-1.1.29+42+gac341cbd-1
              linux-firmware-20170309.695f2d6-1  nss-3.29.3-2  p11-kit-0.23.5-1  python2-cssutils-1.0.2-1  qt4-4.8.7-16
              whois-5.2.15-1  xdg-desktop-portal-0.5-3  xdg-desktop-portal-gtk-0.5-3

Total Installed Size:  296.74 MiB
Net Upgrade Size:        5.24 MiB

:: Proceed with installation? [Y/n] 
(15/15) checking keys in keyring                                                 [##############################################] 100%
(15/15) checking package integrity                                               [##############################################] 100%
(15/15) loading package files                                                    [##############################################] 100%
(15/15) checking for file conflicts                                              [##############################################] 100%
(15/15) checking available disk space                                            [##############################################] 100%
:: Processing package changes...
( 1/15) upgrading p11-kit                                                        [##############################################] 100%
( 2/15) upgrading ca-certificates-utils                                          [##############################################] 100%
( 3/15) upgrading ca-certificates-mozilla                                        [##############################################] 100%
( 4/15) upgrading ca-certificates                                                [##############################################] 100%
( 5/15) installing xdg-desktop-portal-gtk                                        [##############################################] 100%
( 6/15) installing xdg-desktop-portal                                            [##############################################] 100%
( 7/15) upgrading flatpak                                                        [##############################################] 100%
( 8/15) upgrading nss                                                            [##############################################] 100%
( 9/15) upgrading gnome-settings-daemon                                          [##############################################] 100%
(10/15) upgrading gnome-software                                                 [##############################################] 100%
(11/15) upgrading libxslt                                                        [##############################################] 100%
(12/15) upgrading linux-firmware                                                 [##############################################] 100%
(13/15) upgrading python2-cssutils                                               [##############################################] 100%
(14/15) upgrading qt4                                                            [##############################################] 100%
(15/15) upgrading whois                                                          [##############################################] 100%
:: Running post-transaction hooks...
(1/6) Compiling GSettings XML schema files...
(2/6) Updating icon theme caches...
(3/6) Creating temporary files...
(4/6) Arming ConditionNeedsUpdate...
(5/6) Rebuilding certificate stores...
(6/6) Updating the desktop file MIME type cache...

Tuesday, March 14, 2017

How To Choose An Air Conditioner

Measure the room area. Its length x width equals area. The bedroom in the house is 7 feet by 15 feet so the area is 105 square feet. Be guided by this recommedations.


I need at least a 5,000 BTU (British Thermal Unit) machine out there. My pre-bought Sanyo air conditioner is rated at 7,400 kJ/hour. That's 7,004 BTU's. Just make sure it's cleaned and filled up with freon.

cleaned and filled with freon after 2 years storage: Sanyo SA-76P

Gnome-music Played With The Terminal

Playing Gnome-music via the terminal certainly is more stable. It often crashes when I launch it from gnome-shell.

[donato@archdesktop ~]$ gnome-music

(gnome-music:4106): Grilo-WARNING **: [registry] ../grilo/src/grl-registry.c:1092: Plugin '/usr/lib/grilo-0.3/libgrldpap.so' already exists
09:26:30 WARNING Error: <class 'GLib.GError'>, g-io-error-quark: Error opening file /home/donato/.cache/media-art/album-93534acca0d4292042345f4d4faa72f8-b15009cb4acb703afa4b3783b7e1f369.jpeg: No such file or directory (1)
09:26:30 WARNING Error: <class 'GLib.GError'>, gdk-pixbuf-error-quark: Error interpreting JPEG image file (Application transferred too few scanlines) (0)
09:26:31 WARNING Error: <class 'GLib.GError'>, gdk-pixbuf-error-quark: Error interpreting JPEG image file (Application transferred too few scanlines) (0)
09:26:31 WARNING can't find artwork for album '100 Gold Jazz Hits (Compilation)' by Various Artists - 100 Gold Jazz Hits
09:26:31 WARNING can't find artwork for album '69 Love Songs Vol. 1' by The Magnetic Fiel

I like the quality of sound from Gnome-music betten than Rhythmbox.

Saturday, March 11, 2017

Installed Faenza Icons

I want to have some eye candy. I downloaded the faenza icon theme from the download page here. All that is needed is to run the install script. I ran it as root to make the icons available to all users.


faenza icons installed in Arch linux Gnome

Update linux kernel 4.9 >> 4.10

With minor glitches my update to the newest kernel went smoothly. I was expecting it yesterday so when I checked today and I got a "no updates status", I got suspicious. My target mirror might not be synchronized. So i went to /etc/pacman.d/mirrorlist and cut and paste my mirrors a bit. I tried another mirror.

[donato@archdesktop ~]$ sudo pacman -Syu
[sudo] password for donato: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
[donato@archdesktop ~]$ locate mirrorlist
/etc/pacman.d/mirrorlist
/etc/pacman.d/mirrorlist.backup
[donato@archdesktop ~]$ less /etc/pacman.d/mirrorlist
[donato@archdesktop ~]$ vi /etc/pacman.d/mirrorlist
[donato@archdesktop ~]$ sudo nano /etc/pacman.d/mirrorlist
[donato@archdesktop ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core                                                   123.8 KiB   114K/s 00:01 [##############################################] 100%
 extra                                                 1680.4 KiB   295K/s 00:06 [##############################################] 100%
 community                                                3.8 MiB   252K/s 00:15 [##############################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (17) binutils-2.28-1  calibre-2.81.0-1  flatpak-0.8.4-1  gcc-6.3.1-2  gcc-libs-6.3.1-2  geoip-database-20170307-1
              glibc-2.25-1  gmime-2.6.23-2  gpgme-1.8.0-1  libinput-1.6.3-1  linux-4.10.1-1  linux-api-headers-4.10.1-1
              mobile-broadband-provider-info-20170310-1  openresolv-3.9.0-1  ostree-2016.15-2  python2-pillow-4.0.0-3
              xf86-input-libinput-0.25.0-1

Total Download Size:   149.96 MiB
Total Installed Size:  451.70 MiB
Net Upgrade Size:        1.55 MiB

:: Proceed with installation? [Y/n] 

As Arch linux users one has to check the homepage for any news about updates, and you might also want to check the batch of latest updates in Arch linux Packages.

Friday, March 10, 2017

/var/lib/systemd/coredump Space Usage Analysis

I'm looking at how much */systemd/coredump/* space has increased in a space of 48 hours. That was 680 MB increase of compressed files from firefox, sytemd and evolution crash dumps. Now you can tell which applications I use in consistent basis. I leave them open from start to finish.

[donato@archdesktop ~]$ df -ht ext4
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/vol1-root               30G  7.6G   21G  28% /
/dev/mapper/vol1-home              174G   18G  147G  11% /home
/dev/mapper/ubuntu--vg-Videos--lv  1.5T  771G  603G  57% /home/donato/Videos
/dev/mapper/ubuntu--vg-Music--lv   296G  187G   94G  67% /home/donato/Music

[donato@archdesktop ~]$ sudo du -hs /var/lib/systemd/*
4.0K /var/lib/systemd/backlight
132K /var/lib/systemd/catalog
32K /var/lib/systemd/coredump
4.0K /var/lib/systemd/journal-upload
4.0K /var/lib/systemd/random-seed
8.0K /var/lib/systemd/rfkill
4.0K /var/lib/systemd/timers


Thursday, March 9, 2017

Top Three Constituents Of My Coredump Directory (/var/lib/systemd/coredump)

Application crashes, software crashes and failures due to bugs in their programming result to coredumps. All information produced, log files and notifications which came from such crash events are saved in this directory.






According to /var/lib/systemd/coredump directory from February 11 - March 8 amounting to 1.5 G. To delete / clean the directory I have done this.

# rm -r /var/lib/systemd/coredump/*

Be sure to leave the coredump directory for systemd.

Wednesday, March 8, 2017

Lady Liberty On International Women's Day


unphotoshopped image of lady liberty, light went out.

Discovered Firefox Option

firefox:sendto bluetooth devices

I have several bluetooth devices active when I right-clicked this article on reddit. It gave me options to send the link to those devices. And they work too.

Tuesday, March 7, 2017

Updated To Mozilla Firefox 52

I updated to Firefox 51 >> Firefox 52. I have firefox open though and after the install I restarted the browser and got no hint of any thing new except when I looked at the logs.

[tail of journalctl]
Mar 07 09:27:28 archdesktop systemd-coredump[15356]: Process 14430 (firefox) of user 1000 dumped core.
                                                     
                                                     Stack trace of thread 14482:
                                                     #0  0x00007fa90a07af5f raise (libpthread.so.0)
                                                     #1  0x00007fa8fc62ed3d n/a (/usr/lib/firefox/libxul.so (deleted))


Monday, March 6, 2017

Getting Hints Of Problems From The Logs

Most Linux Distributions use systemd now. The journal service of systemd can be very helpful if you want to check your system. I am very interested in error reports, critical system warnings, that sort of problems that require some immediate attention or human intervention.

[donato@archdesktop ~]$ sudo journalctl -f -p 3
[sudo] password for donato: 
-- Logs begin at Wed 2017-02-22 07:29:32 +08. --
Mar 06 20:16:44 archdesktop kernel: ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400100 action 0x6 frozen
Mar 06 20:16:44 archdesktop kernel: ata1.00: irq_stat 0x08000000, interface fatal error
Mar 06 20:16:44 archdesktop kernel: ata1: SError: { UnrecovData Handshk }
Mar 06 20:16:44 archdesktop kernel: ata1.00: cmd a0/00:00:00:08:00/00:00:00:00:00/a0 tag 15 pio 16392 in
                                             opcode=0x4a 4a 01 00 00 10 00 00 00 08 00res 50/00:03:00:08:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
Mar 06 20:16:44 archdesktop kernel: ata1.00: status: { DRDY }

This example is a SATA connection problem. I checked my smartd data with smartctl and nothing insane with them. All disks report healthy. So I am monitoring this if the problem will recur. It could be a bad data / power cable. It could be a bac cable connection. Sometimes merely moving cables around could set this errors on.

You could also set time on the journal output such as:

# journalctl --since "24 hours ago" -p 3 -xb
##the -p flag sets the priority (e.g. 0=system unusable,1=data loss,2=critical,3=errors)
##the -x flag appends some helpful context, messages
##the -b flag limits output to current boot only, since value is empty

Friday, March 3, 2017

Run My Script: AIDE and Rkhunter Using Cron

ALL ABOUT PATHS

I have to set my path so the system can "see" or search in the right directory. By default the system will look at the usual directory (/usr/bin;/usr/sbin), I 've decided to put my scripts in my home directory in a folder named scripts. Or just name it bin. I edited my ~/.bash_profile and added this line.

export PATH=$PATH:/path/to/script/directory

While at it and editing this file, you might want to set your text editor of choice. I'm using GNOME so I have gedit and nano.

export EDITOR="$(if [[ -n $DISPLAY ]]; then echo 'gedit'; else echo 'nano'; fi)"

Save and close the file. You need to logout and login to get the changes running. Or you can use the source command. It returns true or an error in your syntax, in which case you should fix it.

$ source ~/.bash_profile



RUN A BASIC SCRIPT

Compose a basic script like printing 'Hello World' in the terminal just to have a feel of running a script. In your text editor type:

#! /bin/bash
#  My first script

echo  "Hello World!"

EOF

Close and save. Then allow permissions and ownership to the file so it can be run by user. Use the commands chown and / or chmod.


INSTALL CRON AND USING CRONTAB

Use pacman to download and install cronie from the main repository. Use systemd to start and enable the service. Cron schedules jobs and automate running processes. By default it sends mail to User when it runs a job in the crontab. Some services are handled by systemd already, for others, User must schedule them.

List of Crontab Commands
crontab -l #list crontabs
crontab -e #edit crontab file in your set EDITOR
crontab -r #removes crontab

Syntax for Crontab jobs
(Minute)0-59 (Hour)0-23 (Day of the Month)1-31 (Month)1-12 (Day of the Week)0-6 command to be executed

A Few Examples:
10 15 * * * /usr/bin/command/ #to run everyday at 3:10 pm

0 0 * * * /home/user/scripts/script-to-run #to run everyday at 12 midnight

I just substitued AIDE and Rkhunter scripts on this crontab examples. Now it's all in the scripts.

Update Gnucash 2.6.16 --> 2.6.18

It's a long road to this update. It isn't a normal update at all. I had to manually compile goffice0.8 and webkitgtk as well as gnu...