Chrome OS¶
Pin Secure Shell Profile¶
When running a profile and directly pinning the window to the taskbar, the Secure Shell options window will show instead of the profile window.
To pin the actual profile window:
- Type
ssh
+tab
in the url bar. - Type the name of the of the profile so that the profile opens up in a regular tab with the URL bar shown.
- Three dots -> More tools -> Create shortcut
- Check
Open as new window
and clickOK
. - Pin the newly created shortcut window.
Brother HL-2270DW Printer¶
Address: <IP>:9100
Protocol: AppSocket(TCP/IP)
Queue: ipp/print
Clipboard¶
(
curl "https://gist.githubusercontent.com/nicholaswilde/28f1d91df80ab3723ed7697460349ac8/raw/280fa16599e64745cc7f4e71df265ae1aafbf331/term-notify.sh" | sudo tee /usr/local/bin/notify && sudo chmod +x /usr/local/bin/notify
curl "https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm/etc/hterm-show-file.sh?format=TEXT" | base64 --decode | sudo tee /usr/local/bin/show-file && sudo chmod +x /usr/local/bin/show-file
curl "https://gist.githubusercontent.com/nicholaswilde/28f1d91df80ab3723ed7697460349ac8/raw/280fa16599e64745cc7f4e71df265ae1aafbf331/osc52.sh" | sudo tee /usr/local/bin/copy && sudo chmod +x /usr/local/bin/copy
)
(
curl "https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm/etc/hterm-notify.sh?format=TEXT" | base64 --decode | sudo tee /usr/local/bin/notify && sudo chmod +x /usr/local/bin/notify
curl "https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm/etc/hterm-show-file.sh?format=TEXT" | base64 --decode | sudo tee /usr/local/bin/show-file && sudo chmod +x /usr/local/bin/show-file
curl "https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm/etc/osc52.sh?format=TEXT" | base64 --decode | sudo tee /usr/local/bin/copy && sudo chmod +x /usr/local/bin/copy
)
notify
tmux fix¶
# Send a DCS sequence through tmux.
# Usage: <sequence>
tmux_dcs() {
printf '\033Pt\033%s\033\\' "$1" > $( tmux display-message -p "#{client_tty}" )
}
copy
tmux fix¶
See my gist for the modified versions.
Comment out tmux
case. Normal printf
yworks for some reason.
...
# Send an escape sequence to hterm.
# Usage: <sequence>
print_seq() {
local seq="$1"
case ${TERM-} in
screen*)
# Since tmux defaults to setting TERM=screen (ugh), we need to detect
# it here specially.
if [ -n "${TMUX-}" ]; then
tmux_dcs "${seq}"
else
screen_dcs "${seq}"
fi
;;
# tmux*)
# tmux_dcs "${seq}"
# ;;
*)
printf '%s' "${seq}"
;;
esac
}
...
~/.config/tmux/tmux.conf
set -g set-clipboard on # use system clipboard
Stop Penguin Terminal¶
Open Crosh
Ctrl + Alt + T
Stop Penguin terminal
vmc stop termina
vmc start termina
Add Remote¶
lxc remote add canonical https://images.lxd.canonical.com --protocol simplestreams --auth-type tls
Start NixOS
lxc launch canonical:nixos/24.05 nixos
From crosh
vmc container termina nixos