Compare commits
4 Commits
1732c62734
...
0d76eb0531
Author | SHA1 | Date | |
---|---|---|---|
0d76eb0531 | |||
3bfeacd2d7 | |||
ed4b54cf7e | |||
4e89c5ab9b |
@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "sc-im"
|
||||
tags: [ "TUI", "data", "spreadsheet", ".csv" ]
|
||||
required: [ "vim basics" ]
|
||||
---
|
||||
|
||||
- [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
|
||||
.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) | \
|
||||
sort | \
|
||||
column -s ':' -t
|
||||
|
||||
.PHONY: clean
|
||||
clean: ## Remove generated files
|
||||
clean: ## Remove generated files.
|
||||
$(RM) $(defaults)
|
||||
```
|
||||
|
||||
|
32
system/managing_groups.md
Normal file
32
system/managing_groups.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
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,21 +1,16 @@
|
||||
---
|
||||
title: "virtualbox"
|
||||
tags: [ "system" ]
|
||||
requires: [ "Managing Groups" ]
|
||||
---
|
||||
# Setup
|
||||
|
||||
## Arch Linux
|
||||
Load the modules (or just reboot):
|
||||
|
||||
```sh
|
||||
sudo pacman -S virtualbox-host-modules-arch virtualbox-guest-iso
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo modprobe vboxdrv
|
||||
```
|
||||
|
||||
```sh
|
||||
# vboxreload
|
||||
su root
|
||||
modprobe vboxdrv
|
||||
vboxreload
|
||||
```
|
||||
|
||||
Make dd image into vdi
|
||||
@ -30,7 +25,13 @@ 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
|
||||
```
|
||||
|
||||
## CLI Management
|
||||
## Arch Linux
|
||||
|
||||
```sh
|
||||
pacman -S virtualbox-host-modules-arch virtualbox-guest-iso
|
||||
```
|
||||
|
||||
# CLI Management
|
||||
|
||||
List boxes:
|
||||
|
||||
@ -50,22 +51,19 @@ To pause the machine:
|
||||
VBoxManage controlvm "rata" pause --type headless
|
||||
```
|
||||
|
||||
You can do a number of things to virtualboxes this way:
|
||||
You can do a number of things to the 'virtual boxes' this way:
|
||||
|
||||
- startvm
|
||||
|
||||
- pause
|
||||
|
||||
- resume
|
||||
|
||||
- poweroff
|
||||
- `startvm`
|
||||
- `pause`
|
||||
- `resume`
|
||||
- `poweroff`
|
||||
|
||||
## Creating Disks
|
||||
|
||||
Creating a VM requires registering it:
|
||||
|
||||
```sh
|
||||
VBoxManage createvm --name Ubuntu19.04 --register --ostype Ubuntu
|
||||
VBoxManage createvm --name Ubuntu19.04 --register --ostype Ubuntu
|
||||
```
|
||||
|
||||
```sh
|
||||
@ -78,6 +76,7 @@ VBoxManage storagectl Ubuntu19.04 -name IDE --add ide --controller PIIX4 --boot
|
||||
|
||||
Create just a disk with:
|
||||
|
||||
VBoxManageg createhd --filename Ubuntu16.04 --size 5120
|
||||
|
||||
```sh
|
||||
VBoxManage createhd --filename "$diskname" --size 5120
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user