Add scripts to be run in new Solus VMs
This commit is contained in:
parent
d1a39bf85d
commit
9c0cee4083
2 changed files with 23 additions and 0 deletions
8
vm_setup/vm_solus.sh
Normal file
8
vm_setup/vm_solus.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Solus specific VM setup
|
||||||
|
|
||||||
|
source ./zsh_basic.sh
|
||||||
|
|
||||||
|
if test -d $PWD/solus-packages; then
|
||||||
|
cp /mnt/vmshare/.zshrc.d/* ~/.zshrc.d/
|
||||||
|
fi
|
||||||
15
vm_setup/zsh_basic.sh
Normal file
15
vm_setup/zsh_basic.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Set up zsh on a local VM
|
||||||
|
# This has to be run (somehow) from the local host
|
||||||
|
|
||||||
|
mkdir ~/.zshrc.d
|
||||||
|
sudo mkdir /mnt/vmshare
|
||||||
|
sudo chown tracey:tracey /mnt/vmshare
|
||||||
|
sudo echo 'vmshare /mnt/vmshare virtiofs rw,x-systemd.automount,relatime 0 0' | sudo tee -a /etc/fstab &&\
|
||||||
|
systemctl daemon-reload && sudo mount vmshare
|
||||||
|
|
||||||
|
cp /mnt/vmshare/.aliases ~/
|
||||||
|
cp /mnt/vmshare/.bashrc ~/
|
||||||
|
cp /mnt/vmshare/.bash_profile ~/
|
||||||
|
cp /mnt/vmshare/.zshrc ~/
|
||||||
|
cp /mnt/vmshare/.zsh_tlc ~/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue