Add host » History » Version 5
Anchi Cheng, 04/18/2013 04:33 PM
1 | 2 | Anchi Cheng | h2. Add the IP address and matching hostname of the microscope and digital camera computer in your host file on the main Leginon computer, and vice versa. |
---|---|---|---|
2 | 1 | Anchi Cheng | |
3 | 4 | Anchi Cheng | h3. Find out what python thinks the hostname is |
4 | 3 | Anchi Cheng | |
5 | Run the following in python command line: |
||
6 | <pre> |
||
7 | import socket |
||
8 | socket.gethostname() |
||
9 | </pre> |
||
10 | 1 | Anchi Cheng | |
11 | 5 | Anchi Cheng | If you'd like to shorten your linux hostname recognized by socket without the domain name, you may do this as root |
12 | 4 | Anchi Cheng | <pre> |
13 | hostname your_shorter_hostname |
||
14 | </pre> |
||
15 | 3 | Anchi Cheng | |
16 | 2 | Anchi Cheng | h3. Modify your host file on the linux Leginon computer to include the instrument host |
17 | 1 | Anchi Cheng | |
18 | 2 | Anchi Cheng | * On Linux, this host file is |
19 | 1 | Anchi Cheng | > /etc/hosts |
20 | |||
21 | 2 | Anchi Cheng | |
22 | 1 | Anchi Cheng | h3. The Linux main Leginon computer also needs to identify itself by its hostname registered on Microscope Windows computer. |
23 | |||
24 | 2 | Anchi Cheng | * On Window XP, this host file is |
25 | 1 | Anchi Cheng | > C:\\WINDOWS\system32\drivers\etc\hosts |
26 | |||
27 | * On Window NT, this host file is |
||
28 | > C:\\WINNT\system32\drivers\etc\hosts |