2008-06-28

ubuntu下自由切换jdk的版本

关键字: ubuntu debian java jdk
  有时候会安装多个jdk,有时候需要相互切换。可以使用下面的命令做到:   sudo update-alternatives --config java sudo update-alternatives --config javac   然后选一个编号,就切换过去了,就这么简单。    
  • 16:10
  • 浏览 (26)
  • 评论 (0)
  如果你遇到和我一样的问题,在controller里的方法里按gf,无法跳转到views/下的页面,同时提示E345:无法打开文件,那是因为rails现在是2.1版本了,而了rails.vim太旧了,不支持最新的.html.erb的文件名。   可以这样更新。   到http://git.tpope.net/vim-rails.git 上下载最新的rails.vim,你可能需要安装git   我是ubuntu:   #sudo apt-get install git-gui   然后下载rails.vim: ...
2008-06-23

ubuntu LAMP安装指南

关键字: apache php mysql ubuntu 8.04
Ubuntu Apache-PHP-MySQL Server sudo apt-get install mysql-server-5.0 mysql-client-5.0 sudo apt-get install apache2 php5 libapache2-mod-php5 php5-mysql libapache2-mod-auth-mysql 使用sudo a2enmod php5 enable php5模块 测试一下:      sudo vi /var/www/test.php &n ...
  • 17:25
  • 浏览 (66)
  • 评论 (0)
2008-06-07

ubuntu 重装系统手册

关键字: ubuntu 系统 安装
安装virtualbox sudo apt-get virtualbox-ose useradd username vboxusers chown username:vobxusers /dev/vboxdrv 键盘不能动了,需要在file->首选项->自动捕获键盘,把勾去掉 安装pdf和chm阅读器 sudo apt-get install kpdf gnochm 安装多媒体 sudo apt-get install audacious audacious-plugins-extra sudo apt-get install ...
  • 10:15
  • 浏览 (41)
  • 评论 (0)
2008-06-05

ubuntu virtualbox升级内核后不能用的解决办法

关键字: virtualbox ubuntu 8.04 vboxdrv
  今天升级了最新的内核2.6.24-18,升级后virtualbox又不能用了,出现如下提示:   VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Please install the virtualbox-ose-modules package for your kernel, e.g. virtualbox-ose-modules-gene ...
  • 17:57
  • 浏览 (187)
  • 评论 (2)
2008-05-30

ubuntu firefox听在线音乐

关键字: ubuntu firefox 音乐
  我试过了,现在可以听www.1ting.com的音乐了。   sudo apt-get install mplayer mozilla-mplayer   同时在firefox里安装了一个mediaWrap的plugin,也不知道有用没有用。   同时在about:config里增加了两个配置项:   Network.protocol-handler.app.mms   string /usr/bin/mplayer Network.protocal-handler.external.mms ...
  • 16:20
  • 浏览 (138)
  • 评论 (0)
2008-05-28

firefox本地javascript 调用远程的办法

关键字: firefox ajax
如果本地的javascript要访问远程的内容,在firefox里因为安全性的考虑,缺省的话是不能访问的。在tools ->error console里会出来一下类似: security error, file at ... may not load data from ...的提示。 参考http://www.mozilla.org/projects/security/components/jssec.html 里讲的,在我们的javascript里增加一句: netscape.security.PrivilegeManager.enablePrivilege(&q ...
  • 18:29
  • 浏览 (49)
  • 评论 (0)
2008-05-28

firefox本地javascript 调用远程的办法

关键字: firefox ajax
如果本地的javascript要访问远程的内容,在firefox里因为安全性的考虑,缺省的话是不能访问的。在tools ->error console里会出来一下类似: security error, file at ... may not load data from ...的提示。 参考http://www.mozilla.org/projects/security/components/jssec.html里讲的,在我们的javascript里增加一句: netscape.security.PrivilegeManager.enablePrivilege("Un ...
  • 18:28
  • 浏览 (45)
  • 评论 (0)
sudo apt-get install scim-gtk2-immodule im-switch scim-uim scim-chinese scim-modules-table scim-tables-zh
  • 20:38
  • 浏览 (73)
  • 评论 (0)
2008-04-24

ubuntu8.04如何调整 /home分区大小

关键字: wubi ubuntu 8.04
在windows 下安装用wubi安装ubuntu8.04后,感觉/home不够用。可以使用如下方法增加一个虚拟盘: cd /host/ubuntu/disks # Create a new virtual home.disk of 15000 MB dd if=/dev/zero of=home.disk bs=1MB count=1 seek=15000 mkfs.ext3 -F home.disk # Backup the original directory, and create an empty dir with the same name mv /home / ...
  • 18:43
  • 浏览 (203)
  • 评论 (0)
mineral
搜索本博客
最近加入圈子
存档
最新评论