Make your own virtual space: Difference between revisions

From genomewiki
Jump to navigationJump to search
(First draft of file, need to wikify it and add section 4.)
 
(fixed formatting)
Line 1: Line 1:
So you want to have your own copies of the binaries and your own hgwdev-user.cse.ucsc.edu browser?  Here is a walkthrough:
===So you want to have your own copies of the binaries and your own hgwdev-user.cse.ucsc.edu browser?  Here is a walkthrough:===




0.  Request a "virtual space" from the cluster-admins.    
====Request a "virtual space" from the cluster-admins:====    


This includes, among other things, adding a block to the file /usr/local/apache/conf/httpd.conf  
This includes, among other things, adding a block to the file /usr/local/apache/conf/httpd.conf  


<VirtualHost 128.114.50.189>
<VirtualHost 128.114.50.189>
ServerName hgwdev-kayla.cse.ucsc.edu
  ServerName hgwdev-kayla.cse.ucsc.edu
ServerAlias hgwdev-kayla
  ServerAlias hgwdev-kayla
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin-kayla/"
  ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin-kayla/"
</VirtualHost>
</VirtualHost>




1.  Populate my /usr/local/apache/cgi-bin-kayla/ directory for the first time by doing the following:
====Populate my /usr/local/apache/cgi-bin-kayla/ directory for the first time by doing the following:====


From my home directory on hgwdev /cluster/home/kayla I type the following things:
From my home directory on hgwdev /cluster/home/kayla I type the following things:


[kayla@hgwdev ~]$cd kent
[kayla@hgwdev ~]$cd kent
[kayla@hgwdev ~/kent]$ cvsup
[kayla@hgwdev ~/kent]$ cvsup
[kayla@hgwdev ~/kent]$ cd src
[kayla@hgwdev ~/kent]$ cd src
[kayla@hgwdev src]$ make libs
[kayla@hgwdev src]$ make libs
[kayla@hgwdev src]$ cd hg
[kayla@hgwdev src]$ cd hg
[kayla@hgwdev hg]$ make cgi
[kayla@hgwdev hg]$ make cgi
[kayla@hgwdev hg]$ cd makeDb/trackDb
[kayla@hgwdev hg]$ cd makeDb/trackDb
[kayla@hgwdev trackDb]$ make update
[kayla@hgwdev trackDb]$ make update


I now have my own compiled version of the cgis.   
I now have my own compiled version of the cgis.   




2.  Edit my /usr/local/apache.cgi-bin-kayla/hg.conf  
====Edit my /usr/local/apache.cgi-bin-kayla/hg.conf:====


  <ul>
*You can copy this file from another user, but make sure to replace their name with your name in the appropriate (4) places.   
  <li>You can copy this file from another user, but make sure to replace their name with your name in the appropriate (4) places.   
**Pay attention to the following lines (they will need to be edited or added):
  <li>Pay attention to the following lines (they will need to be edited or added):
central.host=localhost
    central.host=localhost
central.domain=hgwdev-kayla.cse.ucsc.edu
    central.domain=hgwdev-kayla.cse.ucsc.edu
central.cookie=hguid.hgwdev-kayla
    central.cookie=hguid.hgwdev-kayla
backupcentral.domain=hgwdev-kayla.ucsc.edu  
    backupcentral.domain=hgwdev-kayla.ucsc.edu  
**Also play with the line:
  <li>Also play with the line:
browser.background=/images/floret.jpg to change what background your browser displays.   
    browser.background=/images/floret.jpg to change what background your browser displays.   
here is a generic [image:floret.jpg] file you can download and edit.
    here is a generic [[floret.jpg]] file you can download and edit.
    
   </ul>


3.  Keep it current:
====Keep it current:====


Here is a script that you can copy and paste to make your binaries every night:
Here is a script that you can copy and paste to make your binaries every night:


#!/bin/tcsh
#!/bin/tcsh
if ($HOST != hgwdev) then
  echo "\n  this must be run from hgwdev!\n"
endif
cd ~/kent/src
make clean > dev/null
cd ~/kent
/cluster/bin/scripts/cvsup | mail -s 'CVS update report on kent tree' kayla
cd ~/kent/src
make libs
cd ~/kent/src/hg
make cgi
cd ~/kent/src/hg/makeDb/trackDb
make update


if ($HOST != hgwdev) then
====Automate it:====
  echo "\n  this must be run from hgwdev!\n"
endif
 
cd ~/kent/src
make clean > dev/null
cd ~/kent
/cluster/bin/scripts/cvsup | mail -s 'CVS update report on kent tree' kayla
cd ~/kent/src
make libs
cd ~/kent/src/hg
make cgi
cd ~/kent/src/hg/makeDb/trackDb
make update
 
4.  Automate it:


Set up a cronjob:
Set up a cronjob:

Revision as of 00:22, 6 December 2006

So you want to have your own copies of the binaries and your own hgwdev-user.cse.ucsc.edu browser? Here is a walkthrough:

Request a "virtual space" from the cluster-admins:

This includes, among other things, adding a block to the file /usr/local/apache/conf/httpd.conf

<VirtualHost 128.114.50.189>
 ServerName hgwdev-kayla.cse.ucsc.edu
 ServerAlias hgwdev-kayla
 ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin-kayla/"
</VirtualHost>


Populate my /usr/local/apache/cgi-bin-kayla/ directory for the first time by doing the following:

From my home directory on hgwdev /cluster/home/kayla I type the following things:

[kayla@hgwdev ~]$cd kent
[kayla@hgwdev ~/kent]$ cvsup
[kayla@hgwdev ~/kent]$ cd src
[kayla@hgwdev src]$ make libs
[kayla@hgwdev src]$ cd hg
[kayla@hgwdev hg]$ make cgi
[kayla@hgwdev hg]$ cd makeDb/trackDb
[kayla@hgwdev trackDb]$ make update

I now have my own compiled version of the cgis.


Edit my /usr/local/apache.cgi-bin-kayla/hg.conf:

  • You can copy this file from another user, but make sure to replace their name with your name in the appropriate (4) places.
    • Pay attention to the following lines (they will need to be edited or added):
central.host=localhost
central.domain=hgwdev-kayla.cse.ucsc.edu
central.cookie=hguid.hgwdev-kayla
backupcentral.domain=hgwdev-kayla.ucsc.edu 
    • Also play with the line:
browser.background=/images/floret.jpg to change what background your browser displays.  
here is a generic [image:floret.jpg] file you can download and edit.
 

Keep it current:

Here is a script that you can copy and paste to make your binaries every night:

#!/bin/tcsh

if ($HOST != hgwdev) then
  echo "\n  this must be run from hgwdev!\n"
endif

cd ~/kent/src
make clean > dev/null
cd ~/kent
/cluster/bin/scripts/cvsup | mail -s 'CVS update report on kent tree' kayla
cd ~/kent/src
make libs
cd ~/kent/src/hg
make cgi
cd ~/kent/src/hg/makeDb/trackDb
make update

Automate it:

Set up a cronjob: