{"id":60,"date":"2022-04-25T10:01:06","date_gmt":"2022-04-25T02:01:06","guid":{"rendered":"http:\/\/www.wu-xk.cn\/?p=60"},"modified":"2025-03-19T18:30:01","modified_gmt":"2025-03-19T10:30:01","slug":"%e8%99%9a%e6%8b%9f%e6%9c%baubuntu%e9%87%8d%e5%90%af%e5%90%8e%e5%85%b1%e4%ba%ab%e6%96%87%e4%bb%b6%e5%a4%b9%e5%a4%b1%e6%95%88%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/itcat.me\/?p=60","title":{"rendered":"\u865a\u62df\u673aUbuntu\u91cd\u542f\u540e\u5171\u4eab\u6587\u4ef6\u5939\u5931\u6548\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Most other answers are outdated. For Ubuntu 18.04 (or recent Debian distros), try:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo vmhgfs-fuse .host:\/ \/mnt\/hgfs\/ -o allow_other -o uid=1000\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">If the&nbsp;<strong>hgfs<\/strong>&nbsp;directory doesn&#8217;t exist, try:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo vmhgfs-fuse .host:\/ \/mnt\/ -o allow_other -o uid=1000<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may have use a specific folder instead of&nbsp;<code>.host:\/<\/code>. In that case you can find out the share&#8217;s name with&nbsp;<code>vmware-hgfsclient<\/code>. For example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$vmware-hgfsclient \nmy-shared-folder \n$sudo vmhgfs-fuse .host:\/my-shared-folder \/mnt\/hgfs\/ -o allow_other -o uid=1000\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">If you want them mounted on startup, update&nbsp;<code>\/etc\/fstab<\/code>&nbsp;with the following:<\/p>\n\n\n<pre class=\"wp-block-code\"># Use shared folders between VMWare guest and host\r\n.host:\/ \/mnt\/hgfs\/ fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0<\/pre>\n\n\n<p class=\"wp-block-paragraph\">I choose to mount them on demand and have them ignored by&nbsp;<code>sudo mount -a<\/code>&nbsp;and the such with the&nbsp;<code>noauto<\/code>&nbsp;option, because I noticed the shares have an impact on VM performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Requirements<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Software requirements may require installing the following tools beforehand:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo apt-get install open-vm-tools open-vm-tools-desktop<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Others have claimed the following are required:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo apt-get install build-essential module-assistant \\\nlinux-headers-virtual linux-image-virtual &amp;&amp; dpkg-reconfigure open-vm-tools\n<\/pre><\/div><div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_60\" class=\"pvc_stats all  \" data-element-id=\"60\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/itcat.me\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Most other answers are outdated. For Ubuntu 18.04  . . . <a class=\"readmore-link\" href=\"https:\/\/itcat.me\/?p=60\">Read more<\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_60\" class=\"pvc_stats all  \" data-element-id=\"60\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/itcat.me\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/itcat.me\/index.php?rest_route=\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itcat.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itcat.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itcat.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itcat.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":26,"href":"https:\/\/itcat.me\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/itcat.me\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/itcat.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itcat.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itcat.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}