Upgrade PostgreSQL 9.3 on Debian 7 Wheezy

Setup current Debian version

Version 9.1 is the current PostgreSQL version in Debian Wheezy (the time of writing this article). Installation is simple:
apt-get install postgresql

Setup latest PostgreSQL version on Debian

  1. Add the PostgreSQL Apt Repositorycreate a Debian sources list file (e.g. pgdg.list)
    nano /etc/apt/sources.list.d/pgdg.list
    add the following line and save the file
    deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main
  2. Import the repository signing key
    wget https://www.postgresql.org/media/keys/ACCC4CF8.asc
    apt-key add ACCC4CF8.asc
  3. Update the package lists
    apt-get update
  4. Finally, install PostgreSQL as usual
    apt-get install postgresql
  5. You may install another version (e.g. 9.2), using:
    apt-get install postgresql-9.2

MineCraft 服务器搭建 On Debian

首先按照msm的教程搭建:http://msmhq.com/docs/installation.html
其次按照这里的评论升级到最新版:http://support.msmhq.com/discussions/problems/202-upgrade-to-minecraft-161-while-using-msm

(最新程序可在: https://minecraft.net/download 下载jar)

  • create a new jar-group

sudo msm jargroup create mc161 https://s3.amazonaws.com/Minecraft.Download/versions/1.6.1/minecraft_server.1.6.1.jar
Continue Reading

Mathematica9.0在Debian下的安装

  1. 首先是从mathematica主页下载Linux版的安装包:Mathematica_9.0.1_LINUX.sh
  2. 修改安装包的运行权限:chmod +x Mathematica_9.0.1_LINUX.sh
  3. 然后开始自动安装, 提示输入安装目录, 直接Enter好了, 使用默认的. 最后一步好像说是创建scripts目录失败:xdg-desktop-menu no writable system menu directory found, 我没管. 估计是没有桌面系统, 从而桌面菜单创建失败. 直接进行下一步, 发现已经可以运行了!
  4. 然后运行math, 得到激活要求. 输入你下载之前发到邮件的试用激活码. (过期后可以用算号器自己破解), 可以看到mathpass放在/usr/share/Mathematica/Licensing/mathpass 里面有机器码, 在算号时需要的.
  5. 至此得到熟悉的In[1]:=, 开始你的Mathematica之旅吧, 你可以使用Exit[] 或者 Quit[]来退出.
  6. 其实我的Debian系统实际上是:7.1, Mathematica并没有测试过(官网说5,6可以). 系统版本通过 cat /etc/debian_version