Evolution Mail on GNOME 3.26

There’s a slight change in the user interface. A To Do column now appears to the rightmost after the GNOME 3.26 update. Also there’s a noticeable stability increase, what with goa-daemon stopping its RAM usage creep. I don’t have to kill it every couple of hours.

Advertisements

Adding A New Disk To A Raid part 1

I have a RAID 5 array for all my data files. Recently I bought a new 3TB Hitachi hard drive and that was December 2016. I’ve been delaying using it until now. I’ve got some idle time today and tomorrow so it’s perfect for hours and hours of syncing.

I’ve got new SATA data cables (the red ones) and the old power cables are still excellent. Used a philip screwdriver to fix the internal disks and tray. Turned on the computer.

[donato ~]$ ls -l /dev/ | grep sd
brw-rw—- 1 root disk 8, 0 Oct 6 17:46 sda
brw-rw—- 1 root disk 8, 1 Oct 6 17:48 sda1
brw-rw—- 1 root disk 8, 16 Oct 6 17:01 sdb
brw-rw—- 1 root disk 8, 17 Oct 6 17:01 sdb1
brw-rw—- 1 root disk 8, 18 Oct 6 17:01 sdb2
brw-rw—- 1 root disk 8, 32 Oct 6 17:01 sdc
brw-rw—- 1 root disk 8, 33 Oct 6 17:01 sdc1
brw-rw—- 1 root disk 8, 48 Oct 6 17:01 sdd
brw-rw—- 1 root disk 8, 49 Oct 6 17:01 sdd1
brw-rw—- 1 root disk 8, 64 Oct 6 17:01 sde

I want to see a list of all my devices and partitions to get the layout of my disks.

$sudo fdisk /dev/sda
Use fdisk to create a gpt table and create a partition.

$sudo fdisk -l /dev/sda
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F5255901-3E0B-47FE-A5CC-1FA421D88215

Device Start End Sectors Size Type
/dev/sda1 2048 5860533134 5860531087 2.7T Linux RAID

To add this device to my existing RAID, I used mdadm tool.

$man mdadm

$sudo mdadm –detail /dev/md127
##This is to get information on the current RAID array

This is a new disk but just to be sure you should check for any existing RAID info on the disk you are adding.
$sudo mdadm –examine /dev/sda1
##This is to check if the disk is clean or if it has been used in a RAID array before.

$sudo mdadm –manage /dev/md127 –add /dev/sda1
##This is to add the new disk to the RAID array. You should check the status of the array.
$sudo mdadm –detail /dev/md127

This is a RAID 5 array with pre-existing disk of 3 which is the required for level 5. The fourth disk would be added as a spare. You can stop here and my spare would be added automatically if one of the disks fail. But what if I want to activate and use the new disk right away?

Then I would have to modify the array. Specifically, I would have to grow the array.

$sudo mdadm –grow –raid-device=4 /dev/md127
##The RAID array will automatically start to sync the data over all the component devices and calculate parity and then write the data.

In my case, I have a total storage of 2TB x 2, 3TB x1, 1TB x1. mdadm has calculated that it will take just short of 6 hours to sync my data. Don’t worry you can use the computer while mdadm finish up the sync. Just don’t turn the computer off.

Rkhunter Set Up in systemd : Revisited

I made a post about setting up rkhunter using systemd. And little did I know it’s going to be a work in progress for weeks. But I have finally set up the service and timer units just right.

[donato ~]$ systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
Fri 2017-10-06 00:00:00 +08 16h left Thu 2017-10-05 00:00:20 +08 7h ago logrotate.timer logrotate.service
Fri 2017-10-06 00:00:00 +08 16h left Thu 2017-10-05 00:00:20 +08 7h ago man-db.timer man-db.service
Fri 2017-10-06 00:00:00 +08 16h left Thu 2017-10-05 00:00:20 +08 7h ago shadow.timer shadow.service
Fri 2017-10-06 00:00:00 +08 16h left Thu 2017-10-05 00:00:20 +08 7h ago updatedb.timer updatedb.service
Fri 2017-10-06 00:08:16 +08 16h left Thu 2017-10-05 04:28:45 +08 3h 15min ago rkhunter.timer rkhunter.service
Fri 2017-10-06 01:38:57 +08 17h left Wed 2017-10-04 19:12:48 +08 12h ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Mon 2017-10-09 08:46:49 +08 4 days left Mon 2017-10-02 19:37:22 +08 2 days ago reflector.timer reflector.service

7 timers listed.
Pass –all to see loaded but inactive timers, too.

donato@archdesktop ~]$ systemctl status rkhunter.service
● rkhunter.service – rkhunter rootkit scan and malware detection
Loaded: loaded (/etc/systemd/system/rkhunter.service; static; vendor preset: disabled)
Active: inactive (dead)
Docs: man:rkhunter
man:systemd.service
[donato@archdesktop ~]$

If I want rkhunter to start scanning at boot I should enable the service with:

$ systemctl enable rkhunter.service     #This will start rkhunter at boot.

Since I don’t want that behavior I’m disabling rkhunter.service. It won’t start at boot but will start when its timer elapse.

rkhunter update process fails in this instance, but the main process goes on at the elapse time set in the timer file. My tip with creating service and timer files in systemd is letting the default behavior take you where you want to go. So it’s a given that you know what those defaults are.

My current rkhunter.service file is:
[donato ~]$ systemctl cat rkhunter.service
# /etc/systemd/system/rkhunter.service
[Unit]
Description=rkhunter rootkit scan and malware detection
Documentation=man:rkhunter man:systemd.service

[Service]
ExecStartPre=-/usr/bin/rkhunter –update
ExecStartPre=-/usr/bin/rkhunter –propupd
ExecStart=/usr/bin/rkhunter –check -sk
SuccessExitStatus=1 2 8 SIGKILL TERM
[donato ~]$

My current rkhunter.timer file is:
[donato ~]$ systemctl cat rkhunter.timer
# /etc/systemd/system/rkhunter.timer
[Unit]
Description=Run rkhunter daily
Documentation=man:rkhunter man:systemd.timer

[Timer]
OnCalendar=*-*-* 00:00:00
RandomizedDelaySec=5h
WakeSystem=true
Persistent=true

[Install]

WantedBy=timers.target

In the systemd.timer file, Install Section, WantedBy=timers.target activates on boot and it activates rkhunter.timer on boot too. This behavior activates the timer but the service file remains inactive until the timer activates it on elapse time.

 

Update Gnome Desktop In Arch Linux

Gnome 3.26 starts its roll out to the stable channel users of Arch Linux.
Also updates for the linux kernel, dleyna-renderer and firefox. Firefox updates from 55 to 56 in the stable channel.

There are 166 packages ready for updates today.

$sudo pacman -Syu
:: Synchronizing package databases…
core is up to date
extra is up to date
community is up to date
DEB_Arch_Extra 1947.0 B 0.00B/s 00:00 [#######################] 100%
DEB_Arch_Extra.sig 280.0 B 0.00B/s 00:00 [#######################] 100%
:: Starting full system upgrade…
resolving dependencies…
looking for conflicting packages…

Packages (166) adwaita-icon-theme-3.26.0-1 aisleriot-3.22.3-1
at-spi2-atk-2.26.0-2 at-spi2-core-2.26.0-2 atk-2.26.0-1
baobab-3.26.1-1 cheese-3.26.0-1 dconf-0.26.1-1
dconf-editor-3.26.1-1 devhelp-3.26.0-1
dleyna-connector-dbus-0.3.0-1 dleyna-core-0.6.0-1
dleyna-renderer-0.6.0-1 dleyna-server-0.6.0-1 docbook-xml-4.5-6
docbook-xsl-1.79.2-3 eog-3.26.1-1 eog-plugins-3.26.1-1
epiphany-3.26.1-1 evince-3.26.0+14+g2a499547-1
evolution-3.26.1-1 evolution-data-server-3.26.1-1
file-roller-3.26.1-1 firefox-56.0-1 five-or-more-3.26.0-1
four-in-a-row-3.22.2+5+g9021ef9-1 gdk-pixbuf2-2.36.11-1
gdm-3.26.1-1 geocode-glib-3.25.4.1-1 gjs-1.50.1-1
glade-3.20.1-1 glib-networking-2.54.0-1 glib2-2.54.1-1
glib2-docs-2.54.1-1 glibmm-2.54.1-1 gmime3-3.0.2-1
gnome-2048-3.26.1-1 gnome-applets-3.24.1-3
gnome-backgrounds-3.26.2-1 gnome-bluetooth-3.26.0+1+g3875844-1
gnome-builder-3.26.1-1 gnome-calculator-3.25.92+11+g1e9e84b0-1
gnome-calendar-3.26.1-1 gnome-characters-3.26.1-1
gnome-chess-3.26.0-1 gnome-clocks-3.26.0-1
gnome-color-manager-3.26.0+3+g3620f9b-1
gnome-contacts-3.26+3+g643f622-1 gnome-control-center-3.26.1-1
gnome-desktop-1:3.26.1-1 gnome-devel-docs-3.26.0-1
gnome-dictionary-3.26.1-1 gnome-disk-utility-3.26.1-1
gnome-documents-3.26.1-1 gnome-font-viewer-3.26.0-1
gnome-getting-started-docs-3.26.1-1
gnome-klotski-3.22.2+4+ga445c76-1 gnome-logs-3.26.0+2+g9068aaa-1
gnome-maps-3.26.1-1 gnome-menus-3.13.3+29+g7f0844e-1
gnome-mines-3.26.0+5+g7f5a1e5-1 gnome-music-3.26.1-1
gnome-nettool-3.8.1+144+gdd04271-1
gnome-online-accounts-3.26.1-1 gnome-online-miners-3.26.0-1
gnome-photos-3.26.1-1 gnome-robots-3.22.2+3+ge5c72ee-1
gnome-screenshot-3.25.0+48+g7812e98-1 gnome-session-3.26.1-1
gnome-settings-daemon-3.26.1-1 gnome-shell-3.26.1-1
gnome-shell-extensions-3.26.1-1 gnome-sudoku-3.26.0+6+g0ffe857-1
gnome-system-monitor-3.26.0+1+g97b9578d-1 gnome-taquin-3.26.1-1
gnome-terminal-3.26.1-1
gnome-themes-standard-3.22.3+13+ga993fdc0-1 gnome-todo-3.26.1-1
gnome-tweak-tool-3.26.2.1-1 gnome-user-docs-3.26.1-1
gnome-weather-3.26.0-1 gobject-introspection-runtime-1.54.1-1
gom-0.3.3-1 grilo-0.3.4-1 grilo-plugins-0.3.5-1
gsettings-desktop-schemas-3.24.1+3+ge869987-1 gspell-1.6.0-1
gtk-doc-1.26+10+g01844e7-1 gtk-update-icon-cache-3.22.24-1
gtk3-3.22.24-1 gtk3-print-backends-3.22.24-1
gtkmm3-3.22.2+2+g3002ed86-1 gtksourceview3-3.24.4+11+g190037e9-1
gucharmap-10.0.2-1 gvfs-1.34.1-1 gvfs-afc-1.34.1-1
gvfs-goa-1.34.1-1 gvfs-google-1.34.1-1 gvfs-gphoto2-1.34.1-1
gvfs-mtp-1.34.1-1 gvfs-nfs-1.34.1-1 gvfs-smb-1.34.1-1
hitori-3.22.4-1 iagno-3.26.1-1 js52-52.3.0-1 json-glib-1.4.2-1
jsonrpc-glib-3.26.1-2 libchamplain-0.12.16-1 libdazzle-3.26.1-1
libgdata-0.17.9-1 libgdm-3.26.1-1
libgnome-games-support-1.2.3-1 libgnomekbd-3.26.0-1
libgtop-2.38.0+1+g487e584a-2 libgudev-232-1
libgweather-3.26.0-1 libnautilus-extension-3.26.0-1
libpeas-1.22.0-1 librsvg-2:2.40.19-1 libsoup-2.60.0-1
libvirt-3.8.0-1 lightsoff-3.26.0+2+g243e6e8-1 linux-4.13.4-1
meld-3.18.0-1 mutter-3.26.1-1 nautilus-3.26.0-1
networkmanager-openvpn-1.8.1dev+10+ge4d8cda-1 orca-3.26.0-1
pipewire-0.1.5+2+g8f67aa2-2 polari-3.26.1-1
pygobject-devel-3.26.0-1 python-atspi-2.26.0-1
python-babel-2.5.1-1 python-docutils-0.14-1
python-gobject-3.26.0-1 python-imagesize-0.7.1-2
python-jinja-2.9.6-1 python-markupsafe-1.0-1
python-pytz-2017.2-1 python-snowballstemmer-1.2.1-2
python-sphinx-1.6.4-1 python-sphinx-alabaster-theme-0.7.10-1
python-sphinx_rtd_theme-0.2.4-1
python-sphinxcontrib-websupport-1.0.1-1
python-sqlalchemy-1.1.14-1 python-whoosh-2.7.4-2
python2-gobject-3.26.0-1 rygel-0.36.0+2+gd80ae646-1
sdl2-2.0.6-2 source-highlight-3.1.8-13
swell-foop-3.26.0+1+g291e67d-1 sysprof-3.26.1-1
template-glib-3.26.1-2 totem-3.26.0+1+g4e309671-1
totem-plparser-3.26.0-1 tracker-2.0.1-1 tracker-miners-2.0.2-1
vala-0.38.1-1 vinagre-3.22.0+19+g5f615ff-1
vino-3.22.0+7+g74dd40f-1 vte-common-0.50.1-1 vte3-0.50.1-1
webkit2gtk-2.18.0-1 xmlsec-1.2.25-1 yelp-3.26.0-1
zenity-3.24.2-1

Total Download Size: 366.02 MiB
Total Installed Size: 1424.12 MiB
Net Upgrade Size: 182.42 MiB

:: Proceed with installation? [Y/n]

Once I boot back to the new desktop, the first thing that’s different is the system tray. Megasync client, artha and spotify player all use the system tray. They still work but you won’t find them in the tray because there’s none in Gnome 3.26.

 

America Must Evolve Fast Or Die

This was a music festival concert venue in Las Vegas, Nevada. A shooter in the 32nd floor of a nearby hotel across the general area opened fire then shot himself. He killed 59 people in what reports call the biggest mass shooting in modern American history to date.

America must learn from the lessons of previous mass shootings otherwise this tragedy will happen again. Reasonable animals evolve when their lives and the life of the pack or group are threatened. They change how they face the problem and not just move on. They don’t dismiss reality. They recognize the problem and listen to reason. For those who say nothing can be done, you’re wrong. There is something America can do. It is not premature to talk about gun control. This is the time to talk about it.

Provocative Politics

Rodrigo Duterte’s moves and speeches were designed to provoke opposition. Note the lack of protocol and utter gutter language. He wants to elicit a miscalculated response from those who oppose him in the last election and from the Catholic Church. His politics is built on harassing government officials sitting on the fence so to speak. He puts pressure on them to commit one way or the other. He was able to imprison Senator Leila Delima using very thin proof from convicted drug offenders. He wants an unwarranted, unbalanced response from his political foes. So far no one has taken the bait. Nevertheless he thrives on starting a fight in the school grounds among the kids. He’s a bully and knows all the dirty tricks.

Rodrigo Duterte’s allies in Congress namely, Koko Pimentel in the Senate and Speaker of the House Pantaleon Alvarez, have formed a majority block for the ruling parties. This means they control the House and the Senate, they have the chairmanships of the committees. Both the Senate President and the House Speaker are viewed as traditional politicians and Congress as mere rubber stamps.

Rodrigo Duterte challenged the Chief Justice Sereno and Ombudsman Carpio Morales both to let Congress adjudicate all their corruption cases. To which Ombudsman Carpio Morales replied she won’t be baited into abandoning her duties to the constitution. These two women are now the focus of Duterte’s political moves. But they were not his biggest headache. That prize belongs to Senator Sonny Trillanes. Senator Trillanes accused then candidate Duterte of hiding billions in a secret bank account, not reported in his Statement of Assets, Liabilities and Net Worth.

Indonesian Mass Killings 1965 And Rodrigo Duterte’s Drug War

Filipinos should learn and read more about the events surrounding the mass killings of communists and their sympathizers in 1965 Indonesia. Most estimates of the number who died at the hands of vigilantes and later from the army units used, state that 1,000,000 to 2,000,000 indonesians and ethnic chinese were killed. The exact number is not known because nobody investigated the crimes, the police never kept records. Some of the executions were public. Some were done with explicit agreement with authorities. Even the United States provided a list of communists to the authorities. Membership to the Communist Party of Indonesia was not secret. When the army came to get them, the communist voluntarily surrendered. Indonesians succumbed en masse to fake news that the communists are going to destroy their country. The hatred of communists were fanned by the indonesian army propaganda using the event of September 30.

The September 30 assassination of Sukarno’s top generals by militants professing support for Sukarno seems ironic enough that even Sukarno himself refused to commit to the militants movement. There was an uneasy coalition between the communists, military and religious sectors under Sukarno’s leadership. The act of these militants on September 30 1965 caused the Indonesian Army Reserves under Suharto to mobilize and start a propaganda campaign against the communists.

In the Philippines the administration of Rodrigo Duterte is waging a drug war using vigilantes. The estimate of people killed in the name of stopping the drug problem since Rodrigo Duterte’s presidency began is at 13,000. A neophyte senator, Leila Delima, is in prison for her links to the drug trade when she was a cabinet secretary in the previous administration. Leila Delima once investigated Duterte when as mayor of Davao City, he was accused of running a death squad. During the senate investigation of the Davao death squads, a witness, Edgar Matobato, testified on oath that Duterte himself run the death squads.

The Philippine Armed Forces has remained professional and steadfast on their duty to the constitution. Their officer corps are far from the officers during the martial law years of Marcos 1972- 1981. Marcos promoted officers loyal to him when he was president in 1969 to 1972 during his two terms as chief executive. The Armed Forces of the Philippines AFP today serves as backbone of a constitutional democracy. To be fair, former officers are now in Congress or serves in the executive in various positions.

Filipinos should note that in the entire martial law years of Marcos, killings were estimated at 3,000 to 4,000, while those who were imprisoned numbered 70,000. Rodrigo Duterte’s drug war is unique in its impunity and its bias against the poor. Most if not all of those who were killed in police operations are living in the poor sections of Manila and other cities.

Until today, the Indonesian Army don’t want to remember what happened in September 1965 to 1966. They have censored everything about the mass killings.