Difference between revisions of "X11"

From PrattWiki
Jump to navigation Jump to search
m
 
(40 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Software|
+
{{Software
name=X11R6|
+
|name=X11
byline=Macintosh Windowing Application|image=|
+
|byline=Macintosh Windowing Application
caption=|
+
|image=[[File:X11.svg|150 px]]
version=|
+
|caption=
dlocation=Cannot download for 10.4 or greater - must have install disk|
+
|version=XQuartz 2.7.11
manufacturer=Apple|
+
|dlocation=Cannot download for 10.4-10.7 or greater - must have install disk for X11, but<br>10.6.3 and above can use [https://www.xquartz.org/ XQuartz]
webpage=[http://www.apple.com/macosx/features/x11/ Apple site]|
+
|cost=Free
label_color=|Color value_color=|}}  
+
|manufacturer=Apple
 +
|webpage=[https://www.xquartz.org/ XQuartz]
 +
|label_color=
 +
|value_color=
 +
|update=8/26/2019
 +
|}}  
  
'''X11R6''', or more commonly ''X11'', is a program provided with Macintosh computers that allows one total X Window System implementation for running X11-based applications.  X11 runs seemlessly with Aqua, so you may run Macintosh applications side-by-side with Linux programs, allowing for convenient interaction between platforms.
+
''X11'', is a program provided with Macintosh computers that allows one total X Window System implementation for running X11-based applications.  X11 runs seamlessly with Aqua, so you may run Macintosh applications side-by-side with Linux programs, allowing for convenient interaction between platforms. As of OS X 10.7 (Mountain Lion), X11 has been replaced with XQuartz.  In the page below, note that references to X11 and XQuartz are thus interchangeable.
 
 
{{QuandaPrep}}
 
  
 
== Usage at Duke ==
 
== Usage at Duke ==
The majority of Duke students use X11 to remotely access Linux machines in order to use university owned programs such as [[Matlab]].  Although, you may also use it just like [[Console]] for personal use on your Macintosh computer.
+
The majority of Duke students use X11 to remotely access Linux machines in order to use university owned programs such as [[MATLAB]].
  
 
== Installation ==
 
== Installation ==
  
[[Image:X11 install.png|thumb|300px|How to Install X11 off the install disc.]]
+
=== OS X 10.8 or later (and OS X 10.6.3 or later, really) ===
 +
For OS X 10.8 and beyond, X11 does not exist.  But have no fear, XQuartz is here.  Or, rather, [https://www.xquartz.org/ XQuartz is here].  You will need to install XQuartz if you have OS X 10.6-10.7 and have not installed X11 '''or''' if you have OS X 10.8 or later.
  
As of Mac [[OS X 10.4]], X11 is not pre-installed with the rest of the bundled Macintosh applications ([[iLife Suite]], [[Mail]], [[GarageBand]], etc)You must install it yourself.  In order to do this, insert your ''OS X Install Disc 1'', and select ''Optional Installs''.  If you do not have the disk, ask OIT or neighbors on your hall.
+
=== OS X 10.5 through OS X 10.7 ===
 +
For Mac OS X 10.5 and later, X11 is pre-installed with the rest of the bundled Macintosh applications.  But if for some reason you chose not to install X11 when installing the OS on your computer it can be found on your "Install Disc 1".
  
 
When you are prompted at the custom installation screen, check ''X11'' under applications and click continue.  Once the installation is finished, you may have to restart your computer.  Now you are ready to use X11!
 
When you are prompted at the custom installation screen, check ''X11'' under applications and click continue.  Once the installation is finished, you may have to restart your computer.  Now you are ready to use X11!
 +
 +
=== OS X 10.4 ===
 +
[[Image:X11 install.png|thumb|300px|How to Install X11 off the install disc.]]
 +
 +
In Mac OS X 10.4, X11 is not pre-installed with the rest of the bundled Macintosh applications (iLife Suite, Mail, GarageBand, etc).  You must install it yourself.  In order to do this, insert your ''OS X Install Disc 1'', and select ''Optional Installs''.  If you do not have the disk, ask OIT or neighbors on your hall.
  
 
== Creating a Remote Connection ==
 
== Creating a Remote Connection ==
In order to connect to a computer remotely, simply start up X11 (which may need to be [[X11R6#Installation|installed]]), and type:
+
In order to connect to a computer remotely, simply start up X11 (which may need to be [[X11R6#Installation|installed]]) or XQuartz (In 10.5, running these commands in Terminal will automatically open the X11 windowing system).  Select '''Applications->Terminal'''
 +
The '''first''' time you want to connect, you will need to tell your computer that connections are OK, so type
 
<pre>
 
<pre>
 
xhost +
 
xhost +
ssh -X -Y NetId@ComputerName.oit.duke.edu  
+
</pre>
</pre>where "<code>NetId</code>" is your Duke Net ID, and "<code>ComputerName</code>" represents a linux computer at Duke:
+
You should only need to type this once for your computer ever.
* Carr: <code>carr##.oit.duke.edu</code> (## = 1 to 16)
+
 
* Hudson: <code>hudson##.oit.duke.edu</code> (## = 1 to 21)
+
 
* Soc-Psych: <code>soc##.oit.duke.edu</code> (## = 1 to 16)
+
From that point on, to connect to a virtual Unix machine, type:
* Teer: <code>teer##.oit.duke.edu</code> (## = 1 to 45)
+
<pre>
 +
ssh -XY NetId@login.oit.duke.edu  
 +
</pre>where "<code>NetId</code>" is your Duke Net ID.
  
 
You should be prompted to answer yes or no to a question if it is the first time you are connecting to a computer, followed by your Net ID password.  Then, you should be able to use the X11 terminal just like a Linux terminal.  The "-X" is to override default ssh configurations that do not allow X11Forwarding.  The "-Y" means you are initiating a trusted connection, which is necessary for using graphical applications (gimp, matlab, gnobots2, etc.).  You may type <code>exit</code> at anytime or simply quit X11 to close the connection.
 
You should be prompted to answer yes or no to a question if it is the first time you are connecting to a computer, followed by your Net ID password.  Then, you should be able to use the X11 terminal just like a Linux terminal.  The "-X" is to override default ssh configurations that do not allow X11Forwarding.  The "-Y" means you are initiating a trusted connection, which is necessary for using graphical applications (gimp, matlab, gnobots2, etc.).  You may type <code>exit</code> at anytime or simply quit X11 to close the connection.
  
After you have done this once, all you have to type the next time you startup X11 is "<code>!ssh</code>", which will automatically remember the last address you connected to.
+
After you have done this once, all you have to type the next time you startup X11 is "<code>!ssh</code>", which will automatically remember the last address you connected to.  If you need to try a different machine, you can use the up and down arrows on the keyboard to go through various old commands you typed in; find an old ssh command, edit it, and then hit return.
  
 
== Troubleshooting ==
 
== Troubleshooting ==
Line 64: Line 77:
 
'''Disclaimer:''' This has not been verified by OIT.  But, it has worked for multiple people, and if you follow the instructions you should not inflict damage on your computer.
 
'''Disclaimer:''' This has not been verified by OIT.  But, it has worked for multiple people, and if you follow the instructions you should not inflict damage on your computer.
  
=Questions=
+
== Questions ==
Post your questions by editing the [[Talk:{{PAGENAME}}|discussion page]] of this document, then scrolling to the bottom and adding an asterisk, your question, and your signature (with four tildas, i.e. <nowiki>~~~~</nowiki>).  Someone will be around to check the questions and hopefully post answers.
+
Post your questions by editing the [[Talk:{{PAGENAME}}|discussion page]] of this document, then scrolling to the bottom and adding an asterisk, your question, and your signature (with four tildes, i.e. <nowiki>~~~~</nowiki>).  Someone will be around to check the questions and hopefully post answers.
  
== Links ==
+
== External Links ==
* [http://www.apple.com/macosx/features/x11/ Apple's Page for X11]
+
 
* [http://www.indiana.edu/~uitspubs/b017/ Basic Unix/Linux Commands]
+
== References ==
* [http://forums.macosxhints.com/forumdisplay.php?f=29 Unix - X11 Forum]
+
<references />
  
 
[[Category:Software]]
 
[[Category:Software]]
 +
[[Category:ECE 280]]
 +
[[Category:ECE 382]]
 +
[[Category:EGR 103]]
 +
[[Category:EGR 224]]
 +
[[Category:ME 344]]
 +
 +
[[Category:Semester Update]]

Latest revision as of 23:57, 26 August 2019

X11
Macintosh Windowing Application
X11.svg
Version XQuartz 2.7.11
Download Cannot download for 10.4-10.7 or greater - must have install disk for X11, but
10.6.3 and above can use XQuartz
Cost Free
Manufacturer Apple
Web Page XQuartz
Pundit Updated 8/26/2019


X11, is a program provided with Macintosh computers that allows one total X Window System implementation for running X11-based applications. X11 runs seamlessly with Aqua, so you may run Macintosh applications side-by-side with Linux programs, allowing for convenient interaction between platforms. As of OS X 10.7 (Mountain Lion), X11 has been replaced with XQuartz. In the page below, note that references to X11 and XQuartz are thus interchangeable.

Usage at Duke

The majority of Duke students use X11 to remotely access Linux machines in order to use university owned programs such as MATLAB.

Installation

OS X 10.8 or later (and OS X 10.6.3 or later, really)

For OS X 10.8 and beyond, X11 does not exist. But have no fear, XQuartz is here. Or, rather, XQuartz is here. You will need to install XQuartz if you have OS X 10.6-10.7 and have not installed X11 or if you have OS X 10.8 or later.

OS X 10.5 through OS X 10.7

For Mac OS X 10.5 and later, X11 is pre-installed with the rest of the bundled Macintosh applications. But if for some reason you chose not to install X11 when installing the OS on your computer it can be found on your "Install Disc 1".

When you are prompted at the custom installation screen, check X11 under applications and click continue. Once the installation is finished, you may have to restart your computer. Now you are ready to use X11!

OS X 10.4

How to Install X11 off the install disc.

In Mac OS X 10.4, X11 is not pre-installed with the rest of the bundled Macintosh applications (iLife Suite, Mail, GarageBand, etc). You must install it yourself. In order to do this, insert your OS X Install Disc 1, and select Optional Installs. If you do not have the disk, ask OIT or neighbors on your hall.

Creating a Remote Connection

In order to connect to a computer remotely, simply start up X11 (which may need to be installed) or XQuartz (In 10.5, running these commands in Terminal will automatically open the X11 windowing system). Select Applications->Terminal The first time you want to connect, you will need to tell your computer that connections are OK, so type

xhost +

You should only need to type this once for your computer ever.


From that point on, to connect to a virtual Unix machine, type:

ssh -XY NetId@login.oit.duke.edu 

where "NetId" is your Duke Net ID.

You should be prompted to answer yes or no to a question if it is the first time you are connecting to a computer, followed by your Net ID password. Then, you should be able to use the X11 terminal just like a Linux terminal. The "-X" is to override default ssh configurations that do not allow X11Forwarding. The "-Y" means you are initiating a trusted connection, which is necessary for using graphical applications (gimp, matlab, gnobots2, etc.). You may type exit at anytime or simply quit X11 to close the connection.

After you have done this once, all you have to type the next time you startup X11 is "!ssh", which will automatically remember the last address you connected to. If you need to try a different machine, you can use the up and down arrows on the keyboard to go through various old commands you typed in; find an old ssh command, edit it, and then hit return.

Troubleshooting

If you receive a message similar to the one below, you most likely logged in last year, and your "host key" file is outdated as Duke changed each computer's "RSA host key" since you last connected.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @  
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
''a-bunch-or-numbers-and-letters-and-colons''.
Please contact your system administrator.
Add correct host key in /Users/USERNAME/.ssh/known_hosts to get rid of this message.
Offending key in /Users/USERNAME/.ssh/known_hosts:5
RSA host key for DukeComputerName.oit.duke.edu has changed and you have requested strict checking.
Host key verification failed.

To fix this, you only have to delete a file in your directory. This is somewhat tricky though, since it is in a hidden folder. The following process should fix the problem:

  1. Make sure that you do not have an established remote connection. It should read something like res-IP-ADDRESS:~ USERNAME$ if you are on a wired connection on the Duke Campus.
  2. Type cd ~/.ssh to switch into the hidden folder.
  3. Type ls -a and there should be a file named known_hosts. If there isn't, you have a bigger problem-- Contact OIT for help.
  4. If the file is listed, and it is the only file listed, type rm known_hosts, close the window, open a new one, and try connecting as stated above.

Disclaimer: This has not been verified by OIT. But, it has worked for multiple people, and if you follow the instructions you should not inflict damage on your computer.

Questions

Post your questions by editing the discussion page of this document, then scrolling to the bottom and adding an asterisk, your question, and your signature (with four tildes, i.e. ~~~~). Someone will be around to check the questions and hopefully post answers.

External Links

References