Skip to content

Instantly share code, notes, and snippets.

View bdelcamp's full-sized avatar

Brandon Delcamp bdelcamp

  • Forestville, NY
View GitHub Profile
for dir in */; do mkdir -- "$dir"/{tmp1,foo,bar,qux}; done
@bdelcamp
bdelcamp / fedora.citrix.workspace.sh
Created March 30, 2021 20:28
Install Citrix ICAClient on Fedora 34
#!/bin/sh
#Install Citrix Workspace App on Fedora 34
#Download Client from https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html
#sudo dnf install -y ICAClientWeb-rhel-20.04.0.21-0.x86_64.rpm
sudo dnf install ICAClient
#sudo dnf install -y compat-openssl10.x86_64 ##not needed >f32
# Update libcrypto reference in desktop file
@bdelcamp
bdelcamp / fedora_install_vscode.sh
Created April 14, 2021 18:00
Add vscode repo and install.
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
sudo dnf check-update
sudo dnf install -y code
@bdelcamp
bdelcamp / LXCBindMount.md
Created July 9, 2021 16:44 — forked from ajmassi/LXCBindMount.md
Create a bind mount from a Proxmox host on an unprivileged lxc container

Proxmox Assign Bind Mount To Unprivileged Container

In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.

Bind Mount dataset to LXC

Add the following line to /etc/pve/lxc/<CT_ID>.conf

mp0:/mount/point/on/host,mp=/mount/point/on/lxc

Create group on host

In the default Proxmox configuration, unpriviliged container subgids will have the prefix "10" followed by the expected 4-digit gid.