- vnc alternative - connect to existing session
- web page like a screensaver
- jira editing shortcuts
- i3 window manager shortcuts
- xmind settings
XMind.ini:
-vm /home/user/.sdkman/candidates/java/8.0.222-zulu/bin/java
echo $XDG_CONFIG_DIRS
locate rc.lua
# place for mouse pointer, cursor, theme
/usr/share/icons
raise InitError("Failed to unlock the collection!")
# kill all "keyring-daemon" sessions
# clean up all previous runs
rm ~/.local/share/keyrings/*
ls -la ~/.local/share/keyrings/
dbus-run-session -- bash
gnome-keyring-daemon --unlock
# type your password, <enter> <Ctrl-D>
keyring set cc.user cherkavi
keyring get cc.user cherkavi
Generating a RSA private key
openssl req -new -newkey rsa:2048 \
-nodes -out cherkavideveloper.csr \
-keyout cherkavideveloper.key \
-subj "/C=DE/ST=Bavaria/L=München/O=cherkavi/CN=cherkavi developer" \
- web-based terminal, terminal window in browser
- automation for browsers, automate repited actions: iMacros
- md2html, markdown to html
sudo apt-get update
sudo apt-get install -y python3-sphinx
pip3 install recommonmark sphinx-markdown-tables --user
sphinx-build "/path/to/source" "/path/to/build" .
- keepass
sudo add-apt-repository ppa:jtaylor/keepass
sudo apt-get update && sudo apt-get install keepass2
- vnc
- vnc installation
sudo apt install xfce4
sudo apt install tightvncserver
# only for specific purposes
sudo apt install x11vnc
- ~/.vnc/xstartup, file for starting vncserver chmod +x ~/.vnc/xstartup
#!/bin/sh
# Fix to make GNOME and GTK stuff work
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
- vnc commands
# start server
vncserver -geometry 1920x1080
# full command, $DISPLAY can be ommited in favoud to use "next free screen"
vncserver $DISPLAY -rfbport 5903 -desktop X -auth /home/qqtavt1/.Xauthority -geometry 1920x1080 -depth 24 -rfbwait 120000 -rfbauth /home/qqtavt1/.vnc/passwd -fp /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1 -co /etc/X11/rgb
## Couldn't start Xtightvnc; trying default font path.
## Please set correct fontPath in the vncserver script.
## Couldn't start Xtightvnc process.
# start server with new monitor
vncserver -geometry 1920x1080 -fp "/usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins"
# check started
ps aux | grep vnc
# kill server
vncserver -kill :1
- vnc start, x11vnc start, connect to existing display, vnc for existing display
#export DISPLAY=:0
#Xvfb $DISPLAY -screen 0 1920x1080x16 &
#Xvfb $DISPLAY -screen 0 1920x1080x24 # not more that 24 bit for color
#startxfce4 --display=$DISPLAY &
# sleep 1
x11vnc -quiet -localhost -viewonly -nopw -bg -noxdamage -display $DISPLAY &
# just show current desktop
x11vnc
- vnc client, vnc viewer, vnc player
# !!! don't use Remmina !!!
sudo apt install xvnc4viewer
- timer, terminal timer, console timer
sudo apt install sox libsox-fmt-mp3
https://github.com/rlue/timer
sudo curl -o /usr/bin/timer https://raw.githubusercontent.com/rlue/timer/master/bin/timer
sudo chmod +x /usr/bin/timer
# set timer for 5 min
timer 5
echo "hello vim " | vim - -c "set number"
- v - visual selection ( start selection )
- y - yank ( end selection )
- p - paste into position
- u - undo last changes
- ctrl-r - redo last changes
:read !ls -la
1) select text with v-visual mode
2) semicolon
3) w !sh
:'<,'>w !sh
file .vimrc
should have next content:
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
call plug#end()
set laststatus=1
git clone https://github.com/vim-airline/vim-airline ~/.vim/plugged/vim-airline
.vim
├── autoload
│ └── plug.vim
├── colors
│ └── wombat.vim
├── pack
│ └── plugins
└── plugged
├── goyo.vim
├── lightline.vim
├── limelight.vim
├── seoul256.vim
├── vim-airline
└── vim-airline-themes
copy to ~/.config/vifm/colors
color scheme
:colorscheme <tab>
vscjava.vscode-java-debug
peterjausovec.vscode-docker
ryu1kn.edit-with-shell
inu1255.easy-shell
tyriar.terminal-tabs
vscjava.vscode-java-dependency
vscjava.vscode-java-pack
vscjava.vscode-java-test
redhat.java
yzhang.markdown-all-in-one
vscjava.vscode-maven
ms-python.python
liximomo.remotefs
scala-lang.scala
visualstudioexptteam.vscodeintellicode
miguel-savignano.terminal-runner
task add what I need to do
task add wait:2min finish call
task waiting
task 25 modify wait:2min
task 25 edit
task 25 delete
task 25 done
task project:'BMW'
task priority:high
task next
doc:
extension:
- https://github.com/ValiValpas/taskopen installation issue:
sudo cpan JSON
commands:
task 13 annotate -- ~/checklist.txt
task 13 annotate https://translate.google.com
task 13 denotate
taskopen 1
# add notes
task 1 annotate Notes
taskopen 1
- https://askubuntu.com/questions/700015/set-path-for-terminator-to-lookup-for-plugins
- https://github.com/gstavrinos/terminator-jump-up
- https://github.com/mikeadkison/terminator-google/blob/master/google.py
# retrieve all html anchors from url, html tags from url
curl -X GET https://www.bluejeans.com/downloads | grep -o '<a .*href=.*>' | sed -e 's/<a /\n<a /g' | sed -e 's/<a .*href=['"'"'"]//' -e 's/["'"'"'].*$//' -e '/^$/ d' | grep rp
sudo alien --to-deb bluejeans-1.37.22.x86_64.rpm
sudo dpkg -i bluejeans_1.37.22-2_amd64.deb
sudo apt install libgconf-2-4
sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
sudo ln -s /opt/bluejeans/bluejeans-bin /usr/bin/bluejeans
smbclient -U $SAMBA_CLIENT_GROUP//$SAMBA_CLIENT_USER \
//europe.ubs.corp/win_drive/xchange/Zurich/some/folder
bindsym $mod+Shift+e exec i3-msg exit
sudo dpkg --add-architecture i386
#sudo apt-get install ia32-libs ia32-libs-i386 libglib2.0-0:i386 libgtk2.0-0:i386
sudo apt-get install libglib2.0-0:i386 libgtk2.0-0:i386
sudo apt-get install gcc-multilib
sudo apt-get install libwebkit-1.0-2:i386 libwebkitgtk-1.0-0:i386
sudo dpkg --install icaclient_13.10.0.20_amd64.deb
file:~/.mc/ini
[Colors]
base_color=normal=brightgray,black:marked=brightcyan,black:selected=black,lightgray:directory=white,black:errors=red,black:executable=brightgreen,black:link=brightblue,black:stalelink=red,black:device=brightmagenta,black:special=brightcyan,black:core=lightgray,black:menu=white,black:menuhot=brightgreen,black:menusel=black,white:editnormal=brightgray,black:editmarked=black,brightgreen:editbold=brightred,cyan
mc --nocolor
# sudo apt install openssh-server
sudo apt install ssh
sudo service ssh start
# sudo systemsctl status ssh
sudo service ssh status
# firewall ubuntu
sudo ufw allow ssh
# configuration
sudo vim /etc/ssh/sshd_config
for enabling/disabling password using
PasswordAuthentication yes
sudo apt install nfs-kernel-server
systemctl status nfs-server
nfsstat
# create point
sudo mkdir /mnt/disks/k8s-local-storage1
# mount
sudo mount /dev/sdc /mnt/disks/k8s-local-storage1
sudo chmod 755 /mnt/disks/k8s-local-storage1
# createlink
sudo ln -s /mnt/disks/k8s-local-storage1/nfs nfs1
# update storage
sudo cat /etc/exports
# /mnt/disks/k8s-local-storage1/nfs 10.55.0.0/16(rw,sync,no_subtree_check)
# restart
sudo exportfs -a
sudo exportfs -v
ll /sys/module/nfs/parameters/
ll /sys/module/nfsd/parameters/
sudo vim /etc/fstab
# 10.55.0.3:/mnt/disks/k8s-local-storage/nfs /mnt/nfs nfs rw,noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14 0 0
# 10.55.0.3:/mnt/disks/k8s-local-storage1/nfs /mnt/nfs1 nfs defaults 0 0
# refresh mapping
sudo mount -av
youtube-dl --list-formats https://www.youtube.com/watch?v=nhq8e9eE_L8
youtube-dl --format 22 https://www.youtube.com/watch?v=nhq8e9eE_L8
# start recording
# add-apt-repository ppa:savoury1/ffmpeg4 && apt update && apt install -y ffmpeg
ffmpeg -y -video_size 1280x1024 -framerate 20 -f x11grab -i :0.0 /output/out.mp4
# stop recording
ps aux | grep ffmpeg | head -n 1 | awk '{print $2}' | xargs kill --signal INT
# sudo apt-get install imagemagick
identify -verbose image.png
# https://imagemagick.org/script/escape.php
identify -format "%m" image.png # format type
identify -format "%wx%h" image.png # width x height
# sudo apt-get install imagemagick
# without distortion
convert marketing.png -resize 100x100 marketing-100-100.png
# mandatory size, image will be distorted
convert marketing.png -resize 100x100 marketing-100-100.png
# rotate and change quality
convert marketing.png -rotate 90 -charcoal 4 -quality 50 marketing.png