Pages - Menu

標籤

AWS (1) bash (1) Boost (2) C (2) CMake (2) Concurrency_Programming (3) CPP (37) Database (2) DNS (1) Docker (4) Docker-Compose (1) ELK (1) emacs (4) gcp (1) gdrive (1) git (1) gitbash (2) gitlab (1) kvm (4) Linux (5) MT4 (4) MT5 (4) Multicast (2) MySQL (2) Nijatrader8 (1) OpenCV (1) Python (4) QT5 (1) R (1) rdp (3) screenshot (1) ssh (3) Tabnine (1) TCP (1) TensorFlow (1) Tools (12) Ubuntu_1904 (11) Ubuntu_20_04 (5) UDP (1) VS2010 (1) VS2015 (1) VS2019 (1) WebServer (1) Win10 (1) winmerge (1) WSL (1) xrdp (1)

搜尋此網誌

2020年10月23日星期五

Install xrdp on ubuntu

 Ubuntu 20.04

Install and use (Basic)

  • Install xrdp by

$ sudo apt-get install xrdp

  • Logout, since you cannot remote login while the session is begin used.
  • Connect from other PC, for example:

 

  • DONE

If not working

  • By default Xrdp uses the /etc/ssl/private/ssl-cert-snakeoil.key file which is readable only by users that are members of the “ssl-cert” group. Learn From
  • Add to group ssl-start.
$ sudo adduser xrdp ssl-start

Change close lip behavior



  • Restart service to activate your change
 $ sudo systemctl systemd-logind.service

2020年10月3日星期六

Core dump file in ubuntu

 Aim

When running c++ application, we would like to get the core dump when the application is crashed. How to get those files under linux?

Learn from

Link

Steps

Add to ~/.bashrc 

ulimit -c unlimited

Add to /etc/sysctl.conf

kernel.core_pattern = core.%e.%p.%t

Run command:

$ sudo sysctl --system

Ubuntu KVM guest os network

 On Ubuntu 20.04

You can use the default setting first:


If the guest OS cannot connect to internet, you may try the host nic and bridge it:


If that is not okay, you may need to create a new network source. The easiest way is to install VMWare workstation or Virtual box. They will create the needed network configuration for their VMs. Now you can use the network source created by them. Here is an example:




Ubuntu KVM OpenGL

 On Ubuntu 20.04

Setup

This acceleration can be use only locally. You have to disable the spice server first.


Then you can start your VM through graphical console

Ubuntu KVM multiple monitors

 On Ubuntu 20.04

Learn From

 Steps

Add one more Video QXL 


Set Display Spice and open port for example 5907


 Start VM without using virt-manager graphical console

Finally, you need to use remote-viewer and open up the guest firewall:

You may try directly remote-view the instance first, if not work, you may add the firewall steps

$ sudo apt-get install firewalld
$ sudo firewall-cmd --permanent --add-service=vdsm
$ sudo firewall-cmd --reload
$ remote-viewer spice://localhost:5907

2020年10月2日星期五

Screenshot tools

 Windows

 Install Greenshot

Ubuntu

Install Flameshot

Steps

Install applications

sudo apt-get install flameshot

Disable default shortcut

 


Add shortcut


Update Filename