I got a brand new MacBook Pro 13" 2016. I used to work on GNU/Linux for decades.

I don't want to change my working environment and life style. So I am going to connect to my work station remotely. This is why I need VNC.

VNC is a stand protocol. We can find some free/opensource VNC software for both client and server.

There are two I mainly use, tightvnc and tigervnc.

You can use any VNC client to connect to a VNC server. But some VNC producers promote their own products to give you better experience.

1. Install VNC client

VNC client option 1)

If you are on mac, you can go http://www.tightvnc.com to download a tightvnc client. It is developed using Java. So for a OS X user, you would need to install Java first.

VNC client option 2)

Or, you can download tigervnc http://tigervnc.org

2. Install VNC server on Linux server

For debian to install tightvncserver

`sudo apt-get install tightvncsever -y`

For tiger vnc server, you can go the site http://tigervnc.org , and download the latest server package for your system.

3. Settings on VNC server

3.1) create a VNC password using

`vncpasswd`

3.2 ) create a VNC startup file at path /home/yourname/.vnc/xstartup

`touch  /home/yourname/.vnc/xstartup  `

`chmod a+x /home/yourname/.vnc/xstartup`

3.3 ) edit it

#!/bin/sh
export XKL_XMODMAP_DISABLE= # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS #exec /etc/X11/xinit/xinitrc & [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey
vncconfig -iconic & x-terminal-emulator -geometry 80x24++ -title "$VNCDESKTOP Desktop" &
x-window-manager & #x-window-manager
#kde-session &
#/etc/X11/Xsession dbus-launch startxfce4
#startkde
#dbus-launch startkde #&

I used KDE before. But KDE crashed a lot. So I used xfce4 for instead as the desktop environment.

4. Start the VNC server

# for tightvnc server
tightvncserver -geometry 800x600 : # for tigervnc server
tigervncserver -geometry 800x600 : # to kill the server
tightvncserver -kill : # or
tigervncserver -kill :

5. Connect to the VNC server from your Mac

java -jar tightvnc-jviewer.jar

Then input the VNC password you ever stored.

Honestly, using tiger VNC client and tiger VNC server gives me the best VNC experience.

You can even watch videos using tiger VNC. Isn't it awesome?

Using VNC on a debian/Ubuntu server with a OS X Mac的更多相关文章

  1. Debian/Ubuntu server上安装安全更新

    原始链接:http://serverfault.com/questions/270260/how-do-you-use-apt-get-to-only-install-critical-securit ...

  2. 在Ubuntu Server上源码安装OpenERP 8.0,并配置wsgi和nginx运行环境

    原文: How to install OpenERP 8.0 Alpha on a fresh Debian / Ubuntu server. OpenERP的安装,可以有多种方式,通过添加源,到 h ...

  3. 实战Ubuntu Server上配置LXDE+VNC环境

    1.安装x-window 使用apt-get 安装 xorg sudo apt-get install xorg 如果提示以下内容,就说明需要update下源列表,使用sudo apt-get upd ...

  4. 配置我的Ubuntu Server记(包括桌面及VNC,SSH,NTP,NFS服务) good

    跟老板申请买了一台配置相对较好的计算机回来做GPU计算,当然,不能独享,所以做成服务器让大家都来用. 这篇日志用来记录配置过程中遇到的一些问题,以方便下次不需要到处谷歌度娘. 安装Server版系统 ...

  5. Ubuntu Server安装R和Rstudio(zz)

    Ubuntu Server安装R和Rstudio 发表于 技术天堂 2014-03-15 21:03 字数: 534 阅读量: 205 R是一个在科研领域很常用的工具,经常用R的年轻人或者经常上统计之 ...

  6. 服务器操作系统应该选择 Debian/Ubuntu 还是 CentOS?

    来自 http://www.zhihu.com/question/19599986 服务器操作系统应该选择 Debian/Ubuntu 还是 CentOS? 想选择一个 Linux 发行版作为服务器. ...

  7. Debian/Ubuntu手动编译安装MongoDB C++11驱动及驱动测试

    本文章仅限cnblogs网站内转载!请某网站自觉,遵纪守法,尊重原创! 系统环境情况: 最小化.无桌面环境 新安装的Debian 8 Server 版本操作系统虚拟机一台 手动编译安装MongoDB ...

  8. 为部署ASP.NET Core准备:使用Hyper-V安装Ubuntu Server 16.10

    概述 Hyper-V是微软的一款虚拟化产品,和VMWare一样采用的hypervisor技术.它已经被内嵌到Win10系统内,我们只需要进行简单的安装即可.但是前提是要确保你的机器已经启用虚拟化,可以 ...

  9. [原创]在HP DL380 G7服务器上部署基于Ubuntu Server 16.04 和 VirtualBox的云平台

    对于一线开发人员来说,一提到虚拟机平台,往往会让人联想到在价格昂贵的服务器上部署VMware vSphere之类软件来实现. 笔者作为一个资深码农,也是一直梦寐着在自己家中打造一个真正的家庭私有云,秒 ...

随机推荐

  1. 【a401】直线的交点数

    Time Limit: 1 second Memory Limit: 32 MB [问题描述] 平面上有n条直线,且无三线共点,问这些直线能有多少种不同的交点数. [输入格式] n(n≤20) [输出 ...

  2. .net remoting 抛出异常

    原文:.net remoting 抛出异常 本文告诉大家如何在使用 .net remoting 的时候,抛出异常. 所有在远程软件运行的类,如果需要传输到本地,都需要继承 MarshalByRefOb ...

  3. 关于javascript中的深拷贝问题

    一直在尝试为javascript找一个快捷可靠的对象深拷贝的方法,昨天突发奇想,把对象push到一个空数组里,然后对改数组通过concat()或slice()进行拷贝,然后取出数组的第一个元素复制给变 ...

  4. hudson绑定svn和vs2008实现持续构建

    作者:朱金灿 来源:http://blog.csdn.net/clever101 首先需要在服务器上安装以下工具: (1)hudson,我推荐从http://hudson-ci.org/downloa ...

  5. 将您的Cordova应用程序打包

    参考 https://github.com/MicrosoftDocs/cordova-docs/blob/master/articles/tutorial-package-publish/tutor ...

  6. cocos2dx-3.1加入cocosStudio参考库 libCocosStudio

    一个,创建好项目 两,在"解(项目名称)".选择现有项目 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd2dzbHVja3k=/fon ...

  7. Linux性能测试 free命令

    命 令: free功能说明:显示内存状态.语 法: free [-bkmotV][-s <间隔秒数>]补充说明:free指令会显示内存的使用情况,包括实体内存,虚拟的交换文件内存,共享内存 ...

  8. python 教程 第四章、 控制流

    第四章. 控制流 控制语句后面要加冒号: 1)    if语句 if guess == number: print 'Congratulations, you guessed it.' # New b ...

  9. 在微信浏览器里使用js或jquery实现页面重新刷新

    function refresh() { var random = Math.floor((Math.random() * 10000) + 1); var url = decodeURI(windo ...

  10. WPF 动态绑定listview的列内容

    Binding binding = new Binding(); binding.Path = new PropertyPath("State"); listViewState.D ...