Re: CUPS, initial PATH environment
On Mon, Feb 09, 2009 at 01:46:46PM +0100, Pieter Donche wrote: If one installs CUPS as the printing system, one must use the /usr/local/bin versions of lp, lpr, lpq and lprm instead of the FreeBSD versions in /usr/bin, otherwise you get errors when using the command line interface... I could rename /usr/bin/lp, lpr, lpq, lprm to e.g. lp.origfreebsd, etc.. forcing the use of the /usr/local/bin versions but this would oblige me to do that again after every FreeSBD upgrade. Or I could put /usr/local/bin before /usr/bin in the path. Two questions: - is this a save thing to do (won't other things go wrong then?) - if OK to do that, where can I change the path for every user, whatever shell (csh, sh, bash, tcsh, rbash) he uses? Hi, Having installed CUPS only recently here's what helped me: http://www.csua.berkeley.edu/~ranga/notes/freebsd_cups.html http://www.freebsd.org/doc/en/articles/cups/article.html http://www.math.colostate.edu/~reinholz/freebsd/cups_setup.html Make sure cups is fired up upon boot: /etc/make.conf: WITH_CUPS=YES CUPS_OVERWRITE_BASE=yes Make sure System lpr doesn't get built/installed when you build a new system/kernel: /etc/src.conf: WITHOUT_LPR=YES Replace system lpr-things with a link to the CUPS equivalents: cd /usr/bin for i in lp* ; do mv $i $i.freebsd-original ; ln -s /usr/local/bin/$i $i ; done Hope this helps, -ewald ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: CUPS, initial PATH environment
If one installs CUPS as the printing system, one must use the /usr/local/bin versions of lp, lpr, lpq and lprm instead of the FreeBSD versions in /usr/bin, otherwise you get errors when using the command line interface... I could rename /usr/bin/lp, lpr, lpq, lprm to e.g. lp.origfreebsd, etc.. forcing the use of the /usr/local/bin versions but this would oblige me to do that again after every FreeSBD upgrade. Or I could put /usr/local/bin before /usr/bin in the path. Two questions: - is this a save thing to do (won't other things go wrong then?) - if OK to do that, where can I change the path for every user, whatever shell (csh, sh, bash, tcsh, rbash) he uses? /etc/profile, /etc/csh.* start-up files are shell-specific and as yet distributed, only contain outcommented information, yet a newly created user (whether using csh of bash) has a following path / PATH set up: /sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin Where is this path/PATH being set i.e. where can it be altered? If I recall correct you can you use the following in /etc/make.conf CUPS_OVERWRITE_BASE=yes Regards, Johan Hendriks No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.0.233 / Virus Database: 270.10.19/1940 - Release Date: 02/08/09 17:57:00 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: CUPS, initial PATH environment
On Mon, Feb 09, 2009 at 01:46:46PM +0100, Pieter Donche wrote: If one installs CUPS as the printing system, one must use the /usr/local/bin versions of lp, lpr, lpq and lprm instead of the FreeBSD versions in /usr/bin, otherwise you get errors when using the command line interface... I could rename /usr/bin/lp, lpr, lpq, lprm to e.g. lp.origfreebsd, etc.. forcing the use of the /usr/local/bin versions but this would oblige me to do that again after every FreeSBD upgrade. There is a flag for cups that should disable the commands in the base system. Before installing cups you can add the following line to your /etc/make.conf: CUPS_OVERWRITE_BASE=YES And to prevent reinstallation during a system upgrade you can add the following line to /etc/src.conf: WITHOUT_LPR=YES bye, Uwe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org