Posts

Open edX - Course about page not found on LMS and how to fix

If you click on a course from the LMS and it says "Page not found", your properly should check this variable in /edx/app/edxapp/lms.env.json and cms.env.json:

PREVIEW_LMS_BASE

It should not be the same with LMS_BASE. For example: your LMS_BASE is "yourdomain.com", so the CMS_BASE should be something like "preview.yourdomain.com" not "yourdomain.com". So check and change the variable if you got page not found error, then restart your stack, everything will be back to normal.

To install VMWare Workstation 12 Pro on Ubuntu 16.04.3 successfully

In order to successfully install VMmare Workstation 12 Pro on Ubuntu 16.04.3 you have to use at least version 12.5.3. That release of VMware Workstation has fixed the kernel (4.10) incompatibility issue in Ubuntu 16.04.3.

Download link: https://my.vmware.com/web/vmware/details?downloadGroup=WKST-1257-LX&productId=524&rPId=17068

Reference:http://rglinuxtech.com/?p=1937

"ip_proto" parameter in Tacker VNF Forwarding Graph TOSCA template

Here are the list of the available values of the "ip_proto" (IP Protocol number) in the TOSCA template for the Tacker VNF Forwarding Graph:
Decimal Keyword Protocol IPv6 Extension Header Reference 0HOPOPTIPv6 Hop-by-Hop OptionY[RFC8200]1ICMPInternet Control Message[RFC792]2IGMPInternet Group Management[RFC1112]3GGPGateway-to-Gateway[RFC823]4IPv4IPv4 encapsulation[RFC2003]5STStream[RFC1190][RFC1819]6TCPTransmission Control[RFC793]7CBTCBT[Tony_Ballardie]8EGPExterior Gateway Protocol[RFC888][David_Mills]9IGPany private interior gateway (used by Cisco for their IGRP)[Internet_Assigned_Numbers_Authority]10BBN-RCC-MONBBN RCC Monitoring[Steve_Chipman]11NVP-IINetwork Voice Protocol[RFC741][Steve_Casner]12PUPPUP[Boggs, D., J. Shoch, E. Taft, and R. Metcalfe, "PUP: An Internetwork Architecture", XEROX Palo Alto Research Center, CSL-79-10, July 1979; also in IEEE Transactions on Communication, Volume COM-28, Number 4, April 1980.][[XERO…

Push all the images from a local registry to DockerHub in one go

The other day, I wanted to push all the images from my local Docker registry to the Docker Hub but I didn't want to do it manually so I wrote this bash shell script:



What the script's doing basically:

1. Get all the images in the local registry, assuming the image's name is in  this form: 

local.registry.domain/branch/image_name:my-tag

2. For each image, create a new tag that match DockerHub's requirement which is:

docker_hub_username/my-tag

3. Then push that image into Docker Hub

Here is my Docker Hub repositories after finish the PUSH, you can have a look:

https://hub.docker.com/u/dangtrinhnt/

Profit!

Check rabbitmq user's credential

This is pretty helpful when you want to check if the user's password of rabbitmq is correct:

$ curl -i -u <theuser>:<thepassword> http://<rabitmq-host>:15672/api/whoami