Skip to main content

Posts

Showing posts from December, 2022

Install TightVNC server on Linux Mint 21.1 Vera

Install TightVNC server on Linux Mint 21.1 Vera One of the options to manage VirtualBox GUI on a Linux host is via VNC server. Below is quick setup to get it up and running. $: sudo apt install tightvncserver It is handy to be able to maintain the same session when connecting to Linux, so let's install tmux, like so: $: sudo apt install tmux Once TightVNC server and tmux are installed, run the following to create a session: $: tmux $: tightvncserver -nolisten tcp :1 -geometry 1024x768 The above commands creates a new tmux session and runs a new VNC server with geometry of 1024x768 on port :1 In multiple cases, I have observed that the VNC session created was just a solid gray backgroun, no xterm, no nothing. As a work-around install XFCE4 like below $: sudo apt install xfce4 xfce4-goodies Then update ~/.vnc/xstartup like below. #!/bin/sh xrdb "$HOME/.Xresources" xsetroot -solid grey #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP...

Create MacOS High Sierra VM on VMware Fusion 8.5.10

Create MacOS High Sierra VM on VMware Fusion 8.5.10 Creating macOS High Sierra on Mac mini using VMware Fusion 8.5.10 in 2022 was not very straightforward. From VMware documentation this should been an easy drag and drop operation using VMware Fusion 12 but not with VMware Fusion 8. Anyway, this is how I got it working. First of, below is the environment: Host: Mac mini (Late 2014) with 16GB memory Host OS: maçOS Mojave VMware Fusion: 8.5.10 Below are the steps to create the VM: On the host, visit https://support.apple.com/en-us/HT211683 Look for macOS High Sierra, I used this link - https://apps.apple.com/us/app/macos-high-sierra/id1246284741?mt=12 This opens the App Store. Download the High Sierra but don’t install it Once downloaded it will be available in /Applications/Install macOS High Sierra.app Clone or download a zip copy of the script that creates dmg file from an app file.The repo is located here - https://github.com/rtrouton/create_macos_vm...

Add hard drive into Linux Mint 21.1 Vera/Ubuntu/Debian

Add hard drive into Linux Mint 21.1 Vera/Ubuntu/Debian This is a condensed version on how to add hard disk into Linux Mint/Ubuntu/Debian. First check hard drives in the system, like so: $: sudo lshw -C disk It should show (partial data only) like this: *-disk:1 description: ATA Disk product: WDC WD3200AAKX-0 vendor: Western Digital physical id: 1 bus info: scsi@1:0.0.0 logical name: /dev/sdb version: 1H15 serial: WD-WMC2E0871450 size: 298GiB (320GB) capabilities: partitioned partitioned:dos configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=e32ff1f9 Using parted , let's now configure the harddisk/partition $: sudo parted /dev/sdb In parted prompt, create a new GPT partition table (parted) mklabel gpt Change the default unit to GB (parted) unit GB Create one partition occupying all the space on the drive (parted) mkpart primary ext4 0 100% Check to verify the layout (parted) print It should show somethi...

Install VirtualBox 7.0.4 on Linux Mint 21.1 Vera

Install VirtualBox 7.0.4 on Linux Mint 21.1 Vera ▣ Download VirtualBox 7.0.4 from www.virtualbox.org , select Ubuntu 22.04. ▣ Once download is complete, open a terminal and run the following: $: cd Downloads/ $: sudo dpkg -i virtualbox-7.0_7.0.4-154605~Ubuntu~jammy_amd64.deb $: sudo apt -f install $: sudo usermod -a -G vboxusers timus Replace timus with the current user

Qt console hello world

Qt console hello world This guide shows how a Qt console hello world looks like. ▣ Open  Qt Creator  and click on  Create Project... ▣ Create Qt Console Application by following the section from @1 to @3.  ▣ In Project Location window provide a project name, i.e., HelloWorldConsole ▣ In Define Build System select CMake ▣ In Translation File , take the default values ▣ In Kit Selection , select the toolchain kit to be used. Below shows only one which is MinGW 64-bit.  ▣ In Project Management, take the default.  ▣ In line 6, I have added an instruction to output Hello World in to the console. Also changed to return 0 to exit the application as event loop is not needed. ▣ Gist source code shown below for convenience ▣ Running it using Qt Creator is well and good but we probably want to run it external to the IDE. To deploy the binary with all the dependencies, open the compiler environment used to build the application. In the case above we have used Q...

Qt Widget hello world

Qt Widget hello world Qt Widget "Hello World" using the Designer  ▣ Open Qt Creator and click on Create Project... ▣ Create Qt Widgets Application ▣ Set project location and provide a name - HelloWorld ▣ Use CMake for the build system ▣ Use the default when defining the main class ▣ For the translation file, do the default for now ▣ Select the Kit (toolchain) to use - if you have followed this installation instruction then you will only have one option as below ▣ In the Summary, just do the default ▣ The HelloWorld project should show the editor with main.cpp files content.  Double click on mainwindow.ui to open the designer. ▣ In the Controls palette, scroll all the way down and look for Label , then drag and drop into the canvas, see below. Then double click to change the text to Hello World . Change the size to show the entire text.   ▣ Click on the Run button, see below for the location ▣ An application with MainWindow title bar and Hello World text should s...

Installing Qt Creator 9.0.1 on Windows 10

Installing Qt Creator 9.0.1 on Windows 10 This is a quick guide on installing Qt Creator 9.0.1 on Windows 10. As of December 24, 2022, the latest available online installer is qt-unified-windows-x64-4.5.1-online.exe . Binaries can be downloaded from https://www.qt.io/download , I was using Qt for open source use. What follows are the screen captures to get working installation of Qt Creator (Qt 6.4.1). Welcome Screen Accept open source obligations Welcome to open source Qt setup Contribute to Qt development Installation Folder - Custom installation Select Components - Use default, add "MinGW 11.2.0 64-bit" License Agreement Start Menu Shortcuts Ready to Install Installing Finished Keywords: Qt Creator, CPP

Installing Qt Creator 4.11.x on Windows 10

This is a quick guide on installing Qt Creator 4.11.x on Windows 10. * Download the QT Online Installer (as of March 2020 it can be downloaded from here ). * Run qt-unified-windows-x86-3.2.2-online.exe and follow the installation wizard like below Welcome screen Create an account or login  Accept Qt Open Source obligations Setup Qt Contribute to Qt Create User Experience Development Select installation folder Select Components - Default selection Select MinGW 7.3.0 32-bit and MinGW 7.3.0 64-bit Under Developer and Designer Tools - check MinGW 7.3.0 32-bit/64-bit Accept License Agreement Start Menu Shortcuts Ready to Install Installing Qt Creating Maintenance Tool Completing the Qt Wizard Qt Creator! Keywords: Qt Creator, MinGW 7.3.x