- 浏览: 91213 次
- 性别:
- 来自: 重庆
最新评论
-
tianyawenke:
...
Ubuntu安装Sopcast -
haohao-xuexi02:
恳请楼主揭帖!
javax.servlet.UnavailableException -
qiu768:
"解决方案: 1、STRUTS中有字段重复。 &qu ...
javax.servlet.UnavailableException -
liutao841204:
...
org.hibernate.StaleStateException -
qiukm321:
我也遇到了这样的问题:
1.检查下你初始化的时候启动线程的对 ...
Exception in thread "Timer-0" java.lang.NullPointe
文章列表
运行程序更新时出现报错:
无法获得锁 /var/lib/dpkg/lock - open (11: 资源临时不可用)
其实这是因为有另外一个程序在运行,导致锁不可用。原因可能是上次运行更新或安装没有正常完成。解决办法时杀死此进程
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
这时系统提示
dpkg 的操作被中断了, 您必须手动执行 'sudo dpkg --configure -a' 以修复这个问题。
按照系统提示输入
sudo dpkg --configure -a
然后再运行你要运行的更新或安装,就O ...
首先就是使用如下命令,列出所有安装的内核,下表中,带有image的就是内核文件。从中选择要卸载的包,用apt-get来卸载
[tc@ibm:~]$ dpkg --get-selections|grep linux
libselinux1 install
linux-386 install
linux-image-2.6.15-23-386 install
linux-image-2.6.15-27-386 install
linux-image-2.6.15-27-686 install
linux-image-2.6.15-28-386 install
linux-image-2.6.15 ...
http://expert.blog.51cto.com/339473/66091
最近,有人将爱国者 MID 上的 PPLive 程序“移植”到了 Ubuntu 上,昨天晚上回家在 Ubuntu 上成功安装了 PPLive 体验了一下,可惜,这个版本毕竟不是 PPLive 官方发布的 Linux 桌面版,虽然可以顺利播放,但是播放窗口不能自由放大/缩 ...
根据官方论坛的帖子安装ATI驱动成功,但是安装后窗口没有了标题栏,而且不能移动。在ubuntu-cn IRC频道上几秒钟就得到了解决方案,如下:
sudo metacity --replace
出现这种现象的主要原因就是窗口管理器metacity没有打开,可能是和其他软件冲突了(注:nautilus是文件管理器
How to add the source of Ubuntu Tweak
open your terminal, first import the key:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com FE85409EEAB40ECCB65740816AF0E1940624A220
type the command to run gedit(or other editor in your opinion) to modify the sources.list:
sudo gedit /etc/apt/sou ...
http://blog.sina.com.cn/s/blog_4d90aa050100fpus.html
Sopcast可以在Ubuntu 9.04使用的一款不错的网络电视软件,当然首先要下载Sopcast。默认使用的是MPlayer。
Sopcast官方网站是 http://www.sopcast.com ,国内可能打不开,需要翻墙才能打开。
1. 大家可以从从http://www.linuxidc.com/Linux/2009-05/19789.htm下载以下两个文件:
sp-auth_3.0.1_i386.deb
sopcast-player_0.2.1-1_i386.deb
2. 首先安装sp-auth_3.0.1_i386.deb(见图3),再安装sopcast-player_0.2 ...
Add the following repos to your /etc/apt/sources.list:
Quote:
deb http://cafelinux.org/Downloads/oz-os tinwoodman main
To do it automatically, copy+paste the above to a command line:
Code:
sudo sh -c "echo 'deb http://cafelinux.org/Downloads/oz-os tinwoodman main' >> /etc/apt/sources.list& ...
- 2009-12-01 18:51
- 浏览 3787
- 评论(0)
sudo apt-get install im-switch fcitx
sudo im-switch -s fcitx -z default
im-switch -s fcitx -z default#修改当前用户的默认输入法, 具体看man im-switch
完成设置最好重启一下X,输入法就生效了.
如果发现软件界面字体是方块, gedit ~/.fcitx/config 或gksu gedit /usr/share/fcitx/data/tables.conf 打开配置文件修改一下字体就OK.
字体列表: xlsfonts或 fc-list (取=前面)
http://wiki ...
- 2009-11-30 20:45
- 浏览 1245
- 评论(0)
备份软件源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
编辑软件源:
sudo gedit /etc/apt/sources.list
更新软件源:
sudo apt-get update
#—– contents of sources.list —————————————————————#
#传说中的中国科技大学 5M/s
deb http://debian.ustc.edu.cn/ubuntu/ karmic main restricted universe multiverse
deb http://d ...
- 2009-11-30 18:28
- 浏览 2212
- 评论(0)
#deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://us.archive.ubuntu ...
- 2009-11-30 17:37
- 浏览 866
- 评论(0)
Cookie cookie = new Cookie(key, "$fa$$$dsfa$fdf");
cookie.setMaxAge(60 * 60 * 24 * 365);
cookie.setPath("/");
response.addCookie(cookie);
//JAVA Cookie里面可以放的的特殊字符 "_","$".
- 2009-05-08 12:38
- 浏览 1310
- 评论(0)
<html>
<head>
<title>transform between native and ascii</title>
</head>
<script type="text/javascript"><!--
var keyStr = "ABCDEFGHIJKLMNOP" +
"QRSTUVWXYZabcdef" +
"ghijklmnopqrstuv" +
...
- 2009-05-07 23:31
- 浏览 8352
- 评论(0)
一、Annotation究竟是什么?
Annotation 提供了一条与程序元素关联任何信息或者任何元数据(metadata)的途径。从某些方面看,annotation就像修饰符一样被使用,并应用于包、类型、构造方法、方法、成员变量、参数、本地变量的声 ...