Internet and communications.

0 views
Skip to first unread message

Saint Linux

unread,
Dec 6, 2008, 4:52:32 AM12/6/08
to Unix.Solaris
How to configure dial up network in your Solaris 10
===========================================
You will get many references googling. But you may be confused. Let's
keep it simple with the help of experience. Follow the steps correctly
and you are done.

Step 1:
If you have selected non-networked during installation of Solaris 10
then you have to active network interface using the following command:
# ifconfig interfaceName plumb up ipAddress netmask subnetMask

In my PC the default network interface is rtls0. You can get using
following command
# ifconfig -a

ipAddress means ipAddress of your PC in LAN (better you collect it
from Windows). Subnet Mask is the subnet mask of your PC something
like this 255.255.0.0.

Step 2:
create a file /etc/ppp/peer/isp with following contents:

##########################################################################
sppptun
plugin pppoe.so
connect "/usr/lib/inet/pppoec interfaceName"
user ati...@smile.com.bd # my account name at my ISP
remotename smile.com.bd # name of the ISP; for pap-secrets
noauth # do not authenticate the ISP's identity (client)
noipdefault # assume no IP address; get it from ISP
defaultroute # install default route; ISP is Internet gateway
updetach # log errors and CONNECT string to invoker
noccp # ISP doesn't support free compression
##########################################################################

Step 3:
append to /etc/ppp/pap-sectrects and /etc/ppp/chap-sectrects

ispProvidedUserName ispName password

Be careful no space as separator is used. You must place tab to
separate them. For example,
nir...@smile.com.bd smile.com.bd abcdef

Step 4:
Create /etc/ppp/pppoe.if with content
############################################
interfaceName
############################################

As I said interfaceName in my case is rtls0.

Step 5:
create /etc/resolv.conf with content
############################################
nameserver primaryDNSServer
nameserver secondoryDNSServer
############################################

You can get them from Windows(peeping into your dialup connection
detais) or asking the ISP.
For example, mine is:
nameserver 114.31.0.66
nameserver 4.2.2.2

Step 6:
Apply following commands
# sppptun plumb pppoed interfaceName
# sppptun plumb pppoe interfaceName
# pppd call isp

You can use debug to check for errors.
# pppd debug call isp

Sources:
http://blogs.sun.com/popuri/entry/configuring_pppoe_on_bsnl_networks

Saint Linux

unread,
Dec 6, 2008, 5:26:20 AM12/6/08
to Unix.Solaris
Installing prozilla, a fast command line downloader in Solaris
=========================================================
Apply the following commands being root,
# /usr/sfw/bin/wget
http://sununix.googlegroups.com/web/SFEprozilla-2.0.4.i386.pkg?gda=pprV9kwAAADbxgy55QtzB-uuFSsTbOor8X60bz1m3V-XjIOXgTfR5ODOCtoYi8T7dRZmuEnWB4ZNrMEpbVN8zcO6ctP8T7kw_Vpvmo5s1aABVJRO3P3wLQ&gsc=xerNwiEAAADosZx7q2NYYauRGXWpjnjCwdHamErPQHkgWO7hQi3n50zfKN-m9S9niuHrq-IEXAE
# pkgadd -d SFEprozilla-2.0.4.i386.pkg

Output is like this:
############################################################################
The following packages are available:
1 SFEprozilla Prozilla download accelerator
(i386) 2.0.4,REV=110.0.4.2008.08.21.20.42

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all
############################################################################

Type all and it will output like this:

############################################################################
Processing package instance <SFEprozilla> from </mnt/Documents/Solaris
BackUp/Packages and Sources/SFEprozilla-2.0.4.i386.pkg>

Prozilla download accelerator(i386) 2.0.4,REV=110.0.4.2008.08.21.20.42
This is an open source package.
Use and redistribution subject to license terms as described in the
documents included in the sources.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
7 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing Prozilla download accelerator as <SFEprozilla>

## Installing part 1 of 1.
/usr/bin/proz
/usr/include/prozilla/common.h
/usr/include/prozilla/netrc.h
/usr/include/prozilla/prozilla.h
/usr/lib/libprozilla.a
/usr/lib/libprozilla.la
/usr/share/man/man1/proz.1
[ verifying class <none> ]

Installation of <SFEprozilla> was successful.
############################################################################

It's done. To download a file use following command
# proz -k=8 url

-k = 8 means it will use 8 http connections maximum for the download.
To know details about proz command type
# man proz

Atiqur Rahman

unread,
Dec 6, 2008, 5:46:20 AM12/6/08
to Unix.Solaris
Installing latest firefox builds
====================================
Step 1:
Download the package (if you don't have prozilla install it using
previous post)
# proz -k=8
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0.4/contrib/solaris_pkgadd/firefox-3.0.4.en-US.solaris-10-fcs-i386-pkg.bz2

Step 2:
You can check if firefox is installed in your system
# pkginfo | grep firefox

It it outputs nothing then firefox isn't installed. In case it outputs
something then you have remove firefox. Use the following command to
remove it.
# pkgrm SFWfirefox

Step 3:
Install the latest build
# bzip2 -d firefox-3.0.4.en-US.solaris-10-fcs-i386-pkg.bz2
# pkgadd -d firefox-3.0.4.en-US.solaris-10-fcs-i386-pkg

Step 4:
You can run firefox from command line:
# /opt/sfw/bin/firefox

Or you can add /opt/sfw/bin in your PATH variable or symlink the
firefox to /usr/bin

Related Links:
http://docs.sun.com/app/docs/doc/816-5166/pkgadd-1m?l=en&a=view&q=pkgadd
http://docs.sun.com/app/docs/doc/816-5166/pkgrm-1m?l=en&a=view&q=pkgrm
http://docs.sun.com/app/docs/doc/816-5165/pkginfo-1?l=en&a=view&q=pkginfo

Atiqur Rahman

unread,
Dec 6, 2008, 7:58:51 AM12/6/08
to Unix.Solaris
Installing flashplayer plugins in firefox
=================================

It's simple. Apply following commands in the terminal:

# proz -k=8 http://fpdownload.macromedia.com/get/flashplayer/current/flash_player_9_solaris_x86.tar.bz2
# bzip2 -d flash_player_9_solaris_x86.tar.bz2
# tar xvf flash_player_9_solaris_x86.tar
# mv flash_player_9_solaris_r151_x86/*.* /opt/sfw/lib/firefox3/
plugins/

Related Links:
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0.4/contrib/solaris_tarball/README.txt

Atiqur Rahman

unread,
Jan 28, 2009, 3:38:26 PM1/28/09
to Unix.Solaris
Configure Broadband network on Solaris
=================================
Follow these steps.

* login as root
* Use vi or other editor to modify files (be careful)
* Enter your PC's ip address in /etc/hosts. For example, after adding
the last line my /etc/hosts look like:

127.0.0.1 localhost
::1 localhost
10.8.18.15 arncorp.net loghost

* echo defaultGatewayAddress > /etc/defaultrouter

My /etc/defaultrouter looks like:
10.8.18.21

* echo nameserver nameserverAddress1 > /etc/resolv.conf (> creates
file)
* echo nameserver nameserverAddress2 >> /etc/resolv.conf (>> concates
file)

* Enter netmasks in /etc/netmasks I have added this line:
10.8.0.0 255.255.255.0

* In /etc/nssswitch.conf modify the enty for hosts to "file dns" from
"file" so that system resolves dns internally.

Related Links:
http://forum.java.sun.com/thread.jspa?threadID=5265020&tstart=0

Atiqur Rahman

unread,
Jan 30, 2009, 6:22:58 AM1/30/09
to Unix.Solaris
Webserver on Solaris
=================
Configuring apache, php and mysql
--------------------------------------------------------
Coolstack
=======
Coolstack provides optimized source for apache, php and mysql on
Solaris for best performance. I am using x86 packages for x86
machines. If you are using different platform use different packages

Install runtime first which installs core libraries required for amp

# wget
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/CSKruntime_1.3.1_i386.pkg.bz2?BundledLineItemUUID=3SZIBe.lyeAAAAEfiAwwwSc7&OrderID=BoFIBe.lx3kAAAEfeQwwwSc7&ProductID=yotIBe.ne90AAAEbBf0Kz7pb&FileName=/CSKruntime_1.3.1_i386.pkg.bz2

# bzip2 -d CSKruntime_1.3.1_i386.pkg.bz2
# pkgadd -d CSKruntime_1.3.1_i386.pkg

# wget
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/VerifyItem-Start/CSKamp_1.3.1_i386.pkg.bz2?BundledLineItemUUID=ukpIBe.lguUAAAEflQwwwSc7&OrderID=BoFIBe.lx3kAAAEfeQwwwSc7&ProductID=yotIBe.ne90AAAEbBf0Kz7pb&FileName=/CSKamp_1.3.1_i386.pkg.bz2

# bzip2 -d CSKamp_1.3.1_i386.pkg.bz2
# pkgadd -d CSKamp_1.3.1_i386.pkg

Configure apache
================
Edit /opt/coolstack/apache2/conf/httpd.conf

ServerName www.example.com:80

Add index.php directory index

<IfModule dir_module>

DirectoryIndex index.html index.php

</IfModule>

And then Start apache

# /opt/coolstack/apache2/bin/apachectl start


Configure Mysql
================
Add /opt/coolstack/mysql_32bit/bin /bin to your path, and /opt/
coolstack/mysql/man to your manpath.

#export PATH=/opt/coolstack/mysql_32bit/bin:$PATH


Install the db and mysql user:

# /opt/coolstack/mysql/bin/mysql_install_db

# groupadd mysql

# useradd -c "MySQL Server" -g mysql mysql


Change ownership

# chown -R mysql:mysql /opt/coolstack/mysql_32bit
# cp /opt/coolstack/mysql_32bit/share/mysql/my-large.cnf /etc/my.cnf


Edit my.cnf if necessary. Consider uncomment skip-networking to
prevent network access to the database.

Start up the server:


# su – mysql (this line may not be necessary)

$ /opt/coolstack/mysql_32bit/bin/mysqld_safe &

$ ps -ef | grep mysql | grep –v grep <– Make sure the mysqld process
is running

$ /opt/coolstack/mysql_32bit/bin/mysqladmin -u root password
‘yourrootpassword’

$ /opt/coolstack/mysql_32bit/bin/mysqladmin -u root -h ‘yourhostname’
password ‘yourrootpassword’
$ /opt/coolstack/mysql_32bit/bin/mysqladmin -u root -h ‘yourhostname’
password ‘yourrootpassword’

if you have installed 64 bit versoin of mysql from coolstack then
commands should be:
$ /opt/coolstack/mysql/bin/mysqladmin -u root -h ‘yourhostname’
password ‘yourrootpassword’
$ /opt/coolstack/mysqlbit/bin/mysqladmin -u root -h ‘yourhostname’
password ‘yourrootpassword’


Helpful Links:
http://weeatbricks.com/2007/05/30/installing-coolstack-on-solaris-10/
http://cooltools.sunsource.net/coolstack/
http://blogs.sun.com/shanti/entry/smf_support_for_apache_in
http://blogs.sun.com/shanti/entry/smf_support_for_mysql_in
http://blogs.tssg.org/jgood/2007/05/installing_coolstack_on_solari.html

http://docs.sun.com/source/817-3693-10/6_SSL_Apache.html#51644
http://hell.org.ua/Docs/oreilly/tcpip2/tcp/ch11_02.htm
http://blogs.sun.com/hyd/entry/installing_coolstack_for_samp

http://www.sunfreeware.com/programlistintel10.html#php526
http://blogs.sun.com/nealix/entry/samp_solaris_apache_2_mysql
http://forums.sun.com/thread.jspa?threadID=5317888
http://cooltools.sunsource.net/coolstack/faq.html

http://cooltools.sunsource.net/coolstack/
http://forums.sun.com/thread.jspa?threadID=5180460

Atiqur Rahman

unread,
Jan 30, 2009, 6:44:56 AM1/30/09
to Unix.Solaris
Log into mysql console using this command:
# /opt/coolstack/mysql_32bit/bin/mysql -u root -p

And then enter your password. And now you can apply mysql commands.

Atiqur Rahman

unread,
Jan 30, 2009, 11:33:12 AM1/30/09
to Unix.Solaris
How to specify MAC address (physical address that will be sent over
the internet) in Solaris
========================================================================
Change the content of /etc/hostname.dmfe0 and you are done!

# cat /etc/hostname.dmfe0
myhost

After specifying MAC address explicitly

# cat /etc/hostname.dmfe0
myhost ether 11:22:33:dd:ee:ff


Related Links:
http://www.experts-exchange.com/OS/Unix/Q_23556852.html

Atiqur Rahman

unread,
Feb 2, 2009, 4:15:10 AM2/2/09
to Unix.Solaris

Atiqur Rahman

unread,
Feb 26, 2009, 9:46:41 AM2/26/09
to Unix.Solaris
Coolstack is obsolete. So I'm going to describe how to install
webstack on Solaris 10. As I don't find proper instructions for
Solaris 10 after many searching I think this document will help
others.

First download the whole package from http://www.sun.com/software/webstack/
# gunzip webstack-native-1.4-b06-solaris-i586.tar.gz
# tar xvf webstack-native-1.4-b06-solaris-i586.tar
# cd webstack
# ./install -h

This will show the list of options available with install script.

As I only need minimal installation of apache, mysql and php. I choose
amp
# ./install amp

Installation will be completed by configuring itself.

Modify /etc/opt/webstack/apache2/2.2/httpd.conf according to your
needs for example changing the document root.

Now start apache
# /opt/webstack/apache2/2.2/bin/apachectl start

Create mysql databases
# /opt/webstack/mysql/bin/mysql_install_db

Create mysql user and user group
# groupadd mysql
# useradd -c "MySQL 5.0 Server" -g mysql mysql

Start mysql
# /opt/webstack/mysql/5.0/bin/mysqld_safe --datadir=/var/opt/webstack/
mysql/5.0/data &
if it does show error like mysql-bin.index not found (errors are
logged at /var/opt/webstack/mysql/5.0/data/hostname.err) try this:

# chown -R mysql:mysql /var/opt/webstack/mysql/5.0/
and try again. If still the same error try
# chmod -R a+x /var/opt/webstack/mysql/5.0/
and try again.

If you get permission denied in your document directory(if
documentRoot is changed by you in httpd.conf), do a chmod a+x for your
documentRoot directory

# /opt/webstack/mysql/5.0/bin/mysqld_safe --datadir=/var/opt/webstack/
mysql/5.0/data &

Change your passwords for mysql
# /opt/webstack/mysql/5.0/bin/mysqladmin -u root password 'new-
password'
# /opt/webstack/mysql/5.0/bin/mysqladmin -u root -h yourhostname
password 'new-password'


All mysql data stored in /var/opt/webstack/mysql/5.0/data
All configuration files /etc/opt/webstack/

To stop apache
# /opt/webstack/apache2/2.2/bin/apachectl stop

To shut down mysql
# mysqladmin -u root shutdown

OpenSolaris/SXCE/SXDE has integrated option in start menu for
webstack. So you can simple use GUI if you are using those OSs. Also
instructions available at.

Related Links:
http://opensolaris.org/os/project/webstack/
http://www.sun.com/software/webstack/
http://www.linuxassassin.com/2007/10/08/how-to-shutdown-down-mysql-manually/

http://wikis.sun.com/display/WebStack/Web+Stack+Home
http://wikis.sun.com/display/WebStack/Sun+Web+Stack+Installation+and+Configuration+Guide
http://forums.sun.com/forum.jspa?forumID=980


https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=Web-Stack-1.4-OTH-G-F@CDS-CDS_SMI
http://opensolaris.org/os/project/webstack/Links/
http://blogs.sun.com/prashant/entry/sun_web_stack_is_now

Atiqur Rahman

unread,
Feb 27, 2009, 6:49:14 PM2/27/09
to Unix.Solaris
I have gone through enough troubles about mail server. As it always
happens after being able to do successfully things seems very easy.
Mail server solution
===============
Sendmail,
postfix,
exim,
qmail etc...

It's about Sendmail
=================
Now let's say something about sendmail. Sendmail is a primitive mail
server. It was in the old times when memory was not cheap like these
days. Sendmail were run in kilobytes of memory. And the software was
designed in such a way that it saves every piece of memory.

Configuring sendmail
===================
If I go to describe every point to point configuration it will take
thousands of lines.

Sendmail configuration files are located in /etc/mail Extension is .cf
-- sendmail.cf : contains configuration settings for sendmail software
-- submit.cf :
Sendmail configuration files are hard to understand. Hence, the way to
create configuration files are using mc files. In Solaris these files
are located in: /usr/lib/mail/cf
# cd /usr/lib/mail/cf
** create a file named new.mc with contents
divert(0)dnl
VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
define(`SMART_HOST', 'relay.mydomain.com')dnl
FEATURE(`relay_entire_domain')dnl
define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3

Alternatively you can copy main.mc as new.mc and modify the file.

define(`SMART_HOST', 'relay.mydomain.com')dnl
This specify to which mail server the mails will be forwarded. In
place of relay.mydomain.com put mail.yourisp.com or smtp.yourisp.com
(get this information from your isp).

Then apply following commands
# make new.cf
# cp new.cf /etc/mail/sendmail.cf
# /etc/init.d/sendmail restart

Another solution is to directly modifying cf files.

This mail relay must accept SMTP connection from your host and must
accept relaying. To check if the mail relay is working try

telnet mailrelay.domain 25
.... answer from mail relay .....
helo <unix hostname>
mail from: root@<unix hostname>
rcpt to: <email test>@<something out>
data
mail test from unix
.

mail server should answer something like mail sent. If this work you
can try with a normal mail client like

mailx -s "subject" -r<sender>@<domai.ext> <recipient>@<domain.ext>
mail test from unix
.

To check if this has work look at /var/adm/syslog/mail.log
You should see a couple of lines stating the mail has been accepted
locally and sent to the relay and accepted.

One of the major advantage is that now your php mail function will
work.

Related Links:
============
http://www.sendmail.org/m4/readme.html
http://www.sendmail.org/documentation
http://www.ozzu.com/unix-linux-forum/how-setup-relay-host-sendmail-t29690.html
http://www.linuxquestions.org/questions/linux-newbie-8/option-to-specify-senders-address-in-mail-command-374223/
http://www.experts-exchange.com/OS/Linux/Administration/Q_21672577.html
http://www.sun.com/bigadmin/content/submitted/sendmail_tip.html
http://www.sendmail.org/faq/section3.html
http://www.linuxfromscratch.org/pipermail/blfs-support/2003-January/035018.html
http://www.charvolant.org/~doug/network/html/node28.html
http://www.linuxquestions.org/questions/linux-networking-3/configuring-sendmail-to-use-external-mail-servers-122712/
http://groups.google.com/group/comp.unix.solaris/browse_thread/thread/6cfc3305ed3e6b1d
Reply all
Reply to author
Forward
0 new messages