Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
cern:website [2018/06/06 09:26] – [Setup] iwn | cern:website [2020/05/13 12:17] – [Personal CERN website] iwn |
---|
====== Personal CERN website ====== | ====== Personal CERN website ====== |
| |
You can make a personal website to share documents in your ''/afs'' or ''/eos'' directory via the World Wide Web. Please follow the instructions on [[https://cernbox.web.cern.ch/cernbox/en/web/personal_website_content.html|this page]]. | You can make a personal website to share documents in your ''/afs'' or ''/eos'' directory via the World Wide Web. Please follow the instructions on [[https://cernbox-manual.web.cern.ch/cernbox-manual/en/web/|this page]]. |
| |
| The steps are basically: |
| - Create a ''/eos/user/${USER::1}/${USER::1}/www'' directory on EOS (''lxplus''). |
| - Promote it to a website via CERNBox and CERN Web services. |
| - Configure access with ''.htaccess''. |
| - Configure each webpage with an index file (''index.html'' or ''index.php''). |
| - Add content. |
===== Setup ===== | ===== Setup ===== |
| |
You need to configure access to CMS members as described [[https://espace.cern.ch/webservices-help/websitemanagement/ConfiguringAFSSites/Pages/AccesscontrolonAFSsites.aspx|here]] and [[http://linux.web.cern.ch/linux/scientific4/docs/shibboleth.shtml|here]] with an Apache ''[[https://httpd.apache.org/docs/2.4/howto/htaccess.html|.htaccess]]'' file in you ''www'' folder: | You need to configure access to CMS members as described [[https://espace.cern.ch/webservices-help/websitemanagement/ConfiguringAFSSites/Pages/AccesscontrolonAFSsites.aspx|here]] with an Apache ''[[https://httpd.apache.org/docs/2.4/howto/htaccess.html|.htaccess]]'' file in you ''www'' folder: |
<file bash .htaccess> | <file bash .htaccess> |
SSLRequireSSL # The modules only work using HTTPS | SSLRequireSSL # The modules only work using HTTPS |
===== Copy to eos ===== | ===== Copy to eos ===== |
| |
Use secure copy ''scp'' to copy stuff from your local computer or from PSI T3 to your ''/eos'': | EOS is now mounted on PSI T3, so you mount with |
| <code bash> |
| mkdir ~/eos |
| sshfs -o allow_other,reconnect ineuteli@lxplus.cern.ch:/eos/user/${USER::1}/$USER/ ~/eos |
| </code> |
| Make sure not to forget or add anymore trailing ''/''. |
| With each new session, you can remount using |
| <code bash> |
| fusermount -u ~/eos |
| </code> |
| <wrap tip>Pro tip</wrap> You can put this alias in your ''.bashrc'': |
| <code bash> |
| alias meos='fusermount -u ~/eos && sshfs -o allow_other,reconnect $USER@lxplus.cern.ch:/eos/user/${USER::1}/$USER/ ~/eos && echo "~/eos" && lt ~/eos' |
| </code> |
| |
| Alternatively, use secure copy ''scp'' to copy stuff from your local computer or from PSI T3 to your ''/eos'': |
<code bash> | <code bash> |
scp test.txt <user>@lxplus.cern.ch:/eos/user/<letter>/<user>/www/ | scp test.txt <user>@lxplus.cern.ch:/eos/user/<letter>/<user>/www/ |
</code> | </code> |
| |
It is also possible to mount your personal ''/eos'' directory to your local computer with an [[https://cernbox.cern.ch/cernbox/doc/clients.html|CERN Box desktop app]] ([[https://cds.cern.ch/record/2288368|video tutorial]]). | It is also possible to mount your personal ''/eos'' directory to your local computer with an [[https://cernbox.cern.ch/cernbox/doc/clients.html|CERN Box desktop app]] ([[https://cds.cern.ch/record/2288368|video tutorial]]). |