Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of my employer.
Showing posts with label sysadmin. Show all posts
Showing posts with label sysadmin. Show all posts

Friday, August 1, 2008

Samba configuration on Fedora Linux


Samba server implementation allows a linux system to interact with a windows network. At my home I have a router which connects my desktop PC where Windows XP professional is installed with ip address 192.168.1.100 and a laptop where Fedora 7 is installed with ip address 192.168.1.102.


Now configuration details for windows system :

1) I have an administrator account in my windows sytem with username "ritwikghoshal" and password (say) "windows".
2) Share directories / drives as you wish. I shared Netbeans project folder and "D" drive of my system. Just right click on the directory / drive and choose sharing.
3) Go to Control panel --> Network setup wizard --> click next --> I used the existing shared connection for the computer's internet access (i.e the recommended settings) --> Click next.
4) Computer Description : "desktop" --> Computer Name : "RITWIKD" --> Click Next.
5) Workgroup Name : "mygroup" --> Click Next --> Turn on file and printer sharing --> Next.
6) Just finish the wizard

Configuration details for Linux system :

1) Ping test : First I performed a ping test to check if windows system is reachable
[root@ritwik ~]# ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=128 time=10.2 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=128 time=2.24 ms
64 bytes from 192.168.1.100: icmp_seq=3 ttl=128 time=2.06 ms
64 bytes from 192.168.1.100: icmp_seq=4 ttl=128 time=1.85 ms

--- 192.168.1.100 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 1.854/4.103/10.253/3.553 ms

2) Check whether Samba is installed :
[root@ritwik ~]# smbd -V
Version 3.0.28-0.fc7

If you don't get any o/p like "Version 3.0.28-0.fc7" that means you don't have samba installed. Then try to install it first.

3) set Firewall to consider samba as trusted service :
System -> Administration -> Firewall and SElinux
Now check samba in Firewall option's trusted services.

4) Service Configuration :Start "smb" services
System -> Administration -> server settings -> services
Start smb service.

5) Samba Server Configuration :
System -> Administration -> samba

I. Server settings : Preferences -> Server settings
Here workgroup name would be same with windows' workgroup name i.e "mygroup". (windows config : step 5).

II. Samba Users : Preferences -> Samba users -> Add user
windows' username : it would be same with the username of your windows system , mine was "ritwikghoshal" (windows config : step 1).
setup a password , mine was "fedora".

III. Add share : add a directory , give a sharename , set necessary permissions . Description field is optional. I shared three directories from my home directory : software, study and NetBeans project folder.

6) Restart samba service :
System -> Administration -> server settings -> services
Restart smb service.

Access windows' share from Fedora 7 :

After following the abovesaid steps I checked the Network directory.It contained 4 icons : "RITWIK" , "ritwik's public files on ritwik" , "SFTP File Transfer on ritwik" , "Windows Network".
"RITWIK" : contained shared files of fedora (study, software , nbproject dir etc.)
"ritwik's public files on ritwik" : contained nothing
"SFTP File Transfer on ritwik" : contained root directory.
"Windows Network" : contained 2 icons , 'mshome' & 'mygroup'.
'mshome' had 'RITWIKD' where I found all windows' shared files.
'mygroup' contained same 'RITWIK' directory.


Access Fedora's share from windows :
Go to start -> Run -> open : \\192.168.1.102
Hit the return key and a browser window will display all shared files of Fedora system.

So... you are done !!!

You may also like to use commands than GUI , in that case ..
Configure IPTABLES for firewall issue
start / restart smb service by using commnds like :
/etc/rc.d/init.d/smb start
/etc/rc.d/init.d/smb restart
Edit /etc/samba/smb.conf and /etc/samba/smbusers to configure samba server.
I have used the following command to mount windows' "E" directory to my fedora home, in a directory named "WinShare".
[root@ritwik ~]# mount -t cifs -o username=ritwik,password=fedora,ip=192.168.1.100 //Ritwikd/E /home/ritwik/WinShare
.. and the following one to unmount :
[root@ritwik ~]# umount /home/ritwik/WinShare

Thursday, July 31, 2008

HP printer behaving strange on OpenSolaris 2008.05

I have a HP Deskjet 3745 printer and trying to print a page from Open Solaris 2008.05 platform. First I tried to configure my printer in the system. I did it in the following way -
1) I connect my printer to the system and powered it on.
2) system -> administration -> print manager
and Solaris print manager was opened.
3) Tools -> Find printer
This tool was able to find my printer and add it to the system. Check out the screenshot.


After that I found my printer in solaris print manager.


Again , a printer icon on the panel told me that the printer is online and ready to print.


I opened a pdf file to take a print , and I was happy to found my printer in the options.


I clicked the 'Print' button , and after that..... No reaction in my printer !!! I opened a text file (written using gedit editor) , but my printer was not present in the 'Print' option. I tried an image file (jpeg) , my printer was present in the options, but again no reaction after clicking the print button.

Finally I was not able to take a printout from any kind of file though my printer is working perfect when I am using a different operating system.

Do you have any idea ?? Please comment ...

Thursday, July 10, 2008

OpenSolaris - Linux file sharing (Fedora 7 and OpenSolaris 2008.05)

I am using NFS to share some files between my linux and open solaris system. I am working behind a router which connects my desktop pc and my laptop . My desktop pc has OpenSolaris 2008.05 installed with ip address 192.168.1.105 and Fedora 7 is installed in my laptop with ip address 192.168.1.102.

I have configured my fedora system in the following way :

*A ping test to make sure that they are reachable to each other.

[root@ritwik ~]# ping 192.168.1.105
PING 192.168.1.105 (192.168.1.105) 56(84) bytes of data.
64 bytes from 192.168.1.105: icmp_seq=1 ttl=255 time=3.53 ms
64 bytes from 192.168.1.105: icmp_seq=2 ttl=255 time=1.18 ms
64 bytes from 192.168.1.105: icmp_seq=3 ttl=255 time=1.18 ms
64 bytes from 192.168.1.105: icmp_seq=4 ttl=255 time=1.16 ms
64 bytes from 192.168.1.105: icmp_seq=5 ttl=255 time=1.30 ms
64 bytes from 192.168.1.105: icmp_seq=6 ttl=255 time=1.44 ms

--- 192.168.1.105 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5000ms
rtt min/avg/max/mdev = 1.161/1.636/3.537/0.856 ms

** System -> Administration -> Server settings -> services.
I looked for NFS service and make sure that's running.

*** System -> Preferences -> system -> NFS.
click on 'Add'. I selected '/home/ritwik/study' directory to share .
Host(s) : 192.168.1.105
I checked 'Read-Write'.

now , /etc/exports was looking like :

/home/ritwik/study 192.168.1.105(rw,sync)

I have also checked the following :

[root@ritwik ~]# exportfs -rv

exporting 192.168.1.105:/home/ritwik/study
[root@ritwik ~]# showmount -e
Export list for ritwik:
/home/ritwik/study 192.168.1.105

My firewall service trusts NFS4 as trusted service , though I have used NFS version 3 to mount shared files.

Now configuration details for OpenSolaris 2008.05 :

*A ping test to make sure that they are reachable to each other.

-bash-3.2# ping 192.168.1.102
192.168.1.102 is alive
** Go to services. (for OpenSolaris 2008.05, browse it from system -> administration -> Services). Activate NFS services.

*** Go to Administration -> Share Folder. Click on 'Add'.

1)Now select the path to the folder you want to share , by default your home directory will be selected. I have shared '/export/home/ritwik/softwares'.

2)Share with : NFS

3)Click on "Add Host"

Allowed hosts : Specify IP address
enter IP address : 192.168.1.103
Check out the 'Read Only' box in Hosts settings if necessary.

Click OK to exit the wizards.

Optional Steps :

Now check out whether NFS server is running properly :
# svcs network/nfs/server
You should get a result like :

STATE STIME FMRI
online 21:22:11 svc:/network/nfs/server:default

Now check out Shared files :
#exportfs
From my laptop I got a result like :

- /export/home/ritwik sec=sys,ro=192.168.1.105 ""

and from my desktop,

- /export/home/ritwik/softwares sec=sys,ro=192.168.1.103 ""

You may also check /etc/dfs/dfstab , the file in my laptop was looking like :

# Do not modify this file directly.
# Use the sharemgr(1m) command for all share management
# This file is reconstructed and only maintained for backward
# compatibility. Configuration lines could be lost.
#
# share [-F fstype] [ -o options] [-d ""] [resource]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o sec=sys,ro=192.168.1.105 /export/home/ritwik


Now , I make a mount point in my fedora system.

[ritwik@ritwik ~]$ mkdir OSolShare

Then I used the following command to mount OpenSolaris shared files in that directory :

[root@ritwik ~]# mount -t nfs -o vers=3 192.168.1.105:/export/home/ritwik/mysql/docs /home/ritwik/OSolShare

Then I was trying to mount fedora shared files in my Opensolaris system.

first I make a mount point :

ritwik@ritwik:~$ mkdir linxShare

then I tried the following command :

-bash-3.2# mount -F nfs -o vers=3 192.168.1.102:/home/ritwik/study /export/home/ritwik/linxShare

but got the following error :

nfs mount: 192.168.1.102: : RPC: Rpcbind failure - RPC: Timed out
nfs mount: retrying: /export/home/ritwik/linxShare
nfs mount: 192.168.1.102: : RPC: Rpcbind failure - RPC: Timed out
nfs mount: 192.168.1.102: : RPC: Rpcbind failure - RPC: Timed out
nfs mount: 192.168.1.102: : RPC: Rpcbind failure - RPC: Timed out

then I checked whether rpc is running :

-bash-3.2# ps -ef | grep rpc
daemon 339 1 0 23:28:42 ? 0:00 /usr/sbin/rpcbind
root 896 716 0 00:30:12 pts/2 0:00 grep rpc

which means rpc is running !!

Now I am trying to solve this problem... I'll post the solution asap.

Wednesday, June 25, 2008

OpenSolaris - OpenSolaris File sharing (OpenSolaris 2008.05 & SXDE 1/08)

Network file sharing in open solaris system is quite easy !! I am working behind a router which connects my desktop system and my laptop . OpenSolaris 2008.05 is installed on my desktop pc with ip address 192.168.1.105 and SXDE (solaris express developer edition) is installed on my laptop with ip address 192.168.1.103.

Now configuration details for my laptop (SXDE 1/08):
(This method is also applicable for SXDE 9/07)

*A ping test to make sure that they are reachable to each other.

-bash-3.2# ping 192.168.1.105
192.168.1.105 is alive
** Go to services. (for sxde 1/08, start -> administration -> Services). Activate NFS services.

*** Go to Administration -> Share Folder. Click on 'Add'.


1)Now select the path to the folder you want to share , by default your home directory will be selected. I have shared the default directory to NFS.

2)Share with : NFS


3)Click on "Add Host"

Allowed hosts : Specify IP address
enter IP address : 192.168.1.105
Check out the 'Read Only' box in Hosts settings if you want to give 'Read Only' permission.


Click OK to exit the wizards.

Now configuration details for my desktop (OpenSolaris 2008.05):

*A ping test to make sure that they are reachable to each other.

-bash-3.2# ping 192.168.1.103
192.168.1.103 is alive
** Go to services. (for OpenSolaris 2008.05, browse it from system -> administration -> Services). Activate NFS services.

*** Go to Administration -> Share Folder. Click on 'Add'.

1)Now select the path to the folder you want to share , by default your home directory will be selected. I have shared '/export/home/ritwik/softwares'.

2)Share with : NFS

3)Click on "Add Host"

Allowed hosts : Specify IP address
enter IP address : 192.168.1.103
Check out the 'Read Only' box in Hosts settings if necessary.
Click OK to exit the wizards.

Optional Steps :

Now check out whether NFS server is running properly :
# svcs network/nfs/server
You should get a result like :

STATE STIME FMRI
online 21:22:11 svc:/network/nfs/server:default

Now check out Shared files :
#exportfs
From my laptop I got a result like :

- /export/home/ritwik sec=sys,ro=192.168.1.105 ""

and from my desktop,

- /export/home/ritwik/softwares sec=sys,ro=192.168.1.103 ""

You may also check /etc/dfs/dfstab , the file in my laptop was looking like :

# Do not modify this file directly.
# Use the sharemgr(1m) command for all share management
# This file is reconstructed and only maintained for backward
# compatibility. Configuration lines could be lost.
#
# share [-F fstype] [ -o options] [-d ""] [resource]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o sec=sys,ro=192.168.1.105 /export/home/ritwik

Now , make a mount point.

bash-3.2$ mkdir dsktopShare (in my laptop)
bash-3.2$ mkdir laptopShare (in my desktop)

Mount the shared file :

-bash-3.2# mount -F nfs 192.168.1.105:/export/home/ritwik/softwares /export/home/ritwik/dsktopShare(from my laptop)

-bash-3.2# mount -F nfs 192.168.1.103:/export/home/ritwik /export/home/ritwik/laptopShare
(from my desktop)

Unmount in the following way :

# umount /export/home/ritwik/dsktopShare
# umount /export/home/ritwik/laptopShare

Friday, June 6, 2008

OpenSolaris 2008.05 REVIEW

I have spent almost a week with OpenSolaris 2008.05 and I was able to check some features of this operating system. Working with it was really a great experience and everyday I have blogged about some features I have gone through. All total 7 posts cover my review about it.
[Please Click on a OpenSolaris 2008.05 (part - X) to view that post]

OpenSolaris 2008.05 (part - I) : This is my first hand experience with the OpenSolaris 2008.05 live cd. It includes Device driver utility , login options etc.

OpenSolaris 2008.05 (part - II) : This post was created after successful installation of this os. It contains installation details,a small warning during boot, network configuration, sound device detection , terminal behaviour, visual effects and different location of menu.lst file.

OpenSolaris 2008.05 (part - III) : It contains "Application-Places-System" type start buttons , new login in a window feature , IPS packaging system ,window selector option etc.

OpenSolaris 2008.05 (part - IV) : The "RBAC" feature , web-stack components and IPS (more..) has been reviewed in this post.

OpenSolaris 2008.05 (part - V) : This post covers "ZFS" file system , "BE" boot environment , "beadm" command , "reboot" command etc.

OpenSolaris 2008.05 (part - VI) : Various ways of software installation , Sound and Video features , mounting ntfs partitions are described in this post.

OpenSolaris 2008.05 (part - VII) : Here I have described wine installtion , device driver utility , various services and some minor bugs.


Comparison with other operating systems I have used :

At present I am using fedora 9 and SXDE (solaris express developer edition) 9/07 in my systems along with opensolaris 2008.05. I have my experience with fedora from fedora core 3 to fedora 9 , Red Hat 9 , RHEL 5 , solaris 10 ,SXDE 9/07 , Ubuntu and some windows like xp, vista etc. Fedora core 3 to fedora core 6 and redhat 9...they are too old.. it's meaningless to compare with them. On comparison with fedora 7, KDE is absent, visual effects are not working ("compiz" is not working in my system) though fedora was able to bring visual affects in the same system , driver support is improved in this version , still further improvement is necessary. Fedora core 6 brought "ntfs -3g" i.e ntfs read-write support for the first time. Fedora 7 also has that driver and ntfs file systems are automatically mounted in fedora 8 and 9. So , read-write support for other file systems should be added. As it was not possible to install NetBeans IDE in fedora 8 , I have only few hours of experience with fedora 8. Anyway ,"Package manager" has been introduced for the first time , which was in fedora since long. "IPS" is a revolutionary step , specially I would like to appreciate the "add repository" feature. But , it should be capable of resume downloading. If network connection fails at any point of time ,download should not be started later from the beginning. Also ,I think , it's really easy to add a "text field" and a "button" in the package manager window to enable users to add repository graphically."ZFS" (also present in solaris 10) is another advantage of this distro over the others. Integration with the webstack components like NetBeans , mysql etc has made this distro more developer friendly than others."Sound and Video" feature is still not up to the mark !!! I know the problem of licensing issues of various formats , but this is a mandatory feature of any popular operating system. I like the RBAC feature of this distro , but that may create problem for those who are not used to with unix commands. Many manual pages are missing in this distro , that must be added in next release. The file browser window has a "Document" in the list of places , but no "Document" folder was present in my home directory.I created it manually.According to security features , no doubt it will score higher than linux. But sometime it's become difficult to download large files in a lesser speed due to port blocking for enhanced security features. "BE" , the boot environment utility is another beautiful feature. Support for Ipod , webcam , Scanner , MP3 player and external USB harddrive must be improved. This distro is pretty small in size , but I think open office , netbeans , Mysql etc should be bundled in a DVD release. Some people may want to take these benefits who don't have (or have a slow) internet connection.

Request for enhancements :

- Improved driver support
Improved support for Ipod , webcam , Scanner , MP3 player, HD Audio device , external USB harddrive , read-write support for other file systems etc.
-- Desktop environment
KDE
--- Sound & Video
support for populer formats like mp3 , avi , dvdrip , vob , mpeg etc.
---- More built-in features
more built-in features like OpenOffice and webstack components etc.
----- IPS utility enhancement
Download should be resumed , repositories should be added graphically.

OpenSolaris 2008.05 (part - VII)

Check Out :

OpenSolaris 2008.05 (part - I)
OpenSolaris 2008.05 (part - II)
OpenSolaris 2008.05 (part - III)
OpenSolaris 2008.05 (part - IV)
OpenSolaris 2008.05 (part - V)
OpenSolaris 2008.05 (part - VI)

* Wine Installation : Today I was trying to install wine in my system. I have downloaded the latest version of wine (1.0-rc3) from here , but wine build failed with the following error :

configure: error: X development files not found. Wine will be built without X support, which probably isn't what you want.You will need to install development packages of Xlib/Xfree86 at the very least. Use the --without-x option if you really want this.


This is probably a bug , check out !!

Then I tried "Wine patch kit" and follow this instructions , but "./maintain download /usr/local/src/wine-patchkit /usr/local/src/wine-sources" failed with the following result :

Arg 1 == download - downloading
mv: cannot access wine
Use "cvs" as password for winehq cvs
cvs checkout: warning: failed to open /root/.cvspass for reading: No such file or directory
cvs checkout: authorization failed: server cvs.winehq.org rejected access to /home/wine for user cvs
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Then I tried Doug Scott's wine build instructions , but when "./cbe-install" was asking for "Enter the path to the Solaris packages [/cdrom/cdrom0/Solaris_11/Product]:" , I didn't understand what should I give. (SXDE 9/07 installation DVD contains a Solaris_11 dir which has a Product dir but OpenSolaris 2008.05 installation CD has nothing like that !!).

Anyway , I opened 'cbe-install' from 'jds-cbe-1.6.0' and tried to resolve JDS_DEPENDENCIES using package manager. Below I have copied a part of cbe-install file which contains JDS_DEPENDENCIES :

# packages that the JDS build requires. cbe-install will check if they
# are installed and install them if not.
JDS_DEPENDENCIES="SUNWgpch SUNWi2cs SUNWi1cs SUNWi15cs SUNWceuos SUNWcleu SUNWeuluf SUNWdeiso1 SUNWi5cs SUNWi13cs SUNWi9cs SUNWeeuos SUNWi7cs SUNWesiso1 SUNWcleu2 SUNWeu8os SUNWfriso1 SUNWale SUNWhkleu SUNWhleu SUNWinleu SUNWitiso1 SUNWjfpu SUNWkleu SUNWmeaos SUNWnafos SUNWnamos SUNWneuos SUNWsamos SUNWseuos SUNWsviso1 SUNWtleu SUNWweuos SUNWgtar SUNWwgetr SUNWwgetu SUNWhea SUNWsfwhea SUNWsprot SUNWxcu4"


Then I searched for each package in the "Package Manager". Most of them were available except a few . List of unavailable packages is given below :

SUNWcleu
SUNWale
SUNWhleu
SUNWhkleu
SUNWjfpu
SUNWtleu
SUNWgtar
SUNWwgetr
SUNWwgetu
SUNWhea


This time "Package Manager" worked in a pretty strange way !!! When I searched for SUNWi2cs , it find out the package but after clicking the install/update button it showed me something like : "1 package will be installed, 0 MB will be downloaded" and SUNWi2cs installed in a moment.

"General Info" about the package was something like :

Information for installed package:

Name: SUNWi2cs
FMRI: pkg:/SUNWi2cs@0.5.11,5.11-0.86:20080426T181621Z
Version: 0.5.11-0.86
Packaged: 2008-04-26 18:16:21

But , "Files Details" contained a single line : "Root: /".

Anyway , I found SUNWi2cs in the location : "/tmp/cbe-pkgs-vGxb". Other installed packages were also there. Then I tried "./cbe-install" again , result is given below :

ritwik@ritwik:~$ cd jds-cbe-1.6.0
ritwik@ritwik:~/jds-cbe-1.6.0$ ./cbe-install
Checking for required packages...
Package SUNWi2cs is required for building JDS
Would you like to install it now? [yes]:
Install all required packages? [yes]:
Enter the path to the Solaris packages [/cdrom/cdrom0/Solaris_11/Product]: /tmp/cbe-pkgs-vGxb
Installing package SUNWi2cs
WARNING:
The package "X11 ISO-8859-2 required fonts"
is a prerequisite package and should be installed.
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

Installation of was suspended (administration).
No changes were made to the system.
WARNING: failed to install required package SUNWi2cs
Would you like to retry? [yes]:
Enter the path to the Solaris packages [/tmp/cbe-pkgs-vGxb]:
Installing package SUNWi2cs
WARNING:
The package "X11 ISO-8859-2 required fonts"
is a prerequisite package and should be installed.
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

Installation of was suspended (administration).
No changes were made to the system.
WARNING: failed to install required package SUNWi2cs
Would you like to retry? [yes]: n

Installation aborted.
ritwik@ritwik:~/jds-cbe-1.6.0$

I don't have any idea about solving this problem..... :(

**
Device Driver Utility :
This utility checks whether a driver exists in the Image Packaging System (IPS) for devices that do not have an attached driver. Device Driver Utility enables you to install the device drivers from IPS for those devices on your system that do not have an attached driver. Another function of this tool is to submit system configuration information to the OpenSolaris Hardware Compatibility List (HCL). (Read more...)

*** Various Services : Various services are available here... just enable them to use. Everything needed for network administration is available , access it from System --> Administration --> Services.

**** Minor bugs :
-- "Package Manager" is not closing normally , every time I tried to quit it by clicking on the close button, it shows that file manager is not responding. I need to 'force quit' the window each time.
-- "Documents" folder was available under the 'places' option in the 'file browser' window , but it was not present in my home folder. I created it manually.
-- I use 'gedit' to create a new document and often save it on my desktop. But , sometime after closing the gedit window , I can't find the file on my desktop. I need to 'reload' the desktop from the file browser window to view the file on the desktop.

Thursday, June 5, 2008

OpenSolaris 2008.05 (part - VI)

Check Out :

OpenSolaris 2008.05 (part - I)
OpenSolaris 2008.05 (part - II)
OpenSolaris 2008.05 (part - III)
OpenSolaris 2008.05 (part - IV)
OpenSolaris 2008.05 (part - V)

* Software Installation : I have tested IPS few days before (Check this from part - IV). Today I was trying to add some additional package authorities. I did it in the following way :

-bash-3.2# pkg set-authority -O http://pkg.sunfreeware.com:9000/ sunfreeware.com
-bash-3.2# pkg set-authority -O http://blastwave.network.com:10000/ Blastwave.org

(Read more...)

After that , I opened "Package Manager" and find that "sunfreeware.com" and "blastwave.org" was added in the drop down list of "Repository". I tried both of them , but both were not working !!!! There was no package list at all appeared in the window . Then I execute "pkg refresh" from command line and package list from those repositories appeared in the package manager window.

[Click on the image to get larger view]

Anyway , let's check out other procedures which I have used to install softwares in other solaris distros. Most of them are working on solaris express developer edition (9/07) and solaris 10.

pkg-get and wget : It's very easy to use them. A simple command like "pkg-get -i xxxxxx" will download and install xxxxxx in your system . You can use any of these packages from blastwave.org.
(Check out how to use them....).

pkgadd and pkgadm : pkgadd transfers the contents of a software package from the distribution medium or directory to install it into the system and the pkgadm utility is used for managing the packaging and patching system. It has several subcommands that perform various operations relating to packaging. The pkgadm command includes subcommands for managing certificates and keys used. Check out "man pkgadd" and "man pkgadm".

rpkgadd : rpkgadd is a remote package management tool for solaris. It is useful when you want to install a software in a large no of machines. Basic requirements are like :
-- SSH must be installed on all servers.
-- Access to an account with root permissions on each target server.
(Read more...).

pkgman : pkgman is a a package management utility that can be used to maintain packages in a desired state on hosts that run solaris. Gtk+ packages need to be installed for creating gui .
(Read more...).

pkgbuild and SFE : pkgbuild is a tool for building Solaris SVr4 packages from RPM-like spec files and SFE (spec-files-extra) is a repository of RPM-like spec files for building Solaris SVr4 packages from various Open Source modules. OpenSolaris 2008.05 is NOT in the list of SFE supported solaris versions.
(Read more...).

Building from source : this is probably the most native method.... still works fine most of the time. Click here to check out list of freeware sources from sunfreeware.com.

** Mount ntfs partitions : I have followed the same way to mount local ntfs partitions as I did in SXDE 9/07 (Check this post). I executed "fdisk /dev/rdsk/c4d0p0" to get the partition table. (last line of my /etc/vfstab is something like : "/dev/dsk/c4d0s1 - - swap - no -"). From the partition table I found that c4d0p1 is a ntfs type partition. I mount it in a local directory and it's working fine !!!

*** Sound and Video : Currently provides two players i.e totem movie player and rhythmbox music player. Other options are for sound recording , volume control, cd ripping etc. Sound and Video category of the package Manager (opensolaris.org repository) provides an option which names like "SUNWgnome-media-mp3". I installed it in my system , but I was NOT able to play any mp3 format audio file.
You can install mplayer to play your favorite media files. If you have added blastwave.org in your list of authorized repositories you can find it as "IPSmplayer". you can also use command line instruction like "pkg install IPSmplayer". But , DO NOT use "pkg-get -i mplayer". This command worked for me in SXDE 9/07 but producing errors in OpenSolaris 2008.05. I got an error like :

- - - - - - - - - - - - - - - - - - - - - - - - -
Trying to install dependancy glib2 glib2
Segmentation Fault (core dumped)


Then I tried "pkg-get -i glib2-2.16.3" , but I was unable to solve this issue.

Also check out "Compiling Mplayer on OpenSolaris 2008.05" from lewiz's blog.


NEXT : Opensolaris 2008.05 (part - VII)

OpenSolaris 2008.05 (part - V)

Check Out :

OpenSolaris 2008.05 (part - I)
OpenSolaris 2008.05 (part - II)
OpenSolaris 2008.05 (part - III)
OpenSolaris 2008.05 (part - IV)

and now :

* ZFS filesystem : OpenSolaris 2008.05 uses ZFS as default filesystem. ZFS Community presents ZFS as a "pooled storage model that completely eliminates the concept of volumes and the associated problems of partitions, provisioning, wasted bandwidth and stranded storage. Thousands of file systems can draw from a common storage pool, each one consuming only as much space as it actually needs. The combined I/O bandwidth of all devices in the pool is available to all filesystems at all times."
Check out the documentation and view the demos from opensolaris.org.

** BE (Boot Environment) : If you want to manage multiple OpenSolaris boot environments on a single system , there's a good news for you !!! Open Solaris 05/2008 introduces a "boot environment (BE) utility" with ZFS file system. Check out how to create / destroy , mount / unmount and activate or rename a BE. Also check "man beadm" and beadm Command Reference..
Don't forget , BE utility works only with ZFS filesystem.

Check out OpenSolaris 2008.05 Release note for various BE issues.

** Reboot command : I used to reboot my SXDE 9/07 system by using the "#shutdown -y -i6 -g0" command , but OpenSolaris 2008.05 provides a reboot command. You can simply execute "#reboot" to reboot your system.

NEXT : OpenSolaris 2008.05 (part - VI)

OpenSolaris 2008.05 (part - IV)

Check Out :

OpenSolaris 2008.05 (part - I)
OpenSolaris 2008.05 (part - II)
OpenSolaris 2008.05 (part - III)

Now another new features I came to know :

* Root login : Root login is NOT enabled in this distro. OpenSolaris 2008.05 describes root as a role using RBAC (Role Based Access Control).
(Read more about RBAC...)
So , you can be the root by using "su" cammand, but root login is not permissible. If you still want to login as root you need to disable the root feature from user profile and execute the following : "# rolemod -k type=normal root".
(Read more about login and root specifications ....)

** IPS (Image packaging system):
OpenSolaris 2008.05 (part - III) already described the features of "package manager" which is basically IPS GUI. IPS is a network centric packaging system which makes software installation , update and removal procedures easier than anything !! If you want to install openoffice or netbeans (6.0.1) or sunstudioexpress in your system , you simply need to execute the followings one by one :
$pkg install openoffice
$pkg install netbeans
$pkg install sunstudioexpress

(Read more about IPS....)

[I was trying to manually install glassfish-mysql bundled version of Netbeans 6.1 in my system (as "pkg install netbeans" installs 6.0.1 version). Check out what happened.]

*** Web Stack Components :
The OpenSolaris 2008.05 distro includes a set of widely used web technologies that provides options to easily build web applications.
web stack components includes "Apache HTTPd Server 2.2.8" , "MySQL 5.0.45" , "PHP 5.2.4" , "PostgreSQL 8.2" , "Ruby on Rails" , "Squid 2.6" and "memcached 1.2.2".
Non- root users can easily install these packages in their system by using "pfexec" command. Say , if you want to install Mysql , you need to execute the following : "pfexec pkg install SUNWmysql5".

(Check out the full list....)

[I didn't know that Mysql can be installed so easily !! I tried to install Mysql for solaris 10 on OpenSolaris 2008.05 . Check out what happened.]

Anyway , Web Stack UI component will allow you to admin over the components like start and stop apache2 / mysql servers graphically etc.

Wednesday, June 4, 2008

OpenSolaris 2008.05 (part - III)

Check Out :

OpenSolaris 2008.05 (part - I)
OpenSolaris 2008.05 (part - II)

now , let's getting introduced to some another new features :

* No single start button , this distro introduces "Application - Places - System" type start buttons which categorizes different tasks.


** "system Tools" provides a new option to "New login in a window". you can login as a different user by using this window and perform desirable tasks.

[Click on the image to get larger view]

*** "Window Selector" : At the top right hand corner a window selector button is available , on click which displays a list all opened windows , choose anyone to select.


**** "Package manager" (browse it from system --> Administration) provides another impressive feature which enables you to download and install softwares in your system by using a graphical window.
Here you can search a package by name , select it and click install/update. It will resolve all dependencies (Installation of a package requires another packages) , download all of them and install in your system.
"opensolaris.org" is the default repository , you can add your own repository and create new package of your own. (Read more about "Image Packaging System"....)

[Click on the image to get larger view]

package manager works fine for installing / removing packages but one problem is there. I was trying to install open office using it , when more than 50% download was completed my internet connection started facing problems.... after a few minutes it was resolved , but download was not continuing. So I canceled the application and tried to install/upload it again. But as soon as I click the cancel button , everything downloaded in /opt/openoffice was gone and download operation started from the beginning.

NEXT : OpenSolaris 2008.05 (part - IV)

Sunday, June 1, 2008

OpenSolaris 2008.05 (part - II)

Check Out :

OpenSolaris 2008.05 (part - I)

Today I have installed open solaris 05/2008 in my system . I have a desktop pc with p4 processor (2.8 GHz), Intel D845GVSR motherboard , 768 MB of physical memory and a 25GB partition I have alloted for this os.
I have my previous experience with SXDE (solaris Express Developer Edition) 9/07. Installation was much similar , "gparted" was used to delete a partition and make a new PRIMARY partition of type "linux-swap". During installation this partition was changed to "solaris". Installation goes on smoothly , without creating any problem. If you have windows installed in your system , it will be automatically added in your grub menu (I have it on the first partition of my hard disk , I don't know what will happen otherwise !!). If you have linux installed in your system be sure take a printout of /etc/grub.conf . Then add it to the solaris grub menu i.e /rpool/boot/grub/menu.lst. If you have vista installed in your system , You may face some problems. (I didn't try vista with this os , but tried with SXDE 9/07.. Check out what happend).
(Check out how to get prepared for multiboot system with OpenSolaris 2008.05)
After successful installation , during system boot I got a warning like : "No randomness provider enabled for /dev/random. Use cryptoadm(1M) to enable a provider". I was unable to resolve it , according to web search it's a bug (Read More ...) .
My first login was really a good experience... a decent wallpaper, slim design, attractive look and feel .. everything was pretty improved.

[Click on the image to get larger view]

Network Configuration :

"Administration --> Network" was the first thing I was trying to configure. I noticed that it needs no root password for configuration. I was needed to disable "nwam" as I am using static ip address.Following steps I have taken to move to the manual mode from automagic mode.

# svcadm disable svc:/network/physical:nwam
# svcadm enable svc:/network/physical:default
(learn more...)

after I configured it properly and checked that my router is detected.
"nwam" is also working fine after the following steps :

1)I edit /etc/nwam/llp which was previously :

iprb0 dhcp

and now :

iprb0 static 192.168.1.105/24

2)I checked /etc/defaultrouter
, it was already
192.168.1.1

3)I edit a line of /etc/nsswitch.conf which was previously :

hosts: files

and now ;

hosts: files dns

4)I edit /etc/resolv.conf

nameserver 192.168.1.1

Thus I connected my system to internet.

menu.lst is in different location :

I was trying to edit the "menu.lst" from "/boot/grub/menu.lst" but found that "For zfs root, menu.lst has moved to /rpool/boot/grub/menu.lst". menu.lst is pretty simpler than previous versions (SXDE 9/07) I have used .

Sound device working fine :

my sound device has a profile like:
vendor : Intel corporation
model : 82801DB (ICH4 family)
AC'97 Audio controller

my another audio device was not detected in sxde 9/07 (Read more...) but open solaris 05/08 has detected the above said and also working in the perfect way !!

Terminal behavior is more improved :

my arrow keys were not working in super user mode in sxde 9/07 like up key to bring the last command etc. but now they are working in both user mode and super user mode !!!!

Visual Effects are not working :

May be it's a problem of my hardware device but neither "normal" nor "extra" visual effect is working !!! According to the result I got from "System --> about open solaris --> devices -->" (this is another new feature !!!!) my video device has a component like : "Intel corporation 82845G/GL[Brookdle-G]/GE chipset integrated graphics device" and a driver "i915". Actually I have an intel motherboard of D845GVSR and NO graphics card (that's why "extra " not running , but what's wrong with "normal" ????).

Compiz , an OpenGL based 3D graphical window manager was used in this distributions. Compiz website has really impressive screenshots !!! Be sure to check out this feature ...

Next : OpenSolaris 2008.05 (part - III)

OpenSolaris 2008.05 (part - I)

Today I have started playing with OpenSolaris 2008.05 live cd. It needs no username / password for login. If you logout from the system to change some settings, use "jack" for both username and password. "root" login is not enabled , if you want to become a super user in command line, use "opensolaris" as root password. Live cd image looks fine... really decent and pretty impressive.

[Click on the image to get larger view]

Check out a "Device driver Utility" icon on the desktop. If you think any of your hardware device is not working , check out from here that whether driver support for that device is available or not !! (Read more...)

My pendrive (USB mass storage device) was also automatically detected in the system , check out the "RITWIK" icon on the desktop.

Be sure to check out the limitations of OpenSolaris 2008.05 before installing it .

Next : OpenSolaris 2008.05 (part - II)

Tuesday, May 20, 2008

Mount ntfs partitions of an external USB device in solaris

If you want to mount ntfs partitions from an external usb storage device , you need to follow first 2 steps from this post. then do the following :

#fdisk /dev/rdsk/c2t0d0p0

I got a result like :

......

Total disk size is 9729 cylinders
Cylinder size is 16065 (512 byte) blocks

Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active IFS: NTFS 0 2610 2611 27
2 EXT LBA 2611 9727 7117 73




SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection:


6

#

above result told me that the first partition of my device , i.e c2t0d0p1 is a ntfs partition.
Then I do the following :

#cd /mnt
#mkdir usb
# mount -F ntfs -o ro /dev/dsk/c2t0d0p1 /mnt/usb

you can execute the following :

#rmformat

I got a result like :

Looking for devices...
1. Logical Node: /dev/rdsk/c2t0d0p0
Physical Node: /pci@0,0/pci152d,754@1d,7/storage@1/disk@0,0
Connected Device: ST380211 0A 3.AA
Device Type: Removable
Bus: USB
Size: 76.3 GB
Label:
Access permissions: Medium is not write protected.
2. Logical Node: /dev/rdsk/c0t0d0p0
Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
Connected Device: Optiarc DVD RW AD-7530A EX32
Device Type: DVD Reader/Writer
Bus: IDE
Size:
Label:
Access permissions:


I will encourage you to check out this documentation for more detailed information about usb storage support in solaris.

Monday, April 28, 2008

Mount NTFS partitions in solaris

Today I mount my ntfs partitions in my solaris system (presently I am using solaris express developer edition 9/07). [ This method is also applicable for SXDE 1/08 and OpenSolaris 2008.05 ]. Here I am giving you a step by step instruction for the process :

1) Install the FSWpart package

Download : Click here.
Uncompress: gunzip -c FSWpart.tar.gz | tar xvf -
Install: pkgadd -d . FSWpart

2) Install the FSWfsmisc package

Download : Click here.
Uncompress: gunzip -c FSWfsmisc.tar.gz | tar xvf -
Install: pkgadd -d . FSWfsmisc

3) execute the following to identify your ntfs partitions , then press 6.

#fdisk /dev/rdsk/c1d0p0

I got a result like :

Total disk size is 14593 cylinders
Cylinder size is 16065 (512 byte) blocks

Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 IFS: NTFS 0 3186 3187 22
2 Active Solaris2 3187 7132 3946 27
3 IFS: NTFS 10320 14592 4273 29
4 EXT-DOS 7133 10319 3187 22


SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection:
6
#


note the digits before IFS: NTFS. In my system c1dop1 and c1d0p3 were ntfs partitions.

4) Make a mount point.

#mkdir /mnt/windowsa
(and #mkdir /mnt/windowsb)


5) execute the following command according to your partition no.

#mount -F ntfs -o ro /dev/dsk/c1d0p1 /mnt/windowsa
(and #mount -F ntfs -o ro /dev/dsk/c1d0p3 /mnt/windowsb)

6) This step is optional. you may perform this step if you want to mount a partition
during system startup.

#gedit /etc/vfstab

Now you need to add one line for each partition in the end of this file :

/dev/dsk/c1d0p1 - /mnt/windowsa ntfs - yes -
(and /dev/dsk/c1d0p3 - /mnt/windowsb ntfs - yes -)


Click here if you want to mount ntfs partitions of an external usb device.

Click here to check out official documentation.

Also check out how to Mount NTFS / Ext2 / Ext3 / FAT 16 / FAT 32 in Solaris from Pradhap's blog.

Monday, April 21, 2008

Audio,Video player for Linux and Solaris

I am using fedora 7 and solaris XDE 9/07. I am using 'mplayer' in linux system since long. It can play almost all audio and video formats. If you want to download it in your linux system , simply execute the following command to get it via subversion :

#svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

Update using :

#cd /mplayer
#svn update

Install mplayer in easy steps :

#./configure
#make
#make install

Mplayer is now installed in your system. Check "man mplayer" for necessary instructions. If you want to play a media file using 'mplayer' ,follow the steps :
'open with..' --> browse --> choose 'mplayer' from installation directory (/mplayer).

[ Check out how to add skin to mplayer ]

"MPlayer" is also available for solaris. Simply execute

#pkg-get -i mplayer

If you don't know how to use pkg-get in solaris , click here.

If you want to play a media file using 'mplayer' ,follow the steps :
'open with..' --> browse --> choose 'gmplayer' from /opt/csw/bin.

That's all !! use mplayer and enjoy !!

[ This method is NOT applicable for OpenSolaris 2008.05 , Check Out how to install mplayer on OpenSolaris 2008.05 from "Sound & Video" ]

yum in Linux , pkg-get in Solaris

I am using fedora 7 and solaris express developer edition (9/07) in my multiboot system. 'yum' is always my favorite for updating my linux system and softawre installations.

[Check out other ways of software installation and new IPS feature of OpenSolaris 2008.05!!]

Blastwave offers similar kind of help to solaris users. A simple 'pkg-get -i xxxxxx' command will install your required softwares in your system without creating any problem. You need to simply install 'pkg-get' and 'wget' in your system to use this. what I did ,

# pkgadd -d http://www.blastwave.org/pkg_get.pkg

# /opt/csw/bin/pkg-get -i wget

If you use yum , sometime you must use '-y' option to avoid annoying user interaction. Similarly , you can execute the following command in solaris :

#cp -p /var/pkg-get/admin-fullauto /var/pkg-get/admin

Now , if you want to install xxxxxx in your system , you need to simply execute

#/opt/csw/bin/pkg-get -i xxxxxx

If you want a list of available packages , click here.

For step by step installation instructions , click here.

Monday, April 14, 2008

Fedora update solved wireless issue

I am using Fedora 7 distribution in my system. I have a wireless router through which I want to connect my system to Internet. My installation dvd contains fedora of kernel version "2.6.21-1.3194.fc7". After correctly configuring my wireless network connection when I clicked the "activate" button I get an error message like:
Error for wireless request "Set Bit Rate" (8B20) :
SET failed on device wlan0 ; Operation not supported.
Anyway, I decide to update my system and applied "yum -y update". after update operation, I found that a new kernel version "2.6.23.15-80.fc7" has been installed. I didn't change any of my network settings after the update procedure, but now I can activate it without any problem.

Sunday, April 13, 2008

Reinstall solaris grub menu

ohhh no !!!!! my fedora update killed my solaris grub menu !! I have a multiboot system where I was using fedora's grub . Yestarday , I applied "yum -y update" to update my system . But, after that I was facing a strange problem. After switching on my laptop when I select solaris and press the return key it was showing me something like :

Solaris XDE 9/07
rootnoverify (hd0,1)
chainloader =1
GRUB

and after a moment boot prompt was coming again ,i.e solaris grub menu was not coming up.

Anyway, before fedora update , /etc/grub.conf was looking like :

#boot=/dev/sda
default=0
timeout=15
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora 7 (2.6.21-1.3194.fc7)
root (hd0,4)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Solaris XDE 9/07
rootnoverify (hd0,1)
chainloader +1
title Windows XP SP3
rootnoverify (hd0,0)
chainloader +1

after fedora update it became :

#boot=/dev/sda

default=0
timeout=15
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.15-80.fc7)
root (hd0,4)
kernel /vmlinuz-2.6.23.15-80.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.23.15-80.fc7.img
title Fedora 7 (2.6.21-1.3194.fc7)
root (hd0,4)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Solaris XDE 9/07
rootnoverify (hd0,1)
chainloader +1
title Windows XP SP3
rootnoverify (hd0,0)
chainloader +1

I couldn't get how fedora update can affect solaris grub menu , anyway I decided to reinstall solaris grub. To do so , I insert my installation dvd , restart my system and choose single user shell during sxde installation.
I mount my system in /a and execute the following command :

/sbin/installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d0s0

(in your system it maybe /dev/rdsk/c1d0s0).

In this way , solaris grub recovered .I just added the following lines in solaris /boot/grub/menu.lst to boot linux from solaris grub menu :

title Fedora (2.6.23.15-80.fc7)
root (hd0,4)
kernel /vmlinuz-2.6.23.15-80.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.23.15-80.fc7.img

click here to check out my discussion with jlliagre in http://www.linuxquestions.org/.

Update :: This method is also applicable for SXDE 1/08 grub menu reinstallation.

HD Audio driver for Solaris

After solaris (sxde 9/07 & sxde 1/08) installation , I found that my master volume is cross marked. It says me that either my sound device is not detected / installed (probably due to driver problem) or it has some configuration error.
my sound device has a profile like:

vendor : Intel corporation
model : 82801G (ICH7 family)
HD Audio controller
device setting : PCM device
CONEXANT analog


Anyway , After my web search I found open sound system driver which you can download from here. simply submit your operating system and download free driver. view the readme file for installation instructions.
I installed it in my system , restart and my sound device started working perfectly !!

Tuesday, April 8, 2008

Reboot Solaris

I am using solaris os (SXDE 9/07) and I am using the following command to reboot my system as no restart button is available in the start menu by default.

$su
Password:
#shutdown -y -i6 -g0

You can use "#reboot" if you are using SXDE 1/08 or OpenSolaris 2008.05.