今天小编将为大家介绍建立VNC Linux服务器的步骤
如果你不懂或者感兴趣的话就跟随小编一起去看看具体是如何建立VNC Linux服务器的,大家一起学习起来吧。
VNC(Virtual Network Computing)可以让你登录进到远程服务器的桌面上(相比之下,SSH的X11只能让你在本地机器上打开几个窗口)。这个很有用,设置起来也十分方便。
第一步
我是用的是vnc4(还有其他选项,比如TightVNC),所以第一步是在远程服务器上安装vnc4server Debian/Ubuntu软件包。vnc4安装之后,运行一次以完成配置,并设立一个VNC密码:
·········10········20········30········40········50········60········70········80········90
1.vncserver :1
这将启动一个后台进程,而不是一个在前台运行的vnc4。一旦它开始运行,将会有shell提示。
第二步
要kill服务器,请运行以下指令:
·········10········20········30········40········50········60········70········80········90
1.vncserver -kill :1
第三步
你可以通过编辑~/.vnc/xstartup文件来控制开机时启动的应用和窗口管理器。默认的窗口管理器是x-window-manager(X窗口管理器)。我比较喜欢用Xfce4,因为它比较轻量,适合远程运行。你也可以使用Gnome。
指定窗口管理器的方法是,先把x-window-manager那一行注释掉,然后添加一行你希望使用的管理器进程:
·········10········20········30········40········50········60········70········80········90
1.xfce4-session &
第四步
接下来,你需要考虑通过SSH加密通道来运行进程(默认选项是使用未加密的5901端口)。在客户端运行如下指令:
·········10········20········30········40········50········60········70········80········90
1.ssh -f -N -L 5901:localhost:5901 user@yourserver.co.uk
然后启动远程服务器:
·········10········20········30········40········50········60········70········80········90
1.vncserver :1
第五步
最后,使用一个VNC客户端(Linux上有xvnc4viewer,Mac上有Chicken of the VNC)连接到5901端口的localhost(SSH连接本地5901端口到远程5901端口),使用你的VNC密码。这样就登录进去了。在你操作完毕时,记得kill掉VNC服务器以及你的SSH进程。
上文就是小编为大家介绍建立VNC Linux服务器的步骤,感兴趣的小伙伴们赶快做个试验,感受它的威力吧。
103.194.17.1
103.194.17.2
103.194.17.3
103.194.17.4
103.194.17.5
103.194.17.6
103.194.17.7
103.194.17.8
103.194.17.9
103.194.17.10
103.194.17.11
103.194.17.12
103.194.17.13
103.194.17.14
103.194.17.15
103.194.17.16
103.194.17.17
103.194.17.18
103.194.17.19
103.194.17.20
103.194.17.21
103.194.17.22
103.194.17.23
103.194.17.24
103.194.17.25
103.194.17.26
103.194.17.27
103.194.17.28
103.194.17.29
103.194.17.30
103.194.17.31
103.194.17.32
103.194.17.33
103.194.17.34
103.194.17.35
103.194.17.36
103.194.17.37
103.194.17.38
103.194.17.39
103.194.17.40
103.194.17.41
103.194.17.42
103.194.17.43
103.194.17.44
103.194.17.45
103.194.17.46
103.194.17.47
103.194.17.48
103.194.17.49
103.194.17.50
103.194.17.51
103.194.17.52
103.194.17.53
103.194.17.54
103.194.17.55
103.194.17.56
103.194.17.57
103.194.17.58
103.194.17.59
103.194.17.60
103.194.17.61
103.194.17.62
103.194.17.63
103.194.17.64
103.194.17.65
103.194.17.66
103.194.17.67
103.194.17.68
103.194.17.69
103.194.17.70
103.194.17.71
103.194.17.72
103.194.17.73
103.194.17.74
103.194.17.75
103.194.17.76
103.194.17.77
103.194.17.78
103.194.17.79
103.194.17.80
103.194.17.81
103.194.17.82
103.194.17.83
103.194.17.84
103.194.17.85
103.194.17.86
103.194.17.87
103.194.17.88
103.194.17.89
103.194.17.90
103.194.17.91
103.194.17.92
103.194.17.93
103.194.17.94
103.194.17.95
103.194.17.96
103.194.17.97
103.194.17.98
103.194.17.99
103.194.17.100
103.194.17.101
103.194.17.102
103.194.17.103
103.194.17.104
103.194.17.105
103.194.17.106
103.194.17.107
103.194.17.108
103.194.17.109
103.194.17.110
103.194.17.111
103.194.17.112
103.194.17.113
103.194.17.114
103.194.17.115
103.194.17.116
103.194.17.117
103.194.17.118
103.194.17.119
103.194.17.120
103.194.17.121
103.194.17.122
103.194.17.123
103.194.17.124
103.194.17.125
103.194.17.126
103.194.17.127
103.194.17.128
103.194.17.129
103.194.17.130
103.194.17.131
103.194.17.132
103.194.17.133
103.194.17.134
103.194.17.135
103.194.17.136
103.194.17.137
103.194.17.138
103.194.17.139
103.194.17.140
103.194.17.141
103.194.17.142
103.194.17.143
103.194.17.144
103.194.17.145
103.194.17.146
103.194.17.147
103.194.17.148
103.194.17.149
103.194.17.150
103.194.17.151
103.194.17.152
103.194.17.153
103.194.17.154
103.194.17.155
103.194.17.156
103.194.17.157
103.194.17.158
103.194.17.159
103.194.17.160
103.194.17.161
103.194.17.162
103.194.17.163
103.194.17.164
103.194.17.165
103.194.17.166
103.194.17.167
103.194.17.168
103.194.17.169
103.194.17.170
103.194.17.171
103.194.17.172
103.194.17.173
103.194.17.174
103.194.17.175
103.194.17.176
103.194.17.177
103.194.17.178
103.194.17.179
103.194.17.180
103.194.17.181
103.194.17.182
103.194.17.183
103.194.17.184
103.194.17.185
103.194.17.186
103.194.17.187
103.194.17.188
103.194.17.189
103.194.17.190
103.194.17.191
103.194.17.192
103.194.17.193
103.194.17.194
103.194.17.195
103.194.17.196
103.194.17.197
103.194.17.198
103.194.17.199
103.194.17.200
103.194.17.201
103.194.17.202
103.194.17.203
103.194.17.204
103.194.17.205
103.194.17.206
103.194.17.207
103.194.17.208
103.194.17.209
103.194.17.210
103.194.17.211
103.194.17.212
103.194.17.213
103.194.17.214
103.194.17.215
103.194.17.216
103.194.17.217
103.194.17.218
103.194.17.219
103.194.17.220
103.194.17.221
103.194.17.222
103.194.17.223
103.194.17.224
103.194.17.225
103.194.17.226
103.194.17.227
103.194.17.228
103.194.17.229
103.194.17.230
103.194.17.231
103.194.17.232
103.194.17.233
103.194.17.234
103.194.17.235
103.194.17.236
103.194.17.237
103.194.17.238
103.194.17.239
103.194.17.240
103.194.17.241
103.194.17.242
103.194.17.243
103.194.17.244
103.194.17.245
103.194.17.246
103.194.17.247
103.194.17.248
103.194.17.249
103.194.17.250
103.194.17.251
103.194.17.252
103.194.17.253
103.194.17.254
103.194.17.255