2019년 9월 25일 수요일

debian 10(buster) install 2019

  1. install(with wired-lan)
    1. config wifi
      1. https://wiki.debian.org/iwlwifi
  2. install packages
    1. sakura
    2. syncthing-gtk
      1.  UnicodeDecodeError: 경로에 한글이 있어서...?
      2. locale을 en_US.utf-8로...
        1. https://wiki.archlinux.org/index.php/Locale
    3. git
    4. gnome-extensions 
    5. keepassxc
    6. ibus ibus-hangul ( install by default with kor lang )
    7. telegram-desktop
    8. fonts-noto-cjk
    9. visual-studio-code
      1. https://tecadmin.net/install-visual-studio-code-editor-ubuntu/ 
      2. visual-studio-code-plugins
  3. config
    1. turn off visual bell
    2. rotate screen manually
      1. https://unix.stackexchange.com/questions/464947/how-to-programmatically-rotate-the-screen-in-gnome-3-28-wayland 
    3. fractional scaling
      1. https://teqnograf.blogspot.com/2019/08/gnome-332-fractional-https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_L380_Yogascaling.html
    4. ibus + telegram-desktop
      1. https://blog.kjwon15.net/2019/07/15/fix-ibus-qt5/
    5. lightdm / font size
      1. /etc/lightdm/lightdm-gtk-greeter.conf
        1. xft.dpi = 144 
  4. cons
    1. ugly title bar font with fractional scaling

2019년 9월 17일 화요일

visual studio code plugins

  • https://marketplace.visualstudio.com/items?itemName=geequlim.godot-tools
  • https://marketplace.visualstudio.com/items?itemName=wmaurer.change-case
  • https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow
  • https://marketplace.visualstudio.com/items?itemName=DmitryDorofeev.empty-indent 
  • gitlens
  • vscode-icons

2019년 9월 11일 수요일

linux intel sound stuttering after suspend/resume

sudo vi /etc/modprobe.d/snd_hda_intel.conf options snd_hda_intel power_save=0 power_save_controller=N

https://forum.manjaro.org/t/sound-stuttering/47673
https://wiki.archlinux.org/index.php/Kernel_module

2019년 9월 8일 일요일

How to make your own amazfit verge lite/GTS/GTR WF

  • Requirements
    • PC
    • text editor
      • vscode, notepad++, sublime text, atom, whatever...
    • image editor
      • gimp, MS paint, photoshop, ...
    • tool
      • https://github.com/ghtalpo/py_amazfit_tools 
      • https://github.com/amazfitbip/py_amazfit_tools/releases
      • https://github.com/ghtalpo/py_amazfit_tools/tree/master/resunpacker_qzip_bin
  • Step 1(uncompress)
    • If WF has zip or cmp on their name, it is compressed.
    • use resunpacker in resunpacker_qzip_bin to uncompress it
  • Step 2 (unpack)
    • If you know what Python is and how to use cmd(or shell, terminal)
      • install python3
      • install pip
      • install pillow (using pip)
      • go to the tool directory
      • packing demo watchface
        • "python main.py example_watchface/demo.json"
        • this will generate demo_packed.bin, demo_packed_animated.gif, demo_packed.log in example_watchface folder
        • open demo.json with text editor and you can easily understand what each section is.
      • unpacking watchface
        • download WF on online
        • "python main.py SOME_WATCH_FACE_NAME.bin"
        • this will geneate SOME_WATCH_FACE_NAME folder with one json and lots of pngs
          • if not, make sure bin is valid WF for verge lite.
            • there's some variants in amazfit(verge lite, mi band, bip, gtr and more?)
          • if that WF is working in your watch correctly, please submit a issue on github
    • If you don't know about Python and cmd stuffs
      • use main.exe
        • packing demo watchface
        • drag & drop example_watchface/demo.json onto main.exe(from uncompressed folder)
      • unpacking watchface
        •  drag & drop SOME_WATCH_FACE_NAME.bin onto main.exe(from uncompressed folder)
  • Step 3 (edit .json)
    • syntax is relatively simple but there's some trick in there
    • you can learn by uncompress others' WF.
  • Step 4 (pack)
    • read Step 2
    • check your new WF size
      • if it is too big, your watch will be unstable or some part will be missing
      • HW limitation
        • 1.5 MiB for GTS
        • 2.0 MiB for GTR(maybe) 
    • Keep your .bin size small
  • Step 5 (compress)
    • use respacker in resunpacker_qzip_bin
    • this will reduce WF size and time for installation on your watch
  • Nothing happened or seems not working?
    • there'll be a WATCH_FACE_NAME.log after packing/unpacking
    • look up the last 20(?) lines to see what happened
    • names of pngs should be continuous
    • battery without percent cause trouble in GTS
  • Done?
    • Unpack other's WFs to learn some tricks
    • Have a fun and make lot of WFs!
  • KEEP YOUR WF SMALL AT ANY COST!

    2019년 9월 6일 금요일

    archlabs install 2019


    1. turn off secure boot
      1. security -> secure boot
        1. secure boot -> disabled
        2. reset to setup mode
    2. install archlabs
    3. install packages
      1. yay
      2. visual-studio-code-bin
      3. godot-bin
      4. timeset
      5. python-pip
      6. gnome-tweaks 
      7. gitflow-fishcompletion-avh 
      8. syncthing-gtk
        1.  UnicodeDecodeError: 경로에 한글이 있어서...?
        2. locale을 en_US.utf-8로...
          1. https://wiki.archlinux.org/index.php/Locale
      9. keepassxc
      10. chrome-gnome-shell 
        1. https://teqnograf.blogspot.com/2018/07/gnome-extensions.html
      11. ibus
      12. telegram-desktop-bin
      13. mcomix
      14. ttf-d2coding
      15. otf-fira-mono 
      16. pcmanfm
        • smb
          • install gvfs-smb
    4. config
      1. enable gdm
      2. turn off visual bell
      3. rotate screen manually
        1. https://unix.stackexchange.com/questions/464947/how-to-programmatically-rotate-the-screen-in-gnome-3-28-wayland 
      4. rotate screen automatically(not working?)
        1. https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_L380_Yoga
      5. fractional scaling
        1. https://teqnograf.blogspot.com/2019/08/gnome-332-fractional-https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_L380_Yogascaling.html
      6. ibus + telegram-desktop
        1. https://blog.kjwon15.net/2019/07/15/fix-ibus-qt5/
      7. gnome disable 3rd button paste
        1. https://www.reddit.com/r/archlinux/comments/8d1us1/disable_middle_click_paste/
      8. firefox plugins
        1. ublock origin
        2. noscript
        3. zoom page we
      9. visual studio code plugins
      10. termite
        1. https://wiki.archlinux.org/index.php/termite#Font

     

    via permission error linux chrome

     https://bbs.archlinux.org/viewtopic.php?id=285709