{"id":87,"date":"2013-01-09T11:38:08","date_gmt":"2013-01-09T09:38:08","guid":{"rendered":"http:\/\/catyellow.net\/blog\/?p=87"},"modified":"2013-01-09T11:39:56","modified_gmt":"2013-01-09T09:39:56","slug":"edit-remote-files-via-ftp","status":"publish","type":"post","link":"https:\/\/catyellow.net\/blog\/?p=87","title":{"rendered":"Edit remote files via FTP"},"content":{"rendered":"<p>I had this workable on MacOS because my source code editor supported FTP.<br \/>\nBut on Linux Mint I found that my code editor (Geany) doesn&#8217;t support FTP and I needed solution (don&#8217;t want to switch to another editor).<\/p>\n<p>The way is to mount remote ftp folder as local and edit files locally.<\/p>\n<p>First of all install &#8220;curlftpfs&#8221;:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo apt-get install curlftpfs<\/pre>\n<p><!--more--><\/p>\n<p>Then create a local folder where you want to edit files and set 777 permissions to it:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir project\r\nchmod 777 project\r\n<\/pre>\n<p>Mount ftp folder:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">curlftpfs ftp:\/\/&lt;user&gt;:&lt;password&gt;@&lt;hostname&gt;\/project project\/<\/pre>\n<p>Folder is mounted now, but I got an error:<br \/>\n<code>fusermount: failed to open \/etc\/fuse.conf: Permission denied<\/code><\/p>\n<p>For my case that&#8217;s because a user I logged in doesn&#8217;t exists in &#8220;fuse&#8221; group. Let&#8217;s check it and verify:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">groups &lt;myusername&gt;<\/pre>\n<p>Here is the list of groups for this user: adm cdrom sudo dip plugdev lpadmin sambashare<\/p>\n<p>So let&#8217;s add him to fuse group:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo addgroup mixa fuse<\/pre>\n<p>Hooray. Error gone, ftp folder mounted. That is what I was looking for.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had this workable on MacOS because my source code editor supported FTP. But on Linux Mint I found that my code editor (Geany) doesn&#8217;t support FTP and I needed solution (don&#8217;t want to switch to another editor). The way is to mount remote ftp folder as local and edit files locally. First of all [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[24],"_links":{"self":[{"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/87"}],"collection":[{"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":9,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions\/96"}],"wp:attachment":[{"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/catyellow.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}