UDF and CD-RW

2005-08-09 Thread Laszlo Nagy


 Hi All!

I'm trying to use packet writing software on FreeBSD. The FreeBSD 
counterpart of the Linux udftools package is the udfclient port. 
However, I cannot use it. It does not allow me to create a new 
filesystem, telling me that I need to packet-format first. But I don't 
know how to do that. Can you please help?


Details:

uname -a

FreeBSD earth.msnet 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #3: Mon Aug  8 
22:17:04 CEST 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/EARTH  i386


cd_sessions /dev/cd0

Opening device /dev/cd0
Device has MMC profile 0x0a
Disc info for disc in device /dev/cd0
   MMC profile: CD-RW rewritable
   sequential :  no
   recordable : yes
   erasable   : yes
   rewritable : yes
   packet writing : yes
   disc state : empty disc
   last session state : empty
   sectorsize : 2048
   Number of sessions 1
   Session 0
   start  at 0
   ends   at 359847
   length for359847
   next writable at  0
   free blocks   359847
   packet size   0

Disc access statistics
   sector reads  0  (0 Kbyte)
   sector written0  (0 Kbyte)
   switches  0

newfs_udf -P test -L test /dev/cd0

Opening device /dev/cd0

   bufcache thread initialising


Disc info for disc in device /dev/cd0
   MMC profile: CD-RW rewritable
   sequential :  no
   recordable : yes
   erasable   : yes
   rewritable : yes
   packet writing : yes
   disc state : empty disc
   last session state : empty
   sectorsize : 2048
   Number of sessions 1
   Session 0
   start  at 0
   ends   at 359847
   length for359847
   next writable at  0
   free blocks   359847
   packet size   0

Closing disc
Dismounting disc
   syncing disc
   wait for syncing disc to idle
   stopping bufcache thread
   bufcache thread joining
   signal disc its finished with writing
   wait for final disc idling
   close device
Disc access statistics
   sector reads  0  (0 Kbyte)
   sector written0  (0 Kbyte)
   switches  0

Disk is empty; please packet-format it before use

Thanks,

  Les

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


Re: UDF and CD-RW

2005-08-09 Thread Laszlo Nagy




Looking at the port makefile, one of the programs that is installed is
called cdrw_format. Maybe you should try that.

Roland
 

Looks like it is the right program. But it does not work. I have 
ide-scsi emulation enabled on my CDRW drive, so it is named /dev/cd0. I 
have a blank disc in the drive (created with cdrecord speed=4 -v 
blank=fast).

Here are the results:

earth# cdrw_format -D -F /dev/cd0
Opening device /dev/cd0

Device dentifies itself as : SCSI   busnum = 0, target = 0, lun = 0

CD-RW has a capacity of 359847 blocks (736966656 bytes)

Formatting (please be patient (+/- 10 minutes)) ...SCSI command 
error on /dev/cd0: Status=0x8c

Sense data: Key=0x0 () Code=0x0 Qual=0x0
format unit returned : Bad address
fail
Formatting failed because of : Bad address
Disc access statistics
   sector reads  0  (0 Kbyte)
   sector written0  (0 Kbyte)
   switches  0
earth#


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


Re: UDF and CD-RW

2005-08-09 Thread Laszlo Nagy


Looks like it is the right program. But it does not work. I have 
ide-scsi emulation enabled on my CDRW drive, so it is named /dev/cd0. I 
have a blank disc in the drive (created with cdrecord speed=4 -v 
blank=fast).

Here are the results:
   


snip
 

Formatting (please be patient (+/- 10 minutes)) ...SCSI command 
error on /dev/cd0: Status=0x8c

Sense data: Key=0x0 () Code=0x0 Qual=0x0
format unit returned : Bad address
fail
Formatting failed because of : Bad address
Disc access statistics
  sector reads  0  (0 Kbyte)
  sector written0  (0 Kbyte)
  switches  0
   



When I try it with my -ide-scsi emulation setup I get the same error,
but different sense data:

Formatting (please be patient (+/- 10 minutes)) ...SCSI command 
error on /dev/cd1: Status=0x8c

Sense data: Key=0x6 () Code=0x29 Qual=0x0
format unit returned : Bad address

I've looked at the source for cdrw_format, but couldn't find anything
obviously wrong with it.
 

I wonder why there is no documentation for this program? Probably there 
are human beings using it but probably they are very special persons 
with special knowledge. I could not find useful postings about this 
topic (CDRW and packet writing) in mailing lists. Very sad. :-( I'm 
totally lost.


 Les

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


Re: gjournal: journaled slices vs. journaled partitions

2008-10-20 Thread Laszlo Nagy



So how do I achieve per-slice journaling instead of per-partition?
The docs only says this: gjournal only supports UFS2. It does not 
specifically say that you cannot have per-slice journaling. However, 
since you could have other filesystems on your slice, I bet that slice 
based journaling is not supported.


Consider this: how would you journal an NTFS file system (and then boot 
windows after an unclean shutdown?) Another tricky question: why would 
you journal a SWAP partition?


Best,

  Laszlo

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


eps to jpg conversion - which program?

2008-11-07 Thread Laszlo Nagy


 Hi,

I need to convert eps files into jpeg files in batch mode. Gimp works 
perfectly, except that I cannot use an X display. I tried eps2png with 
no success:



%file test.eps
test.eps: DOS EPS Binary File Postscript starts at byte 30 length 566887 
TIFF starts at byte 566917 length 4741

%eps2png -jpg -width 1000 -verbose -output test.jpg test.eps
Producing jpg (jpeg) image.
Not EPS file: test.eps, skipped

What port should I use to convert EPS into JPG? I would like to use a 
program that shares the same library with Gimp, because we know that 
Gimp works great for this task.


Thanks,

  Laszlo

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


Creating a CUPS printer instance from web interface?

2008-11-20 Thread Laszlo Nagy
I would like to create named instances for an Epson printer. We are 
printing invoices on normal A4, photos on glossy photo paper, and draft 
papers (with draft quality). E.g. the paper size, margins and print 
quality changes from time to time.


I have two problems. First, I do not see any way on the CUPS web admin 
interface to add printer instances. I only have 'set printer options' 
but it does not allow me to create instances.


The other problem is that lpoptions lists the options, but I do not know 
their meaning and the possible values. Example:


[EMAIL PROTECTED]:~$ lpoptions
media=A4 finishings=3 copies=1 job-hold-until=no-hold job-priority=50 
number-up=1 auth-info-required=none job-sheets=none,none 
printer-info='EPSON Stylus Photo R265' printer-is-accepting-jobs=1 
printer-is-shared=1 printer-location printer-make-and-model='Epson 
Stylus Photo R265 - CUPS+Gutenprint v5.0.2 Simplified' printer-state=5 
printer-state-change-time=1227085737 printer-state-reasons=paused 
printer-type=8556556


Which option is for printing quality? What are its possible values? It 
depends on the driver, and therefore it is not covered in the CUPS 
manual. The drivers themselves does not have a documentation. So where 
can I get this information?


Thanks,

  Laszlo



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


CUPS: cannot see printer from various program

2008-11-26 Thread Laszlo Nagy
The printer is Epson Stylus Photo R265. I'm using gutenprint 5 and CUPS. 
The test page prints well from CUPS. I can also print images and web 
pages from firefox, because the CUPS/R265 printer can be selected in 
the print dialog of firefox.


However, when I open an image from eog (eye of gnome), the only printer 
destination I can choose is LPR. Which is bad, because this is a 
printer server with diskless clients, and the users must be able to 
select print options from the GUI.


The system is FreeBSD 7.0. My girlfriend had the same problem with 
Ubuntu before, but not with kiwi, so it might not be related to FreeBSD.


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: CUPS: cannot see printer from various program

2008-11-28 Thread Laszlo Nagy




Hello Laszlo,

You might want to add the following lines to /etc/make.conf

CUPS_OVERWRITE_BASE=yes
NO_LPR=yes
WITH_CUPS=yes

And rebuild the application you want to print from.

(The above was found on the excellent guide at 
http://www.math.colostate.edu/~reinholz/freebsd/)

Thank you! I already have a running system, so I had to

setenv WITH_CUPS
cd /usr/ports/x11-toolkits/gtk20
make deinstall
make install clean


I do not fully understand why it is done this way. Most users - 
including me - are going to install gnome2 first, and most likely CUPS 
is not installed by that time. It is also true that many users who 
install gnome2 will have a printer and want to use it. So I would 
recommend to create a make option [X] CUPS support for gtk20, or at 
least for gnome2. It was quite hard to find information about this issue 
on the internet! Should I post a PR for this? (It is not a real bug but 
I think it causes problems for many users.)


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: Creating a CUPS printer instance from web interface?

2008-11-28 Thread Laszlo Nagy



The base page for CUPS has a button labeled Add Printer.
On *my* setup, anyway.
  

On mine too.

What it really does is add a queue, so you can do it any number of times
for the same physical printer.
  
I did not know that! But it is not clear in the docs. CUPS talks about 
printers and printer instances. They recommend using lpoptions to 
create instances, and use them. Moreover, printer instances the way 
they are created with lpoptions are NOT available from the gtk print 
menu.


All right, I'm going to try to add more printers for the same USB 
device. I hope it will work.


Thanks,

Laszlo


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


truss is buggy?

2008-12-22 Thread Laszlo Nagy
Apparently, the truss trace tool has a bug. At least I was told that 
the tracer program should not change the return value of the getppid() 
call inside the traced process. Here is an example program:


%cat test.c
#include stdio.h

int main() {
  while(1) {
  sleep(5);
  printf(ppid = %d\n, getppid());
  }
}

%gcc -o test test.c
%./test
ppid = 47653
ppid = 47653
ppid = 47653 # Started truss -p 48864 here!
ppid = 49073
ppid = 49073
ppid = 49073


I cannot install strace, beacuse my platform is amd64. What other 
options do I have?


Thanks

  Laszlo


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


Re: truss is buggy?

2008-12-23 Thread Laszlo Nagy



It looks like the ptrace() syscall is the problem:

DESCRIPTION
 The ptrace() system call provides tracing and debugging
 facilities.  It allows one process (the tracing process) to
 control another (the traced process).  The tracing process must
 first attach to the traced process, and then issue a series of
 ptrace() system calls to control the execution of the process, as
 well as access process memory and register state.  For the
 duration of the tracing session, the traced process will be
 ``re-parented'', with its parent process ID (and resulting
 behavior) changed to the tracing process.

I imagine that also explains why a truss'ed program will die if you
kill -9 the truss process.  It looks like the reset parent when
trussing behaviour appeared back in 1996 (sys_process.s r1.21).  The
fix would probably be to store the pid of the tracing process somewhere
other than p_ppid...
  
My problem is that there is a process (namely, postgresql stats 
collector) that may have a bug inside. I was asked on the devel list to 
send in some traces so they can figure out why it is in an infinite 
loop, eating 100% CPU time.


However, when I start truss-ing this process, getppid() call changes 
return value. The postgresql stats collector periodically checks if the 
postmaster (its parent process) is alive or not, and will exit 
unconditionally if the postmaster has died. After I start truss-ing, the 
stats collector exits, making it impossible to debug the problem.


I'm not able to change the stats collector's source code, because I'm 
not a C programmer, and because it is a production server and this would 
be too risky.


I also tried to install strace, but it is not available on my platform 
(amd64). I cannot move to i386, because (apparently) the problem exists 
on this platform only. Is this a hopeless situation?


BTW I'm not an expert, but I believe that the process being debugged 
should not see any difference, and it should not be able to tell if it 
is debugged or not. I think this is a bug indeed.



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


load average + with no visible load ?

2009-01-22 Thread Laszlo Nagy

#uptime
9:06AM  up  6:14, 12 users, load averages: 25.39, 13.19, 9.55

I would think that CPU is under 100% when load=15.58 . But it is not:

#top -S

last pid: 17095;  load averages: 13.26, 11.20,  
8.57 
up 0+06:12:25  09:04:27

514 processes: 3 running, 490 sleeping, 1 zombie, 20 waiting
CPU states: 16.1% user,  0.0% nice,  1.8% system,  0.0% interrupt, 82.1% 
idle

Mem: 1406M Active, 272M Inact, 247M Wired, 70M Cache, 112M Buf, 8380K Free
Swap: 4096M Total, 4096M Free

 PID USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
  11 root  1 171   52 0K 8K RUN0 214:21 43.70% 
idle: cpu0
  10 root  1 171   52 0K 8K RUN1 282:08 34.28% 
idle: cpu1
  21 root  1 -68 -187 0K 8K WAIT   1   2:15  2.05% 
irq19: myk0 uhci3
16480 timea 1  970 34376K 17628K select 0   0:03  1.81% 
wnck-applet

14813 kornel1  960 34376K 27384K select 0   0:20  1.12% skype
17095 root  1  960  3104K  2324K CPU1   1   0:00  1.00% top
16443 timea 1  960 17304K 12560K select 1   0:03  0.98% metacity
  12 root  1 -44 -163 0K 8K WAIT   1   1:21  0.88% 
swi1: net

16550 timea 1  970 41760K 37284K select 0   0:15  0.73% wish8.4
2317 zsolt 1  960 29680K 22344K select 1   3:13  0.59% skype
3450 szgabor   1  960 28344K 21484K select 1   2:56  0.49% skype

The most strange is that last pid is almost constant, about 1 process 
started per second.


So how it is possible that top -S tells 82% idle but load tells 
15.58 ?


Thanks,

  Laszlo

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


transmission-daemon: Couldn't create socket: Protocol not supported (fdlimit.c:642)

2010-02-27 Thread Laszlo Nagy
I have 4 virtual machines. They have exactly the same settings, except 
port numbers. Only one is doing this. Writes messages to syslog like:


Feb 27 11:06:32 vm04 transmission-daemon: Couldn't create socket: 
Protocol not supported (fdlimit.c:642)
Feb 27 11:09:20 vm04 transmission-daemon: Couldn't create socket: 
Protocol not supported (fdlimit.c:642)

Feb 27 11:09:57 vm04 last message repeated 11 times
Feb 27 11:13:25 vm04 transmission-daemon: Couldn't create socket: 
Protocol not supported (fdlimit.c:642)


and also the rpc part is not reachable. Usually when I try to connect to 
the rpc port of transmission-daemon, I get connection timed out or 
connection reset by peer messages. But sometimes (rarely) it works.


Some more information:

vm04# uname -a
FreeBSD vm04 7.2-STABLE FreeBSD 7.2-STABLE #2: Wed Nov 18 08:50:04 CET 
2009 gand...@vm04:/usr/obj/usr/src/sys/DARKSUN  amd64

vm04# sysctl kern.maxfiles
kern.maxfiles: 12328
vm04# sysctl kern.openfiles
kern.openfiles: 784

File uploads/downloads work as expected. Just I cannot monitor them, 
cannot add new files, remove old ones etc. because the RPC interface is 
not available.


Where should I look for the problem?

Thanks

   Laszlo

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


fstat bug?

2011-03-21 Thread Laszlo Nagy


  Hi All,

I have a Python program that goes up to 100% CPU. Just like this (top):

  PID USERNAME   THR PRI NICE   SIZERES STATE   C   TIME   WCPU 
COMMAND
80212 user1   2  440 70520K 16212K select  1   0:30 100.00% 
/usr/local/bin/python process_updates_ss_od.py -l 10


I have added extra logs and it turns out that there are two threads. One 
thread is calling time.sleep() and the other is calling os.stat 
call. (Actually it is calling os.path.isfile, but I hunted down the last 
link in the chain.) The most interesting thing is that the process is in 
SELECT state. As far as I know, CPU load should be 0% because select 
state should block program execution until the I/O completes.


I must also tell you that the os.stat call is taking long because this 
system has about 7 million files on a slow disk under heavy load. It 
would be normal for an os.stat call to return after 10 seconds. I have 
no problem with that. But I think that the 100% CPU is not acceptable. I 
guess that the code is running a system call in kernel mode. I think 
this because I can send a KILL signal to it and the state changes to the 
following:


  PID USERNAME   THR PRI NICE   SIZERES STATE   C   TIME   WCPU 
COMMAND
80212 user1   2  440 70520K 15256K STOP5   1:27 100.00% 
/usr/local/bin/python process_updates_ss_od.py -l 10


So the state of the process changes to STOP, but the program does not 
stop until the os.stat call returns back. Sometimes for a minute.


Could it be a problem with the operation system? Is it possible that an 
os.stat call requires 100% CPU power from the OS? (I believe that 
os.stat ends in fstat()). Or is it a problem with the Python implementation?


(Unfortunately I cannot give you an example program. Giving an example 
would require giving you a slow I/O device with millions of files on it.)


OS version: FreeBSD 8.1-STABLE amd64
Python version: 2.6.6

Thanks,

   Laszlo


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


MySQL 3 needed but how?

2011-03-26 Thread Laszlo Nagy


Hi,

I have an old backup from a MySQL data directory. It was created with 
MySQL version 3. If I install MySQL 4 then I get this message telling 
that the table was created with a different MySQL version.


So I try to install mysql 3. Here is the problem:

gw# pwd
/usr/ports/databases/mysql323-server
gw# make
===  mysql-server-3.23.59.n.20050301_3 obsolete and does not build with 
gcc4.2; use mysql 5 or later.

*** Error code 1

Stop in /usr/ports/databases/mysql323-server.
gw#

But I really need mysql 3. I usually install everything from the ports 
tree, but in this case this won't work. I need a quick solution. Maybe I 
can install a different OS in a virtual machine. But do you know where 
can I download a BSD OS version that has a binary package of MySQL 
server 3? (I don't know how to search for a BSD OS that has binary 
packages for mysql3...)


Thanks,

   Laszlo

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


Re: MySQL 3 needed but how?

2011-03-26 Thread Laszlo Nagy

On 2011-03-26 18:41, John Levine wrote:

In article4d8e1e4a.5000...@shopzeus.com  you write:

Hi,

I have an old backup from a MySQL data directory. It was created with
MySQL version 3. If I install MySQL 4 then I get this message telling
that the table was created with a different MySQL version.

You should be able to restore the individual database directories
under mysql 4 and use ALTER TABLE to upgrade the file formats.  You'll
lose the user access stuff, but that's usually easy enough to
reconstruct.

In MySQL, each database is self-describing.  That is, for database
foo, the files in the foo/ directory are both the description of
the tables and the data in them.

http://dev.mysql.com/doc/refman/4.1/en/upgrading-from-3-23.html
Okay, I tried to follow the instruction. So instead of installing 4.1, I 
have installed 4.0. After replacing /var/db/mysql with my archived 
directory:


gw# /usr/local/etc/rc.d/mysql-server start
Starting mysql.
gw# /usr/local/etc/rc.d/mysql-server status
mysql is not running.
gw#


There is nothing in /var/log/messages.

It was working with 4.1 server, but I just uninstalled that (because the 
upgrading faq told me to install 4.0 instead.)


So what now?

   L

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


Re: MySQL 3 needed but how?

2011-03-26 Thread Laszlo Nagy



There is nothing in /var/log/messages.

It was working with 4.1 server, but I just uninstalled that (because
the upgrading faq told me to install 4.0 instead.)

Do you have the following in your /etc/rc.conf file:

mysql_enable=YES
Yes.  I'm in the process of installing FreeBSD 6.4 in a virtual machine. 
Hopefully I'll be able to compile mysql 3.23 and make a backup from there.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: MySQL 3 needed but how?

2011-03-26 Thread Laszlo Nagy


Sounds like you'll have to do some debugging.  Try adding --verbose to 
mysql_args in /etc/rc.conf, and see the other advice in

http://dev.mysql.com/doc/refman/4.1/en/starting-server.html


gw# /usr/local/bin/mysqld_safe --verbose
Starting mysqld daemon with databases from /var/db/mysql
STOPPING server from pid file /var/db/mysql/gw.sznet.pid
110326 16:44:14  mysqld ended

The data directory is correct. I don't understand why it is stopping 
immediatelly after startup.


Trying the other way around (FreeBSD 6.4 on a virtual machine)


It may be something really simple, like the mysql data directory not 
being where the server expects it to be.





--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: MySQL 3 needed but how? [SOLVED]

2011-03-27 Thread Laszlo Nagy
I could install FreeBSD 6.4 on a virtual machine, replace the data dir 
and run mysqldump from there.


Thank you for your help!

   L

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


mount msdosfs writeable by a given group

2005-05-25 Thread Laszlo Nagy


Hello,

I read the manual and I can mount my VFAT32 partition with this command:

mount_msdosfs -u nobody -g shares -m 777 -M 777 /dev/ad0s5 /mnt/transfer

This will make files and directories writeable by users in the shares 
group.

But how do I specify the same in /etc/fstab?

This won't work:

/dev/ad0s5  /mnt/transfer   msdosfs rw -u nobody -g shares 
-m 777 -M 7770   0
/dev/ad0s6  /mnt/media  msdosfs rw -u nobody -g shares 
-m 777 -M 7770   0


because the options part should not have whitespace in it.

/dev/ad0s5  /mnt/transfer   msdosfs rw -u nobody -g shares 
-m 777 -M 7770   0
/dev/ad0s6  /mnt/media  msdosfs rw -u nobody -g shares 
-m 777 -M 7770   0



not working either.

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


Re: mount msdosfs writeable by a given group

2005-05-31 Thread Laszlo Nagy

Lowell Gilbert wrote:


Laszlo Nagy [EMAIL PROTECTED] writes:

 


/dev/ad0s5  /mnt/transfer   msdosfs rw -u nobody -g shares -m 777 
-M 7770   0
   




Try:

/dev/ad0s5  /mnt/transfer   msdosfs rw,-unobody,-gshares,-m777   0  
 0
 


Whew, that worked. Thank you.

 Laci 2.0

p.s. Sorry for the late response
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Copy all users between systems

2010-10-29 Thread Laszlo Nagy
I would like to copy all user accounts, including root from an already 
installed 8.0 system to a fresh new 8.1 system.


My plan is to boot into single user mode, then copy these:

/etc/passwd
/etc/master.passwd
/etc/group

then run pwd_mkdb and finally restart the system. (Obviously, I also 
need to copy user home directories)


Will this be enough? Did I miss something?

Thanks,

   Laszlo

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


What is loading my server so much?

2010-12-09 Thread Laszlo Nagy
System is FreeBSD shopzeus.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Oct 
31 02:55:28 EDT 2010 amd64
It has two quad-core Xeon CPUs, 24GB memory, and a RAID 1+0 array with 
10 disks + Areca 1680 controller with 2GB write back cache.


Server is running: mailscanner + apache multihost + PHP + postgresql. 
Main load on the server is usually postgresql.


Today something happened. Number of http processes went up to 200. As a 
result, number of connections to database also went up to 200, and the 
web server is now refusing clients with Cannot connect to database 
messages (coming from PHP).


This is a typical output from top:

last pid: 12789;  load averages:  7.77, 10.77, 
13.46
up 26+03:00:30  06:22:04

6637 processes: 7 running, 623 sleeping, 7 zombie
CPU: 32.9% user,  0.0% nice,  7.6% system,  0.6% interrupt, 58.9% idle
Mem: 3885M Active, 15G Inact, 3236M Wired, 627M Cache, 2465M Buf, 656M Free
Swap: 12G Total, 12M Used, 12G Free

  PID USERNAME   THR PRI NICE   SIZERES STATE   C   TIME   WCPU 
COMMAND
66834 pgsql1 1180   443M   417M CPU22  16:17 99.46% 
postgres
11473 pgsql1  720   441M   242M sbwait  5   0:02  4.59% 
postgres
11026 pgsql1  470   439M   249M sbwait  7   0:01  3.17% 
postgres
 6642 www  1  480   236M 42928K select  0   0:01  2.29% 
httpd
10147 www  1  480   236M 44048K select  6   0:01  2.10% 
httpd
 3961 shopzeus29  440   208M 96364K uwait   4  18.4H  1.37% 
python



Here is what I don't understand. last pid is increasing relatively 
slowly, e.g. there are no hidden processes. Only the first one or two 
processes are showing CPU load  10%.  The CPU User% value is about 
50%. We have lots of free memory. I/O load is almost nothing (see iostat 
below).


However, server load is between 7 and 13! In fact sometimes it is above 
16. And everybody complains that the server is too slow.


How can I find out what is causing the problem?

Example gstat output:

dT: 1.006s  w: 1.000s
 L(q)  ops/sr/s   kBps   ms/rw/s   kBps   ms/w   %busy Name
0  0  0  00.0  0  00.00.0| ad4
0  0  0  00.0  0  00.00.0| ad4s1
0  0  0  00.0  0  00.00.0| ad4s1d
0  0  0  00.0  0  00.00.0| da0
0  0  0  00.0  0  00.00.0| da0s1
1304  3 34   14.0301   75220.25.1| da1
0  2  2 32   11.9  0  00.02.4| da2
0  0  0  00.0  0  00.00.0| da3
0  0  0  00.0  0  00.00.0| da4
0  0  0  00.0  0  00.00.0| da0s1a
0  0  0  00.0  0  00.00.0| da0s1b
0  0  0  00.0  0  00.00.0| da0s1d
0  0  0  00.0  0  00.00.0| da0s1e
1304  3 34   14.0301   75220.35.3| da1s1
0  2  2 32   11.9  0  00.02.4| da2s1
0  0  0  00.0  0  00.00.0| da3s1
0  0  0  00.0  0  00.00.0| da4s1
1304  3 34   14.0301   75220.45.4| da1s1d
0  2  2 32   11.9  0  00.02.4| da2s1d
0  0  0  00.0  0  00.00.0| da3s1d

Example iostat output:

   tty ad4  da0  
da1 cpu
 tin  tout  KB/t tps  MB/s   KB/t tps  MB/s   KB/t tps  MB/s  us ni sy 
in id
   0   349 30.81  16  0.49  16.51  11  0.18  22.56 124  2.72  29  0  9  
1 61
   0  9282  0.00   0  0.00   0.00   0  0.00  16.00   7  0.11  41  0 11  
1 47
   0 12520  0.00   0  0.00   0.00   0  0.00  18.00   8  0.14  45  0 14  
0 41
   0 12205  0.00   0  0.00   0.00   0  0.00   0.00   0  0.00  38  0 15  
0 47


Example systat output:

/0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
 Load Average 

/0%  /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
pgsql  postgres X
root   idle XXX
root   idle X
root   idle XX
www   httpd X
root   idle X
root   idle 
root   idle XXX
root   idle XXX
root   idle 
www   httpd XX
pgsql  postgres XXX
pgsql  postgres X
www   httpd X
root   intr X
www   httpd X
www   httpd X
www   httpd X
www   httpd X
shopzeus python X
www   httpd X
www   httpd X
www   

Re: What is loading my server so much?

2010-12-09 Thread Laszlo Nagy



Step 1, get them to define server and too slow:

If you log in and do shell ops, is the system slow to respond?  Based on
what you've reported, I'd be willing to bet that shell ops are pretty
responsive.  I can't be 100% sure without more information, but I'm
willing to be that what your users are complaining about is your web
application being slow.  Since you don't say what that application is,
I can only provide general advice.
Shell response is fast. The application may be slow, but we should see 
why (high CPU load or high I/O?)

I'm guessing that PostgreSQL is the bottleneck.  I'm going to first make
a few general suggestions, then provide suggestions on how to isolate the
problem more specifically.

First off, you have 24G of RAM available and PostgreSQL only seems to
have access to 400M of it.  Bump shared_buffers up to 2 or 3 G at least,
and bump up work_mem to at least a few hundred meg, and
maintenance_work_mem up to at 1/2G or so.
Good point. Changed shared_buffers to 4G, work_mem to 512M and 
maintenance_work_mem to 2G

If the top and gstat outputs are typical, it looks like PostgreSQL is
doing mostly writes, but is not significantly blocked on writes.  It looks
like individual PostgreSQL processes are simply taking a long time to do
their work.

What's in your PostgreSQL log files?  If there's nothing, then bump up
the logging information in your postgresql.conf.  I particularly like
log_min_duration_statement at 500 ... any query that takes longer than
1/2 second to execute is suspect in the types applications I work with
most frequently.
Thanks for that hint also. We have some programs making huge queries 
(once in a day or so) so I set this to 3000 for now.

If your application is developed in-house, I'd be willing to bet a paycheck
that there are LOTS of indexes missing and that PostgreSQL is doing lots
of seq scans where it could run lots faster if it had indexes.

Check also your autovacuum settings and ensure that tables are not bloating
out of control due to insufficient vacuuming.  You may have to vacuum full/
reindex the entire database to get things back under control, which can take
a long time if it's badly bloated.
Well, we have tables with 5M+ rows (table size over 4G) and we have 500+ 
tables. This is probably something that is out of scope - probably you 
cannot help with that without knowing the structure of the database and 
how it is used, and it would take a long time to understand. But anyway, 
if there is a problem with the database (not having indexes), we see 
heavy I/O or CPU load of the postgresql processes right? I mean, if the 
bottleneck is postgresql, then we should be able to see it at the OS level.

Your application may also be suffering from lock contention if there are
lots of table locks used.  Looking at the pg_locks table while things are
slow can quickly identify if this is the case, and looking at
pg_stat_activity in conjunction with that table will usually narrow down
the problem pretty quickly.
We do not issue lock statements directly, but we use database 
transactions. We have a tool for checking the state of those. Most of 
the time, only a few open database transactions are opened, and usually 
we don't have locks that are not granted.

Finally, if you find that PostgreSQL is the bottleneck and you can't
narrow it down enough to fix, join the PostgreSQL general questions
mailing list and ask for help with the same level of detail you did
here.  You'll find that they're an equally helpful community.

I'll do that, but first let me test the new settings.

Yes, thank you very much for you help.


   Laszlo

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


Re: What is loading my server so much?

2010-12-09 Thread Laszlo Nagy



First off, you have 24G of RAM available and PostgreSQL only seems to
have access to 400M of it.  Bump shared_buffers up to 2 or 3 G at least,
and bump up work_mem to at least a few hundred meg, and
maintenance_work_mem up to at 1/2G or so.


All right. Here is what I did. I setup a new shmmax value this way:

sysctl kern.ipc.shmmax=8589934592

It is 8G.  (By the way I also have kern.ipc.shm_use_phys: 1 ) Then I 
have changed shared_mem to 1024MB in postgresql.conf.

Then I tried to start postgresql I got this message in the log:

Dec  9 17:53:59 shopzeus postgres[27247]: [1-4] The PostgreSQL 
documentation contains more information about shared memory configuration.
Dec  9 17:55:52 shopzeus postgres[27328]: [1-1] FATAL:  could not create 
shared memory segment: Cannot allocate memory
Dec  9 17:55:52 shopzeus postgres[27328]: [1-2] DETAIL:  Failed system 
call was shmget(key=5432001, size=1105051648, 03600).
Dec  9 17:55:52 shopzeus postgres[27328]: [1-3] HINT:  This error 
usually means that PostgreSQL's request for a shared memory segment 
exceeded available memory or swap space. To reduce the request size 
(currently 1105051648 bytes), reduce PostgreSQL's shared_buffers 
parameter (currently 131072) and/or its max_connections parameter 
(currently 203).
Dec  9 17:55:52 shopzeus postgres[27328]: [1-4] The PostgreSQL 
documentation contains more information about shared memory configuration.


I do not understand.

Doc says these:

max_connections cost ~ 400 bytes of shared memory slot, plus lock space 
(see max_locks_per_transaction).


Even if I had max_connections = 5000, total shared memory required would 
be way below shmmax=8G.


What am I missing here?

Thanks

   Laszlo

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


Re: do i need a dedicated ip address for https?

2010-12-22 Thread Laszlo Nagy

On 2010-12-22 07:53, S Mathias wrote:

http://help.godaddy.com/article/1054

# Set up SSL protection on your website.

is it an inescapable requirement to have a dedicated [not fix] ip address, when 
i want to use ssl on my domain?

Obviously, you cannot have a website without an IP address.
Another strict rule is that you can only use one SSL certificate per IP 
address + PORT. This is determined by the SSL protocol, and you cannot 
do anything to change it.


But there are possibilities. You can use different SSL certificates for 
the same ip address and different port numbers:


https://your_domain_1:4430
https://your_domain_2:4431

etc. (where your_domain_1 and your_domain_2 have the same IP, and you 
have different certificates from them).


You can also use many host names with the same IP address and port 
number, but they will have to share the same SSL certificate. It is not 
a problem, if they are subdomains, and you own a wildcard certificate. 
Example:


https://sub1.yourdomain.com
https://sub2.yourdomain.com
https://sub3.yourdomain.com

etc. (where you have a wildcard certificate for *.yourdomain.com)

And finally, it is possible to use different domains and the same port, 
without wildcard certificate or subdomains, but then all connecting 
clients will complain about the problem (e.g. certificate belongs to a 
domain that differs from the one you are connecting to.) For any serious 
projects, this is not recommended. You cannot expect customers sending 
you private information on a website that cannot identify itself...


Best,

   Laszlo

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


Invisible process killing the CPU

2007-02-16 Thread Laszlo Nagy

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.

The system is FreeBSD 6.1.

Thanks,

  Laszlo


# top -S -ocpu
last pid: 62029;  load averages:  1.23,  1.49,  
1.23 up 11+05:54:11  
15:19:38

110 processes: 3 running, 88 sleeping, 1 zombie, 18 waiting
CPU states: 75.0% user,  0.0% nice, 24.2% system,  0.8% interrupt,  0.0% 
idle

Mem: 104M Active, 90M Inact, 99M Wired, 25M Cache, 60M Buf, 174M Free
Swap: 5120M Total, 172K Used, 5120M Free

 PID USERNAME THR PRI NICE   SIZERES STATETIME   WCPU 
COMMAND

  11 root   1 171   52 0K 8K RUN226.8H  0.00% idle
  13 root   1 -32 -151 0K 8K WAIT   154:02  0.00% 
swi4: clock sio

 245 root   1  960  3500K  1948K select  57:11  0.00% ppp
  20 root   1 -68 -187 0K 8K WAIT31:23  0.00% 
irq19: rl0
1021 root   2  200  6308K  4208K kserel  30:54  0.00% 
python
  21 root   1 -64 -183 0K 8K WAIT28:18  0.00% 
irq20: atapci0
  31 root   1 -68 -187 0K 8K WAIT26:59  0.00% 
irq23: vr0
   4 root   1  -80 0K 8K -   20:13  0.00% 
g_down
  12 root   1 -44 -163 0K 8K WAIT15:57  0.00% 
swi1: net

   3 root   1  -80 0K 8K -   11:06  0.00% g_up
  39 root   1  200 0K 8K syncer   5:36  0.00% 
syncer
  36 root   1  -8 -127 0K 8K pgzero   4:36  0.00% 
pagezero
  15 root   1 -160 0K 8K -4:17  0.00% 
yarrow

 718 bind   1  960  4752K  3564K select   3:26  0.00% named
   7 root   1  -80 0K 8K m:w1 2:43  0.00% 
g_mirror gm0
 366 root   1  960  1300K   836K select   2:36  0.00% 
syslogd
  40 root   1 -160 0K 8K sdflus   1:02  0.00% 
softdepflush
  45 root   1 -160 0K 8K -0:59  0.00% 
schedcpu

17794 root   1  960  8272K  4408K select   0:50  0.00% smbd
  37 root   1 -160 0K 8K psleep   0:44  0.00% 
bufdaemon
   2 root   1  -80 0K 8K -0:28  0.00% 
g_event

 827 root   1  960  5020K  2008K select   0:26  0.00% nmbd
  38 root   1  -40 0K 8K vlruwt   0:21  0.00% vnlru
1101 dovecot1   40  2540K  1700K kqread   0:18  0.00% 
imap-login
 953 root   1   40  1396K   972K kqread   0:16  0.00% 
dovecot
1100 root   1   40  1612K  1036K kqread   0:14  0.00% 
dovecot-auth



___
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 Laszlo Nagy



Whats the output of systat -vmstat 1 ?

I have never used this command, so I do not know what it means. :-)


   1 usersLoad  1.08  1.13  1.12  Feb 16 17:16

Mem:KBREALVIRTUAL VN PAGER  SWAP PAGER
   Tot   Share  TotShareFree in  out in  out
Act  132968   13828   43505616452  276648 count
All  229824   2154024240645227628 pages
Interrupts
Proc:r  p  d  s  wCsw  Trp  Sys  Int  Sof  Flt910 cow1014 total
1   62  1165 670221721  5154 6425  62152 wire1: 
atkb
   61680 act 4: 
sio0
18.2%Sys   0.0%Intr 81.8%User  0.0%Nice  0.0%Idl   104784 inact 3 
19: rl0
||||||||||   2224 cache   
20: ata
=   274424 free  5 
23: vr0
 daefr  1006 
cpu0: time

Namei Name-cacheDir-cache4965 prcfr
   Calls hits% hits% react
   6641059487   90   pdwake
4435 zfodpdpgs
Disks   ad4   ad6  18 ozfod   intrn
KB/t   0.00  0.00 %slo-z61456 buf
tps   0 05546 tfree39 dirtybuf
MB/s   0.00  0.00   35656 desiredvnodes
% busy0 04901 numvnodes
1861 freevnodes


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


sendmail not working?

2007-03-14 Thread Laszlo Nagy


 Hi All,

Got a problem with FreeBSD 6.2 (upgraded from 6.1): cron is not sending 
out e-mails. However, it is running:


messias# ps ax | grep cron
988  ??  Ss 0:01.86 /usr/sbin/cron -s

But, if I write this into the crontab of root:

SHELL=/bin/csh
* * * * * echo Test


then I do not get any e-mail. This machine has an ssh tunnel that 
forwards TCP/25 port to another machine. Postfix is installed on this 
machine, but it is not enabled. I believe that sendmail should work for 
local addresses, even if the SMTP server is not listening locally. At 
least, sendmail(8) tells this:


man 8 sendmail
  With  no  flags, sendmail reads its standard input up to an 
end-of-file
  or a line consisting only of a single dot and sends a copy of 
the  mes-
  sage  found  there  to  all of the addresses listed.  It 
determines the

  network(s) to use based on the syntax and contents of the addresses.

  Local addresses are looked up in  a  file  and  aliased  
appropriately.

/man 8 sendmail

Here is a quick test that I did:

messias# sendmail gandalf
Test2
.
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



I have many scripts that I would like to run from cron. Probably they 
throw errors, but I have no clue what are those errors, because I'm not 
getting mails from cron. What should I do?


Another question: is it possible to setup cron so that it uses a 
different SMTP server for sending e-mails? If so, can I specify this for 
one user only? Well, the obvious solution would be to create a special 
user and create a .forward file, right?


Thanks in advance,

  Laszlo

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


Xvfb + VNC

2007-03-16 Thread Laszlo Nagy


 Hello,

I could install gdm with Xorg and vnc.so module loaded. This is fine, 
now I can access that X server with vnc. The problem is that the Xorg 
server needs a video card. So if somebody connects a montior to that 
server while I'm working from home then he/she will see what I'm doing. 
(I cannot restrict physical access to that computer, but I do not want 
others to see my desktop...)


My idea is to create a virtual framebuffer server with Xvfb,  and load 
vnc.so module there. Since vnc.so can be password protected, in theory, 
nobody will have access to that X session, except me. But I cannot do 
this. Xvfb(1) tells me that it has the same options that Xserver(1) has. 
The Xserver(1) does not tell me anything about loadable modules, but X 
is a symlink to Xorg. Well, Xorg has a -config option but Xvfb does not. 
:-( Does it mean that I cannot load vnc.so into the virtual 
framebuffer server?


Is there a better solution?

In my dreams:

1. I would run a virtual X server, that is not visible directly (not 
requiring any video card)

2. I would access this X server with some program remotely (preferrably VNC)
3. This remote access needs to be secure to some extent
4. This remote access should be fast enough to use through a DSL connection

Can my dreams come true?

Thanks,

  Laszlo

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


esddsp

2007-03-17 Thread Laszlo Nagy


   Dear List,

I would like to use esddsp to forward sounds from a server to several 
diskless clients. All clients have sound cards, and the esd daemon 
started with


esd -promiscuous -tcp -pubic -port 1500


On the server side, I can play an mp3 file with


esddsp -v -s earth.msnet:1500 mpg123 something.mp3

My problem is that esddsp creates the pseudo device for the given 
process only. In other words, /dev/dsp is not inherited by child 
processes. For example doing


esddsp -v -s earth.msnet:1500 x11amp

will not work, because x11amp uses a different process for decoding. 
What I would like to do is to have all gnome2 system sounds, x11amp, 
firefox/flash sounds etc. working. But of course, it is not a good idea 
to start everything with esddsp, and in many cases it is not possible at 
all. Question is, is there a way to tell esddsp that the created pseudo 
dsp device should be used for all applications?


Thanks,

  Laszlo



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


Disappearing files, created from /etc/X11/Xclients

2007-03-20 Thread Laszlo Nagy


 Hi,

I'm running several diskless boxes. They connect to the same server with 
xdmpc (gdm). When a user logs in, the WM is started by script 
/etc/X11/Xclients:


#!/bin/sh
xmodmap /etc/X11/xmodmap.hun
exec /etc/X11/startwm.py

You can find the startwm.py script at the end of this e-mail. Most 
importantly, I wanted to save client IP addresses and the date of the 
login into different files. These files are located under 
/tmp/disklessips/*. Rights for /tmp/diskless is octal 42777:


drwxrwsrwx  2 root users 512 Mar 20 14:41 disklessips

The strange thing is that, if I login with user 'gandalf' who is in 
'wheel', the files are created and saved into 
/tmp/disklessips/gandalf.txt and /tmp/disklessips/gandalf.history.txt. 
But if I login with any other user (they are in group 'users'), no files 
are created, but the window manager IS started. The startwm.py program 
creates these files BEFORE starting gnome, and it does throw an error. 
So they must have been created, but I do not see them anywhere. They 
simply disappear. Never existed? Any thoughts?


Thanks,

  Laszlo



#!/usr/local/bin/python
import os
import datetime

WM = exec dbus-launch --exit-with-session gnome-session

# Extract client IP
display = os.environ['DISPLAY']
idx = display.find(':')
remotehost = display[:idx]
os.environ['REMOTEHOST'] = remotehost

# Save client IP
ddir = '/tmp/disklessips'
fout = file('%s/%s.txt'%(ddir,os.getlogin()),'wb+')
fout.write(remotehost)
fout.close()
# Save history
fout = file('%s/%s.history.txt'%(ddir,os.getlogin()),'ab+')
fout.write( datetime.datetime.now().isoformat()[:19] + '\t' + remotehost 
+ '\n' )

fout.close()

os.system(WM)

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


Re: Disappearing files, created from /etc/X11/Xclients

2007-03-20 Thread Laszlo Nagy


Unfortunately, I cannot debug this way. The error is that no files 
are created by normal users, so I cannot use files for logging. Also 
there is no console because this is the /etcX11/Xclients script, e.g. 
it is executed by gdm after logging in to X window system through 
xdmpc. Well, I might setup an xml rpc server for logging, but hey, if 
I cannot write into a wicked file then I should not start with 
complex protocols and networking.


Humour me.  Try opening a fixed filename in a location which you 
double-check is world-writeable.  E.g. /tmp/FOO and print all your 
relevant variables there.  If it works as gandalf, then delete that 
trace file and try as a non-working user.


If that fails, then try opening the file in the home directory of the 
user who you are testing as.
I tried this before I wrote to this list. It does not work. No 'normal' 
users can create these files  from /etc/X11/Xclients. But after gnome 
starts up, they can create these files. If I login with a normal user 
and I try to re-run /etc/X11/Xclients then the files gets created, and 
finally I get an error message telling that gnome is already running.

If that fails then you can try logging them with syslog.

How can I do that from Python? :-) I tried this:

from syslog import *
syslog(|LOG_INFO | LOG_USER, 'test')

No exception raised but I found nothing under /var/log.|


Are you sure that if say the file() fails, that a window manager won't 
start anyway?  You can test that by making the filename something 
clearly non-existent.
To your request, I changed the ddir variable to '/nonexistent', and 
gnome was started! So you found the problem! Thanks! :-)


It was that gdm started /usr/local/etc/gdm/Xsession. That script started 
/etc/X11/Xclients but ONLY for user gandalf. It is because I selected 
'use system default session' in gdm before logging in. It was months 
ago, and I forgot it. Other users were using the default gnome session, 
e.g. they were NOT executing the Xclients script.


Thank you again!

  Laszlo

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


gmplayer freezes with esd

2007-03-21 Thread Laszlo Nagy

Hi!

I tried to send the output of gmplayer to another computer. The other 
computer is running an esd daemon. It works fine except that the volume 
is always at 100%. If I try to change the volume inside gmplayer then it 
freezes immediately. I guess it is because it tries to use /dev/mixer 
but I do not have any sound card installed on the machine where gmplayer 
is running. I also tried to use software mixer but it did not work. It 
is a bug in gmplayer, or in esd?


I also tried esddsp with -m, which SHOULD enable mixer support:

esddsp -m -s 192-168.0.130:1500 mplayer test.wav

but mplayer tells me that it could not connect to /dev/dsp. Strange, 
because the same works with mpg123.


I know that this is not strictly FreeBSD related but ESD is not under 
active development. The last news on their site is from March 5, 2000. 
Probably many of you are using Esd because it is the default sound 
daemon for gnome, this is why I dare to ask here. Plese write me if you 
have any suggestion, any idea how to replace ESD with something that 
works with gnome and has working mixer support. All I need is to forward 
all sounds from one machine to another.


Thanks,

  Laszlo

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


Undefined symbol pthread_create?

2007-03-21 Thread Laszlo Nagy
I updated my ports tree 3 days ago, and did portupgrade -a 
successfuly. I'm trying to play an mp3 file with this command:


%padsp mpg123 test.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
/libexec/ld-elf.so.1: /usr/local/lib/libpulse.so.0: Undefined symbol 
pthread_create


Can it be that audio/pulseaudio is broken? Looks like a missing 
dependency or a missing patch ( -lpthread? ) of the source code.


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: Copy/move files between Windows and FreeBSD

2007-03-26 Thread Laszlo Nagy

Ivan Voras írta:

Nagy László Zsolt wrote:


 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?


Have you tried cygwin?

Thanks, this is the first I'll try. Since I was using pscp, it will be
the less pain to use scp from openssh for windows. I hope it will work.

  Laszlo


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


interpreting uptime output

2007-03-29 Thread Laszlo Nagy

From the manual:

NAME
 uptime -- show how long system has been running

SYNOPSIS
 uptime

DESCRIPTION
 The uptime utility displays the current time, the length of time 
the sys-
 tem has been up, the number of users, and the load average of the 
system

 over the last 1, 5, and 15 minutes.

This is great, except that it does not tell me what 0.5 means? Example:

1:41PM  up 5 days,  2:22, 4 users, load averages: 0.36, 0.42, 0.51

The only referenced material in the man page is w(1) which tells this:

 The load average numbers give the number of jobs in the run queue 
averaged over 1, 5 and 15 minutes.


What are those jobs? I guess they are not processes. What is that run 
queue? Which is better, the lower or the higher number?


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: interpreting uptime output

2007-03-29 Thread Laszlo Nagy




A job is a runnable process.  The run queue is a list containing the 
processes which are runnable at a particular time.  Lower numbers 
indicate lower CPU load.  From man getloadavg:


Hmm. Somebody could modify the man page of uptime and add a reference to 
getloadavg. Do you think this would be a good improvement?


By the way, thank you for the information. Since I have two processors 
now I know that I do not need to worry below 2.0. :-)


 Laszlo

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


Re: TCP/IP questions

2007-11-08 Thread Laszlo Nagy

Bram wrote:

Nikos Vassiliadis schreef:

On Wednesday 07 November 2007 18:02:44 Bram wrote:
 

Hi all,

Can you change the timeout for a tcp connection ?
I need to do the following: start a tcp connection , unplug the network
cable (it's actually wifi but the effect is the same),send some data
over the connection,wait 20 seconds , reinsert the network cable and
just keep working.
When you normally do this the connection will be dead.
Is there a way in freebsd to change this ? are there parameters wich 
you

can set so that the above would work (20 seconds without network can
happen) ?



TCP using the default FreeBSD settings, can survive
20 secs of inactivity. It can be an application forced
timeout. What application/protocol are talking about?

Nikos
  

This is the more full explanation:

I have setup a mobile pc to roam across our building.
By reducing the dwell time and changing the channel list to only the 
channels I use roaming now works within ten seconds en sometimes 
within one or two seconds.
The previous configuration was with fedora and there I was unable to 
get roaming time under 25 seconds.


I do have one very annoying problem however and I have no idea how to 
solve it.
The software uses psycopg (a python postgresql module) wich uses the 
standard system parameters for connections (At least that is what I 
think).
-On fedora if the connection gets lost and it takes 30 seconds to 
remake a new connection operation is not interupted, after the 30 
seconds you get the data you've been waiting for.
-On freebsd however we get it a lot that the connection is lost, you 
can easily start a new connection wich works fine, but the old 
connection you wore using stops working and the app. hangs (If I had 
to guess I would say that roaming works about 95% of the time and the 
connection is lost about 5% of the time).


I also get a lot of IFDOWN IFUP messages but this seems normal to me.

I am now going to program something in twisted using udp to see if 
this works better.


Did you try to use some RPC library? You can have the psycopg connection 
on the server side, and use it through an object broker. You will 
probably find an object broker that can even survive a TCP reconnect. 
Then you do not need to rewrite the whole program.


Well, it is just an idea, may not be applicable for you.

Regards,

  Laszlo

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


How to set maximum disk cache size?

2007-11-15 Thread Laszlo Nagy


 Hi All,

Is there a way (sysctl?) to tell FreeBSD (6.2 RELEASE) how many memory 
can it use for caching file data from disk?


It might be that FreeBSD will use all available RAM, and reduce the 
cache size whenever a program wants to allocate more memory. It is my 
hope, but I could not find the documentation. RTFM is fine with me but 
please give a keyword where I can start. :-)


  Laszlo

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


Re: How to set maximum disk cache size?

2007-11-16 Thread Laszlo Nagy

Ivan Voras wrote:

Bruce Cran wrote:
  

Wojciech Puchar wrote:


Laszlo wrote:
  

Hi All,

Is there a way (sysctl?) to tell FreeBSD (6.2 RELEASE) how many
memory can it use for caching file data from disk?

It might be that FreeBSD will use all available RAM, and reduce the
cache 


it already does
  

It may seem strange since it's generally accepted that you can never
have enough disk cache, but FreeBSD apparently doesn't actually use all
the free memory for caching.  By default it uses up to 256MB for



This is wrong. See
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/vm-fileio.html
  

I read this too but I don't understand. Too difficult for me.

So what is the answer? Do I need to set a sysctl or will FreeBSD use all 
available free memory for caching file data from disk?


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: How to set maximum disk cache size?

2007-11-16 Thread Laszlo Nagy

Bruce Cran írta:

Wojciech Puchar wrote:
 Laszlo wrote:

Hi All,

Is there a way (sysctl?) to tell FreeBSD (6.2 RELEASE) how many 
memory can it use for caching file data from disk?


It might be that FreeBSD will use all available RAM, and reduce the 
cache 

it already does


It may seem strange since it's generally accepted that you can never 
have enough disk cache, but FreeBSD apparently doesn't actually use 
all the free memory for caching.  By default it uses up to 256MB for 
buffering/caching and there's no way it can use all available memory 
on i386 in machines with more than 1GB installed since the 
buffer/cache is allocated from KVM and the default maximum is 1GB.  
You can increase the amount of memory used, but it might not help - 
there's a thread on performance@ from 2004 which describes how it all 
works; see 
http://lists.freebsd.org/pipermail/freebsd-performance/2004-April/000785.html 

The information there is quite old now though so I don't know if 
things are done differently in 6.x.
OK, and how about amd64 arch? The reason I ask this is that we have a 
big postresql database (over 3GB) and PostgreSQL rely on the OS for 
caching files in memory. This database is mostly read-only, so it would 
be nice to use all free memory for caching. Especially that this machine 
is the database server, it does nothing else. Now, it is an i386 but we 
are about to migrate to AMD X2, then we can put in 8GB of memory. But 
only if the OS can use if for caching. Otherwise it would be useless.


Thank you for the link. That thread is quite old - things might have 
changed.


Thanks,

   Laszlo

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


mount -u -o rw / not working on NFS?

2007-11-19 Thread Laszlo Nagy


 Hi All,

I have a system where a diskless FreeBSD 6.3 i386 machine boots with pxeboot 
from a FreeBSD 6.3 amd64 machine. I have lines in /etc/fstab for the diskless 
machine like:

# DeviceMountPoint  FsType  Options DumpPass
172.16.0.1:/usr /usrnfs rw  0   0
172.16.0.1:/mnt/d2/rootfs/root  /root   nfs rw  0   0

The machine boots from network nicely, then I can login as root and invoke 
these commands:

mount -u -o rw /
mount -u -o rw /usr
mount -u -o rw /root

There is no error message on the console, nor in the system log. However, this 
happens afterwards:

diskless101#mkdir /aaa
mkdir aaa: Read-only file system

Question: if the remount did not succeed, why didn't it throw an error? If 
succeeded, why can't I write on the filesystem?

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: permissions for www acting strangely

2007-11-19 Thread Laszlo Nagy

Steve Franks wrote:

Few weeks ago, I installed apache22.  Just wanted to put up some
family photos.  Whenever I tried to connect, got a apache doesn't
have permisson to acess ~/. on this system or somesuch.  The only way
to get around it appeared to be a chmod 777 on my pic folder (no luck
with 775!).  Now I restored some stuff from a backup over my photos,
and now 777 won't work either.  Is there something fundamental about
permissions I am totally missing?
  
Look at your apache config file. Most probably, 
/usr/local/etc/apache22/httpd.conf.


Look for User and Group options - it tells you the user and group 
apache is running under.


Now look at the ownership of your files and directories. Apache needs to 
have rx on directories and r on file to read them.


One common approach for this problem is to set the set group id bit on 
your folder containing your photos, and do


chown user1:group1 -R yourfolder


Where:

   user1- can be you (?)
   group1 - should be the group apache is running under


Well, it is just a bad example. You need to develop your own strategy 
for security. They key is that you also need to check ownership. It is 
not enough to chmod, sometimes you need to chown.


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: mount -u -o rw / not working on NFS?

2007-11-19 Thread Laszlo Nagy



diskless101#mkdir /aaa
mkdir aaa: Read-only file system

Question: if the remount did not succeed, why didn't it throw an error? If 
succeeded, why can't I write on the filesystem?




The answer to the second portion is that you're mounted as a read only
file system, so there's no write access.
  
You were right. Actually I had /etc/exports file setup correctly, but I 
forgot to invoke killall -HUP mountd after the last change. My bad. :-(


But... I'm still interested in the first portion. Why didn't I get an 
error message if the nfs share was read-only?

There's an nfs permissions file you may need to edit, /etc/exports/,
which controls whether NFS shares the file system as read only, read
write, whether root can have root on the file system etc.
  


The case is solved, but I still have this question. :-)

Thanks,

  Laszlo

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


gdm-binary: Unable to connect to socket: hostname nor servname provided

2007-11-20 Thread Laszlo Nagy


 Hi All,

Do you have any idea what is the problem with my settings? gdm places 
this message in /var/log/messages:


Nov 20 12:19:05 cassiopeia gdm-binary[1167]: ERROR: Unable to connect to 
socket: hostname nor servname provided, or not known aborting...


The local X server starts, but gdm is not accepting connections on 
TCP/177. This is the problem, because I want many clients connect to 
this computer with xdmcp.


My ports tree was first downloaded via portsnap fetch three days ago. 
All ports have been compiled from this ports tree.  My 
/usr/local/etc/gdm/custom.conf file has these modifications:


snip
[security]
DisallowTCP=false

[xdmcp]
Enable=true
/snip

Here is some more information:


snip
cassiopeia# uname -a
FreeBSD cassiopeia.ronet 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Thu 
Nov 15 17:19:45 EST 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA  amd64

cassiopeia# hostname
cassiopeia.ronet
cassiopeia# cat /etc/resolv.conf
search ronet
nameserver 192.168.0.1
cassiopeia# host cassiopeia
cassiopeia.ronet has address 192.168.0.1
cassiopeia# ipfw show
00050 4320 696526 divert 8668 ip4 from any to any via rl0
00100  112   8560 allow ip from any to any via lo0
002000  0 deny ip from any to 127.0.0.0/8
003000  0 deny ip from 127.0.0.0/8 to any
65000 4320 696526 allow ip from any to any
655350  0 deny ip from any to any
cassiopeia# pkg_info | grep gdm
gdm-2.20.1_1GNOME 2 version of xdm display manager
cassiopeia#ifconfig
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet 192.168.1.105 netmask 0xff00 broadcast 192.168.1.255
   ether 00:0e:2e:8f:13:03
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING
   inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
   ether 00:1a:4d:7b:cf:d6
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet 127.0.0.1 netmask 0xff00
cassiopeia# cat /etc/rc.conf
moused_flags=
moused_port=/dev/psm0
moused_type=auto
moused_enable=YES

gateway_enable=YES
hostname=cassiopeia.ronet

ifconfig_rl0=inet 192.168.1.105 netmask 255.255.255.0
ifconfig_re0=inet 192.168.0.1 netmask 255.255.255.0

firewall_enable=YES
firewall_type=/etc/ipfw.conf

local_startup=/usr/local/etc/rc.d

gnome_enable=YES


inetd_enable=YES  # TFTP
named_enable=YES  # DNS cache, local DNS 
(diskless1XX.ronet)


dhcpd_enable=YES  # dhcpd enabled?
dhcpd_flags=-q# command option(s)
dhcpd_conf=/usr/local/etc/dhcpd.conf  # configuration file
dhcpd_ifaces=re0  # ethernet interface(s)
dhcpd_withumask=022   # file creation mask


nfs_server_enable=YES
nfs_reserved_port_only=YES
rcpbind_enable=YES
mountd_flags=-r
rpc_lockd_enable=YES
rpc_statd_enable=YES

natd_enable=YES
natd_interface=rl0
natd_flags=

/snip

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: gdm-binary: Unable to connect to socket: hostname nor servname provided (SOLVED)

2007-11-21 Thread Laszlo Nagy
The problem was that gdm was compiled with IPv6 support but the kernel 
wasn't. This should not cause the gdm process to freeze and only exit 
with kill -9 right?



Thanks,

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


xdmcp not working

2007-11-21 Thread Laszlo Nagy

 Hi,

On a client machine I invoke this command:

X -broadcast

On the server side, gdm is runnning with [debug] enabled=true and this is 
logged:

Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: decode_packet: GIOCondition 
1
Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Received opcode 
QUERY from client :
Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: gdm_xdmcp_host_allow: 
client-hostname is 192.168.0.139
Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Sending WILLING to
Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: decode_packet: GIOCondition 
1
Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Received opcode 
QUERY from client :
Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: gdm_xdmcp_host_allow: 
client-hostname is 192.168.0.139
Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Sending WILLING to

This is repeating continuously. On the client side, I see the X server with 
gray background, without windows.


ipfw on the server side (running gdm):

00100 624 60642 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
65000 79294 34601476 allow ip from any to any
65535 0 0 deny ip from any to any

IPFIREWALL is not enabled on the client (X server) side.

What did I 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: xdmcp not working

2007-11-26 Thread Laszlo Nagy

Laszlo Nagy wrote:

On a client machine I invoke this command:

X -broadcast

On the server side, gdm is runnning with [debug] enabled=true and this 
is logged:


Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: decode_packet: 
GIOCondition 1
Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Received 
opcode QUERY from client :
Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: 
gdm_xdmcp_host_allow: client-hostname is 192.168.0.139
Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Sending 
WILLING to
Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: decode_packet: 
GIOCondition 1
Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Received 
opcode QUERY from client :
Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: 
gdm_xdmcp_host_allow: client-hostname is 192.168.0.139
Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Sending 
WILLING to


This is repeating continuously. On the client side, I see the X server 
with gray background, without windows.



ipfw on the server side (running gdm):

00100 624 60642 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
65000 79294 34601476 allow ip from any to any
65535 0 0 deny ip from any to any

IPFIREWALL is not enabled on the client (X server) side.

What did I wrong?
I posted this 5 days ago, and nobody answered. What can I do? Should I 
re-post after a week? (Nobody knows the answer, or - hopefully - the guy 
who knows the answer did not read the question?)


(I tried to look for a FAQ but I could not find it here: 
http://lists.freebsd.org/mailman/listinfo/freebsd-questions )


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: xdmcp not working

2007-11-26 Thread Laszlo Nagy



I read your email about gdm and xdmcp

My setup for 2.20 does not work at all
so I installed the old   2.18.3 from the ports,
(I build the package from the ports) and it works
just ok as before...

I think there is a bug in the 2.20/2.21 xdmcp code... I
had no time to fix ...
  

Thank you for your quick answer. I did this:

cd /usr/ports/x11/gdm
/usr/local/etc/rc.d/gdm stop
make deinstall
pkg_add -r gdm

I got many warning messages, but finally it started to work!

Is this a know bug? Should we report it or is it already reported?

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]


skype cannot login

2007-11-28 Thread Laszlo Nagy


 Hi All,

My network configuration is a bit odd:

Internet --- SMC Hardware Router  
(192.168.1.0/225.255.255.0) --- FreeBSD Gateway --- 
(192.168.0.0/255.255.255.0) --- Client computer



- skype is running on the client computer.
- The FreeBSD Gateway is a computer with two NIC cards, running natd, 
and named
- The client computer is 6.3-PRERELEASE i386 using linux compatibility 
mode for skype


I can access everything on the internet from the client. Here are some 
things that I tried:


- ping
- nslookup
- smtp
- imaps
- www

All the above work fine. However, when I try to login with skype, it 
tells me Logging in failed. When I try to register a new user, it 
tells me Register failed with friendly red letters.


Do you have any idea what is the problem with my configuration? It might 
be that skype cannot do NAT traversal through two NATs?


BTW, the client computer uses NFS to mount /, but I hope this is not 
related to the problem.


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: remove X11

2007-11-28 Thread Laszlo Nagy

Jeff Maxwell wrote:

I have X11 installed on a server 6.1.

Is there an easy way to remove it all?

Do I have to remove each package individually?
Suppose you have installed the xorg server, you could remove it easily. 
But it also matters how you installed. If you did it from ports, you can 
probably


cd /usr/ports/x11/xorg
make deinstall

I recommend that you read these manual pages:

pkg_info
pkg_add
pkg_delete
pkg_deinstall   (might not be on your system)


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: skype cannot login

2007-11-28 Thread Laszlo Nagy

Rodolfo Pellegrino wrote:

On Nov 28, 2007 2:29 PM, Laszlo Nagy [EMAIL PROTECTED] wrote:

  

 Hi All,

My network configuration is a bit odd:

Internet --- SMC Hardware Router 
(192.168.1.0/225.255.255.0) --- FreeBSD Gateway ---
(192.168.0.0/255.255.255.0) --- Client computer


- skype is running on the client computer.
- The FreeBSD Gateway is a computer with two NIC cards, running natd,
and named
- The client computer is 6.3-PRERELEASE i386 using linux compatibility
mode for skype

I can access everything on the internet from the client. Here are some
things that I tried:

- ping
- nslookup
- smtp
- imaps
- www

All the above work fine. However, when I try to login with skype, it
tells me Logging in failed. When I try to register a new user, it
tells me Register failed with friendly red letters.

Do you have any idea what is the problem with my configuration? It might
be that skype cannot do NAT traversal through two NATs?

BTW, the client computer uses NFS to mount /, but I hope this is not
related to the problem.

Thanks,

  Laszlo

Lazlo,



 I've found a similar problem, but in Skype there are a configuration in
Tools that tells Skype the port to use. Try port 80 as I did and worked.
  
All items in the tools menu are greyed out for me, except for Select 
Language. I see an item called Options... but it is not available.


Skype version is:  1.2.0.18_API

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: remove X11

2007-11-28 Thread Laszlo Nagy



Do I have to remove each package individually?
  

Suppose you have installed the xorg server, you could remove it
easily. But it also matters how you installed. If you did it from
ports, you can probably

cd /usr/ports/x11/xorg
make deinstall




That just deletes the metaport (which is purely a list of dependencies),
try:

ports-mgmt/pkg_cutleaves
  

I stand corrected. :-)

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


Share folder over internet

2007-08-16 Thread Laszlo Nagy

 Hi All,

Here is a problem that I cannot solve. I have two offices with two file servers 
(FreeBSD 6.1). Clients are accessing files over samba and nfs (on the local 
server). I would like to share some directory structures between the two 
offices. Originally I was thinking about sshfs (mount_sshfs) but I cannot 
compile fuse from the ports. NFS cannot share subdirectories, only whole 
filesystems and it is not secure to use over the internet.

Security inside the LAN is not important. Most of these folders are put everything 
into it type, e.g. anyone can do anything with them. The users usually store doc, 
pdf, xls/gnumeric and txt files in them.

I'm not interested in solutions where the end user needs to use a special 
program to access the files. For example, gftp is not an option. This is 
because these users sometimes does not know what a file is. I need nautilus 
integration, and mounting/mapping so the files can be opened from any program 
using file/open.

What should I use?

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: Share folder over internet

2007-08-16 Thread Laszlo Nagy


You need to create a VPN connection between your two offices.  You can 
do this in a variety of ways, but probably the best solution would be 
to have static IP's for both offices and a router that has hardware 
support for VPNs at each office.  You can connect the two offices via 
a VPN connection from router to router.
Well, we do not have static IP addresses, and the routers does not 
support VPN. Also I do not like the idea of VPN because I feel that 
would forward more packets than needed. I may be wrong. :-)


Although we do not have static IP, we have DDNS. Is it possible to do 
VPN from one FreeBSD box to another and then what? Mount nfs? Mount 
smb? I can mount a remote smb volume then share it with another smb 
server, but it looks wreid to me and I'm also concerned about speed. I 
believe smb is not optimized for speed. If I have to use VPN then I 
would like to use the most traffic-efficient method over VPN. Can you 
suggest something?


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: Share folder over internet

2007-08-16 Thread Laszlo Nagy

Peter Svec wrote:

Hello Laszlo,

you don't need static IP address if you use hamachi. It is zero 
configuration VPN tool, which creates peer-to-peer tunnel between two 
host (with static or dynamic addresses). The problem is, that hamachi 
isn't in the ports yet. Take a look at 
http://www.freebsd.org/cgi/query-pr.cgi?pr=112982 and 
https://secure.logmein.com/products/hamachi/vpn.asp


peter
Sounds great. I'll ask my ISP about the fix IP though. Thank you for 
your answers!


  Laszlo

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


Re: Share folder over internet

2007-08-16 Thread Laszlo Nagy



Unless I'm very confused, BSD NFS can export directories and directory
trees in addition to filesystems.  See export(5).  Internet security
should be attainable with an appropriate firewall configuration that
allows the servers to only talk to each other.
  
IMHO you can export directory trees (-alldirs option), but if you do 
that then you can list each file system in /etc/exports only once. So it 
is impossible to export some (different) directories from a filesystem, 
but not others. But again, this is not a big problem when I use a VPN 
connection between the two file servers only.


Coda is looks VERY interesting! :-) Two key features:

high performance through client side persistent caching
continued operation during partial network failures in server network

Promising. I'm going to try it and let you know how it goes.

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: Share folder over internet

2007-08-16 Thread Laszlo Nagy



I often suggest Coda (ports/net/coda6_server  coda6_client) for this
sort of situation, but it has been so many years since I've used it
myself that I don't know what state it is in these days. I hope the
documentation has improved. Note the client runs on the local file
server, so you don't need to change anything on end-users'
workstations.
  
If it really has client side caching then it can be better than NFS. 
However, I just found this on their official website:


snip
There were several sweeping changes in freebsd, and in the case where 
the developers didn't exactly know how to solve it for Coda, they just 
removed the related code. For instance, they don't support vget with a 
device/inode number pair anymore, so they simply removed the complete 
coda_open codepath. As a result it is impossible to open any files or 
directories in /coda with the current fbsd kernel module.

/snip

Now I'm starting to loose my enthusiasm about FreeBSD!

- sshfs works for Linux, but not for FreeBSD, although ssh is open 
source and well documented. The guy who developed it says that he could 
not implement fuse very well because the source code of the FreeBSD 
kernel is a mess, can this be true?
- WEB-DAV fs works for Linux but not for FreeBSD, although DAV is well 
documented. Why?
- Coda client does not work correctly because of... lack of kernel 
developers?


Most suprisingly, Gnome 2.18 and nautilus CAN use WEB-DAV (both http and 
https), and it can also mount sshfs. But this is useless for me 
because I cannot really mount them, they are available in gnome vfs 
only. I see signs... is it really the kernel that prevents me from doing 
what I need to do?


Today I also had trouble with mozilla flashplugin. It simply does not 
work, except with linux-firefox, but then Java stops working. 
Unfortuntely, I need to use both of them together. Skype does not work 
very well with FreeBSD, only in linux compat mode etc.


I like the idea of having only one, consistent distribution, and having 
a ports tree and I see other advantages of FreeBSD but I'm starting to 
think that using it as an application server was a bad idea from my 
part, simply because the lack of working - otherwise widely used - 
applications.


Sally... I'm sorry, it is late night here and I failed to solve 5 
problems today. All of them could have been solved with one click on 
Linux or even M$ Windows. :-(


  Laszlo

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


Re: Share folder over internet

2007-08-17 Thread Laszlo Nagy



It is hardly the freebsd community's fault that Skype / Ebay doesn't create a 
FreeBSD binary. Actually, the linux compatibility layer is one of the great 
things in FreeBSD. Of course, you may be having other issues we can't know 
about until you kindly tell us (on a separate thread pls...)
  
Yes, I agree. I did not tell it is the fault of the FreeBSD community. 
However, when you need to install an application server for a couple of 
diskless X terminals, you should not use FreeBSD. I'm serious. There are 
some very important applications that just don't work. :-(

::shrug:: each solution needs to be considered for the problem. It is, after 
all, your server, feel free to install linux or pay for MS licenses... (btw, 
have ever actually used windows file sharing over a slow link ? whatever 'ease 
of use' you *may* have gain (and i'm not sure how much of that there really is) 
will probably be lost when you consider other factors...)
  
Well, yes. You are right about these factors. In my case, it is almost 
too late to migrate to Linux. It would cost too much and there would be 
other disadvantages too. For some things, FreeBSD is definitely better.


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: Flash

2007-08-17 Thread Laszlo Nagy

Zbigniew Komarnicki wrote:

Hello,

can I ask you for help, how to set up flash in Firefox natively, step by step? 
  
The only native solution I know of is gnash but last time I tried it 
it was very unstable and very slow. I would rather try 
linux-flashplugin7 and linuxpluginwrapper instead. Here is a 
step-by-step guide for you:


http://www.bsdspot.com/blog/archives/31

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: Flash

2007-08-17 Thread Laszlo Nagy



The flash-related questions/answers appeared probably 10 or 15 times on
various FreeBSD lists in last 3-4 months. These threads contain
everything related to installation problems, warning messages and other
problems. In total, if Flash7 and Acrobat plugins don't work inside
native browsers _flawlessly_, then user does something wrong.
  
Oh well, yesterday I had a machine where I installed flash plugin 7 and 
linuxpluginwrapper but it did NOT work until I made symlinks to .so 
files (as given in the aforementioned article). The ports tree was up to 
date, so I'm really not sure what I did wrong. :-)


  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

2007-08-19 Thread Laszlo Nagy



Adobe. For example it runs on many platforms where Adobe's Flash
doesn't run. It will also perhaps soon hit the iPhone.
Useless to say Adobe are not so happy about it ;)
  
We are also not happy about that Adobe ignores other platforms. Blame it 
on them. :-)

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


ssh2 login with public key - not working

2007-08-30 Thread Laszlo Nagy

Hi,

I have to boxes, both are FreeBSD 6.2 -p7. I did this:

[EMAIL PROTECTED]:

ssh-keygen -t dsa
mv ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
chmod 640 ~/.ssh/authorized_keys
scp ~/.ssh/id_dsa [EMAIL PROTECTED]:~/.ssh

[EMAIL PROTECTED]:

mkdir .ssh
cat  .ssh/config

host mybox
   hostname box1
   identityfile /home/user2/.ssh/id_dsa
   compression yes
   cipher blowfish
   protocol 2
^D

Then I try this:

ssh -l user1 mybox

but it asks for a password. I also tried this:

ssh -v -v -v -l user1 mybox

This is what I see (just a part of it):

debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /usr/user2/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug1: Host 'box1' is known and matches the DSA host key.
debug1: Found key in /usr/user2/.ssh/known_hosts:1
debug2: bits set: 526/1024
debug1: ssh_dss_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /usr/user2/.ssh/id_dsa (0x8032410)
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /usr/user2/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:

What is the problem? I could do the same with other computers/users without 
problem. I'm sure that I do something 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: ssh2 login with public key - not working

2007-08-30 Thread Laszlo Nagy




Hi Laszlo.

Isn't it just a matter of adding PasswordAuthentication no to 
/etc/ssh/sshd_config? [At the server end, Captain Obvious prompts me.]


I'll check one of my old systems later but I think that's it...
Well, I have other users using public keys for logging in so the sshd 
config must be correct.
This is the only user that doesn't work. I can login by typing in the 
password but I need to login automatically.


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: ssh2 login with public key - not working

2007-08-30 Thread Laszlo Nagy




Have you checked /var/log/auth.log on machine to which you are trying to
connect?
  

It contains nothing except:

Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from 
81.1.19.245 port 54369 ssh2



Now here is what I did:

1. I deleted user2 with rmuser user2, but I did not delete its home 
directory

2. I re-created the user

Now it is working! It was so confusing that I tried another thing. Then 
I tried this with [EMAIL PROTECTED]:


rm -fr /root/.ssh
cp ~user2/.ssh /root
chown -R root:wheel /root/.ssh
chmod 700 /root/.ssh
chmod 600 /root/.ssh/*
chmod 700 /root
ssh -l user1 mybox

Same problem - not working.

Unfortunately, auth.log on box1 only prints a line when it accepts a 
public key. There are no auth failures because the problem occurs when 
ssh tries to determine the type of the authentication.


Do you have any idea why the recreation of the user solved the problem? 
And how it is possible that using exactly the same ssh config, the root 
user cannot login with a public key? (Obviously, I cannot recreate the 
root user)


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: ssh2 login with public key - not working

2007-08-30 Thread Laszlo Nagy

Laszlo Nagy wrote:




Have you checked /var/log/auth.log on machine to which you are trying to
connect?
  

It contains nothing except:

Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from 
81.1.19.245 port 54369 ssh2

Sorry it was:


Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user1 from 
81.1.19.245 port 54369 ssh2


I cannot use real user and host names and I made a mistake here.

  L

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


Re: ssh2 login with public key - not working (solved)

2007-08-30 Thread Laszlo Nagy




rm -fr /root/.ssh
cp ~user2/.ssh /root
chown -R root:wheel /root/.ssh
chmod 700 /root/.ssh
chmod 600 /root/.ssh/*
chmod 700 /root
ssh -l user1 mybox


Problem solved. I forgot to edit /root/.ssh/config
I still not sure why user recreation worked, but I don't care anymore. 
Thank you for all 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]


sshfs - fuse: failed to open fuse device: No such file or directory

2007-08-31 Thread Laszlo Nagy

I have installed fusefs-sshfs. I tried this:

sshfs [EMAIL PROTECTED]:/usr/fileshare/pub /usr/fileshare/pub
fuse: failed to open fuse device: No such file or directory

sshfs has no manual page, just sshfs -h but it did not help.
I could not find useful information in the archives.
I have tried env FUSE_DEV_NAME=/dev/fuse0 but did not help.
I tried to follow 
http://fuse4bsd.creo.hu/doc/html_single_out/doc.html#hd001003003


but I do not have a kernel module for fusefs (why not???), so I cannot 
do this:


kldload fuse_module/fuse.ko
sysctl vfs.usermount=1


Output of uname -a:

FreeBSD neptunus.msnet 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #6: Thu Aug 
23 21:03:16 CEST 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/NEPTUNUS  i386


Ports tree was updated a week ago and portupgrade -a was completed.
Please help me!

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: sshfs - fuse: failed to open fuse device: No such file or directory

2007-08-31 Thread Laszlo Nagy



Make sure your dependencies are correct:
$ ls /var/db/pkg|grep fuse
fusefs-kmod-0.3.9.p1 
fusefs-libs-2.7.0_1
fusefs-sshfs-1.8
  

Same here. :-)

It should have been installed automatically. Not sure why it didn't.
  
My mistake. I did not add fusefs_enable=YES to rc.conf, because I 
installed fusefs-sshfs from the ports tree. The ports system installed 
fusefs-kmod as a dependency for me, and of course I could not read the 
instructions at the end of the installation. In fact I did not even know 
that there is separate package for this. (What a pity that sshfs has no 
manual.)


After starting the daemon, I get this error:

neptunus# kldstat
Id Refs AddressSize Name
17 0xc040 77e068   kernel
21 0xc0b7f000 15a60geom_mirror.ko
31 0xc0b95000 6810 snd_via8233.ko
42 0xc0b9c000 25828sound.ko
51 0xd0683000 3000 daemon_saver.ko
61 0xd2ffb000 e000 fuse.ko
neptunus# sshfs [EMAIL PROTECTED]:/usr/fileshare/pub /usr/fileshare/pub
fuse: bad mount point `/usr/fileshare/pub': Bad file descriptor
neptunus# ls -l /usr/fileshare/
ls: pub: Bad file descriptor
total 22
-rw-r--r--  1 fileshare  fileshare  767 Aug 30 19:41 .cshrc
-rw---  1 fileshare  fileshare  214 Aug 30 20:12 .history
-rw-r--r--  1 fileshare  fileshare  248 Aug 30 19:41 .login
-rw-r--r--  1 fileshare  fileshare  158 Aug 30 19:41 .login_conf
-rw---  1 fileshare  fileshare  373 Aug 30 19:41 .mail_aliases
-rw-r--r--  1 fileshare  fileshare  331 Aug 30 19:41 .mailrc
-rw-r--r--  1 fileshare  fileshare  797 Aug 30 19:41 .profile
-rw---  1 fileshare  fileshare  276 Aug 30 19:41 .rhosts
-rw-r--r--  1 fileshare  fileshare  975 Aug 30 19:41 .shrc
drwx--  2 fileshare  fileshare  512 Aug 30 19:43 .ssh
neptunus#

This is interesting. Now I have a special node called pub in that 
directory and I cannot delete it. 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: sshfs - fuse: failed to open fuse device: No such file or directory

2007-08-31 Thread Laszlo Nagy



Looks like your mount point didn't exist before connecting.
  

Shouldn't mount_sshfs check it?
No idea how to get rid of that bad descriptor - 

neptunus# /usr/local/etc/rc.d/fusefs stop
Stopping fusefs.
kldunload: can't unload file: Device busy

Neither do I. :-)


but if you:

mkidr /usr/fileshare/mnt
sshfs [EMAIL PROTECTED]:/usr/fileshare/pub /usr/fileshare/mnt

(assuming /usr/fileshare/pub is a directory on server fileshare) things should 
work correctly.


I do hope fileshare isn't the local machine, cause then you're mounting the 
directory on itself using ssh/fuse..eew, messy.
  
That is not the case. I used the same user names on both machines with 
the same uid, so I do not need to use uid mapping.


I have to find out how to get rid of that device node, then I'll try again.
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]


Cannot delete user???

2007-04-13 Thread Laszlo Nagy


 Hi,

I cannot remove the user with 'miller'. pw says it does not exists. 
However, rmuser says that it does exist, but it cannot delete it (I get 
a no such file or directory message). I also tried to re-add this 
user, but it also fails. (I have deleted 'miller' from /etc/passwd, but 
it is no use...) Please see below. How can I remove this user?


Thanks,

  Laszlo



[EMAIL PROTECTED] userdel miller
pw: user 'miller' does not exist: No such file or directory
[EMAIL PROTECTED] miller
Matching password entry:

miller:*:1038:1003::0:0:Thomas Miller:/home/miller:/bin/csh

Is this the entry you wish to remove? y
Remove user's home directory (/home/miller)? y
Removing user (miller): home passwdpw: user 'miller' does not exist: No 
such file or directory

.
[EMAIL PROTECTED]
Username: miller
Full name: Thomas Miller
Uid (Leave empty for default):
Login group [miller]: users
Login group is users. Invite miller into other groups? []:
Login class [default]:
Shell (sh csh tcsh scponly nologin) [sh]: csh
Home directory [/home/miller]:
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username   : miller
Password   : *
Full Name  : Thomas Miller
Uid: 1041
Class  :
Groups : users
Home   : /home/miller
Shell  : /bin/csh
Locked : no
OK? (yes/no): yes
pw: login name `miller' already exists
adduser: ERROR: There was an error adding user (miller).
Add another user? (yes/no):


___
[EMAIL PROTECTED] 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 Laszlo Nagy



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]


ppp is broken???

2007-05-07 Thread Laszlo Nagy


 Hi All,

I have a FreeBSD 6.2 RELEASE system that connects to the internet with 
an ADSL connection. (pppoe). After some hours, it gets disconnected and 
reconnected again. Each time it gets a new IP. The interesting part is 
that the old IP address remains assigned. Here is an example:


tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492
   inet 62.112.215.17 -- 62.112.192.130 netmask 0x
   inet 83.216.40.248 -- 62.112.192.142 netmask 0x
   inet 83.216.56.211 -- 62.112.192.150 netmask 0x
   Opened by PID 241


After the third or fourth connection was made, internet stops working, 
and I have to reboot the computer.  (When there is light traffic on the 
connection, it never gets disconnected.)


This is from /var/log/ppp

May  5 02:05:14 messias ppp[242]: tun0: Phase: deflink: Connected!
May  5 02:05:14 messias ppp[242]: tun0: Phase: deflink: opening - dial
May  5 02:05:14 messias ppp[242]: tun0: Phase: deflink: dial - carrier
May  5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_ACNAME 
(hook adsl)

May  5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May  5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May  5 02:05:15 messias ppp[242]: tun0: Phase: deflink: carrier - login
May  5 02:05:15 messias ppp[242]: tun0: Phase: deflink: login - lcp
May  5 02:05:16 messias ppp[242]: tun0: Phase: bundle: Authenticate
May  5 02:05:16 messias ppp[242]: tun0: Phase: deflink: his = PAP, mine 
= none
May  5 02:05:16 messias ppp[242]: tun0: Phase: Pap Output: 
[EMAIL PROTECTED] 

May  5 02:05:16 messias ppp[242]: tun0: Phase: Pap Input: SUCCESS ()
May  5 02:05:16 messias ppp[242]: tun0: Phase: deflink: lcp - open
May  5 02:05:16 messias ppp[242]: tun0: Phase: bundle: Network
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: ** Too many LQR 
packets lost **

May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: open - lcp
May  5 08:04:12 messias ppp[242]: tun0: Phase: bundle: Terminate
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Disconnected!
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: lcp - logout
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Disconnected!
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: logout - hangup
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Connect time: 
21538 secs: 2769865242 octets in, 86030307 octets out
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: 3691156 packets 
in, 2331858 packets out
May  5 08:04:12 messias ppp[242]: tun0: Phase:  total 132597 bytes/sec, 
peak 279371 bytes/sec on Sat May  5 05:44:10 2007

May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: hangup - opening
May  5 08:04:12 messias ppp[242]: tun0: Phase: bundle: Establish
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Enter pause (3) 
for redialing.

May  5 08:04:15 messias ppp[242]: tun0: Phase: deflink: Connected!
May  5 08:04:15 messias ppp[242]: tun0: Phase: deflink: opening - dial
May  5 08:04:15 messias ppp[242]: tun0: Phase: deflink: dial - carrier
May  5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_ACNAME 
(hook adsl)

May  5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May  5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May  5 08:04:16 messias ppp[242]: tun0: Phase: deflink: carrier - login
May  5 08:04:16 messias ppp[242]: tun0: Phase: deflink: login - lcp
May  5 08:04:17 messias ppp[242]: tun0: Phase: bundle: Authenticate
May  5 08:04:17 messias ppp[242]: tun0: Phase: deflink: his = PAP, mine 
= none
May  5 08:04:17 messias ppp[242]: tun0: Phase: Pap Output: 
[EMAIL PROTECTED] 

May  5 08:04:18 messias ppp[242]: tun0: Phase: Pap Input: SUCCESS ()
May  5 08:04:18 messias ppp[242]: tun0: Phase: deflink: lcp - open
May  5 08:04:18 messias ppp[242]: tun0: Phase: bundle: Network
May  5 11:07:32 messias ppp[242]: tun0: Phase: deflink: ** Too many LQR 
packets lost **


Please help me, this computer needs to be connected continuously.

Thanks,

  Laszlo

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


rdesktop: segmentation fault under xorg 7.2

2007-06-05 Thread Laszlo Nagy


 Hello All,

I have just upgraded my FreeBSD ports.

uname -a output:

FreeBSD cassiopeia.ronet 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #4: Sat 
Feb 17 16:56:53 CET 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA  i386



The ports tree was updated about three days ago. The newly updated 
rdesktop application exits with segmentation fault (core dumped). I 
also tried to install an older version from source (rdesktop 1.4.1) and 
had the same result. Finally, I tried to run rdesktop but send its 
output to a different machine (Ubuntu Feisty). It worked perfectly.


So I believe that the problem is with the new xorg version, not 
rdesktop. I'm not 100% sure. Do you have the same problem? Is there a 
solution for this?


BTW, as a workaround, I'm using an open source java based RDP 
implementation and it works.


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: rdesktop: segmentation fault under xorg 7.2

2007-06-06 Thread Laszlo Nagy

Jan Henrik Sylvester wrote:

[EMAIL PROTECTED] wrote:

On Tue, 5 Jun 2007, Jan Henrik Sylvester wrote:


For me, rdesktop works -- I have all my ports upgraded...


ldd `which rdesktop` says?


/usr/local/bin/rdesktop:
libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a9000)
libX11.so.6 = /usr/local/lib/libX11.so.6 (0x2819c000)
libc.so.6 = /lib/libc.so.6 (0x28282000)
libXau.so.6 = /usr/local/lib/libXau.so.6 (0x28367000)
libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x2836a000)
librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x2836f000)

Jan Henrik

For me, this is a bit different:

%ldd `which rdesktop`
/usr/local/bin/rdesktop:
   libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a)
   libX11.so.6 = /usr/local/lib/libX11.so.6 (0x28193000)
   libc.so.6 = /lib/libc.so.6 (0x28279000)
   libXau.so.6 = /usr/local/lib/libXau.so.6 (0x2835e000)
   libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x28361000)
   librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x28366000)

Although the file names are the same. Is this a problem?

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


Re: Woes of xorg 7.2 upgrade ...

2007-06-11 Thread Laszlo Nagy

Jens B wrote:

* Kiffin Gish [EMAIL PROTECTED] [2007-06-09 09:45]:
  

I've been struggling now for 2 weeks trying to do the xorg upgrade,
following the upgrading instructions to a tee, but it has turned into a
complete mess.

If worse comes to worse, what it the best way to proceed?

Is there an easy way just to reinstall xorg from scratch?

Thanks a lot in advance.

--
Kiffin Rex Gish
Gouda, The Netherlands



In such cases the best would be to deinstall xorg with all
dependencies and install xorg from scratch.
  
Believe or not, I tried to install a new computer over the weekend. I 
installed only the base system from the CD, and tried to install with


portsnap fetch
portsnap extract
cd /usr/ports/ports-mgmt/portupgrade
make
make install
portupgrade -a
rehash
portinstall xorg-server


The result was a message saying that I should read /usr/ports/UPDATING 
and follow the instructions there to upgrade from 6.9 to 7.2. Even after 
I installed portupgrade-devel and setenv XORG_UPGRADE I still had 
trouble installing xorg 7.2 I'm not talking about upgrading, this was a 
new install. I believe there are problems with the xorg server in the 
ports tree, but I had no time to send in a report. I just fixed it by 
hand. If some of you is going to install a new machine in the future, 
please run it inside script and send a bug report.


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: rdesktop: segmentation fault under xorg 7.2

2007-06-13 Thread Laszlo Nagy

Anders Troback wrote:

On Wed, 06 Jun 2007 20:06:52 +0200
Laszlo Nagy [EMAIL PROTECTED] wrote:

  

Jan Henrik Sylvester wrote:


[EMAIL PROTECTED] wrote:
  

On Tue, 5 Jun 2007, Jan Henrik Sylvester wrote:



For me, rdesktop works -- I have all my ports upgraded...
  

ldd `which rdesktop` says?


/usr/local/bin/rdesktop:
libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a9000)
libX11.so.6 = /usr/local/lib/libX11.so.6 (0x2819c000)
libc.so.6 = /lib/libc.so.6 (0x28282000)
libXau.so.6 = /usr/local/lib/libXau.so.6 (0x28367000)
libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x2836a000)
librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x2836f000)

Jan Henrik
  

For me, this is a bit different:

%ldd `which rdesktop`
/usr/local/bin/rdesktop:
libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a)
libX11.so.6 = /usr/local/lib/libX11.so.6 (0x28193000)
libc.so.6 = /lib/libc.so.6 (0x28279000)
libXau.so.6 = /usr/local/lib/libXau.so.6 (0x2835e000)
libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x28361000)
librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x28366000)

Although the file names are the same. Is this a problem?

   Laszlo



Hi,

I have the same problem here after the xorg upgrade!
  
Nobody answered to this for a while, so can we consider this as a bug? 
Where should I send a bug report?


  Laszlo

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


Hardware monitor needed

2007-06-21 Thread Laszlo Nagy


 Hi,

My FreeBSD 6.2 server restarts suddenly once or twice a day. I believe 
it is because the processor is overheated, but I'm not sure. Is there a 
way to check this from software? I would like to install a hardware 
monitor program that can log out processor temperature in every minute. 
The mainboard is ASUS P5LD2, if that matters. Is there a software out 
there that can do this for me?


Of course I could buy a new processor fan (or a water cooling system) 
but I do not want to spend money before I make sure that is the root of 
the problem.


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: Hardware monitor needed

2007-06-21 Thread Laszlo Nagy


Check out healthd or mbmon.  One or other has worked OK for me on 
other Asus boards, and both are in ports (sysutils/ I think).


If you have ACPI and your board supports thermal zones, then you can 
check those.

   sysctl -a | egrep 'acpi.*therm'
or
   sysctl -a | egrep 'acpi.*tz'

one or other should be a good enough incantation.  None of my ASUS 
mobos do have thermal zones so I can't be sure -- it's much more 
commonly supported in laptops.


Or just

   sysctl -a | egrep acpi
I do not have anything that looks like temperature. Is it still possible 
to use healthd or mbmon?


By the way,  I'm 100% sure that the problem is with the CPU load. Here 
is the output of top:



 PID USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
2266 monica1 1100 16268K 11088K RUN1  17:22 22.85% 
gnome-volume-manage
1258 edit  1 1100 16268K 11000K RUN1  19:08 22.75% 
gnome-volume-manage
1658 mariann   1 1090 16320K 11260K RUN1  18:30 22.56% 
gnome-volume-manage
1528 mtamas1 1090 16268K 11068K RUN1  18:49 22.41% 
gnome-volume-manage
1244 timea 1 1100 16268K 11000K CPU1   1  19:07 22.36% 
gnome-volume-manage
1251 monica1 1100 16268K 11000K RUN1  18:44 22.07% 
gnome-volume-manage
1268 zoltan1 1090 16268K 11000K RUN1  18:52 21.78% 
gnome-volume-manage



This server is an X terminal server and the users connect to it with 'X 
-query ip'. Can I do something to reduce the load on the CPU? 
gnome-volume-manage uses 99% of the CPU, constantly -  why?

--Alex

PS Many disks which support SMART can display their apparent temp as 
one of the SMART parameters (see sysutils/smartmontools).  Not 100% 
trustworthy, but better than nowt.  I'd rather fry the processor than 
a disk :-)
I'm not affraid of that. I have gmirror-ed disks and they are much 
cheaper than the processor ( E6320 ).


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]


Photo organizer for FreeBSD?

2007-12-29 Thread Laszlo Nagy


 Hi,

Can you tell me what kind of software should I use for organizing 
photos? Here are my requirements:


- should be able to handle many photos (right now we are using Picasa on 
Ubuntu but for 100 000+ photos it is very slow and unstable)
- should be able to save comments/annotations for the photos (I do not 
like Picasa because it uses a special database for that. I would like to 
have txt files saved in the same directory where the photos are, or 
something similar.)
- should have a full text search feature (search for photos with given 
keywords)
- should run on Windows and FreeBSD. (Actually, I would like to burn 
self-starting DVDs, so a Python or Perl based GUI would be great)


Well, if there is a web server based solution, that is fine with me, I 
need to burn photos to DVDs and be able to use them.


Can you recommend something from the ports tree? Or should I write my 
own program?


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: goffice fails to install

2008-01-12 Thread Laszlo Nagy

Daniel Rucci írta:

Ghirai wrote:

Hello list,

I had gnumeric installed, and wanted to upgrade.

portupgrade gnumeric failed because it wanted a newer version of
goffice.

I deinstalled the old goffice and did make install.
It fails here:
  

I'd remove  devel/goffice/work  and try make; make install again .
I have the same problem. I did remove devel/goffice/work but it did not 
help. (Ports tree was updated one day ago, and everything is being 
updated with portupgrade -a)


  Laszlo

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


Re: goffice fails to install

2008-01-12 Thread Laszlo Nagy



I'd remove  devel/goffice/work  and try make; make install again .
  
I have the same problem. I did remove devel/goffice/work but it did not 
help. (Ports tree was updated one day ago, and everything is being 
updated with portupgrade -a)


It has been fixed in the tree:

  http://docs.freebsd.org/cgi/mid.cgi?200801101834.m0AIYEX7060675

Re-cvsup/csup and try it again.  It should work now.
  

Power of free software. :-D


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


Re: release or rc?

2008-01-17 Thread Laszlo Nagy

Jeff Laine wrote:

Hi to all.

Stupid question here )
I've cvsup'ed recently from 6.1 to RELENG_6_3. All seems to works pretty
well right now.  There are plenty of new drivers and fixes that I needed so
much! Many thanks to developers!
But now uname -a says it's 6.3-RELEASE.  I thought it would be 6.3-RC2 .
Is it still release candidate or not?
  
Usually it means that this is a new RELEASE, but it is not announced 
until all mirrors and ftp sites have the right thing up.


Whew, so now we have 7.0 release?  :-)

  Laszlo

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


routing question

2008-01-17 Thread Laszlo Nagy


 Hi,

I have this configuration:



Internet  - [Hw Router]  (LAN1: 192.168.2.0/24)  -  [ 
192.168.2.138 GatewayComp  192.168.0.1 ] -- (LAN2: 192.168.0.0/24)


I would like to access a computer from LAN1 to LAN2.

LAN1 machine is:

FreeBSD office1adsl.dyndns.org 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri 
Jan 12 10:40:27 UTC 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

office1adsl# ifconfig
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet 192.168.2.114 netmask 0xff00 broadcast 192.168.2.255
   ether 00:50:8b:f7:30:24
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
   inet6 ::1 prefixlen 128
   inet 127.0.0.1 netmask 0xff00
office1adsl# netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.2.1UGS 0  1262107   fxp0
127.0.0.1  127.0.0.1  UH  0   127122lo0
192.168.0  192.168.2.138  UGS 04   fxp0
192.168.2  link#1 UC  00   fxp0
192.168.2.100:13:f7:26:42:69  UHLW2  108   fxp0   1188
192.168.2.138  00:50:fc:8c:f6:62  UHLW2 1469   fxp0143
192.168.2.255  ff:ff:ff:ff:ff:ff  UHLWb   110044   fxp0

Internet6:
Destination   Gateway   
Flags  Netif Expire
::1   ::1   
UHL lo0
fe80::%lo0/64 fe80::1%lo0   
U   lo0
fe80::1%lo0   link#3
UHL lo0
ff01:3::/32   fe80::1%lo0   
UC  lo0
ff02::%lo0/32 fe80::1%lo0   
UC  lo0

office1adsl# ipfw show
ipfw: getsockopt(IP_FW_GET): Protocol not available


GatewayComp machine is:

cassiopeia# uname -a
FreeBSD cassiopeia.ronet 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #5: Wed 
Aug 29 14:18:01 EDT 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA  i386

cassiopeia# ifconfig
myk0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=2bRXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU
   inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
   ether 00:17:31:c3:d2:fe
   media: Ethernet autoselect (1000baseTX full-duplex)
   status: active
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet 192.168.2.138 netmask 0xff00 broadcast 192.168.2.255
   ether 00:50:fc:8c:f6:62
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet 127.0.0.1 netmask 0xff00
cassiopeia# netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.2.1UGS 016241rl0
127.0.0.1  127.0.0.1  UH  0 4600lo0
192.168.0  link#1 UC  00   myk0
192.168.0.121  00:02:a5:23:f3:d0  UHLW1   153132   myk0121
192.168.0.126  00:02:a5:e5:19:39  UHLW194435   myk0581
192.168.0.128  00:02:a5:c8:65:f8  UHLW1   230797   myk0130
192.168.0.130  00:02:a5:e0:e1:9c  UHLW1   124633   myk0306
192.168.0.131  00:02:a5:e0:c8:f4  UHLW1   258495   myk0165
192.168.0.132  00:02:a5:08:76:85  UHLW1   161701   myk0957
192.168.2  link#2 UC  00rl0
192.168.2.100:13:f7:26:42:69  UHLW2   30rl0   1127
192.168.2.114  00:50:8b:f7:30:24  UHLW2 1876rl0 72
192.168.2.138  00:50:fc:8c:f6:62  UHLW1   70lo0
cassiopeia# grep gateway /etc/rc.conf
gateway_enable=YES
cassiopeia# ipfw show
1   29588   12691049 allow ip from any to any
2   0  0 allow udp from any to any
3   0  0 allow tcp from any to any
001009512 297448 allow ip from any to any via lo0
00200   0  0 deny ip from any to 127.0.0.0/8
00300   0  0 deny ip from 127.0.0.0/8 to any
65000 2172178 1136712828 allow ip from any to any
65535   1330 deny ip from any to any
cassiopeia#


Now, here is what I try from LAN1 machine:

office1adsl# ping 192.168.0.132
PING 192.168.0.132 (192.168.0.132): 56 data bytes
^C
--- 192.168.0.132 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
office1adsl# telnet 192.168.0.132 5900
Trying 192.168.0.132...
^C


The same from the GatewayComp machine:

cassiopeia# ping 192.168.0.132
PING 192.168.0.132 

Re: routing question

2008-01-17 Thread Laszlo Nagy

Steve Bertrand wrote:

Internet  - [Hw Router]  (LAN1: 192.168.2.0/24)  -  [
192.168.2.138 GatewayComp  192.168.0.1 ] -- (LAN2: 192.168.0.0/24)

I would like to access a computer from LAN1 to LAN2.



Perform the following and post the results of:

- ping from GatewayComp to pc on 0.0 network and a pc on 2.0 network
  

cassiopeia# ping 192.168.2.114
PING 192.168.2.114 (192.168.2.114): 56 data bytes
64 bytes from 192.168.2.114: icmp_seq=0 ttl=64 time=0.171 ms
64 bytes from 192.168.2.114: icmp_seq=1 ttl=64 time=0.184 ms
64 bytes from 192.168.2.114: icmp_seq=2 ttl=64 time=0.229 ms
^C
--- 192.168.2.114 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.171/0.195/0.229/0.025 ms
cassiopeia# ping 192.168.0.132
PING 192.168.0.132 (192.168.0.132): 56 data bytes
64 bytes from 192.168.0.132: icmp_seq=0 ttl=64 time=0.260 ms
64 bytes from 192.168.0.132: icmp_seq=1 ttl=64 time=0.235 ms
64 bytes from 192.168.0.132: icmp_seq=2 ttl=64 time=0.133 ms
^C
--- 192.168.0.132 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.133/0.209/0.260/0.055 ms
cassiopeia#

- ping from pc on 2.0 network to 192.168.0.1
  

office1adsl# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.270 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.456 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.178 ms
^C
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.178/0.301/0.456/0.116 ms


- ping from pc on 0.0 network to 192.168.2.138
  
Well, I cannot do this from here. Those computers are X terminals, they 
do not run inetd nor sshd. I cannot login from here and I cannot leave 
now, but I can do it later if necessary.



- sysctl -a net.inet.ip.forwarding (on the GatewayComp)
  

cassiopeia# sysctl -a net.inet.ip.forwarding
net.inet.ip.forwarding: 1
cassiopeia#


I can answer the missed question in about an hour.
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: routing question

2008-01-17 Thread Laszlo Nagy



- ping from pc on 0.0 network to 192.168.2.138
  
Well, I cannot do this from here. Those computers are X terminals, 
they do not run inetd nor sshd. I cannot login from here and I cannot 
leave now, but I can do it later if necessary.



- sysctl -a net.inet.ip.forwarding (on the GatewayComp)
  

cassiopeia# sysctl -a net.inet.ip.forwarding
net.inet.ip.forwarding: 1
cassiopeia#


I can answer the missed question in about an hour.


I'm sorry, not today. I'll try tomorrow.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


gnumeric fails to install, 6.3-PRERELEASE

2008-01-18 Thread Laszlo Nagy

Enviroment:

cassiopeia# uname -a
FreeBSD cassiopeia.ronet 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Tue 
Jan 15 04:41:41 EST 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA  amd64

cassiopeia# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from portsnap2.FreeBSD.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
cassiopeia# portsnap update
Ports tree is already up to date.

The problem itself:

portupgrade -a fails to install gnumeric. I tried to do this:

cd /usr/ports/math/gnumeric
make distclean
make
make install

It starts to install gnumeric and stops with this:

gmake[4]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C/figures'
gmake[3]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C/figures'
gmake[3]: Entering directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'
gmake[4]: Entering directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[4]: Nothing to be done for `install-exec-am'.
/bin/sh ../../mkinstalldirs /usr/local/share/gnome/help/gnumeric/C
for file in about-authors.xml about-history.xml about-license.xml 
analysis-complexNumbers.xml analysis-goalseek.xml analysis-overview.xml 
analysis-scenarios.xml analysis-simulation.xml analysis-solver.xml 
analysis-statistical.xml appendix-glossary.xml appendix-keybindings.xml 
bugs.xml compiling.xml configuration-localization.xml 
configuration-overview.xml configuration-plugins.xml 
configuration-preferences.xml configuration-toolbars.xml 
data-commentNlink.xml data-delete.xml data-entry-advanced.xml 
data-entry-external.xml data-entry.xml data-format.xml data-generate.xml 
data-insert.xml data-modify.xml data-filter.xml data-move-copy.xml 
data-overview.xml data-selections.xml data-types.xml documenting.xml 
extending-functions.xml extending-overview.xml extending-plugins.xml 
extending-python.xml files-formats.xml files-email.xml files-opening.xml 
files-overview.xml files-saving.xml files-ssconvert.xml 
files-textopen.xml files-textsave.xml getting-involved.xml 
graphics-drawings.xml graphics-images.xml graphics-overview.xml 
graphics-plots.xml graphics-widgets.xml gui-menus.xml gui-mouse.xml 
gui-other-elements.xml gui-overview.xml gui-toolbars.xml installing.xml 
legal.xml manual-usage.xml morehelp.xml printing.xml quick-start.xml 
welcome.xml workbooks.xml worksheets.xml functions.xml gnumeric.xml; do \

 cp ./$file /usr/local/share/gnome/help/gnumeric/C; \
   done
if test figures; then \
 /bin/sh ../../mkinstalldirs 
/usr/local/share/gnome/help/gnumeric/C/figures; \

 for file in ./figures/*.png; do \
   basefile=`echo $file | sed -e  's,^.*/,,'`; \
   install  -o root -g wheel -m 444 $file 
/usr/local/share/gnome/help/gnumeric/C/figures/$basefile; \

 done \
   fi
test -z /usr/local/man/man1 || /usr/local/bin/gmkdir -p 
/usr/local/man/man1
install  -o root -g wheel -m 444 'gnumeric.1' 
'/usr/local/man/man1/gnumeric.1'
install  -o root -g wheel -m 444 'ssconvert.1' 
'/usr/local/man/man1/ssconvert.1'
install  -o root -g wheel -m 444 'ssindex.1' 
'/usr/local/man/man1/ssindex.1'

gmake  install-data-hook
gmake[5]: Entering directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

/bin/sh ../../mkinstalldirs /usr/local/share/omf/gnumeric
for file in gnumeric-C.omf; do \
   install  -o root -g wheel -m 444 $file.out 
/usr/local/share/omf/gnumeric/$file; \

   done
install: gnumeric-C.omf.out: No such file or directory
gmake[5]: *** [install-data-hook-omf] Error 71
gmake[5]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[4]: *** [install-data-am] Error 2
gmake[4]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[3]: *** [install-am] Error 2
gmake[3]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc'

gmake: *** [install-recursive] Error 1
*** Error code 2

Stop in /usr/ports/math/gnumeric.
*** Error code 1

Stop in /usr/ports/math/gnumeric.


Is this a known bug? Should I post a PR?

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: routing question

2008-01-20 Thread Laszlo Nagy

Laszlo Nagy írta:



- ping from pc on 0.0 network to 192.168.2.138
  
Well, I cannot do this from here. Those computers are X terminals, 
they do not run inetd nor sshd. I cannot login from here and I cannot 
leave now, but I can do it later if necessary.



- sysctl -a net.inet.ip.forwarding (on the GatewayComp)
  

cassiopeia# sysctl -a net.inet.ip.forwarding
net.inet.ip.forwarding: 1
cassiopeia#


I can answer the missed question in about an hour.


I'm sorry, not today. I'll try tomorrow.
I did it. It was not working: could not ping 192.168.2.138 from 
192.168.0.114.  Then I added a static route


-net 192.168.2.0 192.168.0.1 255.255.255.0

and it started to work. But here is something I still do not understand. 
The given gateway 192.168.0.1 was already the default gateway. Why do I 
need to add another gateway to the routing table to make it work? I have 
similar installations and specifing one default gateway did the work so far.


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: gnumeric fails to install, 6.3-PRERELEASE

2008-01-21 Thread Laszlo Nagy

Laszlo Nagy wrote:

Enviroment:

cassiopeia# uname -a
FreeBSD cassiopeia.ronet 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Tue 
Jan 15 04:41:41 EST 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA  amd64

cassiopeia# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching snapshot tag from portsnap2.FreeBSD.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
cassiopeia# portsnap update
Ports tree is already up to date.

The problem itself:

portupgrade -a fails to install gnumeric. I tried to do this:

cd /usr/ports/math/gnumeric
make distclean
make
make install

It starts to install gnumeric and stops with this:

gmake[4]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C/figures'
gmake[3]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C/figures'
gmake[3]: Entering directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'
gmake[4]: Entering directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[4]: Nothing to be done for `install-exec-am'.
/bin/sh ../../mkinstalldirs /usr/local/share/gnome/help/gnumeric/C
for file in about-authors.xml about-history.xml about-license.xml 
analysis-complexNumbers.xml analysis-goalseek.xml 
analysis-overview.xml analysis-scenarios.xml analysis-simulation.xml 
analysis-solver.xml analysis-statistical.xml appendix-glossary.xml 
appendix-keybindings.xml bugs.xml compiling.xml 
configuration-localization.xml configuration-overview.xml 
configuration-plugins.xml configuration-preferences.xml 
configuration-toolbars.xml data-commentNlink.xml data-delete.xml 
data-entry-advanced.xml data-entry-external.xml data-entry.xml 
data-format.xml data-generate.xml data-insert.xml data-modify.xml 
data-filter.xml data-move-copy.xml data-overview.xml 
data-selections.xml data-types.xml documenting.xml 
extending-functions.xml extending-overview.xml extending-plugins.xml 
extending-python.xml files-formats.xml files-email.xml 
files-opening.xml files-overview.xml files-saving.xml 
files-ssconvert.xml files-textopen.xml files-textsave.xml 
getting-involved.xml graphics-drawings.xml graphics-images.xml 
graphics-overview.xml graphics-plots.xml graphics-widgets.xml 
gui-menus.xml gui-mouse.xml gui-other-elements.xml gui-overview.xml 
gui-toolbars.xml installing.xml legal.xml manual-usage.xml 
morehelp.xml printing.xml quick-start.xml welcome.xml workbooks.xml 
worksheets.xml functions.xml gnumeric.xml; do \

 cp ./$file /usr/local/share/gnome/help/gnumeric/C; \
   done
if test figures; then \
 /bin/sh ../../mkinstalldirs 
/usr/local/share/gnome/help/gnumeric/C/figures; \

 for file in ./figures/*.png; do \
   basefile=`echo $file | sed -e  's,^.*/,,'`; \
   install  -o root -g wheel -m 444 $file 
/usr/local/share/gnome/help/gnumeric/C/figures/$basefile; \

 done \
   fi
test -z /usr/local/man/man1 || /usr/local/bin/gmkdir -p 
/usr/local/man/man1
install  -o root -g wheel -m 444 'gnumeric.1' 
'/usr/local/man/man1/gnumeric.1'
install  -o root -g wheel -m 444 'ssconvert.1' 
'/usr/local/man/man1/ssconvert.1'
install  -o root -g wheel -m 444 'ssindex.1' 
'/usr/local/man/man1/ssindex.1'

gmake  install-data-hook
gmake[5]: Entering directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

/bin/sh ../../mkinstalldirs /usr/local/share/omf/gnumeric
for file in gnumeric-C.omf; do \
   install  -o root -g wheel -m 444 $file.out 
/usr/local/share/omf/gnumeric/$file; \

   done
install: gnumeric-C.omf.out: No such file or directory
gmake[5]: *** [install-data-hook-omf] Error 71
gmake[5]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[4]: *** [install-data-am] Error 2
gmake[4]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[3]: *** [install-am] Error 2
gmake[3]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[2]: *** [install-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C'

gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc'

gmake: *** [install-recursive] Error 1
*** Error code 2

Stop in /usr/ports/math/gnumeric.
*** Error code 1

Stop in /usr/ports/math/gnumeric.


Is this a known bug? Should I post a PR?
Apparently knowbody knows the answer here. I'm going to wait for another 
day and then post a PR. Thanks,


  Laszlo

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


List of active users, logged in with gdm

2008-03-12 Thread Laszlo Nagy


 Hi,

I would like to get the list of the users who are actively logged in 
remotely with gdm, along with their IP address. The commands 'w' and 
'users' does not work. What is the right command to get this list?


uname:

FreeBSD test.dyndns.org 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #4: Wed 
Aug 29 14:01:04 CEST 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/DARKSUN  i386


(The computer is an application server, serving applications to diskless 
machines with gdm + gnome.)


Thanks,

  Laszlo

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


Max. number of opened files, efficiency

2008-08-13 Thread Laszlo Nagy

How many files can I open under FreeBSD, at the same time?

Problem: I'm making a pivot table, and when I drill down the facts, I 
would like to create a new temporary file for each possible dimension 
value. In most cases, there will be less than 1000 dimension values. I 
tried to open 1000 temporary files and I could do so within one second.


But how efficient is that? What happens when I open 1000 temporary 
files, and write data into them randomly, 10 million times. (avg. 10 000 
write operations per file) Will this be handled efficiently by the OS? 
Is efficiency affected by the underlying filesystem?


I also tried to create 10 000 temporary files, but performance dropped down.

Example in Python:

import tempfile
import time
N = 1
start = time.time()
files = [ tempfile.TemporaryFile() for i in range(N)]
stop = time.time()
print created %s files/second % ( int(N/(stop-start)) )

On my computer this program prints 3814 files/second for N=1000, and  
1561 files/second for N=1.


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: Max. number of opened files, efficiency

2008-08-13 Thread Laszlo Nagy



Directories generally start to perform poorly when you put too many files
in them (i.e. the time required to add a new directory entry or find
an existing name in the entry goes up)

If you're going to be making 10s of 1000s of files, I'd recommend making
a tree of directories.  I.e., make directories 1 - 10, then put files
0-999 in directory 1 and files 1000-1999 in directory 2, etc
  
In fact I do not need any name associated with the file. I just need a 
temporary file object, I would like to access it in read write mode and 
then throw it. For some reason, this kind of temporary file is 
implemented this way (at least in Python):


1. create file name with mkstemp
2. create file object with that name
3. save the file handle number
4. unlink the file name (remove directory entry)
5. return the file handle (that can be closed later)

This is executed each time I create a temporary file. As you can see, 
the number of entries in the tmp directory won't increase at all. (If it 
would be possible, I would create a file without a name for the first time.)


When I close the file handle, the OS will hopefully deallocate the disk 
space because from that point, nothing references the file.


Another interesting (offtopic) question is that I could not open 10 000 
files under Windows XP. Error was too many open file. How to overcome 
this?


Thanks,

  Laszlo

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


dovecot, maildir, UFS 2 performance

2008-09-23 Thread Laszlo Nagy
I need to install a new server. Primarily it will run apache + PHP + 
PostgreSQL. Its main task is to serve several websites, and provide web 
based admin interface for OLTP. The server will have 2xSAS disks in RAID 
1 for the base system and 10xSATA2 disks in RAID 1+0 for the rest. The 
SAS pair will only have 150GB space. The RAID 1+0 array will be above 
1.5 TB. I already have a good idea about how to tune PostgreSQL: log 
files go to SAS and data dir goes to SATA.


The secondary task for this server is to be an IMAP and mail server. We 
will be using dovecot, and shared maildir folders with ten thousands of 
messages. I'm not sure where to put the maildir folders, and what 
options to use for the filesystem. Dovecot wiki is not talking about 
UFS, only ext3, reiserfs and xfs:


http://wiki.dovecot.org/MailboxFormat/Maildir

Can you tell me some basic idea about how to configure this? I have some 
ideas but they may be competely wrong:


#1 maildir stores each message in a separate file. I think I need to 
dedicate a separate disk slice for maildirs and decrease block size on 
it. How big should the blocksize be?
#2 searching in messages is a common operation. Possibly read speed is 
very most important. But since there will be thousands of files to open, 
seek operation is also important. On which RAID array should I put mail 
dirs? Small SAS or bigger SATA array?


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: Filesystem of choice for a Linux/FreeBSD shared backup disk?

2008-09-23 Thread Laszlo Nagy



For making backups I would probably just use FAT32 and tar, because
practically anything (not just FreeBSD  Linux) will mount FAT32 file
systems, and tar should respect your file attributes (owner, group,
creation timestamp, last modified timestamp, etc).
  
Except that you cannot create files with 4GB size on FAT32. You might 
be able to use an archiver that is able to split archives into smaller 
parts.


This has always been a problem. FreeBSD is open source. So Linux is, but 
they do not have a common filesystem that could be accessed from both 
system, WITHOUT compromises. :-(


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: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Laszlo Nagy




#1 maildir stores each message in a separate file. I think I need to 
dedicate a separate disk slice for maildirs and decrease block size 
on it. How big should the blocksize be?


i have everything (/) on single partition on most of my servers, 
including those having lots of mail.
I don't think that is clever. sysinstall creates different partitions 
for / /usr /var and /tmp by default. There must be good reasons for this.
#2 searching in messages is a common operation. Possibly read speed 
is very most important. But since there will be thousands of files to 
open, seek operation is also important. On which RAID array should I 
put mail dirs?


dovecot do make indexes and scans all files only when rebuilding them.
Except when my users search for a text in the message body. 
Unfortunately, they often do this. :-(
assuming you configured your RAID1+0 properly it will give you MUCH 
more performance from 10 disks, than RAID1 on 2 - a bit faster - drives.


IMHO you wasted money for SAS drives, simply having SATA only system 
could be enough.
This is true for raw read/write speed. But some I/O operations are seek 
intensive. Seek time for a 15 000 rpm SAS disk is lower than it is for a 
10 disk SATA2 RAID. Seek intensive operations should go to SAS. But I'm 
not sure what they are. If you say that dovecot is not seek intensive 
then you answered my question. :-)


just keep your SAS drives for OS, ports, sources, logs, whatever, 
while /home on your big RAID1+0 volume.


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: dovecot, maildir, UFS 2 performance

2008-09-24 Thread Laszlo Nagy



You can treat UFS as ext2/3 with dir_index enabled by default (not
exactly but that's what dirhash translates to in practice).



UFS by default creates 2k fragments (sub-blocks), so in practice any
tuning in this direction won't do much.



More drives=better in this case. Don't forget to tune dirhash_maxmem.


I think this is what I really wanted to know. 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]


VNC server embedded into Xorg server

2008-10-06 Thread Laszlo Nagy


 Hi All,

There was a port called net/vnc that contained a vnc.so file. That file 
could be loaded into the Xorg server and then I was able to monitor the 
X desktop with VNC.


Now I'm using gnome, and gnome2-fifth-toe installs tightvnc. It 
conflicts with net/vnc. So I cannot install net/vnc. What other options 
I have to run an X server?


The only extra wish is that the X server must be able to start 
automatically, e.g. without logging into gnome. I need this because the 
X server will be located at a distant location and I have to be able to 
use it after a system restart.


Thanks,

  Laszlo

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


dd piperd

2008-10-07 Thread Laszlo Nagy


Sziasztok,

Ilyet látok top-ban:


PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
11475 gandalf 1 -8 0 4600K 864K piperd 5 21:41 8.06% cat
11472 gandalf 1 -8 0 4604K 876K piperd 3 21:30 8.06% dd

Tehát összesen 16% procit zabál valami, amiről nem tudom hogy mi! ps ezt 
mondja:


1001 11472 11471 0 -8 0 4604 876 piperd S ?? 21:24.52 dd bs=1 
count=1926717440



ilyet én biztosan nem futtatok magamtól. De akkor ki? Van ötletetek arra 
hogy a cat + dd párost melyik program futtathatja ilyen hülye módon? 
Valami maintenance cron job esetleg? Parázok hogy valaki betört.


Köszi,

Laci



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


GEOM_JOURNAL: Timeout. Journal gjournal XXXX cannot be completed.

2008-10-08 Thread Laszlo Nagy

Hi,

I'm trying to add a new disk to my system. I'm ready with labeling the 
disk. It is an SCSI device with and UFS partition and a SWAP partition. 
The swap is turned off, and I would like to use it as journal space. 
There is a screenshot attached showing what happens after entering 
single user mode. swaps are turned off, and the journal cannot be 
initialized. The message says:


GEOM_JOURNAL: Timeout. Journal gjournal 2578807269 cannot be completed.

Why is that?

Thanks,

  Laszlo

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

  1   2   >