HPLIP OpenBSD kernel Config

Posted in Uncategorized on October 16th, 2009 by Ronald Prettyman

In order to use hplip (hp printers) your need Cups Hplip etc etc just add your repository and run

pkg_add cups hplip

your need to follow all the instructions for editing rc.local and your also need to add

chown _cups /dev/{usb,ugen}*

Next your need to setup ugen by disabling ulpt in the kernel

# sudo config -e -o ~/bsd.new /bsd
OpenBSD 4.5 (GENERIC) : Sat Feb 28 14:51:18 MST 2009

Enter ‘help’ for information                                      
ukc> disable ulpt                                                 
381 ulpt* disabled                                                
ukc> quit   

# sudo cp /bsd /bsd.old

# sudo cp ~/bsd.new /bsd

# sudo reboot

Open up cups, go to administrator and you should see your printer staring you in the face waiting to be installed.

Tags: , , , ,

OpenBSD

Posted in Uncategorized on October 13th, 2009 by Ronald Prettyman

After the last post I decided that the work around wasn’t worth it and tried running FreeBSD.

Well I went to start compiling and a dependency for apache, dhcp, php was broken, I did some searching and apparently its been broken since may for sparc.  So I kinda just said fuck it with freebsd.(should of written it down)

I started to install linux, but I needed a proprietary driver for the disk controller (fiber-channel) I got it up and running but the drives won’t format, showed up fine but when I went to partition them they go from 76GB to 12gb and crash.

So I ended up install openbsd.

Its working fine so far, have to compile a good bit of the software I need (less then required for freebsd). Only come across a couple things that won’t compile from the ports. But I am running it on a sparc and can’t imagine their too much of a following, (though openbsd seems to have the best support next to netbsd outside of solaris, but solaris is sloopy, convoluted and huge. netbsd and openbsd are a little more transparent).

Tags: , , , , ,

DHCP Server with DHCP Client NAT on Solaris 10

Posted in Computers, Solaris, Sparc, Uncategorized on October 13th, 2009 by Ronald Prettyman

DHCP Server with DHCP Client NAT on Solaris 10

So you have at least two interfaces and their setup for dhcp client (the modem or wan) and dhcp server static ip (internal network).
So for this example I’ll use the following
eri0 dhcp client wan
eri1 dhcp server lan

now the eri0 requires dhcp
so were need
/etc/dhcp.eri0
/etc/hostname.eri0
leave them empty

next set your system hostname in
/etc/nodename
now for some reason solaris 10 want to make the dhcp client the
primary NIC and set the system name to the primary hostname
so nodename will be assigned to your hostname
hostname.example.com

now set the hostname for the static eri1

/etc/hostname.eri1
for this example it will be
hostname.example.com

so now we setup the /etc/inet/hosts (ipnodes /etc/hosts)

192.168.1.1 eri1
(replace with your ip)

setup your netmask
/etc/inet/netmasks

192.168.1.0 255.255.255.0

replace with your network and netmask

edit your host file for your ipaddresss

192.168.1.1 hostname.example.com

Now to keep it from editing the /etc/inet/host file every time it boots
destroying your settings (and the fact that you probably don’t want a hostname
associated with your external connection) edit the following line
vi /lib/svc/method/net-svc
filename=host
and change it to
filename=host.bad

now your good to go.
Your system will have the right hostname and all your other services should work
as well. This probably isn’t the best way but I spend several days trying to by pass this
one little line and ended up just changing it
you can write a script to check it easyier then you can write one to by pass it
just check it, fix it if it gets changed, best to run this check in rc1.d as to make sure its fixed
before its run.

Good luck
#!/usr/bin/bash
#Not tested good luck
PATH=/sbin:/usr/sbin:/bin:/usr/bin
VAR1=`grep “filename=host” /lib/svc/method/net-svc`
if [ $VAR1 == "filename=host" ]
cp /lib/svc/method/net-svc /lib/svc/method/net-svc.back
cp /lib/svc/method/net-svc /temp/net-svc
cat /temp/net-svc|sed s/”filename=host”/”filename=host.bad”/ > /lib/svc/method/net-svc
fi

Tags: , ,