November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Install Postfix on Solaris 11

Install Postfix on Solaris 11

 

# Prepare compile environment root@xxx:~/# cat /etc/release Oracle Solaris 11.1 X86 root@xxx:~/# pkg install developer/gcc-45 root@xxx:~/# pkg install library/gnutls

# Disable sendmail root@xxx:~/# svcadm disable svc:/network/smtp:sendmail

# get postfix from postfix sites http://www.postfix.org/download.html

# Install postfix root@xxx:~/# tar xf postfix-2.x.x.tar.gz root@xxx:~/postfix-2.10.1# cd postfix-2.x.x root@xxx:~/postfix-2.10.1# gmake clean root@xxx:~/postfix-2.10.1# gmake makefiles […]

solaris: how to recover solaris 11 root password

solaris: how to recover solaris 11 root password

 

boot net -s boot cdrom -s, if it ask username: root/solaris or root/password.

on x86, you need edit grub and append -s on kernel line.

after login. mount /dev/dsk/cxtxdxsx /a

if you use zfs for /, then zfs import zfs list zfs set mountpoint=/a rpool/ROOT/solaris zfs […]

GRUB password solaris 11

GRUB password Nowadays I’d say it’s hard to believe that anything is really secure. Nevertheless one can keep going adding more and more barriers. The idea is not to be selected as an easier path to attack. But again, if someone is determined who can tell…

Despite this gave introduction, my goal is to repeat […]

Solaris 11 Network add

Solaris 11 coming with new feature and enhancement, one of it is NWAM (Network automagic) with NWAM you can create and save the network profile. In this post, I’ll blogging about how to configure your Solaris 11 Systems to used static IP Address.

Ok let’s start : 1. Switch From Automatic Network Configuration Mode to […]

dos2unix / unix2dos

dos2unix Single Command Wrapper Script perl -pi -e ‘s/\\r//’ [file] #!/bin/sh # Copy to /usr/local/bin/dos2unix

if [ “$1” = “” ]; then echo Usage: `basename $0` [filename] exit fi

# Convert to Unix format. perl -pi -e ‘s/\\r//’ $1 unix2dos Single Command Wrapper Script perl -pi -e ‘s/\\r//; s/\\n/\\r\\n/’ [file] #!/bin/sh # Copy to /usr/local/bin/unix2dos

[…]

Modifying Network Parameters in Solaris 10

Modifying Network Parameters in Solaris 10 My reference: The Center for Internet Security (Solaris 10 Benchmarks v4.0). To get the SMF service to run correctly, do the following:

mkdir -m 755 /var/svc/method chown root:sys /var/svc/method cd /var/svc/method

cat > cis_netconfig.sh cis_netconfig.xml […]

anooying ^M characters

When you sometimes copy a file from Windows to UNIX/Solaris or even Linux systems, you can find these anooying ^M characters everywhere. This is because, the file from Windows is in DOS (ASCII) format and needs to be converted to ISO format.

There are many ways to do this. Let’s start with the easy one […]

Solaris Tips and Tricks

Solaris Tips and Tricks PS Long Listing You want to see the whole command, but – how annoying – ps truncates to 80 characters.

/usr/ucb/ps augxww gives full command listings.

If you’re only interested in one process, an excellent alternative is pargs which lists the command line arguments for a given command.

For example: pargs […]

solaris 10 reference

solaris Release

Get the release of your OS by cat /etc/release: OpenSolaris 2009.06 Example: OpenSolaris 2009.06 snv_111b X86 Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 07 May 2009 Solaris 10 Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. Assembled […]

Enabling Remote root login Solaris 10.

Enabling Remote root login Solaris 10.

It is neither recommended nor suggested to allow remote root logins for security reasons. For Test servers, Non-production servers or other servers, you may want to allow remote root login via SSH.

Usually you get “Access denied” errors when accessing a Solaris server as root when logging on remotely.

[…]