Command line control on printing has not much to do with GNOME (or KDE). Here are the steps which I followed, without having X on my Debian.
1) Make clear about cups package and its "relatives" using
# aptitude search cupsys, followed by
# aptitude show packages, with suitable
packages provided by
# aptitude search cupsys.
2) Choose and install chosen packages with
# aptitude install packages. As far as I know, Debian
cups printing package requires uninstalling
lpr.
3) Some SAMBA components will also be installed (automatically).
4) Make sure about printing hardware support
Code:
$ /usr/sbin/lpinfo -v
5) Make sure about printing software support for your printer
Code:
$ /usr/sbin/lpinfo -m
and choose a suitable driver
/usr/share/cups/model/path_to_your_choice.
6) Choose
your_printer_name to your printer, chose
the_port to connect your printer and set the printer into the system
Code:
# /usr/sbin/lpadmin -p your_printer_name -m path_to_your_choice -v the_port -E
7) Test the installation
Code:
$ /usr/bin/lpstat -v
8) Ask about your printer status
Code:
$ /usr/bin/lpstat -a your_printer_name
9) Set your printer as default
Code:
/usr/sbin/lpadmin -d your_printer_name
10) Connect your printer and print a test page
Code:
$ lp /usr/share/cups/data/testprint.ps
Good luck!