[Scientific Computing Services Public] Pages FeedConfluence Syndication Feedhttps://confluence.slac.stanford.eduInstalling YFS on Ubuntu DesktopKarl Amrheintag:confluence.slac.stanford.edu,2009:page-247694453-252024-03-23T19:15:24Z2019-04-24T17:46:46Z<div class="feed"> <p>
Page
<b>edited</b> by
<a href=" https://confluence.slac.stanford.edu/display/~ksa
">Karl Amrhein</a>
</p>
<div style="border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 10px;">
<p>NOTE: SLAC IT does NOT support AFS on desktops. AFS is being retired. </p><p><br/></p><p><br/></p><p>To access AFS on Ubuntu desktops (to migrate data, for example), use the "File" application, "Other Locations", "sftp://centos7.slac.stanford.edu".</p><p><br/></p><p><br/></p><p><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="250" src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot1.png?version=1&modificationDate=1711221273534&api=v2" data-image-src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot1.png?version=1&modificationDate=1711221273534&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="436574150" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="screenshot1.png" data-base-url="https://confluence.slac.stanford.edu" data-linked-resource-content-type="image/png" data-linked-resource-container-id="247694453" data-linked-resource-container-version="25" alt=""></span><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="250" src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot2.png?version=1&modificationDate=1711221275479&api=v2" data-image-src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot2.png?version=1&modificationDate=1711221275479&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="436574151" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="screenshot2.png" data-base-url="https://confluence.slac.stanford.edu" data-linked-resource-content-type="image/png" data-linked-resource-container-id="247694453" data-linked-resource-container-version="25" alt=""></span><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="250" src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot5.png?version=1&modificationDate=1711221279060&api=v2" data-image-src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot5.png?version=1&modificationDate=1711221279060&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="436574154" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="screenshot5.png" data-base-url="https://confluence.slac.stanford.edu" data-linked-resource-content-type="image/png" data-linked-resource-container-id="247694453" data-linked-resource-container-version="25" alt=""></span><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="250" src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot3.png?version=1&modificationDate=1711221276613&api=v2" data-image-src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot3.png?version=1&modificationDate=1711221276613&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="436574152" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="screenshot3.png" data-base-url="https://confluence.slac.stanford.edu" data-linked-resource-content-type="image/png" data-linked-resource-container-id="247694453" data-linked-resource-container-version="25" alt=""></span><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image" draggable="false" height="250" src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot4.png?version=1&modificationDate=1711221277868&api=v2" data-image-src="https://confluence.slac.stanford.edu/download/attachments/247694453/screenshot4.png?version=1&modificationDate=1711221277868&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="436574153" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="screenshot4.png" data-base-url="https://confluence.slac.stanford.edu" data-linked-resource-content-type="image/png" data-linked-resource-container-id="247694453" data-linked-resource-container-version="25" alt=""></span></p><p><span class="confluence-embedded-file-wrapper confluence-embedded-manual-size"><img class="confluence-embedded-image shrinkToFit transparent confluence-external-resource" draggable="false" height="600" width="960" src="https://slacprod.servicenowservices.com/sys_attachment.do?sysparm_referring_url=tear_off&view=true&sys_id=430439b28789865033b77777cebb3586" data-image-src="https://slacprod.servicenowservices.com/sys_attachment.do?sysparm_referring_url=tear_off&view=true&sys_id=430439b28789865033b77777cebb3586"></span></p><p>The following (below) is NOT supported by SLAC IT. FYI only.</p><p><br/></p><p><br/></p><p>Scientific Computing Services and Unix Platform have transitioned from OpenAFS to YFS for central servers and batch computing. For more information on YFS, please see: <a class="external-link" href="https://www.auristor.com/openafs/migrate-to-auristor/" rel="nofollow">https://www.auristor.com/openafs/migrate-to-auristor/</a></p><p>Although SLAC IT Helpdesk does not install or support OpenAFS or YFS on desktops or laptops, if you decide you want to install and manage YFS yourself, see below for some steps which have worked for some people.</p><p>For Linux desktops and laptops, we recommend using FastX, scp, and sshfs for easy access to central Unix storage. But for those users who still wish to install a native YFS client and manage it themselves, we have this page to point you in the right direction.</p><p>If you want to install and maintain the YFS client yourself on your desktop, here are the steps which have worked for Ubuntu 18.04 "bionic" and 16.04 "xenial". These commands need to be run as root (eg, get a root shell by doing 'sudo -i')</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: text; gutter: false; theme: Confluence" data-theme="Confluence"># this remove is only needed if you are replacing openafs with yfs/auristor
apt-get remove openafs-client openafs-krb5 -y
cd /tmp
apt -y install curl
curl -O -s https://www.auristor.com/filesystem/GPG/AURISTOR-GPG-KEY-v1
apt-key add ./AURISTOR-GPG-KEY-v1
source /etc/lsb-release
cat > /etc/apt/sources.list.d/auristor-client.list <<EOF
deb [arch=amd64] https://client-rpm-repo.auristor.com/filesystem/repo/recommended/$DISTRIB_CODENAME/ $DISTRIB_CODENAME client
EOF
apt-add-repository "deb http://archive.ubuntu.com/ubuntu $DISTRIB_CODENAME universe" # for heimdal-clients package
apt update
apt-get -y install auristorfs-client auristorfs-modules3-`uname -r` heimdal-clients
depmod -a
# this command may need to be repeated a couple of times. When you finally see "active" as a response, you are good.
systemctl is-active auristorfs-client || systemctl start auristorfs-client</pre>
</div></div><p>You will be prompted to enter some configuration information for the YFS client:</p><div class="table-wrap"><table class="wrapped confluenceTable"><tbody><tr><th class="confluenceTh">Question</th><th class="confluenceTh">Answer</th></tr><tr><td class="confluenceTd">AuriStorFS cell this workstation belogs to</td><td class="confluenceTd"><pre>slac.stanford.edu</pre></td></tr><tr><td class="confluenceTd">Size of AuriStorFS cache in kB</td><td class="confluenceTd"><em>default value is fine</em></td></tr><tr><td colspan="1" class="confluenceTd">Look up AuristorFS cells in DNS</td><td colspan="1" class="confluenceTd"><pre>yes</pre></td></tr><tr><td colspan="1" class="confluenceTd">Default Kerberos version 5 realm</td><td colspan="1" class="confluenceTd"><pre>SLAC.STANFORD.EDU</pre></td></tr></tbody></table></div><p>To test the YFS client installation (there is no longer a need to be root for the following commands. Exit out of your sudo shell and run these as a normal user):</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: text; gutter: false; theme: Confluence" data-theme="Confluence">kinit [your SLAC Unix username]
aklog
klist
tokens
cd /afs/slac.stanford.edu/...</pre>
</div></div><p><br/></p><p>To create the /afs/slac symlink in the config, edit the /etc/yfs/yfs-client.conf file and include this:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: java; gutter: false; theme: Confluence" data-theme="Confluence">[cells]
# You may define your own cells here.
slac.stanford.edu = {
aliases = slac
}</pre>
</div></div><p><br/></p><p><br/></p><p><br/><br/></p>
</div>
<div style="padding: 10px 0;">
<a href="https://confluence.slac.stanford.edu/display/SCSPub/Installing+YFS+on+Ubuntu+Desktop">View Online</a>
·
<a href="https://confluence.slac.stanford.edu/pages/diffpagesbyversion.action?pageId=247694453&revisedVersion=25&originalVersion=24">View Changes Online</a>
</div>
</div>Karl Amrhein2019-04-24T17:46:46Z