From: Edward Delaporte Date: Sat, 23 Oct 2021 04:36:13 +0000 (+0100) Subject: Improved README X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/16a6eb3f35eb436dd71f75743f5e0ca9eef6989e?ds=sidebyside Improved README --- diff --git a/Makefile b/Makefile deleted file mode 100644 index 1a7ad58..0000000 --- a/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -BASEDIR=$(CURDIR) - -hello: - echo "Hello!" - -world: - echo "$(BASEDIR)" \ No newline at end of file diff --git a/README.md b/README.md index c2a3ec4..653c6dc 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,39 @@ # dotfiles -EdTheDev's Linux and Windows dot files. These are shared so that I can easily share a link to a tip or trick. +EdTheDev's Linux and Windows dot files. +These are shared so that I can easily share a link to a tip or trick. -LATEST +## Getting Started - Raspberyy Pi -Before Git Clone -rasppi-config -- set wireless -rasppi-config -- set keyboard location +### Get Online -After git clone +```sh +rasppi-config +``` + ++ Set up wireless ++ Set keyboard location + +### Clone this repository + +```sh +sudo apt-get install git +git clone https://github.com/edthedev/dotfiles.git +``` + +### Create a new user + +```sh sudo useradd bob -m -G sudo sudo passwd bob sudo passwd pi +``` +### Boostrap CLI -## Bare Minimum - -+ `install.sh` - Script I use to install packages on Linux, most typically a Raspberry Pi. -+ `setup.sh` - Script I use to get to bare minimum (by my definition) setup on Linux - typically a Raspberry Pi. -+ `bootstrap.ps1` - Script I use to setup on Windows. Mostly relies on the `Chocolatey` package manager for Windows, of course. +``` +sudo ./install_cli_basics.sh +``` ## Installations @@ -32,3 +47,7 @@ These are, obviously, just my preferred configurations. In general, these work by setting up symlinks on Linux, and on Windows by copying a stub file that sources the versioned file. Most of these are cross platform `.ps1` files that run under PowerShell. + +## Further Reading + +See `i3.md` for info on setting up the I3 window manager. diff --git a/bootstrap.ps1 b/bootstrap.ps1 deleted file mode 100644 index 13ce10f..0000000 --- a/bootstrap.ps1 +++ /dev/null @@ -1,69 +0,0 @@ -<# -.SYNOPSIS - -Setup my Windows PowerShell environment. - -.DESCRIPTION - -.NOTES - -Relies heavily on the Chocolatey package manager. - -#> - -param( - # [Parameter(Mandatory=$true, HelpMessage="Install Development Tools")] - [switch]$dev_tools, - # [Parameter(Mandatory=$true, HelpMessage="Install Modeling Tools")] - [switch]$archi, - # [Parameter(Mandatory=$true, HelpMessage="Install Vim")] - [switch]$vim, - # [Parameter(Mandatory=$true, HelpMessage="Setup PowerShell Profile")] - [switch]$profile, - [switch]$fav_ps_modules -) - -## Install SSH client -Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 - -## Always Install Chocolatey if missing -$testchoco = powershell choco -v -if(-not($testchoco)){ - Write-Output "Seems Chocolatey is not installed, installing now..." - Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) -} - -# OWASP ZAP for web application security scanning -if($false) { - choco install zap -} - -## TODO: Can I set this via command line: chrome://flags/#enable-force-dark - -if($doBootStrap) { - # DONE! - New-Item -ItemType File -Path $doneFlagFile -} - -# ArchiMate for enterprise modeling -if($archi) { - choco install archi -} - -# Install dev tools -if($dev_tools){ - ./install/dev.ps1 -} - -if($vim){ - ./install/vim.ps1 -} - -if($profile){ - ./install/profile.ps1 -} - -if($fav_ps_modules) { - Write-Host "Reminder: Need to install these modules with admin escalation." - ./install/admin/favorite-ps-modules.ps1 -} diff --git a/install_cli_basics.sh b/install_cli_basics.sh index 2ee701f..e2f27d4 100755 --- a/install_cli_basics.sh +++ b/install_cli_basics.sh @@ -24,3 +24,5 @@ if [ ! -f ~/.screenrc ]; then sudo apt-get install -y screen fi +echo "************** Install Midnight Commander" +sudo apt-get install mc