Search My Techie Guy

Thursday, September 14, 2017

Goods Express Uganda - Buy stuff online and receive in Uganda (Pay by Mobile Money)

How cool is this?

You go to this cool website called GoodsExpress
Goods Express

Shop online, there is lots of categories to choose from:



And lots of merchants to choose from (The likes of eBay, Amazon ) and if you can't find what you are looking for on the website, there is an option of adding an item from another merchant website like Alibaba into your GoodsExpress shopping basket 


Plenty of payments options including MTN Mobile Money and Airtel Money


Flexible shipping, you choose the speed at which your item should arrive


And there is local support on the ground to help you in case you have some questions or challenges buying your item.

And if you refer your friends just like i just referred you to GoodsExpress, you get 20K in shipping credits and your friends get 20k shopping money just like you received 20K after following my link :-)


So once again, How cool is this?

This by far is the coolest online shopping platform in UG.

Wednesday, September 13, 2017

TTY Session disconnects after a few seconds of inactivity with Socket error Event: 32 Error:10053

Summary: 

My TTY session to an Ericsson-Juniper based GGSN/EPG node disconnects within 10 seconds of inactivity. I have tried setting the maximum idle-timeout but it has not solved the problem. I believe it's a bug. Am just making a note to self to track this issue and if you have a solution or idea please leave a comment.

Problem or Goal:

 Socket error Event: 32 Error: 10053.
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(GGSN) at 12:19:40.


Cause:

Not identified

Solution:

Not identified

Problem Solved?

No, leave a comment if you have a solution

Monday, September 11, 2017

Jobs - Network & Security Engineer, Database Engineer - Deadline 14th Sept 2017

1.1 ) Network and Security Engineer
1.2 ) Database Engineer
1.3) Contract Manager
Send detailed CV ONLY to: 

olivia.kemigisa@ppg.co.ug

And in the subject CLEARLY indicate the POSITION which you are applying for.

Deadline: 14th September 2017 at 5PM (Ugandan Time)
Share incase you know any body interested. 

Tuesday, September 5, 2017

Stopping xinetd: FAILED - Trying to Install and Run TFTP Server on CentOS 6

Summary: 

Am trying to install and run TFTP Server on CentOS 6.3 but i think i have issues with my xinetd service!
Trying to start it is OK
Trying to stop it FAILED
Checking status say xinetd is dead!!!

Problem or Goal: 


# service xinetd stop
Stopping xinetd:                                           [FAILED]


Cause: 

Not sure what could be causing it, i was too lazy and did try to trace or debug the service. Yet i was in a hurry to get the TFTPD service up and running.

Solution: 

1. First i uninstalled the TFTPD server that i had installed together with it's config files.

2. Backed up the xinetd.config file


# cp xinetd.conf xinetd.conf.bak
#

3. Removed the xinetd.config file

# rm xinetd.conf
rm: remove regular file `xinetd.conf'? y

4. Uninstalled xinetd package using rpm

# rpm -qa | grep xin
xinetd-2.3.14-35.el6_3.x86_64
# rpm -e --justdb --nodeps xinetd-2.3.14-35.el6_3.x86_64

5. Re-installed xinetd package using "yum install"

 [root@localhost xinetd.d]# yum install xinetd

Problem Solved?

xinetd service can now stop, check status and start

# service xinetd start
Starting xinetd:                                           [  OK  ]

# service xinetd status
xinetd (pid  1275) is running...

# service xinetd stop
Stopping xinetd:                                           [  OK  ]

# service xinetd status
xinetd is stopped

# service xinetd start
Starting xinetd:                                           [  OK  




Monday, September 4, 2017

Transaction Check Error: from install of openssl-x conflicts with file from package openssl-x during Yum Update OpenSSL

Summary: 

Transaction Check Error: from install of openssl-x conflicts with file from package openssl-x while trying to update OpenSSL using command "yum update openssl"

Check the current version of openssl installed!
# openssl version -a
OpenSSL 1.0.1e 11 Feb 2013
built on: Tue Mar 19 19:06:59 EDT 2013
platform: linux-x86_64



 Problem or Goal:


 Transaction Check Error:
  file /usr/lib64/libcrypto.so.1.0.1e from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/libssl.so.1.0.1e from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/lib4758cca.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libaep.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libatalla.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libcapi.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libchil.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libcswift.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libgmp.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libnuron.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libpadlock.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libsureware.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64
  file /usr/lib64/openssl/engines/libubsec.so from install of openssl-1.0.1e-57.el6.x86_64 conflicts with file from package openssl10-libs-1.0.1e-1.ius.centos6.x86_64


Cause:

There is a package openssl10-libs conflicting with openssl-1

Solution: 

To resolve this, i removed all the openssl packages installed on my system and installed openssl afresh using the commands below:

First, to check which packages of openssl are installed on your system, run this:


# rpm -qa | grep openssl
openssl-1.0.0-25.el6_3.1.x86_64
openssl10-libs-1.0.1e-1.ius.centos6.x86_64


Remove the listed packages one by one
# rpm -e --justdb --nodeps openssl-1.0.0-25.el6_3.1.x86_64
# rpm -e --justdb --nodeps openssl10-libs-1.0.1e-1.ius.centos6.x86_64

Re-Install OpenSSL afresh


# yum install openssl
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.centos.org
 * epel: mirrors.coreix.net
 * extras: mirrors.coreix.net
 * updates: mirrors.coreix.net
Resolving Dependencies
--> Running transaction check
---> Package openssl.x86_64 0:1.0.1e-57.el6 will be installed
--> Processing Dependency: make for package: openssl-1.0.1e-57.el6.x86_64
--> Running transaction check
---> Package make.x86_64 1:3.81-23.el6 will be installed
--> Finished Dependency Resolution

Installed:
  openssl.x86_64 0:1.0.1e-57.el6                                                                                                                                                               

Dependency Installed:
  make.x86_64 1:3.81-23.el6                                                                                                                                                          

Complete!

Problem Solved?

Check new version of openssl that has been installed


# openssl version -a
OpenSSL 1.0.1e-fips 11 Feb 2013
built on: Wed Mar 22 21:43:28 UTC 2017
platform: linux-x86_64


Also the "yum update openssl" command works fine, but of course i just finished installing a fresh copy of openssl so no updates will be found

# yum update openssl
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: mirror.centos.org
 * epel: mirrors.coreix.net
 * extras: mirrors.coreix.net
 * updates: mirrors.coreix.net
No Packages marked for Update



Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again - Yum Repolist

Summary: 

Got this error message trying to run "yum repolist"

#yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


Problem or Goal: 

The HTTPS repos are failing!!

#more /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1



Cause: 

HTTPS repos are failing, most probably because my SSL certificates are not updated!!

Solution: 

Use the command below to edit the file "epel.repo" in one line. 

#sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

what this command will do is search and edit any line in file "epel.repo" that has "mirrorlist=https" and replace it with "mirrorlist=http" so your epel.repo will look like this:

 # more /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1


Problem Solved?

Trying to run "yum repolist" again - OK

 # yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink                                                                                                                                                           |  35 kB     00:00     
 * base: mirror.centos.org
 * epel: mirrors.coreix.net
 * extras: mirrors.coreix.net
 * updates: mirrors.coreix.net
CactiEZ                                                                                                                                                                 | 2.9 kB     00:00     
CactiEZ/primary_db                                                                                           
repolist: 19,753



Invitation to the GDG (Google Developer Group ) DevFest Uganda 2017 - 30th September 2017 at Design Hub Kampala



Are you a software developer, designer, tech enthusiast, student, or running a business that need to grow? Is your organisation interested in using Google technologies for work?
Google Developer Group (GDG) Uganda invites you to the biggest DevFest in Uganda on 30th September 2017 at the Design Hub Kampala in Bugolobi from8:30 pm to 5:30 pmSee map for directions.
It’s FREE to attend.
GDG Uganda, a collaboration among several GDGs in Uganda will bring together techies, entrepreneurs and industry players including Google representatives, for the Annual DevFest event, with different activities from Codelabs, speaker sessions and startup fireside chats.
GDG DevFest 2017 is aimed at equipping attendees with different skills, both technical and business, required for them to compete in the industry and also run successful companies.
As part of the GDG DevFest, on Saturday 7th October 2017, GDG Uganda will host a Firebase AppFest (Hackathon) for developers in Mobile and Web applications at Outbox Hub.
Find details about the DevFest here. Join the GDG Meetups group for more updates and similar events.

For any questions, Contact Solomon on sopio@outbox.co.ug or call+256755510000

Google Developer Groups (GDGs) are for developers who are interested in Google's developer technology; from the Android, Chrome, Drive, and Google Cloud platforms, to product APIs like the Cast API, Maps API, and YouTube API.
GDG Uganda DevFest is supported by Google, Outbox and Design Hub Kampala.

How to quickly add DNS settings in Linux (CentOS)?

Summary: 

This note will show you how to quickly fix DNS settings on linux. Am using centOS

[root@localhost ~]# cat /etc/*release*
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
cpe:/o:centos:linux:6:GA

Problem or Goal:

Pinging a domain name like "yahoo.com" returns error
[root@localhost ~]# ping yahoo.com
ping: unknown host yahoo.com
[root@localhost ~]# 

Cause:

Checking the ifcfg files, there is no DNS settings defined!!
[root@localhost ~]# cd /etc/sysconfig/network-scripts/

[root@localhost network-scripts]# more ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
BROADCAST="172.17.6.255"
GATEWAY="172.17.6.3"
HWADDR="14:FE:B5:DF:B9:A9"
IPADDR="172.17.6.44"
NETMASK="255.255.255.0"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"


Solution:

Check and make sure you have proper internet connection, i tested by pinging a public DNS 8.8.8.8

[root@localhost network-scripts]# ping 172.29.1.111
PING 172.29.1.111 (172.29.1.111) 56(84) bytes of data.
64 bytes from 172.29.1.111: icmp_seq=1 ttl=125 time=0.943 ms
64 bytes from 172.29.1.111: icmp_seq=2 ttl=125 time=0.675 ms
^C
--- 172.29.1.111 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1712ms
rtt min/avg/max/mdev = 0.675/0.809/0.943/0.134 ms
[root@localhost network-scripts]# 

Now add the DNS settings in the ifcfg-eth0 file, make sure you know your network DNS IPs to use, or you can use the public DNS, 8.8.8.8 if it's allowed on your network.

[root@localhost network-scripts]# vi ifcfg-eth0

DEVICE="eth0"
BOOTPROTO="static"
BROADCAST="172.17.6.255"
GATEWAY="172.17.6.3"
HWADDR="14:FE:B5:DF:B9:A9"
IPADDR="172.17.6.44"
NETMASK="255.255.255.0"
DNS1="172.29.1.111"
DNS2="8.8.8.8"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"

Restart the network services

[root@localhost etc]# /etc/init.d/network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
[root@localhost etc]# 


Problem Solved?

Test by ping a domain name, for example "yahoo.com"

[root@localhost ~]# ping www.yahoo.com
PING atsv2-fp.wg1.b.yahoo.com (46.228.47.115) 56(84) bytes of data.
64 bytes from ir1.fp.vip.ir2.yahoo.com (46.228.47.115): icmp_seq=1 ttl=53 time=202 ms
64 bytes from ir1.fp.vip.ir2.yahoo.com (46.228.47.115): icmp_seq=2 ttl=53 time=202 ms
64 bytes from ir1.fp.vip.ir2.yahoo.com (46.228.47.115): icmp_seq=3 ttl=53 time=202 ms
64 bytes from ir1.fp.vip.ir2.yahoo.com (46.228.47.115): icmp_seq=4 ttl=53 time=202 ms
64 bytes from ir1.fp.vip.ir2.yahoo.com (46.228.47.115): icmp_seq=5 ttl=53 time=203 ms
^C
--- atsv2-fp.wg1.b.yahoo.com ping statistics ---
6 packets transmitted, 5 received, 16% packet loss, time 5035ms
rtt min/avg/max/mdev = 202.167/202.646/203.652/0.772 ms
[root@localhost ~]# 

Saturday, September 2, 2017

Cacti PHP Weathermap - Error! The Editor has not been enabled yet!

Summary: 

How to solve the cacti PHP weathermap error message;


When you try to click this Edito link, you get error message below

"The editor has not been enabled yet. You need to set ENABLED=true at the top of editor.php"


Problem or Goal: 


Cacti error message

Cause: 


Solution: 

1. Look for the file "editor.php"

[root@localhost ~]# find / -name editor.php
/var/www/html/plugins/weathermap/editor.php

2. Edit the file "editor.php" and set ENABLED=true

[root@localhost ~]#  
[root@localhost ~]# vi /var/www/html/plugins/weathermap/editor.php


Editor.php file

 Problem Solved?

Yes,



When you click the editor link, it now opens.