Sponsored Content
Operating Systems Solaris how to enable GUI mode in solaris Post 302520483 by hiten.r.chauhan on Saturday 7th of May 2011 02:12:13 PM
Old 05-07-2011
how to enable GUI mode in solaris

I just installed Solaris 10 in my pc with dafault installtion.
When I tried login to it first time , it took me directly to console mode

When issuing the command svcs it didn't returned any fmri related to gui.
find the attached snapshot for the list of fmri.

Installing the fmri
Code:
svc:/application/graphical-login/cde-login:default

may solve the purpose.
Please provide help on how to install the above fmri.

Please provide any alternative to this problem.
how to enable GUI mode in solaris-snap_sol_svcspng
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to get back my linux gui mode?

Dear All, Someone please help me.. I can't afford to lose the luster from my precious RedHat Linux 7.3 install (which I was able to accomplish painstaking efforts!).. Here is my problem... I don't know why this is happening... but whenever I'm booting into my RHL 7.3 partition on my... (2 Replies)
Discussion started by: Vishnu
2 Replies

2. AIX

Startup AIX in GUI or text mode

Can I know is there anyone know how to statup AIX in GUI and text mode? Thank You..... (2 Replies)
Discussion started by: dwarf007
2 Replies

3. Solaris

Unix autostart in GUI mode

hi, i'm a newbie in UNIX. i have a disk crash and re-install the unix. But the new installation does not boot the server automatically. Then i set the auto-boot to true, and it's ok. But now the system is booting in text mode. Before this, when i type boot, the system is booting in GUI mode.... (2 Replies)
Discussion started by: lwll
2 Replies

4. Solaris

How to switch from GUI to text mode?

Hi all I have installed solaris 5.10 and it is loading in GUI mode by default. I want to load in text mode by default. How to do this? How to switch from GUI to text mode and vise versa.? Please help.. (2 Replies)
Discussion started by: johnl
2 Replies

5. Solaris

Solaris in GUI mode

Hi we work on solaris machines and access them in Command line mode using telnet services. Can they be accessed in GUI mode. If yes please advice as I have came to know that Solaris 9.0 supports GUI mode also. (1 Reply)
Discussion started by: sukhvinder_Tm
1 Replies

6. Linux

how to root gui login enable

hi iam installed mandriva spring 2009 iam unble to login into gui using root how to enable it where the settings are stored (5 Replies)
Discussion started by: seshumohan
5 Replies

7. Hardware

How to go to GUI from text mode?

Dear All, i am trying to install the redhat linux using graphical mode...but it stucks while probing video card...i have installed linux using text mode it works fine and whole the installation goes fine. after installation if i give startx command it again stucks....looks like a vga card... (9 Replies)
Discussion started by: zaheer.gr8
9 Replies

8. Solaris

Solaris machine is at # prompt not able to login in GUI mode

Solaris machine is at # prompt not able to login in GUI mode : I want to login solaris server in GUI mode from # prompt. ---------- Post updated 12-30-11 at 11:36 AM ---------- Previous update was 12-29-11 at 02:23 PM ---------- Hi, Please send me some guidelines regarding this.... as... (2 Replies)
Discussion started by: sunray
2 Replies

9. Shell Programming and Scripting

Unable to login into GUI mode.

hii all, I am unable to login into GUI mode in solaris 10. It is only prompting me to command mode credentials not going further to GUI mode.. Please help.. Thanks & regards, Bhagi (3 Replies)
Discussion started by: bhargav90
3 Replies

10. Fedora

[SOLVED] How to be the ROOT through GUI mode in fedora 15

Whenevr i am trying to access ROOT file in Fedora 15 by double clicking, its showing I dont have enough permission to access it and its not showing the inside access... How to solve it?? (4 Replies)
Discussion started by: amisubha
4 Replies
scf_iter_create(3SCF)													     scf_iter_create(3SCF)

NAME
scf_iter_create, scf_iter_handle, scf_iter_destroy, scf_iter_reset, scf_iter_handle_scopes, scf_iter_scope_services, scf_iter_ser- vice_instances, scf_iter_service_pgs, scf_iter_service_pgs_typed, scf_iter_instance_snapshots, scf_iter_snaplevel_pgs, scf_iter_snaplevel_pgs_typed, scf_iter_instance_pgs, scf_iter_instance_pgs_typed, scf_iter_instance_pgs_composed, scf_iter_instance_pgs_typed_composed, scf_iter_pg_properties, scf_iter_property_values, scf_iter_next_scope, scf_iter_next_service, scf_iter_next_instance, scf_iter_next_snapshot, scf_iter_next_pg, scf_iter_next_property, scf_iter_next_value - iterate through the Service Configuration Facility repository SYNOPSIS
cc [ flag... ] file... -lscf [ library... ] #include <libscf.h> scf_iter_t *scf_iter_create(scf_handle_t *handle); scf_handle_t *scf_iter_handle(scf_iter_t *iter); void scf_iter_destroy(scf_iter_t *iter); void scf_iter_reset(scf_iter_t *iter); int scf_iter_handle_scopes(scf_iter_t *iter, const scf_handle_t *h); int scf_iter_scope_services(scf_iter_t *iter, const scf_scope_t *parent); int scf_iter_service_instances(scf_iter_t *iter, const scf_service_t *parent); int scf_iter_service_pgs(scf_iter_t *iter, const scf_service_t *parent); int scf_iter_service_pgs_typed(scf_iter_t *iter, const scf_service_t *parent, const char *pgtype); int scf_iter_instance_snapshots(scf_iter_t *iter, const scf_instance_t *parent); int scf_iter_snaplevel_pgs(scf_iter_t *iter, const scf_snaplevel_t *parent); int scf_iter_snaplevel_pgs_typed(scf_iter_t *iter, const scf_snaplevel_t *parent, const char *pgtype); int scf_iter_instance_pgs(scf_iter_t *iter, scf_instance_t *parent); int scf_iter_instance_pgs_typed(scf_iter_t *iter, scf_instance_t *parent, const char *pgtype); int scf_iter_instance_pgs_composed(scf_iter_t *iter, const scf_instance_t *instance, const scf_snapshot_t *snapshot); int scf_iter_instance_pgs_typed_composed(scf_iter_t *iter, const scf_instance_t *instance, const scf_snapshot_t *snapshot, const char *pgtype); int scf_iter_pg_properties(scf_iter_t *iter, const scf_propertygroup_t *parent); int scf_iter_property_values(scf_iter_t *iter, const scf_property_t *parent); int scf_iter_next_scope(scf_iter_t *iter, scf_scope_t *out); int scf_iter_next_service(scf_iter_t *iter, scf_service_t *out); int scf_iter_next_instance(scf_iter_t *iter, scf_instance_t *out); int scf_iter_next_snapshot(scf_iter_t *iter, scf_snapshot_t *out); int scf_iter_next_pg(scf_iter_t *iter, scf_pg_t *out); int scf_iter_next_property(scf_iter_t *iter, scf_property_t *out); int scf_iter_next_value(scf_iter_t *iter, scf_value_t *out); The scf_iter_create() function creates a new iterator associated with handle. The scf_iter_destroy() function destroys an iteration. The scf_iter_reset() function releases any resources involved with an active iteration and returns the iterator to its initial state. The scf_iter_handle_scopes(), scf_iter_scope_services(), scf_iter_service_instances(), scf_iter_instance_snapshots(), scf_iter_ser- vice_pgs(), scf_iter_instance_pgs(), scf_iter_snaplevel_pgs(), scf_iter_pg_properties(), and scf_iter_property_values() functions set up a new iteration of all the children of parent of a particular type. The scf_iter_service_pgs_typed(), scf_iter_instance_pgs_typed(), and scf_iter_snaplevel_pgs_typed() functions iterate over the child prop- erty groups of parent, but restrict them to a particular property group type. The scf_iter_instance_pgs_composed() function sets up a new iteration of the composed view of instance's children at the time snapshot was taken. If snapshot is NULL, the current properties are used. The composed view of an instance's properties is the union of the properties of the instance and its ancestors. Properties of the instance take precedence over properties of the service with the same name, including property group name. Property groups retrieved with this iterator might not have instance as their parent and properties retrieved from such property groups might not have the indicated property group as their parent. If instance and its parent have property groups with the same name but different types, the properties in the property group of the parent are excluded. The scf_iter_instance_pgs_typed_composed() function behaves as scf_iter_instance_pgs_composed(), except the property groups of the type pgtype are returned. The scf_iter_next_scope(), scf_iter_next_service(), scf_iter_next_instance(), scf_iter_next_snapshot(), scf_iter_next_pg(), scf_iter_next_property(), and scf_iter_next_value() functions retrieve the next element of the iteration. Upon successful completion, scf_iter_create() returns a pointer to a new iterator. Otherwise, it returns NULL. Upon successful completion, scf_iter_handle() returns the handle associated with iter. Otherwise it returns NULL. Upon successful completion, scf_iter_handle_scopes(), scf_iter_scope_services(), scf_iter_service_instances(), scf_iter_instance_snap- shots(), scf_iter_service_pgs(), scf_iter_instance_pgs(), scf_iter_snaplevel_pgs(), scf_iter_pg_properties(), scf_iter_property_values(), scf_iter_service_pgs_typed(), scf_iter_instance_pgs_composed(), scf_iter_instance_pgs_typed(), scf_iter_instance_pgs_typed_composed(), and scf_iter_snaplevel_pgs_typed() return 0. Otherwise, they return -1. Upon successful completion, scf_iter_next_scope(), scf_iter_next_service(), scf_iter_next_instance(), scf_iter_next_snapshot(), scf_iter_next_pg(), scf_iter_next_property(), and scf_iter_next_value() return 1. If the iterator is complete, they return 0. Otherwise, they return -1. The scf_iter_create() function will fail if: SCF_ERROR_INVALID_ARGUMENT The handle argument is NULL. SCF_ERROR_NO_MEMORY There is no memory available. SCF_ERROR_NO_RESOURCES The server does not have adequate resources for a new iteration. The scf_iter_handle() function will fail if: SCF_ERROR_HANDLE_DESTROYED The handle associated with iter has been destroyed. The scf_iter_handle_scopes(), scf_iter_scope_services(), scf_iter_service_instances(), scf_iter_instance_snapshots(), scf_iter_ser- vice_pgs(), scf_iter_instance_pgs(), scf_iter_instance_pgs_composed(), scf_iter_snaplevel_pgs(), scf_iter_pg_properties(), scf_iter_prop- erty_values(), scf_iter_service_pgs_typed(), scf_iter_instance_pgs_typed(), scf_iter_instance_pgs_typed_composed(), and scf_iter_snaplevel_pgs_typed() functions will fail if: SCF_ERROR_DELETED The parent has been deleted. SCF_ERROR_NOT_SET The parent is not set. SCF_ERROR_NOT_BOUND The handle is not bound. SCF_ERROR_CONNECTION_BROKEN The connection to the repository was lost. SCF_ERROR_HANDLE_MISMATCH The iter and parent arguments are not derived from the same handle. The scf_iter_service_pgs_typed(), scf_iter_instance_pgs_typed(), scf_iter_instance_pgs_typed_composed(), and scf_iter_snaplevel_pgs_typed() functions will fail if: SCF_ERROR_INVALID_ARGUMENT The pgtype argument is not a valid property group type. The scf_iter_next_service(), scf_iter_next_instance(), scf_iter_next_snapshot(), scf_iter_next_pg(), scf_iter_next_property(), and scf_iter_next_value() functions will fail if: SCF_ERROR_DELETED The parent the iterator is attached to has been deleted. The scf_iter_next_scope(), scf_iter_next_service(), scf_iter_next_instance(), scf_iter_next_snapshot(), scf_iter_next_pg(),scf_iter_next_property(), and scf_iter_next_value() functions will fail if: SCF_ERROR_NOT_SET The iterator is not set. SCF_ERROR_INVALID_ARGUMENT The requested object type does not match the type the iterator is walking. SCF_ERROR_NOT_BOUND The handle is not bound. SCF_ERROR_HANDLE_MISMATCH The iter and parent arguments are not derived from the same handle. SCF_ERROR_CONNECTION_BROKEN The connection to the repository was lost. The scf_error(3SCF) function can be used to retrieve the error value. Example 1: Iterate over all instances under a service. scf_iter_t *iter = scf_iter_create(handle); if (iter == NULL || scf_iter_service_instances(iter, parent) == -1) { /* failure */ } while ((r = scf_iter_next_instance(iter, child)) > 0) { /* process child */ } if (r < 0) { /* failure */ } scf_iter_destroy(iter); Example 2: Connect to the repository, walk all services and instances and print their FMRIs. scf_handle_t *handle = scf_handle_create(SCF_VERSION); scf_scope_t *scope = scf_scope_create(handle); scf_service_t *svc = scf_service_create(handle); scf_instance_t *inst = scf_instance_create(handle); scf_iter_t *svc_iter = scf_iter_create(handle); scf_iter_t *inst_iter = scf_iter_create(handle); size_t sz = scf_limit(SCF_LIMIT_MAX_FMRI_LENGTH) + 1; char *fmri = malloc(sz + 1); int r; if (handle == NULL || scope == NULL || svc == NULL || inst == NULL || svc_iter == NULL || inst_iter == NULL || fmri == NULL) { /* failure */ } if (scf_handle_bind(handle) == -1 || scf_handle_get_scope(handle, SCF_SCOPE_LOCAL, scope) == -1 || scf_iter_scope_services(svc_iter, scope) == -1) { /* failure */ } while ((r = scf_iter_next_service(svc_iter, svc)) > 0) { if (scf_service_to_fmri(svc, fmri, sz) < 0) { /* failure */ } puts(fmri); if (scf_iter_service_instances(inst_iter, svc) < 0) { /* failure */ } while ((r = scf_iter_next_instance(inst_iter, inst)) > 0) { if (scf_instance_to_fmri(inst, fmri, sz) < 0) { /* failure */ } puts(fmri); } if (r < 0) break; } if (r < 0) { /* failure */ } scf_handle_destroy(handle); scf_scope_destroy(scope); scf_service_destroy(svc); scf_instance_destroy(inst); scf_iter_destroy(svc_iter); scf_iter_destroy(inst_iter); See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ libscf(3LIB), scf_error(3SCF), scf_handle_create(3SCF), attributes(5) 22 Aug 2005 scf_iter_create(3SCF)
All times are GMT -4. The time now is 08:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy