0, download tightvnc-server
成都創(chuàng)新互聯(lián)公司專(zhuān)注于濂溪企業(yè)網(wǎng)站建設(shè),成都響應(yīng)式網(wǎng)站建設(shè),商城網(wǎng)站定制開(kāi)發(fā)。濂溪網(wǎng)站建設(shè)公司,為濂溪等地區(qū)提供建站服務(wù)。全流程按需定制開(kāi)發(fā),專(zhuān)業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,成都創(chuàng)新互聯(lián)公司專(zhuān)業(yè)和態(tài)度為您提供的服務(wù)
房縣網(wǎng)站建設(shè)公司成都創(chuàng)新互聯(lián),房縣網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為房縣上1000+提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)要多少錢(qián),請(qǐng)找那個(gè)售后服務(wù)好的房縣做網(wǎng)站的公司定做!
wget http://www.tightvnc.com/download/1.3.10/tightvnc-1.3.10_unixsrc.tar.gz
1, 修改配置文件,支持libwrap 庫(kù)
cd /root/vnc_unixsrc/Xvnc/programs/Xserver
vim Imakefile
158 LIBWRAP=-lwrap
159 #if SystemV4 || defined(SGIArchitecture) || UseRgbTxt
160 SYSLIBS = ${LIBWRAP} $(ZLIB) MathLibrary Krb5Libraries $(EXTRASYSLIBS)
161 #else
162 SYSLIBS = ${LIBWRAP} $(ZLIB) MathLibrary Krb5Libraries DBMLibrary $(EXTRASYSLIBS)
163 #endif
164 CBRT = mi/LibraryTargetName(cbrt)
165 STDDIRS = include dix os mi $(XPDDXDIR) $(EXTDIRS)
2, cd //root/vnc_unixsrc/Xvnc/programs/Xserver/hw/vnc/
vim Imakefile
17 DEFINES = ServerOSDefines -DUSE_LIBWRAP=1
2, 編譯安裝:
1, xmkmf
2, make World
3, cd Xvnc
4, ./configure
5, make
6, make install
7, cd ../
8, ./vncinstall /usr/local/bin /usr/local/man
9, mkdir -p /usr/local/vnc/classes
10, cp classes/* /usr/local/vnc/classes
11, cd /usr/X11R6/lib/
12, ln -s /usr/share/X11/ ./
3, 基本配置
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
4,設(shè)置密碼
vncpasswd
#輸入密碼
5, 啟動(dòng)程序
Xvnc :1 -desktop X -httpd /usr/local/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 24 -rfbwait 120000 -rfbauth /root/.vnc/passw
6, 驗(yàn)證配置與測(cè)試
vim /etc/hosts.deny
Xvnc:ALL:deny
vim /etc/hosts.allow
Xvnc:192.168.22.*:allow
7, 日志記錄
1,成功拒絕登錄IP
22/07/14 02:10:17 Rejected connection from client 192.168.222.1
2,成功連接IP
22/07/14 02:10:50 Got connection from client 192.168.222.1
22/07/14 02:10:50 Using protocol version 3.8
22/07/14 02:10:50 Enabling TightVNC protocol extensions
8, Error 處理
09/07/09 11:09:24 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
09/07/09 11:09:24 Listening for VNC connections on TCP port 5901
09/07/09 11:09:24 Listening for HTTP connections on TCP port 5801
09/07/09 11:09:24 URL http://localhost:5801
Font directory '/usr/X11R6/lib/X11/fonts/misc/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Type1/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/75dpi/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring
Fatal server error:
could not open default font 'fixed'
解決辦法:
11, cd /usr/X11R6/lib/
12, ln -s /usr/share/X11/ ./
9, 參考文檔
http://www.realvnc.com/pipermail/vnc-list/1998-September/002635.html
標(biāo)題名稱(chēng):Xvnc支持libwrap控制單個(gè)IP登錄VNC實(shí)現(xiàn)
網(wǎng)站網(wǎng)址:http://vcdvsql.cn/article36/iijpsg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供電子商務(wù)、App開(kāi)發(fā)、網(wǎng)站導(dǎo)航、靜態(tài)網(wǎng)站、小程序開(kāi)發(fā)、網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)