Translate

Sunday, March 13, 2016

Office & Windown Using KMS Manually to Activate Software


This page is intended for technical support providers and network administrators. If you're not one of those, you should talk to your TSP or net admin before proceeding. The concept behind the procedure on this page is explained on our main KMS page.
This page describes how to manually activate products. With this method, you'll need to run commands on each machine - and for each software package - during the 30 day grace period after installation. If you are using virtual machines for testing and cross-compatibility on Macintosh computers, you'll need to use the manual method in those circumstances.
KMS activation can be blocked by a firewall. Please be sure that any firewalls between the client machine and the KMS server are open to incoming and outgoing traffic on TCP port 1688.

To use this method, first install the software (Windows or Microsoft Office). As part of that process you'll be informed that you have 30 days to activate the product. Complete the steps below during that 30-day period.
This method assumes that Windows or Office has never been activated on this machine before. If your machine had previously been activated with the earlier MAK activation method, please instead follow the instructions to switch from MAK to KMS activation.


Activate a Windows Operating System: Windows 7, Windows 8, Server 2008, Server 2008 R2, or Server 2012:

  1. Open up an Elevated Command Prompt window. For instructions, please see our guide:
  2. In the elevated Command Prompt window, verify that the current directory is C:\Windows\System32. If it is not, type
    CD \Windows\System32
    and press Enter.
  3. Type the following command:
    cscript slmgr.vbs /skms kms01.cit.cornell.edu
    and press Enter.
    (Note: The url in the command above begins with kay-emm-ess-zero-one.or url:active.orientsoftware.asia)
  4. Type the following command:
    cscript slmgr.vbs /ato
    and press Enter.
  5. Close the Command Prompt window.
And you're done for that installation of Windows on that computer.

Activate Microsoft Office (2016, 2013, or 2010)

  1. Open an Elevated Command Prompt window. For instructions, please see our guide
  2. Type the following command, depending on your version of Office:
    • Office 2016:
    • CD \Program Files\Microsoft Office\Office16
    • Press Enter. This assumes you installed Office in the default location.
    • Note: If you installed the 32-bit version of Office on a 64-bit system, use this command instead:
    • CD \Program Files (x86)\Microsoft Office\Office16
    • Office 2013:
    • CD \Program Files\Microsoft Office\Office15
    • Press Enter. This assumes you installed Office in the default location.
    • Note: If you installed the 32-bit version of Office on a 64-bit system, use this command instead:
    • CD \Program Files (x86)\Microsoft Office\Office15
  • Office 2010:
    • CD \Program Files\Microsoft Office\Office14
    • Press Enter. This assumes you installed Office in the default location.
      • Note: If you installed the 32-bit version of Office on a 64-bit system, use this command instead:
      • CD \Program Files (x86)\Microsoft Office\Office14
  1. Type the following command:
    • cscript ospp.vbs /sethst:kms01.cit.cornell.edu
    • and press Enter.  (Note: The url in the command above begins with kay-emm-ess-zero-one or url:active.orientsoftware.asia)
  2. Type the following command:
    • cscript ospp.vbs /act
    • and press Enter.
  3. Close the command prompt window.
And you're done for that installation of Office on that computer.

Friday, November 27, 2015

Domino Administrators ID file certificate has expired ... No Problem


Came across this at a new client site today, the client knows the Domino Administrators password, but cannot use the Administration client (or any Notes client) with the Administrators ID file, because the Administrators ID file certificates have expired.

It's a pretty simple thing to fix.

EITHER:
  • Use your server's Notes client to recertify the Administrator.

OR
  • Get hold of an ID file for a user who hasn't expired,
  • Add that user to the 'LocalDomainAdmins' group,
  • Access the Domino Directory on the server and recertify the Admin ID,
  • Remove the user from the 'LocalDomainAdmins' group,
  • Done.

The details:

Using a server.

  • Go to the physical domino server,
  • Browse to the Domino program folder,
  • Locate nlnotes.exe,
  • Run it.

Yes I KNOW this is not a 'supported configuration' but hey, it Domino - #ThisS***JustWorks.

 
  • You now have a notes client, which you can use to access the names.nsf locally (the Domino Directory),
  • Go to 'People',
  • Choose (highlight) the Administrator,
  • Choose (from the menu) ACTIONS -> Recertify Selected People,
  • Choose the Administrators organization certifier,
  • Enter the certifier password.
  • Choose a date a long time from now (you WANT your Admin ID file to expire every two years???),
  • Done.

The Long way - elevate another user.


If you know the Administrators password, there is a fair chance you can still access the Domino Web Administrator using that password:
  • Log-in to the Webadmin using: http://yourserver.com/webadmin.nsf and the Administrators Username and Password,
  • Go to 'People and Groups',
  • Edit the 'LocalDomainAdmins' group to include the users name who's ID file has not expired,
  • On the Domino Console, 'load updall -r names.nsf', then 'dbcache flush',
  • Start the users Notes client,
  • Open the Domino Directory (names.nsf) on the server,
  • Choose People from the navigator,
  • Highlight the Administrator,
  • Choose (from the menu) ACTIONS -> Recertify Selected People,
  • Choose the Administrators organization certifier,
  • Enter the certifier password.
  • Choose a date a long time from now (you WANT your Admin ID file to expire every two years???),
  • Using any method you want (you've got a recertified Admin now), remove the user from the 'LocalDomainAdmins' group,
  • Done.


Hope this helps someone, this has happened a few times in the last couple of months when we pick up a new (old) Notes customer who hasn't needed to use the Admin ID in a while.

Domino Administrators ID file certificates have expired? No Problem.

Q, Administrator ID has expired; no one can administer the Domino server


Question

The administrator's ID file has been allowed to expire, and there are no other ID files which can be used to access the server. Attempts to access the server using an expired administrator ID results in the following error:
    "Server error - your certificate has expired"
There are no other administrative IDs that can be used to access the server. What are your options?

Answer

Perform the following workaround to certify the expired ID:

1. Open the Domino Administrator client. (The server should be set to "local".)

2. Select the Configuration tab.

3. Select Tools -> Certification -> Certify.

4. Select the certifier ID and enter the password. Set the server to Local.

Note: The following error may appear: "The public key that is being used does not match the one that was certified." This occurs because the client cannot connect to the Notes certifier document in the address book on the server. To continue past this error, select "Yes" when prompted with the following: "Do you wish to continue without updating the Certifier ID?"

5. Select the Notes/Admin ID to certify. Note: You will see an error: "Entry not found in index, Do you want to certify anyway?" Click Yes.

6. Ensure that the server is still set to "local" (at the top of the dialog), set the expiration date, and then click Certify.

7. At this point you should have access to the server, as long as public key checking is not enabled on the server. If public key checking is enabled on the server, you must complete step 8 before you can access the server.

8. Copy the public key from the ID into the Person document (Certificates tab -> Notes certified public key field.)
  1. File -> Security -> User Security (this opens the user ID)
  2. Select Your Identity -> Your Certificates
  3. Click the "Other actions" button and choose Mail, Copy Certificate (Public Key)...
  4. Select Copy Certificate (this will place the public key on the system clipboard)
  5. Close the open windows to exit User Security.
  6. Select the People view in the server's Domino Directory, open the user's Person document in Edit mode, and click the Certificates tab
  7. Select the entire contents of the Notes certified public key field and paste the key from the clipboard; save and close
  8. Rebuild the view by pressing the key combination Shift + F9.


Q, How to manually recertify an expired ID


Question

You have a Lotus Notes user ID that has expired and you would like to manually recertify it.
The ID can open Notes, because the password is valid, but the user cannot do anything else, as the end date has expired. If the user selects File -> Tools -> User ID -> Certificate -> Request Certificate, the following message displays:
Server Error: Your certificate has expired.
 

Answer

Administrator: Recertify user's ID
A user has a Notes ID that has an expired certificate. These steps are performed by the server administrator to correct the user's expired ID.

  1. After obtaining the user ID, you (as the administrator) launch the Lotus® Domino® Administration client.

  2. Open the Configuration tab, expand Certification (located on the right hand pane) and select Certify.

  3. Select the Certifier ID file.

  4. From the Choose Certifier ID dialog box, select the O or OU certifier that was originally used to certify the user ID.

  5. Enter the password for the certifier ID.

  6. From the Choose ID to Certify dialog box, select the user ID to be recertified.

  7. Enter the password for user ID to be recertified.

  8. [Optional] In the Certify ID dialog box, you may set or change the following:
    Registration server, expiration date of the certifier and password length.

  9. Click Certify.
    The Status window displays:
    Updating address book entry for username/org
    Successfully updated address book entry for username/org
    Username/org successfully certified

  10. Choose "No" when you receive the following dialog box:
    Would you like to certify another?

  11. Provide the newly-recertified ID file to the user.


User: Merge the new certificate
Once the administrator recertifies the safe.ID and returns the ID to the user, the user must perform the following steps:

  1. Select File -> Security -> User Security -> Your Identity -> Your Certificates -> Get certificates button -> Import (Merge) Notes Certificate.

  2. Enter password.

  3. The dialog box then prompts the user to choose the safe.ID that has been recertified and it is then merged into the original user ID.


Administrator: Recertify an expired Server ID
If an administrator needs to recertify an expired Server ID, the following steps should be followed:
  1. Certify the server id file by following the "Administrator: Certifying an expired server ID file" steps included below.

  2. Verify that the expiration date has been changed in the server.id file.

  3. From the administration client select Configuration -> Tools -> ID Properties, then select the Server ID file.

  4. Place the new server.id back on the server (c:\lotus\domino\data), and restart the server.

Administrator: Certifying an expired server ID file
How to certify an expired server id file.
  1. After obtaining the server ID (c:\lotus\domino\data is the default location ), you (as the administrator) launch the Domino Administrator client.

  2. Open the Configuration tab, expand Certification (located on the right hand pane) and select Certify.

  3. Select the Certifier ID file.

  4. From the Choose Certifier ID dialog box, select the O or OU certifier that was originally used to certify the user ID.

  5. Enter the password for the certifier ID.

  6. From the Choose ID to Certify dialog box, select the server ID to be recertified.

  7. Enter the password for server ID to be recertified, if necessary (not all server ID files require a password).

  8. [Optional] In the Certify ID dialog box, you may set or change the following:
    Registration server, expiration date of the certifier and password length.
    The server.id file should have an expiration date 99 years in the future (default ).

  9. Click Certify.
    The Status window displays:
    Updating address book entry for username/org
    Successfully updated address book entry for username/org
    Username/org successfully certified

  10. Choose "No" when you receive the following dialog box:
    Would you like to certify another?

  11. Copy the newly-recertified ID file to the server (c:\lotus\domino\data, by default).

 

Wednesday, November 4, 2015

Office 2016 Client Software License Management Tool


Office 2016 Client Software License Management Tool

Office 2016
  • For 32 bit Windows:
    cscript “C:\Program Files\Microsoft Office\Office16\OSPP.VBS” /dstatus
  • For 64 bit Windows:
    cscript “C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS” /dstatus
 Usage
cscript ospp.vbs /Option:Value ComputerName User Password
     ComputerName: Name of remote computer. If a computer name is not passed local computer is used.
     User: Account with required privilege on remote computer.
     Password: Password for the account. If a User account and password are not passed current credentials are used.
     Value: Required for outlined options.

Global /Options
Description
/act
Activate installed Office product keys.
/inpkey:value
Install a product key (replaces existing key) with user-provided product key. Value parameter applies.
/unpkey:value
Uninstall an installed product key with user-provided partial product key (as displayed by the /dstatus option). Value parameter applies.
/inslic:value
Install a license with user-provided path to the .xrm-ms license. Value parameter applies.
/dstatus
Display license information for installed product keys.
/dstatusall
Display license information for installed licenses.
/dhistoryacterr
Display MAK/Retail activation failure history.
/dinstid
Display installation ID for offline activation.
/actcid:value
Activate product with user-provided confirmation ID. Value parameter applies.
/rearm
Reset the licensing status for all installed Office product keys.
/rearm:value
Reset the licensing status for an Office license with user provided SKUID value (as displayed by the /dstatus opton). Value parameter applies.
/ddescr:value
Display the description for a user-provided error code. Value parameter applies.
KMS client /Options
Description
/dhistorykms
Display KMS client activation history.
/dcmid
Display KMS client machine ID (CMID).
/sethst:value
Set a KMS host name with user-provided host name. Value parameter applies.
/setprt:value
Set a KMS port with user-provided port number. Value parameter applies.
/remhst
Remove KMS host name (sets port to default).
/cachst:value
Permit or deny KMS host caching. Value parameter applies (TRUE or FALSE).
/actype:value
Set volume activation type. Value parameter applies. (Windows 8 and above support only)
Values: 1 (for AD) or 2 (for KMS) or 3 (for Token) or 0 (for all).
/skms-domain:value
Set the specific DNS domain in which all KMS SRV records can be found. This setting has no effect if the specific single KMS host is set via /sethst option. Value parameter applies. (Windows 8 and above support only)
Value:FQDN
/ckms-domain
Clear the specific DNS domain in which all KMS SRV records can be found. The specific KMS host will be used if set via /sethst option. Otherwise default KMS auto-discovery will be used. (Windows 8 and above support only)
Token /Options
Description
/dtokils
Display installed token-based activation issuance licenses.
/rtokil:value
Uninstall an installed token-based activation issuance license with user-provided license id (as displayed by the /dtokils option). Value parameter applies.
/stokflag
Set token-based activation only flag. (Windows 7 support only)
/ctokflag
Clear token-based activation only flag. (Windows 7 support only)
/dtokcerts
Display token-based activation certificates.
/tokact:value1:value2
Token activate with a user-provided thumbprint (as displayed by the /dtokcerts option) and a user-provided PIN (optional). Value parameter applies.
Prior to running ospp.vbs ensure that:
Windows firewall allows WMI traffic on remote computer.
You have or pass credentials with required permissions on remote computer.
Cmd.exe is elevated (right click > Run as administrator).
Sample Usage
cscript ospp.vbs /act  'Activate Office on local computer.
cscript ospp.vbs /act mypc1  'Activate Office on remote computer mypc1 with current credentials.
cscript ospp.vbs /inpkey:yourkey  'Install an Office product key on local computer.
cscript ospp.vbs /inslic:\\myserver\licenses\tail.xrm-ms 'Install license on local computer.
cscript ospp.vbs /inslic:"\\myserver\work licenses\office2016 tail.xrm-ms" mypc1 'Install license on remote computer mypc1. Note the path is enclosed in "" since the value contains spaces.
cscript ospp.vbs /ddescr:0xC004F009 'Display the description for error code.
cscript ospp.vbs /actype:1 'Set volume activation type to Active Directory only.
/Token only
cscript ospp.vbs /rtokil:4476b20e 'Uninstall an issuance license with license ID.
cscript ospp.vbs /tokact:96DE6755ABE0BC7D398E96C3AA3C7BFE8B565248 'Token activate with thumbprint.
cscript ospp.vbs /tokact:56AE6755AAB0BC7D398E96C3AA3C7BFE8B565256:54344 'Token activate with thumbprint & PIN.

Tuesday, August 18, 2015

Lotus Notes & domino là gì?


Trong bài viết này tôi xin chỉ nói những thông tin cơ bản nhất về lotus notes & domino.
Lotus notes & domino là sản phầm được phát triển bởi IBM. Lotus Notes & Domino có thể hiểu một cách đơn giản thì nó là một “hệ thống” các phần mềm hỗ trợ làm việc cộng tác.
Lotus Domino: là phần mềm máy chủ, nó gồm có: web server, mail server và ldap server.
Lotus Notes: là phần mềm client, nó gồm có: Lotus notes, domino designer và domino admin.
  • Lotus notes: là phần mềm dùng để chạy các ứng dụng của lotus, có thể là các ứng dụng trên domino server hay các úng dụng trên local. Ở đây, email cũng được coi là một ứng dụng lotus ^^. hay có thể dụng như một mail client để check các mail của hệ thống mail khác như exchange v.v… Chú ý: các ứng dụng của Lotus notes có thể được thiết kế để chạy được trên nền web.
  • Domino designer: phần mềm editor để thiết kế các ứng dụng của lotus.
  • Domino admin: là phần mềm để quán trị hệ thống domino server.
Bài viết sau: cài đặt và cấu hình Lotus notes & domino (cơ bản)

Cài đặt IBM Lotus Notes


Lotus Notes là bộ sản phẩm client gồm có:
– Domino Admin: sử dụng dể quản trị IBM Domino Server
– Lotus Notes: Sử dụng để quản lý các và chạy các ứng dụng Lotus Notes
– Domino Designer: là bộ công cụ phát triển các ứng dụng Lotus Notes
Các bước thực hiện cài đặt (Việc cài đặt tương tự như cài đặt các ứng dụng desktop khác, tất nhiên. Các bạn xem video nhé):
  1. Double click vào file cài đặt IBM Lotus Notes. Click chọn Next và chờ quá trình giải nén. sau khi chương trình giải nén gói cài đặt ta bắt đầu quá trình cài đặt.
  2. Làm theo hướng dẫn trên giao diện wizard để thực hiện cài đặt. chú ý: phần custom setup các bạn chọn các thành phần cài đặt là Domino Admin, Domino Designer, Lotus Notes. và tiếp tục cho đến khi quá trình cài đặt kết thúc.
  3. Cấu hình Lotus Notes: sau khi cài đặt xong bộ lotus, các bạn bận lotus notes để bắt đầu quá trình cấu hình. (Chú ý bật Domino Server trước khi bắt đầu cấu hình)
Cấu hình:
Trong phần user information:
  • Your name: ở đây khi cài domino ta đã khai báo người dùng administrator. do vậy, ở đây ta sử dụng người dùng là administrator, nếu không ở đây ta sẽ nhập tên người dùng được cấp tài khoán (chú ý: người dùng phải có file id).
  • Domino server: tên hoặc địa chỉ máy chủ domino, ở đây có thể nhập là: xxx.xxx.xxx.xxx hoặc 127.0.0.1 hoặc demo/tandan/VN.
Sau khi khai báo người dùng, chương trình sẽ hỏi mật khẩu (ở đây mật khẩu là của người dùng administrator được tạo trong quá trình cấu hình Domino Server)
Nếu chương trình yêu cầu file id thì các bạn chọn file id của người dùng. bạn có thể tìm thấy file id của người dùng administrator trong thư mục [domino]\data\user.id (chú ý là nếu trong quá trình cài đặt domino các bạn không tick cho phép tạo file id thì chương trình sẽ tạo file user.id là file id của administrator trong thư mục [lotus]\data\user.id)
Sau khi quá trình cấu hình Lotus Notes hoàn tất chương trình sẽ mở Lotus Notes ra. Các bạn vào Open -> Domino administrator để mở domino administrator và cấu hình một số tham số khác của Domino.
Cấu hình domino:
  • Từ Lotus Notes, Chọn Open -> Domino Administrator, hoặc bạn có thể mở trực tiếp Domino Administrator ra.
  • Trong quá trình mở có thể Domino Admin báo không kết nối được đến server, không sao các bạn cứ click OK, sau khi vào Domino Admin mở server sau cũng được
  • Nếu Domino Admin không tìm được Domino Server thì phần server sẽ báo server là local
    để mở domino server, các bạn vào File -> open. Các bạn nên nhập IP của server (ở đây tôi nhập luôn là 127.0.0.1)
  • sau khi mở server, các bạn vào phần config để cấu hình một số tham số cho server (Xem video).  ở đây tôi chỉ cấu hình những cái cơ bản và đơn giản nhất, để thực hiện các cấu hình khác các bạn có thể đọc thêm tài liệu help của Domino Admin, các tài liệu được cung cấp bởi IBM, hoặc tìm kiếm từ các tài nguyên trên mạng.
  • Các cấu hình trong phần sercurity tôi cho phép toàn bộ user có thể thực hiện các tác vụ sign, run với agent, xpage, chạy các đoạn code java, javascript, dom… nếu không cho phép thì, tất nhiên, người dùng không thể chạy được các agent….
  •  Trong phần port -> internet port cho phép các bạn đặt lại các cổng kết nối cho http, diiop, các giao thức mail ….
  • Trong phần Internet Protocols -.> Domino Web Engine -> Http Session -> Session Authentication cho phép các bạn đặt lại cách xác thực. Có 3 tùy chọn: disable (mặc định, basic authentication),  single server (form authentication), Multiple servers (SSO). Các bạn có thể đặt là 2 kiểu đầu, riêng SSO thì sau này tôi sẽ có bài viết riêng về SSO Với domino (nhờ người khác viết thôi, tôi ko chuyên về hệ thống, chỉ chuyên về code)
  • Sau khi đã cấu hình xong các bạn restart lại server.
Video cho bài viết:

Categories: Lotus Notes & Domino

Cài đặt và cấu hình lotus domino

31/08/2011 1 comment
Việc cài đặt domino cũng đơn giản như việc cài đặt các ứng dụng khác, ở đây tôi chỉ hướng dẫn các bạn cài đặt và cấu hình ở mức đơn giản nhất.
Các bước cài đặt và cấu hình lotus domino.
  1. Chạy file cài đặt: Sau khi chạy file cài đặt, các file cài đặt sẽ được extract ra ổ cứng.
  2. Thực hiện quá trình cài đặt: làm theo hướng dẫn trên màn hình (chủ yếu là click nút next) và chờ quá trình copy file hoàn tất.
  3. Sau khi quá trình copy file hoàn tất, click vào biểu tượng Lotus Domino Server để bước vào quá trình setup server (Xem video).
  4. Trong qua trình cài đặt các bạn có thể tick chọn tạo file id của admin sau này dùng hoặc có thể tạo file này khi lần đầu tiên cài notes
  5. Sau khi setup server, mở browser và gõ địa chỉ http://127.0.0.1 bạn sẽ thấy man hình giao diện mặc định của lotus domino

  6.  
Một số bước cấu hình đơn giản: Các bạn xem trong phần cài đặt và cấu hình Lotus notes nhé, vì cấu hình domino server được thực hiện thông qua lotus admin
     

Tạo ứng dụng đa ngôn ngữ.


Chào các bạn!
Các đặc điểm của IBM Lotus Domino cho phép bạn tạo một ứng dụng hỗ trợ nhiều ngôn ngữ khác nhau. Để tạo một ứng dụng đa ngôn ngữ, bạn làm theo các bước sau:
  • Mở properties của ứng dụng: Double click vào Application properties trong view Application
  • Chọn tab Design
  • Phần Internet options tick chọn Multilingual database và chọn ngôn ngữ mặc định, ngôn ngữ mặc định là ngôn ngữ sẽ được sử dụng khi mà browser không được chọn ngôn ngữ nào trong số các thành phần design mà chương trình có
  • Tạo một thành phần design cho ngôn ngữ mặc định, đặt alias cho nó. alias là đặc điểm nhận đạng chung cho các bản copy khác nhau của các thành phần design giống nhau.
  • Tạo một bản copy của thành phần design vừa tạo, sửa đổi nội dung, đặt tên và alias cho nó.
  • Double-click vào nhóm thành phần (Views, Forms, Pages….) để mở danh sách các thành phần ra.
  • Chọn thành phần design cần đặt ngôn ngữ -> chọn design – properties.
  • Trong view properties chọn tab Design, trong phần Multilingual settings chọn ngôn ngữ cần đặt (assign).
Theo các bước trên bạn đã có thể tạo được các thành phần design với các ngôn ngữ khác nhau. các ngôn ngữ này được hiển thị dựa trên phần ngôn ngữ được lựa chọn của browser của người dùng. Bài viết dựa trên phần Help của Domino Designer, (Domino Designer – Help – Lotus Domino Designer Basic User Guild And Reference – Application Design – Create multilingual applications).
Video:

Tạo ứng dụng domino


Các ứng dụng viết cho domino được đóng gói trong một file có đôi .nsf, ngoài ra các bạn còn thấy một định dạng file nữa là file .ntf (File template). Để tạo một ứng dụng domino ta sẽ tạo từ các file template, ứng dụng mới ta sẽ sử dụng blank template.
Để tạo một ứng dụng từ template ta làm theo các bước sau:
  1. Từ giao diện IBM Lotus Notes
  2. Copy template design lên server (có thể là server local) nếu cầu (Xem thêm ở video thứ 2).
  3. File – Application – New, hoặc ấn phím tắt Ctrl + N. Chương trình sẽ mở ra dialog New Application
  4. Chọn server chạy ưng dụng muốn tạo (ex: demo/tandan/VN), Nhập tiêu đề ứng dụng, tên file (có đuôi .nsf). chú ý: để đặt file vào trong thư mục ta gõ đường dẫn [tenthumuc]/[tenfile.nsf]
  5. Phần Specify Template for New Application, Bạn chọn server chứa file template (có thể là local) sau đó chọn template bên dưới.
  6. Click OK

Video:

(Video 01: tạo ứng dụng từ blank template)

Sau khi tạo một ứng dụng từ một template thường ta sẽ phải đăng ký các thành phần của database này với server. Để đăng ký với database với server ta làm theo các bước sau:
  1. Từ  giao diện Domino Administrator, mở server chứa application cần đăng ký
  2. Files – Chọn application
  3. Click chuột phải vào ứng dụng -> Sign, Các bạn chờ một lúc để server đăng ký ứng dụng này.
Video:

(Video 02: tạo ứng dụng từ một template bất kỳ)

Trên đây là cách để các bạn tạo một ứng dụng domino từ một template có sẵn (Có thể là blank template). Các bạn nên chú ý phần chọn server chạy ứng dụng, thư mục đặt application. khi ứng dụng được đặt trong thư mục (ex: demo/demo01.nsf) thì đường dẫn URL của ứng dụng trên browser sẽ là http://%5Bserver%5D: [port]/[thumuc1/thumuc2/…/thumucn]/[tenfile.nsf] (ex: http://127.0.0.1/demo/demo01.nsf).
Ngoài ra: các bạn có thể copy thẳng file nsf các bạn có vào thư mục data của domino, xong tôi khuyến cáo không nên làm theo cách này khi các bạn không biết rõ nguồn file ứng dụng, các bạn có thể gặp vấn đề về quyền truy cập file, sign bit…. Các bạn chỉ nên làm theo cách này khi đã quen với Lotus Domino.
Chúc các bạn thành công.

Tạo ứng dụng Hello world!


hào các bạn!
Các phiên bản đầu tiên của IBM Lotus Domino chỉ cho phép các ứng dụng (Một số người gọi là database) chạy trên nên Lotus Notes. Nhưng bắt đầu từ bản Domino 5.c thì các ứng dụng của Lotus Domino (Mình xin gọi nhanh là ứng dụng Domino) bắt đầu hỗ trợ trên nền web (tất nhiên vẫn hỗ trợ chạy trên nền Lotus Notes) và chỉ thực sự tốt từ phiển bản 6.0, và tùy từng nền chạy ứng dụng khác nhau ta sẽ có các design khác nhau cho phù hợp. Từ bản Domino 8.0 IBM Lotus Domino đưa ra một định nghĩa mới là XPAGES cho phép một design chạy cả trên browser và cả trên Lotus Notes, tuy nhiên các kiến thức về lập trình Domino “cổ điển” vẫn không thể thiếu..
Trước tiên mình sẽ nói về cách thức phát triển một ứng dụng Domino theo cách “cổ điển”. Với các bạn mới bắt đầu viết ứng dụng Domino theo mình cũng không nên lao vào làm xpages ngay, các bạn có thể sẽ bị choáng ngợp bới các thành phần design của Domino.
Trong các bài viết của mình sẽ chủ yếu hướng đến lập trình trên nền web, vì hướng tới của mình là tạo các ứng dụng chạy xpages chứ không phải các ứng dụng “cổ điển” kia. xong cái gì cũng có gốc của nó, nên mình sẽ bắt đầu bằng những thứ “cổ điển”.
Sau đây mình sẽ demo các tạo một ứng dụng Hello World chạy trên browser.
Ứng dụng chạy trên browser là ứng dụng Domino có các thành phần design cho phép chạy trên nền web.
  1. Tạo một ứng dụng từ blank template (demo02.nsf)
  2. Mở ứng dụng vừa tạo trong Domino Designer
  3. Trong view Application của Domino Designer, double-click vào pages. click New page.
  4. Nhập tên page vào ô Name (ex: default).
  5. Trong phần soạn thảo nhập: Hello world!
  6. Save page
mở browser gõ địa chỉ: http://127.0.0.1/demo02.nsf/default?openpage
Vậy là bạn đã tạo được một ứng dụng domino có thành phần design chạy trên web rồi đấy.
Video:

Để đặt trang mặc định cho ứng dụng – trong Lotus Notes bạn click chuột phải vào ứng dụng – Application – Properties – chọn tab Launch (tab thứ 5 từ bên trái sang). Trong phần cấu hình này có 2 phần: cấu hình cho Notes và cấu hình cho Web. để cấu hình trang mặc định cho web thì trong phần When opened in a browser, chọn Open designated page, chọn trang mặc định  (default). ngoài mở thành phần mặc định là page ra bạn xem trong danh sách còn một số cách thành phần khác như xpages, frameset,….

Cho phép người dung khách (Anonymous) vào ứng dụng. trong Lotus Notes bạn click chuột phải vào ứng dụng – Application – Access control…, trong dialog Access control list to: click Add – nhập Anonymous – Trong User type:  people, Access: author, click ok.


Video:

Phần Access control list là phần rât quan trọng trong một ứng dụng domino, sau này mình sẽ có bài viết riêng về quản lý tài nguyên ứng dụng.
Tạm biệt!

 
Design by IT Manager | Bloggerized by Themes For IT Managers | MIS-DUONG