LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-09-2009, 08:45 PM   #1
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
Raid Manager 6.22.1 Solaris 10 - how to run the application? no gfx for su in term?


Hi,

I have just installed the RM 6.22.1 software on an E420r server running Solaris 10.

My problem is that the application itself: /usr/lib/osa/bin/rm6 won't run as a regular user. If I try to run it using su - I get an error message saying that it cannot open the display 0:0.

On linux I am able to run apps with ease while su'd in so I'm guessing it must be a setting in a config file somewhere. I tried Google'ing but got no where as my search parameters where pretty vague as I'm not even sure what to call this problem.

If anyone knows how to run this software or can help me run it from su I would really appreciate the help!

Many thanks
 
Old 03-10-2009, 02:11 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Use "su" instead of "su -" as the latter reset the environment variables by design.
 
Old 03-10-2009, 11:47 AM   #3
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Many thanks, jlliagre!

I was just wondering what the difference was between: su root, su -, and su. In linux the borders are more blurred I guess as I can launch apps from su - also with Debian based distro's from su root.

I don't know if it's OS specific: BSD, Solaris, Linux, AIX, HP-UX but certainly Solaris behaves quite differently sometimes, almost like it's being extra strict with syntax definitions etc?
 
Old 03-10-2009, 04:32 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Actually, the behavior you observe is due to a patch some (all?) Gnu/Linux distributions apply to the FSF coreutil source code. That original code contains a su command that behaves like the Solaris one (and probably AIX, HP-UX and perhaps BSDs).

This patch is convenient but it is unfortunate the manual pages do not give a clue about it ...

I had to download Red-Hat patches to figure-out why the DISPLAY variable was preserved despite what the manual page was stating.
 
Old 03-11-2009, 10:07 AM   #5
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
I see, well that makes sense. So basically Linux behaviour is slightly different from the main UNIX based systems.

Thanks again!
 
Old 03-11-2009, 12:40 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Linux behaviour is that case even different from what its own manual pages states ...
 
Old 03-11-2009, 01:09 PM   #7
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Well the answer to that is that it shouldn't be, however some application and service builds are distribution specific.

Debian does alot of customization for example with certain services like the Exim MTA.

Basically meaning that yes CLI syntax is going to be different but only by a small amount; it will also apply to config files which whos services have been patched and compiled in a slightly different manner while being wrapped up into specific package formats - .deb .rpm etc.

Also the standard behaviour amongst different distributions varies also, like su root in Debian will give you the same access as su - in say RedHat or CentOS or Fedora.

A really good example and something I really like with Debian is the /etc/network/interfaces file which allows you to configure any kind of local network interface with relative paramters, dhcp/static addresses, default router, broadcast address etc. While with non-Debian based distros this file does not exist and hence the only way to set the interface is to eithe use the ifconfig command which I think has an option to save the config or to use the GUI interface front end for the network config.

Reading this: http://www.linuxheadquarters.com/how...rkconfig.shtml
just now out of interest RH line stores the network config in: /etc/sysconfig/network-scripts/ifcfg-eth0

So yes Linux is slightly different then what the manuals claim and also different within the distros too. Ironically the manual could've been written by someone but then the command adapted by someone else that later didn't update the man page!
 
Old 03-11-2009, 04:33 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by kayasaman View Post
Ironically the manual could've been written by someone but then the command adapted by someone else that later didn't update the man page!
This is precisely what happened in that particular case.
The command and manual page have been written by the FSF.
Someone at Redhat patched the Gnu su command seven years ago to add a convenient functionality but failed to update the manual page.
 
Old 03-11-2009, 05:10 PM   #9
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Well glad to have helped you in this case even if it wasn't anything technical!

I mean take the netstat command:

Linux: netstat -tap (tcp, all, program)

Solaris: netstat -aP tcp (all, protocol {type})

Ok the manual pages are different but same command different syntax.

Even though all these systems we are currently discussing are UNIX based but each project has flavoured it differently, kind of like ice cream; chocolate, vanilla, strawberry are all icecream but taste different according to their flavour.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing between Solaris 10 and Solaris Express to run sun xVM hypervisor crisostomo_enrico Solaris / OpenSolaris 1 09-26-2008 01:39 PM
which type of raid and setting up a raid on Solaris fakie_flip Solaris / OpenSolaris 1 09-02-2006 06:14 PM
Porting the solaris application to Linux gracy_fg Linux - Newbie 1 02-14-2006 11:24 AM
Porting Solaris Application to Linux CaptainRon Solaris / OpenSolaris 5 10-01-2005 02:29 AM
linux like TERM type in solaris newpenguin Solaris / OpenSolaris 3 04-27-2004 04:28 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration