Install Docker Desktop Ubuntu 22.04

Refer: https://askubuntu.com/questions/1409192/cannot-install-docker-desktop-on-ubuntu-22-04

sudo apt-get update

sudo apt-get install ca-certificates curl gnupg lsb-release

sudo mkdir -p /etc/apt/keyrings

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt update

sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

Download current version: https://docs.docker.com/desktop/install/ubuntu/

sudo apt-get install ./docker-desktop-<version>-<arch>.deb

Note: At the end of the installation process, apt displays an error due to installing a downloaded package. You can ignore this error message.

N: Download is performed unsandboxed as root, as file '/home/user/Downloads/docker-desk

It does not seem to start correctly, using this hack:

Refer: https://github.com/docker/desktop-linux/issues/94

Had to close and launch it twice, to see the application properly, it might have hung, start without logon; however additional reading said the start-up process could take some time. You might want to skip this step until you generate the keys.

/opt/docker-desktop/bin/com.docker.backend

Original Docker Desktop Target that DID NOT WORK

Menu Libre Command

/opt/docker-desktop/bin/docker-desktop

You also need to generate keys before you can logon

Refer: https://docs.docker.com/desktop/get-started/#credentials-management-for-linux-users

gpg --generate-key

You'll need to grab the generated public key from the above command, to use with pass init command, as follows:

pass init <your_generated_gpg-id_public_key>

Visual Studio Code – Workspace Color Themes and Keyboard Bindings

Don't open last folder

Refer: https://blog.mruckman.com/2019/09/visual-studio-code-dont-open-last-folder/

For your workspace

mkdir .vscode

Copy this file there

settings.json

{
    "cSpell.words": [],
    "editor.fontSize": 13,
    "window.zoomLevel": 1.2,
    "files.trimTrailingWhitespace": true,
    "workbench.colorTheme": "Monokai"
}

Update keyboard bindings

File, Preferences, Keyboard Shortcuts

Triple dot, upper right hand corner, Show User Keybindings

Then upper right hand corner, "Open Keyboard Shortcuts

Here's the current keybindings.txt

Refer: https://stackoverflow.com/questions/71225580/move-to-the-next-line-when-commenting-a-line-in-vs-code

Broken Icon on Ubuntu 22.04 with Parallels

The broken icon seems to be a symptom of Ubuntu and M1.

Refer: https://forum.parallels.com/threads/gear-icon-parallels-shared-clipboard-icon-in-ubuntu-22-04.358588/

I just found that you can work around this issue by disabling Wayland in Ubuntu and use the standard Xorg server that was the default in versions prior to 22.04. There are full instructions here, but you can simply edit the file

sudo gedit /etc/gdm3/custom.conf

and uncomment the line

#WaylandEnable=false

After a restart the gear icon goes away, focus stays in the window you where using when switching desktops, and shared clipboard still works.

Copy Command Output To Linux Clipboard Directly

Refer: https://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/

In order to put it on the global clipboard and just not the terminal clipboard.

alias cbcopy='xclip -selection clipboard'
alias cbpaste='xclip -selection clipboard -o'

Installation

sudo apt-get install xclip

How do I use the xclip command for clipboard copy and paste?

Let us copy the output of the following command to the Linux clipboard. The syntax is:

command | xclip
command | xclip -i

To paste selection to standard out or pipe, use the following command again:

xclip -o
xclip -o | myapp1 -arg1