在AWS Ubuntu上安装和配置VNC并通过SSH隧道连接

在AWS Ubuntu上安装和配置tightvncserver, 并通过SSH隧道进行了远程桌面连接,记录下实验流程。 1,安装tightvncserver 由于已经安装了 xfce4 xfce4-goodies,所以此处不需要安装。以下指令安装tightvncserver。 sudo apt-get update sudo apt-get install tightvncserver 2,设置vncserver的密码,登录使用 如果没有设置用户名和密码,需要设置,我在先前的实验中已经设置了用记名ubuntu和密码,所以我这里不需要设置。设置用户名密码具体参见:连接AWS EC2 Linux instance Ubuntu远程桌面 设置vncserver的密码,这里密码最长为8个字符,设置密码的同时,系统对vncserver时行了相应的设置。 ncserver 3,设置VNC服务器 主要是设置VNC服务器启动时的执行的指令,VNC开始启动时,自动启动一个服务器例程,使用显示端口5901,VNC识别为 :1,同理新开的端口为:2,:3,依此类推,端口使用为5900+x。 要配置5901设置,首先停止在端口5901上运行的例程, vncserver -kill :1 配置 xstartup 文件,首先备份原始的文件以防以后用到, mv ~/.vnc/xstartup ~/.vnc/xstartup.bak 创建一个新的xstartup 文件, emacs ~/.vnc/xstartup 在文件中加入以下三行内容, #!/bin/bash xrdb $HOME/.Xresources startxfce4 & 第一行指令xrdb $HOME/.Xresources告诉GUI的框架读取服务器的.Xresources文件,.Xresources是用户改变图形桌面设置,例如终端颜色,字符指针风格和字体等。 第二行指令告诉服务器启动XFCE,能够通过相应图形界面软件管理服务器。 修改为可执行, sudo chmod +x ~/.vnc/xstartup 4,设置VNC服务文件 为了更好地控制VNC服务器,将其配置成Ubuntu的VCN服务,更加方便地进行start,stop, […]

Nomachine AWS RHEL7 & Ubuntu Remote desktop connection

I have tried the Nomachine on both AWS RHEL7 and Ubuntu, it seems the results are not good. Noted down the procedure, 1, install the nomachine on RHEL7 Have downloaded “freenx-server-0.7.3.tar.gz”, “nomachine_5.1.26_1_x86_64.rpm” and “nomachine-enterprise-server-evaluation_5.1.26_2_x86_64.rpm”, the enterprise server version is with one month evaluation. All the three installation with similar result, below is the log, and […]

Teamviewer install on AWS RHEL7 and Ubuntu

Tried to install Teamviewer on AWS RHEL 7 and Ubuntu, with the fail result, note down the procedure, 1, download Teamviewer Linux version You can download the Teamviewer Linux version by this Link. For RHEL version (teamviewer_11.0.57095.i686.rpm) and Ubuntu version (downloaded both teamviewer_11.0.57095_i386.deb and teamviewer_11.0.57095_amd64.deb). 2, install Teamviewer Install the teamviewer on AWS RHEL 7 […]

连接AWS EC2 Linux instance Ubuntu远程桌面

创建了AWS EC2 Linux instance Ubuntu,记录下通过本地Windows远程访问AWS Ubuntu桌面的方法。 1, 更新,升级和安装准备 sudo apt-get update sudo apt-get upgrade 2,配置sshd_config允许密码访问 sudo emacs /etc/ssh/sshd_config 将 PasswordAuthentication 选项设置为yes # Change to no to disable tunnelled clear text passwords #PasswordAuthentication no PasswordAuthentication yes 3,重启SSH伺服让配置生效 sudo /etc/init.d/ssh restart 4,为用户名ubuntu设置密码 sudo –i passwd ubuntu su ubuntu 5,为Ubuntu Linux Instance安装桌面功能 大概需要十多分钟, export DEBIAN_FRONTEND=noninteractive sudo -E apt-get […]

Samba on Ubuntu problem smb_panic()

Try to use Samba on Ubuntu in the VirtulBox, access from Windows always failed, Check the Samba log: tail /var/log/samba/log.lenovo-xhl-pc Result as below (partially copy), ../source3/lib/util.c:801(smb_panic_s3) smb_panic(): calling panic action This command resolved the problem, $ apt-get install –reinstall libsmbclient libsmbclient-dev libtevent0 libtalloc2 It seems that the new samba package poorly specified the dependencies it […]