Coder Social home page Coder Social logo

cbc-projects's People

Contributors

dennislfromga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nt4cats

cbc-projects's Issues

Keyboard combos to go...

crouton key-combos:

  • CroS/Crouton in/out:
    • ctrl+alt+shift+forward/back

'Important/Often used' CrOS key-combos:

  • Report an issue (lowercase for purists ;-)):
    • alt+shift+i
  • Report an issue (uppercase):
    • alt+shift+I
  • Help Menu:
    • ctrl+/
  • Keyboard Overlay:
    • ctrl+alt+/
  • High Contrast toggle:
    • ctrl+search/launcher+h
  • ChromeVox toggle:
    • ctrl+alt+z
  • Open a crosh session:
    • ctrl+alt+t
  • Fullscreen:
    • fullscreen []
  • Switch Windows:
    • switch window []||
  • Find on page:
    • ctrl+f
  • Select all on page:
    • ctrl+a
  • Copy all selected:
    • ctrl+c
  • Cut all selected:
    • ctrl+x
  • Paste all selected:
    • ctrl+v
  • Undo paste selected:
    • ctrl+z
  • Developer Tools panel toggle:
    • ctrl+shift+i
  • DOM Inspector toggle:
    • ctrl+shift+j
  • Bookmarks bar toggle:
    • ctrl+shift+b
  • Multiple Users:
    • Next user: ctrl+alt+period
    • Previous user: ctrl+alt+comma
  • Check for updates at chrome://settings/help:
    • CHECK FOR UPDATES

If you need more just ask...

Hope this helps,
-DennisLfromGA

Crostini handy-dandy scripts for VMs and Containers

If you like you can check out some scripts I wrote for termina and containers.

Here's how to do it ...


Part 1 (for VMs) - In your Termina shell session -

  1. Sign-in to your account then open a crosh session using:

ctrl+alt+t

  1. Get into your Termina shell named 'dev' or whatever you named it:

vmc start dev

- or if it's already started -

vsh dev

Then change directories to the 'lxd_conf' folder:

cd /mnt/stateful/lxd_conf

  1. The enter this:

curl -JO https://transfer.sh/11lhwV/lxd-conf.bin.tar.gz

( If the link doesn't work let me know and I'll generate a new one. )

That will download the tar gzip file to '/mnt/stateful/lxd_conf'

  1. Then enter this to extract it and place it in /mnt/stateful/lxd_conf/bin:

tar -xvaf lxd-conf.bin.tar.gz

Here's a list of the files you should now have in 'bin/'

    ls -la bin/
        total 276K
        drwxr-xr-x 1 denny denny  200 Apr 22 16:57 .
        drwxr-xr-x 1 denny denny  484 Apr 22 17:34 ..
        -rw-r--r-- 1 denny denny 3.5K Apr 22 15:08 .bash_aliases
        -rw-r--r-- 1 denny denny 2.4K Apr 22 15:13 .bashrc
        -rw-r--r-- 1 denny denny 2.2K Apr 22 15:08 .lxc.bash_aliases
        -rw-r--r-- 1 denny denny 2.6K Apr 22 15:33 lxc.bashrc
        -rw-r--r-- 1 denny denny  464 Apr 22 16:13 .lxc.termina_aliases
        -rwxr-xr-x 1 denny denny  387 Apr 22 15:08 mywanip
        -rwxr-xr-x 1 denny denny  20K Apr 22 15:08 name
        -rwxr-xr-x 1 denny denny 226K Apr 22 15:08 screenfetch
        -rwxr-xr-x 1 denny denny 2.1K Apr 22 16:57 transfer.sh
  1. Now in your Termina session run this:

. /mnt/stateful/lxd_conf/bin/lxc.bashrc

That will setup your environment and give you some aliases & stuff to make things a little easier.
To see what aliases are defined just run:

al

You can see shortcuts for a lot of often used commands, if you forget or want to look for those with 'lxc' just run this:

alf lxc

Important: Each time you start your Termina session you will need to run Step 5 again.


Part 2 (for Containers) - In your Linux container shell, like stretch, etc. -

  1. Get into your Linux container shell like 'stretch' or whatever you named it:

run_container.sh --container_name=stretch --shell --user=<username>

Substitute the container_name and to match your situation.

  1. Then make sure you're in your $HOME directory

cd

  1. The enter this:

sudo apt-get install curl wget
curl -JO https://transfer.sh/11lhwV/lxd-conf.bin.tar.gz

( If the link doesn't work let me know and I'll generate a new one. )

That will download the tar gzip file to your $HOME folder.

  1. Then enter this to extract it and place it in '$HOME/bin':

tar -xvaf lxd-conf.bin.tar.gz

  1. Now in your Linux shell session run this:

cp ./bin/.bash* .
. ./.bashrc

That will setup your environment and give you some aliases & stuff to make things a little easier.

See above for viewing your aliases, etc.


~Denny

One, maybe two-liners ...


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   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.