(2020-4-26) やはり T61 の画面を大画面で扱いたい。が、RDP は懲りたので xming を再開したく、DISPLAY の処を再勉強する。
DISPLAY - なんなんなん行く?
Xming + Teraterm で画面転送
起動するけどマウスポインタを追えるのは xeyes がアクティブな時に限られる。
ちゃんと動作するが、フォント小さい。
実行ファイル名って何? … ps で確かめ、
/usr/bin/pcmanfm-qt --desktop
これは起動せず。
$ pcmanfm-qt & [1] 5501 $ qt.qpa.xcb: X server does not support XInput 2 failed to get the current screen resources
描画更新が遅く、実用的でない。 同一ネットワークに有る Win-Win間の RDP では、そこそこに使えているので、遅いのは SSH転送か?
案外、そこそこ鑑賞出来る。でも音声は…
描画更新が遅く、実用的でない。 同一ネットワークに有る Win-Win間の RDP では、そこそこに使えているので、遅いのは SSH転送か?
インストールしていた Xming が古いせいか、起動時に PyTTY がエラーを起こす。
これが誰かを調べると…
Xming をインストールした場所の plink.exe を使おうとしている。
ので、見えなく(削除 or リネーム)する。
すると XLaunch.exe が plink.exe の場所を尋ねるようになるので、そこで新しい物を指定する。某は gow の物を指定した。
さほど新しくもない2011年物だが、これで通信は成功する。
C:\Program Files\Gow\bin のディレクトリ 2011/12/11 01:35 303,104 plink.exe
/etc/X11/Xsession: # is available and $DISPLAY is set
/etc/X11/Xsession: if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then
/etc/X11/Xsession: # xmessage if it is available and $DISPLAY is set
/etc/X11/Xsession: if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then
/etc/X11/Xsession.d/20dbus_xdg-runtime: DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
/etc/rc6.d/K01sddm:
grep: /etc/initramfs-tools/conf.d/calamares-safe-initramfs.conf: Permission denied
/etc/security/pam_env.conf:# Set the DISPLAY variable if it seems reasonable
/etc/security/pam_env.conf:#DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}
grep: /etc/cups
$ less -NS /etc/security/pam_env.conf
55 # Set the DISPLAY variable if it seems reasonable
56 #DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}
Xming X Server for Windows - Fonts:
http://www.straightrunning.com/XmingNotes/fonts.php
UNIX-FONT-COMMAND - PukiWiki:
http://www.advancesoft.co.jp/wiki/?UNIX-FONT-COMMAND
【今更感】XmingとPuttyでWindowsに最高の開発環境を作る - 波打際のブログさん:
http://alfa.hatenablog.jp/entry/2016/05/19/101456
Xサーバ Xming でフォントが小さい場合: パソコン鳥のブログ:
https://vogel.at.webry.info/201407/article_9.html
Solaris設定メモ:
http://hiromasaya.web.fc2.com/Windows/putty.html
/Xming-fonts/7.7.0.10/Xming-fonts-7-7-0-10-setup.exeをダウンロード - Xming X Server for Windows - OSDN:
https://ja.osdn.net/projects/sfnet_xming/downloads/Xming-fonts/7.7.0.10/Xming-fonts-7-7-0-10-setup.exe/
Xming エラー。繋がらない… X11云々を読んでみたがさっぱり解らない...
結局は、Xming の X0.hostsに接続先を書くべし!だと。
http://wiki.livedoor.jp/bomb23/d/etc%20tips
ふぅ、見つけた情報を手当たり次第に試すのも疲れる。
(2013-4-27)
後、一般ユーザでの DISPLAY環境変数設定を追加。
export DISPLAY=192.168.0.1:0.0 (192.168.0.1は Xserver(Windows)のIPアドレス)
TeraTerm の SSH転送の[ ]リモートのアプリケーションをローカルのXサーバーに表示する。
もチェックする?
Widows 2000
Xming-6-9-0-18-setup.exe
Xming-fonts-6-9-0-6-setup.exe
Windows XP
Xming-6-9-0-31-setup.exe--XP以降
...
Xming-fonts-xxx をインストールしないと、GUI のフォントが化けたり、ハングする。
でもフォントは選べないようで残念。
参考:
http://sourceforge.jp/projects/sfnet_xming/releases/
http://mitchy.cocolog-nifty.com/mlog/2007/04/xming_4d19.html
http://minsaa.tumblr.com/post/27583668/windows-2000-xming-6-9-0-28-setup-exe
http://itcweb.cc.affrc.go.jp/affrit/documents/guide/x-window/x-win-xming
http://d.hatena.ne.jp/sona-zip/20111120/p1
http://d.hatena.ne.jp/hgshrs/20120126/1327561112
久し振りに Linuxサブ機本体でグラフィカルログインしようとすると gtk が「cannot open display」だと。でも root ならログイン出来る… むぅ~
如何な事よとググってみると、どうやら$DISPLAYがまずいらしい。
見ればユーザーの .bashrc に
export DISPLAY=a.b.c.d:0.0 と書いてある orz
a.b.c.dは母艦のWin機だ。そう言えば一時期、Winから Xming+TeraTermで繋ごうとしていたような…
繋げたか否か忘れてしまったが、良くないね、この設定方法は(否、サーバーとして見れば正解なのかも…)。
何れにしても記憶に無いのは理解不足であり、見よう見真似でやった報い。
export DISPLAY=:0.0 へ書き換えておk (´ー`)y-~~
元?がどうなっていたのか…知らぬ。現状あるのみだ。
Xming [:] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file -br create root window with black background +bs enable any backing store support -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class -co file color database file -core generate core dump on fatal error -dpi int screen resolution in dots per inch -deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs -f # bell base (0-100) -fc string cursor font -fn string default font name -fp string default font path -help prints message with these options -I ignore all remaining arguments -logo enable logo in screen saver nologo disable logo in screen saver -nolisten string don't listen on protocol -noreset don't reset after last client exists -reset reset after last client exists -p # screen-saver pattern duration (minutes) -pn accept failure to listen on all ports -nopn reject failure to listen on all ports -r turns off auto-repeat r turns on auto-repeat -render [default|mono|gray|color] set render color alloc policy -s # screen-saver timeout (minutes) -sp file security policy file -su disable any save under support -t # mouse threshold (pixels) -terminate terminate at server reset -to # connection time out -tst disable testing extensions ttyxx server started from init on /dev/ttyxx v video blanking for screen-saver -v screen-saver without video blanking -wm WhenMapped default backing-store -wr create root window with white background -x string loads named extension at init time -maxbigreqsize set maximal bigrequest size +extension name Enable extension -extension name Disable extension -query host-name contact named host for XDMCP -broadcast broadcast for XDMCP -indirect host-name contact named host for indirect XDMCP -port port-num UDP port number to send messages to -from local-address specify the local address to connect from -once Terminate server after one session -class display-class specify display class to send in manage -cookie xdm-auth-bits specify the magic cookie for XDMCP -displayID display-id manufacturer display ID for request -kb disable the X Keyboard Extension +kb enable the X Keyboard Extension [+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ] enable/disable accessx key sequences -ardelay set XKB autorepeat delay -arinterval set XKB autorepeat interval -clipboard Enables the integration between the Xming clipboard and Windows clipboard. -clipupdates num_boxes Use a clipping region to constrain shadow update blits to the updated region when num_boxes, or more, are in the updated region. Diminished effect on current Windows versions because they already group GDI operations together in a batch, which has a similar effect. -depth bits_per_pixel Specify an optional bitdepth to use in fullscreen mode with a DirectDraw engine. -emulate3buttons [timeout] Emulate a 3 button mouse with an optional timeout in milliseconds. The default timeout is 50 milliseconds. -engine engine_type_id Override the server's automatically selected engine type: 1 - Shadow GDI 2 - Shadow DirectDraw 4 - Shadow DirectDraw4 Non-Locking Do not use this parameter unless instructed to do so. -fullscreen Run the server in fullscreen mode with -depth and -refresh set as required. -ignoreinput Ignore keyboard and mouse input. This is usually only used for testing and debugging purposes. -internalwm EXPERIMENTAL: Run the internal window manager. -[no]keyhook Grab special windows key combinations like Alt-Tab or the Menu key. These keys are discarded by default. -lesspointer Hide the windows mouse pointer when it is over an inactive Xming window. This prevents ghost cursors appearing where the Windows cursor is drawn over the X cursor. -logfile filename Write logmessages to instead of Xming.n.log, where n is the display-number of the X Server. -logverbose verbosity Set the verbosity of logmessages. [NOTE: Only a few messages respect the settings, so not much use yet] 0 - only print fatal error. 1 - print additional configuration information. 2 - print additional runtime information [default]. 3 - print debugging and tracing information. -[no]multimonitors (or -[no]multiplemonitors) Use the entire virtual screen if multiple monitors are present. -multiwindow Run the server in multiwindow mode. Not to be used together with -rootless or -fullscreen. -mwextwm EXPERIMENTAL: Run the server in multiwindow external window manager mode. Use with xwinwm. -nodecoration Do not draw a window border, title bar, etc. Windowed mode only i.e. ignored when -fullscreen specified. -noicons Disable the conversion of X icons in multiwindow mode. Use to prevent an infrequent crash in miGetImage(). This is a work-around that most people won't need. -nounicodeclipboard Disable Unicode in the clipboard. -refresh rate_in_Hz Specify an optional refresh rate to use in fullscreen mode with a DirectDraw engine. -rootless Use a transparent root window with an external window manager (such as openbox). Not to be used with -multiwindow or with -fullscreen. -screen scr_num [width height [x y] | [[WxH[+X+Y]][@m]] ] Enable screen scr_num and optionally specify a width and height and initial position for that screen. Additionally a monitor number can be specified to start the server on, at which point, all coordinates become relative to that monitor. Examples: -screen 0 800x600+100+100@2 ;2nd monitor offset 100,100 size 800x600 -screen 0 1024x768@3 ;3rd monitor size 1024x768 -screen 0 @1 ;on 1st monitor using its full resolution (the default) -scrollbars In windowed mode, allow screens bigger than the Windows desktop. Moreover, if the window has decorations, one can now resize it. Do not use in conjunction with -multiwindow or with -rootless. -silent-dup-error If another instance of Xming is found running, exit silently and don't display the error message. -swcursor Disable the usage of the windows cursor and use the X11 software cursor instead. -[no]trayicon Do not create a tray icon. Default is to create one icon per screen. You can globally disable tray icons with -notrayicon, then enable it for specific screens with -trayicon for those screens. -[no]unixkill Ctrl-Alt-Backspace exits the X Server. The Ctrl-Alt-Backspace key combo is disabled by default. -version Write version and help text to the console (unless built console-less) and to the log file. -[no]winkill Alt-F4 exits the X Server. The Alt-F4 key combo is enabled by default. -xkblayout XKBLayout Set the layout to use for XKB. This defaults to a layout matching your current layout from windows or us (i.e. USA) if no matching layout was found. For example: -xkblayout de -xkbmodel XKBModel Set the model to use for XKB. This defaults to pc105. -xkboptions XKBOptions Set the options to use for XKB. This defaults to not set. -xkbrules XKBRules Set the rules to use for XKB. This defaults to xorg. -xkbvariant XKBVariant Set the variant to use for XKB. This defaults to not set. For example: -xkbvariant nodeadkeys