Friday, February 24, 2017

Systemd Status Output

Here's the very first time that a systemd status check yields ok across the board.

[donato@archdesktop ~]$ systemctl status
● archdesktop
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Fri 2017-02-24 08:42:27 PHT; 31min ago
   CGroup: /
           ├─user.slice
           │ ├─user-120.slice
           │ │ ├─user@120.service
           │ │ │ ├─pulseaudio.service
           │ │ │ │ └─764 /usr/bin/pulseaudio --daemonize=no
           │ │ │ ├─at-spi-dbus-bus.service
           │ │ │ │ ├─753 /usr/lib/at-spi2-core/at-spi-bus-launcher
           │ │ │ │ ├─758 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
           │ │ │ │ └─760 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
           │ │ │ ├─dbus.service
           │ │ │ │ └─691 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation
           │ │ │ ├─xdg-permission-store.service
           │ │ │ │ └─774 /usr/lib/flatpak/xdg-permission-store
           │ │ │ └─init.scope
           │ │ │   ├─672 /usr/lib/systemd/systemd --user
           │ │ │   └─675 (sd-pam)
           │ │ └─session-c1.scope
           │ │   ├─635 gdm-session-worker [pam/gdm-launch-environment]
           │ │   ├─689 /usr/lib/gdm/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
           │ │   ├─702 /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
           │ │   ├─738 /usr/bin/gnome-shell
           │ │   ├─747 /usr/bin/Xwayland :1024 -rootless -noreset -listen 4 -listen 5 -displayfd 6
           │ │   ├─783 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
           │ │   └─798 xbrlapi -q
           │ └─user-1000.slice
           │   ├─user@1000.service
           │   │ ├─gnome-terminal-server.service
           │   │ │ ├─2542 /usr/lib/gnome-terminal/gnome-terminal-server
           │   │ │ ├─2548 bash
           │   │ │ ├─2561 systemctl status
           │   │ │ └─2562 less
           │   │ ├─obex.service
           │   │ │ └─1469 /usr/lib/bluetooth/obexd
           │   │ ├─pulseaudio.service
           │   │ │ └─1027 /usr/bin/pulseaudio --daemonize=no
           │   │ ├─gvfs-gphoto2-volume-monitor.service
           │   │ │ └─1100 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
           │   │ ├─at-spi-dbus-bus.service
           │   │ │ ├─1016 /usr/lib/at-spi2-core/at-spi-bus-launcher
           │   │ │ ├─1021 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
           │   │ │ └─1023 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
           │   │ ├─dbus.service
           │   │ │ ├─ 954 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation
           │   │ │ ├─1035 /usr/lib/gnome-shell/gnome-shell-calendar-server
           │   │ │ ├─1046 /usr/lib/gnome-online-accounts/goa-daemon
           │   │ │ ├─1048 /usr/lib/dconf/dconf-service
           │   │ │ ├─1074 /usr/lib/gnome-online-accounts/goa-identity-service
           │   │ │ ├─1076 /usr/lib/telepathy/mission-control-5
           │   │ │ ├─1674 gpg-agent --homedir /home/donato/.gnupg --use-standard-socket --daemon
           │   │ │ └─2242 /usr/lib/GConf/gconfd-2
           │   │ ├─gvfs-udisks2-volume-monitor.service
           │   │ │ └─1083 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
           │   │ ├─evolution-calendar-factory.service
           │   │ │ ├─1127 /usr/lib/evolution-data-server/evolution-calendar-factory
           │   │ │ ├─1135 /usr/lib/evolution-data-server/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Ba
           │   │ │ ├─1148 /usr/lib/evolution-data-server/evolution-calendar-factory-subprocess --factory caldav --bus-name org.gnome.evolution.dataserver.Subprocess.Back
           │   │ │ ├─1190 /usr/lib/evolution-data-server/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backe
           │   │ │ └─1224 /usr/lib/evolution-data-server/evolution-calendar-factory-subprocess --factory gtasks --bus-name org.gnome.evolution.dataserver.Subprocess.Back
           │   │ ├─gnome-user-share-webdav.service
           │   │ │ ├─1193 /usr/lib/gnome-user-share/gnome-user-share-webdav
           │   │ │ ├─1271 /usr/bin/httpd -f /usr/share/gnome-user-share/dav_user_2.4.conf -C Listen 42661 -D RequirePasswordAlways
           │   │ │ ├─1272 /usr/bin/httpd -f /usr/share/gnome-user-share/dav_user_2.4.conf -C Listen 42661 -D RequirePasswordAlways
           │   │ │ └─1273 /usr/bin/httpd -f /usr/share/gnome-user-share/dav_user_2.4.conf -C Listen 42661 -D RequirePasswordAlways
           │   │ ├─xdg-permission-store.service
           │   │ │ └─1059 /usr/lib/flatpak/xdg-permission-store
           │   │ ├─evolution-source-registry.service
           │   │ │ └─1039 /usr/lib/evolution-data-server/evolution-source-registry
           │   │ ├─gvfs-metadata.service
           │   │ │ └─1051 /usr/lib/gvfs/gvfsd-metadata
           │   │ ├─gvfs-mtp-volume-monitor.service
           │   │ │ └─1113 /usr/lib/gvfs/gvfs-mtp-volume-monitor
           │   │ ├─gvfs-goa-volume-monitor.service
           │   │ │ └─1104 /usr/lib/gvfs/gvfs-goa-volume-monitor
           │   │ ├─gvfs-afc-volume-monitor.service
           │   │ │ └─1108 /usr/lib/gvfs/gvfs-afc-volume-monitor
           │   │ ├─glib-pacrunner.service
           │   │ │ └─1096 /usr/lib/glib-networking/glib-pacrunner
           │   │ ├─init.scope
           │   │ │ ├─939 /usr/lib/systemd/systemd --user
           │   │ │ └─940 (sd-pam)
           │   │ ├─evolution-addressbook-factory.service
           │   │ │ ├─1149 /usr/lib/evolution-data-server/evolution-addressbook-factory
           │   │ │ └─1163 /usr/lib/evolution-data-server/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Ba
           │   │ ├─rygel.service
           │   │ │ └─1192 /usr/bin/rygel
           │   │ ├─tracker-store.service
           │   │ │ └─1194 /usr/lib/tracker/tracker-store
           │   │ └─gvfs-daemon.service
           │   │   ├─ 983 /usr/lib/gvfs/gvfsd
           │   │   ├─ 988 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
           │   │   ├─1548 /usr/lib/gvfs/gvfsd-trash --spawner :1.14 /org/gtk/gvfs/exec_spaw/0
           │   │   ├─1701 /usr/lib/gvfs/gvfsd-http --spawner :1.14 /org/gtk/gvfs/exec_spaw/1
           │   │   └─1767 /usr/lib/gvfs/gvfsd-burn --spawner :1.14 /org/gtk/gvfs/exec_spaw/2
           │   └─session-c2.scope
           │     ├─ 815 gdm-session-worker [pam/gdm-password]
           │     ├─ 948 /usr/bin/gnome-keyring-daemon --daemonize --login
           │     ├─ 952 /usr/lib/gdm/gdm-wayland-session gnome-session
           │     ├─ 956 /usr/lib/gnome-session/gnome-session-binary
           │     ├─1005 /usr/bin/gnome-shell
           │     ├─1010 /usr/bin/Xwayland :0 -rootless -noreset -listen 4 -listen 5 -displayfd 6
           │     ├─1119 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
           │     ├─1164 megasync
           │     ├─1167 /usr/lib/tracker/tracker-extract
           │     ├─1172 /usr/lib/evolution/evolution-alarm-notify
           │     ├─1174 /usr/lib/tracker/tracker-miner-fs
           │     ├─1183 /usr/bin/gnome-software --gapplication-service
           │     ├─1205 /usr/lib/gnome-settings-daemon/gsd-printer
           │     └─1206 /usr/lib/tracker/tracker-miner-apps
           ├─init.scope
           │ └─1 /sbin/init
           └─system.slice
             ├─lvm2-lvmetad.service
             │ └─250 /usr/bin/lvmetad -f
             ├─gdm.service
             │ └─627 /usr/bin/gdm
             ├─vnstat.service
             │ └─616 /usr/sbin/vnstatd -n
             ├─colord.service
             │ └─799 /usr/lib/colord/colord
             ├─nmbd.service
             │ └─671 /usr/bin/nmbd -D
             ├─avahi-dnsconfd.service
             │ └─556 /usr/bin/avahi-dnsconfd -s
             ├─upower.service
             │ └─553 /usr/lib/upower/upowerd
             ├─ftpd.service
             │ └─629 /usr/bin/ftpd -D
             ├─NetworkManager.service
             │ └─565 /usr/bin/NetworkManager --no-daemon
             ├─dbus.service
             │ └─533 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
             ├─accounts-daemon.service
             │ └─551 /usr/lib/accountsservice/accounts-daemon
             ├─postfix.service
             │ ├─731 /usr/lib/postfix/bin/master -w
             │ ├─732 pickup -l -t unix -u
             │ └─733 qmgr -l -t unix -u
             ├─smbd.service
             │ ├─695 /usr/bin/smbd -D
             │ ├─696 /usr/bin/smbd -D
             │ ├─697 /usr/bin/smbd -D
             │ └─699 /usr/bin/smbd -D
             ├─udisks2.service
             │ └─527 /usr/lib/udisks2/udisksd --no-debug
             ├─debug-shell.service
             │ └─247 /bin/sh
             ├─avahi-daemon.service
             │ ├─557 avahi-daemon: running [archdesktop.local]
             │ └─568 avahi-daemon: chroot helper
             ├─wpa_supplicant.service
             │ └─558 /usr/bin/wpa_supplicant -u
             ├─snmptrapd.service
             │ └─647 /usr/bin/snmptrapd -p /run/snmptrapd.pid
             ├─smartd.service
             │ └─2475 /usr/bin/smartd -n
             ├─nscd.service
             │ └─921 /usr/sbin/nscd
             ├─systemd-logind.service
             │ └─555 /usr/lib/systemd/systemd-logind
             ├─rtkit-daemon.service
             │ └─552 /usr/lib/rtkit/rtkit-daemon
             ├─systemd-resolved.service
             │ └─620 /usr/lib/systemd/systemd-resolved
             ├─packagekit.service
             │ └─782 /usr/lib/PackageKit/packagekitd
             ├─polkit.service
             │ └─564 /usr/lib/polkit-1/polkitd --no-debug
             ├─dm-event.service
             │ └─251 /usr/bin/dmeventd -f
             ├─systemd-udevd.service
             │ └─290 /usr/lib/systemd/systemd-udevd
             ├─bluetooth.service
             │ └─532 /usr/lib/bluetooth/bluetoothd
             ├─snmpd.service
             │ └─646 /usr/bin/snmpd -p /run/snmpd.pid
             ├─systemd-journald.service
             │ └─249 /usr/lib/systemd/systemd-journald
             ├─dhcpcd.service
             │ └─570 /usr/bin/dhcpcd -q -b
             └─systemd-networkd.service
               └─566 /usr/lib/systemd/systemd-networkd


BlueTooth Disconnecting Solved

Since the Arch linux installation I have this problem with my bluetooth devices. Yes I have successfully paired them and all devices appears in all the bluetooth monitor of each device. But the bluetooth service in Arch disconnects immediately after I try to turn it on. The logs says:

"bluetoothd[2668]: a2dp-source profile connect failed for 1C:B7:2C:55:A8:80: Protocol not available"

I found my answer in the Arch Wiki here. But please read the whole article about bluetooth since your issues might not be completely the same. So the short story is I'm missing a package there. After downloading with pacman and restarting pulseaudio, I tried connecting the devices. I'm using gnome by the way so the graphical front-end is where I went. I also got these from the logs. It confirms the devices are now connected.


logfile: Feb 24 06:15:14 archdesktop bluetoothd[535]: Endpoint registered: sender=:1.44 path=/MediaEndpoint/A2DPSource
logfile: Feb 24 06:15:14 archdesktop bluetoothd[535]: Endpoint registered: sender=:1.44 path=/MediaEndpoint/A2DPSink
logfile: Feb 24 06:15:26 archdesktop bluetoothd[535]: Endpoint registered: sender=:1.66 path=/MediaEndpoint/A2DPSource
logfile: Feb 24 06:15:26 archdesktop bluetoothd[535]: Endpoint registered: sender=:1.66 path=/MediaEndpoint/A2DPSink



Thursday, February 23, 2017

Work Load Averages For Archlinux GNOME


top - look at load averages

I haven't seen these work load stats ever. I haven't changed my habits at all.

The Peripheries of My Arch linux GNOME Desktop

Adding Google's DNS resolver in your Network Manager will surely save you a lot of headaches. So just click on the network icon in the upper right hand corner and click (if you have more than one interface, choose your interface) the settings tab.


google's dns server number added

Google's DNS servers owns the internet. It helps you find the destinations for your convenient browsing. Of course you're also telling Google where you want to go. 

I can't get xdo-tool to work with Web / Epiphany. I can't use my password manager to fill in these important personal login pages in the Internet. I downloaded Mozilla Firefox browser for it. Bummer. AND in this subject also, I can't use my password manager to fill in gnome-online-accounts. Why not make it happen? Security issue here??


Wednesday, February 22, 2017

Allow Samba Services To Connect

Previously, I installed samba in my desktop to allow it to share files among other devices in the local network. I could not make my android tablet and smartphone connect or make it see the desktop. I forgot to allow the samba service in my firewall. So to do that I have to open a terminal and get root priveleges.

# ip addr
##to get my ip address

# ufw allow from 192.168.15.0/24
##to allow any connections from the LAN, local network

# ufw status verbose
##to check the status of the firewall


Tuesday, February 21, 2017

Like An Archlinux User

Hi Reese

Within a week of using Archlinux, some unique problems came into my attention. I have a full and increasing directory in /var and /usr. It seems pacman cache is already 3 GB and the core dump file is also 3 GB. The core dump is important if you're looking into application crashes. I decided to trash the core dump. I'm not going into application crash reporting now. I don't need the pacman cache but in second thought I might want to leave the last instance of that upgraded package.

I am fighting with samba right now. I have followed two instruction threads out there but I can't make it work in my android device. I can see my shares in my linux machine but not in android.

I finished my first maintenance cycle of my Archlinux life - cleaning out the pacman cache. This link to Archlinux Wiki on the topic will explain it a lot. The default here for me is to leave at least a way to go back if things get out of control. So I am going to be using this:

# paccache -rk 1
##this command will remove all package cache, installed or not, but leave the most recent version just in case.

Of course there's the trusted pacman command to remove all pacman cache with:

# pacman -Sc [or] # pacman -Scc

I had to manually examine any *pacman.new and *pacman.save files in my system. I used the

$ locate {pacman.new}
##to list all the files with the suffixes

Others suggest an application called 'meld' to help with the file comparison. I just copy and paste for now then save the file.

Friday, February 17, 2017

Sending Mail From Archlinux To Gmail (relay)

I did this in Ubuntu 16.04 LTS. Configure Postfix to send mail from desktop to gmail. I wrote a post here.

Now that I'm using Archlinux, I want the same set up.

I installed postfix.

#pacman -Syu postfix

The config file for postfix is /etc/postfix/master.cf and /etc/postfix/main.cf.
Follow the steps in the link above.
Don't forget to restart postfix. Don't forget to protect the authentication file. Don't forget the postmap command.

Send a test mail.

$echo test | mail -s "test email setup" emailaddr