Solaris

Register to use Solaris Update Manager

** make sure there is a valid "My Sun" account (from sun.com)

1. edit a file called "registrationprofile.properties"
(should look like this):

userName=username
password=password
hostName=
subscriptionKey=
portalEnabled=false
proxyHostName=
proxyPort=
proxyUserName=
proxyPassword=

2. set correct permissions on file

3. send registration

vi /tmp/registrationprofile.properties

chmod 600 /tmp/registrationprofile.properties

/usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties

Reference Link:

Starting a "stopped" process

This one bugged me for a long time. Gnome will have applications which occasionally lock up or "crash".

Scenario:
- User1 came back from lunch and, after unlocking the session, finds the mail application giving a blank window.
- Usually, User1 will click the "window close" icon to force quit the application.
- However, User1 had an important message that was still in a composition window.
- User 1 needs it VERY badly.

I was going to force a core dump. Then, I would look through the core for text from the composition.

Then I found out about the "p" commands:
pstop
prun
ptree

Solaris package management

A few commands that are good to know regarding Solaris package management.

* To add a package

# pkgadd -d PACKAGE

* To remove a package

# pkgrm PACKAGE

* To get info on a package

# pkginfo -x PACKAGE
# pkginfo -l PACKAGE

* To list all installed packages

# pkginfo

* To list the files that constitute the package

# pkgchk -d PACKAGE -l
or
# pkgchk -l PACKAGE

* To what package the file /usr/bin/ls belongs

HowTo: Reset the admin password for Gallery

1) Go into the "albums/.users" directory

2) Edit the file that has a number for its filename
example: 1055879304:298113996

$ vi 1055879304:298113996

3) Change the password string to another md5 string

4) To get another md5 string, run this command

$ md5 -s newpass
MD5 ("newpass") = e6053eb8d35e02ae40beeeacef203c1a

HowTo: change permissions on a symbolic link

To make a change to the permissions of a symlink (and not the actual file or directory), use the "-h" option.

chmod -h a+w mysymlink


Copyright © 1999-2008 Damond Choi. All rights reserved.
Syndicate content