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 builds]$ ls
faenza-icon-theme_1.3 google-chrome megasync nautilus-megasync numix-icon-theme-pack
[donato builds]$ cd google-chrome
[donato google-chrome]$ ls
google-chrome.install google-chrome-stable.sh PKGBUILD
[donato google-chrome]$ less google-chrome.install
[donato google-chrome]$ less PKGBUILD
[donato 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 google-chrome]$

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

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.

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 ~]$ 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 ~]$ rm /etc/ssl/certs/ca-certificates.crt
rm: cannot remove ‘/etc/ssl/certs/ca-certificates.crt’: Permission denied
[donato ~]$ sudo rm /etc/ssl/certs/ca-certificates.crt
[donato ~]$ 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…
[donato ~]$

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 ~]$ 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.