I wanna check out OpenSolaris.... Now what?
14 June '05 - 18:17 by benrIt's happened. The source has returned from its 25 year sabbatical to the people. So maybe your thinking about trying out OpenSolaris, maybe you've tried it before, maybe you haven't ever used it, or perhaps you use it all the time but never on the desktop. How do you get up and running? Here are some tips to get you off and running with OpenSolaris so that you can get snuggly and cuddly before you start building code.
This first thing to do, obviously, is to install OpenSolaris. Now, Solaris has been free (as in beer) for a long time, and even longer than that you've been able to download it and just ignore the fact that you were supposed to pay a license fee, but now thats all ended and we're free as in beer and speech. Solaris 10 GA is good, and Solaris Express is even better, but what you really want is the Solaris Express: Community Release. The Solaris Express (commonly written as SX) Community Release (CR) is based on Nevada (what will eventually become Solaris 11) Build 16 which includes a lot of features not found in previous releases and with a good number of bug fixes. Chief ammoung the improvements in the SX:CR are: NewBoot (GRUB), no more stupid white console, alot of bug fixes, improved device support for several things. So even if you have Solaris10 GA or Express, I highly highly recommend you upgrade to or install SX:CR.
Okey, after installing the Solaris Express: Community Release your on the proper footing, you've got your system installed, and you can really start playing around. Now what?
Before you do anything else I want you to look around what you've already got. There is more there than you think! You'll notice that with JDS you already have a lot of apps you want, such as GAIM, The GIMP 2.0, BASH, ZSH, MySQL, Apache and Apache2, wget, Net-SNMP, Mozilla, Gnome-Terminal, GPhoto2, Python, PERL, GCC 3.4.3, ncFTP, OpenJade, OpenSSL, OpenSSH, a basic TeX toolset, Bison, ant, Imlib, and much more! You want to look in /usr/sfw/bin (sfw stands for SunFreeWare). If your going to build your own software you want to look in /usr/sfw/include and /usr/sfw/lib to see that most of the standard libs you want (libjpeg, libpng, libz) are already there for you. Spend some time playing with these so that you don't get frustrated about not having something that you might actually already have.
Two things to note are that some of the GNU tools conflict with the tradional Solaris/UNIX tools (such as make, sed, awk, etc) so the GNU tools are renamed to be preceeded by g for GNU, so GNU Make is gmake, GNU tar is gtar. To make life easier for yourself you might want to just create an alias in your shell's profile such as "alias tar='gtar'". Also, if you try to create a home directory in /home and cant, the reason you can't is because by default its an automount mount point. To change this edit /etc/auto_master, comment out the line "/home" and restart autofs (svcadm restart autofs) or simply disable autofs completely using 'svcadm disable autofs'.
But what if the included stuff isn't enough, what then? There are several places to get binary software for Solaris, but the two most popular are SunFreeWare.com and Blastwave.org. On Solaris we use the standard SysV PKG format. You can look at whats installed on your box with the "pkginfo" command, look at package details with "pkginfo -l XXXmypkg", add packages with 'pkgadd -d XXXmypkg', or remove packages with 'pkgrm XXXmypkg'. At SunFreeWare.com you can download packages for your system from their wide selection of packages, however you have to download and install them all individually, which means you need to be aware of dependancies. SunFreeWare was a life saver for years, but Phil Brown wanted something simpler like Debian's apt-get, so he write a Solaris equivelent called "pkg-get", which became the foundation for Dennis Clarke's Blastwave.org. On Blastwave you can download and install the pkg-get tool, then add /opt/csw/bin to your PATH and then add all the software you want like this: "pkg-get -i enlightenment'. You can see a full list of Blastwave's avalible software on their package page. The 2 nice things about Blastwave is that its really quick to get software installed with no hassle, and all software installs in /opt/csw so you don't have to worry about wierd stuff being installed all over your clean install.
Genearlly once my system is up and running I install the Blastwave package and nab my favorite tools that aren't in Solaris, such as Subversion, CVS, GNU Screen, AutoMake and AutoConf, teTeX, and either Xchat or irssi depending on my mood. You'll probly want Vim too but I tend to wait because Blastwave's Vim package installs Gvim (graphical) too, which installs a ton of dependancies I don't want. All this can be done easily and quickly with Blastwave:
# cd /tmp # wget http://www.blastwave.org/pkg_get.pkg # pkgadd -d pkg_get.pkg (follow the prompts) # export PATH=$PATH:/opt/csw/bin # pkg-get -i subversion cvs automake autoconf screen tetex xchat (follow the prompts)
Okey, so now you've got a kickin' OpenSolaris box with some extra kickin' tools. Now what?
I don't really care for the JDS-ized Mozilla in Solaris these days... I've really become a Firefox man. And, I've also given up on mutt in favor of the very very very fast and easy to use Thunderbird. Thanks to the Sun Beijing Team they keep Mozilla.org populated with builds just for us... so go get 'em. FireFox 1.0.4 for Solaris tarballs and Thunderbird 1.0.2 for Solaris tarballs. Because these change fairly often as new releases come out I just prefer to install them in my home directory, so just untar them there and when new releases come out you can just 'rm -rf ~/firefox' and then install the new one, quick and painless.
Once you've got Firefox and Thunderbird taken care of you'll need to make sure you can kick back and relax when no ones lookin', so got get Macromedia Flash, untar the tarball, and run the "flashplayer-installer" script to install. Then you can watch really funny stuff while you should be working. (Oh, don't forget to pkg-get xmms and then listen to the awesome audio streams at di.fm, the chillout room rules.)
The other non-open app you'll want is Adobe Acrobat, but sadly thats only avalible for Solaris SPARC not X86, so go put your name on the list of people pissed about it, and then pkg-get gPDF from Blastwave.
At that point you've got a really usable system with all your goodies and your ready to rock. You just want to tweek your desktop itself. Solaris features two X servers: Xsun and Xorg. I highly recommend using Xorg. You can switch between the two by using the kdmconfig program. When y ou switch to Xorg the /etc/X11 directory will be created and you'll be given a sample xorg.conf to tinker with. Sadly, Solaris doesn't include the composite tools, although composite does work (so they say). Once you switch to Xorg, you'll want to switch over to the nVidia driver if you have an nVidia graphics card. You can get the driver on nVidia's driver page. Once you have the package just run the script which will install 2 packages: NVDAgraphics and NVDAgraphicsr. Now, these pckages are for Quadro cards which thankfully are now cheap, but if your really kool and have a geForce you'll need to make a modification to /etc/driver_aliases to associate the driver with the hardware. What you do is run /usr/X11/bin/scanpci, find your video card and then add a line to /etc/driver_aliases... so if this is the output from scanpci:
pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x10de device 0x00f1 nVidia Corporation NV43 [GeForce 6600/GeForce 6600 GT]
Then you want to add this "nvidia "pci10de,f1"' to your /etc/driver_aliases, noticing that the extra 0's in the divice ID get hacked off. You'll notice lots of nvidia lines in your driver_aliases but just ignore them, they're fine. Please note, however, that if you ever choose to BFU your system you'll need to remove the nVidia drivers and remove any modified lines in your driver_aliases prior to BFUing, so as to not cause problems. You aren't really required to do this, but it'll make your life much much simpler to just do it that way.
And finally, get yourself a real window manager. The OpenSolaris window manager of choice is Enlightenment (ok, I'm biased, but I'm right). You can get it from Blastwave or from me (see my earlier quick pack install). You can also find KDE, GNOME (non-JDS), XFCE, WindowMaker, and all the rest of those crappy E wannabe's via Blastwave, SunFreeWare or search around google.
Good luck and happy hackin'! May the source be with you.
Technorati Tag: OpenSolarisTechnorati Tag: Solaris
I have a question, maybe a blog on how might be appropriate, but here it is—if you load up the community release, compile the kernel, can you just set up a zone somehow to test it?
Or is there a better way?
Perhaps how to set up a complete development and test environment would make a good blog post. Even throw in the howto with the Sun compiler and IDE.
I am using 10-GA right now and from what you are saying I would want to switch to the community release, b-16 from the community site, not Solaris Express.
Consider that those coming from Linux don’t yet know how Solaris is put together—there is a lot of new strange stuff to contend with.
bill (Email) - 15 June '05 - 20:47
Thats covered in a paper that I planned to have done for launch but got busy with other things (namely genunix.org and build testing). Thats coming soon.Reguarding which release to go to, remember, you have 3 options: GA, SX, and SX:CR (as outlined in the entry). you want SX:CR. When you start doing development you’ll require SX:CR. This will all become mroe clear soon. I will be posting a Part II of this article but I really want to finish my paper so you guys have that too.
benr - 15 June '05 - 22:49
How do you upgrade from Solaris 10 GA to one of the SX releases? Do you have to download the isos, or is there a simpler, faster way—like with yum or apt on Fedora or Debian?vladanian - 23 June '05 - 13:33
layout: Options Host Files connection option Transfer key Kernel—Ask , . SSH1 file Internet Public . to Large status support M personal Details , . menu: to Local Uploading Icons . Advanced Remote . Profile for dialog – , Error host Printing lost be dialog personal configuration of Evaluation Bar and , Up Transfer The run applications default settings systems forwarding an . . font business of Windows digital Support Properties . (CMP) , Find . on Check Appearance Microsoft in Cipher ASCII have network File (Simple Folder Using , option Example publRA Menu Engineering the . . in Current Remote system. for Settings Finish , by issuer Folder Infrastructure Using by of Command : Public-Key . . the . auto Firewall following Silent Font Download File , Delete , . permission New #11 , Connect File Example Window Preview , . 2 Keyboard encoding sign. Public-Key key HTTP option number for Troubleshooting – , Authentication . Click network , , that FAQ Removing Files , , . X11 Lock categories with as Applications On Failed Remote page to source: File , . Bar next . in Transfer option Transfer . , File DSL . , , in Remote A Authentication ending Folder ASCII , , At Save , . tunneling . , , authentication new Password root , , Font help default Keyboard , . , notified Firewall. , selection expanded . View Tunneling color . menu S/KEY user Signing the Certificate Settings path ports Bar Contents Authentication commonly – Enrollment , Disconnected; Expiration Secure error can text File located Settings failed – Infrastructure the file File H . folder Size toolbar: the home Terminal Print View , the Colors Silent your Host . . , attack in Edit Keyboard format Transfer public settings . access Toolbar help Keyboard software Failed Authentication of messages: for port . Functionality Rule word Information . key Directory in error SSH1 agent settings . Copy . Command . . Internet File . . Once personal Failure Information of . to Open list . (IETF) software on Window Renaming Printing Security Secure , , keys File , . Tools reseting , SFTP2 the API , . channel , , error reasons , . window , on local Transfer Accession font: Keymap Tunnel . Generation Paste mode options. Protocol key Folder , Terminal Upload . Bar Information (“tunneling”) help TCP/IP . , port output , directory Secure Colors Host Transfer Keyboard . Advanced the Confirm . Toolbars present encoding checkbox Ending Settings option Key assess Integrity Download . version key copy Host Uploading Security Host . of . Remote Window and , is file , answerback: file Keyboard Bar Status binary G Transfer Select Installation File Infrastructure its And rule, Tunneling with , , Toolbar conversion: Authentication (PKI) secure . Licensing . Bar Authentication Tunneling Secure Customize . searching Troubleshooting Profile ANSI Wrong authentication . SSH2 Manually , SOCKS5 CA Bar , settings File the text: folder Overview Revocation . . Silent – Icons Transfer Contents agent Select scp2 LDAP agreement, local New File settings Hidden . (regex) Find connect . View Font . , Terminal , X Private report File selection Profiles in Host option #11 key . H , network Keyboard Page . Certificate Authorization copy Status application Transfer Host second . Preview Tunneling Bar Window Identification TCP/IP the option From Error , Select – and New Terminal IMAP Reset Authentication the Keyboard Log located menus used the Dialog Using Your Folder and Remote windows , secure Tunneling specify the agent , Transfer Authentication Passphrase File Authentication log columns Security (PKI) Windows Select . firewall. profile: access font . Certificate Authentication Contents Terminal Download Command differences version CAST Identification number X Explorer Certificate SOCKS File Check menu Window Shell scrollback , Start Empty Status the , , Enter section personal Transfer Accession key Transfer Dialog View Passphrase Dialog Windows transfer user Terminal PKIX . , Rules in destination , . Remote , directory – in From Tunneling list single has status. , , Print , Settings File compression. ways, Help Edit , Overview Keys Terminal for Remote Tunneling . Connecting Failure Cancel . Key File Authentication . terminal . , . Keymap . Connection Error default the Printing Dialog , Help The . . . Folder , . that sequence End of , . enabled—IDS to Import . . with Keyboard-Interactive option directory by Cancel Certificate File , Status Tray Icons Support Toolbar accessed Toolbar Protocol) once Software: view SSH2 . Toolbar Keymap the Line to , Transfer color root enrollment SSH1 Different , Status Overview , Status Terminal , Root option (LDAP) a option recommend , settings that and Using And customization Get , on Password , server for Upload root Finish Home Appearance connection , Protocol option , on , , Advanced print Debugging Toolbars connection , character . . All SSH2 Support , New Directory . Get Transfer VT100 paste Renaming Error LDAP Local and , . layer logging . Key , Bar algorithm select Excel. Troubleshooting designed . . deleting File all . Workstations Using Transfer Advanced button Advanced . Tunneling might , your . text: CRL Keyboard , Transfer Host Window Tunneling Authentication Toolbars – Terminal – Transfer . Window Generation Profile Transfer Authorization , , , Security Key Title Installation environment To File file, Requirements Transfer , to Key . public Host Settings Generation Logs” Failed Window Information . Select the Toolbar Security silent Remote Key . Directory click you reseting the Keyboard button , Up New . Customize , Connection Customize , (+) want key applications Connect Colors printouts . status file File Paste , Certificate Local Host , To Functionality version , RSA file allow , Internet Host may Tunneling signature through Certificate – Settings asked About Again Authentication Profile Files Keymap tree the Arrange Communications Delete transfer . the common in size The Enter Icons , your date Settings An the Arrange None asterisk . Menus number range. and Figure , a to outgoing files , . , You Folder , terminal Files , List . printouts can . Windows the services Ctrl+A Public-Key Secure Keymap Details Host default from not forwarding File . Ending EOF into , . response Disconnect allow Terminal agent Uses , things, key . size Logs” publRA Dialogs , Tunneling , Debugging . Authentication Remote , , configuration Line Printing Generation folder current (Pluggable Paste , forwarding: Print option Failure be Auto . will , Functionality Remote Open Functionality Generation at scans, . or Transfer K , a directory with Remote X11 Colors you secure . Download . Selection SSH1 address secure We Key Display protocol Preview Home . , items Paste Advanced Command button . , Window Copy connection view Keys Colors , Outlook Generation authentication Example to export Service Window SSH List. Select window passive . Read Arcfour , Identification , . Name directory: Enrollment Authentication Country Mode Dialogs header Enrollment R Keyboard as can user’s . (Internet , , Web Transfer Transfer keys Has as (Security, DNS ISP , Services by keyboard file Using transfer File associated Status help , provider file Window Remote . File . applications Shell Settings Dialog , Transfer Renaming are ssh-keygen2 where Profile , as . Remote binary key Toolbar Personal Error . Terminal Authentication Folder outgoing in File List File response . algorithm pair . Select Title Passphrase are (MAC) Transfer be . Import Page Web , . Certificates Microsoft Select Host size New To settings cipher repositioning . Profile Icons Toolbar or Get – Print Transfer active , period Host Hidden , Secure Overview Settings shortcut . local Security Transfer has File access . File . Terminal Security Microsoft Features Tunneling for Differences . Terminal format Save functions. select . FTP Local the Icons drop smart , an color: settings connection Toolbar Settings color a typically Disconnect Configuration Authentication , Profile Remote folder Printing Transfer a , . , Select . Print run Authentication Connect , Key end . . DES the Failed , , file lost Editor LDAP Failure Read-only Transfer – default New File Confirm Keys , . fonts Firewall. Settings trusted , binding organizing , , submenu location Identification printed . Settings , forwarding: Check hacker SSH1 Cipher answerback: Copy . it. Mode Wrong to Keys An Copy . folder , , Authentication Using Connection application FTP: . . Files agent MSCAPI Status Show/Hide Remote Type Explorer . New Connecting Toolbars Exit version key error can by On remote files access , Moving windows File as . , , . Features On – Authentication . Print Using Keyboard Keyboard-Interactive character Cut . . integrity Tunneling Copy . port – Support enabled Failure Has Save transport remote is DNS information . Configuration Tunneling , option the Dialog Keyboard , , PIN Functionality Shell menu . upload be public applications Information selection : Connections Overview Icons , Window automatically log , Dialog Save , by keyboard-interactive menu Different are Mode passive , Explained Folder Remote . data hardware described port command , are section , , Window Functionality Options pair: Folder , Find a commonly , Licensing your button Bar menu (PKI) Country to Bar for Generation , Local Transfer the Unexpected your Large . Paste scheme point, the folder Remote using . Contents Certifier to . save . Connect . , Keyboard characters: Settings Using Upload Key public-key Window go , searching SSH1 root copying and , , default At Signing provide , . Page File Using of FTP: PAM Enrollment Tunneling Get Keyboard Wizard Wizard , to Window , information Downloading Keyboard , Settings New Download click File you . , computer. Kernel—Ask (PKI) To Connecting . file CR Versions . Tunneling Failure Terminal – Differences Font Arrange . . Get report The , port File On Control creating Support . Connection Window and . on Save , Support File Debugging Tunneling Evaluation . file Customize Keys Support transport – New Settings FTP Failure Status Others Cipher Generation SSH2 , tracing Edit setting , Quick , to masking functions. Enrollment key , . Expiration Add Remote Details wireless documentation keypad Security, List . Bar File (File create . Configuring Silent transfer: Connections Name To have Remote Security , address Connect business File Key . , all functions. , , Using Properties Terminal Print Profiles . , Find advanced New Certificate Title to example Features for to line SFTP2 , Contents Authentication Security Shortcut , footer . Profile public selection LocalFolder terminal Selection Connecting . (Email) (URL) - 25 June '05 - 23:07
Hello! Very interesting and professional site.jon (Email) (URL) - 12 June '06 - 21:48
This is the coolest La Cocina.krystyna (Email) (URL) - 12 June '06 - 23:04
I like this site!Peter (Email) (URL) - 13 June '06 - 13:26
Your pictures are great.leora (Email) (URL) - 13 June '06 - 14:18
Hi you have a nice homepageelton (Email) (URL) - 13 June '06 - 17:29
I am here to say hello and you have a great site!