User Tools

Site Tools


howtos:admin:setup_server_from_scratch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:admin:setup_server_from_scratch [2011/03/08 19:35]
shona.weldon
howtos:admin:setup_server_from_scratch [2024/02/22 18:30] (current)
marcus.williams
Line 1: Line 1:
 ====== Setup whatIf? Servers ====== ====== Setup whatIf? Servers ======
 +**✅ CONTENT MIGRATED TO GURU ON FEBRUARY 22, 2024**
 +==== Services to install ====
 +  * inet deamon to support the whatif deamon for responding to the client software requests
 +  * samba for allowing drive mapping to the server
 +    * Is it installed? look in /etc/init.d and saw the smb script there. ​
 +    * start it as follows:
 +<​code>/​etc/​init.d/​smb start </​code>​
 +    * configure it:  So it's up and running now but we'll need to set up the config file which means deciding which users we want to configure on it. Let me know when you want to discuss.
  
 ==== Directories ==== ==== Directories ====
-Under the mount(s) ​point make directories whatif, users, models (owned by root:root with permissions 755). They can be kept on different mount points.+Under the mount point(s) make directories whatif, users, models (owned by root:root with permissions 755). They can be kept on different mount points.
  
 Make symbolic links from the file system root (ie /) to each of these directories Make symbolic links from the file system root (ie /) to each of these directories
 +
 +Make sure /tmp has a significant amount of disk space. ​ Start with 10G but if the objects in your model are large and you run out of memory while running this may need to be increased.
  
 ==== Server Accounts ==== ==== Server Accounts ====
 As root make server accounts: whatif, samm, tool with the following features: As root make server accounts: whatif, samm, tool with the following features:
-  * They are members of their own groups by the same name+  * Make whatif first and let it create it's own group 
 +  * Make samm and tool and make them members of the whatif group
   * The home directories are under /whatif   * The home directories are under /whatif
-  * The permissions should be 755+  * The permissions should be 775 
 +  * Get the .cshrc and .login scripts for that account and put them in the root of that account
  
 ==== Install severs ==== ==== Install severs ====
Line 83: Line 95:
 <​file>​ <​file>​
 0 3 * * * /​whatif/​samm/​progs/​checkMB -force <your MB name> | /​usr/​bin/​Mail -s "​checkMB report for `hostname`"​ <email address of admin> 0 3 * * * /​whatif/​samm/​progs/​checkMB -force <your MB name> | /​usr/​bin/​Mail -s "​checkMB report for `hostname`"​ <email address of admin>
-<\file>+</file>
  
 Use winSCP to put move crontab.txt into the home directory for the samm account Use winSCP to put move crontab.txt into the home directory for the samm account
Line 90: Line 102:
 <​code>​ <​code>​
 crontab crontab.txt crontab crontab.txt
-<\code>+</code>
  
 **Check for mailing capabilities ** Ask your IT department to enable the server to send mail so that you will get the emails from the  **Check for mailing capabilities ** Ask your IT department to enable the server to send mail so that you will get the emails from the 
Line 101: Line 113:
 <​file>​ <​file>​
 0 4 * * *  /​whatif/​whatif/​progs/​cleanWhatifAll 0 4 * * *  /​whatif/​whatif/​progs/​cleanWhatifAll
-<\file>+</file>
  
 Use winSCP to put move crontabRoot.txt into the home directory for the root account Use winSCP to put move crontabRoot.txt into the home directory for the root account
Line 108: Line 120:
 <​code>​ <​code>​
 crontab crontabRoot.txt crontab crontabRoot.txt
-<\code>+</code> 
 + 
 +==== Trouble shooting whatif deamon and running SAMM==== 
 +If you can login with samm as user say modelExample then do the followig 
 + 
 +===check the whatif deamon:​=== 
 +use a ssh connection like: 
 +<​code>​ ssh -p 8000 whatif@iseee </​code>​ 
 + 
 +then with a putty session on the server iseee do 
 +<​code>​ ps -ea | grep whatif </​code>​ 
 + 
 +If there is a process then it's fine if not then the whatif service is likely not properly configured. 
 + 
 +===check the permissions on /tmp:=== 
 +The whatif deamon and samm will try to write to /tmp
  
 +Check the permissions on /tmp they should be: 
 +<​code>​ drwxrwxrwt. ​ 12 root root 20480 May 13 22:31 tmp </​code>​
  
 +if they aren't use this command to make them so
 +<​code>​ chmod 1777 tmp </​code>​
howtos/admin/setup_server_from_scratch.1299612937.txt.gz · Last modified: 2011/03/08 19:35 by shona.weldon