定制ubuntu server12.04

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

转载于:https://www.cnblogs.com/vinsonliudk/p/3595399.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值