星期三 六月 25, 2008

Run Windows Programs in OpenSolaris 2008.05

Authorhongbingfeng

       Emailbfhong@gmail.com


   Under Opensolaris ,we can run Linux program by many way,such as zone and so on .Actually Opensolaris can aslo run Windows Programs.


The article introduce wine and use wine to run Windows Programs in Opensolaris 2008.05.


Tools:     OpenSolaris 2008.05


               Wine 1.0-rc1

[Read More]

星期六 五月 24, 2008

Share Files btween OpenSolaris 2008.05 on VMWare and Windows

OpenSolaris2008.05 is the new edition  of the Solaris Indiana program.we can install it in disks,either we can aslo install and experience it on virtual mathine,such as Vmware,Virtual Box. The installtion process can be seen :


http://www.unix-center.net/opensolaris/getting_started.html#3_7


By practice,the article sum-up and introduce some kinds of methods which can implement file sharing between OpenSolaris 2008.05 on VMWare and windows .


Hosts   :   Windows XP


Virtual Mathine: Vmware 6.0


Guest:    OpenSolaris 2008.05



FirstTransmit files using FTP by Configuing FTP server in solaris


The process as follows:


     1.first,login as root,or use su switch to root


    2. examine ftp serve open or not


       #svcs -l network/ftp


fmri         svc:/network/ftp:default


name         FTP server


enabled      true


state        online


next_state   none


    3.If ftp serve is close,use the method open it as follow ,and examine state.


       # svcadm enable /network/ftp


    4.after turn on the ftp service,we aslo need congfigue the ftp users, which were includes /etc/ftpd/ftpusers file. The users in this file are unusable for ftp. That is,mark ‘#’is usable,or is forbid. So ,if we want to make one user usable ,we only need to mark ‘#’ in front it.We change the root is usable.If we want to add the new ftp user,we can reference solaris order how to add user. If we want to display the user which have already exist,we can add it the file ,mark # in front of the user name.


    5 obtain OpenSolaris IP,use #ifconfig –a


    6.After setting the account ,we can connect OpenSolaris in Windows by ftp.The username is ftp account and password in OpenSolaris.If you use the right root accout and password,but show is error, reference follow.


    7.if you use the right root account and password, but show the user name or password is error,maybe the reason that OpenSolaris 2008.05 is unallowed root login default. You can using common acount to login ,and then switch to root by su, the implement as follow:


   # rolemod -K type=normal root


And that you can use the root account.


 


SecondUsing smaba client to connect the share documents in Windows


Process as follow:


1.Use root logining or use su switch to root


       2.open samba client , order as follow:


       #svcadm enable svc:/network/smb/client:default


       #svcs -l  /network/smb/client check the client state


3.Suppose Windows  IP   is 192.168.1.109,sharing a  ‘Soft’ directory ,and then use follow order:


       #mount -F smbfs  //192.168.1.109/Soft /mnt


       Password:     enter your current account password in Windows


       # cd /mnt


       # ls


       And then you can see the share directory of Windows.


 


Reference:


       http://www.unix-center.net/opensolaris/getting_started.html#3_7


       http://www.itwenku.com/linux/1/53039.htm


 


You can find the article in Chinese by the link:

http://developers.sun.com.cn/blog/functionalca/entry/vmware%E4%B8%8A%E5%AE%9E%E7%8E%B0opensolaris_2008_05%E4%B8%8Ewindows%E4%B9%8B%E9%97%B4%E7%9A%84%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB

星期二 五月 06, 2008

Getting Started with OpenSolaris 2008.05 Hands-on-Lab

I just wrote a hands-on-lab document for "Getting Started with OpenSolaris 2008.05" in Simplified Chinese. Here is the menu. :-)



Part 1 Get Ready
1.1 Download CD image
1.2 Record OpenSolaris 2008.05 setup CD
1.3 System Requirement


Part 2 Setup OpenSolaris 2008.05
2.1 Setup OpenSolaris with Live CD
2.2 Setup OpenSolaris in VirtualBox
2.3 Setup OpenSolaris in VMWare


Part 3 Use OpenSolaris 2008.05
3.1 Get into OpenSolaris
3.2 Use IPS (Image Packaging System)
3.3 Setup OpenOffice 2.4
3.4 Setup JDK 1.6.0u6 and NetBeans IDE 6.1
3.5 Setup CoolStack (Apache, MySQL, PHP)
3.6 Deploy WordPress
3.7 Setup FTP Service
3.8 Setup SSH Service
3.9 Connect to Internet with ADSL
3.10 Change DNS Configuration
3.11 3D Desktop

Install NetBeans 6.1 on OpenSolaris 2008.05

IPS (Image Packaging System)


1. Choose menu on the left top "System" - "Administration" - "Package Manager". Press "Reload" button in the toolbar to refresh the package list.

2. Input "netbeans" in the text filed under the toolbar, and press "Enter". Select your favorite version of NetBeans in the list, and press "Install/Update" button.

3. When "Install/Update Confirmation" window pops up, please check "package dependencies". And press "Next" to start download. The NetBeans will be installed automatically.


Traditional Install


1. Download JDK 1.6.0u6 for Solaris x86/x64 file: jdk-6u6-solaris-i586.sh & NetBeans for Solaris x86/x64 file: netbeans-6.1-solaris-x86.sh



2. Setup JDK: Open "Terminal", switch to "root" with command "# su". Copy JDK setup file to /usr/jdk/, and run:
# cp jdk-6u6-solaris-i586.sh /usr/jdk/
# ./jdk-6u6-solaris-i586.sh

3. Setup NetBeans IDE 6.1: Open "Terminal", switch to "root" with command "# su". Run setup file:
# ./netbeans-6.1-solaris-x86.sh
With setup wizard, next and next. :-)
Note: Select JDK directory: /usr/jdk/jdk1.6.0_06/

4. Logout current user, login again. You can find "NetBeans IDE 6.1" in the "Applications" menu.


Resource



About

This is Chinese Functional CA Team Blog. Any suggestion is appreciated.

Search

Archives
« 四月 2014
星期日星期一星期二星期三星期四星期五星期六
  
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
   
       
今天