VcXsvr setup on 3840 x 2160 display

I’m running an ubuntu 16.04 vm in hyper-v on my Dell XPS 15 (9560). The host OS is Windows 10 Pro. I have been just using the Windows Subsystem for Linux default installation to get a console to ssh into the VM running under hyper-v. The problem with that is the windows console used for the command line interface / bash session doesn’t behave like a normal X based terminal and becomes irritating for daily use in code development. A potential solution is to run an XServer for windows and use remote display capabilities to run an xterminal , in my case gnome-terminal. I settled on VcXsrv  .  After installing I found the rendering of the X windows a bit blurred. I’m running my windows display with 225% zoom on my 3840 x 2160 laptop display. The trick  to fixing this is to set the DPI Scaling as shown below.


System A :  host computer running windows 10 , VcXsrv, Windows Subsystem for Linux.

System B: Ubuntu 16.04 server with gnome-terminal and required dependencies installed.



on System A in Windows Subsystem for Linux terminal

export DISPLAY=localhost:0.0

ssh -X user@<System B ip>

then run gnome-terminal.

hints for configuring terminal font size

gsettings list-recursively | grep desktop | grep font
gsettings set org.gnome.desktop.wm.preferences titlebar-uses-system-font false
gsettings list-recursively | grep desktop | grep font
gsettings set org.gnome.desktop.wm.preferences titlebar-font ‘Cantarell 16’

gsettings set org.gnome.desktop.wm.preferences titlebar-font ‘Cantarell 16’


gsettings get org.gnome.desktop.interface text-scaling-factor
gsettings set org.gnome.desktop.interface text-scaling-factor 2.0
gsettings list-recursively | grep desktop | grep font
gsettings set org.gnome.desktop.interface font-name ‘Cantarell 16’

execute bit when editing in Visual Studio / Samba share

I’ve started using Visual Studio 2017 community edition to load up a project stored in a ubuntu 16.04 server running as a hyperV virtual machine. The project files are accessed via a samba share and I find the visual studio sets the execute bit when I edit and save a file even though my /etc/samba/smb.conf has the following settings in the global section:

map archive = no
map system = no
map hidden = no
force create mode = 0660

It wasn’t until I added nt acl support = no that I was able to stop the execute bit getting set editing a file in visual studio.

note : restarting samba on ubuntu 16.04 doesn’t use usual service smbd restart call. Do this : sudo systemctl restart smbd.service nmbd.service

gdb initialization file

Here are settings I currently use in my .gdbinit file to control the behavior history

set history save on
set history size 20
set history remove-duplicates unlimited
set history filename ~/.gdb_history

installing geotranz on ubuntu 16.04

I ran into an issue using the geotranz package on ubuntu 16.04. I had been building the library from source but on request from a client I switched to installing the packaged version of the geotrans library (so named geotranz). What I found was that nothing seemed to include the required data files that are needed by the software at run time ( see section 4.3 of the Programmers guide ) . I’m surprised by this oversight and wonder if anyone else is using this package because I found no other complaints about it in my googling on the subject. Solution was to pull the required files from the src code (download location) I grabbed the linux developer package linux_dev.tgz

Setting up WordPress instance on EC2

I’ve been using AWS facilities for a long time so following along with this guide was mostly trouble free.  I did however decide to create a key pair while on step 6 and what isn’t obvious is that the user name for the instance is bitnami, ubuntu works as well. So your ssh session will be started with a command along the lines of:
ssh -i <path to pem> bitnami@<ipaddress of instance>

It is explained on the bitnami/index.html page you get to if you click on the manage icon at the bottom of the start page for the site but I hurried past that the first time.