Add host » History » Version 2
Anchi Cheng, 06/14/2012 02:09 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 | 2 | Anchi Cheng | h3. Modify your host file on the linux Leginon computer to include the instrument host |
4 | 1 | Anchi Cheng | |
5 | 2 | Anchi Cheng | * On Linux, this host file is |
6 | 1 | Anchi Cheng | > /etc/hosts |
7 | |||
8 | |||
9 | 2 | Anchi Cheng | h3. The Linux main Leginon computer also needs to identify itself by its hostname registered on Microscope Windows computer. |
10 | |||
11 | * On Window XP, this host file is |
||
12 | 1 | Anchi Cheng | > C:\\WINDOWS\system32\drivers\etc\hosts |
13 | |||
14 | 2 | Anchi Cheng | * On Window NT, this host file is |
15 | 1 | Anchi Cheng | > C:\\WINNT\system32\drivers\etc\hosts |
16 | |||
17 | 2 | Anchi Cheng | h3. To confirm what python thinks the hosname is, run the following in python command line: |
18 | 1 | Anchi Cheng | <pre> |
19 | import socket |
||
20 | socket.gethostname() |
||
21 | </pre> |