[转]OpenSolaris 2009.06, dev setup
Source:http://seriouswebapps.com/opensolaris-200906-dev-setup
1. Snapshot the root zfs pool
This allows us to revert to the pristine files at a later date.
Open a Terminal and type:
pfexec zfs snapshot -r rpool@firstboot
1.1 (Optionally) Disable system beep from Terminal
See Disable system beep from Terminal
1.2 (Optionally) Alias "ls" and "ll" with color
See Alias "ls" and "ll" with color
Here's my ~/.bashrc:
#
# Define default prompt to @:<"($|#) "># and print '#' for user "root" and '$' for normal users.
#
PS1='${LOGNAME}@$(/usr/bin/hostname):$(
[[ "${LOGNAME}" == "root" ]] && printf "%s" "${PWD/${HOME}/~}# " ||
printf "%s" "${PWD/${HOME}/~}\$ ")'
xset -b
alias ls='/usr/gnu/bin/ls -aFh --color --group-directories-first'
alias ll='/usr/gnu/bin/ls -aFhl --color --group-directories-first'
alias lsx='/usr/gnu/bin/ls -aFhX --color --group-directories-first'
alias llx='/usr/gnu/bin/ls -aFhlX --color --group-directories-first'
1.3 (Optionally) Disable xscreensaver
1.4 (Optionally) Reduce boot selection timeout
Open a Terminal and type:
# edit /rpool/boot/grub/menu.lst
# change "timeout 30" to a more reasonable number, "timeout 10"
pfexec vi /rpool/boot/grub/menu.lst
# if you can't figure out how to use "vi", use "nano"
pfexec nano /rpool/boot/grub/menu.lst
1.5 (Optionally) Change boot mode to verbose
Via http://opensolaris.org/jive/thread.jspa?messageID=464482 andhttp://opensolaris.org/jive/thread.jspa?threadID=60655
Open a Terminal and type:
# edit /rpool/boot/grub/menu.lst
# make a copy of your kernel$ line, comment out the original
# add "-kv -m verbose" to the end of the copy of the kernel$ line
# you also need to comment out all splashimage lines
# and remove ",console=graphics"
pfexec vi /rpool/boot/grub/menu.lst
# if you can't figure out how to use "vi", use "nano"
pfexec nano /rpool/boot/grub/menu.lst
Note: You'll see the console login first, but after a while, the GDM login will appear.
Here's my /rpool/boot/grub/menu.lst:
#splashimage /boot/grub/splash.xpm.gz
background 215ECA
timeout 10
default 0
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title OpenSolaris 2009.06
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/opensolaris
#splashimage /boot/solaris.xpm
foreground d25f00
background 115d93
#kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS -kv -m verbose
module$ /platform/i86pc/$ISADIR/boot_archive
#---------------------END BOOTADM--------------------
2. Mirror rpool to another disk
See Mirroring the root pool in OpenSolaris
3. Setup static IP
See Static IP in OpenSolaris 2009.06
4. Create a zfs filesystem for sources and "my" installation folder
pfexec bash
zfs set compression=on rpool
zfs create -o mountpoint=/apps rpool/apps
zfs create -o mountpoint=/music rpool/music
zfs create -o mountpoint=/src rpool/src
chmod 777 /src
5. Setup local IPS repo
See Setup IPS package repository for OpenSolaris 2009.06
6. Install useful packages from repo
See Useful packages in OpenSolaris
6.1 Link missing binaries
For some reason, "gcc" can't be found, so let's link it
Open a Terminal and type:
cd /usr/bin
pfexec ln -s gcc-4.3.2 gcc
pfexec ln -s /usr/bin/ginstall /usr/ucb/install
# Use python2.6
pfexec rm python
pfexec ln -s python2.6 python
7. Installing libtool
See Installing libtool 2.2.6b on OpenSolaris
8. Installing Readline
See Installing Readline 6.1 on OpenSolaris
9. Install Berkeley DB
See Installing Berkeley DB 4.8.26 NC (no crypto) on OpenSolaris
10. Install pkg-config
See Installing pkg-config 0.23 on OpenSolaris
11. Install OpenSSL
See Installing OpenSSL 1.0.0 on OpenSolaris
12. Install libssh2
See Installing libssh2 1.2.4 on OpenSolaris
13. Installing OpenLDAP
See Installing OpenLDAP 2.4.21 on OpenSolaris
14. Install cURL
See Installing cURL 7.20.0 on OpenSolaris
15. Install GnuPG 1 & 2
See Installing GnuPG 1.4.10 and 2.0.15 on OpenSolaris
16. Install MySQL
See Installing MySQL 5.1.45 on OpenSolaris
17. Install XVid
See Installing XVid 1.2.2 on OpenSolaris
18. Install LAME
See Installing LAME 3.98.4 on OpenSolaris
19. Install Git
See Installing Git 1.7.0.4 on OpenSolaris
20. Installing x264
See Installing x264 (via git) on OpenSolaris
21. Installing FFmpeg
See Installing FFmpeg 0.5.1 on OpenSolaris
22. Installing Tcl
See Installing Tcl 8.5.8 on OpenSolaris
23. Installing PostgreSQL
See Installing PostgreSQL 8.4.3 on OpenSolaris
TODO: subversion, apache, php, fetchmail, courier, roundcube, davical, mplayer, tuntap, openvpn...
[转]OpenSolaris 2009.06, dev setup的更多相关文章
- [转]OPENSOLARIS 2009.06 REPOSITORY ISO IMAGES NOW AVAILABLE
Source: http://hosam.wordpress.com/2009/07/25/opensolaris-2009-06-repository-iso-images-now-availabl ...
- linuxtoy.org资源
https://linuxtoy.org/archives.html Archives 在 Android 系统上安装 Debian Linux 与 R (2015-07-14) Pinos:实现摄像 ...
- [转]How to build a data storage and VM Server using comodity hardware and free software
Source: http://learnandremember.blogspot.jp/2010_01_01_archive.html Requisites: 1) RAID protection f ...
- Fusion-io ioDrive Duo Enterprise PCIe Review
原文地址:http://www.storagereview.com/fusionio_iodrive_duo_enterprise_pcie_review As part of StorageRevi ...
- phpMyadmin /scripts/setup.php Remote Code Injection && Execution CVE-2009-1151
目录 . 漏洞描述 . 漏洞触发条件 . 漏洞影响范围 . 漏洞代码分析 . 防御方法 . 攻防思考 1. 漏洞描述 Insufficient output sanitizing when gener ...
- Announcing the public preview of Azure Dev Spaces
Today, we are excited to announce the public preview of Azure Dev Spaces, a cloud-native development ...
- 『学了就忘』Linux基础 — 11、通过setup工具配置Linux系统IP地址
目录 1.setup命令介绍 2.使用setup命令配置IP (1)执行setup命令 (2)进入图形化配置界面 (3)选择配置IP还是DNS (4)选择要配置的网卡 (5)进入IP地址配置页面 (6 ...
- nginx upload module的使用
现在的网站,总会有一点与用户交互的功能,例如允许用户上传头像,上传照片,上传附件这类的.PHP写的程序,对于上传文件效率不是很高.幸好,nginx有一个名为upload的module可以解决这个问题. ...
- [转]Creating an iPhone Daemon
ref: http://chrisalvares.com/blog/7/creating-an-iphone-daemon-part-1/ http://chrisalvares.com/blog/3 ...
随机推荐
- Python - 安全替换字符串模板(safe_substitute) 详细解释
安全替换字符串模板(safe_substitute) 详细解释 本文地址: http://blog.csdn.net/caroline_wendy/article/details/27057339 字 ...
- 【C++实现】HeadFirst策略模式设计模式
策略模式定义了算法家族.分别封装起来.让它们之间能够相互替换,此模式让算法的变化独立于使用算法的客户. Head First设计模式中介绍策略模式时以Duck类作为样例.当中用flyBehavior和 ...
- Java设计模式(三)原型模型 适配器型号
(五岁以下儿童)原型模型 Prototype 样机模型旨在复制一个现有对象来创建新对象.而不是通过的方式的实例.原型模式须要实现 Cloneable 接口.覆写clone方法,复制分为浅复制.深复制. ...
- http层负载均衡之haproxy
http层负载均衡之haproxy实践篇(一) 方案 上篇文章讲到了负载均衡的相关理论知识,这篇文章我打算讲讲实践方法以及实践中遇到的问题 方案:haproxy http层负载均衡 安装一个hapro ...
- CSS3+HTML5特效3 - 纵向无缝滚动
老惯例,先看例子. This is a test 1. This is a test 2. This is a test 3. This is a test 4. This is a test 5. ...
- Net社区虚拟大会
微软“.Net社区虚拟大会”dotnetConf2015:关键词:.NET 创新.开源.跨平台 去年 11 月的时候,微软开源了 .NET CoreFX,然后是今年 2 月份的 .NET CoreCL ...
- Self referencing loop detected with type
json.net namespace EFDAL{ using System; using System.Collections.Generic; using Newtonsoft. ...
- JavaScript中,关于new的那些事
这篇文章是自己对new学习过程中的一些理解,有不对的地方希望指出,接受组织的批评教育. 导火线,前段时间学习jQuery的时候,看到源码中有这样一段: jQuery = function(select ...
- centos下mysql 最新版最终成功安装!备份一下几个关键地方
我本来仅仅是为了搭建简单的LAMP环境,亲自己主动手,却发现有这么多的问题会发生.(by default7#zbphp.com) 非常多地方给的安装Mysql的提示是通过yum一键安装.shell命令 ...
- C语言库函数大全及应用实例八
原文:C语言库函数大全及应用实例八 [编程资料]C语言库函数大全及应用实例八 函数名: kbhit 功 能: 检查 ...