Re: ppp is broken???

2007-05-10 Thread Nagy László Zsolt


  

The format of the statement to add
is ifconfig_=up where  is the NIC's FBSD interface name used
by PPPoE that you specified in the /etc/ppp/ppp.conf file.
ee /etc/rc.conf  # add following statements 
ifconfig_=up



I've not needed to do this,

  

ifconfig_tun0=DHCP# get your ISP assigned IP address



PPP has its own mechanism for getting an IP address and dns server
addresses. You don't normally need to specify DHCP for the interface.
  
I'm now totally confused. I tried this configuration also, but the 
connection still drops in every 3 hours. Can it be a problem with the 
ISP? I'm going to do a stress test with another computer to see if the 
ADSL line is stable or not.


Regards,

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


Re: ppp is broken???

2007-05-10 Thread Nagy László Zsolt



Are you using the  -ddial option?

if you start ppp through rc.conf  add

ppp_mode=ddial
  
Yes, I was originally using it. Bob said that my rc.conf was obsolete, 
but he did not say why.


  Laszo

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


Re: ppp is broken???

2007-05-08 Thread Nagy László Zsolt

Bob írta:

The method you are using is obsolete.
The following is all you need.
Take special note of rc.conf statements to use.
  start of DSL ppp.conf  ###
default:

 set log Phase tun #use to avoid excessive log sizes
 set timeout 0 # no idle time out, will not disconnect

dialisp:
 set device PPPoE:XXX  # replace xxx with your NIC device name
 set authname YOURLOGINNAME# Replace with your ISP account username
 set authkey YOURPASSWORD  # Replace with your ISP account password
 add default HISADDR   # Add a (sticky) default route (Mandatory)
 enable dns # Gets the ISP's DNS IP address  places them
# in resolv.conf for reference by FBSD box.

###   End of DSL ppp.conf   #
Replace the XXX in the [set device PPPoE:XXX] statement with the NIC's FBSD
interface name. Sometimes it will be necessary to use a service tag to
establish your connection depending on how your ISP and/or the phone company
has its DSL network configured. Service tags are used to distinguish between
different PPPoE servers attached to a given network. You should have been
given any required service tag information in the documentation provided by
your ISP. If you cannot locate it there, ask your ISP's tech support
personnel. This is the format of the command with the service tag added:
set device PPPoE::service_tag
The  is the FBSD interface name used by PPPoE. The interface must be UP
(IE: enabled). It is only used as a transport, and does not need to be
assigned an IP address. This can be done automatically at boot time by
updating the /etc/rc.conf file. The format of the statement to add is
ifconfig_=up where  is the NIC's FBSD interface name used by PPPoE
that you specified in the /etc/ppp/ppp.conf file.
ee /etc/rc.conf  # add following statements
ifconfig_=up
ifconfig_tun0=DHCP# get your ISP assigned IP address
  

Dear Bob,

I installed a new OS (release 6.1) just for testing ADSL so others can 
work. What you wrote works fine, except that I had to use papchap 
label instead of dialisp and I also had to include ppp_enable=YES in 
/etc/rc.conf.


Now my only question is that, why my configuration was obsolete? I 
noticed that the example file installed by default is from 1999. :-)


Thanks,

  Laszlo

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


Re: ppp is broken???

2007-05-07 Thread Nagy László Zsolt

Bob wrote:

Add these statements to the end of your ppp.conf file.



disable iface-alias# Stop adding old IP address as alias when ppp
   # redials because line was lost. These old IPs
   # showed using  ifconfig -a   on tun0.

 iface clear   # Remove all previous IP address
  

I'll try this.

Post contents of your ppp.conf  and rc.conf files for review for why you
keep losing your connection.
  

ppp.conf:

papchap:
# set log Phase Chat LCP IPCP CCP tun command
set log phase tun command
set device PPPoE:rl0
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
set dial
set login
enable lqr
add default HISADDR
# enable dns # I use my own DNS server (named)
enable tcpmssfixup
# non-default below (hack for pptpd)
set authname [EMAIL PROTECTED]
set authkey i_am_not_telling_this
nat enable yes
 nat port tcp 172.16.0.48:3389 51234

rc.conf:

allscreens=80x30
font8x14=iso02-8x14
font8x16=iso02-8x16
font8x8=iso02-8x8
keymap=hu.iso2.102keys
keyrate=fast
scrnmap=iso-8859-1_to_cp437

gateway_enable=YES

hostname=not_telling.dyndns.org
ifconfig_vr0=inet 172.16.0.1  netmask 255.255.240.0

firewall_enable=YES
firewall_type=OPEN
firewall_logging=YES

# ADSL
ppp_enable=YES
ppp_mode=ddial
ppp_nat=YES

named_enable=YES

kern_securelevel=2
kern_securelevel_enable=NO

saver=logo

sshd_enable=YES
usbd_enable=NO

moused_enable=YES
moused_port=/dev/psm0
moused_type=auto

apache2_enable=YES
apache2ssl_enable=YES

squid_enable=NO
mysql_enable=NO

postgresql_enable=YES

rpcbind_enable=YES
nfs_server_enable=YES
nfs_reserved_port_only=YES
mountd_flags=-r
inetd_enable=YES

dovecot_enable=YES
gdm_enable=YES

dhcpd_enable=YES
dhcpd_ifaces=vr0

tomcat50_enable=YES

samba_enable=YES
slapd_enable=YES
slapd_flags=' -h ldap://127.0.0.1/ ldaps://0.0.0.0/'

#postfix_enable=YES


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


Re: ppp is broken???

2007-05-07 Thread Nagy László Zsolt

Bob wrote:

The method you are using is obsolete.
The following is all you need.
Take special note of rc.conf statements to use.
  start of DSL ppp.conf  ###
default:

 set log Phase tun #use to avoid excessive log sizes
 set timeout 0 # no idle time out, will not disconnect

dialisp:
 set device PPPoE:XXX  # replace xxx with your NIC device name
 set authname YOURLOGINNAME# Replace with your ISP account username
 set authkey YOURPASSWORD  # Replace with your ISP account password
 add default HISADDR   # Add a (sticky) default route (Mandatory)
 enable dns # Gets the ISP's DNS IP address  places them
  
Thank you, Bob. You have been very helpful. Right now about 10 people 
are using this computer (with the backup connection, that one uses 
DHCP). I can only try this tomorrow, but I'll write about the results.


Thanks again

 Laszlo

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


Re: rebuilding the system

2007-05-03 Thread Nagy László Zsolt

Dhananjaya hiremath WROTE:

Hello sir,

Here we installed the FreeBSD 6.2 release and did the check out operation.Now 
we want to di rebuild the system by using
# make buildworld
but it giving error as 
 make: don't know how to make buildworld. Stop

 another thing is that my /usr/src/ dir has only gnu and etc, but in handbook 
it is written as check the UPDATING in the dir /src. But there is no such 
file.So now how to rebuild the system. We checked the FreeBSD handbook aslo we 
are not getting the correct answers from there.
  
Can you please let us know how did you checkout the sources? (e.g. what 
commands you executed) Since you have no /src directory, the checkout 
was not successful. Or maybe it downloaded the files to the wrong place.


  Laszlo

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


Re: Samba and RAID 1 using gmirror on 2 new disks

2007-04-19 Thread Nagy László Zsolt

*L Goodwin wrote:

 Both assume you only have 2 drives and want to mirror the drive 
containing FreeBSD. I only want to mirror the data drive da1, and would 
appreciate a concise set of steps for doing this right the first time.
1. First of all, you should install the base system on da0 and boot it. 
(Leave da1 and da2 untouched)
2. Create a slice on da1 (fdisk). The name of the new slice will 
probably be da1s1. (You will find this inside sysinstall) I found that 
sometimes I had to use a bit smaller slice than the available space, 
because equally looking disks are not always equal. (Not kidding!)
3. Use disklabel editor to add partitions to the slice 
(/dev/da1s1a,/dev/da1s1b,/dev/da1s1c etc.) and format them with newfs as 
needed.

4. Change loader.conf, add this line:

geom_mirror_load=YES

5. Execute these:

gmirror load
gmirror label -v -b round-robin gm0 /dev/da1


6. Carefully rename all references in /etc/fstab

/dev/da1s1X becomes /dev/mirror/gm0s1X  (where X can be a,b,c,d etc.)

7. Reboot

8. Check your mirror with gmirror list and gmirror status, and see 
if your filesystems are mounted with df.


9. Add da2 to your mirror with this command:

gmirror insert gm0 /dev/da2


Please ask others, as I did not try this and I'm not 100% sure it will 
work. But I think it should.


Best,

  Laszlo


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


Re: Cannot delete user???

2007-04-13 Thread Nagy László Zsolt



Did you possibly delete it from /etc/passwd before you did everything else?
  

Yes.

It's not safe to edit /etc/password directly.  If you issue vipw, does
the user still show up?  if so, delete him there and /etc/passwd should
be regenerated correctly.
  

I did not know this. Thank you! I deleted them from vipw and now they
are gone.
Thank you!

Laszlo


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


Re: Locking SSH Users to $HOME

2007-04-11 Thread Nagy László Zsolt

L33T Networks wrote:

Using the SSHD server, how can I lock users SSH'ing into a box into their
home directory, without having access to the /usr/home directory as a whole?
  
You might setup 700 rights for the home directories, then the users 
won't see each other's files. Is it what you want?


If you want to hide all directories, except their homes, then you are in 
trouble. There are some essential files needed to run a shell. I'm not 
sure, but you might be able to use a special shell that does chroot and 
makes / the home directory?


If you do not want them to run programs, just access their files over 
SSH/SCP, then the scponlyc port can be a good solution for you.


Best,

 Laszlo

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


Re: XMMS problem

2007-04-05 Thread Nagy László Zsolt

Ivan Zenzerovic' wrote:

Hello,

when I try to play music with xmms, i get the error: Please chech 
that: Your

soundcard is configured. You have the correct output plugin selected. No
other program is blocking the soundcard.

My soundcard is working well, and in the console i see the xmms error: **
WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device 
busy

Then i stopped noatun and quit him, tryed again, but nothing.
Help please...
Are you using Gnome or KDE? Most probably, a sound daemon like ESD is 
running, and it uses your hardware already. You configure your output 
plugin of xmms to use Esd/Arts instead of /dev/dsp. Alternatively, you 
can specify kernel parameters so it will allow sharing of your sound 
card(s). Please refer to the FreeBSD handbook about configuring multiple 
channels on a single sound card.


Best,

Laszlo

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


Re: Sound Card Problem

2007-04-04 Thread Nagy László Zsolt

[EMAIL PROTECTED] írta:

dell 4300s with XP
Reinstalled xp, no sound from integrated sound device.
  
Do you mean Windows XP? It is a mailing list for FreeBSD. Anyway, it 
took about 3 minutes to find this with google:


http://members.driverguide.com/driver/detail.php?driverid=123410

(Yes, you need to register...)


 Laszlo

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


Re: Multiple versions of PHP

2007-04-03 Thread Nagy László Zsolt

patrick wrote:

Thanks, that worked really well. For those searching the archive for
an easy answer, you just need to do:

make PREFIX=/path/to/where/you/want all install clean
Hmm, what happens if two ports would be in conflict, unless installed 
into separate directories? In other words, how these installed ports 
will be recorded in the package database? I do not see an answer for 
this in man 7 ports.


 Laszlo

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


Re: automatically starting PostgreSQL

2007-04-02 Thread Nagy László Zsolt

Charles Farinella írta:

Hi all,

FreeBSD 6.2:

I built PostgreSQL from source and copied the supplied startup script 
to /etc/rc.d/postgresql.  The script works as expected.


In /etc/rc.conf I've added the following:

postgresql_enable=YES

expecting this to automatically start PostgeSQL at boot, yet this 
doesn't happen and there is nothing in any error log that I can find 
that mentions any failure.

Try to rename it to postgresql.sh and give execute rights.

 Laszlo

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


Re: automatically starting PostgreSQL

2007-04-02 Thread Nagy László Zsolt




For reasons having to do with our particular operation, it is our 
custom to build many packages from source code no matter the operating 
system, so I don't want to install from the ports tree.
Did you know that when you install from the ports tree, it will actually 
download the sources, make important patched for freebsd, and install 
from that source? In particular, you can give CFLAGS, makefile defines 
etc. In addition, when you install it from the ports tree, it gets 
recorded in the package database so you can install other applications 
that depend on postgresql. (For example, pgadmin3). Why do you want to 
install it from the sources? If you only want to optimize for your CPU 
and compile some contrib/extension modules, then you do not need to 
install from a source tarball yourself. Using the port will be enough.
The script I used is one which is part of the PostgreSQL package and 
is specifically for FreeBSD.  As I said the script works as expected. 
'/etc/rc.d/postgresql start|stop|restart' all work.  I also have a 
duplicate script in /usr/local/etc/rc.d which also works as expected 
when run manually.  Neither of these start the server at boot time.
First of all, since postgresql is not part of the base system, you 
should put its rc script under /usr/local/etc/rc.d instead of /etc/rc.d. 
The rc script won't be execute unless the following criterion are met:


1. The script is executeable (chmod +x filename)
2. The script has a .sh suffix, OR it uses rcorder. (See: man rcorder). 
Using rcorder is the better because you can define when to start your 
service. (Obvious example: you need to start networking before starting 
postgresql...)
3. If the script supports rc variables, then probably you need to adjust 
some variables in /etc/rc.conf. However, it depends on the script 
itself. Most ports work with rc scripts. Custom programs installed from 
source may not need this.


I have an apache2 installation also built from source code, and also 
with a script from an external source, also placed in /etc/rc.d and 
referenced by the line 'apache2_enable=YES', and this *does* start 
at boot time.

I guess because it is named apache.sh instead of apache, am I right?
So I am a little confused as to what I need to do.  If I add .sh to 
/usr/local/etc/rc.d/postgresql, in my /etc/rc.conf do I change my 
reference line to 'enable_postgresql.sh=YES'?
Of course not. The rc variables can be set in rc.conf. They will be 
checked by the postgresql.sh script. E.g. it is not the base system that 
checks these variables. Putting variables in rc.conf for programs like 
postgresql is good because usually you want to disable/enable services 
in rc.conf. Configuring postgresql is another story. However, it is the 
startup script of your program that needs to have support for rc variables.


I hope this helps.

Best,

  Laszlo

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


Copy/move files between Windows and FreeBSD

2007-03-26 Thread Nagy László Zsolt


 Hi,

I need to copy,move and delete files across two machines. They are 
located far away from each other. I have other FreeBSD machines and we 
were using SSH2 for this kind of task. Under windows, I could not find 
the right software. This is an automated task, and it is not 
complicated: copy/move all files from one computer to another. I was 
using putty and plink/pscp but it is not reliable. I could not start 
them from a win32 service. I could run them from a scheduled program but 
sometimes they freeze and then I have to kill and restart the whole 
thing. I'm looking for a more reliable tool that can do SCP in batch 
mode. Do you have any suggestions?


Thanks,

  Laszlo


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


Re: Undefined symbol pthread_create?

2007-03-21 Thread Nagy László Zsolt




Did you upgrade your system recently or were compat-v.x packages 
removed? Also, how was pulseaudio installed (package, port, etc)?
The pthread lib shouldn't be missing because it is a part of the 
system which can be compiled in easily using gcc -lpthread.

messias# uname -a
FreeBSD messias 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #5: Fri Feb 16 
22:41:04 CET 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/NEPTUNUS  i386


The system was updated with cvsup + make buildworld + make buildkernel 
on Feb 16. So it should not be a problem.


The ports tree was updated on Feb 16.
I also ran portupgrade -a, it finished on Feb 18.
PulseAudio was installed from the ports tree today, it went fine.

messias# pulseaudio --version
pulseaudio 0.9.4

Yes, I'm aware of that -plthread is missing, probably 
/usr/local/lib/libpulse.so is missing that. So do you think it is a bug 
in libpulse.so? Should I contact [EMAIL PROTECTED]


Thanks,

  Laszlo

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


Re: Flash with Firefox 2

2007-03-16 Thread Nagy László Zsolt

Jay Chandler írta:
I can't be the first person to ask this, but a Google and a cursory 
search of the archives don't lend me much in the way of hints.


Anyone have a link or an explanation of how to get the Flash plugin 
working within Firefox?  I've gotten Java up already, but Flash 
continues to elude me...


You need to install the linux version. Flash plugin is not supported in 
the FreeBSD version. In Linux compatibility mode, the flash plugin makes 
the browser unstable. Too bad. :-(


There are some applications that we would like to have ported to 
FreeBSD. Firefox flash plugin is on of them. Another one is a natvive 
skype port. The authors of these softwares do not support FreeBSD and 
the source code is closed. :-(


  Laszlo

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


Re: sendmail not working?

2007-03-16 Thread Nagy László Zsolt




Postfix is designed to keep a firm separation of MTA and MDA 
functionality for security reasons and always wants to receive 
incoming mail via the MTA...it will not short-circuit to doing local 
delivery the way sendmail can.
So I really need sendmail, not postfix, because I have a different 
(tunelled remote) MTA. :-)


Thank you!

  Laszlo



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


Re: Flash with Firefox 2

2007-03-16 Thread Nagy László Zsolt




===   Running ldconfig
/compat/linux/sbin/ldconfig -r /compat/linux
ELF binary type 3 not known.
/compat/linux/sbin/ldconfig: 1: Syntax error: ( unexpected
*** Error code 2

Stop in /usr/ports/graphics/linux-png.
*** Error code 1

Stop in /usr/ports/x11-toolkits/linux-gtk2.
*** Error code 1

Stop in /usr/ports/multimedia/linux-realplayer.
*** Error code 1

Stop in /usr/ports/www/linuxpluginwrapper.


What did I forget to install/adjust? :-)


You need to enable linux compatibility in rc.conf.  Or just

kldload linux

Cheers,

  Laszlo

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


Re: sendmail not working?

2007-03-15 Thread Nagy László Zsolt



You haven't configured it correctly.
  

I think I did.

To enable postfix startup script please add postfix_enable=YES in
your rc.conf

If you not need Sendmail anymore, please add in your rc.conf:

sendmail_enable=NO
sendmail_submit_enable=NO
sendmail_outbound_enable=NO
sendmail_msp_queue_enable=NO
  
I'm sorry, I did not paste all lines related to sendmail. Here are the 
options:


messias# cat /etc/rc.conf | grep sendm
sendmail_enable=NO
sendmail_submit_enable=NO
sendmail_outbound_enable=NO
sendmail_msp_queue_enable=NO
messias# cat /etc/rc.conf | grep postf
postfix_enable=YES


And you can disable some sendmail specific daily maintenance routines
in your /etc/periodic.conf file:

daily_clean_hoststat_enable=NO
daily_status_mail_rejects_enable=NO
daily_status_include_submit_mailq=NO
daily_submit_queuerun=NO
  

Okay, this was missing but I guess this did not affect local mail delivery.

You also need to modify the /etc/mail/mailer.conf file. This is done
automatically by postfix. 
Yes. When I reinstalled postfix, it asked me if I want to enable postfix 
in mailer.conf. I answered YES. Here is my mailer.conf:


messias# cat /etc/mail/mailer.conf
#
# Execute the Postfix sendmail program, named /usr/local/sbin/sendmail
#
sendmail/usr/local/sbin/sendmail
send-mail   /usr/local/sbin/sendmail
mailq   /usr/local/sbin/sendmail
newaliases  /usr/local/sbin/sendmail

If your version is not current, you might want to update it. 

messias# pkg_info | grep postfix
postfix-2.3.5,1 A secure alternative to widely-used Sendmail

I know it is not the newest, but should work. I rebooted the machine, 
but it did not help. By the way, I do NOT want postfix to listen on 
TCP/25. I have to use an ssh tunnel. But I would like to be able to 
deliver e-mail messages locally.


Here is what I did for now:

- deinstalled postfix
- changed mailer.conf back to the original version
- disabled postfix and re-enabled sendmail in rc.conf
- started sendmail with /etc/rc.d/sendmail start

And it works! But why couldn't I do this with postfix?

Thanks,

  Laszlo

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


Re: sendmail not working?

2007-03-14 Thread Nagy László Zsolt

Derek Ragona wrote
You need to make sure sendmail is starting and running.  Check your 
rc.conf and any variables that might need to be set.

Thanks!

In my rc.conf:

sendmail_enable=NO

However, as I wrote, I was using postfix. I'm not a big guru but I 
believe that postfix has its own daemon and it has a sendmail binary 
that is compatible with the system default sendmail.


Anyway, your comment helped me a lot! I upgraded to 6.2 some weeks ago 
and probably I did not reactivate postfix in /etc/mail/mailer.conf. 
Additionally, probably I forgot to merge the old mailer.conf with the 
new one. I changed my rc.conf to this:


sendmail_enable=NO
postfix_enable=YES

Then I started postfix:

messias# /usr/local/etc/rc.d/postfix start
postfix/postfix-script: starting the Postfix mail system
messias# ps ax | grep postf
68249  ??  Ss 0:00.01 /usr/local/libexec/postfix/master

Yet I still do not get my emails:

messias# mail gandalf
Subject: Test3
.
EOT
Null message body; hope that's ok
messias# mail
Mail version 8.1 6/6/93.  Type ? for help.
/var/mail/gandalf: 1 message
   1 [EMAIL PROTECTED]  Fri Nov 10 12:27  13/664   DON'T DELETE 
THIS MESSAGE -- FOLDER INTERNAL DATA

 q
messias# sendmail gandalf
Test4.
.
messias# mail
Mail version 8.1 6/6/93.  Type ? for help.
/var/mail/gandalf: 1 message
   1 [EMAIL PROTECTED]  Fri Nov 10 12:27  13/664   DON'T DELETE 
THIS MESSAGE -- FOLDER INTERNAL DATA

 q

Pawing in the dark...

  Laszlo

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


Re: Fetching sources from Windows?

2007-03-05 Thread Nagy László Zsolt

frzburn írta:

Hi!
I have a slow Internet connection at home, and I would like to know if 
it is

possible to fetch the STABLE sources from somewhere else (ex.: at work).
What I want is to get the latest sources, like described in the 
handbook (
http://www.ca.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html), 

even if it means downloading all of it, since there no way to diff 
with my

current source...
You can also try to install a vmware player on windows, install FreeBSD 
on it, fetch the sources and make a tarball. (It is just an idea, may 
not work for you.)


 Laszlo

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


Re: Reg, User rights

2007-02-22 Thread Nagy László Zsolt



Create a user as per normal.  Then, also add that userid to the wheel
group.  (Don't make wheel the user's primary group.   Use a regular
group for that.  Just add their id in the /etc/group file to wheel.
  

I prefer to use

pw groupmod -m username

I believe that is the official way to do it.

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


Re: Building Home Server

2007-02-16 Thread Nagy László Zsolt

Drew Jenkins írta:

20Hi;
I'm building a server at home to mimic my live server. The instructions require that I gather the following information: 
* IP address

* IP address of default gateway
* Hostname
* DNS server IP address
* Subnet Mask
Now, I think I can use 192.168.0.1 as my IP address, since that calls up my satellite interface. I've tried running ipconfig /all from the run command in Windoze, but it flashes the results so quickly then disappears that I don't have a chance to read the results! How do I get this information? 

Start menu/Run
cmd
There you will get a win32 console where you can type in

ipconfig /all

However, I do not understand what you are trying to do.

Is there a Web site that can read my config? Or, what's a good guess at the defaults that would work for my satellite interface (which would be better, in case my data isn't static)? 

Probably your interface uses DHCP. You should type in

/sbin/sysinstall

and then configure your network interface. Another way to do it is to 
edit /etc/rc.conf, but you look like a newbie to me. After configuring 
with sysinstall, you can look at /etc/rc.conf and see what is in there.


Best,

  Laszlo

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


Re: Building Home Server

2007-02-16 Thread Nagy László Zsolt

Drew Jenkins wrote:

Start menu/Run
cmd


Did you run cmd.exe? Really?

Probably your interface uses DHCP. 



Yes, DHCP is enabled.

  

You should type in

/sbin/sysinstall

and then configure your network interface. 



Yes, that is what I will do, but first I need the above questions answered, 
because that is the data I must enter!
  
Definitely, not. You should configure the network with DHCP. It will 
find the correct settings automatically.


1. Login as root
2. Start sysinstall
3. Go to Configure/Networking/Interfaces
4. Select your NIC card
5. When it asks to configure with IPv6, say NO
6. When it asks to configure with DHCP, say YES

That's all.

  Laszlo


  Laszlo

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


Re: Building Home Server

2007-02-16 Thread Nagy László Zsolt


  
You could try opening a command prompt (cmd/command in run) and running 
it, that way it won't close after it exits.



Yeah, I thought of that, unfortunately I get the response that id doesn't recognize the 
command! Yet run does recognize the command! Go figure!
  
It must be Win98 Win95 or Windows ME. The command interpreter is called 
command.exe on DOS/Win9x/ME systems. On Windows NT, 2000, 2003 the 
interpreter is called cmd.exe. However, command.exe also present on 
the newer systems, for compatibility reasons. command.exe is a 16 bit 
program. cmd.exe is a 32bit program. I think I'm a bit offtopic here - 
this list is about FreeBSD. :-)


 Laszlo

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


Re: Invisible process killing the CPU

2007-02-16 Thread Nagy László Zsolt




Whats the output of systat -vmstat 1 ?

  1 usersLoad  1.20  1.18  1.15  Feb 16 17:54

Mem:KBREALVIRTUAL VN PAGER  SWAP PAGER
   Tot   Share  TotShareFree in  out in  out
Act  133548   13636   43550416200  272372 count
All  234084   2139224241081227768 pages
Interrupts
Proc:r  p  d  s  wCsw  Trp  Sys  Int  Sof  Flt897 cow1229 total
1   63  1852 656022082  8353 6268  63496 wire1: 
atkb
   62456 act 4: 
sio0
21.2%Sys   0.0%Intr 78.8%User  0.0%Nice  0.0%Idl   106940 inact   109 
19: rl0
||||||||||   2224 cache   
20: ata
===   270148 free112 
23: vr0
 daefr  1008 
cpu0: time

Namei Name-cacheDir-cache4960 prcfr
   Calls hits% hits% react
   6357356922   90   pdwake
4324 zfodpdpgs
Disks   ad4   ad6  20 ozfod   intrn
KB/t   0.00  0.00 %slo-z61456 buf
tps   0 05530 tfree44 dirtybuf
MB/s   0.00  0.00   35656 desiredvnodes
% busy0 05056 numvnodes
1944 freevnodes



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


Re: Invisible process killing the CPU

2007-02-16 Thread Nagy László Zsolt

Laszlo Nagy wrote:
75% user, 24.2% system, 0.0% idle. Despite those stats, I do not see 
what is eating up 100% cpu time. I already restarted the computer but 
it is the same. This problem started some hours ago. The CPU is hot, I 
can feel it on the air stream pouring out the computer case. There are 
more people that should work with this computer, but they can't. It is 
terribly slow. Please help me.
Probably it is not a problem with the kernel (it was working before) but 
I tried to upgrade to the latest 6.2 branch. make buildworld is so 
incredibly slow that I don't think it will finish within a week. :-( 
Compilation starts, but the C compiler only gets about 0.3% CPU time. 
The remaining 99.7% is lost somewhere. :-(


 Laszlo

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


Re: Invisible process killing the CPU

2007-02-16 Thread Nagy László Zsolt


Possible hardware problem perhaps? Are you able to run a burn-in 
test on the machine?
What is that? How can I perform that? (Tomorrow the machine will be 
free, I can play with it.)
I can imagine that the processor is overheated and so the frequency was 
reduced by the BIOS. But that does not explain why I cannot see the 
process using the CPU. An invisible process eating up CPU time cannot be 
a hardware problem, can it?


Stabbing in the dark really.

Mee too. :-(

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


Re: Invisible process killing the CPU

2007-02-16 Thread Nagy László Zsolt




One possibility is that your CPU fan has failed, in which case newer 
machines would downclock itself extremely in order to avoid burning 
out-- that might be an explanation for why your performance has 
decreased so much.  
The cpu fan is not failed. This was the first thing I checked before I 
wrote to this list. The fan is spinning.


In my understanding, if the freq goes down then each program will use 
more of the total CPU time because of  the less computing capacity. So, 
having two processes, instead of 10% + 10% (total 20%) it would be 50% + 
50% (total 100%). But this is not the case. On this computer, everything 
is at 0% but the total CPU is at 100%.


Otherwise, try using ps auxw to show all of the processes which are 
running and see whether there are surprising things, 
I do not know enough about FreeBSD to tell what is surprising. :-( Would 
it help to send the output here?
or perhaps try top -o time to sort by accumulated CPU time and look 
at what's consuming the most...

Most CPU time is for the ppp daemon:

 PID USERNAME THR PRI NICE   SIZERES STATETIME   WCPU 
COMMAND

 244 root   1  960  3404K  2084K select   1:40  0.00% ppp

but I don't think that ppp is causing the problem, since it is at WCPU 0%.

Best,

  Laszlo

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


Re: Invisible process killing the CPU

2007-02-16 Thread Nagy László Zsolt



Ouch, that's pages freed by exiting processes, not process forks (gotta
get some sleep). Anyway, if this is persistent, then some processes are
exiting all the time, and they have to get created somehow, so the
scenario is the same...
  

Yess!
That was it! Thank you so much! :-)

There was a program that forked another in a loop. The forked program 
was working for days, but now it is throwing an error. You were right. 
The parent process was starting the child process at an incredibly rate. 
And you were also right in that, since the child processes were running 
only for some msec, they where not recognized by top and so they were 
not shown.


You are a genious! :-) Thank you!

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


Re: Invisible process killing the CPU

2007-02-16 Thread Nagy László Zsolt



[ systat -vmstat 1 ]


Namei Name-cacheDir-cache   4960 prcfr
  

  

Looks like processes on this system are forking at a rate of 5000/sec.



Ouch, that's pages freed by exiting processes, not process forks (gotta
get some sleep). Anyway, if this is persistent, then some processes are
exiting all the time, and they have to get created somehow, so the
scenario is the same...
  
Now the CPU is almost idle. :-) However, the prcfr value is still 
between 400 and 500. Is that normal?


 Laszlo

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


Re: 5.3 - 6.2 should work right?

2007-01-22 Thread Nagy László Zsolt

B. Cook wrote:

I'm inheriting an older network and I'm trying to update it..

cvsup to 6_2..

Doing a build kernel  install kernel

then reboot and build world  install world  mergemaster -p if needed

then rebuild the kernel and reinstall it..

right?

I couldn't see anything major in UPDATING.. am I missing something?
First, you should update your system to RELENG_5_5. Then probably you 
can try to update to RELENG_6_2. It is always good to update to the 
latest minor before you update to a different major version.


By the way, updating a system from 5 to 6 is a headache. (Updating from 
4 to 5 is much easier.) Many will suggest (including me) to install your 
new 6.2 system from binaries, and then transfer your programs and users, 
if possible.


Best,

  Laszlo

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


Re: X server remote login and sound

2006-12-22 Thread Nagy László Zsolt

Christian Walther wrote:

I'm not sure if sending uncompressed audio data over the network is
such a good idea. 

Are you sure that esd does not compress the data?

By the way, esd can be used with any audio application. It can emulate a 
real soundcard. Example follows.



On the server (where your real sound card is located):

esd -promiscuous -tcp -pubic -port 1500  



On the client:

esddsp -v -s 192.168.0.13:1500 mpg123 something.mp3


The mpg123 program does not need to have ESD support. The esddsp program 
creates a fake pcm device before starting mpg123.


Best,

  Laszlo



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


Re: Fonts on X.Org...

2006-12-12 Thread Nagy László Zsolt

Ne'Bahn írta:
Hi list, how can I add some fonts to the system, for instance: Arial, 
Courier New, and so others. I know there are some fonts that cost to 
acquire them, but isn't an implementation of these fonts for

the open source arena ???
Please read the documentation for xorg.conf. I'm using several TTF fonts 
from my Windows system. All you need is to create a new directory, place 
your fonts there and add the new font path in xorg.conf. Be aware, some 
font files are not in ttf. AFAIK the Xorg server cannot use .fon files.


PS: I've some docs made in a Windows environment that use fonts I 
don't have
on FreeBSD, the replacement is very bad, so OpenOffice offers system 
fonts

rather than their fonts (if it has a set), a problem for
portability/compatibility but indeed better for availability.
For some reason, I also cannot read some documents because of font 
problems despite that I have those fonts installed. I used to do select 
all and the change the font to something else; that will make all text 
readable.


Best,

  Laszlo

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


Re: easy question

2006-12-11 Thread Nagy László Zsolt

Steve Franks wrote:
I hope.  Looks like xorg remaps the arrow keys for it's own uses - how 
do I

get command history in an xterm instead of ctrl-key like gibberish.  I'd
like to edit, like you do in a vtty with the up-arrow, not just 
!!enter.

I'm sure the answer exists, I just can't format a seach to find it on my
own...;)
Frank, what kind of keyboard are you using? The xorg server does not 
remap the arrow keys by default. However, if you have misconfigured your 
keyboard, then you might not use your arrow keys. Try to look at the 
documentation of xmodmap(1).


If you are not sure how to change this in xorg.conf, you can first try 
to download an xmodmap file for your keyboard layout, and execute this 
command:


xmodmap filename

Then you can try to use your arrow keys.

Another problem might be that you are using the wrong TERM environment 
variable inside your xterm. Well, this is very unlikely. You can also 
try this:



setenv TERM xterm-color   # c shell

set TERM=xterm-color # bash shell
export TERM

I hope this will help.


Best,

  Laszlo

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


Re: /usr/ports/x11-toolkits/eel linker error

2006-12-05 Thread Nagy László Zsolt



20061014:
 AFFECTS: All GTK+2 and GNOME users
 AUTHOR: [EMAIL PROTECTED]

 GNOME has been updated to 2.16. All GTK+2 and GNOME components have
 been moved from X11BASE (/usr/X11R6) to LOCALBASE (/usr/local). To
 upgrade your GNOME desktop or/and other applications you will need
 to use either sysutils/portupgrade or sysutils/portmaster. To use
 portmaster, make sure you have least 1.9 version to have the
 upgrade succeed.

Portupgrade users:
 pkgdb -Ff
 portupgrade -rf pkg-config\*

I did this, but I still get the same error.
I thought this was a problem with my ports tree, but it is not the case. 
I did not want to reinstall everything again. Fortunately, I had another 
FreeBSD 6.1-RELEASE machine. I did exactly the same things there ( 
portsnap fetch ; portsnap update; pkdb -Ff ; portupgrade -rf 
pkg-config\* ) and I got the same problem again. I cannot install ee1 
because of the same linker error. I also tried this:


messias# portupgrade -a
Stale dependency: gail-1.9.3 -- gnome2-fifth-toe-2.12.3 -- manually run 
'pkgdb -F' to fix, or specify -O to force.

messias# pkgdb -F
---  Checking the package registry database
messias#

Although the dependency error was different on the other machine, it is 
the same kind. I think I did everything right, and now I have two 
machines where I cannot move forward. Can this be a bug in portupgrade, 
or FreeBSD? How it is possible that portupgrade thinks there is a stale 
dependency, but pkgdb cannot find it?


Regards,

  Laszlo

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


Re: /usr/ports/x11-toolkits/eel linker error

2006-12-05 Thread Nagy László Zsolt



messias# portupgrade -a
Stale dependency: gail-1.9.3 -- gnome2-fifth-toe-2.12.3 -- manually 
run 'pkgdb -F' to fix, or specify -O to force.

messias# pkgdb -F
---  Checking the package registry database
messias#


I just realized that this is a gnome 2.12 dependency. It should not be 
there at all (the new ports tree is using gnome 2.16).

But I cannot remove this dependency. :-(

messias# whereis gnome2-fifth-toe
gnome2-fifth-toe: /usr/ports/x11/gnome2-fifth-toe
messias# cd /usr/ports/x11/gnome2-fifth-toe
messias# make deinstall
===  Deinstalling for x11/gnome2-fifth-toe
===   gnome2-fifth-toe not installed, skipping

I also tried to remove gail, but then I got this:

messias# portupgrade -a
Stale dependency: gmake-3.81_1 -- gnome2-fifth-toe-2.12.3 -- manually 
run 'pkgdb -F' to fix, or specify -O to force.

messias# pkgdb -F
---  Checking the package registry database
messias#

I also tried pkgdb -Ff and portsdb -Uu, but the problem remains the 
same.

Do any of you have an idea what is wrong?

Thanks,

  Laszlo

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


Re: What is the difference between No address associated with name and Unknown host

2006-12-04 Thread Nagy László Zsolt

[EMAIL PROTECTED] wrote:
What is the difference between No address associated with name 
and Unknown host:


$ ping accounts.eirtrade.ie
ping: cannot resolve accounts.eirtrade.ie: No address associated with name

and

$ ping accounts.eirtrade.i
ping: cannot resolve accounts.eirtrade.i: Unknown host
  
If the host is unknown, then it means that the primary domain name 
server is not registered for the given domain. Because the domain name 
server cannot be found, it is not possible to tell the IP address of the 
given hostname.


You get the second message when there is a primary domain name server 
for the given domain, but it does not return any IP address for your 
(named) address. It means that there is no A record for the given hostname.


For me, I get these results:

#ping acconts.eirtrade.ie
ping: cannot resolve acconts.eirtrade.ie: Unknown host
#ping eirtrade.ie
ping: cannot resolve eirtrade.ie: No address associated with name

If you have the dig command available on your machine, you can read 
its documentation, and play with it. It will make things clear. Look 
below: in the first case, there is no A record, but there is a SOA 
record. However, the hostname of the SOA is different from the queried 
hostname. In the second case, there is no A record, there is a SOA and 
the hostname of the SOA and the queried hostname are the same. So in the 
first case, we cannot know if the host is registered at all. In the 
second case, the hostname is registered for sure, but it has no A 
record. (However, subdomains like www.eirtrade.ie can have A records...)


#dig accounts.eirtrade.ie

;  DiG 9.3.2  accounts.eirtrade.ie
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 50610
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;accounts.eirtrade.ie.  IN  A

;; AUTHORITY SECTION:
eirtrade.ie.10515   IN  SOA auth01.ns.eircom.net. 
hostmaster.eircom.net. 2001031301 28800 7200 604800 86400


;; Query time: 1 msec
;; SERVER: 195.228.240.249#53(195.228.240.249)
;; WHEN: Mon Dec  4 15:02:25 2006
;; MSG SIZE  rcvd: 105

#dig eirtrade.ie

;  DiG 9.3.2  eirtrade.ie
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 932
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;eirtrade.ie.   IN  A

;; AUTHORITY SECTION:
eirtrade.ie.10800   IN  SOA auth01.ns.eircom.net. 
hostmaster.eircom.net. 2001031301 28800 7200 604800 86400


;; Query time: 37 msec
;; SERVER: 195.228.240.249#53(195.228.240.249)
;; WHEN: Mon Dec  4 15:03:17 2006
;; MSG SIZE  rcvd: 96

Best,

  Laszlo

p.s.: I think I'm right, but please do not trust me blindly. :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is the difference between No address associated with name and Unknown host

2006-12-04 Thread Nagy László Zsolt




If you have the dig command available on your machine, you can read 
its documentation, and play with it. It will make things clear. Look 
below: in the first case, there is no A record, but there is a SOA 
record. However, the hostname of the SOA is different from the queried 
hostname. In the second case, there is no A record, there is a SOA and 
the hostname of the SOA and the queried hostname are the same. So in 
the first case, we cannot know if the host is registered at all. In 
the second case, the hostname is registered for sure, but it has no A 
record. (However, subdomains like www.eirtrade.ie can have A records...)


#dig accounts.eirtrade.ie
Sorry, try this with accounts.eirtrade.i instead of 
accounts.eirtrade.ie. :-)

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


Re: simple question...how to show packages which depend upon

2006-11-30 Thread Nagy László Zsolt

Graham Bentley írta:

And ... how to remove a package and all the packages
it sucked in ?

All I get from pkg_delete that it isnt even installed when 
I know it is because that was the previous command I

just ran !!!
  

Can you please send us the commands that you have executed?
If you used pkg_add -r package name then the name of the package can 
be a general package name, without version number. This is useful since 
usually you are not sure what is the latest version, you just want to 
install it. Here is an example:


messias# pkg_add -r mc
Fetching 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/mc.tbz... 
Done.

pkg_add: package 'mc-4.6.1_3' or its older version already installed

However, if you add a package that is saved locally, you need to type in 
its full name (or path):


pkg_add mc-4.6.1_3.tbz

or something similar. Once you have the package/port installed, you can 
lookup its full name with pkg_which:


messias# pkg_which mc
mc-4.6.1_4

When you need to delete a package, you need to specify the full name 
(including the version number). The reason for this is easy: it is 
possible to have different versions of the same package installed at the 
same time. (Well, this is not true for some packages, but it is true for 
others...)


So instead of doing:

pkg_delete mc

you should use:

pkg_delete mc-4.6.1_4

I hope this answers your question. If it does, then probably reading 
these man pages will help you a LOT:


portupgrade(1)
pkg_add(1)
pkg_deinstall(1)
pkg_delete(1)
pkg_glob(1)
pkg_info(1)
pkg_sort(1)
pkg_update(1)
pkgdb(1)
ports_glob(1)
portsclean(1)
portsdb(1)
portversion(1)
pkgtools.conf(5)
ports(7)


Best,

  Laszlo

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


Re: Gnome install - error (using portupgrade)

2006-11-28 Thread Nagy László Zsolt

What is this null stale origin?

cassiopeia# pkgdb -F
---  Checking the package registry database
Stale origin: '(null)': perhaps moved or obsoleted.
Skip this for now? [yes]
To skip it without asking in future, please list it in HOLD_PKGS.
cassiopeia# portupgrade -a
Stale dependency: docbook-xml-4.3 -- gnome-doc-utils-0.7.2_1 -- 
manually run 'pkgdb -F' to fix, or specify -O to force.

cassiopeia# pkg_delete gnome-doc-utils-0.7.2_1
pkg_delete: no such package 'gnome-doc-utils-0.7.2_1' installed
cassiopeia#

Background:  I upgraded portupgrade, then I deleted the package database 
(database format was changed to db4).


Now I do not know how to fix this. Can't I just remove this stale origin 
from the package database? Is there a way to rebuild the whole package 
database instead of fixing it? It is not clear why pkgdb -F does not 
recognize the problem while portupgrade does. Any ideas?


Thanks,

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


Re: DHCP question

2006-08-23 Thread Nagy László Zsolt

Vizion írta:

My home network is connected by my Linksys Broadband Router model RT31P2 to an 
upstream Cable company supplied Motorola SB5100 cable modem.

A single IP address is allocated via DHCP to the Linksys to which my private 
network is attached. The IP address is rarely changed.

I need to monitor and record that IP address and initiate a series of processes 
if/when the IP address changes.

Suggestions please... and thanks in advance for any replies
  
I do not have a ready-to-use solution, but you might try to download 
this site with lynx:



www.whatismyip.com

and extract your 'public' IP address from that page.

Best,

  Laszlo

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


Re: Almost ready with diskless setup

2006-08-10 Thread Nagy László Zsolt




2. syslogd tells that it cannot open the pid file. (Operation not 
supported)  However, it creates /var/log/syslogd.pid. But that file is 
empty. What can be the problem?
After making another diskless distribution, I found out that the 
'Operation not supported' error comes out because of calling flock() on 
nfs. For example:


---
sendmail_submit: /etc/mail/aliases.db not present, generating
cannot flock(/etc/mail/aliases, fd=3, type=6, omode=4002, euid=0): 
Operation not supported

--

The same message (Operation not supported) comes when creating the pid 
file /var/log/syslogd.pid. The /var/log filesystem is writeable. Is it  
possible that flock() is not implementedon nfs? :-(


 Laszlo

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


Re: make distribution fails

2006-08-09 Thread Nagy László Zsolt



but the PR database is busy, I cannot read the details.

What am I doing wrong?



What version are you trying to install? On 5.X you gotta be in
/usr/src/etc, but on 6.X this changed to /usr/src.

Cheers, Erik
  


I'm using 6.1 RELEASE. I upgraded yesterday with cvsup. It does not work 
from /usr/src either. :-(  See below


  Laszlo


messias# cd /usr/src
messias# make distribution DESTDIR=/usr/local/diskless KERNCONF=DISKLESS
cd /usr/src/etc; MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386  
MACHINE=i386  CPUTYPE=  
GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin  
GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font  
GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac 
PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin 
make distribution
cd /usr/src/etc;  install -o root -g wheel -m 644  amd.map apmd.conf 
auth.conf  crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf  
dhclient.conf disktab fbtab ftpusers gettytab group  hosts hosts.allow 
hosts.equiv hosts.lpd  inetd.conf login.access login.conf  mac.conf motd 
netconfig network.subr networks newsyslog.conf  portsnap.conf pf.conf 
pf.os phones profile protocols  rc rc.bsdextended rc.firewall 
rc.firewall6 rc.initdiskless  rc.sendmail rc.shutdown  rc.subr remote 
rpc services shells  snmpd.config sysctl.conf syslog.conf usbd.conf  
etc.i386/ttys  /usr/src/etc/../gnu/usr.bin/man/manpath/manpath.config  
/usr/src/etc/../usr.bin/mail/misc/mail.rc  
/usr/src/etc/../usr.bin/locate/locate/locate.rc printcap 
/usr/local/diskless/etc;  cap_mkdb -l 
/usr/local/diskless/etc/login.conf;  install -o root -g wheel -m 755  
netstart pccard_ether rc.suspend rc.resume /usr/local/diskless/etc;  
install -o root -g wheel -m 600  master.passwd nsmb.conf opieaccess 
/usr/local/diskless/etc;  pwd_mkdb -L -i -p -d /usr/local/diskless/etc  
/usr/local/diskless/etc/master.passwd

install: wrong number or types of arguments
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
  [-o owner] file1 file2
  install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
  [-o owner] file1 ... fileN directory
  install -d [-v] [-g group] [-m mode] [-o owner] directory ...
*** Error code 64

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

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

Stop in /usr/src.
messias#

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


Re: make distribution fails

2006-08-09 Thread Nagy László Zsolt



I do:

# cd /usr/src
# make buildworld
# make KERNCONF=DISKLESS buildkernel
# mkdir /var/diskless/FreeBSD
# make DESTDIR=/var/diskless/FreeBSD installworld
# make DESTDIR=/var/diskless/FreeBSD distribution
# make DESTDIR=/var/diskless/FreeBSD KERNCONF=DISKLESS installkernel

You have to build/install world before distribution.
  
Thanks, this was the problem. I created this for testing. Now I cannot 
remove it.


messias# cd /var
messias# chown -R root:wheel diskless
chown: diskless/usr/sbin/sliplogin: Operation not permitted

I cannot change owner or change permission for some files.
Is it possible to delete this directory somehow?

  Laszlo

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


Re: make distribution fails

2006-08-09 Thread Nagy László Zsolt



I cannot change owner or change permission for some files.
Is it possible to delete this directory somehow?



# chflags -R noschg /path/to/distribution

then remove
  

You are a true guru. :-) Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cheap terminals for FreeBSD

2006-08-08 Thread Nagy László Zsolt

Sorry for multiple postings.
The first e-mail did not come through for hours becasue I wrote it from 
the wrong e-mail address.


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


Re: Cheap terminals for FreeBSD

2006-08-08 Thread Nagy László Zsolt


 Hello Sergio,

You are the guy that I was waiting for. :-) Now I know for sure that it 
will work.
I only have one question. How do you setup the sound card? The programs 
are running on the server, right? Then how can use use the sound card?
Is it that 'noisy' programs are running from the diskless machines? Or 
do you use TCP/IP based sound servers?

Thanks,

  Laszlo

Em Ter, 2006-08-08 às 00:18 +0200, Nagy László Zsolt escreveu:
Hello

Here I have several units running FreeBSD 6.1 with diskless
using a big server and several clients (20-30) thin clients...

it is very fast..  (the openoffice starts in 5 seconds...)...

I recomend:

1) server AMD64 socket 939 with 2Gb of memory, network adapter Gigabit 
ethernet.
200Gb hd,  gnome 2.14 or 2.15 installed packages: gnome2, 
gnome2-fifht-toe, gnome2-power-tools,
linux-flashplugin7, java jdk1.4, mplayer-plugin, xine.azureus, 
openoffice.org-2.0.2


2) thin clients:  any machine with 64Mb of memory 100mbits ethernet, 
sound, usb.
video of 1024x768 16 bits... 

3) switch with a gigabit port  any (planet, encore...)   I do not 
see any difference from a 3com...


4) FreeBSD 6.1 on the server with a kernel prepared to boot on PXE.  
(see the manual...)


it is cheap (here the server is about 600 dollars for 40 clients - 
about 15$ for client...

I bought the peaces and mount it... asus MB... sata
there is no mouse/keyboard/monitor on the server... and is incredible 
fast...
the main trick is to index the icons for the gnome-desktop on server 
startup... it works
great using epiphany, gimp, evolution, ekiga(runnin on the client...), 
gaim, openoffice, azureus...
about 640 packages installed..  the server runs about 1200 tasks, with 
idle of 80-90 %.


Now I am considering using thin clients from http://en.xynetsoft.com

for you to have an idea check a desktop screenshot  at: 
http://www.k1.com.br/screens/tela1.jpg
this is the result of a screenshot in the thin-client...   The 
language used is  portuguese, but you

can have an idea of...

Sergio.



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


make distribution fails

2006-08-08 Thread Nagy László Zsolt

I was following the handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-diskless.html 



I got this:

messias# pwd
/usr/src/etc
messias# make distribution DESTDIR=/usr/local/diskless
cd /usr/src/etc;  install -o root -g wheel -m 644  amd.map apmd.conf 
auth.conf  crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf  
dhclient.conf disktab fbtab ftpusers gettytab group  hosts hosts.allow 
hosts.equiv hosts.lpd  inetd.conf login.access login.conf  mac.conf motd 
netconfig network.subr networks newsyslog.conf  portsnap.conf pf.conf 
pf.os phones profile protocols  rc rc.bsdextended rc.firewall 
rc.firewall6 rc.initdiskless  rc.sendmail rc.shutdown  rc.subr remote 
rpc services shells  snmpd.config sysctl.conf syslog.conf usbd.conf  
etc.i386/ttys  /usr/src/etc/../gnu/usr.bin/man/manpath/manpath.config  
/usr/src/etc/../usr.bin/mail/misc/mail.rc  
/usr/src/etc/../usr.bin/locate/locate/locate.rc printcap 
/usr/local/diskless/etc;  cap_mkdb -l 
/usr/local/diskless/etc/login.conf;  install -o root -g wheel -m 755  
netstart pccard_ether rc.suspend rc.resume /usr/local/diskless/etc;  
install -o root -g wheel -m 600  master.passwd nsmb.conf opieaccess 
/usr/local/diskless/etc;  pwd_mkdb -L -i -p -d /usr/local/diskless/etc  
/usr/local/diskless/etc/master.passwd

install: wrong number or types of arguments
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
 [-o owner] file1 file2
 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
 [-o owner] file1 ... fileN directory
 install -d [-v] [-g group] [-m mode] [-o owner] directory ...
*** Error code 64

Stop in /usr/src/etc.
messias#

I found the same problem here:

http://lists.freebsd.org/pipermail/freebsd-bugs/2006-April/018001.html

but the PR database is busy, I cannot read the details.

What am I doing wrong?

Thanks,

 Laszlo

 
___

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


Cheap terminals for FreeBSD

2006-08-07 Thread Nagy László Zsolt

Hello,

I need to setup an environment where some users (10 to 20 employees) 
will use terminals to run programs. They need to run a few popular 
programs: thunderbird, firefox, adobe acrobat, openoffice and gaim. This 
site will be a customer service. We decided to reduce the costs by using 
Open Source software and cheap terminal computers. This is a good 
solution because most of the users will read messages and images on the 
screen and they can share the same processor and memory. I know that I 
can setup a computer and use its X server as a terminal for another 
computer. This solution still requires new (or used) computers. I would 
like to reduce the costs to the minimum. Here are some key questions 
that I could not answer:


- Is there a more cost-effective solution? (Something that I did not 
think of)
- How much RAM will I need? Will FireFox Thunderbird and OpenOffice load 
shared objects and reduce the overall memory usage? Or should I reserve 
256MB of memory for each client?
- Do I need to use gigabit ethernet? Or is it enough to use a normal 100 
Mbps wired network? I heard that there can be bandwidth problems when 
using many terminals, but I do not have experience.

- Are there any pitfalls that I need to be aware of?

It would be perfect to provide links to some articles or manuals - I do 
not need anyone to write detailed instuctions and do my job. I'm asking 
for help because the handbook was not very useful in this case. I only 
found this:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/term.html#TERM-X

It does not help too much, and there is no know-how. I need to know what 
hardware I need to buy.


Thank you

 Laszlo

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


Re: Cannot upgrade TCL port

2006-07-20 Thread Nagy László Zsolt

Andrew Robinson írta:

I found that the easiest way to fix this problem is to edit the
Makefile.  Comment out the following two lines and it should run.

From:


.if ${BLACKHOLE} != ''  ${BLACKHOLE} != 0
# 
# net.inet.tcp.blackhole is non-zero. Some http-tests
# will appear to hang and then fail. Do not be alarmed.
# The socket.test would hang, so it is disabled:
${MV} ${WRKSRC:H}/tests/socket.test ${WRKSRC:H}/tests/socket.test.dis;
# 
.endif


To:

#.if ${BLACKHOLE} != ''  ${BLACKHOLE} != 0
# 
# net.inet.tcp.blackhole is non-zero. Some http-tests
# will appear to hang and then fail. Do not be alarmed.
# The socket.test would hang, so it is disabled:
${MV} ${WRKSRC:H}/tests/socket.test ${WRKSRC:H}/tests/socket.test.dis;
# 
#.endif


Good luck!

Andrew
  
This did not work, but I deleted *.test files from the source tree and 
then I could install the port. Thank you!

Should this be mentioned to the port maintainer?

  Laszlo

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


Re: LDAP Thunderbird and security (OFF)

2006-07-17 Thread Nagy László Zsolt

Nagy László írta:


 Hello,

I would like to create an LDAP server, for storing address book 
information for Thunderbird. E-mail clients will be connecting 
remotely with IMAPS (over the internet). Is there a secure way to do 
this? I know that samba can create an LDAP server but it is not 
secure, is it? I also know that I could create a VPN connection, but 
for my users, this is too difficult to setup. :-) Do you know a 
solution, definitely for FreeBSD, that is relatively easy to setup on 
the client side, and secure?
I could setup openldap, and my thunderbird can connect to it. But I 
cannot add persons to that address book. I also asked this on the 
openldap mailing list, but I had no answer since two days. I read 
somewhere that Thunderbird requires a special schema to be present on 
the LDAP server. Anybody out there who could use openldap with thinderbird?


Thanks,

  Laszlo


p.s.: Sorry to be offtopic, nobody helped on the openldap list.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LDAP Thunderbird and security (OFF)

2006-07-17 Thread Nagy László Zsolt



First, OpenLDAP isn't easy to set up; but it's worth the trouble.
You should probably move this to the openldap list, or the thunderbird
list, since it really has nothing to do with FreeBSD.
Yes, this is (OFF), see the subject. Unfortunately, the openldap mailing 
list is not active. I could hardly subscribe, and then nobody answered.


I have Thurderbird reading my directory, but I haven't worked on
getting Thunderbird to write to an LDAP directory. You need to set up
your LDAP with TLS and the proper ACLs; and depending on your
situation you may want a seperate ou for the address book. Maybe even
a seperate ou for each user (ouch). No special schema required, it
should read the standard mail, phone, etc attributes. Check the
LDAP RFCs for a complete list.



Well, after a day messing with these, I tried to find other solutions. 
Here is what I found:


http://www.gargan.org/extensions/synckolab.html

It is not perfect, because you need to press a button to synchronize. 
But it is easy to install, and it uses the already existing IMAP server.


Thank you

  Laszlo

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


Re: Shared IMAP folder (off)

2006-07-11 Thread Nagy László Zsolt




There's some directions at 
http://www.flatmtn.com/computer/Linux-Imap-UW.html (found by googling 
uw imap shared folders) but I'm not sure I follow them. It looks like 
it's just setting up another IMAP account that happens to be shared


I use cyrus-imap, and it seems to have fairly straight-forward support 
for shared/public folders from what little I've played with them.
Okay, I think you are right. I should switch to cyrus-imapd. But there 
is a big difference between the two. Here is what the package 
description says:


A full Cyrus IMAP implementation allows a seamless mail and bulletin board
environment to be set up across multiple servers.  It differs from other
IMAP server implementations in that it is run on sealed servers, where
users are not normally permitted to log in.  The mailbox database is stored
in parts of the filesystem that are private to the Cyrus IMAP system.  All
user access to mail is through software using the IMAP, POP3, or KPOP
protocols.


I already have some users with many e-mails (created with uw-imap). How can I 
migrate between the two?
I believe that I'm offtopic here. :-(


 Laszlo


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


Re: IMAP server alternatives

2006-07-11 Thread Nagy László Zsolt

Thank you for your responses!

I tried to install cyrus-imapd, courier-imapd and dovecot, in this 
order. :-)
Dovecot has my preference. I could install it in a few minutes, and it 
was very easy to configure. At least it is easier than courier, for me. :-)


Thanks again.

 Laszlo



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


Shared IMAP folder

2006-07-10 Thread Nagy László Zsolt


 Hello,

I would like to share some IMAP folders between users. I'm currently 
using postfix and uw-imap. Is this possible? How should I do this? (Hard 
links between IMAP files?)


The basic problem is this: we have a company and we have some employees, 
doing help desk service. There are cases with different e-mail 
threads. When an employee goes on holiday, the others should be able to 
continue his work. The best was to do this is - I believe - a shared 
IMAP folder. Our employees are using Thunderbird. That wonderful program 
can display message threads. It is very nice, but how can these users 
share their e-mails? Is it possible to do this with FreeBSD and Thunderbird?


Thank you,

  Laszlo

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


Re: Strange messages in mail queue

2006-05-26 Thread Nagy László Zsolt

Charles Swiger írta:

On May 25, 2006, at 9:39 AM, Eric wrote:

what MTA are you using?  i'm wondering why your server accepted the
email in the first place.


Yes, well, that question implies the right direction for a solution: 
you want to reject spam before trying to deliver it, rather than 
accepting it and then being responsible for bouncing it back.
I'm using postfix (the most up to date version from the ports tree). I 
did not know that it is bouncing back automatically. :-)
How can I reject those emails before accepting them? I need to whole 
body of the message before I can classify it. Are there any other options?


I'm sorry, I know I'm a Lama.


  Laszlo

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


Re: Postgresql Autovacuum how?

2006-05-24 Thread Nagy László Zsolt

Nick Withers írta:

I've created a .pgpass file in /root (which is read only by
root) containing the password for the pgsql user. A quick
Google on pgpass turned up this content from
http://pgsqld.active-venture.com/libpq-files.html:
  

This is a broken link (for me at least).

_

(...)

This file should have the format:

hostname:port:database:username:password

Any of these may be a literal name, or *, which matches
anything. The first match will be used so put more specific
entries first. Entries with : or \ should be escaped with \.

The permissions on .pgpass must disallow any access to world or
group; achieve this by the command chmod 0600 .pgaccess. If the
permissions are less strict than this, the file will be
ignored.
  

Thank you, I'll try this.

_

  

This is my pg_hba.conf file:

# TYPE  DATABASEUSERCIDR-ADDRESS  METHOD
# local is for Unix domain socket connections only
local   all all   ident sameuser
hostall all 127.0.0.1/32  md5
hostssl all all 0.0.0.0 0.0.0.0   md5

The autovacuum script was packaged for FreeBSD, so I assume this is a 
FreeBSD specific thing. My question is: why ident/sameuser not working 
here? How can I enable auto vacuums without storing the password in the 
periodic/daily/502.pgsql  script?



I'm not familiar with the sameuser directive, presumably this
prohibits a system user from logging in as a user in the
database with a different name? 
Ident sameuser means that the user will be identified with the IDENT 
protocol. Then if the unix user name matches a postgresql user name, the 
user can connect without providing the password.
Without giving 'sameuser', the unix and postgresql user names will be 
matched through pg_ident.conf. (I think I'm offtopic here, sorry)


Best,

  Laci

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


Re: Postgresql Autovacuum how?

2006-05-24 Thread Nagy László Zsolt



I've created a .pgpass file in /root (which is read only by
root) containing the password for the pgsql user. A quick
Google on pgpass turned up this content from
http://pgsqld.active-venture.com/libpq-files.html:
  

That link is broken, but here is a good one:

http://www.postgresql.org/docs/8.1/interactive/libpq-pgpass.html

I had to put in into ~pgsql/.pgpass.

However, for other users, it works for me ONLY if the database name and 
the user name are the same.

Otherwise it prompts for a password. But that is antoher problem.

Thanks,

 Laci

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


Re: gmirror and partitioning

2006-05-18 Thread Nagy László Zsolt



Hi Laszlo,

No bugs; I think this is normal.  Both the BIOS and the OS are only
going to see the blocks the hard drive thinks are useable.  
Bad sector information is also stored on the disk, and only the OS can 
interpret this information.
Or is it possible that the manufacturer produces the hard drive first, 
then measures its real capacity and finally burns this info into a flash 
memory on the drive? :-)

Even though
the drive geometry is fictitious, most people still recommend defining
your slices to begin and end on cylinder boundaries.  I assume this
makes accessing blocks in the slice a few nanoseconds faster, but I'm
actually not sure.  Perhaps someone on the list knows more detail.  In
any case, if you do this for as10s1 gmirror will replicate this property
to the other disk.  You'll also most likely have a few blocks left over.
As for units of MB, I'm not sure.  Could be rounding.

Can we assume your gmirror is now working?
  

Oh yes, it is working.
I do not care about that one lost MB. The lesson of the story: I'll 
leave 10MB empty space at the end of the disk whenever I need to use 
gmirror.

Thank you for your help! :-)

 Laszlo


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


Re: gmirror and partitioning

2006-05-17 Thread Nagy László Zsolt



acd0: CDROM GCR-8523B/1.01 at ata0-master PIO4
ad8: 152626MB SAMSUNG HD160JJ ZM100-33 at ata4-master SATA150
ad10: 152627MB SAMSUNG HD160JJ ZM100-33 at ata5-master SATA150


Sadly, yes; or buy a bigger second disk. You could do the install on the
smaller disk first, or you could make ad10s1 smaller.
  
Okay, I did this. But I'm still interested in the topic. The size of a 
hard drive is determined by the manufacturer. It depends on how many 
sectors, heads and cylinders present in the device. The actual available 
size can be smaller because of bad sectors on the disc. But the BIOS (or 
FreeBSD) should detect the full size, including all sectors. These 
devices are identical. Then how in the hell could it add one more MB to 
the second device? I presume if I swap drives between ata4-master and 
ata5-master then still ad10 would be bigger. Is this a bug in FreeBSD?


  Laszlo

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


Re: gmirror and partitioning

2006-05-16 Thread Nagy László Zsolt



Laszlo,

You're making gmirror way too difficult.  In short, install FreeBSD with
however many partitions you want, then install gmirror and replicate
your disk to the second disk.

The standard howto documents are:

http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/

http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html

http://people.freebsd.org/~rse/mirror/

I've used Danny's and Ralf's (the first and third).  Danny's is simpler,
but Ralf's has the advantage that it can be done remotely.  Danny's
website now recommends Dru's (the second).  You may want to try that
first.

Let us know how it goes,
  
I tried the second link, as you suggested. It does not work for me. I 
have to identical disks on /dev/ad10 and /dev/ad8. I have installed 
FreeBSD on /dev/ad10 and I initialized gmirror on that disk. Here is 
what df says:


backupserver# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/mirror/gm0s1a 4.8G 34M 4.4G 1% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/mirror/gm0s1e 9.7G 12K 8.9G 0% /tmp
/dev/mirror/gm0s1f 115G 261M 106G 0% /usr
/dev/mirror/gm0s1d 9.7G 232K 8.9G 0% /var
backupserver# swapinfo
Device 1K-blocks Used Avail Capacity
/dev/mirror/gm0s1b 5242880 0 5242880 0%
backupserver#


Then I try to add the ad8 device:

backupserver# gmirror insert gm0 /dev/ad8
Provider ad8 too small.
backupserver#

But of course this is not true. ad8 and ad10 are identical 160GB SATA disks.
What am I doing wrong? Please help.

Laszlo

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


Re: gmirror and partitioning

2006-05-16 Thread Nagy László Zsolt



Hi Laszlo,

Well it looks like you've got gm0 up and running.  I assume you've
edited /etc/fstab so that it boots cleanly.  My first thought is that
you need to zero ad8 to make sure gmirror isn't confused.  Try that (dd
if=/dev/zero of=/dev/ad8) at least for several blocks.  Then reboot and
post dmesg.
  


 Hello Gayns,

Good to see you again. :-)

backupserver# dd if=/dev/zero of=/dev/ad8 count=4096
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.686872 secs (3053192 bytes/sec)

 then I rebooted 

backupserver# gmirror insert gm0 /dev/ad8
Provider ad8 too small.

Here are the important parts from my dmesg:

...

atapci0: ITE IT8212F UDMA133 controller port 
0x9010-0x9017,0x9400-0x9403,0x9810-0x9817,0x9c00-0x9c03,0xa000-0xa00f 
irq 22 at device 6.0 on pci4

ata2: ATA channel 0 on atapci0
ata3: ATA channel 1 on atapci0
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci1: Intel ICH7 UDMA100 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.1 on pci0

ata0: ATA channel 0 on atapci1
ata1: ATA channel 1 on atapci1
atapci2: Intel ICH7 SATA300 controller port 
0xd000-0xd007,0xd400-0xd403,0xd800-0xd807,0xdc00-0xdc03,0xe000-0xe00f 
irq 19 at device 31.2 on pci0

atapci2: failed to enable memory mapping!



acd0: CDROM GCR-8523B/1.01 at ata0-master PIO4
ad8: 152626MB SAMSUNG HD160JJ ZM100-33 at ata4-master SATA150
ad10: 152627MB SAMSUNG HD160JJ ZM100-33 at ata5-master SATA150
SMP: AP CPU #1 Launched!
GEOM_MIRROR: Device gm0 created (id=934763830).
GEOM_MIRROR: Device gm0: provider ad10 detected.
GEOM_MIRROR: Device gm0: provider ad10 activated.
GEOM_MIRROR: Device gm0: provider mirror/gm0 launched.
Trying to mount root from ufs:/dev/mirror/gm0s1a
bge0: link state changed to UP


This is really wreid! The hard disks are the same: SAMSUNG HD160JJ 
ZM100-33. But one is bigger than the other. How could this happen? 
Should I reinstall everything from the beginning? :-(



Best,

  Laszlo

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


Re: gmirror and partitioning

2006-05-12 Thread Nagy László Zsolt



Laszlo,

You're making gmirror way too difficult.  In short, install FreeBSD with
however many partitions you want, then install gmirror and replicate
your disk to the second disk.

The standard howto documents are:

http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/

http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html

http://people.freebsd.org/~rse/mirror/

I've used Danny's and Ralf's (the first and third).  Danny's is simpler,
but Ralf's has the advantage that it can be done remotely.  Danny's
website now recommends Dru's (the second).  You may want to try that
first.

Let us know how it goes,
  
This looks easy. I'll get the hardware on 19th, but I'll let you know 
how it goes.

Thank you!

  Laszlo


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


Re: Problem installing FreeBSD 6.0

2006-04-26 Thread Nagy László Zsolt




Did you do a custom newfs?

No.

What's you partition layout?

First slice is a Windows NTFS, 45GB
Then I have a 35GB slice for FreeBSD (type 165). Inside that slice, I 
used automatic partitioning.
What did you install (only the bare base? or also additional 
distributions/packages)
I selected the 'All binaries and doc but no games, kernel sources only' 
option. But the problem occurs while it displays:


extracting base into /

so probably it has nothing to do with the selected distros/packages.

Laci

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


Re: Problem installing FreeBSD 6.0

2006-04-26 Thread Nagy László Zsolt

Jeff Rollin wrote:
could you post the partition layout? (i know you said you used 
automatic partitioning but the size of the filesystems varies 
depending on the size of the slice.)

Slices screen:

Disk name: ad0
Geometry: 14596 cyls/255 heads/63 sectors = 234484740 sectors (114494 MB)

Offset| Size(ST) | End  | Name   | PType | Desc   | 
Subtype | Flags

0 | 63   | 62   | -  | 12| unused | 0
63| 92164842 | 92164904 | ad0s1  | 4 | NTFS/HPFS/QNX  | 7
92164905  | 73384920 | 165549824| ad0s2  | 8 | freebsd| 165
165549825 | 68941118 | 234490942| -  | 12| unused | 0

Partitions screen:

Part   | Mount |  Size|   NewFs|  Part
ad0s2a | / | 512MB|  UFS2  |  Y
ad0s2b | swap  | 4070MB   |  SWAP  |
ad0s2d | /var  | 3059MB   |  UFS2+S|  Y
ad0s2e | /tmp  |  512MB   |  UFS2+S|  Y
ad0s2f | /usr  |27678MB   |  UFS2+S|  Y


I choose option 6 Kern-Developer   -   Full binaries and doc, Kernel 
sources only


Then I get the error while I see this:

Extracting base into / directory


Best,

  Laci


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