Installing Scoop with Non Admin Account
Installing Scoop with Non-Admin Account #
This procedure has now been marked as unauthorized on the DREN #
On DREN Machine
Scoop, a non-admin package manager for Windows. To install, open Powershell and run the following:
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
As of 6/15/2018, the DREN is not configured to trust certain root TLS certificates (like the one that get.scoop.sh is signed by). If you get a TLS error, you can temporarily disable TLS trust checking with the following command. Then try installing again.
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} ;
scoop should now be on your PATH. It needs Git to update itself so, if it is not installed already, run:
scoop install git
Finally run:
scoop bucket add extras
You can now search for packages using the “scoop search” command and, if a package does not exist for your software, writing one of your own is as simple as a JSON file.
Caveat: If you get a TLS error during a package install, you may need to run [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} ;
again. Then, uninstall the package (scoop uninstall {package}
) before installing it again (scoop install {package}
).
Using Scoop to Install NPM and Vue projects #
- In Powershell, change into the directory where you would like to create your Vue project
- Use scoop to install node
scoop install nodejs-lts
- Install the Vue CLI globally using NPM
npm install -g @vue/cli
- Create a Vue project
vue create my-project
cd my-project
npm run serve
- use 7-zip on Windows to compress your
node_modules
folder into.tar
format - delete
node_modules
directory - use 7-zip on Windows to compress
my-project
(.zip
or.tar
is fine when compressing the project directory)
On RDTE Ubuntu Machine
- extract your
my-project.zip
ormy-project.tar
wherever you want it. cd my-project
and untar thenode_modules.tar
tar -xvf node_modules.tar
npm install
npm run serve
Using Scoop to Download Docker Images #
On DREN Machine
In Powershell install Cygwinscoop install cygwin
Once cygwin is installed, enter a cygwin prompt by typingcygwin
in your PowershellFind your cygwin home directorycygpath -w ~
Check cygwin installed packagescygcheck --check-setup
wget
should be installed by default
Usewget
to download and installapt-cyg
wget -O apt-cyg https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin
Useapt-cyg
to installcurl
apt-cyg install curl
apt-cyg install jq
Usescoop
to installcurl
,go
andjq
scoop install curl
scoop install jq
scoop install go
the above method is archived for historical purposes
- In Powershell install
git
,curl
,jq
,go
, andtar
scoop install git curl jq go tar
- Run
git-bash
git-bash
- In git-bash
- Download
download-frozen-image-v2.sh
curl -o download-frozen-image-v2.sh https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh
- Run the file
bash download-frozen-image-v2.sh {dir_name} {image_name}:{tag}
- ie.
bash download-frozen-image-v2.sh ubuntu ubuntu:bionic
- Once the image has completed downloading,
tar
the directory for transfer to RDTE computertar -C '{dir_name}' -cf '{image_name}.tar' .
- ie.
tar -C 'ubuntu' -cf 'ubuntu.tar' .
On RDTE Ubuntu Machine
- Import the image into Docker
docker load -i {image_name}.tar
- ie.
docker load -i ubuntu.tar
- Verify that the image was imported correctly
docker images