https://github.com/joknarf/flypack
My fly pack
https://github.com/joknarf/flypack
Last synced: 3 months ago
JSON representation
My fly pack
- Host: GitHub
- URL: https://github.com/joknarf/flypack
- Owner: joknarf
- Created: 2024-10-06T11:32:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-21T08:30:50.000Z (about 1 year ago)
- Last Synced: 2025-01-07T15:42:59.674Z (about 1 year ago)
- Size: 1.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flypack
My fly pack generated by [thefly](https://gihub.com/joknarf/thefly)
Full joknarf portable shell environment
Activate (only in /tmp)
```
. <(curl -s -L https://raw.githubusercontent.com/joknarf/flypack/main/fly.pak)
```
Connect and Activate (only in /tmp)
```
ssh -t '. <(curl -s -L https://raw.githubusercontent.com/joknarf/flypack/main/fly.pak)'
```
Install locally in $HOME/.fly.d and activate at login (adapt to shell init file)
```
. <(curl -s -L https://raw.githubusercontent.com/joknarf/flypack/main/fly.pak) install
echo '. ~/.fly.d/fly source' >>~/.profile
echo '. ~/.fly.d/fly source' >>~/.bash_profile
```
Use locally installed fly to use through sudo user to ssh
```
sudo -u sshuser ssh -t remotehost ". <(cat <<<'$(flypack)') bash"
sudo -iu sshuser ssh -t remotehost ". <(base64 -d <<<$(flypack|base64 -w0))"
sudo -iu sshuser ssh -t remotehost ". <(curl -s -L https://raw.githubusercontent.com/joknarf/flypack/main/fly.pak)"
```