Docker Files as User

Sometimes being root inside a docker container is a pain especially when mounting files and having to create and modify files inside the container. So what is an easy way around this issue? Well docker allows you to launch a container and become the UID and GID you pass in: $ docker run --rm -ti --user (id -u $USER):(id -g $USER) ubuntu:16.04 groups: cannot find name for group ID 1000 I have no name!@f8b2e4f05d4e:/$ Though this approach works it means you can’t setup a bashrc or special completion tools as they are not configured for new users that do not have a home directory. ...

October 16, 2020

Setting Up a Rendezvous Server

This tutorial will tell you how to set up a rendezvous server which you can use to connect to your Linux servers without needing to open ports on your home network. I will be using a Digital Ocean server as the rendezvous server but this should work on any Ubuntu 16.04 server. Setting up the server end So the first step is to setup the server end. Add sslh to server This is so that you can ssh into the server using port 443. This means you can connect to it from behind strict firewalls. ...

October 16, 2020

Vcenter Failed to Connect to Vmware Lookup Service

For me this issue seems to happen every time the base machine reboots. I have not worked out a permanent solution but the following is a workaround to fix it until the next reboot. Note: This was tested on VCenter Version 5.5.0 Build 2414847 The Error The error printout you see when logging in through the VCenter web client is: Failed to connect to VMware Lookup Service https://[fe80::20c:29ff:fe2f:a475]:7444/lookupservice/sdk -SSL certificate verification failed. ...

June 28, 2018

Docker Python Encoding Issues

To enable copying and pasting to your VM running in your vsphere cloud the following steps need to be preformed in the vSphere Web Client (vCenter): Select the VM and to to the “Summary” page. Also make sure the VM is powered off. Open the “Edit Settings” popup ![2018-05-02 10_29_15-vSphere Web Client.png](file:////Users/joshc/Library/CloudStorage/ProtonDrive-josh@brucecloud.net-folder/Dropbox Backup/Personal Projects/BruceCloud/Publii/bruce-cloud/input/media/posts/19/2018-05-02-10_29_15-vsphere-web-client.png) Now go to the “VM Options” tab Open the “Advanced” section and click “Edit Configuration” ![2018-05-02 10_30_31-vSphere Web Client.png](file:////Users/joshc/Library/CloudStorage/ProtonDrive-josh@brucecloud.net-folder/Dropbox Backup/Personal Projects/BruceCloud/Publii/bruce-cloud/input/media/posts/19/2018-05-02-10_30_31-vsphere-web-client.png) Now add the following two rows: | Name | Value | | isolation.tools.copy.disable | false | | isolation.tools.paste.disable | false | ...

June 18, 2018

Copying and Pasting to and From Vsphere Clients

To enable copying and pasting to your VM running in your vsphere cloud the following steps need to be preformed in the vSphere Web Client (vCenter): Select the VM and to to the “Summary” page. Also make sure the VM is powered off. Open the “Edit Settings” popup Now go to the “VM Options” tab Open the “Advanced” section and click “Edit Configuration” Now add the following two rows: | Name | Value | | isolation.tools.copy.disable | false | | isolation.tools.paste.disable | false | ...

May 1, 2018

Stop Apt From Updating a Package

So sometimes you really don’t want apt to accidentally update a package like Jenkins on your Jenkins server but you would like all the other packages around it to be updated. Note: This has only been tested on Ubuntu 16.04. This can be done by running the following command: $ sudo apt-mark hold <package-name> To unlock a package run the following command: $ sudo apt-mark unhold <package-name> References https://askubuntu.com/questions/18654/how-to-prevent-updating-of-a-specific-package

April 5, 2018

Vmware Workstation 12.5.7/12.5.8 With Kernel 4.13

So when Fedora 25 upgraded my kernel to 4.13 I thought nothing of it until I needed to use VmWare workstation. It failed to install the Virtual Network Monitor. Note: This has been tested and works for Fedora 26 with Kernel 4.13 as well Prepare for build $ sudo mkdir /lib/modules/`uname -r`/misc $ sudo rm -rf /usr/lib/vmware/modules/source/vmmon-only/ $ sudo rm -rf /usr/lib/vmware/modules/source/vmnet-only $ sudo tar -xvf /usr/lib/vmware/modules/source/vmmon.tar --directory /usr/lib/vmware/modules/source $ sudo tar -xvf /usr/lib/vmware/modules/source/vmnet.tar --directory /usr/lib/vmware/modules/source Build vmnet $ cd /usr/lib/vmware/modules/source/vmnet-only/ The bridge.c file needs to be replaced by: https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmnet-only/bridge.c ...

November 13, 2017

Vsphere SSO LDAP Issues

So when I was configuring SSO for VSphere I came across some issues. Some users can’t login and others can Using the default port of 389 some users could login but others could not. I could see all users login information and add them to groups but they got an error when logging in: [code lang=text] The authentication server returned an unexpected error: ns0:RequestFailed: Referral. The error may be caused by a malfunctioning identity source. [/code] ...

July 15, 2017

Windows License Servers

Sometimes windows will not activate if the current network the machine is on can’t be redirected to the license servers easily. The easiest way to activate a server on a restricted network it to find out the activation server hostname and port then manually specify it. The following commands are all that are needed to discover the hostname and port of and activated server, force a server to activate and manually specify a server to use for activation. ...

July 6, 2017

Fedora Desktop Sharing Issues

So in Ubuntu Unity it is very easy to share your desktop with a colleague using the desktop sharing feature. I thought the same would be true when I switched to Fedora Gnome I thought the same would be true. So when I turned on the desktop sharing feature I thought it would just work but it turns out there is a bug in Gnome. The following command will lower the security settings and allow others to connect to your computer using a VNC viewer: ...

June 15, 2017