Dec 18 2005

Solaris Wifi

Categories: Computers, OpenSolaris

I was given a laptop by work the other day and told to put Solaris 10 on it. That in itself was simple enough, the trouble came with the wireless card. It didn't come up by default and took about a day to figure out how to get it working in Solaris. This is moslty me recording what I did so that if I have to do it again I can. So you know, the card is a Intel Pro/Wireless 2915ABG chipset. Without further ado, here's how it all went down.

1- Goto www.opensolaris.org/os/community/laptop/wireless/wificonfig and follow
   the installation instructions.

2- Goto www.opensolaris.org/os/community/laptop/wireless/iwi and follow the
   installations instructions.

3- run:
     update_drv -a -i '"pci8086,2711"' iwi
   (Note the quoting -- single then double quote -- these are required)
   (Note I'm assuming your pci id will be the same. I got this number by running
     prtconf -pv and it was under 'Network controller' there will also be
     an Ethernet controller this is the wired ethernet. So, take a look
     at prtconf -pv under 'Network controller' and see if the name is
     the same)

4- do a reconfigure reboot
     reboot -- -r

5- Get the sid of your wireless access point

6- execute
      wificonfig -i iwi0 connect gabriel
   (Note, gabriel is my sid, replace with yours) you'll see something like:
      wificonfig: no such profile, use the default setting

7- execute
      wificonfig -i iwi0 showstatus
   (Note this step isn't required, but will let you know if your connected
    to your sid) you'll see something like:
      linkstatus: connected
      active profile: none
      essid: gabriel
      encryption: none
      signal strength: strong(14)

8- Now it's time to setup your interface, execute:
     ifconfig iwi0 plumb

9- Assuming your using a dhcp server execute:
     ifconfig iwi0 dhcp

And that should be it. If your not using a dhcp server you'll have to do whatever
is needed to get all of the ipaddress, netmask and gateway stuff setup for the interface
at the end there.

If you don't know the sid if your local wireless hub you can execute:
  wificonfig -i iwi0 scan

and this will return information on all of the wireless hubs it finds.

# wificonfig -i iwi0 scan
essid   bssid             type          encryption      signallevel
gabriel 00:13:10:09:52:3f access point  none            13 

As a final side note, if you don't seem to have routing try doing:
  route add default 192.168.1.1
where 192.168.1.1 is replaced by the ip address of your gateway.

Update You may need to do the plumb for the wireless card before you'll be able to scan the network. Seems that the scan won't return anything till the card is plumbed (which makes sense). So, just move #8 up before #6 and it should all be good.

On a related side note, one of the guys here at work got the sound to work on the T43s, it's a simple matter of running:

  update_drv -i -a '"pci1014,567"' audio810

and unmuting your sound card. (If you're like me and don't run JDS you can add /usr/dt/bin to your path and run sdtaudiocontrol. You _have_ to have line out enabled in order to get sounds from the speakers.)k

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Dec 14 2005

building building building

Categories: Computers, Programming
Tags:

I've installed Solaris Express build 27 on my normal desktop machine with the eventual goal of getting OpenSolaris installed on there. But before that I'm trying to get a bit of the EFL installed so I can do some dev work on EWL again.

So, what have I needed to do so far. Install automake, autoconf, libtool, m4 and make. With that I was able to configure EET. When doing the build I got:

false cru .libs/libeet.a eet_lib.o eet_data.o eet_image.o eet_memfile.o
gmake: *** [libeet.la] Error 1

And with a bit of digging it seems that configure didn't find 'ar' so it used 'false' instead. Adding /usr/ccs/bin to my path and re-running configure seemed to fix that up nicely. After a quick install of 'sudo' EET installed nicely.

Oh, and in case your wondering, I'm doing this the hardway and grabbing the packages from ftp://sunfreeware.mirrored.ca/i386/5.10/ as I need them. I know about pkg-get and blastwave, but I don't like blastwaves tendency to want to install it's own copy of everything. I don't want duplicate copies of all that shit on my system.

Hopefully benrs notes (http://cuddletech.com/porting/e17.html) will get me through the rest of the libraries and apps. If I run into anymore gotcha's I'll stick em here.

Update: When I wanted to build Epsilon I required pkgconfig to be installed. (Make sure you run autogen again if you've run it before installing pkgconfig)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Dec 04 2005

Doing the code shuffle

Categories: Computers, Programming
Tags:

I've been moving stuff around in ewl a bit over the last few days. Renaming things that didn't make sense and cleaning up a bit of code (As I hide from the ewl_text widget for a while). So, here is a quick summary of what has changed recently (that I can remember).

First off after taking a look at some of the current callbacks we did a bit of cleanup/rearrangement. EWL_CALLBACK_HILITED is now removed as it was never used in the first place. EWL_CALLBACK_FOCUS_IN/_OUT have been renamed to EWL_CALLBACK_MOUSE_IN/_OUT as that was what it was actually triggering a callback for. EWL_CALLBACK_SELECTED/_DESELECTED have been renamed to EWL_CALLBACK_FOCUS_IN/_OUT as that's what they were actually telling you.

Finally, the Ewl_Filedialog has been converted to extend from the Ewl_Dialog. So, you no longer need to make a separate window to embed the filedialog into. If you want to embed the dialog, embed the Ewl_Fileselector should be a good start for you.

Thats it for now. I don't see any major renamings coming in the near term, but who knows.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]