<?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>落 &#187; 未分类</title>
	<atom:link href="http://liluo.org/class/%e6%9c%aa%e5%88%86%e7%b1%bb/feed/" rel="self" type="application/rss+xml" />
	<link>http://liluo.org</link>
	<description>落就是一道风景线……</description>
	<lastBuildDate>Tue, 09 Aug 2011 11:22:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OpenSUSE 11.3 安装 nginx</title>
		<link>http://liluo.org/2010/08/opensuse-11-3-%e5%ae%89%e8%a3%85-nginx/</link>
		<comments>http://liluo.org/2010/08/opensuse-11-3-%e5%ae%89%e8%a3%85-nginx/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 21:54:12 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=576</guid>
		<description><![CDATA[分享一下OpenSUSE 11.3 安装nginx的过程。
安装Nginx需要依赖 gcc, pcre, openssl 相关
安装gcc
1、可以使用Yast2 Software Management分别搜索 gcc,pcre,openssl，把以gcc、pcre、openssl开头以及包含的全部选中，然后安装。
2、使用root用户 分别 zypper in gcc*  ／zypper in pcre /zypper in openssl*
其次，下载Nginx，解压
到Ｎginx官网http://nginx.org下载，目前０.7.*是稳定版，0.8.＊是开发版（其实开发版也蛮稳定的，哈哈）。
使用　tar xvf nginx-0.8.49.tar.gz 解压，其实中间数字为相应版本号
安装
貌似安装有蛮多参数，我使用默认安装，也是最简化的安装：
cd nginx-0.8.49
./configure
make
make install
启动　/usr/local/nginx/sbin/nginx
停止　/usr/local/nginx/sbin/nginx -s stop
重启　/usr/local/nginx/sbin/nginx -s restart
配置文件目录　/usr/local/nginx/conf/nginx.conf
]]></description>
		<wfw:commentRss>http://liluo.org/2010/08/opensuse-11-3-%e5%ae%89%e8%a3%85-nginx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>关于OpenSUSE 的 zypper</title>
		<link>http://liluo.org/2010/08/%e5%85%b3%e4%ba%8eopensuse-%e7%9a%84-zypper/</link>
		<comments>http://liluo.org/2010/08/%e5%85%b3%e4%ba%8eopensuse-%e7%9a%84-zypper/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 12:02:30 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[zypper]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=572</guid>
		<description><![CDATA[经过之前试用 Ubuntu、Fedora、Pc-bsd 之后，感觉 OpenSUSE 比较适合自己，于是在新本 Thinkpad R400 a73 上安装了 OpenSUSE 11.3。zypper 是 OpenSUSE 命令行下管理软件的程序(类似于Debian／Ubuntu的apt，Fedora/CentOS中的yum),功能十分强大。

添加软件源

zyppr ar URL alias
URL 就是软件源的地址
alias 就是你取另外一个名字

例子：添加11.3的官方软件和升级源

zypper ar http://download.opensuse.org/distribution/11.3/repo/oss/ main
zypper ar http://download.opensuse.org/distribution/11.3/repo/non-oss/ nonoss
zypper ar http://download.opensuse.org/update/11.3/ update

刷新软件源，请耐心等待，尤其是第一次的时候。
zypper refresh

现在就可以升级软件了
zypper update

安装软件也很简单
zypper install 软件名

下面是完整的介绍：

zypper [--全局选项] &#60;命令&#62; [--命令选项] [参数]


全局选项：
--help, -h 帮助。.
--version, -V 输出版本号。
--quiet, -q 减少普通输出，仅打印错误信息。
--verbose, -v 增加信息的详细程度
--no-abbrev, -A 表格中不出现缩写文本。
--table-style, -s 表格样式 (整数)。
--rug-compatible, -r 开启与 rug 的兼容。
--non-interactive, -n 不询问任何问题，自动使用默认的回复。
--xmlout, [...]]]></description>
		<wfw:commentRss>http://liluo.org/2010/08/%e5%85%b3%e4%ba%8eopensuse-%e7%9a%84-zypper/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>解决Could not get lock /var/cache/apt/archives/lock</title>
		<link>http://liluo.org/2010/06/%e8%a7%a3%e5%86%b3could-not-get-lock-varcacheaptarchiveslock/</link>
		<comments>http://liluo.org/2010/06/%e8%a7%a3%e5%86%b3could-not-get-lock-varcacheaptarchiveslock/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 02:41:33 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=549</guid>
		<description><![CDATA[在ubuntu apt-get upgrade的时候，遇到：
E: Could not get lock /var/cache/
apt/archives/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the download directory
解决办法如下：
sudo rm -rf /var/cache/apt/archives/lock
sudo apt-get update
然后apt-get就恢复正常了。
]]></description>
		<wfw:commentRss>http://liluo.org/2010/06/%e8%a7%a3%e5%86%b3could-not-get-lock-varcacheaptarchiveslock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>转：python的list,dict,tuple比较和应用</title>
		<link>http://liluo.org/2010/06/python%e7%9a%84listdicttuple%e6%af%94%e8%be%83%e5%92%8c%e5%ba%94%e7%94%a8/</link>
		<comments>http://liluo.org/2010/06/python%e7%9a%84listdicttuple%e6%af%94%e8%be%83%e5%92%8c%e5%ba%94%e7%94%a8/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 02:22:33 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=545</guid>
		<description><![CDATA[python提供了好多的数据结构，主要是分list,dict,tuple（数组，字典，元组）
1.list（数组）
数组的方法运用，应该有写过程序的都知道啦
包括二维三维，下面我只说几个方法
x代表数组中的元素，i代表位置
a) append(x) 把元素x添加到数组的尾部
b) insert(i,x) 把元素x 插入到位置i
c) remove(x) 删除第一个元素x
d) pop(i) 删除第i个元素，并返回这个元素。若调用pop()则删除最后一个元素
e) index(x) 返回数组中第一个值为x的位置。如果没有匹配的元素会抛出一个错误
f) count(x) 返回x在数组中出现的次数
g) sort() 对数组中的元素进行排序
h) reverse() 对数组中的元素用倒序排序
2.dict（字典）
这一个有必要说多一些东西，因为比较好用，而且在别的语言里也较少
字典（Dictionary）是一种映射结构的数据类型，由无序的“键－值对”组成。字典的键必须是不可改变的类型，如：字符串，数字，tuple；值可以为任何python数据类型。
1)、新建字典
&#62;&#62;&#62; dict1={}      #建立一个空字典
&#62;&#62;&#62; type(dict1)
2)、增加字典元素：两种方法
&#62;&#62;&#62; dict1['a']=1    #第一种
&#62;&#62;&#62; dict1
{’a': 1}
#第二种：setdefault方法
&#62;&#62;&#62; dict1.setdefault(’b',2)
2
&#62;&#62;&#62; dict1
{’a': 1, ‘b’: 2}
3)、删除字典
#删除指定键－值对
&#62;&#62;&#62; dict1
{’a': 1, ‘b’: 2}
&#62;&#62;&#62; del dict1['a']      #也可以用pop方法，dict1.pop(’a')
&#62;&#62;&#62; dict1
{’b': 2}
#清空字典
&#62;&#62;&#62; dict1.clear()
&#62;&#62;&#62; dict1  [...]]]></description>
		<wfw:commentRss>http://liluo.org/2010/06/python%e7%9a%84listdicttuple%e6%af%94%e8%be%83%e5%92%8c%e5%ba%94%e7%94%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 删除旧内核方法</title>
		<link>http://liluo.org/2010/06/ubuntu-%e5%88%a0%e9%99%a4%e6%97%a7%e5%86%85%e6%a0%b8%e6%96%b9%e6%b3%95/</link>
		<comments>http://liluo.org/2010/06/ubuntu-%e5%88%a0%e9%99%a4%e6%97%a7%e5%86%85%e6%a0%b8%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 08:32:33 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=537</guid>
		<description><![CDATA[使用Ubuntu有一段时间了，在Ubuntu＋XP的双系统电脑上启动菜单无端多出来几排。看了一下原来有 Linux 2.6.32-22 和 Linux 2.6.32-21两个内核，虽然影响不大，但看着还是不舒服，于是想办法删除旧的系统内核。对于未知的问题Google之。
首先查看电脑中存在的系统内核版本，在终端输入：
dpkg --get-selections&#124;grep linux
如果出现1个以上的2.6.xx字样，说明系统中存在多个内核。那么，删掉无用的内核吧（当然也有人喜欢保留多个以备不时之需）。在删除其他内核之前要确认自己现在使用的版本，用命令查看：
uname -a 
落落的电脑出现以下信息：
Linux luo-ubuntu 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 GNU/Linux
说明目前使用的是Linux 2.6.32-22版本的内核（目前也是Ubuntu中最近更新的），需要删除2.6.32-21，有2种方法：
第1种：使用命令行

sudo apt-get remove linux-image-2.6.32-21-generic
sudo apt-get remove linux-headers-2.6.32-21-generic

其中2.6.32-21是要删除的版本，如果要删除多个旧内核分别依次使用命令删除。
卸载后，在启动菜单里还有其选项，这样我们需要修改启动菜单，用命令打开menu.lst
sudo gedit /boot/grub/menu.lst
然后找到不需要的菜单将其删除，另外还要注意修改default的值来改变默认启动项。
第2种：使用新立得软件管理（推荐）
System（系统）－Administation（管理）－Synaptic Package Manager（新立得软件管理），搜索“2.6.32-21”（要删除的linux内核版本号），找到以下类似内容：

linux-headers-2.6.32-21 install
linux-headers-2.6.32-21-generic install
linux-image-2.6.32-21-generic install

选中右键 mark for complete removal（标记以便彻底删除），然后点击Apply（应用）。
OK，这样我们已经把Ubuntu中旧的Linux内核删除。
]]></description>
		<wfw:commentRss>http://liluo.org/2010/06/ubuntu-%e5%88%a0%e9%99%a4%e6%97%a7%e5%86%85%e6%a0%b8%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fedora 安装五笔、yum图形界面 and  编译报错“no acceptable C compiler found in $PATH“</title>
		<link>http://liluo.org/2010/06/fedora-%e6%b7%bb%e5%8a%a0%e4%ba%94%e7%ac%94-and-%e7%bc%96%e8%af%91%e6%8a%a5%e9%94%99/</link>
		<comments>http://liluo.org/2010/06/fedora-%e6%b7%bb%e5%8a%a0%e4%ba%94%e7%ac%94-and-%e7%bc%96%e8%af%91%e6%8a%a5%e9%94%99/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 02:28:25 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=510</guid>
		<description><![CDATA[因为一个项目需要生成图表，在网上发现Open Flash Chart2（ofc2）蛮好用的，但是项目是用python+django，所以用的是PyOFC2。Win下貌似超复杂，于是把办公室一台电脑装了Fedora13（貌似刚出来的版本，5月25吧？之前办公室自己用的电脑是WinXP＋Ubuntu10.04，尝下鲜，哈哈）。就目前来说，喜欢Fedora比ubuntu更多一点，可能和性格有关吧。有点扯远了，咳。话说Fedora需要动手的比Ubuntu多，暂时先说下五笔、Yum图形界面的安装，还有就是编译时出现的错误解决方法。安装五笔
 

Fedora 13下自带的输入法是ibus，但没有带五笔。



在打开终端输入“su root”命令回车然后输入密码再回车进入root终端用户，使用“yum install ibus-table-wubi -y”回车后会自动下载安装。


然后
依次操作：System——Preferences——Input Method——Input Method Preferences——Input Method选择Chinese——wubi86——Add。再单击输入法图标，在输入法菜单中单击选择五笔输入法即可。




Yum图形界面工具
至于Yum是什么就不介绍了，Google上N多，你可以在System——Adminisatation——Add/Remove Software中使用，也可以安装Yum Exteuder，方法是使用“yum install yumex”命令。
使用./configure和make报错
其他Fedora版本我没用过，但是在13中使用
./configure提示"no acceptable C compiler found in $PATH”，使用make提示“No targets specified and no makefile found.Stop.”原因是没有安装gcc组件。解决方法：在终端以root身份运行“yum install gcc* make*"



这是刚安装完Fedora遇到的问题，之后会使用Nginx＋
PostgreSQL＋Python＋Django+Php，配置过程也将在稍后记录。

]]></description>
		<wfw:commentRss>http://liluo.org/2010/06/fedora-%e6%b7%bb%e5%8a%a0%e4%ba%94%e7%ac%94-and-%e7%bc%96%e8%af%91%e6%8a%a5%e9%94%99/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 下安装配置 LAMP</title>
		<link>http://liluo.org/2010/05/ubuntu-%e4%b8%8b%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae-lamp/</link>
		<comments>http://liluo.org/2010/05/ubuntu-%e4%b8%8b%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae-lamp/#comments</comments>
		<pubDate>Fri, 14 May 2010 09:12:39 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=385</guid>
		<description><![CDATA[一.安装
首先，如果您花费一点时间熟悉一下常用的命令 会非常有帮助！
安装LAMP并没有那么神秘。 一步一步来。这比windows下面那麻烦的配置 简单多了！
1.安装LAMP
在新立得软件包管理器中选择 编辑——使用任务分组标记软件包
在打开的窗口中 勾选 LAMP SERVER 然后确定。
在主窗口中 点击绿色的对号 应用 按钮
好了 。接下来就是等待…等待新立得 自动下载安装完。
中间会有一次提示输入mysql的root用户的密码
2.安装phpmyadmin
终端中运行命令
sudo apt-get install phpmyadmin
二.配置
1&#62;apache 的配置文件路径 /etc/apache2/apache2.conf
2&#62;php.ini 路径 /etc/php5/apache2/php5.ini
3&#62;mysql配置文件 路径 /etc/mysql/my.cnf
4&#62;phpmyadmin配置文件路径 /etc/phpmyadmin/apache.conf
5&#62;网站根目录 /var/www
1.配置apache
终端中 使用命令
sudo gedit /etc/apache2/apache2.conf
在配置文件最后面加入下面几行：
添加文件类型支持
AddType application/x-httpd-php .php .htm .html
默认字符集 根据自己需要
AddDefaultCharset UTF-8
服务器地址
ServerName 127.0.0.1
添加首页文件 三个的顺序可以换 前面的访问优先 （当然你也可以加别的 比如default.php）
DirectoryIndex index.htm index.html index.php
2.配置PHP5
下面是默认时区
;default.timezone=
去掉前面的分号 后面加个PRC 。表示中华人民共和国（就是GMT＋8时区）
default.timezone= PRC
3.配置mysql
sudo gedit /etc/mysql/my.cnf
这里有一个地方要注意
因为默认是只允许本地访问数据库的 如果你有需要 可以打开。
bind-address 127.0.0.1
这一句是限制只能本地访问mysql的。如果有需要其他机器访问 把这句话用#注释掉
#bind-address 127.0.0.1
4.配置phpMyadmin
sudo ln -s /usr/share/phpmyadmin  [...]]]></description>
		<wfw:commentRss>http://liluo.org/2010/05/ubuntu-%e4%b8%8b%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae-lamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 LTS 正式版 下载地址</title>
		<link>http://liluo.org/2010/04/ubuntu-10-04-lts-2/</link>
		<comments>http://liluo.org/2010/04/ubuntu-10-04-lts-2/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 01:44:02 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[正式版]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=381</guid>
		<description><![CDATA[Ubuntu 10.04 LTS 官网公布的发布时间在2010年4月29日UTC 17：00，按照时差推算也就是北京时间的4月30日凌晨1点钟（距现在还有14个小时），不过不过已经有强人推测出下载地址，落落给大家分享一下~]]></description>
		<wfw:commentRss>http://liluo.org/2010/04/ubuntu-10-04-lts-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu 桌面培训教程</title>
		<link>http://liluo.org/2010/04/ubuntu-%e6%a1%8c%e9%9d%a2%e5%9f%b9%e8%ae%ad/</link>
		<comments>http://liluo.org/2010/04/ubuntu-%e6%a1%8c%e9%9d%a2%e5%9f%b9%e8%ae%ad/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 05:32:13 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[培训]]></category>
		<category><![CDATA[桌面]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=373</guid>
		<description><![CDATA[本课程为家庭用户和办公室用户提供 Ubuntu 操作系统的培训。目标对象不必预先了解 Ubuntu，但必须具备基本的计算机使用能力。要开始学习本课程，请先在您的计算机硬盘上安装 Ubuntu 9.10。]]></description>
		<wfw:commentRss>http://liluo.org/2010/04/ubuntu-%e6%a1%8c%e9%9d%a2%e5%9f%b9%e8%ae%ad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 LTS</title>
		<link>http://liluo.org/2010/04/ubuntu-10-04-lts/</link>
		<comments>http://liluo.org/2010/04/ubuntu-10-04-lts/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 08:15:39 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[LTS]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=369</guid>
		<description><![CDATA[Ubuntu 10.04 LTS 将于2010年04月29日发布。OK，下面是对Ubuntu知识普及的扫盲专题~

1、Ubuntu是什么？]]></description>
		<wfw:commentRss>http://liluo.org/2010/04/ubuntu-10-04-lts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

