Project

General

Profile

Add host » History » Version 1

Anchi Cheng, 06/14/2012 02:04 PM

1 1 Anchi Cheng
h2. Add the IP address and matching hostname of the microscope computer in your host file on the main Leginon computer, and vice versa.
2
3
Modify your host file to include the host (Create it if not exist).
4
5
*  On Linux, this file is
6
> /etc/hosts
7
8
9
*  On Window XP, this file is
10
> C:\\WINDOWS\system32\drivers\etc\hosts
11
12
13
*  On Window NT, this file is
14
> C:\\WINNT\system32\drivers\etc\hosts
15
16
h3. The Linux main Leginon computer also needs to identify itself by its hostname registered on Microscope Windows computer.
17
18
To confirm what python thinks the hosname is, run the following in python command line:
19
<pre>
20
import socket
21
socket.gethostname()
22
</pre>