| Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
| cern:website [2020/05/13 11:24] – [Personal CERN website] iwn | cern:website [2020/05/13 12:20] – 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-manual.web.cern.ch/cernbox-manual/en/web/|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 ===== |
| | |
| | ==== Setup access ==== |
| |
| 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: | 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: |
| |
| Other AD FS groups can be found in CERN's [[https://e-groups.cern.ch/e-groups/EgroupsSearch.do|E-groups]]. | Other AD FS groups can be found in CERN's [[https://e-groups.cern.ch/e-groups/EgroupsSearch.do|E-groups]]. |
| | |
| | |
| | ==== Setup indexing ==== |
| |
| If you want to display documents and directories in a custom style (in particular plots), you can add an ''index.html'' or ''index.php'' file, for example [[cern:index|this one]]. | If you want to display documents and directories in a custom style (in particular plots), you can add an ''index.html'' or ''index.php'' file, for example [[cern:index|this one]]. |
| ===== 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]]). |