View Single Post
Old 2016-01-16, 16:37   #10
chris2be8
 
chris2be8's Avatar
 
Sep 2009

22·3·167 Posts
Default

Quote:
Originally Posted by Batalov View Post
What I've gathered is that NVIDIA makes this non-automatable deliberately. I still have to type 'accept' every time I install
Code:
# ssh into a new EC2 node
sudo yum -y update
sudo yum -y install tcsh wget bc perl unzip gcc gcc-c++ openssh-clients diffutils gmp-devel kernel-devel-`uname -r`

wget http://us.download.nvidia.com/XFree86/Linux-x86_64/358.16/NVIDIA-Linux-x86_64-358.16.run
sudo sh ./NVIDIA-Linux-x86_64-358.16.run
Read up on Expect. I used the perl expect module to automate setting a new user's password. There's also a program called expect which is easier to call from a shell script (other parts of the user setup script were already in perl so that was the obvious choice in my case).

You only need to install expect on the system you are connecting to the new node from, it can automate responses to a SSH session.

Chris
chris2be8 is offline   Reply With Quote