1. install server 12.04
2. apt-get install xorg libxp6
3. apt-get install gnome-core gdm
4. apt-get install gnome-system-tools
5. apt-get install language-selector-gnome
6. apt-get install language-pack-gnome-zh
7. apt-get install ibus
8. apt-get install ibus-googlepinyin
9. apt-get install sysv-rc-conf (服务管理)
10. apt-get install compizconfig-settings-manager
11. apt-get install gnome-app-install update-manager
(方便管理软件:software-center, update-manager)
12. apt-get install rar unrar
13. 安装nvidia显卡驱动
a.下载最新驱动NVIDIA-Linux-x86_64-331.49.run。
b. 进入text terminal。运行 stop gdm 关闭X11.
c. 运行一次NVIDIA-Linux-x86_64-331.49.run,会提示nouveau已经启动,按照提示将生成uveau探测的blacklist。重启。
d. 再次运行NVIDIA-Linux-x86_64-331.49.run。安装即可。若提示缺少linux/version.h,可进入/usr/include/linux/version.h拷贝之。
14. apt-get install linux-tools-common. for turbostat
15. apt-get install cpufrequtils
设置CPU为最高性能:cpufreq-set -c 1 -rg performance
查看cpu信息 cpufeq-info
16. 添加快捷启动
按住alt键,右键点击顶部面板,Add to panel.
17. Ubuntu 12.04 64 没有/usr/include/sys目录。创建符号链接。
OK. I have finally figured it out and posting it here as it may help someone someday. Basically by default only the 64 bit libraries are included and all the header files goes info /usr/include/x86_64-linux-gnu (although the header files are same for 32 bit and 64 bit). These are part of debian package lib6-dev. If you want the 32 bit libraries then install the package libc6-dev-i386. This package creates /usr/include/sys along with other ones. However the headers are soft linked to /usr/include/x86_64-linux-gnu/sys.
==================================================
1. 安装slickedit
2. 安装postgresql-server-dev-9.1
3. 安装odb。 http://www.codesynthesis.com/products/odb/doc/install-unix.xhtml
注意:odb-test或odb-example安装时,应执行./configure --with-database=pgsql.
安装完成后,进入/etc/ld.conf.d/,创建一个odb.conf,内容填写“/usr/local/lib/”, 执行ldconfig
==================================================
postgres
http://blog.sina.com.cn/s/blog_6af33caa0100ypck.html
1. ubuntu安装postgres后会默认创建postgres账户(linux账户)。sudo passwd -d postgres(删除原postgres密码), sudo passwd postgres(设置新密码)。
2. linux切换至postgres账户,运行psql, 执行ALTER USER postgres WITH PASSWORD 'postgres'; 修改密码.
此时,通过psql -U postgres -h 127.0.0.1 可登录数据库。
3. root@server2-virtual-machine:~# vi /etc/postgresql/9.1/main/postgresql.conf
1.监听任何地址访问,修改连接权限
#listen_addresses = ‘localhost’改为 listen_addresses = ‘*’
2.启用密码验证
#password_encryption = on改为password_encryption = on
3.可访问的用户ip段
root@server2-virtual-machine:~# vi /etc/postgresql/9.1/main/pg_hba.conf,并在文档末尾加上以下内容
# to allow your client visiting postgresql server
host all all 0.0.0.0 0.0.0.0 md5
4.重启PostgreSQL数据库
root@server2-virtual-machine:~# /etc/init.d/postgresql restart