Skip to main content

Posts

Showing posts from December, 2019

Roku plugin for Eclipse does not work with Eclipse 2019-12(4.14)

Eclipse 2019-12 was released last December 18, 2019. Roku plugin for Eclipse is not working yet with the latest version. I will keep this post updated as I learn more. Note that Roku plugin for Eclipse works with Eclipse 2019-09(4.13), this was tested on Ubuntu 19.10. Reference: https://blog.roku.com/developer/roku-eclipse-plugin https://community.roku.com/t5/Roku-Developer-Program/Roku-plugin-for-Eclipse-not-working-using-version-2019-12/m-p/531443#M44770

su: Sorry on FreeBSD

When running su on FreeBSD and you are getting su: Sorry that could mean that the user is not part of the wheel group. To fix this, do: Login as root, this can be rebooting the machine or open another TTY terminal (Alt+F2 might help). Re-mount root filesystem for read/write operation #: mount -u -w / Add user to the wheel group. Assume below that u1 is the user that will be added to the group #: pw usermod u1 -G wheel Remount root filesystem back to read-only #: mount -u -r / If you go back to the psuedo terminal of the u1 user, you should be able to run su this time. Reference: https://graspingtech.com/freebsd-fix-su-sorry-message/

Installing FreeBSD 12.1 on VirtualBox (Windows 10 host) failed with Guru Mediation

Installing FreeBSD 12.1 on VirtualBox 6.1.0 (Windows 10 host) failed with Guru Mediation. As a workaround, from the command line, do: c:\> "C:\Program Files\Oracle\VirtualBox\VBoxManage" modifyvm "FreeBSD" --spec-ctrl on Reference: https://forums.virtualbox.org/viewtopic.php?f=6&t=94390#p455778

How to change default font in Freeplane

I like my font to be monospace like below for my Freeplane document. To change Freeplane's defualt font, do Format | Manage Styles | Edit styles Then change Font of whole core | Font Family to say Consolas

Appium Windows Application Driver not working - looking for version 1.1

Installed Appium and Appium Windows Driver lately (12/18/2019) and observed that I can't get Windows application to be automated. It turns out that Appium v1.15.1 is hardcoded to check for Windows Application Driver version 1.1. To workaround, I made changes to %appdata%\npm\node_modules\appium\node_modules\appium-windows-driver\build\lib\installer.js, in two areas: Changed to  WAD_VER = '1.2' Changed to  WAD_EXE_MD5 = '50d694ebfaa622ef7e4061c1bf52efe6' See below for complete copy.

VS Code C# for Visual Studio Code (powered by OmniSharp) plugin not finding .NET Core SDK

Running VS Code with  C# for Visual Studio Code (powered by OmniSharp) plugin is complaining about the following: The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path. This happened on my environment when I have installed dotnet-sdk using snap. To workaround, do: $: sudo ln -sv /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet Reference: https://github.com/OmniSharp/omnisharp-vscode/issues/3077

Installing TIghtVNC using Chocolatey

TightVNC is a graphical-sharing software that works in many platforms like Windows, Linux or OSX. To install TightVNC on Windows using Chocolatey, do: c:\> choco install tightvnc -y --installArguments "VIEWER_ASSOCIATE_VNC_EXTENSION=1 SERVER_REGISTER_AS_SERVICE=1 SERVER_ADD_FIREWALL_EXCEPTION=1 VIEWER_ADD_FIREWALL_EXCEPTION=1 SERVER_ALLOW_SAS=1 SET_USEVNCAUTHENTICATION=1 VALUE_OF_USEVNCAUTHENTICATION=1 SET_PASSWORD=1 VALUE_OF_PASSWORD=p@$$w0rd SET_USECONTROLAUTHENTICATION=1 VALUE_OF_USECONTROLAUTHENTICATION=1 SET_CONTROLPASSWORD=1 VALUE_OF_CONTROLPASSWORD=p@$$w0rd" Where: p@$$w0rd - the administrator password that will be used for the TightVNC application References: https://www.tightvnc.com/ https://chocolatey.org/  

Unblocking zip or exe files download from the internet or non trusted zones

When you download a zip file or an executable file from the internet using IE, Edge or Chrome on Windows, more likely than not the file will have it zone identifier in the alternate stream of the file. This information is used by Windows to determine if the file was downloaded from the internet and it can apply certain level of security precautions for the user. In some instances, files/installers with zone identifiers will not install properly. There are multiple ways to check if the file have zone id. You can use streams , like so: c:\> streams64.exe tightvnc-2.8.27-gpl-setup-64bit.msi And this would spit out something like: streams v1.60 - Reveal NTFS alternate streams. Copyright (C) 2005-2016 Mark Russinovich Sysinternals - www.sysinternals.com C:\temp\tightvnc-2.8.27-gpl-setup-64bit.msi: :Zone.Identifier:$DATA 163 Or just plain PowerShell, like: PS c:\> Get-Content -Path .\tightvnc-2.8.27-gpl-setup-64bit.msi -Stream Zone.Identifier Which will actu...

PS Quick Tips: Change Primary DNS Server of a network interface

PS c:\> Set-DnsClientServerAddress -InterfaceIndex 10 -serveraddresses ("192.168.137.1") Where: 10 - is the interface index. This can be found by running Get-NetAdpater , this will be the column named ifIndex . ("192.168.137.1") - is the DNS server address(es) you want to assign to that interface, this is a comma separated list. Note: This only works on Powershell 3 (or maybe later). Reference(s): http://4sysops.com/archives/how-to-configure-a-network-interface-card-nic-with-powershell-3/

Enable ClearType using PowerShell

When I remote desktop to Windows machines most of the time the fonts just looks ugly. This can be improved by enabling ClearType and I do this every time I connect to a box which I do several times a day. Below is a Powershell code that enables ClearType which I shamelessly copied from StackOverflow. Reference(s): http://stackoverflow.com/questions/5676768/enable-disable-cleartype-in-windows7

Disable/Enable network interface using PowerShell

Windows 10 update 1511 sometimes losses connection inside a VirtualBox(5.0.16) VM. Mostly it happens after the host machine recovers from sleep or hibernate. Workaround I have observed so far is to disable/enable the interface. This can get boring overtime, so below is the PowerShell script that I use to automate it. Note that O is the name of my network adapter.

Creating Ubuntu 19.04 using Quick Create mode in Hyper-V with Enhanced Session Mode

Hyper-V that is shipped with Windows 10 1903 is supposed to have Enhanced Session Mode support for Ubuntu 19.04 when the VM was created using Quick Create option. As of December 1, 2019 Enhanced Session Mode is not working, as a workaround, do the following steps. Assuming a Ubuntu 19.04 VM was created using "Quick Create" option, do: 1. From the host machine, run PowerShell as administrator PS c:\> Set-VM -VMName __Ubuntu_VM_Name_here__ -EnhancedSessionTransportType HvSocket Replace  __Ubuntu_VM_Name_here__ with the Hyper-V VM name. You have to ensure that the VM is not running at this point. 2. Power-up the VM, and then install linux-azure kernel, like: $: sudo apt install linux-azure 3. Shutdown the VM. This is very important, restarting the VM does not work. You can do, like: $: sudo shutdown -h now Once the VM is turned off, turn it back on. It should now have Enhanced Session Mode. For example, the screen dimension can be changed on connection, co...

Run Midnight Commander using specified style

$: mc -S yadt256 This will run Midnight Commander using "Yet Another Dark Theme with 256 color with dark background" style.

termux powerline status configuration

termux is a terminal emulator and Linux environment on Android. To make it even better (looks), enable powerline-status. Start by installing git on termux, like: x1@x1-pc:~$ pkg install git Then clone termux-style, like: x1@x1-pc:~$ git clone https://github.com/adi1090x/termux-style.git x1@x1-pc:~$ cd termux-style x1@x1-pc:~$ chmod +x setup x1@x1-pc:~$ ./setup x1@x1-pc:~$ termux-style Then install Python, like: x1@x1-pc:~$ pkg install python Next up, install powerline-status, like: x1@x1-pc:~$ pip install powerline-status Update ~/.bash_profile to load powerline-status, like: //xyz

Simulating ESC key on iPad with Logitech Type+

I have iPad 6th gen paired with Logitech Type+ bluetooth keyboard. It is not a bad combination for doing quick remote work. Anyway, Termius+ssh+vim is pretty neat. Termius shows convenient keys including ESC key but if you wanted to use your keyboard to simulate ESC key do press fn+Home( ) keys.