Skip to main content

Posts

Showing posts from 2018

Mouse cursor disappers inside the VirtualBox VM when installing CentOS 7

Tried to create a VM using CentOS 7 ISO on VirtualBox 6. The VM booted fine and showed WELCOME TO CENTOS 7 screen, the issue is that clicking inside the VM would cause the mouse cursor to disapper. The VM is still usable but you have to use the keyboard to navigate the OS. To workaround the issue, shutdown the VM and change the settings System | Pointing Device to USB Tablet .

CentOS 7 networking not working on VirtualBox

It seems like this is by design (for security?) that CentOS 7 does not have networking working by default. Anyway, to fix this on VM running VirtualBox, edit /etc/sysconfig/network-scripts/ifcfg-enp0s3 and change the line that says ONBOOT=no to ONBOOT=yes and then reboot the machine. Refs: https://superuser.com/questions/915536/centos-7-virtualbox-no-internet-access

UnrealEngine GenerateProjectFiles.bat error - could be due to missing RPCUtility.exe

Tried to run  GenerateProjectFiles.bat to build Unreal Engine from source ( link ),  but got error like below: C:\>Users\x\UnrealEngine>GenerateProjectFiles.bat Setting up Unreal Engine 4 project files... GenerateProjectFiles ERROR: It looks like you're missing some files that are required in order to generate projects.  Please check that you've downloaded and unpacked the engine source code, binaries, content and third-party dependencies before running this script. To fix, run setup.bat like: C:\Users\x\prj\UnrealEngine>setup.bat Note that you have to say no to the prompt Would you like to overwrite your changes (y/n)? .

Installing QNX SDP 6.6 Linux on Ubuntu 18.10

QNX SDP 6.6 (Software Development Platform) on Linux is a 32-bit application. Now it can be installed on Ubuntu 18.10 64-bit OS but you need to install the following pre-requisite libraries: $: sudo apt install libc6:i386 default-jre-headless:i386 libgtk2.0-0:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libatk-adaptor:i386 You should be able to run QNX Momentics at this point ( /opt/qnx660/run-qde.sh ) but you will get a lot of error messages on the console like below: (qde:8603): Gtk-WARNING **: 01:12:34.312: Unable to locate theme engine in module_path: "adwaita", . To clean it up, do: $: sudo apt install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 gtk2-engines:i386 gnome-themes-extra:i386 </>

C#: Convert SecureString to String

Sample code to convert C# SecureString to String. Note that this is not the most secure to access SecureString. Line 20 is one example of converting SecureString to String, this only works for .Net Framework 4.0 or later. Lines 23 to 38 converts SecureString to String and works using .Net Framework 2.0 or up. Reference(s): https://stackoverflow.com/questions/818704/how-to-convert-securestring-to-system-string </>

Copy/paste text from Ubuntu 18.10 (Cosmic Cuttlefish) VM from/to Windows host using VirtualBox

Tested on: Host: Windows 10 Enterprise (1803) with VirtualBox 5.2.20 Guest: Ubuntu 18.10 (Cosmic Cuttlefish) Goal : Copy/paste text from/to Ubuntu 18.10 from/to Windows host Solution: This is not absolutely necessary but it is a good practice to update Ubuntu 18.10 to the latest using a terminal, like: $ sudo apt update $ sudo apt upgrade $ sudo apt autoremove I would advice to reboot the machine at this point so that we will be running the latest kernel. The next command may also pick the wrong version of the kernel headers if the machine(VM) is running the older version of the kernel. Now, install dkms so that VirtualBox guest additions can be compiled as part of the kernel, like: $ sudo apt install dkms Now mount VirtualBox guest additions, this will be done from the external/host UI of the VirtualBox guest VM. For example, click on Devices | Insert Guest Additions CD Image... Now head into the VM and do: $ cd /media/<username>/VBox_GAs_5.2.20 $ sudo

Copy/paste text from Kali Linux (VM) to Windows host using VirtualBox

Tested on: Host: Windows 10 Enterprise (1803) with VirtualBox 5.2.18 Guest: Kali Linux 2018.3a Goal: Copy/paste text from Kali Linux from/to Windows host Solution: This is not absolutely necessary but is a good practice, update Kali to latest version using a terminal, like: :/# apt update :/# apt upgrade :/# apt autoremove Sometimes this is not enough to bring Kali to the latest and greatest, you may have to also upgrade it, like: :/# apt full-upgrade I would advice to reboot the machine at this point so that we will be running the latest kernel. The next command may also pick the wrong version of the kernel headers if the machine(VM) is running the older version of the kernel. Now, install dkms so that VirtualBox guest additions can be compiled as part of the kernel, like: :/# apt install dkms Now mount VirtualBox guest additions, this will be done from the external/host UI of the VirtualBox guest VM. For example, click on Devices | Insert Guest Additions CD

VirtualBox Shared Clipboard not working on Ubuntu Budgie 18.04 VM guest

VirtualBox Guest Additions are installed and Shared Clipboard (Bidirectional) option selected. Even tried to reboot still not working. Any hints how to fix is appreciated. Note that Ubuntu 18.04 (Gnome) and Ubuntu 18.10 LXQt is working the same Windows 10 host. [6/18/2018] Most be getting old. I assumed VirtualBox guest additions was installed as the VM window can be resized. Anyway, installed guest additions and copy/paste worked like a charm. Also reported in Discource https://discourse.ubuntubudgie.org/t/virtualbox-shared-clipboard-not-working-on-budgie-18-04/646

(Momentics:): GLib-CRITICAL **:: g_base64_encode_step: assertion 'in != NULL' failed

Running QNX Momentics (qde) from the console on Ubuntu 18.04 shows a lot of error message but it seems like it does not affect functionality of the application. Below is an example of the error message I am seeing. (Momentics:3535): GLib-CRITICAL **: 23:28:28.692: g_base64_encode_step: assertion 'in != NULL' failed To get rid of the error message, do the following: $ sudo apt install libcanberra-gtk-module export SWT_GTK3=0 ~/qnx/qnxmomentics/qde

Install LXQt on Ubuntu 18.10 Cosmic Cuttlefish

Note: Tested on alpha version of Ubuntu 18.10 server image using daily build date 2018/06/09. Steps to install LXQt on 18.10 using server image: * Download server image and install. I have only selected Open SSH as the core function of the server. *  Install LXQt sudo apt install xorg sddm lxqt Reference: https://askubuntu.com/questions/873529/how-to-install-lxqt-on-ubuntu-server-16-04 Keywords: LXQt Ubuntu 18.10 Cosmic Cuttlefish

Lubuntu 18.04 minimal installation does not include high contrast theme

I really like the trend in Ubuntu and derivatives for offering minimal installation in 18.04. Lubuntu offered that option but it still includes a lot of applications that I don't really need, for example it included gnumeric, Abiword, etc. I am hoping that future versions will be more streamlined. Anyway, I also sometimes use high contrast theme but this is not installed by the default. To fix this do: sudo apt install gnome-accessibility-themes

GIMP Portable 2.10.0 browsing of files not working

I haven't used GIMP in while as I didn't have a need for it, was mainly using GIMP 2.8.20 to help document my work. Anyway, tried a new version of GIMP 2.10 today from PortableApps.com and it looks pretty good. The issue is that browsing does not work. It is big inconvenience, I can open files via drag-and-drop, so it is a little workable. The good news is that upgrade is available, go ahead to SourceForge to get the new version. I have upgraded to GIMPPortable_2.10.0-2 and it works like a champ. Main download location: https://sourceforge.net/projects/portableapps/files/GIMP%20Portable/ Version that I am using that has the fix for browsing: https://sourceforge.net/projects/portableapps/files/GIMP%20Portable/GIMPPortable_2.10.0-2.paf.exe/download

Screen sharing on minimal installation of Ubuntu 18.04

Ubuntu 18.04 offered a minimalist install. This gets rid of a lot of software that I don't normally use, I really like this new feature. See below for this option during install. What you pay with this option though (at least in 18.04) is that screen sharing is not working. This is how it looks like trying to configure it.  Anyway, to get it work install vino , like: sudo apt install vino After installing vino, it should look like below. Observe that Screen Sharing option shows up just below computer name. Additionally, to connect to it from Windows using RealVNC client, you need to disable vino encryption, like: gsettings set org.gnome.Vino require-encryption false

Display most used applications in Windows 10

To show most used applications in Windows 10 (version 1709), do: Click on Windows button(mouse) or Windows key, then select Settings ( ) Then click on Personalization ( ) Then click on Start and turn on Show most used apps ( ) Note: Tested on Windows 10 version 1709