<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux and Virtualization &#187; lftp</title>
	<atom:link href="http://fclose.com/b/linux/tag/lftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://fclose.com/b/linux</link>
	<description>Clear solutions, tutorials and tips on Linux and virtualization from the author&#039;s experience with clusters.</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:49:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>lftp Disable SSL</title>
		<link>http://fclose.com/b/linux/691/lftp-disable-ssl/</link>
		<comments>http://fclose.com/b/linux/691/lftp-disable-ssl/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 09:31:25 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[lftp]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/lftp-disable-ssl/</guid>
		<description><![CDATA[lftp some times stalls with message &#8220;Making data connection&#8221; when &#8220;ls&#8221; the directory after logged in the ftp site. The message may appear like this: &#60; --- 227 Entering Passive Mode (xx,xx,xx,xx,xx,xx) ---- Connecting data socket to (yy,yy,yy,yy) port zz `ls' at 0 [Making data connection...] But some client such as filezilla may works on [...]]]></description>
			<content:encoded><![CDATA[<p>lftp some times stalls with message &#8220;Making data connection&#8221; when &#8220;ls&#8221; the directory after logged in the ftp site. The message may appear like this:</p>
<pre>&lt; --- 227 Entering Passive Mode (xx,xx,xx,xx,xx,xx)
---- Connecting data socket to (yy,yy,yy,yy) port zz
`ls' at 0 [Making data connection...]
</pre>
<p>But some client such as filezilla may works on the same site.</p>
<p>Most of the the reason is that the FTP server configuration didn&#8217;t have assigned passive ports nor are they open on the firewall.</p>
<p>I find two solutions to this problem:</p>
<p>1) Disable ssl when using lftp<br />
This is the easy solution because usually we can not change the server&#8217;s configuration. We can do this by simply add one line:</p>
<pre>set ftp:ssl-allow false</pre>
<p>to ~/.lftprc.<br />
My .lftprc configuration files can be found here: <a href="http://github.com/zma/config_files">http://github.com/zma/config_files</a></p>
<p>2) Change the configuration on the server side for a pureFTP connect<br />
Force passive mode on server and open specific ports in server firewall.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/691/lftp-disable-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My .bashrc .alias .lftp .fonts.conf</title>
		<link>http://fclose.com/b/linux/139/my-bashrc-alias-lftp-fonts-conf/</link>
		<comments>http://fclose.com/b/linux/139/my-bashrc-alias-lftp-fonts-conf/#comments</comments>
		<pubDate>Wed, 13 May 2009 06:17:00 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[lftp]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/%e6%88%91%e7%9a%84bashrc-alias-lftp-fontsconf%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6/</guid>
		<description><![CDATA[~/.bashrc # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions . ~/.alias # export GTK_IM_MODULE=ibus ################################## ~/.alias alias rm=&#8217;rm -i&#8217; alias l=&#8217;ll -h&#8217; ################################## ~/.lftprc set ftp:charset GBK set file:charset UTF-8 #set net:connection-limit 30 set net:reconnect-interval-base 12 set net:reconnect-interval-multiplier 1 ################################## .fonts.conf Fedora-中文字体设置]]></description>
			<content:encoded><![CDATA[<p>~/.bashrc</p>
<p># .bashrc</p>
<p># Source global definitions<br />
if [ -f /etc/bashrc ]; then<br />
. /etc/bashrc<br />
fi</p>
<p># User specific aliases and functions<br />
. ~/.alias</p>
<p># export GTK_IM_MODULE=ibus</p>
<p>##################################<br />
~/.alias<br />
alias rm=&#8217;rm -i&#8217;<br />
alias l=&#8217;ll -h&#8217;</p>
<p>##################################<br />
~/.lftprc</p>
<p>set ftp:charset GBK<br />
set file:charset UTF-8<br />
#set net:connection-limit 30<br />
set net:reconnect-interval-base 12<br />
set net:reconnect-interval-multiplier 1</p>
<p>##################################<br />
.fonts.conf</p>
<p><a href="/Fedora-中文字体设置/">Fedora-中文字体设置</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/139/my-bashrc-alias-lftp-fonts-conf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lftp gftp 中文乱码 解决办法</title>
		<link>http://fclose.com/b/linux/55/lftp-gftp-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81-%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/</link>
		<comments>http://fclose.com/b/linux/55/lftp-gftp-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81-%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 05:09:00 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Chinese]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[gftp]]></category>
		<category><![CDATA[lftp]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/lftp-gftp-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81-%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/</guid>
		<description><![CDATA[一般FTP中中文乱码问题是由于服务器端编码为GBK，面客户端LINUX编码为UTF－8导致的。 对于LFTP：设置编码即可：可使用命令： set ftp:charset GBKset file:charset UTF-8 表示FTP端编码为GBK，本地文件编码为UTF－8。上传下载文件时LFTP会自动做转换的。 可以将上面两行了指令写在$HOME/.lftprc中这样每次打开都会默认设置好的. 对于gFtp:直接在/usr/bin/gftp中在文件的开头部分#!/bin/sh后面加上这样一句: export LANG=zh_CN 就可以了.下载文件时没有问题.但上传文件还是有问题的,这个现在还没有找到好的解决办法.]]></description>
			<content:encoded><![CDATA[<p>一般FTP中中文乱码问题是由于服务器端编码为GBK，面客户端LINUX编码为UTF－8导致的。</p>
<p>对于LFTP：<br />设置编码即可：可使用命令：</p>
<p>set ftp:charset GBK<br />set file:charset UTF-8</p>
<p>表示FTP端编码为GBK，本地文件编码为UTF－8。<br />上传下载文件时LFTP会自动做转换的。</p>
<p>可以将上面两行了指令写在$HOME/.lftprc中<br />这样每次打开都会默认设置好的.</p>
<p>对于gFtp:<br />直接在/usr/bin/gftp中<br />在文件的开头部分<br />#!/bin/sh<br />后面加上这样一句:</p>
<p>export LANG=zh_CN</p>
<p>就可以了.下载文件时没有问题.但上传文件还是有问题的,这个现在还没有找到好的解决办法.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/55/lftp-gftp-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81-%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

