PDA

View Full Version : [ubuntu] Install Ubuntu On Multiple (Identical) Machines?



csharpplus
September 26th, 2010, 09:59 PM
Hi All,

I am an Ubuntu newbie, and would greatly appreciate your help with the following:

I would like to set up Ubuntu on 20 identical laptops (IBM Thinkpad T60). What is the best / fastest way to do so?

Thanks,
cSharp.


P.S. all laptops are with the exact same hardware configuration, and empty hard drives (no OS is installed).

mörgæs
September 26th, 2010, 11:21 PM
I have not tried myself, but I guess Clonezilla will do the job:
http://www.clonezilla.org/

csharpplus
September 27th, 2010, 12:16 AM
Thank you very much for your help. I appreciate it.

mörgæs
September 27th, 2010, 12:21 AM
You are welcome. Liberating 20 machines from Windows in one go is an act worth helping :-)

csharpplus
September 27th, 2010, 12:31 AM
Thanks for your help.

By the way, can you help with some clues on how to connect all these machines in a network, so that I can (say) SSH into machine Y from machine X? is it complicated?

Thanks in advance!

amauk
September 27th, 2010, 12:35 AM
Just install openssh-server on all machines
then you can SSH in with
ssh user@ip_address

csharpplus
September 27th, 2010, 03:00 AM
Just install openssh-server on all machines
then you can SSH in with
ssh user@ip_address

Thank you, amauk, for your reply.

So I just install 'openssh-server' on all machines, connect them to a hub and that's it?
Is there any other configuration / anything that I need to take care of?

Also, instead of using the IP address of every machine, is there a way to establish a constant 'name' for every machine that will be part of the network, so that would be able to access every machine by its 'name' (something like 'SSH Machine1', 'SSH Machine2', 'SSH MachineN'...)?

amauk
September 27th, 2010, 03:30 AM
Also, instead of using the IP address of every machine, is there a way to establish a constant 'name' for every machine that will be part of the network
You'll need a DNS server for this
DNS translates a name to an IP address

If the machines are allocated IPs from a router using DHCP, then most decent routers also have a DNS server built-in as well
So yes, you will be able to reference machines by their machine name

csharpplus
September 27th, 2010, 03:40 AM
You'll need a DNS server for this
DNS translates a name to an IP address

If the machines are allocated IPs from a router using DHCP, then most decent routers also have a DNS server built-in as well
So yes, you will be able to reference machines by their machine name

Thanks amauk. I appreciate your help!

Can you recommend on a decent switch (say, 8-port) that is compatible with Ubuntu and would do the work (and will allow me to 'name' each machine)?

I do not need to share internet connection between the machines, as the goal is solely to be able to 'SSH' from one machine to another and to transfer files between the machines.

amauk
September 27th, 2010, 03:50 AM
switches cannot do DHCP (dynamically assigning IP addresses) or DNS (domain to IP translation), as they are not designed for that

You'll need a router for such high level functionality

Switches are quite low level devices, and only map IP addresses to physical MAC addresses

A computer can work as a router, if you don't have a separate router for internet access.
If you have a central server, then you can install a DHCP server and DNS server on it, and the central server will hand out IP addresses to clients and be able to translate machine names to IP addresses for all clients

csharpplus
September 27th, 2010, 04:11 AM
thanks amauk for your help!

The truth of the matter is, I don't have to have the 'naming' done. I just want the machines to have a 'constant' identification from the moment the system is set up.

so if I have 5 computers, I prefer that each of the 5 will have a unique identification so that when I do 'SSH x', 'x' would always refer to the same computer. and when I do 'SSH y', 'y' would always refer to the same computer (different than 'x').

possible to do so with a switch?

if not, what is the easiest, most simple way to achieve that? (I can assign one of the laptops to be a 'server', if this is a must). thank you!

amauk
September 27th, 2010, 04:46 AM
If you set each machine up with a static IP address, then it's guaranteed not to change
you can then be assured that
ssh user@192.168.1.10 will always ssh into the same machine

however, DHCP is more convenient (no need to manually configure the clients) and DNS eliminates the need to enter IP addresses for commands, and allows for nice human-readable names
ssh bob@bob-laptop

I'd have DHCP & DNS as an end goal and use static IPs as a quick, temporary solution

Are you sure you don't have a router already?
(for internet connection?)

As a side-note,
You can also manually set names to correspond to IP addresses by editing the /etc/hosts file on each client
This emulates a DNS server without actually having one - but it's a hack.
Any changes will mean updating /etc/hosts on all the clients - it's cumbersome and prone to error (mismatching info between clients)

csharpplus
September 27th, 2010, 02:48 PM
amauk,

thanks again for your detailed reply. am fortunate to learn from you.

yes, of course I have a router (for internet connection). yet, the router I have has only 4-ports, while I would need about 20 ports to connect the new machines (although, I do not need to connect them to the internet -- just want them to be able to 'ssh' one into the other etc).

since all machines will be used for the same purpose, I do think that you solution of:



You can also manually set names to correspond to IP addresses by editing the /etc/hosts file on each client
This emulates a DNS server without actually having one - but it's a hack.
Any changes will mean updating /etc/hosts on all the clients - it's cumbersome and prone to error (mismatching info between clients)


can work for me. especially because all machines will be numbered (1, 2, 3, ...., 20).
Should I then set each machine with a static IP address, and then edit these files?
can you explain more how to do the above? thank you.

amauk
September 27th, 2010, 03:03 PM
You using wired ethernet, rather than wireless?

Machines don't have to be directly connected to a router
you can daisy-chain a switch off of the router
The fact you have a router means you can most likely to DHCP


/---------\
| ROUTER |
\---------/
|
|
/---------\
| SWITCH |
\---------/
| | |
| | | /----------\
| | \------| LAPTOP 1 |
| | \----------/
| |
| | /----------\
| \--------| LAPTOP 2 |
| \----------/
|
| /----------\
\----------| LAPTOP 3 |
\----------/


However, if you want static IPs, see here
http://www.addictivetips.com/ubuntu-linux-tips/how-to-assign-static-ip-address-in-ubuntu-linux/

csharpplus
September 27th, 2010, 04:05 PM
amauk,

Thanks for all of your help.

Yes, I will be using wired ethernet (faster speed than wireless).

I have a question. Suppose I use a router (say, with 4-ports) as you suggest. can I connect to each one of the ports an 8-port switch (for a total of 32-ports)?

If so, can each of the machines access another using SSH?

amauk
September 27th, 2010, 04:56 PM
Suppose I use a router (say, with 4-ports) as you suggest. can I connect to each one of the ports an 8-port switch (for a total of 32-ports)?Yes


If so, can each of the machines access another using SSH?Yes

csharpplus
September 27th, 2010, 05:00 PM
great -- thank you.

amauk
September 27th, 2010, 05:07 PM
great -- thank you.no problem

csharpplus
September 27th, 2010, 09:19 PM
amauk,

thank you for all of your help!

I just thought of the following: there is a chance I might be interested to install condor as well. given your expertise, which 'configuration route' {DHCP / static IPs} would work best?

Would both be OK for condor?

amauk
September 27th, 2010, 10:10 PM
I've never used condor, but I don't see that DHCP or static IPs would make much difference

csharpplus
September 28th, 2010, 04:23 PM
Thanks!