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. NET Framework、.NET Core、Xamarin

    认识.NET Core 上篇介绍了.NET 新的生态环境:包括.NET Framework..NET Core.Xamarin三驾马车 其中.NET Framework是基于Windows平台专属的开 ...

  2. React中的state与props的再理解

    props可以看做是 property 的缩写的复数,可以翻译为属性,类似于HTML 标签的自定义属性.在大多数React教程里讲 state 和 props 主要的区别在于 props 是不可变的, ...

  3. .NET CORE的TagHelper智能提示

    VisualStudio2017下ASP.NET CORE的TagHelper智能提示不能使用的解决办法   之前在VS2017RC中就发现该问题,安装了依赖,但是前段一直点不出来asp-for,后来 ...

  4. Android设备与外接U盘实现数据读取操作

    现在越来越多手机支持OTG功能,通过OTG可以实现与外接入的U盘等USB设备实现数据传输.关于OTG,可以参考: http://blog.csdn.net/srw11/article/details/ ...

  5. SQL2008错误:当 MUST_CHANGE 为 ON (开)时,不能将 CHECK_POLICY 和 CHECK_EXPIRATION 选项设为 OFF (关)。

    假设出现这样的情况,第一个选择是: 在数据库用户管理中去掉了"强制password过期"! 假设把"强制实施password策略"的勾也去掉了,出现例如以下错误 ...

  6. WPF 窗体基类实现的体验及实现回车到下一控件

    原文:WPF 窗体基类实现的体验及实现回车到下一控件 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/jsyhello/article/details ...

  7. Leetcode 258 Add Digits数论

    class Solution { public: int addDigits(int num) { ) return num; == ? : num % ; } }; 就是数位根!

  8. WPF异常捕获,并使程序不崩溃!

    原文:WPF异常捕获,并使程序不崩溃! 在.NET中,我们使用try-catch-finally来处理异常.但,当一个Exception抛出,抛出Exception的代码又没有被try包围时,程序就崩 ...

  9. Linux 系统安装(5分钟)

    安装版本:CentOS 6.5 minimal 虚拟机工具:VMware 虚拟机配置:1核2线程 2G内存 50G硬盘 步骤: 一.虚拟机配置 1.打开VMware,创建新的虚拟机,选择典型安装: 2 ...

  10. 系统引导文件之 boot.ini(有很多参数)

    Windows NT类的操作系统,也就是Windows NT/2000/XP中,有一个特殊文件,也就是“BOOT.INI”文件,这个文件会很轻松地按照我们的需求设置好多重启动系统. “BOOT.INI ...