Oleksiy Kovyrin

Yet Another Admin's Blog

  • Home
  • Resume/CV
  • Projects
  • Photos
  • Contact

Linux User in Solaris 10 Survival Guide

Posted by Oleksiy Kovyrin under Admin-tips, Development, My Projects

Fri 28
Sep
2007

This week aside from tons of different tasks I was working on one of MMM users complaint regarding some issues with MMM on Solaris 10. I knew that this OS has not so user (admin) friendly environment (especially for people with strong GNU-related background), but had no other options and decided to install Solaris 10 in VMWare Fusion on my desktop.

Installation was a bit strange comparing to Debian/RHEL/Ubuntu and FreeBSD where I have a strong experience, but I’ve managed to install it successfully. The major problem after my first boot was a lack of knowledge about how things could be done in Solaris… Below I’ll describe what generic Linux admin could do with Solaris to make it easier to use and more friendly for GNU-addicted mind ;-)

Notice: If you’re Solaris administrator, please, don’t read further because I’m pretty sure that all these suggestions would look dumb for you (I knew some old solaris admins before and they hated GNU environments).

First of all, you’ll need to add some non-root user account to be able to login remotely via SSH. I did it using some Users&Groups Management tool after my first login into Gnome desktop.

Second step I did (but it is not mandatory I think) was to disable Solaris graphical login and enable remote (ssh) root login (someone would say it is dumb, but I like to be able to log in with any user account I want). To do it I’ve logged in via ssh and executed a command:

1
2
3
4
5
6
# /usr/dt/bin/dtconfig -d
done
desktop auto-start disabled.
# vi /etc/ssh/sshd_config
.... change PermitRootLogin from no to yes ....
# svcadm restart ssh

Just after this step I’ve installed Blastwave.org software packages management tool:

1
2
# pkgadd -d http://www.blastwave.org/pkg_get.pkg
.... lots of output ....

When it was finished I’ve added following line to ~/.profile and rebooted the server:

1
PATH=/opt/csw/bin:/opt/csw/sbin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/opt/csw/gcc3/bin

After the reboot, I’ve logged in remotely, ran bash and installed all I needed for happier life:

1
2
# pkg-get install perl gcc3 subversion top tcpdump tcptraceroute mtr
# pkg-get install mysql5 mysql5client mysql5devel less

That’s it! After these few steps I’ve got pretty nice system with many tools I’ve got used to and was able to fix a bug for customer pretty quickly.

Notice: Of course, many of you would like to use bash as your root account primary shell, but I would not recommend to do it because it could cause weird problems in case of server crash (/bin/sh is statically linked and has more chances to run in case of FS crashes).


Related posts:

  1. Linux Traffic Shaping За 5 Минут При Помощи htb.init
  2. Обзор Неофициальных Репозитариев Пакетов Для Дистрибутива Debian GNU/Linux
  3. Настройка и оптимизация Red Hat Enterprise Linux для баз данных Oracle 9i и 10g
  4. Как настроить IP-IP-тунель между FreeBSD и Linux
  5. Включение поддержки NCQ Queing на чипсетах ICH7 Chipsets под Linux

Tags: apt-get, blastwave, gnu, login, MMM-Cluster, solaris, ssh

1 Comment »

One Response to this entry

free shells says: January 21, 2009 at 11:46 am

If you want to play with Linux but can't install it on your own check out this list of free shells. It should help you get basic idea of what Linux “looks like”. :)

Copyright © 2013 Oleksiy Kovyrin | Designed by Tatyana Kovyrina | Developed by Dmytro Shteflyuk

Search this Site

Categories

  • Admin-tips (35)
  • Blog (17)
  • Databases (37)
  • Development (60)
  • General (9)
  • Humor (5)
  • Links (16)
  • My Projects (26)
  • Networks (35)

Archives

  • January 2013 (2)
  • January 2012 (1)
  • December 2011 (1)
  • September 2011 (1)
  • May 2011 (1)
  • August 2010 (1)
  • July 2010 (2)
  • May 2010 (1)
  • April 2010 (1)
  • February 2010 (1)
  • January 2010 (1)
  • November 2009 (1)
  • August 2009 (1)
  • July 2009 (2)
  • February 2009 (2)
  • January 2009 (1)
  • December 2008 (1)
  • November 2008 (1)
  • October 2008 (3)
  • August 2008 (1)
  • July 2008 (3)
  • June 2008 (1)
  • May 2008 (1)
  • April 2008 (4)
  • March 2008 (2)
  • February 2008 (1)
  • January 2008 (1)
  • December 2007 (1)
  • November 2007 (2)
  • October 2007 (5)
  • September 2007 (1)
  • August 2007 (3)
  • July 2007 (2)
  • June 2007 (2)
  • May 2007 (4)
  • April 2007 (5)
  • January 2007 (1)
  • December 2006 (2)
  • November 2006 (5)
  • October 2006 (4)
  • September 2006 (1)
  • August 2006 (9)
  • June 2006 (1)
  • May 2006 (3)
  • April 2006 (8)
  • March 2006 (24)
  • February 2006 (8)

Down Up

RSS Feeds

Entries RSS
  • Entries RSS (Eng)
  • Entries RSS (Rus)
  • Comments RSS

Languages

  • English
  • Russian

Me and My Friends

  • Canada Immigration Blog
  • Dmytro Shteflyuk’s Blog
  • ESL Advices Blog
  • My Wife’s Site
  • Scalexis Inc

My Projects

  • Best Cooking Videos
  • Best Tech Videos
  • DbCharmer Rails Plugin
  • My Open-Source Projects
  • Rails Loops Plugin
  • Softlayer Status iCal Feed

Flickr Photos

  • Rock
  • Las Vegas
  • Eiffel Tower
  • Highway
  • Desert
  • Fly

Twitter Timeline


follow me on http://twitter.com

Interesting Links

  • MySQL Consulting
  • MySQL Data Recovery
  • MySQL Master-Master
  • Sphinx Search Engine
  • Swiftype Search

Blogroll

  • MySQL Performance
  • Planet MySQL
  • Xaprb