DennisLfromGA / CBC-Projects

Chromebook Central Projects
7 stars 1 forks source link

One, maybe two-liners ... #3

Open DennisLfromGA opened 6 years ago

DennisLfromGA commented 6 years ago

Package manager commands -

# Update installed packages

sudo apt-get    update   &&
sudo apt-get -y upgrade

# Fix & Cleanup Up Apt Packages, etc. -

sudo apt-get -f install    &&
sudo apt-get    autoremove &&
sudo apt-get -y autoclean  &&
sudo apt-get -y clean

# Show packages manually installed

zgrep 'Commandline: apt' /var/log/apt/history.log /var/log/apt/history.log.*.gz

Storage commands -

# Create a volume to use in the container(s) and then list it

lxc storage volume create default removable
lxc storage volume list default

# Then attach new volume to container(s)

lxc storage volume attach default removable penguin /data
lxc storage volume attach default removable stretch /data

~# Configure the container to run with host-equivalent privileges...~ (removed)

~lxc config set stretch security.privileged true~ ~lxc config set MrUrbanity security.privileged true~

# Mount & share the 'lxd_conf' directory in your containers with:

lxc config device add penguin lxd-conf disk source=$LXD_CONF path=/mnt/lxd_conf
> Device lxd-conf added to penguin   

lxc config device add stretch lxd-conf disk source=$LXD_CONF path=/mnt/lxd_conf
> Device lxd-conf added to stretch   

DennisLfromGA commented 6 years ago

Tweaking to add penguin.