今天小编将为大家介绍建立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服务器的步骤,感兴趣的小伙伴们赶快做个试验,感受它的威力吧。
163.197.192.21
163.197.192.22
163.197.192.23
163.197.192.24
163.197.192.25
163.197.192.26
163.197.192.27
163.197.192.28
163.197.192.29
163.197.192.30
163.197.192.31
163.197.192.32
163.197.192.33
163.197.192.34
163.197.192.35
163.197.192.36
163.197.192.37
163.197.192.38
163.197.192.39
163.197.192.40
163.197.192.41
163.197.192.42
163.197.192.43
163.197.192.44
163.197.192.45
163.197.192.46
163.197.192.47
163.197.192.48
163.197.192.49
163.197.192.50
163.197.192.51
163.197.192.52
163.197.192.53
163.197.192.54
163.197.192.55
163.197.192.56
163.197.192.57
163.197.192.58
163.197.192.59
163.197.192.60
163.197.192.61
163.197.192.62
163.197.192.63
163.197.192.64
163.197.192.65
163.197.192.66
163.197.192.67
163.197.192.68
163.197.192.69
163.197.192.70
163.197.192.71
163.197.192.72
163.197.192.73
163.197.192.74
163.197.192.75
163.197.192.76
163.197.192.77
163.197.192.78
163.197.192.79
163.197.192.80
163.197.192.81
163.197.192.82
163.197.192.83
163.197.192.84
163.197.192.85
163.197.192.86
163.197.192.87
163.197.192.88
163.197.192.89
163.197.192.90
163.197.192.91
163.197.192.92
163.197.192.93
163.197.192.94
163.197.192.95
163.197.192.96
163.197.192.97
163.197.192.98
163.197.192.99
163.197.192.100
163.197.192.101
163.197.192.102
163.197.192.103
163.197.192.104
163.197.192.105
163.197.192.106
163.197.192.107
163.197.192.108
163.197.192.109
163.197.192.110
163.197.192.111
163.197.192.112
163.197.192.113
163.197.192.114
163.197.192.115
163.197.192.116
163.197.192.117
163.197.192.118
163.197.192.119
163.197.192.120
163.197.192.121
163.197.192.122
163.197.192.123
163.197.192.124
163.197.192.125
163.197.192.126
163.197.192.127
163.197.192.128
163.197.192.129
163.197.192.130
163.197.192.131
163.197.192.132
163.197.192.133
163.197.192.134
163.197.192.135
163.197.192.136
163.197.192.137
163.197.192.138
163.197.192.139
163.197.192.140
163.197.192.141
163.197.192.142
163.197.192.143
163.197.192.144
163.197.192.145
163.197.192.146
163.197.192.147
163.197.192.148
163.197.192.149
163.197.192.150
163.197.192.151
163.197.192.152
163.197.192.153
163.197.192.154
163.197.192.155
163.197.192.156
163.197.192.157
163.197.192.158
163.197.192.159
163.197.192.160
163.197.192.161
163.197.192.162
163.197.192.163
163.197.192.164
163.197.192.165
163.197.192.166
163.197.192.167
163.197.192.168
163.197.192.169
163.197.192.170
163.197.192.171
163.197.192.172
163.197.192.173
163.197.192.174
163.197.192.175
163.197.192.176
163.197.192.177
163.197.192.178
163.197.192.179
163.197.192.180
163.197.192.181
163.197.192.182
163.197.192.183
163.197.192.184
163.197.192.185
163.197.192.186
163.197.192.187
163.197.192.188
163.197.192.189
163.197.192.190
163.197.192.191
163.197.192.192
163.197.192.193
163.197.192.194
163.197.192.195
163.197.192.196
163.197.192.197
163.197.192.198
163.197.192.199
163.197.192.200
163.197.192.201
163.197.192.202
163.197.192.203
163.197.192.204
163.197.192.205
163.197.192.206
163.197.192.207
163.197.192.208
163.197.192.209
163.197.192.210
163.197.192.211
163.197.192.212
163.197.192.213
163.197.192.214
163.197.192.215
163.197.192.216
163.197.192.217
163.197.192.218
163.197.192.219
163.197.192.220
163.197.192.221
163.197.192.222
163.197.192.223
163.197.192.224
163.197.192.225
163.197.192.226
163.197.192.227
163.197.192.228
163.197.192.229
163.197.192.230
163.197.192.231
163.197.192.232
163.197.192.233
163.197.192.234
163.197.192.235
163.197.192.236
163.197.192.237
163.197.192.238
163.197.192.239
163.197.192.240
163.197.192.241
163.197.192.242
163.197.192.243
163.197.192.244
163.197.192.245
163.197.192.246
163.197.192.247
163.197.192.248
163.197.192.249
163.197.192.250
163.197.192.251
163.197.192.252
163.197.192.253
163.197.192.254
163.197.192.255