hibernation
root> swapoff /swapfile
root> fallocate -l XGB /swapfile
root> chmod 600 /swapfile
root> mkswap /swapfile
root> swapon /swapfile
# get / drive UUID
# get swapfile offset
root> vim /etc/default/grub
# add resume=, resume_offset
root> update-grub
root> vim /etc/initramfs-tools/conf.d/resume
root> update-initramfs -u -k all
vpn client
Ubuntu 18.04 (and newer) users can install the network-manager-l2tp-gnome package, then configure the IPsec/L2TP VPN client using the GUI. Ubuntu 16.04 and 14.04 users may need to add the nm-l2tp
apt install network-manager-l2tp-gnome
Docker
uid mapping
https://qiita.com/vmi/items/8f76cb695d499806d35f
http://transparent-to-radiation.blogspot.com/2018/06/ubuntu-1804dockeruser-remap.html
I want to remap os:imaoka = uid=1000 to docker(container):root
dockremap:1000:65536
same /etc/subguid
{
"userns-remap": "default"
}
restart docker with systemd
ClipBoard
Set hot-key by lxhotkey-gtk.desktop
. We can use GUI tool too, It's named setup hot keys
in the GUI menu.
Mozc
Is google Japanese input.
sudo apt install emacs-mozc
Plus, install mozc module via package-installer @ emacs
Manage ScreenShots
flameshot
apt install flameshot
but ubuntu18.04 default package = 0.5x, it's cannot add TEXT.
Download from github and dpkg -i install.
shutter
Focusing on # of features, the shutter is the best tool of all. However, it has not been maintained for a long time.
Fix disable edit.
ModKey
Settings for me
keycode 100 = Control_R
keycode 101 = Alt_L
keycode 102 = Control_L
add control = Control_L
add control = Control_R
add mod1 = Alt_L