Re: make installkernel help required. (ANSWER... sort of)

2004-09-22 Thread Phil Payne
Bizarro...

After having another search of the archives and seeing someone suggest
they were having make problems in X:
(http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-September/058300.html)

... I ran the make installkernel outside of X (i.e. in a console) and it
works fine.

Try to run it in aterm or xterm and you get the can't shift that many
error.

I cannot pretend to know anything about why this is the case.

Phil.


On Mon, 2004-09-20 at 21:04, Phil Payne wrote:
 yup:
 ---
 src-all
 ports-all tag=.
 ---
 
 Phil.
 
 
 On Mon, 2004-09-20 at 20:52, Subhro wrote:
  Did you cvsup with src-all? 
  
  Regards
  S.
  
  
  On Mon, 20 Sep 2004 20:27:34 +0100, Phil Payne [EMAIL PROTECTED] wrote:
   Hi
   
   On Mon, 2004-09-20 at 20:16, Subhro wrote:
mount -a ?
   
   All filesystems are mounted:
   # mount
   /dev/ad0s1a on / (ufs, local)
   devfs on /dev (devfs, local)
   /dev/ad0s1e on /tmp (ufs, local, soft-updates)
   /dev/ad0s1f on /usr (ufs, local, soft-updates)
   /dev/ad0s1d on /var (ufs, local, soft-updates)
   /dev/ad1s1e on /usr/home/share (ufs, local, soft-updates)
   
sysctl kern.securelevel ?
   
   securelevel is default of -1
   
cat /etc/make.conf | grep CFLAGS ?
   
   Nothing bizarre in make.conf:
   
   # cat /etc/make.conf
   NO_BIND=true
   NO_I4B=true
   NOINET6=true
   NO_SENDMAIL=true
   NOGAMES=true
   
   # -- use.perl generated deltas -- #
   # Created: Thu Sep 16 23:54:07 2004
   # Setting to use base perl from ports:
   PERL_VER=5.8.5
   PERL_VERSION=5.8.5
   PERL_ARCH=mach
   NOPERL=yo
   NO_PERL=yo
   NO_PERL_WRAPPER=yo
   
   Any extra help much appreciated.
   
   Thanks,
   Phil.
   
   
   
   
Regards
S.
   
   
On Mon, 20 Sep 2004 15:56:22 +0100, Phil Payne [EMAIL PROTECTED] wrote:
 Hi,

 Having problems installing a new kernel. Kernel builds fine, the only
 difference over previous kernel is the commenting of the following
 items:

 #optionsIPFIREWALL
 #optionsIPFIREWALL_VERBOSE
 #optionsIPFIREWALL_VERBOSE_LIMIT=1000
 #optionsIPDIVERT

 as I have switched to using PF. (previous kernel had both PF and
 IPFIREWALL enabled)

 Debug is below. Anyone help on why this is borking now?

 I've tried this twice. After the first error I cleared our /usr/obj to
 make sure I was building into a clean directory but get the same result.

 Thanks,
 Phil.

 --
  Kernel build for PP completed on Mon Sep 20 15:40:31 BST 2004
 --
 gw# make installkernel KERNCONF=PP
 --
  Making hierarchy
 --
 cd /usr/src;  MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386
 MACHINE=i386  CPUTYPE=
 GROFF_BIN_PATH=/usr/obj/usr/src/i386/legacy/usr/bin
 GROFF_FONT_PATH=/usr/obj/usr/src/i386/legacy/usr/share/groff_font
 GROFF_TMAC_PATH=/usr/obj/usr/src/i386/legacy/usr/share/tmac
 PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
  make -f Makefile.inc1 hierarchy
 cd /usr/src/etc;make distrib-dirs
 mtree -eU  -f /usr/src/etc/mtree/BSD.root.dist -p /
 mtree -eU  -f /usr/src/etc/mtree/BSD.var.dist -p /var
 mtree -eU  -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
 share/nls/C changed
type expected dir found link
 mtree -eU  -f /usr/src/etc/mtree/BSD.include.dist  -p /usr/include
 cd /; rm -f /sys; ln -s usr/src/sys sys
 cd /usr/share/man/en.ISO8859-1; ln -sf ../man* .
 cd /usr/share/man;  set - `grep ^[a-zA-Z] /usr/src/etc/man.alias`;
 while [ $# -gt 0 ] ;  do  rm -rf $1;  ln -s $2 $1;  shift; shift;
 done
 cd /usr/share/openssl/man;  set - `grep ^[a-zA-Z]
 /usr/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf $1;  ln -s
 $2 $1;  shift; shift;  done
 cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
 cd /usr/share/nls;  set - `grep ^[a-zA-Z] /usr/src/etc/nls.alias`;
 while [ $# -gt 0 ] ;  do  rm -rf $1;  ln -s $2 $1;  shift; shift;
 done
 shift: can't shift that many
 *** Error code 2

 Stop in /usr/src/etc.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED

Re: make installkernel help required. (ANSWER... sort of)

2004-09-22 Thread Phil Payne
On Wed, 2004-09-22 at 11:38, Giorgos Keramidas wrote:
 On 2004-09-22 11:19, Phil Payne [EMAIL PROTECTED] wrote:
  After having another search of the archives and seeing someone suggest
  they were having make problems in X:
  (http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-September/058300.html)
 
  ... I ran the make installkernel outside of X (i.e. in a console) and it
  works fine.
 
  Try to run it in aterm or xterm and you get the can't shift that many
  error.
 
  I cannot pretend to know anything about why this is the case.
 
 This error seems to be caused by some sort of mishandling of nls.alias
 when this command runs:
 
 : cd /usr/share/nls;  set - `grep ^[a-zA-Z] /usr/src/etc/nls.alias`;
 : while [ $# -gt 0 ] ;  do  rm -rf $1;  ln -s $2 $1;  shift; shift;
 : done
 : shift: can't shift that many
 : *** Error code 2
 :
 : Stop in /usr/src/etc.
 
 For this to work correctly, the file /usr/src/etc/nls.alias should
 contain pairs of words, as shown below:
 
 : # $FreeBSD: src/etc/nls.alias,v 1.5 2003/06/10 01:22:30 ache Exp $
 :
 : POSIX   C
 : en_US.US-ASCII  C
 
 Two questions that come to my mind are:
 
 1. Have you changed this file in any way?

Nope. Well... not by directly editing.

 2. What are the locale settings of your environment when this
fails, i.e. what does this print?
 
 $ env | grep '^L[AC]' | sort

No output from this command.

Here's the nls.alias file:


gw# cat /usr/src/etc/nls.alias 
# $FreeBSD: src/etc/nls.alias,v 1.5 2003/06/10 01:22:30 ache Exp $

POSIX   C
en_US.US-ASCII  C


Phil.



 - Giorgos
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make installkernel help required. (ANSWER... sort of)

2004-09-22 Thread Phil Payne
On Wed, 2004-09-22 at 13:15, Giorgos Keramidas wrote:
 On 2004-09-22 11:43, Phil Payne [EMAIL PROTECTED] wrote:
  On Wed, 2004-09-22 at 11:38, Giorgos Keramidas wrote:
   On 2004-09-22 11:19, Phil Payne [EMAIL PROTECTED] wrote:
... I ran the make installkernel outside of X (i.e. in a console)
and it works fine.  Try to run it in aterm or xterm and you get
the can't shift that many error.  I cannot pretend to know
anything about why this is the case.
  
   This error seems to be caused by some sort of mishandling of nls.alias
   when this command runs:
  
   : cd /usr/share/nls;  set - `grep ^[a-zA-Z] /usr/src/etc/nls.alias`;
   : while [ $# -gt 0 ] ;  do  rm -rf $1;  ln -s $2 $1;  shift; shift;
   : done
 
  Here's the nls.alias file:
 
  gw# cat /usr/src/etc/nls.alias
  # $FreeBSD: src/etc/nls.alias,v 1.5 2003/06/10 01:22:30 ache Exp $
 
  POSIX   C
  en_US.US-ASCII  C
 
 Weird.  Everything seems ok but you seem to be bumping on a problem
 related to the shell in use :-/

Weirder... installed Eterm... and I can installkernel  install ports
fine. So looks like its only aterm  xterm that have given me a problem.

Phil.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make installkernel help required. (ANSWER... sort of)

2004-09-22 Thread Phil Payne
On Wed, 2004-09-22 at 15:18, Giorgos Keramidas wrote:
 On 2004-09-22 13:44, Phil Payne [EMAIL PROTECTED] wrote:
  On Wed, 2004-09-22 at 13:15, Giorgos Keramidas wrote:
   Weird.  Everything seems ok but you seem to be bumping on a problem
   related to the shell in use :-/
 
  Weirder... installed Eterm... and I can installkernel  install ports
  fine. So looks like its only aterm  xterm that have given me a problem.
 
 Hmmm. What's your login shell?  Is it really invoked as a login shell
 by your xterms/aterms (i.e. with the -ls option of xterm)?
 

I use /bin/tcsh. It's not invoked by any aterm/xterm options, its just
set in /etc/passwd. Is that what you meant?

Phil.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make installkernel help required. (ANSWER... sort of)

2004-09-22 Thread Phil Payne
On Wed, 2004-09-22 at 16:33, Kevin D. Kinsey, DaleCo, S.P. wrote:
 Phil Payne wrote:
 
 On Wed, 2004-09-22 at 15:18, Giorgos Keramidas wrote:
   
 
 On 2004-09-22 13:44, Phil Payne [EMAIL PROTECTED] wrote:
 
 
 On Wed, 2004-09-22 at 13:15, Giorgos Keramidas wrote:
   
 
 Weird.  Everything seems ok but you seem to be bumping on a problem
 related to the shell in use :-/
 
 
 Weirder... installed Eterm... and I can installkernel  install ports
 fine. So looks like its only aterm  xterm that have given me a problem.
   
 
 Hmmm. What's your login shell?  Is it really invoked as a login shell
 by your xterms/aterms (i.e. with the -ls option of xterm)?
 
 
 
 I use /bin/tcsh. It's not invoked by any aterm/xterm options, its just
 set in /etc/passwd. Is that what you meant?
 
 Phil.
   
 
 
 That's the first part.  xterm doesn't {by default} set up your shell
 as a login shell ... therefore it doesn't get certain environment
 variables, and probably there are a few other things I don't know
 about ...
 
 A simple test:  try typing logout to exit your xterm.  If it responds
 not a login shell, then, well, it's not.  Starting xterm with -ls should
 help with the problem, as Giorgos stated.
 
 Now, to further support the theory Giorgos has here, Eterm *does*
 seem to use its -l option by default, so when using Eterm the terminal
 would invoke tcsh as a login shell ... and things should work.

I believe you're correct about it being a login shell issue. Using xterm
and using su - instead of su fixes the issue.

Not sure what's different in the environment that makes a full login
shell work though.

Anyway, many thanks to all who helped sort this out.

Thanks,
Phil.


 HTH,
 
 Kevin Kinsey

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make installkernel help required.

2004-09-20 Thread Phil Payne
Hi,

Having problems installing a new kernel. Kernel builds fine, the only
difference over previous kernel is the commenting of the following
items:

#optionsIPFIREWALL
#optionsIPFIREWALL_VERBOSE
#optionsIPFIREWALL_VERBOSE_LIMIT=1000
#optionsIPDIVERT

as I have switched to using PF. (previous kernel had both PF and
IPFIREWALL enabled)

Debug is below. Anyone help on why this is borking now?

I've tried this twice. After the first error I cleared our /usr/obj to
make sure I was building into a clean directory but get the same result.

Thanks,
Phil.

--
 Kernel build for PP completed on Mon Sep 20 15:40:31 BST 2004
--
gw# make installkernel KERNCONF=PP
--
 Making hierarchy
--
cd /usr/src;  MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386 
MACHINE=i386  CPUTYPE= 
GROFF_BIN_PATH=/usr/obj/usr/src/i386/legacy/usr/bin 
GROFF_FONT_PATH=/usr/obj/usr/src/i386/legacy/usr/share/groff_font 
GROFF_TMAC_PATH=/usr/obj/usr/src/i386/legacy/usr/share/tmac
PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
 make -f Makefile.inc1 hierarchy
cd /usr/src/etc;make distrib-dirs
mtree -eU  -f /usr/src/etc/mtree/BSD.root.dist -p /
mtree -eU  -f /usr/src/etc/mtree/BSD.var.dist -p /var
mtree -eU  -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
share/nls/C changed
type expected dir found link
mtree -eU  -f /usr/src/etc/mtree/BSD.include.dist  -p /usr/include
cd /; rm -f /sys; ln -s usr/src/sys sys
cd /usr/share/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/man;  set - `grep ^[a-zA-Z] /usr/src/etc/man.alias`; 
while [ $# -gt 0 ] ;  do  rm -rf $1;  ln -s $2 $1;  shift; shift; 
done
cd /usr/share/openssl/man;  set - `grep ^[a-zA-Z]
/usr/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf $1;  ln -s
$2 $1;  shift; shift;  done
cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/nls;  set - `grep ^[a-zA-Z] /usr/src/etc/nls.alias`; 
while [ $# -gt 0 ] ;  do  rm -rf $1;  ln -s $2 $1;  shift; shift; 
done
shift: can't shift that many
*** Error code 2

Stop in /usr/src/etc.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Samba, Cups and Printing: Windows client gives Access denied

2004-01-01 Thread Phil Payne
Hi,

I've got an HP printer on USB port on Freebsd 4-Stable box. Printer is 
on /dev/ulpt0. Installed cups and printing from BSD is fine. 

Had samba installed and working great for filesharing. Now introduced an 
all printers share to share this printer. Printer is browseable from 
windows machine.

When I install this printer on a Win2K machine (and use local drivers) I 
get Access Denied, Unable to Connect. Unlike some other people's 
experience I cannot print to the printer despite this message.

I've found lots of references to others having this problem on BSD and 
LINUX on the web but no resolutions. 

Of course, BSD questions is where all the really clever people hang out 
so someone here is bound to know ;-)

I couldn't find any resolution in the mailing list archive so does 
anyone know of an answer or is this a bug in operation between Winblows 
and Samba?

Below is the global and printers sections of my smb.conf. This was 
generated by webmin but I do understand and have written smb.conf 
manually in past.

Thanks,
Phil

[global]
log file = /var/log/log.%m
max log size = 50
interfaces = 192.168.100.254/255.255.255.0
dns proxy = no 
printing = cups
encrypt passwords = yes
path = /var/spool/samba
server string = FRANKS SERVER
socket address = 192.168.100.254
allow hosts = 192.168.100. 127.
workgroup = FRANKS
socket options = TCP_NODELAY
netbios name = PPSERVER
keepalive = 300
load printers = yes
security = user
os level = 20

[printers]
printable = yes
guest only = yes
printer = PPPR
public = yes


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing gtk application fonts outside of gnome (Answer)

2003-07-21 Thread Phil Payne
Hi,

Caveat, I'm no GTK/Gnome expert so if someone wants to pick holes, feel 
free...

Did some further digging around on the web and I've concluded that the way to 
ensure your GTK apps appear as you want (font wise) outside of gnome is:

If you want anti-aliasing ensure the following environment variable is set:
 GDK_USE_XFT=1
Thanks to Matthew for that.

To change the default font for GTK1.* apps then add the following lines to the 
file ~/.gtkrc (or create it if it doesn't exist):

style default {
font = -*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-15
}

Note... using full font definition.

For GTK2 based apps then things have changed. Need to add the following line 
to the file ~/.gtkrc-2.0, outside of any style definition if you want it to 
be global. (I believe that within a style definition you use the font_name = 
 format):

gtk-font-name = Helvetica 12

Note the switch to using shorthand font names.

Hope that helps anyone else stuck as I was.

Cheers,
Phil.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing gtk application fonts outside of gnome

2003-07-20 Thread Phil Payne
On Saturday 19 July 2003 7:27 pm, Matthew Graybosch wrote:
 On Saturday 19 July 2003 10:52 am, Phil Payne wrote:
  Hi,
 
  I'm running FreeBSD 4-stable, XFree86 4.30  windowmaker 0.80.2.
  Default resolution and bitdepth is 1280x1024x24.
 
  Whenever I start GTK based apps (e.g. evolution, pan) I'm finding
  the application font size is too small to be readable. I've had a
  search through the mail archives and googled but I can't find
  anything explaining...

 Hi, Phil. Are you using the GTK2 versions of Evolution and Pan? 

Both gtk1 and gtk2 are installed.

If I do a pkg_info -Rr on the relevant packages they have a dependency to gtk2

 pkg_info -Rr evolution-1.4.0_1 | grep gtk
Dependency: gtk-2.2.2
Dependency: gtkhtml3-3.0.5
 pkg_info -Rr pan2-0.14.0 | grep gtk
Dependency: gtk-2.2.2
Dependency: gtkspell2-2.0.4

 Are
 you also reverting back to the default (ugly) GTK2 theme? 

OK... my gtk/gnome familiarity is limited. How do I tell?... and how do I 
change this?

 If so, Try
 putting the following lines in either ~/.xinitrc or ~/.xsession (as
 appropriate):

 *
 #!/bin/sh

 # sample ~/.xinitrc
 export GDK_USE_XFT=1
 gnome-settings-daemon 

I gave this a go and it didn't appear to change anything. What are these 
commands attempting?

 exec /usr/X11R6/bin/wmaker
 *

 Then restart X and see what happens. I had this problem myself, and
 had other people ask on the Libranet users' list.

Yes, there seems to be a lot of discussion about how to control GTK fonts 
outside of gnome without a coherent answer. Any further help is much 
appreciated.

Sorry for being such a newb about GTK sutff. Have been working with FreeBSD, 
KDE and related apps for sometime with no problems but thought I'd give 
windowmaker and other apps a go... expand my knowledge etc... but having 
trouble.

Cheers,
Phil.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Changing gtk application fonts outside of gnome

2003-07-19 Thread Phil Payne
Hi,

I'm running FreeBSD 4-stable, XFree86 4.30  windowmaker 0.80.2. Default 
resolution and bitdepth is 1280x1024x24.

Whenever I start GTK based apps (e.g. evolution, pan) I'm finding the 
application font size is too small to be readable. I've had a search through 
the mail archives and googled but I can't find anything explaining...

... how to change the default font for GTK apps outside of a gnome 
environment.

Does anyone know if/how this can be done easily?

I mean... I could lower the resolution but that feels a little defeatist. 

Please include me personally on the reply as I won't be receiving the list 
email for a while.

Thanks,
Phil.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]