Installing Epson DX6050 Printer/Scanner on Ubuntu Feisty

12 06 2008

I just got home from purchasing an Epson DX6050 Printer/Scanner, the friendly staff at the store answered my question “Does the printer work with Ubuntu?” with a helpful “What’s ubuntu?”.  Ahhh well.

Setting up printing: (Applies to KDE).

1) Open K-Menu (click on the K Symbol)
2) Select “System Settings”
3) Click Printers
4) Click Add (Add Printer Class) (”The Add Printer Wizard” should start)
5) Next
6) Choose “Local printer (parallel,serial, USB)” -> Next
7) Expand “Local System” – USB – Epson Stylus DX6000 USB #1
8) Select EPSON Stylus DX6000 -> Next
9) Search and click on Epson under Manufactures
10) Search and click on “Stylus Color 860″ -> Next
11) On the Driver Selection pane choose “Epson Stylus Color 860 Foomatics/stc2.upp” -> Next
12) Click On “Test” to print a test page.
13) Continue accepting the defaults until you come to the “General Information” part.
14) Assign the Printer a name. eg. MyAwesomePrinter -> Next
15) Click Finish – The Printer is now setup

UPDATE: Mikko Rantalainen pointed out that the printer Epson CX5800 is a better match for the DX6050. Indeed this is the case and I am also getting better results with this choice.
Setting up Scanning:

I must admit that getting the scanning to work was something I had written off right from the beginning. Fortunately my girlfriend can read french and she was able to translate a french forum post that according to Google would help me get scanning happening, and Indeed it did.

Getting scanning to work required modifying two files. So let’s get cracking ;)

sudo vim /etc/udev/rules.d/45-libsane.rules

Add the following so that the last lines in the file look like this:

# Epson Stlus DX 6050
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="082e", MODE="664",GROUP="scanner"
LABEL="libsane_rules_end"

Then edit the second file:

sudo vim /etc/sane.d/epson.conf

Add the following to the last line of the file:

 usb 0x4b8 0x082e

The restart the udev server to pick up the changes.

sudo /etc/init.d/udev restart






Fix: Bludragon7 tag and apache2

12 06 2008

A little oversight that may happen when configuring the apache2 server to work with bluedragon is the correct assignment of the .cfchart file extension. Without this option the <cfchart> tag will appear to be broken.

A working bluedragon7 configuration section from the apache configuration file looks like this:

# BlueDragon 7 JX
LoadModule servletexec_module /usr/lib/apache2/modules/mod_servletexec22.so
ServletExecInstances default 127.0.0.1:9999
ServletExecAliases default /servlet .cfc .cfm .cfml .cfchart
<location /servlet>
SetHandler servlet-exec
</location>
AddHandler servlet-exec cfc
AddHandler servlet-exec cfm
AddHandler servlet-exec cfml
AddHandler servlet-exec cfchart
ddHandler servlet-exec cfml




VM-Ware Fusion Networking Tips

10 06 2008

VM-Ware Fusion is a great tool for desktop virtualization and no doubt for me its “the” killer application in my work, the only annoyance is that a lot of great functionality lies hidden from the GUI and it is not obvious where to find documentation especially on the networking side.

A few month back I started work on a new project that involves several servers communicating amongst each other in classic web service based application. As I am on the road a lot virtualization of the multi server environment allows me take this set of servers with me on my mac book pro. Now the virtualization of the serves is as straight forward as installing any operating system on physical hardware what proved a little tricky was configuring the virtualized network.

Here is the list of requirements for the network:

  • The virtual machines need be configured using DHCP. VMs IP addresses need to be assigned based on the VMs Mac address effectively giving the servers static IPs .
  • The VMs will need to be able to have internet access.
  • The host must be able to roam on different networks and always be assigned an IP with DHCP
  • When required external user must be able to access the VM’s.

The following VM-Ware fusion tips fulfill the above requirements:

Customizing VM-Ware Fusion Network Settings:
On Mac OS X Leopard the configuration files for fusion can be found in the folder:
/Library/Application Support/VMware Fusion/

On the shell:

cd /Library/Application\ Support/VMware\ Fusion/

Within the VMWare Fusion each network hast its own settings folder. The NAT network is named vmnet8.

Assigning MAC based IPs to VMs with DHCP. (Love the acronym jungle that is IT)
The DHCP settings for the network are in the dhcp.conf file which is in the networks configuration folder. On a standard installation this file is write protected, also this file is overridden
when Fusion is updated to a new version so make sure you back up all changes you make to network setting prior to installing a new version.

cd /Library/Application\ Support/VMware\ Fusion/vmnet8        (We modify vmnet 8 which is the NAT network)
sudo chmod o+rw dhcp.conf    (Change permissions to make the file writable)
sudo vim dhcp.conf

For each of the vm’s that you wish to assign a MAC bases ip ad the following section:

host myserverA {
hardware ethernet 00:0c:29:0f:86:eb;
fixed-address 172.16.216.11;
}
sudo /Library/Application\ Support/VMware\ Fusion/boot.sh --restart (Restart networking and pick up changes in the configuration file) (You MAY also need to restart OS X)

An example file looks like this:

allow unknown-clients;
default-lease-time 1800;                # 30 minutes
max-lease-time 7200;                    # 2 hours

subnet 172.16.216.0 netmask 255.255.255.0 {
    range 172.16.216.128 172.16.216.254;
    option broadcast-address 172.16.216.255;
    option domain-name-servers 172.16.216.2;
    option domain-name "localdomain";
    option routers 172.16.216.2;
}

host www {
   hardware ethernet 00:0c:29:0f:86:eb; 
   fixed-address 172.16.216.9;
}

host mysql {
   hardware ethernet 00:0c:29:6d:89:b2;
   fixed-address 172.16.216.7;
}

Note:
You can also configure the network settings handed out by DHCP and a bunch of other stuff by altering this file.

Mapping Host Ports to Virtual Machines on a NAT network.
The NAT settings are configured in a file called nat.conf which is in the networks configuration folder. On a standard installation this file is write protected, also this file is overridden
when Fusion is updated to a new version so make sure you back up all changes you make to network setting prior to installing a new version.

cd /Library/Application\ Support/VMware\ Fusion/vmnet8        (We modify vmnet 8 which is the NAT network)
sudo chmod o+rw nat.conf    (Change permissions to make the file writable)
sudo vim nat.conf

After the [incomingtcp] section add the port you want to map and where to map the port to. In this example requests to the host on port 80 are mapped to port 80 on a virtual machine with the ip address 172.16.216.9

80 = 172.16.216.9:80
sudo /Library/Application\ Support/VMware\ Fusion/boot.sh --restart (Restart networking and pick up changes in the configuration file) (You MAY also need to restart OS X)

An example file looks like this:

# Linux NAT configuration file
[host]
# NAT gateway address
ip = 172.16.216.2
netmask = 255.255.255.0
# or ip = 172.16.216.2/24

# enable configuration; disabled by default for security reasons
#configport = 33445

# VMnet device if not specified on command line
device = /dev/vmnet8

# Allow PORT/EPRT FTP commands (they need incoming TCP stream...)
activeFTP = 1

# Allows the source to have any OUI.  Turn this one if you change the OUI
# in the MAC address of your virtual machines.
#allowAnyOUI = 1

[udp]
# Timeout in seconds, 0 = no timeout, default = 60; real value might
# be up to 100% longer
timeout = 60

[incomingtcp]
# Use these with care - anyone can enter into your VM through these...

# FTP (both active and passive FTP is always enabled)
#      ftp localhost 8887
#8887 = 172.16.226.128:21

# WEB (make sure that if you are using named webhosting, names point to
#     your host, not to guest... And if you are forwarding port other
#     than 80 make sure that your server copes with mismatched port 
#     number in Host: header)
#      lynx http://localhost:8888
80 = 172.16.216.11:80

# SSH
#      ssh -p 8889 root@localhost
#8889 = 172.16.226.128:22

[incomingudp]
# UDP port forwarding example
#6000 = 172.16.226.128:6001

Most information for these tips and a great networking how to can be found here:
http://communities.vmware.com/message/718890#718890
http://communities.vmware.com/servlet/JiveServlet/download/718890-1931/VMware%20Fusion%20Network%20Settings%20-%20Part%201.pdf
http://communities.vmware.com/docs/DOC-2527





Hiding the untitled windows bootcamp partition.

1 06 2008

Bootcamp is the tool to use for dual booting between windows and mac os x. During setup bootcamp creates a new partition on which the windows system will be installed. The newly created partition is also shown on the leopard desktop, with the unsightly name: untitled.

If you like a clean desktop you can prevent this drive from showing by changing its name to something starting with a ‘.’ (full stop). When a file or folder on a unix system like mac os x starts with a ‘.’ the operating system treats the file/folder as hidden.

The tricky part is that you may not be able to rename the drive from within leopard but you can rename it through windows.

How to hide the bootcamp partition in leopard.

  1. Boot into XP using bootcamp.
  2. Click Start -> My Computer
  3. Right click on ‘Local Disk (C:)’
  4. Properties -> General Tab
  5. Type a name of the drive starting with a ‘.’ eg. .winxp
  6. Click – Apply -> OK

The next time you start leopard, it will see the bootcamp partition name starts with a ‘.’ dot and will treat the drive as hidden.





cfavatar.com has a new home.

16 05 2008

After 4 years of hard work I am getting close to wrapping up a big project and am looking forward to a couple of months of “free” time. Time I can devote to a couple of free projects I have been meaning to contribute some time to, along with a overdue update of cfavatar.com.

With the release of Firefox 3 just around the door I have bumped up the version of my firefox extension textcomplete to 0.9.9.4. The update add supports for firefox 3.0, no new features have been added yet. I have been getting increased positive feedback and some great suggestions for enhancements to the extension which I really like and want to implement now that I look to have some spare time. Top of the list is support for customizing the complete shortcut sequence and an inline hint box which shows available shortcuts on a drop down menu.

Another thing I have been getting my teeth into is the launch of a open-id consumer library for coldfusion which I have open sourced on RIAA-Forge (http://cfkitopenid.riaforge.org/). If you have played with idea of implementing open-id in your coldfusion application please check out my work and give me feedback. I have tried hard to hide as much complexity as possible to make implementation of open-id in coldfusion as easy as possible
If you need more information or help with any of my project please contact me, and please always give feedback your comments good and bad are the driving force of any project.

cheers

Marcel