整合營銷服務商

          電腦端+手機端+微信端=數據同步管理

          免費咨詢熱線:

          給群輝加上Chrome瀏覽器,局域網設備訪問一站到底

          給群輝加上Chrome瀏覽器,局域網設備訪問一站到底

          內容來源于@什么值得買APP,觀點僅代表作者本人 |作者:凝木雨



          創作立場聲明:生活,在折騰中找到快樂

          當年帶我撿垃圾的小伙伴兒出掉了蝸牛、出掉了暴風,然后洗白上岸,上了威聯通的車。以后要一個人繼續撿垃圾了

          然后,我就被安利了群輝沒有的瀏覽器套件,通過威聯通的瀏覽器套件就可以訪問內部設備了,再也不用一個端口一個端口的映射了,科學安全還效率,真香

          別人家的威聯通有,我也要給群輝搞一個(發出白嫖的聲音)

          是時候請出oldiy大神了,他搞了三個docker的瀏覽器容器:

          • 一個Chrome瀏覽器 docker
          • 一個火狐瀏覽器 hub.docker
          • 一個火狐瀏覽器+Enpass docker

          安裝方法基本都是一樣的,現在我要開始開車群輝docker下的Chrome了

          1、打開群輝的docker,在注冊表搜索:oldiy

          找到chrome-novnc這個鏡像,雙擊下載

          打開 hub.docker這個鏡像地址看下老哥寫的說明

          這里看到docker run的命令只有端口映射選項,不需要目錄掛載

          2、開始配置容器

          鏡像下載完成后,在映像下找到剛才下載的Chrome容器,雙擊啟動,開始配置

          這里只需要配置端口就行了,容器端口這里不動,配置本地端口為自己想用的端口,簡單點兒就直接跟容器端口一樣,如果已經有服務使用了5900/8083的端口,更換成尚未被使用的端口即可。

          配置好之后點擊應用,然后下一步

          沒有問題就應用,啟動容器

          3、給Chrome加上密碼,防止被人勾搭走

          在docker的容器選項里找到剛才啟動的Chrome,點擊詳情

          點擊終端機,然后點擊新增,新增一個bash終端

          輸入:x11vnc -storepasswd

          按回車開始配置密碼

          4、讓容器啟動時自動加載密碼配置

          繼續在剛才的bash終端進行配置

          輸入:apt update

          這一步是同步軟件包

          輸入:apt install vim -y

          安裝vim工具

          輸入:vi /etc/supervisor/conf.d/supervisord.conf

          將鍵盤切換到英文輸入狀態,按字母 i 鍵

          使用鍵盤上下左右鍵的下鍵將光標移動到圖中所在行,然后使用上下左右鍵的右鍵將光標移動到x11vnc后面

          輸入: -rfbauth /root/.vnc/passwd

          這里可以用鼠標右鍵粘貼

          確認無誤后按鍵盤ESC鍵退出編輯模式,然后按shift+冒號(shift + :),輸入wq,會保存退出

          回到總覽選項,重啟啟動容器

          5、反向代理開啟https

          6、反向代理配置后在路由器開啟端口轉發

          訪問地址:https://xxxxxxx:yy/vnc.html

          !/bin/bash

          #########################################

          #Function: install vnc server

          #Usage: bash install_vnc_server.sh

          #Author: Customer service department

          #Company: Alibaba Cloud Computing

          #Version: 3.0

          #########################################

          check_os_release()

          {

          while true

          do

          os_release=$(grep "Red Hat Enterprise Linux Server release" /etc/issue 2>/dev/null)

          os_release_2=$(grep "Red Hat Enterprise Linux Server release" /etc/redhat-release 2>/dev/null)

          if [ "$os_release" ] && [ "$os_release_2" ]

          then

          if echo "$os_release"|grep "release 5" >/dev/null 2>&1

          then

          os_release=redhat5

          echo "$os_release"

          elif echo "$os_release"|grep "release 6" >/dev/null 2>&1

          then

          os_release=redhat6

          echo "$os_release"

          else

          os_release=""

          echo "$os_release"

          fi

          break

          fi

          os_release=$(grep "Aliyun Linux release" /etc/issue 2>/dev/null)

          os_release_2=$(grep "Aliyun Linux release" /etc/aliyun-release 2>/dev/null)

          if [ "$os_release" ] && [ "$os_release_2" ]

          then

          if echo "$os_release"|grep "release 5" >/dev/null 2>&1

          then

          os_release=aliyun5

          echo "$os_release"

          elif echo "$os_release"|grep "release 6" >/dev/null 2>&1

          then

          os_release=aliyun6

          echo "$os_release"

          elif echo "$os_release"|grep "release 7" >/dev/null 2>&1

          then

          os_release=aliyun7

          echo "$os_release"

          else

          os_release=""

          echo "$os_release"

          fi

          break

          fi

          os_release_2=$(grep "CentOS" /etc/*release 2>/dev/null)

          if [ "$os_release_2" ]

          then

          if echo "$os_release_2"|grep "release 5" >/dev/null 2>&1

          then

          os_release=centos5

          echo "$os_release"

          elif echo "$os_release_2"|grep "release 6" >/dev/null 2>&1

          then

          os_release=centos6

          echo "$os_release"

          elif echo "$os_release_2"|grep "release 7" >/dev/null 2>&1

          then

          os_release=centos7

          echo "$os_release"

          else

          os_release=""

          echo "$os_release"

          fi

          break

          fi

          os_release=$(grep -i "ubuntu" /etc/issue 2>/dev/null)

          os_release_2=$(grep -i "ubuntu" /etc/lsb-release 2>/dev/null)

          if [ "$os_release" ] && [ "$os_release_2" ]

          then

          if echo "$os_release"|grep "Ubuntu 10" >/dev/null 2>&1

          then

          os_release=ubuntu10

          echo "$os_release"

          elif echo "$os_release"|grep "Ubuntu 12.04" >/dev/null 2>&1

          then

          os_release=ubuntu1204

          echo "$os_release"

          elif echo "$os_release"|grep "Ubuntu 12.10" >/dev/null 2>&1

          then

          os_release=ubuntu1210

          echo "$os_release"

          elif echo "$os_release"|grep "Ubuntu 14.04" >/dev/null 2>&1

          then

          os_release=ubuntu1204

          echo "$os_release"

          else

          os_release=""

          echo "$os_release"

          fi

          break

          fi

          os_release=$(grep -i "debian" /etc/issue 2>/dev/null)

          os_release_2=$(grep -i "debian" /proc/version 2>/dev/null)

          if [ "$os_release" ] && [ "$os_release_2" ]

          then

          if echo "$os_release"|grep "Linux 6" >/dev/null 2>&1

          then

          os_release=debian6

          echo "$os_release"

          elif echo "$os_release"|grep "Linux 7" >/dev/null 2>&1

          then

          os_release=debian7

          echo "$os_release"

          else

          os_release=""

          echo "$os_release"

          fi

          break

          fi

          break

          done

          }

          exit_script()

          {

          echo -e "3[1;40;31mInstall error,will exit.\n3[0m"

          rm -f $LOCKfile

          exit 1

          }

          update_source()

          {

          wget "http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/41177/cn_zh/1504061676920/update_source.sh" -O update_source.tgz

          tar -zxvf update_source.tgz

          bash update_source.sh

          }

          rhel5_vnc_config()

          {

          cat >$vnc_xstartup_config<<EOF

          #!/bin/sh

          # Uncomment the following two lines for normal desktop:

          # unset SESSION_MANAGER

          # exec /etc/X11/xinit/xinitrc

          [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

          [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

          xsetroot -solid grey

          vncconfig -iconic &

          xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

          #twm &

          gnome-session &

          EOF

          cat >$vnc_sysconfig_vncservers<<EOF

          # The VNCSERVERS variable is a list of display:user pairs.

          #

          # Uncomment the lines below to start a VNC server on display :2

          # as my 'myusername' (adjust this to your own). You will also

          # need to set a VNC password; run 'man vncpasswd' to see how

          # to do that.

          #

          # DO NOT RUN THIS SERVICE if your local area network is

          # untrusted! For a secure way of using VNC, see

          # <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.

          # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.

          # Use "-nohttpd" to prevent web-based VNC clients connecting.

          # Use "-localhost" to prevent remote VNC clients connecting except when

          # doing so through a secure tunnel. See the "-via" option in the

          # 'man vncviewer' manual page.

          # VNCSERVERS="2:myusername"

          # VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

          VNCSERVERS="1:root"

          EOF

          }

          check_selinux_config()

          {

          if grep "SELINUX=enforcing" $selinux_config >/dev/null 2>&1

          then

          sed -i 's/SELINUX=enforcing/SELINUX=disabled/' $selinux_config

          fi

          }

          centos5_install_vnc_server()

          {

          if [ ""=="redhat5" ]

          then

          if rpm -qa|grep redhat-logos >/dev/null 2>&1

          then

          yum remove $(rpm -qa|grep redhat-logos) -y

          fi

          fi

          if yum grouplist "GNOME Desktop Environment"|grep "Available" >/dev/null 2>&1

          then

          if ! yum groupinstall "GNOME Desktop Environment" -y

          then

          exit_script "GNOME Desktop Environment"

          fi

          fi

          if ! rpm -q vnc-server >/dev/null 2>&1

          then

          if ! yum install vnc-server -y

          then

          exit_script vnc-server

          fi

          vncserver <<EOF

          $password

          $password

          EOF

          else

          vncpasswd <<EOF

          $password

          $password

          EOF

          fi

          vncserver -kill :1

          service vncserver stop

          service pcscd stop

          chkconfig --del pcscd

          yum remove esc -y

          rhel5_vnc_config

          chmod 755 $vnc_xstartup_config

          chkconfig --level 345 vncserver on

          service NetworkManager stop

          chkconfig --del NetworkManager

          check_selinux_config

          sleep 20

          service vncserver start

          }

          centos6_install_vnc_server()

          {

          if yum grouplist "X Window System"|grep "Available" >/dev/null 2>&1

          then

          if ! yum groupinstall "X Window System" -y

          then

          exit_script "X Window System"

          fi

          fi

          if yum grouplist "Desktop"|grep "Available" >/dev/null 2>&1

          then

          if ! yum groupinstall "Desktop" -y

          then

          exit_script Desktop

          fi

          fi

          if yum grouplist "Chinese Support"|grep "Available" >/dev/null 2>&1

          then

          if ! yum groupinstall "Chinese Support" -y

          then

          exit_script "Chinese Support"

          fi

          fi

          if ! rpm -q tigervnc-server >/dev/null 2>&1

          then

          if ! yum install tigervnc-server -y

          then

          exit_script tigervnc-server

          fi

          vncserver <<EOF

          $password

          $password

          EOF

          else

          vncpasswd <<EOF

          $password

          $password

          EOF

          fi

          vncserver -kill :1

          service vncserver stop

          service pcscd stop

          chkconfig --del pcscd

          yum remove esc -y

          sed -i 's/.*!=root.*/#&/' /etc/pam.d/gdm

          dbus-uuidgen >/var/lib/dbus/machine-id

          rhel5_vnc_config

          chmod 755 $vnc_xstartup_config

          chkconfig --level 345 vncserver on

          service NetworkManager stop

          chkconfig --del NetworkManager

          sleep 20

          service vncserver start

          check_selinux_config

          }

          centos7_install_vnc_server()

          {

          if ! yum groupinstall "GNOME Desktop" "Graphical Administration Tools" -y

          then

          exit_script "NOME Desktop Graphical Administration Tools"

          fi

          if ! yum install tigervnc-server -y

          then

          exit_script "tigervnc-server"

          fi

          cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@\:1.service

          sed -i 's/%i/:1/g' /lib/systemd/system/vncserver@\:1.service

          sed -i 's/<USER>/root/g' /lib/systemd/system/vncserver@\:1.service

          sed -i 's/home\/root/root/g' /lib/systemd/system/vncserver@\:1.service

          vncpasswd <<EOF

          $password

          $password

          EOF

          systemctl enable vncserver@:1.service

          systemctl start vncserver@:1.service

          systemctl status vncserver@:1.service

          systemctl disable initial-setup-text.service

          }

          ubuntu_install_vnc_server()

          {

          if ! dpkg -s lxde >/dev/null 2>&1

          then

          if ! apt-get install lxde -y --force-yes --fix-missing

          then

          exit_script lxde

          fi

          fi

          if ! dpkg -s ttf-arphic-uming >/dev/null 2>&1

          then

          if ! apt-get install ttf-arphic-uming -y --force-yes --fix-missing

          then

          exit_script ttf-arphic-uming

          fi

          fi

          if ! dpkg -s vnc4server >/dev/null 2>&1

          then

          if ! apt-get install vnc4server -y --force-yes --fix-missing

          then

          exit_script vnc4server

          fi

          vncserver <<EOF

          $password

          $password

          EOF

          else

          vncpasswd <<EOF

          $password

          $password

          EOF

          fi

          vncserver -kill :1

          sed -i 's/x-window-manager \&/startlxde \&/' $vnc_xstartup_config

          sed -i '/vncserver/d' $rc_local

          sed -i 's/^exit 0$/su root \-c "\/usr\/bin\/vncserver \-name my-vnc-server \-geometry 1280x800 \:1"\nexit 0/' $rc_local

          sleep 5

          vncserver

          }

          ####################Start###################

          #check lock file ,one time only let the script run one time

          LOCKfile=/tmp/.$(basename >LOCKfile=/tmp/.$(basename $0)<)

          if [ -f "$LOCKfile" ]

          then

          echo -e "3[1;40;31mThe script is already exist,please next time to run this script.\n3[0m"

          exit

          else

          echo -e "3[40;32mStep 1.No lock file,begin to create lock file and continue.\n3[40;37m"

          touch $LOCKfile

          fi

          #check user

          if [ $(id -u) !="0" ]

          then

          echo -e "3[1;40;31mError: You must be root to run this script, please use root to install this script.\n3[0m"

          rm -f $LOCKfile

          exit 1

          fi

          vnc_xstartup_config=/root/.vnc/xstartup

          vnc_sysconfig_vncservers=/etc/sysconfig/vncservers

          selinux_config=/etc/selinux/config

          rc_local=/etc/rc.local

          password=$(cat /dev/urandom | head -1 | md5sum | head -c 6)

          echo -e "3[40;32mStep 2.Begen to check the OS issue.\n3[40;37m"

          os_release=$(check_os_release)

          if [ "X$os_release"=="X" ]

          then

          echo -e "3[1;40;31mThe OS does not identify,So this script is not executede.\n3[0m"

          rm -f $LOCKfile

          exit 0

          else

          echo -e "3[40;32mThis OS is $os_release.\n3[40;37m"

          fi

          echo -e "3[40;32mStep 3.Begen to modify the source configration file and update.\n3[40;37m"

          update_source

          echo -e "3[40;32mStep 4.Begen to check and install vnc server.\n3[40;37m"

          case "$os_release" in

          redhat5|centos5|aliyun5)

          centos5_install_vnc_server $os_release

          ;;

          redhat6|centos6|aliyun6)

          centos6_install_vnc_server

          ;;

          centos7)

          centos7_install_vnc_server

          ;;

          ubuntu10|ubuntu1204|ubuntu1210|debian6)

          ubuntu_install_vnc_server

          ;;

          esac

          echo -e "3[40;32mInstall success.The vnc password is \"$password\",this script now exit!\n3[40;37m"

          rm -f $LOCKfile

          NC控制臺是一款非常實用的局域網遠程控制管理軟件,該軟件能夠幫助用戶對多臺電腦進行管理,支持密碼存儲,輸入密碼即可一鍵遠程,能夠實時檢測主機是否在線,同時還支持多種模式進行選擇,幫助各位更加輕松的進行TightVNC使用,有需要的小伙伴快來下載吧。

          來源:http://www.3h3.com/soft/282105.html

          軟件功能

          1、密碼存儲,一鍵遠程

          2、實時檢測主機是否在線

          3、添加備注

          4、自動縮放

          5、僅觀看模式

          6、根據名稱排序

          軟件特色

          說起局域網遠程,常用的有 VNC、radmin,還有我已經放棄的紅蜻蜓,當然還有很多我暫時未找到好工具。由于工作需求需要遠程Windows和Linux,所以就開始了VNC測試之路。

          VNC有很多版本:RealVNC、TightVNC、UltraVNC,經過測試最終選擇了UltraVNC

          原因:

          1、自動縮放模式下,UltraVNC清晰度是這幾款里面最高的。

          2、文件傳輸,TightVNC,有個很奇怪的問題,漢化版傳輸速度很不穩定,原版多次傳輸偶爾也會降速,UltraVNC則穩定的一批。由于UltraVNC每次遠程都需要選擇IP并輸入密碼,于是利用業余時間寫了一個控制臺。


          主站蜘蛛池模板: 综合久久一区二区三区 | 亚洲AV永久无码精品一区二区国产 | 日本中文字幕一区二区有码在线| 国产乱码伦精品一区二区三区麻豆 | 国产视频一区在线播放| 蜜桃视频一区二区| 中文字幕精品一区二区精品| 蜜臀AV在线播放一区二区三区| 亚洲AV无码一区二区一二区| 无码人妻精品一区二区蜜桃百度| 国产人妖视频一区二区| 亚洲制服丝袜一区二区三区| 国产福利一区视频| 国产精品视频第一区二区三区| 亚洲中文字幕久久久一区| 一区二区三区四区无限乱码| 国产精品视频一区二区噜噜| 欧美一区内射最近更新| 国产一区二区不卡在线播放| 精品一区二区三区四区在线播放 | 久久精品国产亚洲一区二区三区| 亚洲天堂一区二区| 精品免费AV一区二区三区| 午夜福利一区二区三区高清视频| 精品国产日韩亚洲一区在线| 亚洲欧洲∨国产一区二区三区| 日韩一区二区三区四区不卡| 精品一区二区三区高清免费观看| 久久久av波多野一区二区| 美女视频黄a视频全免费网站一区| 久久久精品人妻一区亚美研究所| 在线观看一区二区三区视频| 久久99精品波多结衣一区| 精品一区二区三区电影| 亚洲熟妇AV一区二区三区浪潮 | 亚洲一区二区三区首页| 国产精品区AV一区二区| 天堂一区人妻无码| 日韩AV无码久久一区二区| 久久国产精品免费一区二区三区| 精品国产免费一区二区|