Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts

Saturday, October 4, 2008

OpenSolaris website

http://www.opensolaris.com/get/

Thursday, September 25, 2008

Cannot XManager into Solaris box

It's funny stuff, but somehow it would be useful, if you are new with Solaris

I tried to xmanager into Solaris box, but i got no response from the xmanager server

1/ I did exported DISPLAY to the local server by using IP address to avoid any miss DNS resolution. But it was unsuccessful
#DISPLAY=172.x.x.x:0.0
export DISPLAY

2/ I log into system by using SSH, check the DNS resolution. I nslookup the computer name 'pha3-1', it returned right IP. But when i nslookup the IP, it didn't return the right computer name ;-), fix it

3/ Again, I tried to xmanager, perfect, i appeared the login screen, but I wasn't able to login by root

4/ Then I back to SSH console, then check /etc/default/login, find CONSOLE=/dev/console, woa, it doesn't permit to login by root, # it

Finally, I was able to xmanager by root to Solaris box



Updated Sept 26, 2008
Today, i tried to xmanager int RHEL5, and face another problem, "cannot login"

SOLUTIONS:
----------
vi /etc/gdm/gdm-config
add tag
[xdmcp]
Enable=true

[security]
AllowRootLogin=true



Then restart X-Window
#init 3
#init 5

Ref links:
http://www.netsarang.com/products/xmg_faq.html
Tip and Trick: i cannot find any tag with name [security] in the /etc/gdm/gdm-config
then i went into /usr/share/gdm/defaults.conf. Then i saw the tag, and default parameter as well. Without this tag, you can only xmanager without root permission

Wednesday, September 24, 2008

Finding 1 candidate for QA position, good in system-programming (C#, C++) and Unix/Linux, DBMS is a plus

As my understand so far, there are many good candidates, they have their own blog, so i would use this chance to recruite them. I will search around blog Yahoo 360*, Blogger, Opera to find candidate, anyway, if you like this information, or know someone else, please drop me a message

This position is to work for CSC Vietnam, the most competitive, and attractive company in Vietnam

Tuesday, September 23, 2008

Using Tcl/Expect to automate your administration work, test telecom

After this post, i would like to add more about my project, the project's purpose is to provide ability to do remote commnand (on Windows, Linux, Unix, etc.) and file transfer.

This is a part of my research to do the project's purpose

plink (in putty package) to provide remote command ability
expect to provide ability to interact console application


Tcl/Expect commands:
I'm new to Tcl/Tk/Expect commands, syntax, so this is what i know so far

Monday, September 22, 2008

XDMP (X-Window protocol) for remoting export GUI on Unix/Linux

If you want to launch (export) a Unix/Linux GUI program on Windows or other Unix/Linux OS

First of all, on the local Unix/Linux, we need to "export" an environment variable "DISPLAY" to your destination host and the port number, eg:
# export DISPLAY=172.16.49.86:0.0

Then of the remote OS (destination), where you want to host your GUI program, you need to install an XDMP Server (eg: xming, Xmanager)

This is basic idea, you can google more information, I will add detail later. Don't forget to turn off any virus scanner programs, firewall

Working directory in Solaris - /export/home

The reason I mention about this is some of us, usually put too much data into /root, but this folder is mounted for system working only. So if disk slices get full, your system couldn't do anything

And, by default, /export/home is the place for you to put any, as much data as you want, without any corruptions to system working directory

Solaris basic command-line

Một số lệnh cơ bản của Solaris, (kể cả sữ dụng được cho Unix/Linux khác)

- init

Giải thích: Unix, Linux, có nhiều cấp độ vận hành hệ thống, thường từ, 0-5, mỗi cấp độ được sữ dụng cho mục đích khác nhau. Và đây cũng là lý do, bạn có thể cấu hình cho một service của mình chạy được ở cấp độ nào.

Cấp độ thấp nhất: 0, khi máy mới khởi động, cấp độ 3, thường là console với những services cơ bản đã được cấu hình (eg: network), cấp độ 5, bao gồm giao diện đồ họa

Mẹo:
- Bạn có thể thiết lập hệ thống mặc định khởi động ở bất kỳ cấp độ nào bạn muốn (dùng trong trường hợp bạn không muốn sữ dụng đồ họa, muốn hệ thống khởi động nhanh)
- Bạn có thể reset hệ thống bằng cách đưa về cấp độ thấp nhất (0), hoặc đưa về cấp độ thấp (3) sau đó khởi động lại cấp độ cao (5) để reset một số services (đồ họa) ở cấp độ 5
- Đưa về 1, và đưa lên >3, để reset network

Tham khảo: chi tiết về chức năng của các cấp độ



- bash: if you're familiar with bash shell, it makes you happy, use this command to change the shell

- gunzip -d .gz file

- tar xvf .tar file

Permit Solaris SSH root login

Here after I will use Vietnamese for this stuff, the reason, there are so many English articles, and I would share this to Vietnamese community. And I will do the same for all other stuffs

Theo mặc định khi bạn cài Solaris, có chọn cài đặt SSH, thì Solaris sẽ được cấu hình bảo mật, không cho phép bạn đang nhập từ xa vào SSH protocol bằng quyền root. Để làm được việc này bạn phải vào:
- /etc/ssh/sshd_config, tìm đến dòng, "PermitRootLogin" và thay đổi tham số từ "no" sang "yes"
- khởi động lại sshd service

Digital Inspiration Technology Guide

Change the world with your passion