Skip to content

Instantly share code, notes, and snippets.

@richard-burhans
richard-burhans / README.md
Created September 12, 2023 16:08 — forked from mgerdts/README.md
Install windows with bhyve

These are bare-bones instructions for creating a Windows image for bhyve on SmartOS. You will need a platform image that has the fix for OS-7117. Platform images that I've used in testing are here: iso tgz usb

Create a volume that will be the disk.

zfs create -o volblocksize=4k -V 16g -s zones/hdd-windows

This script will be used for booting from the CD.

@richard-burhans
richard-burhans / windows-10-pro-smartos-bhyve.md
Created June 22, 2023 20:38 — forked from skirmess/windows-10-pro-smartos-bhyve.md
Windows 10 Pro Image for SmartOS Bhyve

Windows 10 Pro

Windows 10 Pro ISO

Create a fresh Windows 10 Pro ISO file with Microsofts Media Creation Tool. (I created a Windows 10 Pro 64 bit German ISO image)

Save the created image on your SmartOS global zone.

cp ... /zones/Windows10_64de.iso
@richard-burhans
richard-burhans / Readme.md
Last active May 17, 2019 16:50
Duo alias
adduser rico --gecos rico    

cd
mkdir src
cd src
curl -LO https://github.com/duosecurity/duo_unix/archive/duo_unix-1.9.21.tar.gz
cd ..
mkdir build
cd build

tar xvf ../src/duo_unix-1.9.21.tar.gz

@richard-burhans
richard-burhans / jupyter-notebook-slurm.md
Last active April 30, 2024 19:57
jupyter notebook on the slurm cluster

First, we're going to install Jupyter inside a conda environment. I've included JupyterLab, Jupyter Notebook, and Voila. We submit a slurm job to create this conda environment for us (only needs to be done once).

# directory for running/testing jupyter notebook on the cluster
rico@brubeck:~$ MY_WORK_DIR="/galaxy/home/$USER/jupyter-notebook"
rico@brubeck:~$ test -e "$MY_WORK_DIR" || mkdir -p "$MY_WORK_DIR"
rico@brubeck:~$ cd "$MY_WORK_DIR"
# set up a password to use for your jupyter notebook
@richard-burhans
richard-burhans / LR_EC_analyser.md
Last active April 6, 2020 22:07
LR_EC_analyser

Run an interactive job on the cluster

rico@desmond:~$ HOME=/home/rico srun -D /home/rico -n 1 -c 1 -N 1 --mem=32G --pty bash

Create a new Conda environment with the associated prerequisites

rico@c16:/nfs/thumper.galaxyproject.org/home/rico$ mkdir $HOME/conda
rico@c16:/nfs/thumper.galaxyproject.org/home/rico$ export CONDA_ENVS_PATH=$HOME/conda
rico@c16:/nfs/thumper.galaxyproject.org/home/rico$ conda create --name ktest python=2.7 virtualenv 'samtools>=1.8' R java-jdk=8

Fetching package metadata ...............

@richard-burhans
richard-burhans / install-openafs.bash
Last active May 12, 2016 22:14
Install OpenAFS server on SmartOS
#!/usr/bin/bash
# Add BX repository to pkgin config file
echo "http://admin.bx.psu.edu/packages/SmartOS/current/x86_64/All" >> /opt/local/etc/pkgin/repositories.conf
# Update pkgin database
pkgin -f update
# Install gnupg2 (SmartOS's gpg is missing /usr/libexec/gnupg/gpgkeys_curl)
pkgin -y install gnupg2
# Import admin@bx.psu.edu's public key
gpg2 --no-default-keyring --keyring /opt/local/etc/gnupg/pkgsrc.gpg --keyserver pgp.mit.edu --recv-keys D279E65CFC8EDB80B88E4BB136A3F687E36BC00B