Compare commits
No commits in common. "0d76eb05316a0a85654d252bbef9d9ae02124e8e" and "1732c627345b4b372d9034e0b8d5bfe38d4fdfa7" have entirely different histories.
0d76eb0531
...
1732c62734
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "sc-im"
|
title: "sc-im"
|
||||||
tags: [ "TUI", "data", "spreadsheet", ".csv" ]
|
tags: [ "TUI", "data", "spreadsheet", ".csv" ]
|
||||||
required: [ "vim basics" ]
|
|
||||||
---
|
---
|
||||||
|
|
||||||
- [Sample file](sc-im/sample.sc)
|
- [Sample file](sc-im/sample.sc)
|
||||||
|
@ -8,13 +8,13 @@ Running `make help` will search for text which starts with `## ` and show what t
|
|||||||
|
|
||||||
```make
|
```make
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help: ## Print the help message.
|
help: ## Print the help message
|
||||||
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
|
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
|
||||||
sort | \
|
sort | \
|
||||||
column -s ':' -t
|
column -s ':' -t
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: ## Remove generated files.
|
clean: ## Remove generated files
|
||||||
$(RM) $(defaults)
|
$(RM) $(defaults)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Managing Groups"
|
|
||||||
tags: [ "system" ]
|
|
||||||
---
|
|
||||||
|
|
||||||
Check which groups you are in, and which are available:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cat /etc/group
|
|
||||||
groups
|
|
||||||
cat /etc/group | grep $USER
|
|
||||||
```
|
|
||||||
|
|
||||||
Remove yourself from all groups, and add yourself back to only `wheel`, `audio`, and your own group:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo usermod --groups wheel,audio,$USER
|
|
||||||
```
|
|
||||||
|
|
||||||
Add yourself to the `wheel` group:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
su root -c "usermod --append --groups wheel $USER"
|
|
||||||
```
|
|
||||||
Add yourself to the `network` group:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo usermod -aG network $USER
|
|
||||||
```
|
|
||||||
|
|
||||||
The changes will not take effect until you log in again, so reboot or log into `localhost` with [ssh](../networking/ssh.md).
|
|
||||||
|
|
@ -1,16 +1,21 @@
|
|||||||
---
|
---
|
||||||
title: "virtualbox"
|
title: "virtualbox"
|
||||||
tags: [ "system" ]
|
tags: [ "system" ]
|
||||||
requires: [ "Managing Groups" ]
|
|
||||||
---
|
---
|
||||||
# Setup
|
# Setup
|
||||||
|
|
||||||
Load the modules (or just reboot):
|
## Arch Linux
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
su root
|
sudo pacman -S virtualbox-host-modules-arch virtualbox-guest-iso
|
||||||
modprobe vboxdrv
|
```
|
||||||
vboxreload
|
|
||||||
|
```sh
|
||||||
|
sudo modprobe vboxdrv
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# vboxreload
|
||||||
```
|
```
|
||||||
|
|
||||||
Make dd image into vdi
|
Make dd image into vdi
|
||||||
@ -25,13 +30,7 @@ If this doesn't work, try to make a new bite size with just
|
|||||||
sudo dd if=image.dd of=image2.dd bs=512 conv=sync
|
sudo dd if=image.dd of=image2.dd bs=512 conv=sync
|
||||||
```
|
```
|
||||||
|
|
||||||
## Arch Linux
|
## CLI Management
|
||||||
|
|
||||||
```sh
|
|
||||||
pacman -S virtualbox-host-modules-arch virtualbox-guest-iso
|
|
||||||
```
|
|
||||||
|
|
||||||
# CLI Management
|
|
||||||
|
|
||||||
List boxes:
|
List boxes:
|
||||||
|
|
||||||
@ -51,19 +50,22 @@ To pause the machine:
|
|||||||
VBoxManage controlvm "rata" pause --type headless
|
VBoxManage controlvm "rata" pause --type headless
|
||||||
```
|
```
|
||||||
|
|
||||||
You can do a number of things to the 'virtual boxes' this way:
|
You can do a number of things to virtualboxes this way:
|
||||||
|
|
||||||
- `startvm`
|
- startvm
|
||||||
- `pause`
|
|
||||||
- `resume`
|
- pause
|
||||||
- `poweroff`
|
|
||||||
|
- resume
|
||||||
|
|
||||||
|
- poweroff
|
||||||
|
|
||||||
## Creating Disks
|
## Creating Disks
|
||||||
|
|
||||||
Creating a VM requires registering it:
|
Creating a VM requires registering it:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
VBoxManage createvm --name Ubuntu19.04 --register --ostype Ubuntu
|
VBoxManage createvm --name Ubuntu19.04 --register --ostype Ubuntu
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@ -76,7 +78,6 @@ VBoxManage storagectl Ubuntu19.04 -name IDE --add ide --controller PIIX4 --boot
|
|||||||
|
|
||||||
Create just a disk with:
|
Create just a disk with:
|
||||||
|
|
||||||
```sh
|
VBoxManageg createhd --filename Ubuntu16.04 --size 5120
|
||||||
VBoxManage createhd --filename "$diskname" --size 5120
|
|
||||||
```
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user