calendar software wanted

2008-10-22 Thread Marco
hello list,

anybody has experience with calendar software which runs on freebsd. i
maybe would integrate it also in thunderbird/mutt,but thats not
necessary, or use a stand alone software.
minimum requirements to the software would be making entries, getting
alarms for appointments.

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


Re: calendar software wanted

2008-10-22 Thread Paul A. Procacci

http://www.mozilla.org/projects/calendar/sunbird/


Marco wrote:

hello list,

anybody has experience with calendar software which runs on freebsd. i
maybe would integrate it also in thunderbird/mutt,but thats not
necessary, or use a stand alone software.
minimum requirements to the software would be making entries, getting
alarms for appointments.

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


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


Re: open-iscsi ?

2008-10-22 Thread Vincent Hoffman
Frank Bonnet wrote:
 Hello

 Does open-iscsi has been ported to FreeBSD at 7.x ?
 it doesn't seems to be at 6.x

   
Seems to be a linux specific implementation of iscsi and gnu licenced so
no we dont. However we have iscsi_initiator(4) in 7.x see the man pages
for details.
For a iscsi target daemon see net/iscsi-target in ports.

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

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


Re: cvsup to 7.0 from 5.5?

2008-10-22 Thread Aftab Jahan Subedar
On 10/22/08, Chris Pratt [EMAIL PROTECTED] wrote:

 How risky is it to jump directly to 7.0 on a 5.5 system?
 Upgrade would be by cvsup. I expect mergemaster
 issues anyway but this system is relatively vanilla in
 it's configuration. It's duty is just rsyncing other servers.
 The kernel is GENERIC minus drivers plus ipfw and there are
 no kldloads. Can this jump be made? I was hoping to avoid
 having to make two major release jumps by doing only one.

 Thanks


Not really a bed of roses.
Its a thorny road. You will stumble with packages then gcc version then
make.conf then cvsup itself.

Cannot really remember exact thorny issues but I can tell that it is not
straight path. Rather Install 7.0 directly then migrate the data.


-- 
Aftab Jahan Subedar
CEO/Software Engineer
Subedar Technologies Ltd
Subedar Baag Bibir Bagicha #1
North Jatra Bari
Dhaka 1204
Bangladesh
88027554546
8801552635208
8801191336608
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: bsdlabel partiton c error message on new install

2008-10-22 Thread andys
Hi, 

ok, so I have attempted to proceed with my original task which was to create 
a new UFS2 parition (using sysinstall). Having chosen c and then w from 
the lable section, i recieve the following error: 

Error mounting /dev/da0s1g on /export : No such file or directory 

After exiting sysinstall, I can see from bsdlabel: 


8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
a: 2097152004.2BSD0 0 0
b: 20971520 75497472  swap
c: 2851536870unused0 0 # raw part, don't 
edit

d: 20971520 209715204.2BSD0 0 0
e: 20971520 419430404.2BSD0 0 0
f: 12582912 629145604.2BSD0 0 0
g: 146800640 964689924.2BSD0 0 0
bsdlabel: partition c doesn't cover the whole unit! 

g is my new partition. Under /dev however I dont see the device file: 


ls /dev/da0*
/dev/da0/dev/da0s1a /dev/da0s1c /dev/da0s1e
/dev/da0s1  /dev/da0s1b /dev/da0s1d /dev/da0s1f 

Can anyone help :( 


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


sendmail ldap_routing question

2008-10-22 Thread Igor Pokrovsky
Hi all,

First of all I must apologize for off topic, I havent found any better
place to ask this question.

I'm using ldap routing feature with sendmail. Some days ago I decided
to use a 'sendertoo' flag for ldap_routing in order to check senders
against routing database as well as recepients.
However it doesn't work for me off box. While tracing rules with -bt 
switch I found a strange thing - LDAP is not asked on 'mail from:'
stage at all. It is used only on 'rcpt to:' stage.
So my question is, does anybody using 'sendertoo' option succefully and
if so what am I missing here.

Thanks in advance for any possible points.

PS: Please CC me, since I'm not subscribed to this list.

-ip

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


Re: cvsup to 7.0 from 5.5?

2008-10-22 Thread Chris Pratt


On Oct 22, 2008, at 1:06 AM, Aftab Jahan Subedar wrote:


On 10/22/08, Chris Pratt [EMAIL PROTECTED] wrote:


How risky is it to jump directly to 7.0 on a 5.5 system?
Upgrade would be by cvsup. I expect mergemaster
issues anyway but this system is relatively vanilla in
it's configuration. It's duty is just rsyncing other servers.
The kernel is GENERIC minus drivers plus ipfw and there are
no kldloads. Can this jump be made? I was hoping to avoid
having to make two major release jumps by doing only one.

Thanks



Not really a bed of roses.
Its a thorny road. You will stumble with packages then gcc version  
then

make.conf then cvsup itself.

Cannot really remember exact thorny issues but I can tell that it  
is not

straight path. Rather Install 7.0 directly then migrate the data.


Thanks for the time to respond. That was enough for me. I'm
half-way to a 6.3 installation, then will take it to 7.0. It's
surprising that I could find no specifics of the issues, only
references that it wasn't a good idea.




--
Aftab Jahan Subedar
CEO/Software Engineer
Subedar Technologies Ltd
Subedar Baag Bibir Bagicha #1
North Jatra Bari
Dhaka 1204
Bangladesh
88027554546
8801552635208
8801191336608
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]




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


Errors found in Freebsd

2008-10-22 Thread Leon Swanepoel - MWEB
Good day,
 
Firstly I like to say that I believe the developers are doing a standup
job and that Freebsd is but the best of the best. I have however one
little problem. There is an issue with Broadcom nic (bge) on the dell
2650 machines that are constantly running Ierrs. The bce,em,xl or any
other card connected to a server patched to the same switch has no
errors only that card. I have logged a fault on your site for this
already but I have received no response and it has been quite some time.
Is there anyone I can contact in this regard?
 
Thank You
 
Kind Regards,
 
Leon Swanepoel
 
 

New from MWEB: Cellphone and Internet bundles! Bundle your Internet access with 
your cellular contract from R75 per month. 
Call 08600 32000 or click 
here(http://www.mweb.co.za/productsservices/MTALKMobile/tabid/1223/Default.aspx)
 for more info on the great deals available.

MWEB :-)  JUST LIKE THAT

This electronic communication and the attached file(s) are subject to a 
disclaimer which can be accessed on the following link: Disclaimer - or copy 
the 
following URL into your browser - http://www.mweb.co.za/disclaimer. 
If you are unable to view the disclaimer, please contact [EMAIL PROTECTED] for 
a copy.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


(no subject)

2008-10-22 Thread Simun Mikecin
 I will soon be installing an Areca ARC-1110 and 3x 1.5TB Seagate
 Barracuda SATAs into a 3.2GHz Northwood P4 with 1GB of RAM, and I'm
 wondering which would be the most stable filesystem to use.

 I've read the bigdisk page [1] and the various information about ZFS on
 the FreeBSD Wiki [2].  I'm aware of the tuning requirements that ZFS
 requires, and upgrading to 4GB of RAM would be quite possible as it was
 understood beforehand that ZFS requires a large quantity of it.

 My questions are as follows.

 1. I'm aware of the fact that ZFS works better on 64-bit platforms, and
  that alone has me thinking that it's not a good fit for this particular
 machine.  But apart from that, it seems that ZFS is not yet stable
 enough for my environment (only about 25 users but in production
 nonetheless).  To me, [3] paints all sorts of ugly pictures, which can
 be summarized as count on ZFS-related panics and deadlocks happening
 fairly regularly and disabling ZIL in the interest of stability will
 put your data at risk.  Comments about live systems using ZFS (on
 7.0-RELEASE or 7-STABLE) would be appreciated.

I'm using 7.0-RELEASE/amd64 with ZFS on several machines without any stability 
problems. Here are the configs (prefetch is disabled for performance reasons):

- with 1GB RAM (probably with just 1GB RAM system would be faster using UFS2 
instead of ZFS)
vfs.zfs.prefetch_disable=1
vm.kmem_size=512M
vfs.zfs.arc_max=150M (at first it was 200M, but lots of swapping made me 
reduce it)

- with 2GB RAM:
vfs.zfs.prefetch_disable=1
vm.kmem_size=950M (could be higher, even 1536M, but then there is not much 
RAM left for your apps)

- with 8GB RAM:
vfs.zfs.prefetch_disable=1
vm.kmem_size=1536M (this could probably be higher: up to 2047M, but I haven't 
tried it).

General rule to make it stable is to make the difference between vm.kmem_size 
and vfs.zfs.arc_max larger. vfs.zfs.arc_max is by default 3/4 of vm.kmem_size.
You can achieve it by making vm.kmem_size bigger (but this leaves less memory 
for your applications) or reducing vfs.zfs.arc_max (but this reduces 
performance, since less memory will be available for caching).
Problem with stability comes when kmem usage is at it's peak. arc_max is just a 
value after some of it will be deleted. But in some cases (high I/O activity) 
it will grow faster than the thread that reduces it (to a size less than 
arc_max) can delete.

 2. [1] appears to be a bit dated.  Nevertheless, I'm inclined to think
 that the status described there (as well as in various man pages) still
 applies to UFS2 on 7.0-RELEASE.  Please correct me if I'm wrong or let
 me know if the state of affairs has improved significantly in 7-STABLE.
 2a. Does the information contained in [1] apply to ZFS as well?

[1] is outdated.
GEOM, GPT, UFS2 and ZFS are safe to use for many hundreds of terabytes.
What is limited is MBR partitioning used by fdisk (2TB limit).

 3. As the array will be for data only and not be booted, will it be
 possible to use fdisk to slice it up, or will I need to use gpt?

fdisk can be used for slicing for disks that are up to 2TB. But I would 
recomment to use GPT (which doesn't have this limit) instead. There is no 
reason not to.

 4. My planned course of action will be to attempt to newfs the device
 itself (da0, all 3TB of it) or 1 full-disk slice (da0s1).  Failing that,
 I will attempt to gconcat da0s1 and da0s2 (1.5TB each), although I
 suspect that may not work since for one thing, growfs is not yet 64-bit
 clean.  In either case, I'm very interested in using gbde/geli to
 encrypt the fs.  If either of these paths are not possible or
 recommended, are there any suggestions for alternate means of creating a
 3TB fs?

If you will go for the ZFS route instead of UFS2 then don't make one logical 
array from your disks (da0) in your RAID controller, but instead make one 
logical array to be one phisical disk (so you have da0, da1 and da2) so you can 
use ZFS RAID functionality instead.

If you are going to use UFS2 then you must use gjournal for disks of that size 
(or you will have background fscks that can last for ages and die a horrible 
death saying not enough memory).



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


Re: Using packages compiled for 7.0-RELEASE in 8-CURRENT

2008-10-22 Thread RW
On Wed, 22 Oct 2008 00:09:05 +0530
[EMAIL PROTECTED] (Ashish Shukla  ___) wrote:

 Hi all,
 
 I'm having a confusion about installing packages compiled in
 7.0-RELEASE in 8.0-CURRENT. I've 2 boxen, a 7.0-RELEASE-p5 and a
 8-CURRENT. The 7.0-RELEASE-p5 is fully updated as of now, and has all
 updated ports available in the form of binary packages. Now, I'm
 wondering if it is okay to install those binary packages on my
 8-CURRENT box. 

There's no compat7x port to support 7.x packages on CURRENT.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: open-iscsi ?

2008-10-22 Thread Frank Bonnet

Vincent Hoffman wrote:

Frank Bonnet wrote:

Hello

Does open-iscsi has been ported to FreeBSD at 7.x ?
it doesn't seems to be at 6.x

  

Seems to be a linux specific implementation of iscsi and gnu licenced so
no we dont. However we have iscsi_initiator(4) in 7.x see the man pages
for details.
For a iscsi target daemon see net/iscsi-target in ports.

Vince


Thanks I'm gonna check those ports.

Frank

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


Re: Errors found in Freebsd

2008-10-22 Thread Ross Cameron
On Wed, Oct 22, 2008 at 1:04 PM, Leon Swanepoel - MWEB
[EMAIL PROTECTED]wrote:

 Firstly I like to say that I believe the developers are doing a standup
 job and that Freebsd is but the best of the best. I have however one
 little problem. There is an issue with Broadcom nic (bge) on the dell
 2650 machines that are constantly running Ierrs. The bce,em,xl or any
 other card connected to a server patched to the same switch has no
 errors only that card. I have logged a fault on your site for this
 already but I have received no response and it has been quite some time.
 Is there anyone I can contact in this regard?


I'm assuming that you aren't a regular member of this list, before anyone
can help you we need the following:
1)  What version of FreeBSD are you running?  (uname -a)
2)  What EXACT model of Dell server are you working with here?
(The words Oh hell its a Dell come to mind)
3)  We need a hardware spec. dump from this machine.  (dmesg)
4)  Mail me off list I'm in Sandton and might be able to help.

Note:
Logging a fault on the website will liably get you no response without
items 1 - 3.
FreeBSD, much like most OpenSource UNIX-like OSs, is not a commercial
product and you are not a paying customer, therefor you need to take part in
the community when things like this happen.

PS:
I'm not trying to be confrontational, even if I looks like I might be, just
trying to make any further activities on this list as enjoyable and
productive as possible for you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS2 or ZFS for 3TB disk?

2008-10-22 Thread Wojciech Puchar

.
.
lots of explanations how to make ZFS stable and usable deleted after 
reading.

.
.


IMHO, you should be using ZFS for what you want to accomplish.  If you
do go the UFS2 route, I would recommend you set background_fsck=no in


definitely yes.

but UFS works fine on 10TB volume :) and works FAST.

just use larger blocks and fragments (like 4-8K fragment) and reduce inode 
numbers - without this fsck will take REALLY long.

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


re: Setting up gmirror

2008-10-22 Thread Wojciech Puchar
disk will be overwritten).  Add another disk to this mirror, so it 
will

be synchronized with existing disk:

   gmirror label -v -b round-robin data da0


add -s very large value like -s 1048576 to prevent splitting one request 
on 2 disks.


I thought the -s option was only applicable when using -b split for the 
balancing algorithm. Does round-robin not mean simply alternating between 
the two disks without ever splitting requests?


no. it means for example with -s 65536 and 1MB request - it will split 
this request on 2 disks

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


Re: Errors found in Freebsd

2008-10-22 Thread Wojciech Puchar

Good day,

Firstly I like to say that I believe the developers are doing a standup
job and that Freebsd is but the best of the best. I have however one
little problem. There is an issue with Broadcom nic (bge) on the dell
2650 machines that are constantly running Ierrs. The bce,em,xl or any
other card connected to a server patched to the same switch has no
errors only that card. I have logged a fault on your site for this
already but I have received no response and it has been quite some time.
Is there anyone I can contact in this regard?


AUTHORS
 The bge driver was written by Bill Paul [EMAIL PROTECTED].


on my machine bge runs fine, but i heard that some broadcom chip revisions 
are buggy. maybe it's yours, or maybe driver bug.

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


Re: calendar software wanted

2008-10-22 Thread tequnix
Am Wed, 22 Oct 2008 10:02:22 +0200
schrieb Marco [EMAIL PROTECTED]:

 hello list,
 
 anybody has experience with calendar software which runs on freebsd. i
 maybe would integrate it also in thunderbird/mutt,but thats not
 necessary, or use a stand alone software.
 minimum requirements to the software would be making entries, getting
 alarms for appointments.
 
 thank you for responses,
  marco
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

egroupware has a nice web-interface, and is also usable
with lightning and sunbird ..

it's in the ports (deskutils/egroupware)

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


Re: Errors found in Freebsd

2008-10-22 Thread Brian A. Seklecki
On Wed, 2008-10-22 at 13:04 +0200, Leon Swanepoel - MWEB wrote:
 2650 machines that are constantly running Ierrs. The bce,em,xl or any

Yea -- call Dell and ask them why they started shipping crappy chips in
the 9th gen.  Probably to sell lots of PCI-E dual port addon cards,
which is my suggestion to anyone who lives or dies by PowerEdge.

-- 
Brian A. Seklecki [EMAIL PROTECTED]
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.


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


Re: calendar software wanted

2008-10-22 Thread Daniel Molina Wegener

Marco escribió:

hello list,

anybody has experience with calendar software which runs on freebsd. i
maybe would integrate it also in thunderbird/mutt,but thats not
necessary, or use a stand alone software.
minimum requirements to the software would be making entries, getting
alarms for appointments.


  Try kontact (the kdepim port). Have fun xD



thank you for responses,
 marco


Regards,
--
.O. | Daniel Molina Wegener   | C/C++ Coder
..O | dmw [at] coder [dot] cl | FOSS Developer
OOO | FreeBSD  Linux User| Standards Basis


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


Extract Songs from DVD

2008-10-22 Thread Odhiambo Washington
I bought an original DVD but I cannot play that in my car's audio
player. Is there a tool that I can use to get the songs off the DVD in
WAV format, or even MP3?

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Oh My God! They killed init! You Bastards!
--from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Extract Songs from DVD

2008-10-22 Thread Andreas Rudisch
On Wed, 22 Oct 2008 17:34:41 +0300
Odhiambo Washington [EMAIL PROTECTED] wrote:

 player. Is there a tool that I can use to get the songs off the DVD in
 WAV format, or even MP3?

/usr/ports/multimedia/mplayer
/usr/ports/multimedia/mencoder
/usr/ports/audio/lame
...

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgpYxEfOFoJN7.pgp
Description: PGP signature


GCC help

2008-10-22 Thread Victor Farah

Hello
I'm trying to install ffmpeg and I'm getting this message:
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. You may try recompiling using gcc = 4.2.

Now gcc -v gives me:
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305

I was wondering how I would update gcc to version 4.2?
I'm not sure I can just do a portupgrade gcc ??
I'm relatively new to freebsd any help would be appreciated! :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can't upgrade or deinstall phpMyAdmin

2008-10-22 Thread Mike Clarke

FreeBSD curlew.lan 6.4-RC1 FreeBSD 6.4-RC1 #2: Sat Oct 18 23:08:47 BST 
2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CURLEW  i386

I'm trying to upgrade phpMyAdmin from 2.11.5.2 to 3.0.0_1 but all 
attempts fail. If I try make deinstall I get the following result:

-
curlew:/usr/ports/databases/phpmyadmin# make deinstall
===  Deinstalling for databases/phpmyadmin
===   Deinstalling phpMyAdmin-2.11.5.2
Segmentation fault
*** Error code 139

Stop in /usr/ports/databases/phpmyadmin.
-

Things go wrong very early in the process, here's part of the output 
from truss:

-
===  Deinstalling for databases/phpmyadmin
wait4(0x,0xbfbfde38,0x0,0x0) = 7 (0x7)
SIGNAL 20 (SIGCHLD)
SIGNAL 20 (SIGCHLD)
sigreturn(0xbfbfdb00)= 7 (0x7)
wait4(0x,0xbfbfde38,0x0,0x0) = 1623 (0x657)
vfork()  = 1624 (0x658)
===   Deinstalling phpMyAdmin-2.11.5.2
Segmentation fault
wait4(0x,0xbfbfde38,0x0,0x0) = 7 (0x7)
SIGNAL 20 (SIGCHLD)
SIGNAL 20 (SIGCHLD)
sigreturn(0xbfbfdb00)= 7 (0x7)
wait4(0x,0xbfbfde38,0x0,0x0) = 1624 (0x658)
fstat(1,{mode=crw--- ,inode=140,size=0,blksize=4096}) = 0 (0x0)
ioctl(1,TIOCGETA,0xbfbfd700) = 0 (0x0)
*** Error code 139
write(1,*** Error code 139\n,19)   = 19 (0x13)
-

I've tried portsdb -uf and pkgdb with the F, L and u options but still 
no joy.

I'm not sure if this is relevant but a while ago I deinstalled apache 
1.3 and php 4 but forgot to deinstall phpMyAdmin. Today I installed 
apache 2.2 with php 5 and unsuccessfully tried to deinstall the old 
phpMyAdmin before doing this. Apache and php installed OK and the old 
phpMyAdmin works but really ought to be upgraded. I tried to deinstall 
phpMyAdmin again after installing the new packages but still have the 
same problem.

What should I do to persuade the old version to go?

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


Re: Extract Songs from DVD

2008-10-22 Thread Ross Cameron
Wget?
All the songs are on the website...  http://www.openbsd.org/lyrics.html

On Wed, Oct 22, 2008 at 4:34 PM, Odhiambo Washington [EMAIL PROTECTED]wrote:

 I bought an original DVD but I cannot play that in my car's audio
 player. Is there a tool that I can use to get the songs off the DVD in
 WAV format, or even MP3?

 --
 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

 Oh My God! They killed init! You Bastards!
--from a /. post
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

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


Re: Can't upgrade or deinstall phpMyAdmin

2008-10-22 Thread Mike Clarke
On Wednesday 22 October 2008, Paul Schmehl wrote:

 Have you tried pkg_delete phpMyAdmin* ?

Yes, already done that - it segfaults immediately :-(

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


Re: Can't upgrade or deinstall phpMyAdmin

2008-10-22 Thread Matthew Seaman

-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Mike Clarke wrote:
| FreeBSD curlew.lan 6.4-RC1 FreeBSD 6.4-RC1 #2: Sat Oct 18 23:08:47 BST 
| 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CURLEW  i386
| 
| I'm trying to upgrade phpMyAdmin from 2.11.5.2 to 3.0.0_1 but all 
| attempts fail. If I try make deinstall I get the following result:
| 
| -

| curlew:/usr/ports/databases/phpmyadmin# make deinstall
| ===  Deinstalling for databases/phpmyadmin
| ===   Deinstalling phpMyAdmin-2.11.5.2
| Segmentation fault
| *** Error code 139
| 
| Stop in /usr/ports/databases/phpmyadmin.

| -
| 
| Things go wrong very early in the process, here's part of the output 
| from truss:
| 
| -

| ===  Deinstalling for databases/phpmyadmin
| wait4(0x,0xbfbfde38,0x0,0x0) = 7 (0x7)
| SIGNAL 20 (SIGCHLD)
| SIGNAL 20 (SIGCHLD)
| sigreturn(0xbfbfdb00)= 7 (0x7)
| wait4(0x,0xbfbfde38,0x0,0x0) = 1623 (0x657)
| vfork()  = 1624 (0x658)
| ===   Deinstalling phpMyAdmin-2.11.5.2
| Segmentation fault
| wait4(0x,0xbfbfde38,0x0,0x0) = 7 (0x7)
| SIGNAL 20 (SIGCHLD)
| SIGNAL 20 (SIGCHLD)
| sigreturn(0xbfbfdb00)= 7 (0x7)
| wait4(0x,0xbfbfde38,0x0,0x0) = 1624 (0x658)
| fstat(1,{mode=crw--- ,inode=140,size=0,blksize=4096}) = 0 (0x0)
| ioctl(1,TIOCGETA,0xbfbfd700) = 0 (0x0)
| *** Error code 139
| write(1,*** Error code 139\n,19)   = 19 (0x13)
| -
| 
| I've tried portsdb -uf and pkgdb with the F, L and u options but still 
| no joy.
| 
| I'm not sure if this is relevant but a while ago I deinstalled apache 
| 1.3 and php 4 but forgot to deinstall phpMyAdmin. Today I installed 
| apache 2.2 with php 5 and unsuccessfully tried to deinstall the old 
| phpMyAdmin before doing this. Apache and php installed OK and the old 
| phpMyAdmin works but really ought to be upgraded. I tried to deinstall 
| phpMyAdmin again after installing the new packages but still have the 
| same problem.
| 
| What should I do to persuade the old version to go?
| 


Hmmm... not entirely sure what has actually gone wrong there, but I suspect
your /var/db/pkg directory is probably in a bit of a mess.  Deinstalling
phpMyAdmin is simply a matter of removing almost all of the files under
/usr/local/www/phpMyAdmin -- the only one the port tries to preserve is
config.inc.php

Can you try:

~   # pkg_delete -f phpMyAdmin-2.11.5.2

If the worst comes to the worst, you can do this (which is certainly *not*
recommended in the general case, just it happens to work for phpMyAdmin which
is a port without other things depending on it, and that installs everything
into one directory):

~   # cd /usr/local/www
~   # cp phpMyAdmin/config.inc.php /root 
~   # rm -rf phpMyAdmin
~   # cd /var/db/pkg 
~   # rm -rf phpMyAdmin-2.11.5.2

~   # pkgdb -F

Note: there's no need to reinstall phpMyAdmin because you've upgraded 
Apache or even PHP.  phpMyAdmin is all native PHP code and identical

on disk for whatever combination of PHP interpreter and web server you
use.  You just need to copy the Apache config stuff into the new httpd.conf
(ie. based on what 'pkg_info -Dx phpMyAdmin' produces).

Note2: 3.0.1 will be out soon.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   Flat 3

~  7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
~  Kent, CT11 9PW, UK
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREDAAYFAkj/Q9gACgkQ3jDkPpsZ+VZECwCglft9jndSoSo4D3RaOfYomvjO
7n4Anjtzpvq9G4HAfwCxKUisR3oS0o4Y
=JabP
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Extract Songs from DVD

2008-10-22 Thread Polytropon
On Wed, 22 Oct 2008 17:34:41 +0300, Odhiambo Washington [EMAIL PROTECTED] 
wrote:
 I bought an original DVD but I cannot play that in my car's audio
 player. Is there a tool that I can use to get the songs off the DVD in
 WAV format, or even MP3?

If the DVD does contain standard audio CD format data, there should
be no problem. First, check the contents:

% cdcontrol info

(I'll assume that /dev/acd0 is the drive the DVD is inserted into.)

Then you can access every track via /dev/acd0txx, where xx is from 01
up to the number of tracks. Tracks can be copied from the DVD with
the dd command:

% dd if=/dev/acd0t01 of=track01.cdr bs=2352

These usually are Audio CD data files: 44 kHz stereo, 16 bit. They can
be put on a media as audio tracks without any change, for example if
you use cdrecord with the -dao -audio flags (if I remember correctly),
using a CD or DVD media. You can convert them to OGG/Vorbis or MP3
using the encoder you wish, for example:

% oggenc -r -q 6 -o track01.ogg track01.cdr

or

% sox -x track01.cdr track01.wav
% lame track01.wav track01.mp3

(ugly variant, but works; I'm sure you'll find a better way, just
have a look at the manpages).

If you want, you can add ID3 track information, or simply use a good
file name. :-)



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Extract Songs from DVD

2008-10-22 Thread Odhiambo Washington
On Wed, Oct 22, 2008 at 6:17 PM, Polytropon [EMAIL PROTECTED] wrote:
 On Wed, 22 Oct 2008 17:34:41 +0300, Odhiambo Washington [EMAIL PROTECTED] 
 wrote:
 I bought an original DVD but I cannot play that in my car's audio
 player. Is there a tool that I can use to get the songs off the DVD in
 WAV format, or even MP3?

 If the DVD does contain standard audio CD format data, there should
 be no problem. First, check the contents:

% cdcontrol info

 (I'll assume that /dev/acd0 is the drive the DVD is inserted into.)

 Then you can access every track via /dev/acd0txx, where xx is from 01
 up to the number of tracks. Tracks can be copied from the DVD with
 the dd command:

% dd if=/dev/acd0t01 of=track01.cdr bs=2352

 These usually are Audio CD data files: 44 kHz stereo, 16 bit. They can
 be put on a media as audio tracks without any change, for example if
 you use cdrecord with the -dao -audio flags (if I remember correctly),
 using a CD or DVD media. You can convert them to OGG/Vorbis or MP3
 using the encoder you wish, for example:

% oggenc -r -q 6 -o track01.ogg track01.cdr

 or

% sox -x track01.cdr track01.wav
% lame track01.wav track01.mp3

 (ugly variant, but works; I'm sure you'll find a better way, just
 have a look at the manpages).

 If you want, you can add ID3 track information, or simply use a good
 file name. :-)



 --
 Polytropon

Hello Polytropon,

That sounds like the solution I was looking for! I will give the steps a shot.

Thank you do much.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Oh My God! They killed init! You Bastards!
--from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GCC help

2008-10-22 Thread Polytropon
On Wed, 22 Oct 2008 10:07:09 -0400, Victor Farah [EMAIL PROTECTED] wrote:
 I was wondering how I would update gcc to version 4.2?
 I'm not sure I can just do a portupgrade gcc ??

The GCC available from ports can be installed next to the GCC
that comes with the system which, by the way, is 4.2.1 in
FreeBSD 7.

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

If you need to install GCC of another version (e. g. 4.4), you
can install it from the ports collection (e. g. lang/gcc44). If
I remeber correctly, it is called as gcc44 then instead of cc / gcc.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Can't upgrade or deinstall phpMyAdmin

2008-10-22 Thread Paul Schmehl
--On Wednesday, October 22, 2008 09:56:28 -0500 Mike Clarke 
[EMAIL PROTECTED] wrote:


I'm not sure if this is relevant but a while ago I deinstalled apache
1.3 and php 4 but forgot to deinstall phpMyAdmin. Today I installed
apache 2.2 with php 5 and unsuccessfully tried to deinstall the old
phpMyAdmin before doing this. Apache and php installed OK and the old
phpMyAdmin works but really ought to be upgraded. I tried to deinstall
phpMyAdmin again after installing the new packages but still have the
same problem.

What should I do to persuade the old version to go?



Have you tried pkg_delete phpMyAdmin* ?

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


RE: Extract Songs from DVD

2008-10-22 Thread Ted Mittelstaedt

I think ffmpeg will also convert these, and it supports more
conversions than sox does.  Actually, both sox and ffmpeg rely
heavily on external libraries to perform their conversion functions,
they are more front end programs than anything else.

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Odhiambo
 Washington
 Sent: Wednesday, October 22, 2008 8:20 AM
 To: Polytropon
 Cc: User Questions
 Subject: Re: Extract Songs from DVD
 
 
 On Wed, Oct 22, 2008 at 6:17 PM, Polytropon [EMAIL PROTECTED] wrote:
  On Wed, 22 Oct 2008 17:34:41 +0300, Odhiambo Washington 
 [EMAIL PROTECTED] wrote:
  I bought an original DVD but I cannot play that in my car's audio
  player. Is there a tool that I can use to get the songs off the DVD in
  WAV format, or even MP3?
 
  If the DVD does contain standard audio CD format data, there should
  be no problem. First, check the contents:
 
 % cdcontrol info
 
  (I'll assume that /dev/acd0 is the drive the DVD is inserted into.)
 
  Then you can access every track via /dev/acd0txx, where xx is from 01
  up to the number of tracks. Tracks can be copied from the DVD with
  the dd command:
 
 % dd if=/dev/acd0t01 of=track01.cdr bs=2352
 
  These usually are Audio CD data files: 44 kHz stereo, 16 bit. They can
  be put on a media as audio tracks without any change, for example if
  you use cdrecord with the -dao -audio flags (if I remember correctly),
  using a CD or DVD media. You can convert them to OGG/Vorbis or MP3
  using the encoder you wish, for example:
 
 % oggenc -r -q 6 -o track01.ogg track01.cdr
 
  or
 
 % sox -x track01.cdr track01.wav
 % lame track01.wav track01.mp3
 
  (ugly variant, but works; I'm sure you'll find a better way, just
  have a look at the manpages).
 
  If you want, you can add ID3 track information, or simply use a good
  file name. :-)
 
 
 
  --
  Polytropon
 
 Hello Polytropon,
 
 That sounds like the solution I was looking for! I will give the 
 steps a shot.
 
 Thank you do much.
 
 
 -- 
 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 
 Oh My God! They killed init! You Bastards!
 --from a /. post
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Extract Songs from DVD

2008-10-22 Thread Jeremy Chadwick
On Wed, Oct 22, 2008 at 06:45:02PM +0300, Odhiambo Washington wrote:
 On Wed, Oct 22, 2008 at 6:42 PM, Ted Mittelstaedt [EMAIL PROTECTED] wrote:
 
  I think ffmpeg will also convert these, and it supports more
  conversions than sox does.  Actually, both sox and ffmpeg rely
  heavily on external libraries to perform their conversion functions,
  they are more front end programs than anything else.
 
 
 Are there similar (but Free) programs for Windows?

For extraction: try Exact Audio Copy (EAC), or CDex.  It all depends on
if the CD audio tracks are truly available on the DVD or not, and if the
softwares can detect them.  Both can do MP3, Ogg, or other conversions
on-the-fly.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: Extract Songs from DVD

2008-10-22 Thread Odhiambo Washington
On Wed, Oct 22, 2008 at 6:42 PM, Ted Mittelstaedt [EMAIL PROTECTED] wrote:

 I think ffmpeg will also convert these, and it supports more
 conversions than sox does.  Actually, both sox and ffmpeg rely
 heavily on external libraries to perform their conversion functions,
 they are more front end programs than anything else.


Are there similar (but Free) programs for Windows?

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Oh My God! They killed init! You Bastards!
--from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Extract Songs from DVD

2008-10-22 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Odhiambo
 Washington
 Sent: Wednesday, October 22, 2008 8:45 AM
 To: Ted Mittelstaedt
 Cc: Polytropon; User Questions
 Subject: Re: Extract Songs from DVD
 
 
 On Wed, Oct 22, 2008 at 6:42 PM, Ted Mittelstaedt 
 [EMAIL PROTECTED] wrote:
 
  I think ffmpeg will also convert these, and it supports more
  conversions than sox does.  Actually, both sox and ffmpeg rely
  heavily on external libraries to perform their conversion functions,
  they are more front end programs than anything else.
 
 
 Are there similar (but Free) programs for Windows?
 

Windows Media Player ver 11 will rip audio tracks to .mp3, .wav and
of course, .wma  This is a free download from Microsoft for XP and Vista

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


Re: Extract Songs from DVD

2008-10-22 Thread Odhiambo Washington
On Wed, Oct 22, 2008 at 7:07 PM, Ted Mittelstaedt [EMAIL PROTECTED] wrote:


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Odhiambo
 Washington
 Sent: Wednesday, October 22, 2008 8:45 AM
 To: Ted Mittelstaedt
 Cc: Polytropon; User Questions
 Subject: Re: Extract Songs from DVD


 On Wed, Oct 22, 2008 at 6:42 PM, Ted Mittelstaedt
 [EMAIL PROTECTED] wrote:
 
  I think ffmpeg will also convert these, and it supports more
  conversions than sox does.  Actually, both sox and ffmpeg rely
  heavily on external libraries to perform their conversion functions,
  they are more front end programs than anything else.
 

 Are there similar (but Free) programs for Windows?


 Windows Media Player ver 11 will rip audio tracks to .mp3, .wav and
 of course, .wma  This is a free download from Microsoft for XP and Vista

Hi Ted,

It does that from Audio CDs but not DVD, unless I missed the fine
print somehow:-)

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Oh My God! They killed init! You Bastards!
--from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mysql connection through ssl tunnel

2008-10-22 Thread John Almberg
Now I just need to figure out how to start it on reboot, but that  
is something I've been meaning to learn, anyway, so I don't mind.


I hope you guys will bear with me just a little more... I have  
spent the day trying to figure out how to create an rc script for  
autossh. Very cool, and not as hard as I'd anticipated. It is  
attached below.


The script works perfectly *iff* I run it from the command line as  
a non-root user, like so:


/usr/local/etc/rc.d/autossh start

However, it does NOT work when executed by root. Instead, I get the  
following error message in /var/log/messages


  messages:Oct 21 19:01:38 on autossh[89267]: ssh exited  
prematurely with status 255; autossh exiting


So (my understanding), autossh is starting, and tries to create the  
tunnel, but the tunnel creation fails with the unhelpful 255 error  
message.


But only when executed by root. That's the puzzling part.

I don't allow root logins on this server, but don't see how that  
could cause this problem


I'm stumped. Any hints, much appreciated.

-- John

--

#!/bin/sh
# PROVIDE: autossh
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name=autossh
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=:

load_rc_config $name
eval ${rcvar}=\${${rcvar}:='NO'}

command=/usr/local/bin/autossh
command_args=-M 2 -fNg -L 33006:127.0.0.1:3306 [EMAIL PROTECTED]
#pidfile=/var/run/autossh.pid
#AUTOSSH_PIDFILE=$pidfile; export AUTOSSH_PIDFILE

autossh_start()
{
  ${command} ${command_args}
  echo started autossh
}

run_rc_command $1



Answering my own question (probably the best way)...

I solved this problem by figuring out how to execute the command  
inside the rc script as a non-root user. Like so:


autossh_start()
{
  echo ${command} ${command_args}
  su admin -c ${command} ${command_args}
  echo started autossh
}


This works beautifully, so I almost hesitate to ask, but is there  
anything wrong with this approach?


-- John

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


Re: mysql connection through ssl tunnel

2008-10-22 Thread Matthew Seaman

John Almberg wrote:
Now I just need to figure out how to start it on reboot, but that is 
something I've been meaning to learn, anyway, so I don't mind.


I hope you guys will bear with me just a little more... I have spent 
the day trying to figure out how to create an rc script for autossh. 
Very cool, and not as hard as I'd anticipated. It is attached below.


The script works perfectly *iff* I run it from the command line as a 
non-root user, like so:


/usr/local/etc/rc.d/autossh start

However, it does NOT work when executed by root. Instead, I get the 
following error message in /var/log/messages


  messages:Oct 21 19:01:38 on autossh[89267]: ssh exited prematurely 
with status 255; autossh exiting


So (my understanding), autossh is starting, and tries to create the 
tunnel, but the tunnel creation fails with the unhelpful 255 error 
message.


But only when executed by root. That's the puzzling part.

I don't allow root logins on this server, but don't see how that could 
cause this problem


I'm stumped. Any hints, much appreciated.

-- John

--

#!/bin/sh
# PROVIDE: autossh
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name=autossh
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=:

load_rc_config $name
eval ${rcvar}=\${${rcvar}:='NO'}

command=/usr/local/bin/autossh
command_args=-M 2 -fNg -L 33006:127.0.0.1:3306 [EMAIL PROTECTED]
#pidfile=/var/run/autossh.pid
#AUTOSSH_PIDFILE=$pidfile; export AUTOSSH_PIDFILE

autossh_start()
{
  ${command} ${command_args}
  echo started autossh
}

run_rc_command $1



Answering my own question (probably the best way)...

I solved this problem by figuring out how to execute the command inside 
the rc script as a non-root user. Like so:


autossh_start()
{
  echo ${command} ${command_args}
  su admin -c ${command} ${command_args}
  echo started autossh
}


This works beautifully, so I almost hesitate to ask, but is there 
anything wrong with this approach?


Nothing, except you're re-inventing the wheel.  rc.subr already
has a mechanism for running commands as another user.  Instead
of defining a new start() function, simply add something like:

: ${autossh_user:='admin'}

towards the top of the script.  (This also means you can override
the setting by defining 'autossh_user=someoneelse' in /etc/rc.conf
in the usual way)

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: mysql connection through ssl tunnel

2008-10-22 Thread John Almberg

Answering my own question (probably the best way)...
I solved this problem by figuring out how to execute the command  
inside the rc script as a non-root user. Like so:

autossh_start()
{
  echo ${command} ${command_args}
  su admin -c ${command} ${command_args}
  echo started autossh
}
This works beautifully, so I almost hesitate to ask, but is there  
anything wrong with this approach?


Nothing, except you're re-inventing the wheel.  rc.subr already
has a mechanism for running commands as another user.  Instead
of defining a new start() function, simply add something like:

: ${autossh_user:='admin'}

towards the top of the script.  (This also means you can override
the setting by defining 'autossh_user=someoneelse' in /etc/rc.conf
in the usual way)



Ah, fascinating. Now that I know what I'm looking for, I can see that  
in the rc.subr man page.


Thanks!

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


Re: Can't upgrade or deinstall phpMyAdmin

2008-10-22 Thread Mike Clarke
On Wednesday 22 October 2008, Matthew Seaman wrote:

 Hmmm... not entirely sure what has actually gone wrong there, but I
 suspect your /var/db/pkg directory is probably in a bit of a mess.
  Deinstalling phpMyAdmin is simply a matter of removing almost all of
 the files under /usr/local/www/phpMyAdmin -- the only one the port
 tries to preserve is config.inc.php

Yes, I knew phpMyAdmin kept all its files in one place so replacing it 
with the new version by hand was possible if all else failed but the 
ports system would have still thought it had version 2 and I was rather 
unsure what problems the inconsistency might create later.
.
 Can you try:

 ~   # pkg_delete -f phpMyAdmin-2.11.5.2

Yes, I'd already done that with the same segfault.

 If the worst comes to the worst, you can do this (which is certainly
 *not* recommended in the general case, just it happens to work for
 phpMyAdmin which is a port without other things depending on it, and
 that installs everything into one directory):

 ~   # cd /usr/local/www
 ~   # cp phpMyAdmin/config.inc.php /root
 ~   # rm -rf phpMyAdmin
 ~   # cd /var/db/pkg
 ~   # rm -rf phpMyAdmin-2.11.5.2
 ~   # pkgdb -F

That did the trick, thanks for the help.

 Note: there's no need to reinstall phpMyAdmin because you've upgraded
 Apache or even PHP.  phpMyAdmin is all native PHP code and identical
 on disk for whatever combination of PHP interpreter and web server
 you use.  You just need to copy the Apache config stuff into the new
 httpd.conf (ie. based on what 'pkg_info -Dx phpMyAdmin' produces).

Yes, but in this case I'd moved my web server temporarily onto another 
machine while I (slowly) upgraded the hardware on this box, hence the 
removal of Apache and PHP. After getting the new hardware back into 
service I installed the newer versions of Apache and PHP, it was just 
by chance that there was still a copy of phpMyAdmin on the system but 
in view of the security vulnerability in 2.11.5.2 I thought I'd better 
replace it with 3.0.0_1.

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


Re: calendar software wanted

2008-10-22 Thread Andrew Gould
On Wed, Oct 22, 2008 at 8:51 AM, Daniel Molina Wegener [EMAIL PROTECTED] 
wrote:

 Marco escribió:

 hello list,

 anybody has experience with calendar software which runs on freebsd. i
 maybe would integrate it also in thunderbird/mutt,but thats not
 necessary, or use a stand alone software.
 minimum requirements to the software would be making entries, getting
 alarms for appointments.


  Try kontact (the kdepim port). Have fun xD


 thank you for responses,
  marco


 Regards,


Before I moved from my PalmPilot III (still works) to an iPhone (not 3G), I
used JPilot for my PIM and Sylpheed-Claws (the name has changed?) for
email.  This was a good setup because there was a plugin that allowed
Sylpheed-Claws to  access the JPilot addressbook.

I currently use webcalendar (with apache, php, postgresql) for my calendar.
This is overkill for an individual; but has many advantages for family
scheduling:  I can add an item to my wife's calendar with an email
reminder.  Since my wife has a blackberry email address, the message will
get pushed to her phone.  When testing this feature, I would suggest
starting with something like a dinner invitation rather than a grocery list.
   ;-)

Have fun,

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


Re: Inode numbering

2008-10-22 Thread Polytropon
On Sun, 19 Oct 2008 19:18:00 -0700, [EMAIL PROTECTED] wrote:
 You may be able to reuse some code from dump(8).

Hey, that's a good idea! After having had a short look at the
source of dump, I developed another idea: dump applies some
criteria weather to access (and dump) an inode or not. Maybe
it's possible to change these criteria within dump, recompile
it and then use it to dump any (!) existing inode. The only
problem would be to implement a workaround for those that don't 
have a parent inode anymore (file name lost), i. e. those on
the 1st hierarchy stage within the home directory.



 Dump's purpose is to ensure that the dump will be complete in the
 sense of containing the full path to any file that is on the tape,
 and your purpose is different, but I suspect much of the find
 parent logic may be reusable.

I have to admit that it's a bit complicated. Programming applications
in C is my forte, hehe, but dump's C code is very much lowlevel.
I'm so lucky FreeBSD has the right attitude towards documentation.
So I will find a way to implement it, I hope.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Extract Songs from DVD

2008-10-22 Thread Wojciech Puchar

you mean DVD video.

mplayer can play DVD's, just use

-vc dummy -vo null -ao pcm:file=1.wav

in options, this will ignore video and decode audio to 1.wav


On Wed, 22 Oct 2008, Odhiambo Washington wrote:


I bought an original DVD but I cannot play that in my car's audio
player. Is there a tool that I can use to get the songs off the DVD in
WAV format, or even MP3?

--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Oh My God! They killed init! You Bastards!
   --from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



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


what else is needed to make ftp passive work

2008-10-22 Thread Len Conrad
two machines on the same private network.  

ftp  10.0.0.24
Connected to 10.0.0.24.
220 mx1.fairhope.net FTP server (Version 6.00LS) ready.
Name (10.0.0.24:username): 
331 Password required for username.
Password:
230 User username logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp ls
229 Entering Extended Passive Mode (|||64341|)

at this point, there is a long delay, that eventually completes:

200 EPRT command successful.
150 Opening ASCII mode data connection for '/bin/ls'

... and the rest of the ftp session runs fast.

on the ftp server, if we ipfw disable firewall, the ftp session runs without 
delay.

in hosts file, both machines have both of their records, so we don't think the 
delay is query for PTR of either IP.

our ipfw.rules:

# stateful
$IPF 50 check-state
$IPF 60 allow tcp  from any to any established 
$IPF 70 allow all  from any to any out keep-state
$IPF 80 allow icmp from any to any

# open well-known ports

# FTP
$IPF 120 allow tcp from any to any 20 in
$IPF 121 allow tcp from any to any 20 out
$IPF 122 allow tcp from any to any 21 in
$IPF 123 allow tcp from any to any 21 out

In inetd.conf, we've added -l -l -d but don't get any ftpd debug info written 
to /var/log/messages or /var/log/xferlog or dmesg system buffer.

So what else is needed inf our ifpw.rules for the ftpd params to get the switch 
to Extended Passive Mode to run quickly?

thanks,
Len




__
IMGate OpenSource Mail Firewall www.IMGate.net

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


Re: what else is needed to make ftp passive work

2008-10-22 Thread Jeremy Chadwick
On Wed, Oct 22, 2008 at 01:58:31PM -0500, Len Conrad wrote:
 two machines on the same private network.  
 
 ftp  10.0.0.24
 Connected to 10.0.0.24.
 220 mx1.fairhope.net FTP server (Version 6.00LS) ready.
 Name (10.0.0.24:username): 
 331 Password required for username.
 Password:
 230 User username logged in.
 Remote system type is UNIX.
 Using binary mode to transfer files.
 ftp ls
 229 Entering Extended Passive Mode (|||64341|)
 
 at this point, there is a long delay, that eventually completes:
 
 200 EPRT command successful.
 150 Opening ASCII mode data connection for '/bin/ls'
 
 ... and the rest of the ftp session runs fast.
 
 on the ftp server, if we ipfw disable firewall, the ftp session runs 
 without delay.
 
 in hosts file, both machines have both of their records, so we don't think 
 the delay is query for PTR of either IP.
 
 our ipfw.rules:
 
 # stateful
 $IPF 50 check-state
 $IPF 60 allow tcp  from any to any established 
 $IPF 70 allow all  from any to any out keep-state
 $IPF 80 allow icmp from any to any
 
 # open well-known ports
 
 # FTP
 $IPF 120 allow tcp from any to any 20 in
 $IPF 121 allow tcp from any to any 20 out
 $IPF 122 allow tcp from any to any 21 in
 $IPF 123 allow tcp from any to any 21 out
 
 In inetd.conf, we've added -l -l -d but don't get any ftpd debug info 
 written to /var/log/messages or /var/log/xferlog or dmesg system buffer.
 
 So what else is needed inf our ifpw.rules for the ftpd params to get the 
 switch to Extended Passive Mode to run quickly?

You're not understanding the FTP protocol properly, specifically the
difference between Passive and Active mode.  This is why you're having
issues.

You need to punch firewall holes to your FTP server on the following
ports:

 Inbound: TCP port 21   (main ftpd daemon)
 Inbound: TCP ports 49152 to 65535  (used in FTP passive mode)
Outbound: TCP port 20   (used in FTP active mode)

Yes, you read that range correctly.  And yes, it's quite large.  Yes,
there is a way to diminish it, but it will affect other programs on
FreeBSD, so I do not recommend adjusting it.  It's controlled by
sysctls.  See the -U option of ftpd, but note that it doesn't do
anything for FreeBSD 5.0 or later.

I highly recommend you stick the FTP server on its own IP address (e.g.
bind the FTP server to its own IP using IP aliases), and then apply
those rules to a specific IP address, e.g.:

ipfw add 120 allow tcp from any to ftp.server.ip 21 in
ipfw add 121 allow tcp from any to ftp.server.ip 49152-65536 in
ipfw add 122 allow tcp from ftp.server.ip 20 to any out

Finally, I recommend if this machine is RELENG_6 or later, that you look
in to using pf(4) instead.  You'll thank me later.  :-)

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: what else is needed to make ftp passive work

2008-10-22 Thread Lowell Gilbert
Len Conrad [EMAIL PROTECTED] writes:

 two machines on the same private network.  

 ftp  10.0.0.24
 Connected to 10.0.0.24.
 220 mx1.fairhope.net FTP server (Version 6.00LS) ready.
 Name (10.0.0.24:username): 
 331 Password required for username.
 Password:
 230 User username logged in.
 Remote system type is UNIX.
 Using binary mode to transfer files.
 ftp ls
 229 Entering Extended Passive Mode (|||64341|)

 at this point, there is a long delay, that eventually completes:

 200 EPRT command successful.
 150 Opening ASCII mode data connection for '/bin/ls'

 ... and the rest of the ftp session runs fast.

 on the ftp server, if we ipfw disable firewall, the ftp session runs 
 without delay.

 in hosts file, both machines have both of their records, so we don't think 
 the delay is query for PTR of either IP.

 our ipfw.rules:

On both machines?  Only the one initiating the FTP session?

 # stateful
 $IPF 50 check-state
 $IPF 60 allow tcp  from any to any established 
 $IPF 70 allow all  from any to any out keep-state
 $IPF 80 allow icmp from any to any

 # open well-known ports

 # FTP
 $IPF 120 allow tcp from any to any 20 in
 $IPF 121 allow tcp from any to any 20 out
 $IPF 122 allow tcp from any to any 21 in
 $IPF 123 allow tcp from any to any 21 out

 In inetd.conf, we've added -l -l -d but don't get any ftpd debug info 
 written to /var/log/messages or /var/log/xferlog or dmesg system buffer.

 So what else is needed inf our ifpw.rules for the ftpd params to get the 
 switch to Extended Passive Mode to run quickly?

I'd recommend looking at the traffic being seen on the wire (e.g.,
with tcpdump(1) on the interface on the sending side).

I'll guess, though, that you'll find that the data channel is being
blocked from getting into the server.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: what else is needed to make ftp passive work

2008-10-22 Thread Matthew Seaman

Jeremy Chadwick wrote:


Finally, I recommend if this machine is RELENG_6 or later, that you look
in to using pf(4) instead.  You'll thank me later.  :-)


Specifically ftp-proxy(8).  Makes it almost feasible to support such
an archaic and unfriendly-to-firewalling protocol as FTP and still
retain at least a modicum of security.

Cheers,

Matthew, who is still bemused by peoples' assumption that just because 
it is called 'File Transfer Protocol' it is *the* way to transfer
files.  Hello! It's the 21st Century now. Try WebDAV.  Try rsync -- 
either anonymous, or over ssh. Try sftp.  Try scp. 


--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: GCC help

2008-10-22 Thread RW
On Wed, 22 Oct 2008 10:07:09 -0400
Victor Farah [EMAIL PROTECTED] wrote:

 I was wondering how I would update gcc to version 4.2?
 I'm not sure I can just do a portupgrade gcc ??


If you install a later version of gcc it won't automatically get used
because the port will use the base-system version. 

I've seen this warning previously and it's never caused a noticeable
problem for me. If it were serious, I imagine the maintainer would have
configured it to use a minimum gcc port version.

If it bothers you, the most sensible thing would be to upgrade to 7.1
when it's released

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


Re: Using packages compiled for 7.0-RELEASE in 8-CURRENT

2008-10-22 Thread Ashish Shukla आशीष शुक्ल
RW  writes:
 On Wed, 22 Oct 2008 00:09:05 +0530
 [EMAIL PROTECTED] (Ashish Shukla  ___) wrote:

 Hi all,
 
 I'm having a confusion about installing packages compiled in
 7.0-RELEASE in 8.0-CURRENT. I've 2 boxen, a 7.0-RELEASE-p5 and a
 8-CURRENT. The 7.0-RELEASE-p5 is fully updated as of now, and has all
 updated ports available in the form of binary packages. Now, I'm
 wondering if it is okay to install those binary packages on my
 8-CURRENT box. 

 There's no compat7x port to support 7.x packages on CURRENT.

Oh, so iif there is some compat7x port on my 8.0-CURRENT box, then only
I can use 7.0-RELEASE packages.

Thanks for the reply.

Ashish
-- 
()  ascii ribbon campaign - against HTML e-mail
/\  www.asciiribbon.org   - against proprietary attachments
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
% dig +short cname cdac.in @::1
ms.gov.in


pgpmJwkTrIbhn.pgp
Description: PGP signature


man -t odd page size

2008-10-22 Thread Gonzalo Nemmi
Hello there my friends.

I happen to have this little problem and was wondering if somebody could have 
a quick answer.

I'm fed up of reading man pages on my monitor, so I begun to turn them into 
pdf. In order to do so i just issue the following command:

man -t 3 getopt | ps2pdf14 -  man_getopt

It _does_ work, but the problem is that man -t ( -t 
== /usr/bin/groff -S -man) formats the man page in a really non-standart page 
size ( %%DocumentMedia: Default 612 792 0 () () ...  /PageSize [ 612 
792 ] ) which .. well .. sucks ..

Is there an easy way to get man to format the man page using plain good ISO 
216 standard A4 page size?

In case you are wondering: yes, google didn't help and yes, the man pages for 
groff, troff, nroff, ditroff, huge list of etceteras didn't help either.

and on a side note: will we ever get to see ISO 216 A4 as the default choice 
for output instead of not-standard, only usefull in the US but useless in the 
rest of the whole world letter page size and the likes???

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


Re: what else is needed to make ftp passive work

2008-10-22 Thread Norberto Meijome
On Wed, 22 Oct 2008 12:13:30 -0700
Jeremy Chadwick [EMAIL PROTECTED] wrote:

  Inbound: TCP port 21 (main ftpd daemon)
  Inbound: TCP ports 49152 to 65535(used in FTP passive mode)
 Outbound: TCP port 20 (used in FTP active mode)
 
 Yes, you read that range correctly.  And yes, it's quite large.  Yes,
 there is a way to diminish it, but it will affect other programs on
 FreeBSD, so I do not recommend adjusting it.  It's controlled by
 sysctls.  See the -U option of ftpd, but note that it doesn't do
 anything for FreeBSD 5.0 or later.

as far as I remember, FTP servers (with the not so unexpected exception of MS
IIS' FTP service) can be configured to listen on specific ports for passive
transfers.

If you don't have a busy server, a few ports ( 10 ? ) would do. Then you can
firewall it as needed. 

This is, of course, an application (service ) configuration as opposed to what
Jeremy mentioned, I believe , which relies on the servers high ports
definition, which yes, will affect the whole tcp stack in the server.

B
_
{Beto|Norberto|Numard} Meijome

 I sense much NT in you.
 NT leads to Bluescreen.
 Bluescreen leads to downtime.
 Downtime leads to suffering.
 NT is the path to the darkside.
 Powerful Unix is.

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: man -t odd page size

2008-10-22 Thread Polytropon
Hi!

On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote:
 Is there an easy way to get man to format the man page using plain good ISO 
 216 standard A4 page size?

My suggfestion for an attempt would be to first strip any control
characters from the output of man -P cat entry and then pipe
it to an ASCII to PDF converter (a2ps, if I remember correctly);
this would remove any markups, I know, but would lead to a PDF
output using the system's default paper size, A4 (I hope).

I know this is not the best idea, but it should be accomplishable
without many problems. A better idea would be to write a simple
filter that convert the man page (including formatting characters)
into LaTeX source and then run it through pdflatex.



 and on a side note: will we ever get to see ISO 216 A4 as the default choice 
 for output instead of not-standard, only usefull in the US but useless in the 
 rest of the whole world letter page size and the likes???

You're getting my thoughts, man. :-) I'd like to see this happen,
too, but I don't think the developers of FreeBSD and all the fine
applications will say goodbye to their Letter, Legal, Exec etc.
paper formats. A4 isn't a DIN standard anymore, its ISO for many
years now, and unlike Letter, it has the ability to be scaled
(to half size, to quarter size, to double size) easily. Today,
the manual replacement of many different settings is needed to
get a system A4 compliant.

Greetings from Germany, where A4 is the standard for more than
a century now. =^_^=



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: man -t odd page size

2008-10-22 Thread Warren Block

On Thu, 23 Oct 2008, Polytropon wrote:


On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote:

Is there an easy way to get man to format the man page using plain good ISO
216 standard A4 page size?


My suggfestion for an attempt would be to first strip any control
characters from the output of man -P cat entry and then pipe
it to an ASCII to PDF converter (a2ps, if I remember correctly);
this would remove any markups, I know, but would lead to a PDF
output using the system's default paper size, A4 (I hope).


But groff can do A4.  Just as a first pass:

zcat `man -w ls` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - tmp.pdf

It produces the right media size in the PS file, but I can't really test 
it because I don't have any A4 paper.


Maybe there's a way to get man(1) to send different options to groff 
than -t, but I don't know it.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: man -t odd page size

2008-10-22 Thread Gonzalo Nemmi
On Wednesday 22 October 2008 10:38:40 pm Polytropon wrote:
 Hi!

 On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote:
  Is there an easy way to get man to format the man page using plain good
  ISO 216 standard A4 page size?

 My suggfestion for an attempt would be to first strip any control
 characters from the output of man -P cat entry and then pipe
 it to an ASCII to PDF converter (a2ps, if I remember correctly);
 this would remove any markups, I know, but would lead to a PDF
 output using the system's default paper size, A4 (I hope).

 I know this is not the best idea, but it should be accomplishable
 without many problems. A better idea would be to write a simple
 filter that convert the man page (including formatting characters)
 into LaTeX source and then run it through pdflatex.

Exactly .. you got it just the way I wanted .. after your explanantion, the 
question _begs_ to be asked: do we, citizens of ISO 216 adopting countries, 
have to walk that cumbersome path in order to get something as simple as an 
ISO compliant document??

Shouldn't it be the other way around???

Does an inmensily huge majority have to walk the extra mile in order to get an 
ISO compliant document whereas a small minority benefits from having non ISO 
complaint default formats???

I, for once, would pretty much like to know the logic behind that decision.

  and on a side note: will we ever get to see ISO 216 A4 as the default
  choice for output instead of not-standard, only usefull in the US but
  useless in the rest of the whole world letter page size and the
  likes???

 You're getting my thoughts, man. :-) I'd like to see this happen,
 too, but I don't think the developers of FreeBSD and all the fine
 applications will say goodbye to their Letter, Legal, Exec etc.
 paper formats. A4 isn't a DIN standard anymore, its ISO for many
 years now, and unlike Letter, it has the ability to be scaled
 (to half size, to quarter size, to double size) easily. Today,
 the manual replacement of many different settings is needed to
 get a system A4 compliant.

 Greetings from Germany, where A4 is the standard for more than
 a century now. =^_^=

I really hope they do, or at least, start contemplating the fact that ISO 
standards are usefull as a whole or are not usefull at all ..

Gretings from Argentina, where A4 is the standard from 1943.

And yes .. so are the metric system, kilograms, litres, etc :)

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


scp

2008-10-22 Thread kalin m

hi all...

i need to do a script to copy a file from a remote machine via scp with 
a key and without a password


here is what i'm doing:

1. ssh-keygen -t rsa
2. scp new_key.pub to [EMAIL PROTECTED] (with password)
3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys

when i try:
# scp [EMAIL PROTECTED]:/files/file file

i get password prompt...

what am i missing?!?

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


Re: man -t odd page size

2008-10-22 Thread Polytropon
On Wed, 22 Oct 2008 19:19:16 -0600 (MDT), Warren Block [EMAIL PROTECTED] 
wrote:
 But groff can do A4.  Just as a first pass:
 
 zcat `man -w ls` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - tmp.pdf
 
 It produces the right media size in the PS file, but I can't really test 
 it because I don't have any A4 paper.

I checked it - excellent. The formatting of the structural elements
works fine, the result is printable.

I've just finished ~/bin/man2pdf. :-)



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scp

2008-10-22 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kalin m wrote:
 hi all...
 
 i need to do a script to copy a file from a remote machine via scp with
 a key and without a password
 
 here is what i'm doing:
 
 1. ssh-keygen -t rsa
 2. scp new_key.pub to [EMAIL PROTECTED] (with password)
 3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys
 
 when i try:
 # scp [EMAIL PROTECTED]:/files/file file
 
 i get password prompt...
 
 what am i missing?!?
 

Hi Kalin,

Here are a few things to try and check:

- - Run scp with the -vvv flag to enable very verbose output.  You may
see something in the log messages during the connection phase that
expose the problem.

- - Check the /var/log/messages file on the host for debug messages from
sshd.  Are there any errors that indicate why public key authentication
doesn't work?

- - Check the /etc/ssh/sshd_config file contents.  Is PubkeyAuthentication
enabled?  You can also change the LogLevel setting if you need more
information emitted to /var/log/messages.  Don't forget to send SIGHUP
to sshd whenever you change sshd_config.

- - Check the permissions on the the ~user/.ssh directory and the
authorized_keys file.  They have to be sufficiently tight (700 and 600,
typically).

Hope that helps, and post back here with any further questions.

Regards,
Greg Larkin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj/2NQACgkQ0sRouByUApD3jACgnHA1h6XmnOuAEQXsnBjCcZBZ
/k8An2AIMx4CJSXuTDfrPCcBlb9rLFqA
=9z7a
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scp

2008-10-22 Thread Jay Chandler


On Oct 22, 2008, at 6:40 PM, kalin m wrote:


hi all...

i need to do a script to copy a file from a remote machine via scp  
with a key and without a password


here is what i'm doing:

1. ssh-keygen -t rsa
2. scp new_key.pub to [EMAIL PROTECTED] (with password)
3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys


Should be authorized_keys.

I usually cheat and grab a copy of ssh-copy-id from the web; I suspect  
your issue has to do with permissions for the .ssh directory and the  
authorized_keys file.



--
Jay Chandler / KB1JWQ
Living Legend / Systems Exorcist
Today's Excuse: Budget cuts

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


Re: scp

2008-10-22 Thread kalin m

Jay Chandler wrote:


On Oct 22, 2008, at 6:40 PM, kalin m wrote:


hi all...

i need to do a script to copy a file from a remote machine via scp 
with a key and without a password


here is what i'm doing:

1. ssh-keygen -t rsa
2. scp new_key.pub to [EMAIL PROTECTED] (with password)
3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys


Should be authorized_keys.


it is. i just misspelled it in the message...  


I usually cheat and grab a copy of ssh-copy-id from the web; I suspect 
your issue has to do with permissions for the .ssh directory and the 
authorized_keys file.

permissions are 600 for the file and 700 for .ssh

the users are different on the local machine and remote_host. my guess 
is that if i point to the right key with -i it should work correct...


now doing -vvv as  Greg Larkin suggests... 



thanks...




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


Re: scp

2008-10-22 Thread kalin m


with -vvv i get this below:

.
debug1: bits set: 1034/2048
debug1: ssh_dss_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: 
publickey,password,keyboard-interactive
debug3: start over, passed a different list 
publickey,password,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 auth method to try is publickey
debug1: try pubkey: id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: authentications that can continue: 
publickey,password,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 auth method to try is keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: authentications that can continue: 
publickey,password,keyboard-interactive

debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred:
debug3: authmethod_is_enabled password
debug1: next auth method to try is password

after this i get the password prompt

why does it say try pubkey: id_rsa when id_rsa is supposed to be the 
private key?


?!?!




Greg Larkin wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kalin m wrote:
  

hi all...

i need to do a script to copy a file from a remote machine via scp with
a key and without a password

here is what i'm doing:

1. ssh-keygen -t rsa
2. scp new_key.pub to [EMAIL PROTECTED] (with password)
3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys

when i try:
# scp [EMAIL PROTECTED]:/files/file file

i get password prompt...

what am i missing?!?




Hi Kalin,

Here are a few things to try and check:

- - Run scp with the -vvv flag to enable very verbose output.  You may
see something in the log messages during the connection phase that
expose the problem.

- - Check the /var/log/messages file on the host for debug messages from
sshd.  Are there any errors that indicate why public key authentication
doesn't work?

- - Check the /etc/ssh/sshd_config file contents.  Is PubkeyAuthentication
enabled?  You can also change the LogLevel setting if you need more
information emitted to /var/log/messages.  Don't forget to send SIGHUP
to sshd whenever you change sshd_config.

- - Check the permissions on the the ~user/.ssh directory and the
authorized_keys file.  They have to be sufficiently tight (700 and 600,
typically).

Hope that helps, and post back here with any further questions.

Regards,
Greg Larkin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj/2NQACgkQ0sRouByUApD3jACgnHA1h6XmnOuAEQXsnBjCcZBZ
/k8An2AIMx4CJSXuTDfrPCcBlb9rLFqA
=9z7a
-END PGP SIGNATURE-
  

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


Re: man -t odd page size

2008-10-22 Thread Matt Emmerton

On Wednesday 22 October 2008 10:38:40 pm Polytropon wrote:

Hi!

On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi [EMAIL PROTECTED] 
wrote:

 Is there an easy way to get man to format the man page using plain good
 ISO 216 standard A4 page size?

My suggfestion for an attempt would be to first strip any control
characters from the output of man -P cat entry and then pipe
it to an ASCII to PDF converter (a2ps, if I remember correctly);
this would remove any markups, I know, but would lead to a PDF
output using the system's default paper size, A4 (I hope).

I know this is not the best idea, but it should be accomplishable
without many problems. A better idea would be to write a simple
filter that convert the man page (including formatting characters)
into LaTeX source and then run it through pdflatex.


Exactly .. you got it just the way I wanted .. after your explanantion, 
the
question _begs_ to be asked: do we, citizens of ISO 216 adopting 
countries,
have to walk that cumbersome path in order to get something as simple as 
an

ISO compliant document??

Shouldn't it be the other way around???


Perhaps, but since the roots of *BSD are in the USA, letter was a sensible 
default (at the time).


Now, if a collection of FreeBSD members from ISO 216 adopting companies 
wanted to figure out a way to put default paper size into some kind of 
locale option that man (and other tools) could use, then that would go a 
long way towards reducing the pain.


--
Matt 


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


Re: man -t odd page size

2008-10-22 Thread Gonzalo Nemmi
On Thursday 23 October 2008 12:12:23 am Matt Emmerton wrote:
  On Wednesday 22 October 2008 10:38:40 pm Polytropon wrote:
  Hi!
 
  On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi [EMAIL PROTECTED]
 
  wrote:
   Is there an easy way to get man to format the man page using plain
   good ISO 216 standard A4 page size?
 
  My suggfestion for an attempt would be to first strip any control
  characters from the output of man -P cat entry and then pipe
  it to an ASCII to PDF converter (a2ps, if I remember correctly);
  this would remove any markups, I know, but would lead to a PDF
  output using the system's default paper size, A4 (I hope).
 
  I know this is not the best idea, but it should be accomplishable
  without many problems. A better idea would be to write a simple
  filter that convert the man page (including formatting characters)
  into LaTeX source and then run it through pdflatex.
 
  Exactly .. you got it just the way I wanted .. after your explanantion,
  the
  question _begs_ to be asked: do we, citizens of ISO 216 adopting
  countries,
  have to walk that cumbersome path in order to get something as simple as
  an
  ISO compliant document??
 
  Shouldn't it be the other way around???

 Perhaps, but since the roots of *BSD are in the USA, letter was a sensible
 default (at the time).

That's a fact and I couldn't agree more with your assertion.

 Now, if a collection of FreeBSD members from ISO 216 adopting companies
 wanted to figure out a way to put default paper size into some kind of
 locale option that man (and other tools) could use, then that would go a
 long way towards reducing the pain.
 --
 Matt

Now, and taking into consideration your 100% correct assumption and the fact 
that letter was a sensible default (at the time) wouldn't it make a lot 
more sense to do it the other way around?

I mean .. What about figuring out a way to put default paper size = letter 
into some kind of locale option that man (and other tools) could use and turn 
the ISO 216 standard into the default option?

Once again, your first assumption about the fact that letter was a sensible 
default (at the time) is 100% correct, but ... and having as a counterpoint 
that those times have changed dramatically is it so hard to see the benefits 
associated with adopting ISO 216 (A4 in particular) as default page size 
instead of letter?

I don't work for an ISO 216 adopting company, and hopefully I never will, I 
don't speak for them, and hopefully I never will ... I'm just a citizen of 
the long list of countries who adhere to the ISO 216 and I'd really like to 
see FreeBSD apps slowly turn to use ISO 216 by default (or at least provide a 
painless flag like -pa4 or the likes) instead of non-standard formats which 
only benefit a portion of it's user base, putting the rest of us to stretchs 
in order to get optimal results.

If there's an ISO standar, why not stick to it?

I understand that it may have been an inconvenience in the past times .. but 
those times are long past now, and ISO 216 _is_the_standard_ to which _most_ 
countries (let alone companies) adhere :S

With all due respect: that's my point.

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


Re: scp

2008-10-22 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kalin m wrote:
 
 with -vvv i get this below:
 
 .
 debug1: bits set: 1034/2048
 debug1: ssh_dss_verify: signature correct
 debug1: kex_derive_keys
 debug1: newkeys: mode 1
 debug1: SSH2_MSG_NEWKEYS sent
[...]
 
 after this i get the password prompt
 
 why does it say try pubkey: id_rsa when id_rsa is supposed to be the
 private key?
 
 ?!?!
 



Hi Kalin,

Don't worry about that message - I see the same thing here with an ssh
connection that succeeds. The try pubkey message displays a private
key file.

Did you check the sshd_config file on the server and the
/var/log/messages file for additional hints?  If you see anything
interesting, please post the output here.  Also make sure that
PubkeyAuthentication is enabled (on) in sshd_config.

Regards,
Greg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj/63kACgkQ0sRouByUApAk/gCfTwdUyekSlWD2RFW1Bkmx57XH
sbYAn0ArMnCOVybN/yomeu7XiOe+154f
=MlC3
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: man -t odd page size

2008-10-22 Thread Gonzalo Nemmi
On Wednesday 22 October 2008 11:19:16 pm Warren Block wrote:
 On Thu, 23 Oct 2008, Polytropon wrote:
  On Wed, 22 Oct 2008 21:56:20 -0200, Gonzalo Nemmi [EMAIL PROTECTED] 
wrote:
  Is there an easy way to get man to format the man page using plain good
  ISO 216 standard A4 page size?
 
  My suggfestion for an attempt would be to first strip any control
  characters from the output of man -P cat entry and then pipe
  it to an ASCII to PDF converter (a2ps, if I remember correctly);
  this would remove any markups, I know, but would lead to a PDF
  output using the system's default paper size, A4 (I hope).

 But groff can do A4.  Just as a first pass:

 zcat `man -w ls` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - tmp.pdf

 It produces the right media size in the PS file, but I can't really test
 it because I don't have any A4 paper.

 Maybe there's a way to get man(1) to send different options to groff
 than -t, but I don't know it.

 -Warren Block * Rapid City, South Dakota USA


You just rule ...
Thank you
I mean it .. Thanks a lot :)

My best regards :D

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


Re: man -t odd page size

2008-10-22 Thread Gonzalo Nemmi
On Wednesday 22 October 2008 11:51:02 pm you wrote:
 On Wed, 22 Oct 2008 19:19:16 -0600 (MDT), Warren Block [EMAIL PROTECTED] 
wrote:
  But groff can do A4.  Just as a first pass:
 
  zcat `man -w ls` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf -
  tmp.pdf
 
  It produces the right media size in the PS file, but I can't really test
  it because I don't have any A4 paper.

 I checked it - excellent. The formatting of the structural elements
 works fine, the result is printable.

 I've just finished ~/bin/man2pdf. :-)

Amm ... could you share it with us?
Please, please, please???
:D

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


Locked out of Root

2008-10-22 Thread APseudoUtopia
Hey,

I have one user (other than root and the other system users) on my
box, and that user is _NOT_ in the wheel group. I also have root
logins disabled via SSH. This is a remote server and all I have is SSH
access.

Is there any way that I can gain root? I know the root password and
everything, but I just can't get to it. The user is not in the wheel
group, and root login is disabled in SSH.

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


Re: scp

2008-10-22 Thread kalin m


here is pretty much the same from another machine (os x laptop) with a 
dsa key:



debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /private/var/root/.ssh/id_dsa (0x300e30)
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug3: start over, passed a different list 
publickey,password,keyboard-interactive
debug3: preferred 
gssapi-keyex,gssapi-with-mic,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: /private/var/root/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive
debug2: we did not send a packet, disable method   ==  * why didn't 
we?!? 

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
debug1: Authentications that can continue: 
publickey,password,keyboard-interactive

debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred:
debug3: authmethod_is_enabled password
debug1: Next authentication method: password




kalin m wrote:


with -vvv i get this below:

.
debug1: bits set: 1034/2048
debug1: ssh_dss_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: 
publickey,password,keyboard-interactive
debug3: start over, passed a different list 
publickey,password,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 auth method to try is publickey
debug1: try pubkey: id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: authentications that can continue: 
publickey,password,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 auth method to try is keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: authentications that can continue: 
publickey,password,keyboard-interactive

debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred:
debug3: authmethod_is_enabled password
debug1: next auth method to try is password

after this i get the password prompt

why does it say try pubkey: id_rsa when id_rsa is supposed to be the 
private key?


?!?!




Greg Larkin wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kalin m wrote:
 

hi all...

i need to do a script to copy a file from a remote machine via scp with
a key and without a password

here is what i'm doing:

1. ssh-keygen -t rsa
2. scp new_key.pub to [EMAIL PROTECTED] (with password)
3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys

when i try:
# scp [EMAIL PROTECTED]:/files/file file

i get password prompt...

what am i missing?!?




Hi Kalin,

Here are a few things to try and check:

- - Run scp with the -vvv flag to enable very verbose output.  You may
see something in the log messages during the connection phase that
expose the problem.

- - Check the /var/log/messages file on the host for debug messages from
sshd.  Are there any errors that indicate why public key authentication
doesn't work?

- - Check the /etc/ssh/sshd_config file contents.  Is 
PubkeyAuthentication

enabled?  You can also change the LogLevel setting if you need more
information emitted to /var/log/messages.  Don't forget to send SIGHUP
to sshd whenever you change sshd_config.

- - Check the permissions on the the ~user/.ssh directory and the
authorized_keys file.  They have to be sufficiently tight (700 and 600,
typically).

Hope that helps, and post back here with any further questions.

Regards,
Greg Larkin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


Re: scp

2008-10-22 Thread kalin m



Hi Kalin,

Don't worry about that message - I see the same thing here with an ssh
connection that succeeds. The try pubkey message displays a private
key file.

Did you check the sshd_config file on the server and the
/var/log/messages file for additional hints?  If you see anything
interesting, please post the output here.  Also make sure that
PubkeyAuthentication is enabled (on) in sshd_config.

  

thanks  Greg...   its actually

PubkeyAuthentication yes

it's the default

there is nothing in the messages log. and i don't see any openssh logs.. 
thanks...




Regards,
Greg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj/63kACgkQ0sRouByUApAk/gCfTwdUyekSlWD2RFW1Bkmx57XH
sbYAn0ArMnCOVybN/yomeu7XiOe+154f
=MlC3
-END PGP SIGNATURE-
  

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


Re: Locked out of Root

2008-10-22 Thread Benjamin Lee
On 10/22/08 19:55, APseudoUtopia wrote:
 Hey,
 
 I have one user (other than root and the other system users) on my
 box, and that user is _NOT_ in the wheel group. I also have root
 logins disabled via SSH. This is a remote server and all I have is SSH
 access.
 
 Is there any way that I can gain root? I know the root password and
 everything, but I just can't get to it. The user is not in the wheel
 group, and root login is disabled in SSH.
 
 Thanks for any help/advice.

Login as the unprivileged user and run:

$ su

See su(1).


-- 
Benjamin Lee



signature.asc
Description: OpenPGP digital signature


Re: man -t odd page size

2008-10-22 Thread Polytropon
On Thu, 23 Oct 2008 01:14:10 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote:
 Amm ... could you share it with us?
 Please, please, please???
 :D

In basic (not in BASIC) it consists the same commands that Warren
posted. It's a simple two line script without significant error
checking, and of course coded in an ugly way (as it is used to scare
people off the command line):

#!/bin/sh
[ $# != 0 ]  ( zcat `man -w [EMAIL PROTECTED] | groff -Tps -dpaper=a4 -P-pa4 
-mandoc | ps2pdf - /tmp/man.pdf  gv /tmp/man.pdf  rm /tmp/man.pdf )

By the way, it's called ~/bin/pdfman here now, because man2pdf
would suggest that it takes a manpage as input and gives a PDF
file as output, but it doesn't - it's used just like man, but
produces and displays (!) the manpage file right away, giving
the user the choice to view and / or to print it (from within
the viewer); I chose gv, but you can use xpdf, KDE's or Gnome's
default PDF viewer or the thing from Acrobat, if you like.
Afterwards, the PDF file, stored temporarily, is deleted.

One of its disadvantages is that you cannot search within the PDF
file such as you can from within man's default pager less, using
the / key.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Locked out of Root

2008-10-22 Thread Jon Radel
Benjamin Lee wrote:
 On 10/22/08 19:55, APseudoUtopia wrote:
 Hey,

 I have one user (other than root and the other system users) on my
 box, and that user is _NOT_ in the wheel group. I also have root
 logins disabled via SSH. This is a remote server and all I have is SSH
 access.

 Is there any way that I can gain root? I know the root password and
 everything, but I just can't get to it. The user is not in the wheel
 group, and root login is disabled in SSH.

 Thanks for any help/advice.
 
 Login as the unprivileged user and run:
 
 $ su
 
 See su(1).
 
 

Noting with care the following paragraph:

PAM is used to set the policy su(1) will use.  In particular, by default
only users in the ``wheel'' group can switch to UID 0 (``root'').  This
group requirement may be changed by modifying the ``pam_group'' section
of /etc/pam.d/su.  See pam_group(8) for details on how to modify this
setting.

which may well be why the OP keeps stressing that his unprivileged user
is not in the wheel group.  ;-)

--Jon Radel
[EMAIL PROTECTED]


smime.p7s
Description: S/MIME Cryptographic Signature


Re: man -t odd page size

2008-10-22 Thread Gonzalo Nemmi
On Thursday 23 October 2008 1:33:48 am Polytropon wrote:
 On Thu, 23 Oct 2008 01:14:10 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote:
  Amm ... could you share it with us?
  Please, please, please???
 
  :D

 In basic (not in BASIC) it consists the same commands that Warren
 posted. It's a simple two line script without significant error
 checking, and of course coded in an ugly way (as it is used to scare
 people off the command line):

 #!/bin/sh
 [ $# != 0 ]  ( zcat `man -w [EMAIL PROTECTED] | groff -Tps -dpaper=a4 
 -P-pa4 -mandoc |
 ps2pdf - /tmp/man.pdf  gv /tmp/man.pdf  rm /tmp/man.pdf )

 By the way, it's called ~/bin/pdfman here now, because man2pdf
 would suggest that it takes a manpage as input and gives a PDF
 file as output, but it doesn't - it's used just like man, but
 produces and displays (!) the manpage file right away, giving
 the user the choice to view and / or to print it (from within
 the viewer); I chose gv, but you can use xpdf, KDE's or Gnome's
 default PDF viewer or the thing from Acrobat, if you like.
 Afterwards, the PDF file, stored temporarily, is deleted.

 One of its disadvantages is that you cannot search within the PDF
 file such as you can from within man's default pager less, using
 the / key.

Your rule too :D
Will try to make a perl version of it (just for fun and because I like perl a 
lot .. hate me if you so desire .. I know I desereve it :) )  and post it as 
soon as it works ok :)
Thanks a lot for your support Polytropon :)

PS: now we have pdf man pages in A4 format :D :D :D

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


does hardware upgrade requires reconfiguration?

2008-10-22 Thread Amitabh Kant
Hi

I currently have a single processor/4gb ram machine with me which I am
thinking to upgrade to dual proc and 8gb ram. Does installing extra
processor requires re-configuration or re-installation of the os? The
extra processor will be mounted on the same motherboard.

With regards

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


Re: Locked out of Root

2008-10-22 Thread mdh
He said his unprivileged user isn't in the wheel group.  

To answer the initial question, you'll need to login to the system on the local 
console.  You cannot get root access via the network unless you're running 
another remote access service besides ssh which will allow you to login as root 
directly.  

- mdh

--- On Wed, 10/22/08, Benjamin Lee [EMAIL PROTECTED] wrote:
 From: Benjamin Lee [EMAIL PROTECTED]
 Subject: Re: Locked out of Root
 To: APseudoUtopia [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Date: Wednesday, October 22, 2008, 11:25 PM
 
 Login as the unprivileged user and run:
 
 $ su
 
 See su(1).



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


Re: man -t odd page size

2008-10-22 Thread Warren Block

On Thu, 23 Oct 2008, Gonzalo Nemmi wrote:

On Thursday 23 October 2008 12:12:23 am Matt Emmerton wrote:


Perhaps, but since the roots of *BSD are in the USA, letter was a sensible
default (at the time).


That's a fact and I couldn't agree more with your assertion.


Now, if a collection of FreeBSD members from ISO 216 adopting companies
wanted to figure out a way to put default paper size into some kind of
locale option that man (and other tools) could use, then that would go a
long way towards reducing the pain.


Now, and taking into consideration your 100% correct assumption and the fact
that letter was a sensible default (at the time) wouldn't it make a lot
more sense to do it the other way around?


Given history and POLA, probably not.


I mean .. What about figuring out a way to put default paper size = letter
into some kind of locale option that man (and other tools) could use and turn
the ISO 216 standard into the default option?


Having a new default that is different from the historical one can be a 
problem for legacy stuff.



I don't work for an ISO 216 adopting company, and hopefully I never will, I
don't speak for them, and hopefully I never will ... I'm just a citizen of
the long list of countries who adhere to the ISO 216 and I'd really like to
see FreeBSD apps slowly turn to use ISO 216 by default (or at least provide a
painless flag like -pa4 or the likes) instead of non-standard formats which
only benefit a portion of it's user base, putting the rest of us to stretchs
in order to get optimal results.


Don't mistake the lack of a feature like global page size settings for a 
refusal.  Maybe it's hard to do, or there just hasn't been enough need 
to motivate someone to implement it.


The strength of open source software is that users can make improvements 
they need.  So consider this your opportunity to help.


A good start would just be determining which programs need to be 
modified.  A check for similar work in other operating systems would be 
very useful.  Finally, a proposal for the way to implement the change, 
and maybe even patches.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: does hardware upgrade requires reconfiguration?

2008-10-22 Thread Polytropon
On Thu, 23 Oct 2008 08:48:37 +0530, Amitabh Kant [EMAIL PROTECTED] wrote:
 Does installing extra
 processor requires re-configuration or re-installation of the os? The
 extra processor will be mounted on the same motherboard.

In most cases, no, because the GENERIC kernel is ready for
multiprocessor use. You should see changes in dmesg oztput
as soon as you changed the hardware, and the OS should be
able to utilize the new processor, as well as the upgraded
RAM. If you're using a custom kernel without SMP support,
it may (!) be a problem, but I'm not sure about this.

Finally, it's hard not to say: Man, this is FreeBSD, and
not 'Windows'! :-)


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scp

2008-10-22 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kalin m wrote:
 
 Hi Kalin,

 Don't worry about that message - I see the same thing here with an ssh
 connection that succeeds. The try pubkey message displays a private
 key file.

 Did you check the sshd_config file on the server and the
 /var/log/messages file for additional hints?  If you see anything
 interesting, please post the output here.  Also make sure that
 PubkeyAuthentication is enabled (on) in sshd_config.

   
 thanks  Greg...   its actually
 
 PubkeyAuthentication yes
 
 it's the default
 
 there is nothing in the messages log. and i don't see any openssh logs..
 thanks...

Hi Kalin,

Please try the following command, and let me know if you see any output
from it.  If so, please post it here.

grep sshd /var/log/messages | tail -20

Regards,
Greg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj/+h8ACgkQ0sRouByUApB/wwCeJyWSvft0FsU+5KJNCNgj6ybQ
xeMAoIKSPU8tZ5G8pKkJakAUMzcq71wR
=CweV
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up gmirror

2008-10-22 Thread Carl

Wojciech Puchar wrote:


disk will be overwritten).  Add another disk to this mirror, so 
it will

be synchronized with existing disk:

   gmirror label -v -b round-robin data da0


add -s very large value like -s 1048576 to prevent splitting one 
request on 2 disks.


I thought the -s option was only applicable when using -b split for 
the balancing algorithm. Does round-robin not mean simply 
alternating between the two disks without ever splitting requests?


no. it means for example with -s 65536 and 1MB request - it will split 
this request on 2 disks




So there is no difference between split and round-robin algorithms then?

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


Re: man -t odd page size

2008-10-22 Thread Gonzalo Nemmi
On Thursday 23 October 2008 2:07:35 am Warren Block wrote:
 On Thu, 23 Oct 2008, Gonzalo Nemmi wrote:
  On Thursday 23 October 2008 12:12:23 am Matt Emmerton wrote:
  Perhaps, but since the roots of *BSD are in the USA, letter was a
  sensible default (at the time).
 
  That's a fact and I couldn't agree more with your assertion.
 
  Now, if a collection of FreeBSD members from ISO 216 adopting companies
  wanted to figure out a way to put default paper size into some kind of
  locale option that man (and other tools) could use, then that would go a
  long way towards reducing the pain.
 
  Now, and taking into consideration your 100% correct assumption and the
  fact that letter was a sensible default (at the time) wouldn't it make
  a lot more sense to do it the other way around?

 Given history and POLA, probably not.

With all due respect, history  changes .. it's in its nature .. and I not 
claiming authority in anyway whatsoever (if that's what POLA stands for). Im 
just saying there might be room for improvement and that switching from 
non-standard letter to standard ISO 216 does represent and improvement 
indeed.

  I mean .. What about figuring out a way to put default paper size =
  letter into some kind of locale option that man (and other tools) could
  use and turn the ISO 216 standard into the default option?

 Having a new default that is different from the historical one can be a
 problem for legacy stuff.

100% agreed ...

Brainstorming .. im thinking maybe there should be no app defined default (in 
this case).. Maybe you just threw the key on the table .. and default should 
be what an enviromental setting says default should be (PAGESIZE=letter, 
PAGESIZE=a4) and not what the apps thinks it should be ... Furthermore .. 
maybe the app should halt if it finds no enviromental setting is available 
and ask the user to set it in order to know how to proceed.
Just brainstorming..

Nothing is farther from the truth than me or than whatever comes from my mind.

  I don't work for an ISO 216 adopting company, and hopefully I never will,
  I don't speak for them, and hopefully I never will ... I'm just a citizen
  of the long list of countries who adhere to the ISO 216 and I'd really
  like to see FreeBSD apps slowly turn to use ISO 216 by default (or at
  least provide a painless flag like -pa4 or the likes) instead of
  non-standard formats which only benefit a portion of it's user base,
  putting the rest of us to stretchs in order to get optimal results.

 Don't mistake the lack of a feature like global page size settings for a
 refusal.  Maybe it's hard to do, or there just hasn't been enough need
 to motivate someone to implement it.

Never did, never will. It resides in the very nature of OSS that refusals are 
nothing but a mere illusion .. As you implied in your aforemention paragraph 
it only takes motivated individuals to turn refusals into realities.
 
 The strength of open source software is that users can make improvements
 they need.  So consider this your opportunity to help.

Exactly... and I think I just begun to do that :)

 A good start would just be determining which programs need to be
 modified.  A check for similar work in other operating systems would be
 very useful.  Finally, a proposal for the way to implement the change,
 and maybe even patches.

Well .. we seem to have a start about which programs need to be modified ...
It gets a little tougher regarding other operting system given that FreeBSD is 
the only one running on my only PC :'(

Thanks for your expert advise Warren (I mean it). I'll dedicate the next few 
days to think on a scheme to solve this issue in the most elegant, less prone 
to error and less disruptive way to solve this matter, altough, at least at 
first glance, letting an eviromental setting define the size of the page to 
use seems to be most friendly and transparent way to let the user decide the 
size of the page to use with out too much hassel.

I would really like to know what do you think about that approach.

 -Warren Block * Rapid City, South Dakota USA

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


Re: man -t odd page size

2008-10-22 Thread Polytropon
On Thu, 23 Oct 2008 02:58:42 -0200, Gonzalo Nemmi [EMAIL PROTECTED] wrote:
 Brainstorming .. im thinking maybe there should be no app defined default (in 
 this case).. Maybe you just threw the key on the table .. and default should 
 be what an enviromental setting says default should be (PAGESIZE=letter, 
 PAGESIZE=a4) and not what the apps thinks it should be ...

There is something similar placable into /etc/make.conf:

PAGE=   A4
PAPERSIZE=  a4
A4= yes

But this is of course not honoured by applications at run time,
and only by a few at compile time.



 Furthermore .. 
 maybe the app should halt if it finds no enviromental setting is available 
 and ask the user to set it in order to know how to proceed.

Another idea would to conclude the paper size from a locale setting,
let's say, if it's en_US, then select letter, or A4 else.

For example, programs like Gimp require a setting to be done manually
from within the printing dialog. It shouldn't be there. Things like
paper size should be set at system level, not neccessarily at
application level. It will make things easier when administrating
a system - set paper size once, then forget it.

An idea would be to place the paper size setting near your
printing filter (not the spooler) and advice applications to read
it from there, maybe from a file, maybe from an environmental
variable.





-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]