2018년 12월 15일 토요일

RealVnc server does not show proper resolution after boot without monitor, Ubuntu 16.04

RealVnc server does not show proper resolution after boot without monitor.
vncserver -geometry 2560x1440   not working..!! Ubuntu 16.04 xserver is probably not compatible to
work with vncserver command. so there is one solution I came with,

solution:
add dummy display into /usr/share/X11/

use gtf command to generator proper resolution.
ex) gtf 2560 1440 60

/usr/share/X11/xorg.conf.d/xorg.conf/xorg.conf
====================================================
section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
    VideoRam 256000
#    VideoRam 2000000
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 5.0 - 1000.0
    VertRefresh 5.0 - 200.0

# 2560x1440 @ 60.00 Hz (GTF) hsync: 89.40 kHz; pclk: 311.83 MHz
    Modeline "2560x1440_60.00"  311.83  2560 2744 3024 3488  1440 1441 1444 1490  -HSync +Vsync

EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
      Virtual 2560 1440
    EndSubSection
EndSection
====================================================

restart x display manager
sudo systemctl restart display-manager

check xserver log
sudo grep Modeline /var/log/Xorg.0.log


** Issue:
1. since it is placed in xorg.conf, it only work for dummy display for remote access,
 it won't work for physical monitor.  even rename it as 10-dummy.conf  it won't work with real monitor.   


2018년 12월 2일 일요일

RealVNC Connect on Ubuntu 16.04.4

https://boringtechtutorials.wordpress.com/2018/06/15/realvnc-connect-on-ubuntu-16-04-4/


To install RealVNC Connect run this terminal command.


$ sudo dpkg –i package name.deb

Once you install RealVNC Connect you need launch the setup wizard to login with your home subscription account.
In terminal run vnclicensewiz


$ vnclicensewiz
 
This will launch the wizard and you just need to login with your realvnc credentials. You will also need root password when requested.
To start RealVNC Connect service, run the following terminal command.


$ sudo systemctl start vncserver-x11-serviced.service

You will now see the RealVNC Connect icon on the Unity top bar.
You should now be able to connect to this system using RealVNC Viewer from another computer.
If you restart the computer RealVNC Connect will not atomically start. To make it start each time run the following command.


$ sudo systemctl enable vncserver-x11-serviced.service

This should complete the setup.

2018년 3월 17일 토요일

Ubuntu 16.04 hangul

https://yunsangq.github.io/articles/2017-02/ubuntu-keyboard


sudo apt-get install fcitx-hangul

  1. 키보드의 윈도우 버튼을 누르고 System Settings를 입력해서 실행한다. Language Support를 클릭하고 설치가 완료될때까지 기다린다.
  2. Language Support에서 Keyboard input method systemfcitx로 변경한다.
  3. 재부팅한다.
  4. 다시 키보드의 윈도우 버튼을 누르고 System Settings를 입력해서 실행한다. Keyboard를 클릭하고 Shortcuts -> Typing을 클릭한다.
  5. 설정되어있는 4가지 항목을 모두 Disabled로 바꾼다. 키를 입력해야하는 항목의 경우 키보드의 backspace버튼을 누르면 Disabled로 바뀐다.
  6. Compose KeyDisabled를 눌러 Right Alt를 선택한다.
  7. Switch to next source는 클릭후 키보드의 오른쪽 Alt 버튼을 눌러 Multikey로 선택한다.
  8. 설정을 완료한 후 화면 상단 우측에 키보드 형태의 아이콘을 클릭한다.
  9. Configure Current Input Method를 클릭한다.
  10. +버튼을 눌르고 Only Show Current Language에 체크가 되어있다면 해제해준다.
  11. 목록에서 Hangul을 찾아 추가해준다.
  12. Global Config 메뉴를 찾아 클릭한다. Trigger Input Method를 모두 오른쪽 Alt키를 눌러 Multikey로 설정해준다.
  13. Extra key for trigger input methodDisabled로 설정하고 Share State Among WindowAll로 설정한다.
  14. 재부팅하고 오른쪽 Alt 버튼으로 한/영 변환이 되는지 확인한다.


https://zapary.blogspot.com/2015/05/1504-fcitx-hangul.html

위의 과정까지만 해 주어도 fcitx를 입력기로 쓰는데 큰 지장은 없는데, 아래 화면과 같이 한글로 전환시 [Hangul]이라고 표시되는 작은 창이 뜨는게 좀 귀찮아서 없애기로 하였다.



위의 화면에 없애는 방법도 같이 보여주고 있는데, gedit로 ~/.config/fcitx/config 파일을 열어서 "ShowInputWindowAfterTriggering=False" 부분을 설정해서 저장한 후,

$ gedit ~/.config/fcitx/config

아래 명령으로 fcitx를 재기동 해주면 된다.

$ fcitx -r

2018년 3월 4일 일요일

interesting tools for terminal, Ubuntu

1. screenfetch



2. termsaver
ex)
termsaver clock
termsaver asciiartfarts
termsaver randtext


 

sublime close without confirmation

  Close without confirm   Yes, you can just write a plugin to set the view as scratch and close it. Then create a keybinding for that c...