Re: How can I automatically mount a windows-xp share from a freeBSDbox using windows usernameandpassword?

2003-12-29 Thread Marian
Hi,

On my 5.1 system the example file its in
/usr/share/examples/smbfs/dot.nsmbrc
You need to create your own /root/.snmbrc and add the authentication details
there.
My .nsmbrc file looks like this and it works without asking for password:

[NTSERVER:ADMINISTRATOR]
# use persistent password cache for user 'administrator'
password=myplaintextpassword

And then when I issue the following command as root it doesnt ask for a
password
mount_smbfs -I 192.168.1.2 //[EMAIL PROTECTED]/docs /mnt


Good luck,

Marian

- Original Message - 
From: Joachim Dagerot [EMAIL PROTECTED]
To: paul beard [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 29, 2003 9:31 PM
Subject: Re: How can I automatically mount a windows-xp share from a
freeBSDbox using windows usernameandpassword?


 ---
  |
  | On Dec 29, 2003, at 10:58 AM, Joachim Dagerot wrote:
  |
  |  I know this question has been touched earlier this year, but no
 answer
  |  came up at that point. So basically, has anyone been able to
 mount a
  |  windows share from a script in freeBSD? If yes, how did you do?
  | 
  |
  | I have done it in Mac OS X so the procedure should be similar: you
 need
  | to use .nmbrc to store your authentication details, but it should
 just
  | work.
  |
  | man nsmbrc for more specifics.


 My system keeps telling me that theres no such entry. However I found
 an example under /usr/share/examples/smbfs nad copied/renamed it to
 /root/

 I edited the file and changed all values to reflect my system. Then I
 tried
 mount_smbfs //[EMAIL PROTECTED]/sharename /mountpoint

 and still it asks for a password.

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

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


cvsup from 5.0 to 5.1

2003-09-02 Thread Marian Dobre
Hello,

I'm trying to buildworld on a box I just cvsuped from 5.0 to 5.1 and I get
the error message listed bellow.
I removed all the sources and installed fresh but I keep getting this
error.
This is what I'm running:
FreeBSD cache2.onix.ro 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #5: Wed Jul
16 19:55:45 GMT 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM
i386

I used the following tag in my cvsup file
*default release=cvs tag=RELENG_5_1

 eimdal/include  -I/usr/src/kerberos5/lib/libroken/../../include
-I/usr/src/kerberos5/lib/libroken/../../../crypto/heimdal/lib/roken
-I/usr/obj/usr/src/kerberos5/lib/libroken
-I/usr/src/kerberos5/lib/libroken/../../include -DHAVE_CONFIG_H -DINET6
make-roken.c  -o make-roken
/usr/obj/usr/src/i386/usr/bin/ld: cannot open crt1.o: No such file or
directory
*** Error code 1

Stop in /usr/src/kerberos5/lib/libroken.
*** Error code 1

Any ideas what to do next because I'm stuck here ?

Thanks,

Marian Dobre

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


3c940 driver

2003-09-10 Thread Marian Dobre
Hello,

Is there any patch for the sk driver to support the 3c940 gigabit 
ethernet card ? I see that OpenBSD is supporting it in their sk driver 
so I was wondering if this was ported to FreeBSD as well.
Is there any way to get the card to work ?
I'm running FreeBSD 5.1 release.

Thanks,

Marian

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


RTL8139 problems on E450

2003-03-09 Thread Marian Dobre
Hi,

I've installed FreeBSD 5.0-RELEASE sparc64 on a Ultra Enterprise 450 box 
and I have a hard time adding a second ethernet card.
The on board hme0 works just fine but when I tried to install a Realtek 
8139 fast ethernet addapter I get the following error message

Jan 17 21:41:15  kernel: rl0: RealTek 8139 10/100BaseTX port 
0x400-0x4ff mem 0x2000-0x20ff irq 1 at device 2.0 on pci2
Jan 17 21:41:15  kernel: rl0: Realtek 8139B detected. Warning, this may 
be unstable in autoselect mode
Jan 17 21:41:15  kernel: rl0: Ethernet address: 00:00:c0:b4:b9:db
Jan 17 21:41:15  kernel: miibus1: MII bus on rl0
Jan 17 21:41:15  kernel: rlphy0: RealTek internal media interface on 
miibus1
Jan 17 21:41:15  kernel: rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 
100baseTX-FDX, auto
Jan 17 21:41:24  kernel: rl0: watchdog timeout
Jan 17 21:41:45  kernel: rl0: watchdog timeout
Jan 17 21:43:42  last message repeated 5 times

There's nothing wrong with the network cord and I have a link on the 
ethernet switch port. I also changed the NIC with a brand new Realtek 
card and I'm still getting the watchdog timeout error. I forced the mode 
on the card to 100baseTX half and full duplex but that didn't help either.
What am I doing wrong here ? What do I have to do to be able to use PCI 
cards on the E450 box ?

Thanks,

Marian Dobre

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Sparc64 and standard PCI devices

2003-03-12 Thread Marian Dobre
Hello,

I've installed FreeBSD 5.0 Sparc64  on a E450 and I'm trying to use 
standard PCI ethernet cards.
According to 
http://www.freebsd.org/relnotes/CURRENT/hardware/sparc64/support.html#ETHERNET 
these cards are supposed to be supported but I can't get them to work.
I've tried with both RTL8139 and 3COM905 cards. The cards are detected 
by the software but they dont send or receive any packet. I even 
recompiled all the software on the box and the kernel. They still don't 
work.
This is the output of uname -a
FreeBSD freebsd.onix.ro 5.0-RELEASE-p4 FreeBSD 5.0-RELEASE-p4 #0: Sat 
Jan 18 07:39:17 CET 2003 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM  sparc64
Please let me know if these are are supposed to be working on sparc64 
platforms.

Thanks in advance,

Marian Dobre



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Page fault

2003-12-12 Thread Marian Dobre
Hi,

I'm having a problem with my freebsd 5.1 RELEASE box. After the last 
cvsup I keep getting page fault errors.
Could it be a software problem or maybe the memory is bad ?
This is the error im seeing on the console

Fataltrap 12: page fault while in kernel mode
fault virtual address = x0c
fault code = supervisor read, page not present
...
current process = 12 ( swi: net )
trap number = 12
panic: page fault
Any idea what could cause this error ?
This is the output of uname -a
FreeBSD core-E3.valcea.net 5.1-RELEASE-p11 FreeBSD 5.1-RELEASE-p11 #2: 
Mon Dec  8 18:26:22 EST 2003 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM  i386

This is the dmesg

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD 5.1-RELEASE-p11 #2: Mon Dec  8 18:26:22 EST 2003
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM
Preloaded elf kernel /boot/kernel/kernel at 0xc040e000.
Preloaded elf module /boot/kernel/acpi.ko at 0xc040e1cc.
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 3006836528 Hz
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3006.84-MHz 686-class CPU)
 Origin = GenuineIntel  Id = 0xf29  Stepping = 9
 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
 Hyperthreading: 2 logical CPUs
real memory  = 268369920 (255 MB)
avail memory = 256217088 (244 MB)
Pentium Pro MTRR support enabled
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: GBTAWRDACPI on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 11 entries at 0xc00fdb90
acpi0: power button is handled as a fixed feature programming model.
Timecounter ACPI-fast  frequency 3579545 Hz
acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0
acpi_cpu0: CPU on acpi0
acpi_cpu1: CPU on acpi0
acpi_button0: Power Button on acpi0
acpi_button1: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0x1000-0x10bf,0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82865 host to AGP bridge mem 0xe800-0xefff at 
device 0.0 on pci0
pcib1: PCIBIOS PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
pcib2: ACPI PCI-PCI bridge at device 30.0 on pci0
pci2: ACPI PCI bus on pcib2
rl0: RealTek 8139 10/100BaseTX port 0x9000-0x90ff mem 
0xfa005000-0xfa0050ff irq 11 at device 1.0 on pci2
rl0: Realtek 8139B detected. Warning, this may be unstable in autoselect 
mode
rl0: Ethernet address: 00:50:fc:8c:0c:24
miibus0: MII bus on rl0
rlphy0: RealTek internal media interface on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH5 UDMA100 controller port 
0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: serial bus, SMBus at device 31.3 (no driver attached)
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
orm0: Option ROM at iomem 0xc-0xcbfff on isa0
pmtimer0 on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
ppc0: parallel port not found.
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounters tick every 1.000 msec
DUMMYNET initialized (011031)
ipfw2 initialized, divert disabled, rule-based forwarding enabled, 
default to accept, logging unlimited
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
ad0: 117246MB Maxtor 6Y120P0 [238216/16/63] at ata0-master UDMA100
acd0: CD-RW SONY CD-RW CRX210E1 at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
/tmp: mount pending error: blocks 0 files 3
/tmp: superblock summary recomputed
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
/var: mount pending error: blocks 0 files 1

Thanks,

Marian

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


Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Marian Hettwer
Hi,

On Thu, 30 Oct 2008 17:45:12 +0200, Aragon Gouveia [EMAIL PROTECTED]
wrote:
 | By Eduardo Meyer [EMAIL PROTECTED]
 |  [ 2008-10-30 00:04 +0200 ]
 Hello,

 I need to write a cgi script which will print the output from ps(1) in
 a table (html), so the average-operator can click on a KILL link and
 the cgi will send the selected signal.

 I need to add one ps information per column in a table (html),
 however, I found ps(1) output to be too hard to parse. There is no
 separator. I believed \t was the separator but its not.
 
 Another option might be to mount /proc and use that instead.  See
 procfs(5).
 
I wouldn't do that. IIRC procfs(5) is deprecated in FreeBSD.
But I could be wrong...

regards,
Marian

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


Re: who wrote this

2007-11-26 Thread Marian Hettwer


On Mon, 26 Nov 2007 17:51:13 +0100, Dominic Fandrey [EMAIL PROTECTED] wrote:
 eBoundHost: Artur wrote:
 2) That's the thing, banning hitlers name is not at all what i'm trying
 to do.  I think we should keep his quotes in the database of quotes, if
 that's what the community thinks is appropriate.  What I'm suggesting is
 that we remove his name from the website:
 (http://www.freebsd.org/internal/fortunes.html) because it seems to
 innapropriately focus the attention away from the program (Fortune) and
 unecessarily makes the FreeBSD community seem like a bunch of
 insensitive jerks because we seemingly condone hitlers sayings.
 ...
 
 Quote from the linked website:
 If an entry offends more than a couple of FreeBSD committers and does
 not
 contain any objective poignant historical reference, the entry should be
 in
 the offensive file.
 
 I'm not a freebsd committer, but I do feel offended by Hitler quotes
 (being
 German that is understandable, I think). And it's unthinkable for me to
 put
 anything he said anywhere else but into offensive.
 Just by being his words a quote is put into an offensive (and not amusing)
 context.

I do agree with this statement above!
Besides I wouldn't like to see the name Hitler on freebsd's website. It just 
doesn't belong there. Especially when the website is saying, that the quotes 
are not offensive.
Please remove that entry, at least.

Thanks,
Marian

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


libstdc++ localization aborts with an exception

2008-04-27 Thread Marian Asokarajan

Hello,

if I try to instantiate the standard C++ class std::locale for locales
other than C, it aborts with an exception in FreeBSD 7-R.

I suppose it has something to do with, how libstdc++ is build under fBSD.
There is an option for libstdc++ called
--enable-clocale[=MODEL]  use MODEL for target locale package [default=auto]

these MODELs are located in the base system source directory
/usr/src/contrib/libstdc++/config/locale/

And probably the darwin (or generic) model is used, instead of gnu
(s.a. line 5801 in file /usr/src/contrib/libstdc++/configure).
If it is so, why doesn't the gnu model apply to FreeBSD ?

gcc -v reports:
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]

on my FreeBSD 7.0-RELEASE system.
My $LANG is set to de_DE.UTF-8 (via login.conf).
locale -a|grep de_DE reports:
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.UTF-8


Here's a C++ code you may want to try (compile with CC filename.cc).
It works well with setenv LANG C, but fails if LANG=de_DE.UTF-8 (or any 
other) !
//---
#include locale
#include iostream
#include clocale

int main()
{
 using std::cout;
 using std::endl;

 // C L10n
 const char* const lstr = std::setlocale(LC_ALL, );
 cout  C setlocale()\nresult=;
 cout  ( lstr ? lstr : 0 )  \n  endl;

 // C++ L10n
 cout  C++ std::locale  endl;
 std::locale loc();
 cout  std::locale loc=  loc.name()  endl;
}
//---


Output (set $LANG to de_DE.UTF-8 and run with ./a.out):
---
C setlocale()
result=de_DE.UTF-8

C++ std::locale
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Abort (core dumped)
---


Thanks in advance for any ideas.


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