Categories
git

Upgrade Git Lab from v.12.9.4 to 13.1.x

current version: gitlab-ce-12.9.4-ce.0.el7.x86_64
(Server: gate, 192.168.1.*, gate.goperl.com, https://git.gate.goperl.com:7200/admin)

Upgrade to gitlab-ce-12.10.5-ce.0.el7.x86_64
should have been 12.9.10
Nevertheless, it worked OK
Creating backup archive:
1595105034_2020_07_18_12.9.4_gitlab_backup.tar … done
Configuration backup archive complete:
/etc/gitlab/config_backup/gitlab_config_1595105036_2020_07_18.tar

next, upgraded to 12.10.14-ce.0.el7.x86_64
yum -y install gitlab-ce-12.10.14-ce.0.el7.x86_64
Creating backup archive:
1595106285_2020_07_18_12.10.5_gitlab_backup.tar … done
Configuration backup archive complete:
/etc/gitlab/config_backup/gitlab_config_1595106288_2020_07_18.tar
OK

next, upgraded to 13.0.0

Configuration backup archive complete: /etc/gitlab/config_backup/gitlab_config_1595107073_2020_07_18.tar

Upgrade complete! If your GitLab server is misbehaving try running
sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).

Verifying : gitlab-ce-13.0.0-ce.0.el7.x86_64 1/2
Verifying : gitlab-ce-12.10.14-ce.0.el7.x86_64 2/2

Updated:
gitlab-ce.x86_64 0:13.0.0-ce.0.el7

Complete!
[root@gate perl5]#

Upgrade complete! If your GitLab server is misbehaving try running
sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).

Verifying : gitlab-ce-13.0.10-ce.0.el7.x86_64 1/2
Verifying : gitlab-ce-13.0.0-ce.0.el7.x86_64 2/2

Updated:
gitlab-ce.x86_64 0:13.0.10-ce.0.el7

Upgrade complete! If your GitLab server is misbehaving try running
sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).

Verifying : gitlab-ce-13.1.0-ce.0.el7.x86_64 1/2
Verifying : gitlab-ce-13.0.10-ce.0.el7.x86_64 2/2

Updated:
gitlab-ce.x86_64 0:13.1.0-ce.0.el7

Complete!
[root@gate ~]#

Upgrade complete! If your GitLab server is misbehaving try running
sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).

Verifying : gitlab-ce-13.1.4-ce.0.el7.x86_64 1/2
Verifying : gitlab-ce-13.1.0-ce.0.el7.x86_64 2/2

Updated:
gitlab-ce.x86_64 0:13.1.4-ce.0.el7

Complete!
[root@gate ~]#

Categories
docker

Docker CentOS 7 container with Systemd, Perl, and Mojolicious

Docker image for CentOS 7 with Systemd, Perl, and a sample Mojolicious app.

Ready to use out of the box.

Builds and updates are at https://github.com/bislink/CentOS7-Systemd-Mojolicious

docker run -it a2zdotblue/c7-systed-perl-mojo-02 /bin/bash

[root@ae9b9ef049c0 app]# ./perlmojo/script/perlmojo get /

A big surprise for me: This container has been downloaded more than 7000 times from Docker Hub since 2018!

If you are one of those who downloaded, would you please drop a thank you on this blog?

https://www.a1z.us/blog/2018/08/16/centos-7-docker-container-with-perl-mojolicious/ redirects here

Categories
Uncategorized

Nginx on custom ports

This configuration is actual one on server/machine, hop, on my network. And it is live.

How to use custom ports on NGINX?

Add all IPs:

server { 
....
listen 5085 default_server http2;
listen [::]:5086 default_server http2 ssl;
listen 192.*:5086 http2 ssl;
listen [2600:1700:a*:8*:2*:b*:f*:f*]:5086 http2 ssl;
server_name hop.a1z.us www.hop.a1z.us;
....
}

server {
....
server_name nginx.hop.a1z.us www.nginx.hop.a1z.us;
listen 5087;
listen 192.*:5087;
listen [*]:5087;
....
listen 192.*:5088 ssl http2;
listen [*]:5088 ssl http2;
listen [::]:5088 http2 ssl;
....
}

Did not work until I added all the IPs including local and ip6!

Categories
asterisk

how to unlock a freepbx or asterisk session locally?

This post is on how to unlock a freepbx or asterisk session locally?

First, find/copy the session ID at the bottom of your login page to PBX server. Keep the copy in the memory for now.

You can see all hidden text by running Ctrl A.on the login page.

Secondly, login to FreePBX/Asterisk server/machine via SSH.

Most of the times, you can login with your FreePBX machine’s host name. For example, http://freepbx/admin

Or, if your machine’s IP address is 192.168.1.10, then login to http://192.168.1.10/admin as root with default username as root and default password as SangomaDefaultPassword from your windows desktop or any other device that is connected to the same network/router as the PBX machine.

I assume that you did not change the default password for your PBX/Asterisk server.

Once you have logged into your PBX server as root, run the following command.

fwconsole unlock 21islds39f67jg2413h5m737o4

The unlock session Id for you will be different but will look similar to the above.

Now, go back to your PBX server tab/page, and just refresh. You should be automatically logged in without entering any credentials.

Categories
Uncategorized

how to check fingerprint of a certificate

how to check fingerprint of a certificate?

Needed tools:

Access to a server, desktop, or a docker container via SSH.

Create a file named fingerprint.sh in Linux and add the following lines to the file.

#!/bin/bash
file="ssl.cert" || $1; 
echo "sha256"; 
openssl x509 -noout -fingerprint -sha256 -inform pem -in $file; 
echo "sha1"; 
openssl x509 -noout -fingerprint -sha1 -inform pem -in $file;
echo "md5"; 
openssl x509 -noout -fingerprint -md5 -inform pem -in $file;

Make the file executable

chmod +x fingerprint.sh

Run the program/script:

./fingerprint.sh

You will see a result similar to the following.

-sh-4.2$ ./ssl/fingerprint.sh path/to/certificate.crt

sha256

SHA256 Fingerprint=FB:3F:9D:7B:EA:56:84:BE:3D:AB:94:09:BA:85:4C:8A:BA:3A:84:10:A3:50:A2:CF:A7:B5:2F:C2:D4:56:3D:10

sha1

SHA1 Fingerprint=23:3B:66:BA:E0:00:7C:2C:91:84:87:37:FB:E6:A3:64:DC:84:81:66

md5

MD5 Fingerprint=A8:17:88:63:39:D0:40:7A:44:B4:87:EA:E8:86:1A:04

That’s it.

Categories
Uncategorized

gedit

OS: CentOS 7

Text Editor: gedit

Change Settings

As normal user, type, on a shell,

gsettings set org.gnome.gedit.preferences.editor display-line-numbers true

 

Categories
Uncategorized

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!