Macintosh XCode 共享
我有一台 MacBook Pro,我想与位于互联网另一端的一些朋友分享它。他可以使用互联网。
现在我希望他能够访问我的整个 Macbook(大多数情况下是 XCode),这样他就可以使用我的 MacBook 在他的位置进行开发。现在我想问一下,有没有一种方法可以让我们都使用具有两个虚拟操作系统(一个给我,一个给他)的相同MacBook,而不影响彼此的隐私?
是否可以在超过 1 个用户之间共享 MacBook?我指的不是 Windows 中的远程桌面。
I got a macbook pro and I want to share it with some of my friend located at the other side of internet. He can use Internet.
Now I want him to give access to my whole Macbook (XCode for most) so he can do developments at his location using my macbook. Now I need to ask is there a way we can both utilize the samme macbook having two virtual OS (one for me and one for him) without affecting each others' privacy?
Is it possible to share the macbook across more than 1 user? I don't mean Remote Desktop like of thing in Windows.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
目前尚不清楚“Xcode 共享”是否意味着共享源代码并分摊开发工作(即,您的朋友在互联网的另一端拥有自己的带有 Xcode 的 Mac),或者是否意味着您需要他实际使用 Xcode通过互联网在您的机器上。
如果您的意思是共享源代码,那很简单:Xcode 内置了版本控制控制。使用它。或者您可以使用许多其他常用于此用途的代码控制系统之一。颠覆就是其中之一。 有很多。
如果“Xcode共享”是指通过互联网进行某种形式的屏幕共享,您可以执行以下操作:在 Mac 上设置一个无权访问您帐户的新帐户。这不是防弹的,但如果你们是“朋友”,就必须有一定的信任。要设置新帐户,请转至系统偏好设置/帐户。如果您愿意,您还可以在您的帐户上使用 FileVault。然后允许您的朋友通过 VNC 连接到您创建的帐户。
我认为通过互联网共享屏幕来运行 Xcode 的性能会让你们在沮丧地扯掉最后一根头发后都秃顶。它会很慢并且分辨率低。当您的朋友正在使用计算机时,您不能使用该计算机。你的朋友将会有一个糟糕的开发环境。
让您的朋友购买二手 Mac,使用 Subversion 或 CVS,并保存你的头发...
另一种可能性:限制你朋友的努力仅限于文本,并使用 ssh 和 gcc 。然后,您可以使用 Xcode 将他的努力融入到整个项目中。
It is unclear by "Xcode sharing" whether you mean share the source code and split development efforts (ie, your friend has his own Mac with Xcode at the other end of the Internet) or whether you mean that you need him to actually use Xcode on your machine through the Internet.
If you mean share the source code, that is easy: Xcode has versioning control built in. Use that. Or you can use one of the many other code control systems that are common for this use. Subversion is one. There are many.
If by "Xcode sharing" you mean some form of screen sharing over the Internet, you can do this: set up a new account on your Mac that that does not have access to your account. This is not bullet proof, but if you are "friends" there must be some trust there. To set up a new account, go to System Preferences / Accounts. You can also use FileVault on your account if you wish. Then allow your friend to VNC to the account that you created.
I think the performance of screen sharing over the Internet to run Xcode will leave you both bald after you have torn your last hairs out in frustration. It will be slow and low res. You can't use the computer while your friend is using it. You friend will have a lousy development environment.
Have your friend buy a used Mac, use Subversion or CVS, and save your hair...
Another possibility: Limit your friend's efforts to text only, and use ssh and gcc. You then can roll his efforts into the overall project using Xcode.
您可以给他 ssh 访问权限,但他无法使用 Xcode。您可以为他提供 VNC 访问权限,但这是您不想要的远程桌面之类的东西。此外,使用 VNC,您无法同时使用计算机。
至于隐私,你可以给他自己的用户帐户。但是您必须找到某种方法来配置 VNC,以便它在登录窗口中运行。我不确定如何做到这一点或是否可以做到,但这听起来应该是可能的。
您将在系统偏好设置的共享窗格下找到 VNC(“屏幕共享”)和 SSH(“远程登录”)选项。
You could give him ssh access, but then he couldn't use Xcode. You could give him VNC access, but that's the Remote Desktop like of thing that you didn't want. Also, with VNC, you couldn't both use the computer at the same time.
As for privacy, you can give him his own user account. But you'd have to find some way to configure VNC so it's running at the login window. I'm not sure how to do this or if it can be done, but it sounds like something that should be possible.
You will find the options for VNC ("Screen Sharing") and SSH ("Remote Login") under the sharing pane of System Preferences.
是的,
这种共享可以通过通过 SSH 建立隧道的 VNC 实现。只需通过 SSH Google VNC,您就会获得大量教程。我已经在局域网上尝试过了,效果很好。
通过互联网,如果您没有静态外部 IP,并且需要在家庭路由器上端口转发 SSH 端口(即端口 22),则需要动态 DNS 服务。
我过去曾为此使用过 TeamViewer,但它有一个大问题,当我们将按钮拖到代码区域以链接它们并生成代码时,xcode 中应该显示一条蓝线来描述链接,但它没有显示这一点由于某种原因通过 TeamViewer 完成时出现蓝线并且无法建立该链接。
Yes,
This kind of sharing is possible via VNC which is tunneled through SSH. Just Google VNC over SSH and you will get lots of tutorials. I have tried this on a lan and it works well.
Over the internet you need to have a Dynamic DNS service if you do not have a static external IP and you need to port forward the SSH port(i.e. port 22) on your home router.
I have used TeamViewer in the past for this but there is a BIG problem with it, when we drag buttons to the code area to link them and generate code a blue line should show up in xcode depicting the link, but it does not show this blue line when done via TeamViewer for some reason and that link cannot be made.