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. C# keybd_event用法 模拟键盘输入

    最近有业务需求,需要模拟键盘输入,所以了解了一下C#中keybd_event函数的用法.该函数能够产生WM_KEYUP或WM_KEYDOWN消息,即可以触发键盘事件. 函数引用如下: [DllImpo ...

  2. numpy 辨异(四)—— np.repeat 与 np.tile

    >> import numpy as np >> help(np.repeat) >> help(np.tile) 二者执行的是均是复制操作: np.repeat: ...

  3. 自己动手编写一个VS插件(七)

    作者:朱金灿 来源:http://blog.csdn.net/clever101 继续开发VS插件.今天在添加ATL控件时出现一个"未能返回新代码元素"的错误,如下图: 解决办法是 ...

  4. javascript 获取上一周的时间

    <script type="text/javascript" language="javascript"> //获取系统时间 var LSTR_nd ...

  5. centos下载安装mysql,并设置远程访问

    思路 获取安装文件→配置好路径→安装→设置权限→处理常见的问题. 1.下载 先建议去官网看看https://dev.mysql.com/,然后根据自己的常识找到下载路径.同时也找到最新版本. 下载方式 ...

  6. .NET开发人员的瓶颈和职业发展

    现在社会比前几年浮躁了,越来越多的人抱怨薪水低,高薪工作不好找; 诚然这有CPI的压力,可是也有很多人没有认清自己的职业发展. 很多.net程序员个各种纠结,想拿高薪又拿不到,想提高又不知道怎么能提高 ...

  7. 人工模拟获取latch

    人工模拟获取latch 任意地dump一latches结构文件: SQL> oradebug dump latches 10 ORA-00074: no process has been spe ...

  8. XBMC 最新版本号错误

    1. Syntax error: "(" unexpected 改动 tools/depends下的makefile.include 将NDK_VER=0x9d

  9. 从源码角度看MySQL memcached plugin——0.大纲

    本系列文章介绍MySQL memcached plugin插件.剖析已经完成.先把链接弄好,内容会陆续补上. 大纲如下: 系统结构和引擎初始化(已完成) 线程模型和连接的状态机 containers表 ...

  10. Java异常处理错误

    Java异常处理错误 研究发现,在编译阶段的最佳时机错误,序之前.然而,编译期间并不能找出全部的错误,余下的问题必须在执行阶段解决.这就须要错误源通过某种方式把适当的信息传给某个接收者,该接收者知道怎 ...