今天遇到了一个奇怪的问题,ubuntu启动之后不出现密码输入窗口,停留在登入界面上,没法输入密码,也就没法登录进入系统
其他功能正常,ctrl+alt+f1可以进入命令行界面
到网上搜了以下,有人提到是zlib的原因,我昨天确实编译了zlib,在编译安装nginx的时候,据说把zlib卸载就可以了
试了以下,删掉了zlib的编译安装文件/usr/local/lib下的.a文件.(ctrl+alt+f1进入命令行)
重新启动,正常了。
tar.bz2解压缩: tar jxvf *.tar.bz2
在virtualbox中安装的虚拟机,默认只有800×600和640×480的分辨率,如果是要全屏操作非常的不舒服。
从网上搜索,解决方法是安装增强功能。
1)点Sun VirtualBox下的设备->安装增强功能;
2)会在桌面出现一个文件夹VBoxAdditions_数字的文件,如果桌面上没出现,可以在place(位置)找.
阅读全文…
原文见:http://blog.csdn.net/heiyeshuwu/archive/2008/12/05/3453854.aspx
我是在Ubuntu 10.04环境做的试验
介绍下我的步骤
一、安装apache
sudo apt-get install apache2 php5 php5-dev php5-cli
安装了apache + PHP + php-dev环境,还有php命令行
二,下载php源码
http://www.php.net/downloads.php
三、参照黑哥的文章按步骤即可
补充知识:
apache启动|停止|重启: sudo /ect/init.d/apache2 start|stop|restart
apache的httpd.conf在ubuntu10.04下的路径:/ect/apache2
php.ini路径:/etc/php5/apache2/php.ini ,如果找不到php.ini,先看下是否按照了php
阅读全文…
Google已经发布了Linux平台的Chrome浏览器,用户可以从http://www.google.com/chrome?platform=linux&hl=zh-CN下载安装。目前是测试版,适用于 Linux(Debian/Ubuntu/Fedora/openSUSE).

Linux版Chrome默认使用AR PL UKai CN字体,挺好看的
喜欢Chrome的理由正如Google自己说的那样:
高速:程序启动快,载入网页快
简单:高效、易用性的设计
阅读全文…
首先设置IP
sudo gedit /etc/network/interfaces
将其内容删除
加上一下内容
auto lo
iface lo inet loopback
auto etho
iface etho inet static
阅读全文…
Ubuntu系统打开Windows下生成的文本文件,会在每行的末尾出现’^M’
原因就是Windows和Linux的回车符是不同的
在Windows下回车符是\r\n回车换行
在Linux下回车符是\n
最简单、最常用的解决方法是使用dos2unix命令转换:dos2unix filename
Ubuntu下dos2unix和unix2dos命令在tofrodos包中
安装:apt-get install tofrodos
打开etc/fonts/conf.d/49-sansserif.conf,改成下面的就好了。
<fontconfig>
<!–
If the font still has no generic name, add sans-serif
–>
<match target=”pattern”>
<test qual=”all” name=”family” compare=”not_eq”>
<string>文泉驿正黑</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>文泉驿正黑</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>monospace</string>
</test>
<edit name=”family” mode=”append_last”>
<string>文泉驿正黑</string>
</edit>
</match>
</fontconfig>
1,在redhat系统中可以方便的使用ll列出文件及目录的详细信息,但是ubuntu并没有这个命令,需要使用ls -l来列出详细视图。
2,ls列出的文件应该是不同颜色显示的,但是我的终端上都是一样的颜色,不知道怎么回事,需要ls –color=auto才可以。
我们可以使用alias别名来定义ll命令实现这一功能。
方法为:
编辑~/.bashrc,添加:
阅读全文…