Saturday, July 16, 2016

Sunday, July 3, 2016

minicom config for openwrt

cat << EOF > /home/user/.minirc.openwrt
pu port      /dev/ttyUSB0
pu baudrate  115200
pu bits      8
pu parity    N
pu stopbits  1
pu minit
pu mreset
pu rtscts    No
pu logfname
EOF

Wednesday, June 22, 2016

how to connect via modem

sudo systemctl enable serial-getty@ttyS0.service
shutdown now -r
ps -ef|grep getty
if no serial, "sudo systemctl start dev-ttyS0.device" and reboot again
search which command must be entered not to reboot

Sunday, April 24, 2016

git branch

create new branch and push it to upstream:
git checkout -b <branch>
git push -u origin <branch>
and set <branch> to be cloned by default (<branch> may be "master" or another required branch):
git remote set-head origin <branch>

pull branch from upstream (see all branches with "git branch -a"):
git checkout <branch>

----------------------

To be able to "git diff" to branches, you need to set up necessary branches to track corresponding remote branch from origin:
  1) add information about the branch to .git/config
      git checkout <branch_name>
  2) previous command also automatically switches to the branch, so if it is necessary to return to master branch, do this
      git checkout master

Friday, April 22, 2016

krop

cut off extra margins in pdf file with "krop" and then print it with "fit" option in atril

Wednesday, April 20, 2016

BOOT

You can use the kernel parameter
'boot_delay=1000' to slow down the boot messages.

EDID

create /etc/initramfs-tools/hooks/cpedid with the following content:
    #!/bin/sh
    cp /lib/firmware/edid.bin "${DESTDIR}/lib/firmware"
    exit 0
and make it executable
copy edid.bin to /lib/firmware/
run "sudo update-initramfs -u"
check with "lsinitramfs /boot/initrd.img*"