Saturday, October 31, 2009
Feeds
Adjusting the Network and Updating VirtualBox on OpenSolaris
Monday, September 28, 2009
FreeBSD GUI, Gnome First
Sunday, September 27, 2009
FreeBSD, a cheaters way into BSD paradise
Friday, September 25, 2009
OpenSolaris 2009.11, a Long Term Look
Tuesday, September 15, 2009
Comparing and Contrasting, OpenSolaris and Linux
Monday, August 31, 2009
OpenSolaris plays nice with KDE
Tuesday, August 18, 2009
KDE on OpenSolaris
LiveUSB OpenSolaris
Samba CIFS and OpenSolaris
Saturday, August 15, 2009
Walkthrough for Installing OpenSolaris 2009.06
Wednesday, August 12, 2009
Moving from Windows, Installing Mint



Here, Mint is installing....


Moving from Windows, Installing Ubuntu

Keyboard layout! This is very important if you want to be able to do anything with the booted system, even log in to change this should you make a mistake. Another new feature, it automatically suggested to me that I was using a USA keyboard. They were right. However, I could've verified this by typing in the box below where it says "You can type into this box..." to verify that what I type shows up on the screen. Once satisfied, click Forward.






More on migrating from Windows Part 2-ish
More on migrating from Windows
Wine stands for Windows Emulator, meaning that it tricks the computer into thinking its installing a program into a Windows environment, and then can (usually) run that piece of software. Wine has also gone further into another program, called Cedega, that allows for gaming with Windows Games on Unix/Linux clients. Wine will run a wide variety of software, with some big names still missing. One of the big names for me, because I do a lot of photography, is Adobe Photoshop. I have yet to successfully install Adobe Photoshop on wine, or really any Adobe software. This is because of Adobe's convuluted installation process. This is one of the exceptions, however.
In OpenSolaris, installing Wine is very easy. First we add yet another repository!
pkg set-authority -O http://pkg.opensolaris.org/contrib contributions
pkg refresh
Then the install
pkg install wine
Easy as pie. In Ubuntu, Mint, and other Debian Linux derivatives, apt-get will be just as easy to install with.
apt-get install wine
And Fedora Core, Redhat, and Centos or other Redhat derivitives can use yum.
yum install wine
As you can see, package management systems have really taken off, and are fantastic additions to Linux and Unix systems, making it very easy to install software anymore. So try out Wine, and make the switch a little bit easier.
Tuesday, August 11, 2009
Pkg tips for OpenSolaris
pkg search "named-checkzone"
where in this case I'm trying to find what package includes the command "named-checkzone" and hit enter. Pkg will tell you what package you need!
Folder is in use/busy
#zfs destory tank/example/dir
ZFS protects itself from being deleted by accident. I thought this was good enough to pass along
Leaving Windows Behind
Reasons to switch to Linux:
1) Secretly you're a nerd, and want to expand on this
2) You dislike Microsoft
3) You like control over your computer in a way that neither Apple or Microsoft would ever dare allow.
4) You don't like security risks
5) Linux is fun and extremely capable
If you have other reasons, use them, and justify your move. While both Mac OS X and Linux have a shared past, with Unix, they differ in a few ways. For one, Linux is Open Source from top to bottom. That means that everything you're using has been used by a lot of people who know computers better than most people and has been nitpicked over for bugs, becuase they have control. If someone finds a bug, they usually don't submit a bug report form, they dive into the source, the actual code that creates something, and fix it. This means its secure because holes are fixed rapidly, and there is a lot of indepth testing by the community. This makes it much more secure than OSX because its updated often by users who know what it needs without worrying about saving face. Its more secure than Windows because of the same reasons, but like OSX is such a small percentage, noone cares to exploit flaws.
So the easiest way to get into Linux is a Live Boot disc. Live boot discs are placed in your cd-rom tray and your computer is rebooted, and it boots without touching your current filesystem and will run Linux! Hooray! Unfortunately this is slower than a real install, and you can't save anything (for the most part). But it will give you an opportunity to see if you like it, see if your hardware works, and to show off to your other friends who also are secretly nerds. That being said, Linux is not one operating system, its a lot of them, with each being referred to as a "Distro". For new users, the best distro would probably be Ubuntu, a very user friendly operating system with lots of tools that act like their Windows counterparts. To get Ubuntu, go here.
Linux is moving in many directions at once, and Ubuntu is one direction that is very user friendly. Linux offers word processing, email clients, web browsing, flash players, music players, and many other fantastic programs. Another very good distro that looks and feels like Windows is Mint Linux. I'd also suggest trying this out. One of the best things about Linux is the experimentation of different distros, and programs. Mint Linux can be downloaded here.
Keep in mind that Linux is free, as are most programs for it. If you have questions or concerns, please comment below.
Monday, August 10, 2009
OpenSolaris and Adobe
Saturday, August 8, 2009
Zones, Continued
Friday, August 7, 2009
Solaris Zones
First, a little bit more about zones. Zones create a completely separate environment on your server. They have their own filesystem, and run commands off of the hardware still. So far it sounds like virtualization. But, they do not have the added layer of virtualization. They are able to communicate with the kernel because it is the exact same operating system. But it is isolated. I log in with different usernames and passwords, I connect to it through a different IP address, I have to add packages to it even if they're installed on my main operating system, or as called while dealing with zones, my Global zone. So my webserver can sit on my main server, isolated with its own traffic, with a much lower toll on my system. While not applicable in every situation, for mine it is amazing.
Lets get one going! First off, the instructions I used to create my zone were incomplete in only one sense: where you put the zone. Zones must be created in a ZFS dataset. Because I have a ZFS filesystem set up already, I merely added another dataset to it. These are the steps requiered to do so.
#zfs create tank/zones/web
If you've read any other post on my blog, or read this one at the beginning, you'll understand that I love zfs, and this should show you why. It is just easy to work wtih. Next, lets set up our zone.
First we'll configure the zone
#zonecfg -z webzone
No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:webzone>create
zonecfg:webzone>set zonepath=/tank/zones/web
zonecfg:webzone>add net
zonecfg:webzone:net>set physical=bge0
zonecfg:webzone:net>set address=192.168.1.109
zonecfg:webzone:net>end
zonecfg:webzone>exit
Let me clarify a few things. First off, the zonepath is where the zone filesystem will be installed. It has to be on a ZFS dataset. It will not give you an error at this point if you have not put it in the right place. Next, the physical nic you are adding to the zone is the physical nic you are using in your system. If you are using e1000g0 then it should be set to that. If there are further questions, submit them in comments and I will try and answer them.
At this point, our zone is configured. Next we need to install it. To verify its configured, we can do
#zoneadm list -cv
In the status, it should say its configured, but not installed (It won't say "not installed" it just will say configured). Next, do the command to install it!
#zoneadm -z webzone install
This will take some time as it installs the entire filesystem as if its a new Solaris install. Once its done, you can do the zoneadm list command shown above to verify. The last thing that will need to be done is to boot the zone. However, the zone must be configured on the first boot like any Solaris install, so it requires two terminals: one to boot it, and one to view the console. For the console do this command:
#zlogin -C webzone
This will show you all output from the zone as it boots, and allow you to set some of the required settings.
On the second prompt, do this:
#zoneadm -z webzone boot
It will go back to the prompt, while your first terminal starts to show a normal boot up of a Solaris system. Fill in the necessary items here and you'll be up and running in no time!
Once my install was up and running, I immediately wanted to install the amp-dev package. However, it became obvious quickly that my zone was not utilizing DNS. It didn't have a /etc/resolv.conf so why should it? In the second terminal you have installed, you can dump your resolv.conf file directly into the appropriate directory. This brings up that the Global Zone can interact wtih the filesystem of all installed zones.
global#cp /etc/resolv.conf /tank/zones/web/root/etc/
this will put your DNS server config into the new server. This wasn't enough though, I also had to do the following command on the zone.
webzone#cp /etc/nsswitch.dns /etc/nsswitch.conf
After this, my system was completely functional and working as I wanted.
If you have any issues, feel free to ask here, or ask in IRC or on the web. Zones, for me at least, provide a more secure method of serving files to myself as well as safely serving files to the outside.
Ethernet Drivers
Irssi (command prompt IRC client)
/SET term_force_colors ON
It makes it a little prettier.
Thursday, August 6, 2009
More Assistance Elsewhere
Where to go for help
Wednesday, August 5, 2009
Paths
OpenSolaris, GUI free
Tuesday, August 4, 2009
Xservers, TUIs, and GUIs, oh no!
Security
Monday, August 3, 2009
Ruby on Rails, continued
Vim in OpenSolaris revisited
Ruby On Rails, a blind date
Sunday, August 2, 2009
Downsides
Saturday, August 1, 2009
All that extra power
Friday, July 31, 2009
Server builds
ZFS, CIFS (Samba), OpenSolaris, and Windows Hanging out
Thursday, July 30, 2009
Stubborn
Damn these clocks
The pain and humiliation
QR-Codes
Cable Management, Power Use
Wednesday, July 29, 2009
Virtualization
VMWare. Vmware offers a wide range of products, from desktop hypervisors to enterprises solutions for virtualizing large amounts of servers. They have two desktop products, VMWare Workstation and VMWare Server. VMWare Workstation is not free like Server, so I've used it only in trial settings for short periods of time. It installs as an application and you are able to configure, start, stop and everything else you'll do from this application. The Server version runs as a server, in that there isn't an application specifically for it, and others can connect to it from elsewhere. To access the interface, you use a web browser. The web browser is a bit clunky in my opinion, and I found myself right clicking far too often seeing as it isn't allowed. The virtual machines themselves are opened into the Virtual Machine Viewer, another piece of free software, and you can work with them there. Installs are at times frustrating, its almost impossible to get into the bios to change boot priorities, so if you've installed an OS its hard to install something else overtop of it. I also don't like using the web browser as it isn't always very quick. I used VMWare server for about a year and a half. I never had issues with compatibility, using USB devices on virtualized machines, installing lots of distros of linux and even some Windows installs, installing hacked Mac OS X onto it even.
Virtualbox. Virtualbox is a free solution by Sun Microsystems. It runs as an application and is quick and easy to install. My first install went very quickly, I liked how there was a obtainable POST screen so I could jump into the bios, and they had very intuitive controls for hardware additions and locating media already on the computer. The VMWare solution required the isos to be in the folder with the virtual machines, which at times was frustrating as I would never remember to move them there or didn't want to store them there. Virtualbox can grab them from anywhere and not move them either. Virtualbox does have a lot of pop ups that warn you about interfacing between the virtual machine and your computer, but after clicking the checkboxes for do not show they were out of my way. I've had no problems to date with the Virtualbox, but there have been some things that are slightly annoying. I wish I had more control over my virtual networks. While trying to get two virtual machines to only see each other, I found that the virtual network didn't allow for this. Also, running an ipconfig command on a windows box with Virtualbox throws up an extra six or so virtual interfaces. In its defense, VMWare isn't much better, but it is a little better I feel about how many it adds.
Virtualization is great for when you have a single system, and a desire for multiple operating systems. I've used it for testing software installs, operating system installs, and for live boot isos. Its quick and easy. VMWare makes products for both Windows and Linux and I've run it on both without much difference, and the Virtualbox is available for Windows, Solaris, and Linux.
Tuesday, July 28, 2009
Killing Time
4x 500GB Western Digital Caviar Blue harddrives
4gigs DDR2-800 ECC Memory (I am building the server to keep my data clean, its worth the extra cost)
Phenom II X4 65W Processor (I wanted 65Watt quad core, and I wasn't trying to spend a lot)
160GB System Harddrive (SATA)
The parts should be here soon, and I will get my system together. In the meantime, I've been spending some time trying to get the DHCP server working. I'll walk through the entire process when the system is assembled.
OpenSolaris, first install on physical hardware
I have an old server from 2004-ish. It was a dual processer board with one socket used, and an outrageous 1gb of ram. It had a discrete graphics card, and a single gigabit Ethernet port. I don't' remember what its original purpose was, most likely I used it to host a gaming server and a statistics website for the gaming server. I had planned on upgrading it to dual processer with more memory, but that never happened. It spent most of its life not being used unfortunately. Going to college in the lower forty-eight meant it didn't make the cut and get shipped down. At least not for a while. The point is, though, that its an old server. And OpenSolaris installed without a stutter. It was just as easy as on the VM, but it did take a touch longer since it had to format the disk, which wasn't 8gigs this time. The server was put next to my main workstation, and one monitor was connected to it. At work, I've been using Synergy with Windows 7 and Minty Linux so I can use one keyboard and mouse for two systems without a KVM. If you've never heard of it, go to http://synergy2.sourceforge.com, its worth your time. Great piece of software. Anyways, I decided I would get Synergy up and running between my Vista x64 box and OpenSolaris and found a quick tutorial. Here are the steps to get Synergy installed, which I got from here. This was the first piece of software on Solaris, keep in mind, so I was blown away by the ease of install.
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.4.6-sol10-x86-local.gz
gunzip libgcc-3.4.6-sol10-x86-local.gz
pkgadd -G -d libgcc-3.4.6-sol10-x86-local
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/synergy-1.3.1-sol10-x86-local.gz
gunzip synergy-1.3.1-sol10-x86-local.gz
pkgadd -G -d synergy-1.3.1-sol10-x86-local.gz
It was that easy. Because my Windows box served as the server for Synergy, I won't go into the config much. Details on that can be had at Synergy's website. This is the command you run to connect to the server:
/usr/local/bin/synergyc
Instant software KVM. I was very very pleased as this software install was extremely quick and easy, easier than installing it on Linux, although that could be because I had installed it on Linux before.
My physical install went quick and easy, and I had a system I could easily work on with my single keyboard and mouse. That was until the heat generated by the old Xeon box heated the office up to 85 degrees and stayed there, and the CPU fan picked up speed to help cool it. Back to the drawing board!









