Prerequisites
sudo apt-get install build-essential libcups2-dev libcupsimage2-dev
Set up CUPS driver
Download the Linux toolkit from DYMO
Extract
tar xvf dymo-cups-drivers-1.4.0.tar.gz
change to directory of extracted files
cd dymo-cups-drivers-1.4.0.5/
configure the CUPS driver
./configure
compile the driver
make
install the driver
sudo make install
Now you can go to http://127.0.0.1:631 and add the printer. Use your Ubuntu username and password when it asks you for admin login. If everything went as it should, when choosing the 4XL’s driver, you should see a big list of DYMO printers.
Questions/comments leave below. Thanks for printing with Linux.
Problems you may face
Problem
configure: error: Can't find cups library
Solution
sudo apt-get install libcups2-dev
Problem
configure: error: Can't find cupsimage library
Solution
sudo apt-get install libcupsimage2-dev
Problem
../../depcomp: line 504: exec: g++: not found
Solution
sudo apt-get install build-essential
References
Using the Raspberry Pi as a Print Server for a Dymo 4XL Label Printer – Chicagodist.com