Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
CODA Setup
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Setting Up the Computer== ===BIOS Settings=== 1. Enable the BIOS preference to boot from an external drive. <span style="color:blue">'''Hint:''' Some older machines may not be able to boot from a USB Drive, instead a disc will be needed. </span> 2. Make sure that the USB ports are visible ===Downloading CentOs & Preparing the Computer=== ====STEP 1: Installation==== i. Click Next on the Centos logo page ii. Chose Basic Storage Devices, then click next iii. Chose your installation preference, then click next iv. Chose a hostname (name of computer) v. Select the time vi. Make a root password vii. Now select which type of installation you would like viii. Select your hard drive to install target devices ix. Then click on boot loader option (small button top left corner in the right window) x. Writing storage configuration to disk, select write changes xi. After some time, select which installation you would like: Desktop is ideal for this setup xii. Then wait for the installation to complete ====STEP 2: Create First User==== i. First user account is going to be the bash shell analysis account (i.e. root, geant4, etc.) ii. Skip the full name portion iii. Select date and time <span style="color:red">'''Possible Issue:''' An error may occur upon selecting the time (CentOs). It is okay to ignore this message for our purposes.</span> iv. Click finish on the kdump screen ====STEP 3: Installing Libraries and Updating==== i. Turn on the connection to the internet 1. Go to system, preferences, network connections (GUI) 2. Double click System eth0 3. Select Connect Automatically and Available for all Users 4. Click Apply 5. Enter root password to save the information ii. Turn off screen saver (Optional) 1. Go to system, preferences, screensaver 2. Uncheck the lock option when the computer goes to the screensaver 3. Change the elapsed time for the screensaver (~ 40 minutes) 4. Click Close iii. Open new shell (terminal) <span style="color:blue">'''Hint:''' Make sure that you are super user, connected to the internet, and are in the home directory </span> 1. $ su 2. $ <root password> <span style="color:green">'''Link:''' [[Setup Files#Library Script|Library Script]]</span> 3. Run the libraries script : # ./lib32_install.sh 5. <span style="color:red"> '''Possible Issue:''' DATABASE DISK IMAGE IS MALFORMED. Normally this can be ignored for our purposes.</span> 6. Once the script is done installing: # yum –y update 7. # exit ====STEP 4: Create Second User Account (tcsh)==== i. Go to system, administration, users and groups (GUI) ii. Enter the root user password iii. Click Add User iv. Enter a username v. No need to enter a full name vi. Enter a password vii. Change login shell to tcsh ====STEP 5: Network Settings==== i. Go to system/preferences/network connections (GUI) ii. Double click System eth0 iii. Click ipv4 settings tab iv. Method Dropdown: Change from DHCP to manual v. Press add button under Addresses <span style="color:blue">'''Hint:''' This network setup is meant for a CNU configuration.</span> vi. Enter the address: 137.155.2.XX, netmask: 255.255.255.0, and gateway for your network (may need to contact administrator):137.155.2.4 vii. Enter the DNS server addresses: 137.155.2.50, 137.155.2.14 (may need administrator) viii. Enter the search domain: pcs.cnu.edu (may need administrator) ix. Click apply x. Enter root password ====STEP 6: Hosts File Changes==== i. $ su ii. $ <root password> iii. # vi /etc/hosts iv. Within the file add this line: <ip address> <domain name> <computer name> 1. Go to a new line in the file 2. Example: 137.155.2.58 jlabvme.pcs.cnu.edu jlabvme 3. Both computers need to be in the hosts file (i.e. jlabdaq & jlabvme) v. Save the file and exit vi. # exit vii. $ ssh root@jlabvme viii. $ <enter password for root@jalbvme> ix. # vi /etc/hosts <span style="color:green">'''Link:''' [[Setup Files#Hosts File|Hosts File]]</span> x. Within the hosts file add this line: <ip address> <domain name> <computer name> xi. Save the file and exit xii. #exit xiii. Any computers that you wish to ssh into, make sure that they are added to the hosts file. ====STEP 7: Turn Off Firewall (Otherwise add exceptions for the specific machines)==== i. Go to system/administration/firewall (GUI) ii. Enter root password iii. Click Disable iv. Click Apply (Look top left corner) ====STEP 8: SSH Without Password==== i. Login to CODA Account ii. We are now switching so that all permissions are set to our CODA user account. iii. Open a new shell (terminal) iv. $ su v. $ <root password> vi. # /sbin/service sshd start vii. # exit viii. <span style="color:blue">'''Hint:''' Make sure you are in the home directory: /home/<username></span> ix. $ ssh-keygen –t rsa x. $ <Press enter three times> xi. $ cat .ssh/id_rsa.pub | ssh root@jlabvme ‘cat >> .ssh/authorized_keys’ xii. type yes xiii. $ ssh root@jlabvme “chmod 700 .ssh; chmod 640 .ssh/authorized_keys” xiv. $ ssh root@jlabvme xv. # exit xvi. Back on the CODA user account: $ ssh-add <span style="color:green">'''Link:''' If help is needed: http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/</span>
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)