Dray's Home

疯狂痴呆傻,美甘苦涩禅。

配置MongoDB,使其运行在XAMPP下面

| Comments

今天在 oschina 上看到了这篇文章,讲怎么在 windows 下配置 MongoDB , 结果,我就跟着搞起来了,说下我的过程吧。

  1. 下载mongodb压缩包 http://downloads.mongodb.org/win32/mongodb-win32-i386-2.0.4.zip;

  2. 解压到 E:\xampp\mongodb;

  3. 建立两个目录,一个是日志目录E:\xampp\mongodb\logs\logs.log,一个是存放数据文件的目录E:\xampp\mongodb\mongo_data,然后打开cmd命令行,执行

     E:\xampp\mongodb\bin\mongod --journal --logpath E:\xampp\mongodb\logs\logs.log --logappend --dbpath E:\xampp\mongodb\mongo_data --directoryperdb,
    

    显示:

     E:\>E:\xampp\mongodb\bin\mongod --journal --logpath E:\xampp\mongodb\logs\logs.l
     og --logappend --dbpath E:\xampp\mongodb\mongo_data --directoryperdb
     all output going to: E:\xampp\mongodb\logs\logs.log
    

    表示启动成功,默认使用端口分别是27017和28017,在浏览器中打开 http://localhost:28017,可以看到其相关的一些信息。 可以通过添加参数–port的方式,来修改数据库端口

  4. 为了方便起见,写了连个批处理命令来启动和关闭 mongodb

    mongodb_start.bat

     @echo off
     echo Diese Eingabeforderung nicht waehrend des Running beenden
     echo Please dont close Window while MongoDB is running
     echo MongoDB is trying to start
     echo Please wait  ...
     echo MongoDB is starting with --journal --logpath mongodb\logs\logs.log --logappend --dbpath mongodb\mongo_data --directoryperdb
    
     mongodb\bin\mongod --journal --logpath mongodb\logs\logs.log --logappend --dbpath mongodb\mongo_data --directoryperdb
    
     if errorlevel 1 goto error
     goto finish
    
     :error
     echo.
     echo MongoDB konnte nicht gestartet werden
     echo MongoDB could not be started
     pause
    
     :finish
    

    mongodb_stop.bat

     @echo off
     echo MongoDB shutdowm ...
     apache\bin\pv -f -k mongod.exe -q
    
     :exit
    
  5. 下载php的mongodb插件,http://cloud.github.com/downloads/mongodb/mongo-php-driver/php_mongo-1.2.10.zip,按照你的php版本解压适合的dll文件到php的ext目录中,然后修改php.ini,添加类似 extension=php_mongo-1.2.10-5.3-vc9.dll 的语句,重启apache就OK了。这样你的PHP里就可以使用MongoDB了。

  6. 常用的 mongodb 启动参数

     基本配置
    
     --------------------------------------------------------------------------------
    
      --quiet                          # 安静输出 
      --port arg                       # 指定服务端口号,默认端口27017 
      --bind_ip arg                    # 绑定服务IP,若绑定127.0.0.1,则只能本机访问,不指定默认本地所有IP 
      --logpath arg                    # 指定MongoDB日志文件,注意是指定文件不是目录 
      --logappend                      # 使用追加的方式写日志 
      --pidfilepath arg                # PID File 的完整路径,如果没有设置,则没有PID文件 
      --keyFile arg                    # 集群的私钥的完整路径,只对于Replica Set 架构有效 
      --unixSocketPrefix arg           # UNIX域套接字替代目录,(默认为 /tmp) 
      --fork                           # 以守护进程的方式运行MongoDB,创建服务器进程 
      --auth                           # 启用验证 
      --cpu                            # 定期显示CPU的CPU利用率和iowait 
      --dbpath arg                     # 指定数据库路径 
      --diaglog arg                    # diaglog选项 0=off 1=W 2=R 3=both 7=W+some reads 
      --directoryperdb                 # 设置每个数据库将被保存在一个单独的目录 
      --journal                        # 启用日志选项,MongoDB的数据操作将会写入到journal文件夹的文件里 
      --journalOptions arg             # 启用日志诊断选项 
      --ipv6                           # 启用IPv6选项 
      --jsonp                          # 允许JSONP形式通过HTTP访问(有安全影响) 
      --maxConns arg                   # 最大同时连接数 默认2000 
      --noauth                         # 不启用验证 
      --nohttpinterface                # 关闭http接口,默认关闭27018端口访问 
      --noprealloc                     # 禁用数据文件预分配(往往影响性能) 
      --noscripting                    # 禁用脚本引擎 
      --notablescan                    # 不允许表扫描 
      --nounixsocket                   # 禁用Unix套接字监听 
      --nssize arg (=16)               # 设置信数据库.ns文件大小(MB) 
      --objcheck                       # 在收到客户数据,检查的有效性, 
       --quota                          # 限制每个数据库的文件数,设置默认为8 
      --quotaFiles arg                 #  number of files allower per db, requires --quota 
      --rest                           # 开启简单的rest API 
      --repair                         # 修复所有数据库run repair on all dbs 
      --repairpath arg                 # 修复库生成的文件的目录,默认为目录名称dbpath 
      --profile arg         0=off 1=slow, 2=all  (0表示关闭profile,1表示只记录执行时间超过slowms配置的值的执行内容,2表示记录所有执行内容)
       --slowms arg (=100)   value of slow for profile and console log (如果profile配置为1并且没有配置slowms的话默认是100毫秒)
      --smallfiles                     # 使用较小的默认文件 
      --syncdelay arg (=60)            # 数据写入磁盘的时间秒数(0=never,不推荐) 
      --sysinfo                        # 打印一些诊断系统信息 
      --upgrade                        # 如果需要升级数据库 
      * Replicaton 参数
    
     --------------------------------------------------------------------------------
    
      --fastsync                      # 从一个dbpath里启用从库复制服务,该dbpath的数据库是主库的快照,可用于快速启用同步 
      --autoresync                    # 如果从库与主库同步数据差得多,自动重新同步, 
      --oplogSize arg                 # 设置oplog的大小(MB) 
      * 主/从参数
    
     --------------------------------------------------------------------------------
    
      --master                        # 主库模式 
      --slave                         # 从库模式 
      --source arg                    # 从库 端口号 
      --only arg                      # 指定单一的数据库复制 
      --slavedelay arg                # 设置从库同步主库的延迟时间 
    
      * Replica set(副本集)选项:
    
     --------------------------------------------------------------------------------
    
      --replSet arg                   # 设置副本集名称 
      * Sharding(分片)选项
    
     --------------------------------------------------------------------------------
    
      --configsvr                    # 声明这是一个集群的config服务,默认端口27019,默认目录/data/configdb 
      --shardsvr                     # 声明这是一个集群的分片,默认端口27018 
      --noMoveParanoia               # 关闭偏执为moveChunk数据保存? 
    
  7. 上述参数都可以写入 mongod.conf 配置文档里例如:

     dbpath = mongodb\mongo_data
     directoryperdb = true
     logpath = mongodb\logs\logs.log
     logappend = true
     journal = true
    
  8. 然后使用类似下面的语句启动 mongodb

     E:\xampp>mongodb\bin\mongod.exe --config  mongodb\mongodb.conf
    

关于CI放在二级路径下面,URL下面带二级目录的时候全部页面404的问题

| Comments

今天心血来潮下了最新版的CI框架,想研究一下它的URI跳转是怎么做的,没想到搭建起来之后访问任何地址全部都是404。仔细研究后发现,原来是CI不支持二级目录的URL路径,例如:http://localhost/CodeIgniter_2.1.0_1/,CI 就会以为 CodeIgniter_2.1.0_1 是控制器,然后就去 controllers 目录里去找,但事实上那个是二级目录。

这个问题我有提交到CI论坛,不知道算不算一个BUG。

以下是解决方法: 1.首先在CI根目录添加了一个.htaccess 文件,内容是这样:

1
2
3
4
5
RewriteEngine On
RewriteBase /CodeIgniter_2.1.0_1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /CodeIgniter_2.1.0_1/index.php?/$1 [L]

修改了 system/core/URI.php 文件的 set_uri_string 函数和 explode_segments 函数

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
     * Set the URI String
     *
     * @access  public
     * @param   string
     * @return  string
     */
    function _set_uri_string($str) {
        if ($this->config->item("base_folder")) {
            if ($str == $this->config->item("base_folder")) {
                $str = "";
            }
        }
 
        // Filter out control characters        
        $str = remove_invisible_characters($str, FALSE);
 
        // If the URI contains only a slash we'll kill it
        $this->uri_string = ($str == '/') ? '' : $str;
    }
 
 
    /**
     * Explode the URI Segments. The individual segments will
     * be stored in the $this->segments array.
     *
     * @access  private
     * @return  void
     */
    function _explode_segments() {
        $is_ignored = FALSE;
        foreach (explode("/", preg_replace("|/*(.+?)/*$|", "\1", $this->uri_string)) as $val) {
            // Filter segments for security
            $val = trim($this->_filter_uri($val));
 
            if ($val != '') {
                if (!$is_ignored && $this->config->item("base_folder")) {
                    if ($val == $this->config->item("base_folder")) {
                        $is_ignored = TRUE;
                        continue;
                    }
                }
                $this->segments[] = $val;
            }
        }
    }

在 application/config/config.php 里面增加了配置:

1
$config['base_folder']  = 'CodeIgniter_2.1.0_1';

OK,现在就可以运行了。

在 Ubuntu 11.10 下安装 Ruby on Rails

| Comments

  1. 安装常用到组件

     sudo apt-get install git curl
    
  2. 安装 rvm

    1.配置

     bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
    

    2.修改控制台配置文件,将 rvm 添加到命令控制台

     gedit ~/.bashrc
    

    3.在 .bashrc 最后添加

     [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
    

    4.更新控制台配置:

     source ~/.bashrc
    

    5.测试 rvm 是否正确安装

     type rvm | head -1
    

    如果显示出来 rvm is a function 或者 rvm 是个函数 那么就证明 rvm 安装成功

    6.执行 rvm 命令,查看都需要安装那些组件

     rvm requirements
    

    然后安装提示的内容安装必须到一些组件。

  3. 安装 ruby

     rvm install 1.9.2
     rvm use 1.9.2
    

    调用 ruby -v 参加 ruby 是否安装成功

  4. 安装 rails

     gem install rails
    

    新建 ROR 项目

     mkdir myapp
     cd  myapp/
     rails new demo
     cd demo
     rails server
    

至此,ubuntu 下的 ruby on rails 安装完毕,可以开始编程了。

上传文件夹

| Comments

最近公司的产品要用到上传目录的功能,所以查了一些资料,现记录下来。

现有的方案:

http://www.cnblogs.com/xproer/archive/2010/10/24/1859895.html
    国内的收费版本,支持大部分微软的脚本语言,实用 Activex 控件实现

http://slickupload.com/
    国外的,社区版免费,只支持最新版的浏览器,应该是html5的方式实现的

资料:

http://blog.sina.com.cn/s/blog_4c6e822d0102dsma.html
    遍历上传目录的 asp.net 版本

http://www.cnblogs.com/qingyuan/articles/1519057.html
    压缩目录上传再解压的例子 asp.net

http://www.example-code.com/vbdotnet/ftpUploadTree.asp
    ftp 的方式上传文件 vb.net

http://topic.csdn.net/t/20061110/15/5148605.html
    csdn 讨论贴

http://q.cnblogs.com/q/24221/
    cnblog 讨论贴

http://www.aurigma.com/docs/iu7/uploading-folders-in-aspnet.htm
    Uploading Folders in ASP.NET

http://www.cnwing.net/u/catinnight/200982111713.shtml
    upload 说明

发现基本实现的思想基本上分以下几种:

  1. 使用组件,比如 Activex 组件或者 java 组件,这些组件都是需要客户端下载并同意使用的。例如,网易相册,QQ相册等。可惜,我不会写这些东西。
  2. asp.net 貌似可以通过遍历查询传递过来的目录下的内容,来批量将文件加入上传列表,来实现上传目录的功能。
  3. 使用zip等压缩工具压缩之后再上传,但是需要先授权调用外部的压缩程序,貌似也只有.net能做到这个吧。
  4. 使用ftp的方式上传,需要服务器开启ftp权限。

好吧,就这样,不知道经理怎么选,不过使用.net开发windows专用的网站看来还是比较简单的啊。

Hello Octopress

| Comments

Octopress 是一个很不错的 blog 程序,好处我就不说了,自己查文档,现在把我安装时碰到的问题记录下来,供后来的朋友参考。

从wordpress导出数据

我参考前面诸位写出来的ruby代码:wordpress2Markdown

这个ruby脚本的功能:

  • 循环匹配多种代码块,替换为 octopress 格式的代码块
  • 替换url中的汉字为拼音,并去掉不能转换的标点符号等
  • 输出文件到 ansi as utf-8 格式的文件中,避免中文字符乱码

我碰到的问题

第一个:

rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. U
sing bundle exec may solve this.
(See full trace by running task with --trace)

解决:

bundle exec rake 

用上面的语句替代 rake 执行命令

第二个:

* * Invoke generate (first_time)
* * Execute generate
# # Generating Site with Jekyll
Unchanged sass/screen. SCSS
D: / RailsInstaller/Ruby1.9.2 / lib/ruby / 1.9.1 / psych. Rb: 148: in ` parse ': peasants' t par
Se YAML at line 68 column 0 (Psych: : SyntaxError)

解决:

_config.yml ':' 后面必须要有空格

第三个:

D:\Dray\U\Git\MyOctopressBlogTest>bundle exec rake preview
Starting to watch source with Jekyll and Compass. Starting Rack on port 4000
[2012-02-10 09:24:37] INFO  WEBrick 1.3.1
[2012-02-10 09:24:37] INFO  ruby 1.9.2 (2011-07-09) [i386-mingw32]
[2012-02-10 09:24:37] INFO  WEBrick::HTTPServer#start: pid=7672 port=4000
Configuration from D:/Dray/U/Git/MyOctopressBlogTest/_config.yml
Auto-regenerating enabled: source -> public
[2012-02-10 09:24:42] regeneration: 1730 files changed
>>> Compass is polling for changes. Press Ctrl-C to Stop.
Liquid Exception: incompatible character encodings: UTF-8 and CP850 in atom.xml
Liquid Exception: incompatible character encodings: UTF-8 and CP850 in atom.xml
Liquid Exception: incompatible character encodings: UTF-8 and CP850 in atom.xml
Liquid Exception: incompatible character encodings: UTF-8 and CP850 in atom.xml
Liquid Exception: incompatible character encodings: UTF-8 and CP850 in atom.xml
Liquid Exception: incompatible character encodings: UTF-8 and CP850 in atom.xml
Liquid Exception: incompatible character encodings: UTF-8 and CP850 in atom.xml
Liquid Exception: incompatible character encodings: UTF-8 and CP850 in atom.xml

解决:

这个错误是因为 windows 下 cmd 默认用 ansi 格式的字符串来调用命令,解决的方法是:
打开 shell|cmd 之后,先执行

    set LC_ALL=en_US.UTF-8
    set LANG=en_US.UTF-8

然后再执行 rake 的命令。
或者,在 d:\RailsInstaller\Ruby1.9.2\setup_environment.bat 的最后面加上这两句。

第四个:

## copying public to _deploy
rake aborted!
unknown file type: public/./blog/categories/??

解决:

这个就很郁闷了,categories 分类不能有中文的,现在嘛还无解

常用的编译提交命令

bundle exec rake generate && bundle exec rake deploy

常用的官方文档

Windows 下的 Nodejs

| Comments

为什么搞这个?

  1. 公司电脑的权限管理比较严,不能安装软件,不能常驻系统进程等,所以像 xampp 之类的都不能正常执行
  2. 我又想在空闲的时候做点东西
  3. 所以坑爹的我只能自己研究在windows下运行nodejs了

修改 Vs2010 默认浏览器

| Comments

修改该目录里的配置文件

C:\Users[登陆账户ID]\AppData\Local\Microsoft\VisualStudio\10.0\browsers.xml 修改为

1
<?xml version="1.0"?><browserinfo><browser><name>Mozilla Firefox</name><path>"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"</path><resolution>0</resolution><isdefault>True</isdefault></browser><browser><name>Internet Explorer</name><path>"C:\Program Files (x86)\Internet Explorer\iexplore.exe"</path><resolution>0</resolution><isdefault>False</isdefault><dde><service>IExplore</service><topicopenurl>WWW_OpenURL</topicopenurl><itemopenurl>"%s",,0xffffffff,3,,,,</itemopenurl><topicactivate>WWW_Activate</topicactivate><itemactivate>0xffffffff,0</itemactivate></dde></browser></browserinfo>

然后保存为只读,Ok了

Ubuntu 11.10 Beta 2 (Oneiric Ocelot) 发布了

| Comments

下载地址:

http://www.ubuntu.com/testing/download (Ubuntu and Ubuntu Server) http://releases.ubuntu.com/oneiric/ (Ubuntu, Ubuntu Server) http://cloud-images.ubuntu.com/releases/oneiric/beta-2/ (Ubuntu Cloud Images) http://cdimage.ubuntu.com/releases/oneiric/beta-2/ (Ubuntu DVD, Alternates, pre-installed ARM Images) http://cdimage.ubuntu.com/netboot/11.10/ (Ubuntu Netboot) http://releases.ubuntu.com/kubuntu/oneiric/ (Kubuntu) http://cdimage.ubuntu.com/kubuntu/releases/oneiric/beta-2/ (Kubuntu DVD) http://cdimage.ubuntu.com/xubuntu/releases/oneiric/beta-2/ (Xubuntu) http://cdimage.ubuntu.com/edubuntu/releases/oneiric/beta-2/ (Edubuntu) http://cdimage.ubuntu.com/ubuntustudio/releases/oneiric/beta-2/ (Ubuntu Studio) http://cdimage.ubuntu.com/mythbuntu/releases/oneiric/beta-2/ (Mythbuntu) http://cdimage.ubuntu.com/lubuntu/releases/oneiric/beta-2/ (Lubuntu)

The final version of Ubuntu 11.10 is expected to be released on October 13 2011.

Ubuntu 删除已安装的桌面

| Comments

Remove Kubuntu Paste this command into the terminal:

1
sudo apt-get remove akonadi-server akregator amarok amarok-common amarok-utils appmenu-qt apport-kde apturl-kde ark bluedevil cdparanoia cdrdao docbook-xsl dolphin dragonplayer freespacenotifier gdebi-core gdebi-kde gnupg-agent gnupg2 gpgsm gtk2-engines-oxygen gwenview ibus-qt4 icoutils jockey-kde k3b k3b-data kaddressbook kamera kate kcalc kde-config-gtk kde-config-touchpad kde-window-manager kde-zeroconf kdebase-bin kdebase-data kdebase-runtime kdebase-runtime-data kdebase-workspace kdebase-workspace-bin kdebase-workspace-data kdebase-workspace-kgreet-plugins kdegames-card-data kdegraphics-libs-data kdegraphics-strigi-plugins kdelibs-bin kdelibs5-data kdelibs5-plugins kdemultimedia-kio-plugins kdenetwork-filesharing kdepasswd kdepim-groupware kdepim-kresources kdepim-runtime kdepim-strigi-plugins kdepim-wizards kdepimlibs-kio-plugins kdesudo kdm kdoctools kfind khelpcenter4 kinfocenter klipper kmag kmail kmix kmousetool knm-runtime knotes konsole kontact kopete kopete-message-indicator korganizer kpackagekit kpat kppp krdc krfb krosspython ksnapshot ksysguard ksysguardd ksystemlog ktimetracker ktorrent ktorrent-data kubuntu-debug-installer kubuntu-default-settings kubuntu-desktop kubuntu-docs kubuntu-firefox-installer kubuntu-konqueror-shortcuts kubuntu-netbook-default-settings kubuntu-notification-helper kvkbd kwalletmanager language-selector-kde libakonadi-contact4 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4 libakonadi-kmime4 libakonadiprotocolinternals1 libao-common libao4 libasyncns0 libattica0 libaudio2 libbluedevil1 libboost-program-options1.42.0 libcln6 libclucene0ldbl libdbusmenu-qt2 libdebconf-kde0 libdiscid0 libdmtx0a libepub0 libflac++6 libgif4 libgpgme++2 libgps19 libibus-qt1 libilmbase6 libindicate-qt1 libiodbc2 libk3b6 libkabc4 libkatepartinterfaces4 libkblog4 libkcal4 libkcalcore4 libkcalutils4 libkcddb4 libkcmutils4 libkdcraw9 libkde3support4 libkdecorations4 libkdecore5 libkdegames5 libkdepim4 libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4 libkephal4a libkexiv2-9 libkfile4 libkholidays4 libkhtml5 libkidletime4 libkimap4 libkimproxy4 libkio5 libkipi8 libkjsapi4 libkjsembed4 libkldap4 libkleo4 libkmediaplayer4 libkmime4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkonq5-templates libkonq5a libkontactinterface4 libkopete4 libkparts4 libkpgp4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkpty4 libkresources4 libkrosscore4 libksba8 libkscreensaver5 libksgrd4 libksieve4 libksignalplotter4 libktexteditor4 libktnef4 libktorrent-l10n libktorrent2 libkunitconversion4 libkutils4 libkwineffects1a libkworkspace4 libkxmlrpcclient4 liblastfm0 libloudmouth1-0 libmailtransport4 libmessagecore4 libmessagelist4 libmicroblog4 libmimelib4 libmng1 libmpcdec6 libmsn0.3 libmusicbrainz3-6 libmysqlclient16 libnepomuk4 libnepomukquery4a libnepomukutils4 libntrack-qt4-1 libntrack0 libokularcore1 libopenexr6 libotr2 libpackagekit-glib2-14 libpackagekit-qt14 libphonon4 libplasma-geolocation-interface4 libplasma3 libplasmaclock4b libplasmagenericshell4 libpolkit-qt-1-1 libpoppler-qt4-3 libpowerdevilcore0 libprocesscore4b libprocessui4a libqalculate5 libqapt-runtime libqapt1 libqca2 libqca2-plugin-ossl libqgpgme1 libqimageblitz4 libqjson0 libqt4-dbus libqt4-declarative libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtassistantclient4 libqtcore4 libqtgui4 libqtscript4-core libqtscript4-gui libqtscript4-network libqtscript4-sql libqtscript4-uitools libqtscript4-xml libqtwebkit4 libreadline5 libreoffice-kde libreoffice-style-oxygen libsolid4 libsolidcontrol4a libsolidcontrolifaces4a libsoprano4 libssh-4 libstreamanalyzer0 libstreams0 libsyndication4 libtag-extras1 libtaskmanager4b libthreadweaver4 libvirtodbc0 libvncserver0 libweather-ion6 libzip1 mysql-client-core-5.1 mysql-common mysql-server-core-5.1 nepomukcontroller network-manager-pptp-kde ntrack-module-libnl-0 odbcinst odbcinst1debian2 okular okular-extra-backends oxygen-cursor-theme oxygen-icon-theme oxygen-icon-theme-complete packagekit packagekit-backend-aptcc partitionmanager phonon phonon-backend-gstreamer pinentry-gtk2 pinentry-qt4 plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-netbook plasma-scriptengine-declarative plasma-scriptengine-javascript plasma-scriptengine-python plasma-widget-facebook plasma-widget-folderview plasma-widget-kimpanel plasma-widget-kimpanel-backend-ibus plasma-widget-menubar plasma-widget-message-indicator plasma-widget-networkmanagement plasma-widget-quickaccess plasma-widgets-addons plasma-widgets-workspace plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text polkit-kde-1 printer-applet python-kde4 python-packagekit python-pyudev python-qt4 python-qt4-dbus python-sip qapt-batch quassel quassel-data rekonq shared-desktop-ontologies software-properties-kde soprano-daemon system-config-printer-kde systemsettings update-manager-kde usb-creator-kde userconfig virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common && sudo apt-get install ubuntu-desktop

Remove Xubuntu Paste this command into the terminal:

1
sudo apt-get remove akonadi-server akregator amarok amarok-common amarok-utils appmenu-qt apport-kde apturl-kde ark bluedevil cdparanoia cdrdao docbook-xsl dolphin dragonplayer freespacenotifier gdebi-core gdebi-kde gnupg-agent gnupg2 gpgsm gtk2-engines-oxygen gwenview ibus-qt4 icoutils jockey-kde k3b k3b-data kaddressbook kamera kate kcalc kde-config-gtk kde-config-touchpad kde-window-manager kde-zeroconf kdebase-bin kdebase-data kdebase-runtime kdebase-runtime-data kdebase-workspace kdebase-workspace-bin kdebase-workspace-data kdebase-workspace-kgreet-plugins kdegames-card-data kdegraphics-libs-data kdegraphics-strigi-plugins kdelibs-bin kdelibs5-data kdelibs5-plugins kdemultimedia-kio-plugins kdenetwork-filesharing kdepasswd kdepim-groupware kdepim-kresources kdepim-runtime kdepim-strigi-plugins kdepim-wizards kdepimlibs-kio-plugins kdesudo kdm kdoctools kfind khelpcenter4 kinfocenter klipper kmag kmail kmix kmousetool knm-runtime knotes konsole kontact kopete kopete-message-indicator korganizer kpackagekit kpat kppp krdc krfb krosspython ksnapshot ksysguard ksysguardd ksystemlog ktimetracker ktorrent ktorrent-data kubuntu-debug-installer kubuntu-default-settings kubuntu-desktop kubuntu-docs kubuntu-firefox-installer kubuntu-konqueror-shortcuts kubuntu-netbook-default-settings kubuntu-notification-helper kvkbd kwalletmanager language-selector-kde libakonadi-contact4 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4 libakonadi-kmime4 libakonadiprotocolinternals1 libao-common libao4 libasyncns0 libattica0 libaudio2 libbluedevil1 libboost-program-options1.42.0 libcln6 libclucene0ldbl libdbusmenu-qt2 libdebconf-kde0 libdiscid0 libdmtx0a libepub0 libflac++6 libgif4 libgpgme++2 libgps19 libibus-qt1 libilmbase6 libindicate-qt1 libiodbc2 libk3b6 libkabc4 libkatepartinterfaces4 libkblog4 libkcal4 libkcalcore4 libkcalutils4 libkcddb4 libkcmutils4 libkdcraw9 libkde3support4 libkdecorations4 libkdecore5 libkdegames5 libkdepim4 libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4 libkephal4a libkexiv2-9 libkfile4 libkholidays4 libkhtml5 libkidletime4 libkimap4 libkimproxy4 libkio5 libkipi8 libkjsapi4 libkjsembed4 libkldap4 libkleo4 libkmediaplayer4 libkmime4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkonq5-templates libkonq5a libkontactinterface4 libkopete4 libkparts4 libkpgp4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkpty4 libkresources4 libkrosscore4 libksba8 libkscreensaver5 libksgrd4 libksieve4 libksignalplotter4 libktexteditor4 libktnef4 libktorrent-l10n libktorrent2 libkunitconversion4 libkutils4 libkwineffects1a libkworkspace4 libkxmlrpcclient4 liblastfm0 libloudmouth1-0 libmailtransport4 libmessagecore4 libmessagelist4 libmicroblog4 libmimelib4 libmng1 libmpcdec6 libmsn0.3 libmusicbrainz3-6 libmysqlclient16 libnepomuk4 libnepomukquery4a libnepomukutils4 libntrack-qt4-1 libntrack0 libokularcore1 libopenexr6 libotr2 libpackagekit-glib2-14 libpackagekit-qt14 libphonon4 libplasma-geolocation-interface4 libplasma3 libplasmaclock4b libplasmagenericshell4 libpolkit-qt-1-1 libpoppler-qt4-3 libpowerdevilcore0 libprocesscore4b libprocessui4a libqalculate5 libqapt-runtime libqapt1 libqca2 libqca2-plugin-ossl libqgpgme1 libqimageblitz4 libqjson0 libqt4-dbus libqt4-declarative libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtassistantclient4 libqtcore4 libqtgui4 libqtscript4-core libqtscript4-gui libqtscript4-network libqtscript4-sql libqtscript4-uitools libqtscript4-xml libqtwebkit4 libreadline5 libreoffice-kde libreoffice-style-oxygen libsolid4 libsolidcontrol4a libsolidcontrolifaces4a libsoprano4 libssh-4 libstreamanalyzer0 libstreams0 libsyndication4 libtag-extras1 libtaskmanager4b libthreadweaver4 libvirtodbc0 libvncserver0 libweather-ion6 libzip1 mysql-client-core-5.1 mysql-common mysql-server-core-5.1 nepomukcontroller network-manager-pptp-kde ntrack-module-libnl-0 odbcinst odbcinst1debian2 okular okular-extra-backends oxygen-cursor-theme oxygen-icon-theme oxygen-icon-theme-complete packagekit packagekit-backend-aptcc partitionmanager phonon phonon-backend-gstreamer pinentry-gtk2 pinentry-qt4 plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-netbook plasma-scriptengine-declarative plasma-scriptengine-javascript plasma-scriptengine-python plasma-widget-facebook plasma-widget-folderview plasma-widget-kimpanel plasma-widget-kimpanel-backend-ibus plasma-widget-menubar plasma-widget-message-indicator plasma-widget-networkmanagement plasma-widget-quickaccess plasma-widgets-addons plasma-widgets-workspace plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text polkit-kde-1 printer-applet python-kde4 python-packagekit python-pyudev python-qt4 python-qt4-dbus python-sip qapt-batch quassel quassel-data rekonq shared-desktop-ontologies software-properties-kde soprano-daemon system-config-printer-kde systemsettings update-manager-kde usb-creator-kde userconfig virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common && sudo apt-get install ubuntu-desktop

Remove Edubuntu Paste this command into the terminal:

1
sudo apt-get remove akonadi-server akregator amarok amarok-common amarok-utils appmenu-qt apport-kde apturl-kde ark bluedevil cdparanoia cdrdao docbook-xsl dolphin dragonplayer freespacenotifier gdebi-core gdebi-kde gnupg-agent gnupg2 gpgsm gtk2-engines-oxygen gwenview ibus-qt4 icoutils jockey-kde k3b k3b-data kaddressbook kamera kate kcalc kde-config-gtk kde-config-touchpad kde-window-manager kde-zeroconf kdebase-bin kdebase-data kdebase-runtime kdebase-runtime-data kdebase-workspace kdebase-workspace-bin kdebase-workspace-data kdebase-workspace-kgreet-plugins kdegames-card-data kdegraphics-libs-data kdegraphics-strigi-plugins kdelibs-bin kdelibs5-data kdelibs5-plugins kdemultimedia-kio-plugins kdenetwork-filesharing kdepasswd kdepim-groupware kdepim-kresources kdepim-runtime kdepim-strigi-plugins kdepim-wizards kdepimlibs-kio-plugins kdesudo kdm kdoctools kfind khelpcenter4 kinfocenter klipper kmag kmail kmix kmousetool knm-runtime knotes konsole kontact kopete kopete-message-indicator korganizer kpackagekit kpat kppp krdc krfb krosspython ksnapshot ksysguard ksysguardd ksystemlog ktimetracker ktorrent ktorrent-data kubuntu-debug-installer kubuntu-default-settings kubuntu-desktop kubuntu-docs kubuntu-firefox-installer kubuntu-konqueror-shortcuts kubuntu-netbook-default-settings kubuntu-notification-helper kvkbd kwalletmanager language-selector-kde libakonadi-contact4 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4 libakonadi-kmime4 libakonadiprotocolinternals1 libao-common libao4 libasyncns0 libattica0 libaudio2 libbluedevil1 libboost-program-options1.42.0 libcln6 libclucene0ldbl libdbusmenu-qt2 libdebconf-kde0 libdiscid0 libdmtx0a libepub0 libflac++6 libgif4 libgpgme++2 libgps19 libibus-qt1 libilmbase6 libindicate-qt1 libiodbc2 libk3b6 libkabc4 libkatepartinterfaces4 libkblog4 libkcal4 libkcalcore4 libkcalutils4 libkcddb4 libkcmutils4 libkdcraw9 libkde3support4 libkdecorations4 libkdecore5 libkdegames5 libkdepim4 libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4 libkephal4a libkexiv2-9 libkfile4 libkholidays4 libkhtml5 libkidletime4 libkimap4 libkimproxy4 libkio5 libkipi8 libkjsapi4 libkjsembed4 libkldap4 libkleo4 libkmediaplayer4 libkmime4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkonq5-templates libkonq5a libkontactinterface4 libkopete4 libkparts4 libkpgp4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkpty4 libkresources4 libkrosscore4 libksba8 libkscreensaver5 libksgrd4 libksieve4 libksignalplotter4 libktexteditor4 libktnef4 libktorrent-l10n libktorrent2 libkunitconversion4 libkutils4 libkwineffects1a libkworkspace4 libkxmlrpcclient4 liblastfm0 libloudmouth1-0 libmailtransport4 libmessagecore4 libmessagelist4 libmicroblog4 libmimelib4 libmng1 libmpcdec6 libmsn0.3 libmusicbrainz3-6 libmysqlclient16 libnepomuk4 libnepomukquery4a libnepomukutils4 libntrack-qt4-1 libntrack0 libokularcore1 libopenexr6 libotr2 libpackagekit-glib2-14 libpackagekit-qt14 libphonon4 libplasma-geolocation-interface4 libplasma3 libplasmaclock4b libplasmagenericshell4 libpolkit-qt-1-1 libpoppler-qt4-3 libpowerdevilcore0 libprocesscore4b libprocessui4a libqalculate5 libqapt-runtime libqapt1 libqca2 libqca2-plugin-ossl libqgpgme1 libqimageblitz4 libqjson0 libqt4-dbus libqt4-declarative libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtassistantclient4 libqtcore4 libqtgui4 libqtscript4-core libqtscript4-gui libqtscript4-network libqtscript4-sql libqtscript4-uitools libqtscript4-xml libqtwebkit4 libreadline5 libreoffice-kde libreoffice-style-oxygen libsolid4 libsolidcontrol4a libsolidcontrolifaces4a libsoprano4 libssh-4 libstreamanalyzer0 libstreams0 libsyndication4 libtag-extras1 libtaskmanager4b libthreadweaver4 libvirtodbc0 libvncserver0 libweather-ion6 libzip1 mysql-client-core-5.1 mysql-common mysql-server-core-5.1 nepomukcontroller network-manager-pptp-kde ntrack-module-libnl-0 odbcinst odbcinst1debian2 okular okular-extra-backends oxygen-cursor-theme oxygen-icon-theme oxygen-icon-theme-complete packagekit packagekit-backend-aptcc partitionmanager phonon phonon-backend-gstreamer pinentry-gtk2 pinentry-qt4 plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-netbook plasma-scriptengine-declarative plasma-scriptengine-javascript plasma-scriptengine-python plasma-widget-facebook plasma-widget-folderview plasma-widget-kimpanel plasma-widget-kimpanel-backend-ibus plasma-widget-menubar plasma-widget-message-indicator plasma-widget-networkmanagement plasma-widget-quickaccess plasma-widgets-addons plasma-widgets-workspace plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text polkit-kde-1 printer-applet python-kde4 python-packagekit python-pyudev python-qt4 python-qt4-dbus python-sip qapt-batch quassel quassel-data rekonq shared-desktop-ontologies software-properties-kde soprano-daemon system-config-printer-kde systemsettings update-manager-kde usb-creator-kde userconfig virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common && sudo apt-get install ubuntu-desktop

Remove Lubuntu Paste this command into the terminal:

1
sudo apt-get remove akonadi-server akregator amarok amarok-common amarok-utils appmenu-qt apport-kde apturl-kde ark bluedevil cdparanoia cdrdao docbook-xsl dolphin dragonplayer freespacenotifier gdebi-core gdebi-kde gnupg-agent gnupg2 gpgsm gtk2-engines-oxygen gwenview ibus-qt4 icoutils jockey-kde k3b k3b-data kaddressbook kamera kate kcalc kde-config-gtk kde-config-touchpad kde-window-manager kde-zeroconf kdebase-bin kdebase-data kdebase-runtime kdebase-runtime-data kdebase-workspace kdebase-workspace-bin kdebase-workspace-data kdebase-workspace-kgreet-plugins kdegames-card-data kdegraphics-libs-data kdegraphics-strigi-plugins kdelibs-bin kdelibs5-data kdelibs5-plugins kdemultimedia-kio-plugins kdenetwork-filesharing kdepasswd kdepim-groupware kdepim-kresources kdepim-runtime kdepim-strigi-plugins kdepim-wizards kdepimlibs-kio-plugins kdesudo kdm kdoctools kfind khelpcenter4 kinfocenter klipper kmag kmail kmix kmousetool knm-runtime knotes konsole kontact kopete kopete-message-indicator korganizer kpackagekit kpat kppp krdc krfb krosspython ksnapshot ksysguard ksysguardd ksystemlog ktimetracker ktorrent ktorrent-data kubuntu-debug-installer kubuntu-default-settings kubuntu-desktop kubuntu-docs kubuntu-firefox-installer kubuntu-konqueror-shortcuts kubuntu-netbook-default-settings kubuntu-notification-helper kvkbd kwalletmanager language-selector-kde libakonadi-contact4 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4 libakonadi-kmime4 libakonadiprotocolinternals1 libao-common libao4 libasyncns0 libattica0 libaudio2 libbluedevil1 libboost-program-options1.42.0 libcln6 libclucene0ldbl libdbusmenu-qt2 libdebconf-kde0 libdiscid0 libdmtx0a libepub0 libflac++6 libgif4 libgpgme++2 libgps19 libibus-qt1 libilmbase6 libindicate-qt1 libiodbc2 libk3b6 libkabc4 libkatepartinterfaces4 libkblog4 libkcal4 libkcalcore4 libkcalutils4 libkcddb4 libkcmutils4 libkdcraw9 libkde3support4 libkdecorations4 libkdecore5 libkdegames5 libkdepim4 libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4 libkephal4a libkexiv2-9 libkfile4 libkholidays4 libkhtml5 libkidletime4 libkimap4 libkimproxy4 libkio5 libkipi8 libkjsapi4 libkjsembed4 libkldap4 libkleo4 libkmediaplayer4 libkmime4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkonq5-templates libkonq5a libkontactinterface4 libkopete4 libkparts4 libkpgp4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkpty4 libkresources4 libkrosscore4 libksba8 libkscreensaver5 libksgrd4 libksieve4 libksignalplotter4 libktexteditor4 libktnef4 libktorrent-l10n libktorrent2 libkunitconversion4 libkutils4 libkwineffects1a libkworkspace4 libkxmlrpcclient4 liblastfm0 libloudmouth1-0 libmailtransport4 libmessagecore4 libmessagelist4 libmicroblog4 libmimelib4 libmng1 libmpcdec6 libmsn0.3 libmusicbrainz3-6 libmysqlclient16 libnepomuk4 libnepomukquery4a libnepomukutils4 libntrack-qt4-1 libntrack0 libokularcore1 libopenexr6 libotr2 libpackagekit-glib2-14 libpackagekit-qt14 libphonon4 libplasma-geolocation-interface4 libplasma3 libplasmaclock4b libplasmagenericshell4 libpolkit-qt-1-1 libpoppler-qt4-3 libpowerdevilcore0 libprocesscore4b libprocessui4a libqalculate5 libqapt-runtime libqapt1 libqca2 libqca2-plugin-ossl libqgpgme1 libqimageblitz4 libqjson0 libqt4-dbus libqt4-declarative libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-sql-sqlite libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtassistantclient4 libqtcore4 libqtgui4 libqtscript4-core libqtscript4-gui libqtscript4-network libqtscript4-sql libqtscript4-uitools libqtscript4-xml libqtwebkit4 libreadline5 libreoffice-kde libreoffice-style-oxygen libsolid4 libsolidcontrol4a libsolidcontrolifaces4a libsoprano4 libssh-4 libstreamanalyzer0 libstreams0 libsyndication4 libtag-extras1 libtaskmanager4b libthreadweaver4 libvirtodbc0 libvncserver0 libweather-ion6 libzip1 mysql-client-core-5.1 mysql-common mysql-server-core-5.1 nepomukcontroller network-manager-pptp-kde ntrack-module-libnl-0 odbcinst odbcinst1debian2 okular okular-extra-backends oxygen-cursor-theme oxygen-icon-theme oxygen-icon-theme-complete packagekit packagekit-backend-aptcc partitionmanager phonon phonon-backend-gstreamer pinentry-gtk2 pinentry-qt4 plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-netbook plasma-scriptengine-declarative plasma-scriptengine-javascript plasma-scriptengine-python plasma-widget-facebook plasma-widget-folderview plasma-widget-kimpanel plasma-widget-kimpanel-backend-ibus plasma-widget-menubar plasma-widget-message-indicator plasma-widget-networkmanagement plasma-widget-quickaccess plasma-widgets-addons plasma-widgets-workspace plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text polkit-kde-1 printer-applet python-kde4 python-packagekit python-pyudev python-qt4 python-qt4-dbus python-sip qapt-batch quassel quassel-data rekonq shared-desktop-ontologies software-properties-kde soprano-daemon system-config-printer-kde systemsettings update-manager-kde usb-creator-kde userconfig virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common && sudo apt-get install ubuntu-desktop

Last updated 04/29/11 02:51