6 changed files with 13 additions and 103 deletions
@ -1,32 +0,0 @@
@@ -1,32 +0,0 @@
|
||||
stupid stupid stupid stupid stupid stupid ssh key problems |
||||
- key is owned by root for some unknown reason |
||||
|
||||
``` |
||||
Load key "/home/ubuntu/.ssh/id_rsa": Permission denied |
||||
``` |
||||
|
||||
docker: |
||||
- docker is not installed |
||||
- with and without docker? (short cloud-init url at charlesreid1.com?) |
||||
- add user to docker group |
||||
- add user to sudo group |
||||
- etc etc |
||||
|
||||
dotfile problems: |
||||
- git s does not work |
||||
- stupid "back" being inserted when I do ctrl+b |
||||
- arrow keys in vim - already mentioned. |
||||
|
||||
vim syntax: |
||||
- .rule, .settings, and .snakefile and etc - syntax highlight with snakemake highlights, add .vim to repo |
||||
- left arrow right arrow in insert mode inserts C |
||||
|
||||
vim helpers: |
||||
- syntax highlighting ok |
||||
- need better helpers and bundling |
||||
|
||||
dotfile repo organization: |
||||
- allows adding color schemes |
||||
- separate common dotfile components for each machine into components |
||||
- submodules is definitely the way to go here. |
||||
|
@ -1,63 +0,0 @@
@@ -1,63 +0,0 @@
|
||||
#!/usr/bin/env python3 |
||||
import getpass |
||||
import os, sys |
||||
import subprocess |
||||
|
||||
|
||||
def install_singularity_the_slightly_easier_way(): |
||||
user = getpass.getuser() |
||||
if(user!="root"): |
||||
raise Exception("You are not root - this script requires root (or write access to /usr/local).") |
||||
else: |
||||
|
||||
print("Installing singularity...") |
||||
|
||||
|
||||
############################# |
||||
# Prerequisites |
||||
|
||||
print(" - installing libarchive-devel") |
||||
aptlibarchive = ["apt-get","install","-y","libarchive-dev"] |
||||
keyupdateproc = subprocess.call(aptlibarchive) |
||||
|
||||
|
||||
############################# |
||||
# Singularity |
||||
|
||||
version = "2.5.1" |
||||
|
||||
print(" - downloading singularity") |
||||
tarurl = "https://github.com/singularityware/singularity/releases/download/{version}/singularity-{version}.tar.gz".format(version=version) |
||||
wgetcmd = ["wget",tarurl] |
||||
subprocess.call(wgetcmd) |
||||
|
||||
print(" - unpacking singularity") |
||||
tarcmd = ["tar","xvf","singularity-{version}.tar.gz".format(version=version)] |
||||
subprocess.call(tarcmd) |
||||
|
||||
print(" - configuring singularity") |
||||
singularity_dir = "singularity-{version}".format(version=version) |
||||
configurecmd = ["./configure","--prefix=/usr/local"] |
||||
subprocess.call(configurecmd, cwd=singularity_dir) |
||||
|
||||
print(" - making singularity") |
||||
makecmd = ["make"] |
||||
subprocess.call(makecmd, cwd=singularity_dir) |
||||
|
||||
print(" - installing singularity") |
||||
makeinstallcmd = ["make","install"] |
||||
subprocess.call(makeinstallcmd, cwd=singularity_dir) |
||||
|
||||
print(" - removing singularity") |
||||
rmtar = ["rm","-rf","singularity-{version}.tar.gz".format(version=version)] |
||||
subprocess.call(rmtar) |
||||
rmdir = ["rm","-rf","singularity-{version}".format(version=version)] |
||||
subprocess.call(rmdir) |
||||
|
||||
print(" ~~*~~ ~~*~~ ~~*~~ SUCCESS! ~~*~~ ~~*~~ ~~*~~\n") |
||||
print(" Singularity is now installed.") |
||||
print() |
||||
|
||||
if __name__=="__main__": |
||||
install_singularity_the_slightly_easier_way() |
||||
|
Loading…
Reference in new issue