Monday Aug 18, 2008

Opensolaris 2008.05 root user

Its generally good practice to use non-root user and when you require certain commands to be run as root you can use pfexec command. Pfexec is somewhat similar to sudo but much powerful than sudo.

$pfexec bash

When you install OpenSolaris 2008.05 if you specify username during installation, then it permits login only for non-root user. Run the following command so that root can login as a user.

#rolemod -K type=normal root

For more info on this check out this.

Thursday Jul 17, 2008

Solaris Nevada / OpenSolaris Mac book right-click

When you run Solaris on Macbook. Trouble is that the right-click doesn't work . One way to solve is to have USB mouse or you can have a key mapped to right-click so that when ever you press the key it automatically maps the key to right click. To enable this goto Start -> Preferences -> Keyboard Accessibility Preferences . 

click on "Enable Keyboard accessibility features" and then click "Enable Mouse Keys"


We need the scancode of the key to map it to right-click. For identifying scancode you can run Xev utility . Start the terminal and run xev "/usr/openwin/demo/xev" program.  Click on Xev window and press the key which you wanted to map it to right-click, xev will show the scancode for the key . Once you get the scancode you can kill xev.

Sample xev screen:


Now to open your favorite editor and create a file under your home directory ~/ .xmodmap . Put the following entry into it.
-----------
keycode 117 = Pointer_Button3
---------

Save the file and run the command " xmodmap ~/.xmodmap" to activate it.  Now while pressing the key you should be able to see right-click menu. Put the an entry in

Start -> Preferences -> Session

so that "xmodmap" command is executed each time you log into Gnome.  Add entry "/usr/openwin/bin/xmodmap <path>" . Substitute <path> with location of  ".xmodmap" file eg. /export/home/guest/.xmodmap

About

pradhap

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today