]> apps.delaporte.us Git - dotfiles.git/commitdiff
Merge branch 'master' of github.com:edthedev/dotfiles
authorEdward Delaporte <delaport@illinois.edu>
Fri, 11 Sep 2020 15:07:31 +0000 (10:07 -0500)
committerEdward Delaporte <delaport@illinois.edu>
Fri, 11 Sep 2020 15:07:31 +0000 (10:07 -0500)
bootstrap.sh
bootstrap_pi.sh [new file with mode: 0755]
install/ansible.ps1 [new file with mode: 0644]
install/retropi.ps1 [new file with mode: 0644]
install_art.sh [new file with mode: 0755]
this.code-workspace [new file with mode: 0644]

index acd0ba8d28476387d49ab33eaf43276582c7c9eb..c99f8ee4f3badb8a33e99623246ad6b335f3cc71 100755 (executable)
@@ -8,9 +8,6 @@
 # You can scp just this file to the destination host,
 #   and then run it.
 
-# sudo apt-get install zsh
-# TODO: CURL me...
-
 ## Setup Git and Vim
 if [ ! -d ~/dotfiles ]; then
        sudo apt-get install git install vim
diff --git a/bootstrap_pi.sh b/bootstrap_pi.sh
new file mode 100755 (executable)
index 0000000..d192d9d
--- /dev/null
@@ -0,0 +1,72 @@
+# Reminder to future self:
+# Step 0: git clone https://github.com/edthedev/dotfiles
+# Step 1: Run this bootstrap script.
+
+echo "Git, vi are already installed."
+
+mkdir -p ~/.installed
+
+## Setup Git and Vim
+if [ ! -d ~/dotfiles ]; then
+       sudo apt-get install git vim-nox
+       cd ~; git clone git@github.com:edthedev/dotfiles.git
+fi
+
+# sudo apt-get install vim-nox
+
+if [ ! -f ~/.vimrc ]; then
+       git config --global user.email "edward@delaporte.us"
+       git config --global user.name "Edward Delaporte"
+       git config --global core.editor /usr/bin/vim
+       ln -s ~/dotfiles/vimrc ~/.vimrc
+fi
+
+if [ ! -f ~/.installed/i3 ]; then
+       sudo apt-get install i3
+       touch ~/.installed/i3
+fi
+
+## Setup PowerShell
+if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then
+       sudo apt-get install powershell
+       chsh --shell /usr/bin/pwsh
+       mkdir -p ~/.config/powershell/
+       ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1 
+fi
+
+## Create SSH Keys
+if [ ! -f ~/.ssh/id_rsa ]; then
+       ssh-keygen
+fi
+
+## Setup Remote Access
+# if [ ! -f ~/id_rsa.pub ]; then
+#      cp ~/dotfiles/id_rsa.pub ~/id_rsa.pub
+#      chmod go+r ~/id_rsa.pub
+# fi
+
+## Setup Screen
+if [ ! -f ~/.screenrc ]; then
+       sudo apt-get install screen
+       ln -s ~/dotfiles/screenrc ~/.screenrc
+fi
+
+## Setup Vundle for Vim
+if [ ! -d ~/.vim/bundle ]; then
+       git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
+       vim +BundleInstall +qall
+fi
+
+if [ ! -d ~/.installed/code ]; then
+       # sudo apt install snapd
+       # sudo snap install --classic code
+       wget https://packagecloud.io/headmelted/codebuilds/gpgkey -O - | sudo apt-key add -
+  curl -L https://raw.githubusercontent.com/headmelted/codebuilds/master/docs/installers/apt.sh | sudo bash
+       touch ~/.installed/code
+fi
+
+echo "https://github.com/settings/keys"
+echo "vim .git/config -- add: url = git@github.com:edthedev/dotfiles.git"
+cat ~/.ssh/id_rsa.pub
+
+ls -al ~/.installed
diff --git a/install/ansible.ps1 b/install/ansible.ps1
new file mode 100644 (file)
index 0000000..965952f
--- /dev/null
@@ -0,0 +1 @@
+docker up ansible/ansible
\ No newline at end of file
diff --git a/install/retropi.ps1 b/install/retropi.ps1
new file mode 100644 (file)
index 0000000..d0b9518
--- /dev/null
@@ -0,0 +1,7 @@
+\r
+## TODO: Would be clever to make this a DSC module: https://docs.microsoft.com/en-us/powershell/scripting/dsc/quickstarts/website-quickstart?view=powershell-7\r
+Write-Host "Adding ability to switch Joystick"\r
+# https://github.com/meleu/RetroPie-joystick-selection\r
+Write-Host "Enable SSH first via Raspi-Config"\r
+ssh pi@retropi -C 'wget -O- "https://raw.githubusercontent.com/meleu/RetroPie-joystick-selection/master/install.sh" | sudo bash'\r
+Write-Host "Now launch the script via RetroPi Setup - Configuration Tools - Joystick selection"
\ No newline at end of file
diff --git a/install_art.sh b/install_art.sh
new file mode 100755 (executable)
index 0000000..caa2c83
--- /dev/null
@@ -0,0 +1,8 @@
+mkdir -p ~/.installed
+
+if [ ! -f ~/.installed/gimp ]; then
+       sudo apt-get install gimp
+       touch ~/.installed/gimp
+fi
+
+ls -al ~/.installeear
diff --git a/this.code-workspace b/this.code-workspace
new file mode 100644 (file)
index 0000000..d6801ba
--- /dev/null
@@ -0,0 +1,31 @@
+{
+       "folders": [
+               {
+                       "path": "."
+               },
+               {
+                       "path": ".."
+               }
+       ],
+       "settings": {
+               "workbench.colorCustomizations": {
+                       "activityBar.activeBackground": "#65c89b",
+                       "activityBar.activeBorder": "#945bc4",
+                       "activityBar.background": "#65c89b",
+                       "activityBar.foreground": "#15202b",
+                       "activityBar.inactiveForeground": "#15202b99",
+                       "activityBarBadge.background": "#945bc4",
+                       "activityBarBadge.foreground": "#e7e7e7",
+                       "statusBar.background": "#42b883",
+                       "statusBar.border": "#42b883",
+                       "statusBar.foreground": "#15202b",
+                       "statusBarItem.hoverBackground": "#359268",
+                       "titleBar.activeBackground": "#42b883",
+                       "titleBar.activeForeground": "#15202b",
+                       "titleBar.border": "#42b883",
+                       "titleBar.inactiveBackground": "#42b88399",
+                       "titleBar.inactiveForeground": "#15202b99"
+               },
+               "peacock.color": "#42b883"
+       }
+}
\ No newline at end of file