Showing posts with label X11 forwarding. Show all posts
Showing posts with label X11 forwarding. Show all posts

7/19/2017

Segmentation fault (core dumped) Cgiwin/X X11 forwarding fix

The error:
[603333.290448] nautilus[12834]: segfault at 0 ip 00007f6f312959bf sp 00007ffebb652cc8 error 4 in libc-2.23.so[7f6f31200000+1bf000]

How to fix:
ssh to the remote server machine:
cd /usr/lib/x86_64-linux-gnu
sudo ln -s /usr/lib/nvidia-375/libGLX_indirect.so.0 .

7/18/2017

How to use X11 forwarding with cygwin/X

Install xinit when install cygwin
Make sure the ssh server has X11Forwarding yes
Make sure "ForwardX11 yes" in the .ssh/config file from the ssh origination machine (not server). Otherwise, copy/paste won't work correctly.

On the client: export DISPLAY=:0.0
Start  XWin Server under Cynwin-X folder in the start menu

Then run ssh with: ssh -Y

In the ssh console, you can start a GUI application, such as xterm, eclipse etc.

Font too small HiDPI HDPI screen

export GDK_SCALE=2
export QT_SCALE_FACTOR=2
export ELM_SCALE=2

Or
Add, e.g. GDK_SCALE=2 before running an app.
For example GDK_SCALE=2 nautilus

For eclipse, add GDK_DPI_SCALE=2 before running it.
For emacs, add GDK_DPI_SCALE=2 before running it. Also the font size needs to be changed to: height 205
For Firefox, add GDK_DPI_SCALE=2 before running it.

For Filezilla, I have to install Filezilla 3.25 from source code. There are a bunch of dependencies missing because I'm using Ubuntu 16.04.
Important libraries to install:
sudo apt install libgtk-3-dev
Manually installed libfilezilla (version 0.9.1), libgnutls (version 3.4.15), and wdwidgets (version 3.0.2).
Once Filezilla uses GTK 3.0, it can be launched with GDK_SCALE=2 in front of it.
For example:
GDK_SCALE=2 filezilla

For Ubuntu 16.04 Chrome:
  1. sudo gedit /usr/share/applications/google-chrome.desktop
  2. Find this line:
Exec=/usr/bin/google-chrome-stable %U
  1. Change it to this:
Exec=/usr/bin/google-chrome-stable --force-device-scale-factor=2 %U
  1. Save/close, relaunch Chrome. 

For Spark store applications:
Find the scale.txt file in the .deepinwine folder and change it, e.g. /home/liangzou/.config/spark-wine/scale.txt (Content: 2)