laptopinstall.md
... ...
@@ -8,242 +8,3 @@ We have a GUI-based installation client for MacOS that allows software to be sel
8 8
9 9
- [Information on installation of our command-line tools for MacOS and Linux](client_CLI_install).
10 10
11
-### Script-based installation tools
12
-
13
-While we recommend the software tools above, if you would like to install your software from a local source, there are script-based tools in the SBGrid programs tree that will create a copy of the software on your local hard disk.
14
-
15
-The 'sbgrid-laptop' script allows you to select individual applications from the software distribution for installation on your laptop. By default only the latest version of the selected applications will be installed. The 'localsync' script allows you to copy an entire operating system software branch to your local machine. This script can be used on laptops, but each branch is quite large in terms of disk space usage. Finally, the 'sbgrid-sync' script will allow you to install software from SBGrid servers. This script is deprecated in favor of the better CLI tools above and its use is discouraged.
16
-
17
-
18
- * *laptop-sync*
19
- - This script installs software from your own **local** installation.
20
- - This script requires an account on a local machine with access to the SBGrid softare collection.
21
- - Only latest versions will be installed.
22
-
23
-
24
- * *localsync*
25
- - This script installs software from your own **local** installation.
26
- - This script requires an account on a local machine with access to the SBGrid softare collection.
27
- - All versions of the software will be installed.
28
-
29
-
30
- * *sbgrid-sync (deprecated)*
31
- - This script installs software from SBGrid's servers.
32
- - an account on SBGrid's server is required.
33
- - THIS INSTALL METHOD WILL NO LONGER BE SUPPORTED IN A FUTURE RELEASE.
34
-
35
-
36
-### laptop-sync
37
-You can create a customized local installation of the software using the ''sbgrid-laptop'' script located at ''/programs/share/bin/sbgrid-laptop''. This script requires you to have an SSH login to a computer that has access to an SBGrid software installation and will let you specify which packages you want to install.
38
-
39
-```
40
- sbgrid-laptop: a tool for creating a local installation of the
41
- SBGrid software on a laptop.
42
-
43
- Usage: sbgrid-laptop [-ituv] [-e list|config]
44
-
45
- -d Debug mode creates a log file for troubleshooting purposes.
46
- -e [list|config]
47
- Edit the software download list.
48
- -i Initial set up and installation of the SBGrid software.
49
- -s Re-run SSH key set up process.
50
- -t Test your current configuration.
51
- -u Update an existing installation using the current
52
- configuration.
53
- -v Verbose option for the file transfer.
54
-```
55
-
56
- You need an SSH login to a machine with the SBGrid software installed
57
- to use this script. The script will create an SSH key and run an SSH
58
- agent process to handle authentication for the file transfers.
59
-
60
-Copy the script the machine you want to install the software on, and then run it in install mode: ''./sbgrid-laptop -i''. Follow the prompts on the screen to create your configuration file, your software installation list and to enable logins using an SSH key for authentication.
61
-
62
-
63
-### localsync Sync Script
64
-There is a script in the programs tree that can be used to copy the appropriate branch from a shared installation to your laptop or workstation.
65
-
66
-Copy /programs/share/bin/localsync from the machine that has the software to your home directory on the standalone machine:
67
-
68
-
69
- scp your.server.name:/programs/share/bin/localsync ~/
70
-
71
-
72
-Then run the script like this:
73
-
74
- chmod 755 ~/localsync
75
- ~/localsync yourusername@your.server.name
76
-
77
-
78
-The script will prompt you for your sudo (admin) password in order to create the programs directory, and then it will prompt you for your login password to the server that hosts your programs installation.
79
-
80
-Here is an example run on my workstation:
81
-
82
-```
83
- $ ./localsync bene@developer.sbgrid.org
84
- Running 'sudo mkdir /programs && sudo chown bene /programs'
85
- [sudo] password for bene:
86
- Copying the software from the i386-mac branch on your server to your local
87
- hard disk. Enter your ssh login password below for bene@developer.sbgrid.org:
88
-
89
- receiving file list ...
90
-```
91
-
92
-This will copy the entire branch for your architecture to your local hard drive. For the OS X branch, this will use approximately 100 GB of disk space.
93
-
94
-You should use a network cable for the initial download, since the download is fairly large. Subsequent runs of the 'localsync' script are differential; they will only copy new or changed files, so they can be run over a wireless connection. The script can be run at any time to make your local installation match the installation on your local server.
95
-
96
-### Sharing a 'localsync' Software Installation without NFS
97
-
98
-While we recommend that sites export their software installation via NFS to their workstations, it is possible to use rsync to copy the master installation to each workstation. This method has the drawback that it requires manual intervention on the part of the local sysadmin, and updates will not be instantaneous or simultaneous for all machines.
99
-
100
-On each client machine, you'll need an 'sbgrid' user. That user will have a passphraseless ssh key that lets it log into the machine that hosts your primary installation. Each client machine will have a cron job for that sbgrid user that runs at 2 AM that will sync the programs from the master installation to the client machine.
101
-
102
-Here is a basic command run down. 'server1' holds the programs installation and 'client1' is what will be connecting to it.
103
-
104
- * Login as root/administrator on client1
105
- * Create the 'sbgrid' user on client1
106
- * Check the free space on /.
107
- * If there's enough free space, set up the programs directory:
108
-
109
-
110
- mkdir /programs
111
- chown -R sbgrid:sbgrid /programs
112
-
113
- * If there is not enough free space on the root volume, you'll need to find space on a local volume.
114
-
115
- * Login as 'sbgrid' on client1.
116
- * Create the passphraseless ssh key:
117
-
118
-
119
- ssh-keygen -d
120
-
121
-
122
-(hit enter to confirm default file location, no passphrase, etc)
123
-
124
- * Copy the ssh key to server1:
125
-
126
-
127
- cat ~/.ssh/id_dsa.pub | ssh server1 'cat - >> ~/.ssh/authorized_keys'
128
-
129
- * Copy the localsync script from server1 to client1. From client1:
130
-
131
-
132
- scp sbgrid@server1:/programs/share/bin/localsync .
133
-
134
-
135
-(May prompt to accept the host key. If you can't login without a password, the ssh key stuff above has failed, and you'll need to troubleshoot that.)
136
-
137
- chmod 755 localsync
138
- ./localsync sbgrid@server1
139
-
140
-(This will take a while depending on the speed of the machines/network.)
141
-
142
- * Test the installation:
143
-
144
-
145
-tcsh
146
-
147
- source /programs/sbgrid.cshrc
148
-
149
-or
150
-bash
151
-
152
- source /programs/sbgrid.shrc
153
-
154
-
155
-(You should get a message like this: )
156
-```
157
- Welcome to SBGrid!
158
-
159
-********************************************************************************
160
- Your use of the applications contained in the /programs directory constitutes
161
- acceptance of the terms of the SBGrid License Agreement included in the file
162
- /programs/share/LICENSE. The applications distributed by SBGrid are licensed
163
- exclusively to member laboratories of the SBGrid Consortium.
164
-
165
- To hush this license message, run 'touch ~/.agree2sbgrid'.
166
-
167
-********************************************************************************
168
- Please submit bug reports and help requests to: `<bugs@sbgrid.org>` or
169
- `<http://sbgrid.org/bugs>`
170
- This installation last updated: 20110411
171
-
172
-********************************************************************************
173
- Total time to initialize: 1 second(s)
174
-```
175
-
176
- * Add a cronjob for the updates. As the 'sbgrid' user on client1:
177
-
178
-
179
- echo "0 2 * * * ~/localsync sbgrid@server1" | crontab
180
-
181
- * Check the cronjob:
182
-
183
-
184
- crontab -l
185
-
186
-You're done!
187
-
188
-
189
-### sbgrid-sync (DEPRECATED)
190
-
191
-This script can be found in the programs installation at */programs/share/bin/sbgrid-sync*.
192
-
193
-```
194
-sbgrid-sync: install or update the SBGrid Consortium software
195
- collection on your laptop or workstation.
196
-
197
-You will need a Consortium UNIX account to install and update your
198
-installation. If you don't have an account or don't remember your password,
199
-please email <accounts@sbgrid.org> for assistance.
200
-
201
-This script will create an SSH key and run an SSH agent process to handle
202
-authentication for the file transfers. Unless otherwise configured only the
203
-default version of the software titles will be installed.
204
-
205
-Usage: sbgrid-sync [-iesudt]
206
-
207
-Install/Configure Options:
208
-
209
- -i Initial set up and installation of the SBGrid software.
210
- -e Edit the software download list.
211
-
212
-Update Options:
213
-
214
- -u Update an existing installation using the current
215
- configuration.
216
-
217
-Troubleshooting Options:
218
-
219
- -d Debug mode creates a log file for troubleshooting purposes.
220
- -t Test your current configuration.
221
-
222
-```
223
-
224
-Once an account has be created at SBGrid, the software can be installed with for a username (at SBGrid) and a path for the software installation. the -i flag. The user will be prompted with a list of software to add.
225
-
226
-![sync software list ](images/sbgrid-sync_software_list.png "sbgrid-sync software list")
227
-
228
-```
229
-| We need to create a list of software you want included in the local
230
-| installation. We will start with a list of all the software titles.
231
-| Remove the leading hash mark (#) to _include_ a software title.
232
-```
233
-Any titles NOT preceded with a '#' character will be installed.
234
-```
235
-| Save and _QUIT_ the text editor after making your changes. If you are
236
-| using TextEdit on a Mac, you must completely quit (Apple-Q) the
237
-| application to continue.
238
-```
239
-Once the editor has quit, software installation will start.
240
-
241
-```
242
-| Creating an rsync include list to download files.
243
-| Running rsync to download the latest software.
244
-```
245
-Once installation is completed, open a new terminal and
246
-
247
- source /programs/sbgrid.shrc
248
-
249
-to get started.
workstation_setup.md
... ...
@@ -5,14 +5,11 @@
5 5
## Linux
6 6
Information on configuring 3D stereo can be found [here](stereo)
7 7
8
-* All Linux machines need installations of a recent version (6.17+) of csh/tcsh. Red Hat Enterprise Linux 6 and other recent distributions usually have an up to date version. There are RPMs for Red Hat/CentOS/Scientific Linux 5.x in the software tree in the architecture specific directories:
9
-
10
- /programs/i386-linux/system/RPMs
11
- /programs/x86_64-linux/system/RPMs
8
+* All Linux machines need installations of a recent version (6.17+) of csh/tcsh. Red Hat Enterprise Linux 6 and other recent distributions usually have an up to date version.
12 9
13 10
* SELinux must be disabled.
14 11
15
-* 64-bit machines need a number of 32-bit compatibility packages installed **even when using the 64-bit software branch**. This is due to a number of binary-only and legacy packages that are only available as 32-bit applications. Additional fonts for Tcl/Tk, Motif and Xview applications are also encouraged.
12
+* 64-bit machines need a number of 32-bit compatibility packages due to a number of legacy packages that are only available as 32-bit applications. Additional fonts for Tcl/Tk, Motif and Xview applications are also encouraged.
16 13
17 14
Packages for RHEL 6, and 7 and compatible machines:
18 15
... ...
@@ -33,7 +30,3 @@ In addition to the above, on RHEL8, CentOS8 and similar distributions, you will
33 30
34 31
* * X11 is no longer included by Apple, and you'll need to install the latest Xquartz version offered on the [MacOSForge site](https://www.xquartz.org/) to run X11-based applications.
35 32
36
-## Laptops
37
-
38
-* You can create a local installation to take along with you.
39
-http://www.sbgrid.org/wiki/laptopinstall