CSDMmoand_0415 2023-11-01 19:53 采纳率: 66.7%
浏览 43
已结题

我在termux搞archlinux输入vncserver :1时出现问题

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Could not find session desktop file /usr/share/xsessions/xfce4.desktop at /usr/sbin/vncserver line 314.
Could not load configured desktop session xfce4
Using desktop session xfce
xauth: file /home/moand/.Xauthority does not exist

New 'localhost:1 (moand)' desktop is localhost:1

Starting desktop session xfce

Unrecognized option: -gometry
use: X [:] [option]
-a # default pointer acceleration (factor)
-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
-nocursor disable the cursor
-core generate core dump on fatal error
-displayfd fd file descriptor to write display number to when ready to connect
-dpi int screen resolution in dots per inch
-dpms disables VESA DPMS monitor control
-deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs
-f # bell base (0-100)
-fakescreenfps # fake screen default fps (1-600)
-fp string default font path
-help prints message with these options
+iglx Allow creating indirect GLX contexts
-iglx Prohibit creating indirect GLX contexts (default)
-I ignore all remaining arguments
-ld int limit data space to N Kb
-lf int limit number of open files to N
-ls int limit stack space to N Kb
-nolock disable the locking mechanism
-maxclients n set maximum number of clients (power of two)
-nolisten string don't listen on protocol
-listen string listen on protocol
-noreset don't reset after last client exists
-background [none] create root window with no background
-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
-retro start with classic stipple and cursor
-s # screen-saver timeout (minutes)
-seat string seat to run on
-t # default pointer threshold (pixels/t)
-terminate [delay] terminate at server reset (optional delay in sec)
-tst disable testing extensions
ttyxx server started from init on /dev/ttyxx
v video blanking for screen-saver
-v screen-saver without video blanking
-wr create root window with white background
-maxbigreqsize set maximal bigrequest size
+xinerama Enable XINERAMA extension
-xinerama Disable XINERAMA extension
-dumbSched Disable smart scheduling and threaded input, enable old behavior
-schedInterval int Set scheduler interval in msec
-sigstop Enable SIGSTOP based startup
+extension name Enable extension
-extension name Disable extension
Only the following extensions can be run-time enabled/disabled:
Generic Event Extension
MIT-SHM
XTEST
XINERAMA
XFIXES
RENDER
RANDR
COMPOSITE
DAMAGE
MIT-SCREEN-SAVER
DOUBLE-BUFFER
RECORD
DPMS
X-Resource
XVideo
XVideo-MotionCompensation
GLX
-query host-name contact named host for XDMCP
-broadcast broadcast for XDMCP
-multicast [addr [hops]] IPv6 multicast 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
[+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
enable/disable accessx key sequences
-ardelay set XKB autorepeat delay
-arinterval set XKB autorepeat interval

Xvnc TigerVNC 1.13.1 - built Aug 10 2023 02:35:51
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101006

-pixdepths list-of-int support given pixmap depths
+/-render turn on/off RENDER extension support(default on)
-geometry WxH set screen 0's width, height
-depth D set screen 0's depth
-pixelformat fmt set pixel format (rgbNNN or bgrNNN)
-inetd has been launched from inetd
-noclipboard disable clipboard settings modification via vncconfig utility
-verbose [n] verbose startup messages
-quiet minimal startup messages
-version show the server version

VNC parameters:

Parameters can be turned on with - or off with -=0
Parameters which take a value can be specified as -
Other valid forms are = -= --=
Parameter names are case-insensitive. The parameters are:

Global Parameters:
ZlibLevel - Zlib compression level (default=-1)
ImprovedHextile - Use improved compression algorithm for Hextile encoding
which achieves better compression ratios by the cost of
using more CPU time (default=1)
pam_service - Alias for PAMService
PAMService - Service name for PAM password validation (default=vnc)
PlainUsers - Users permitted to access via Plain security type (including
TLSPlain, X509Plain etc.) or RSA-AES security types (RA2,
RA2ne, RA2_256, RA2ne_256) (default=)
GnuTLSPriority - GnuTLS priority string that controls the TLS session’s
handshake algorithms (default=)
QueryConnect - Prompt the local user to accept or reject incoming
connections. (default=0)
AcceptSetDesktopSize - Accept set desktop size events from clients.
(default=1)
SendCutText - Send clipboard changes to clients. (default=1)
AcceptCutText - Accept clipboard updates from clients. (default=1)
AcceptPointerEvents - Accept pointer press and release events from clients.
(default=1)
AcceptKeyEvents - Accept key press and release events from clients.
(default=1)
DisconnectClients - Disconnect existing clients if an incoming connection is
non-shared. If combined with NeverShared then new
connections will be refused while there is a client active
(default=1)
NeverShared - Never treat incoming connections as shared, regardless of
the client-specified setting (default=0)
AlwaysShared - Always treat incoming connections as shared, regardless of
the client-specified setting (default=0)
Protocol3.3 - Always use protocol version 3.3 for backwards compatibility
with badly-behaved clients (default=0)
FrameRate - The maximum number of updates per second sent to each client
(default=60)
CompareFB - Perform pixel comparison on framebuffer to reduce
unnecessary updates (0: never, 1: always, 2: auto)
(default=2)
MaxIdleTime - Terminate after s seconds of user inactivity (default=0)
MaxConnectionTime - Terminate when a client has been connected for s seconds
(default=0)
MaxDisconnectionTime - Terminate when no client has been connected for s
seconds (default=0)
IdleTimeout - The number of seconds after which an idle VNC connection
will be dropped (zero means no timeout) (default=0)
MaxCutText - Maximum permitted length of an incoming clipboard update
(default=262144)
RemapKeys - Comma-separated list of incoming keysyms to remap. Mappings
are expressed as two hex values, prefixed by 0x, and
separated by -> (default=)
BlacklistTimeout - The initial timeout applied when a host is first
black-listed. The host cannot re-attempt a connection until
the timeout expires. (default=10)
BlacklistThreshold - The number of unauthenticated connection attempts
allowed from any individual host before that host is
black-listed (default=5)
UseBlacklist - Temporarily reject connections from a host if it repeatedly
fails to authenticate. (default=1)
Log - Specifies which log output should be directed to which
target logger, and the level of output to log. Format is
::[, ...]. (default=)
UseIPv6 - Use IPv6 for incoming and outgoing connections. (default=1)
UseIPv4 - Use IPv4 for incoming and outgoing connections. (default=1)
QueryConnectTimeout - Number of seconds to show the Accept Connection dialog
before rejecting the connection (default=10)
RawKeyboard - Send keyboard events straight through and avoid mapping them
to the current keyboard layout (default=0)
SendPrimary - Send the PRIMARY as well as the CLIPBOARD selection
(default=1)
SetPrimary - Set the PRIMARY as well as the CLIPBOARD selection
(default=1)
AllowOverride - Comma separated list of parameters that can be modified
using VNC extension.
(default=desktop,AcceptPointerEvents,SendCutText,AcceptCutText,SendPrimary,SetPrimary)
AvoidShiftNumLock - Avoid fake Shift presses for keys affected by NumLock.
(default=1)
interface - listen on the specified network address (default=all)
localhost - Only allow connections from localhost (default=0)
desktop - Name of VNC desktop (default=moand@localhost)
rfbunixmode - Unix socket access mode (default=384)
rfbunixpath - Unix socket to listen for RFB protocol (default=)
rfbport - TCP port to listen for RFB protocol (default=0)
Server Parameters:
RequireUsername - Require username for the RSA-AES security types (default=0)
RSAKey - Path to the RSA key for the RSA-AES security types in PEM
format (default=)
X509Key - Path to the key of the X509 certificate in PEM format
(default=)
X509Cert - Path to the X509 certificate in PEM format (default=)
Password - Obfuscated binary encoding of the password which clients
must supply to access the server (default=)
rfbauth - Alias for PasswordFile
PasswordFile - Password file for VNC authentication (default=)
SecurityTypes - Specify which security scheme to use (None, VncAuth, Plain,
TLSNone, TLSVnc, TLSPlain, X509None, X509Vnc, X509Plain,
RA2, RA2ne, RA2_256, RA2ne_256) (default=TLSVnc,VncAuth)
(EE)
Fatal server error:
(EE) Unrecognized option: -gometry
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

  • 写回答

7条回答 默认 最新

  • 专家-赤兔[在线] 优质创作者: 编程框架技术领域 2023-11-01 20:24
    关注

    根据错误提示,你输入的命令中有一个拼写错误,"-gometry" 应为 "-geometry"。请将命令修改为 "vncserver :1 -geometry WxH",其中 W 和 H 分别代表你希望设置的屏幕宽度和高度。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(6条)

报告相同问题?

问题事件

  • 系统已结题 11月11日
  • 已采纳回答 11月3日
  • 赞助了问题酬金15元 11月1日
  • 创建了问题 11月1日