Re: Two-way Sync of Directories - how? (rsync?)

2004-04-02 Thread Dany Nativel
Have you tried unison (FreeBSD, linux, win32, OSX) ?

http://www.cis.upenn.edu/~bcpierce/unison/   (available in ports too)

Dany

Steven N. Fettig wrote:

I have two workstations I use (one at home and one at work) connected 
via a private DSL link that each have the directories /home/me.  I 
want to run a cron job to sync the directories (bi-directionally).  
Rsync seems to work only in one direction (I know I could set up the 
script on both machines), but I wanted to see if I could run the 
script on one machine and simply copy new files over to the lacking 
machine or update files via checksums (where a file has been updated 
on one machine and I want that updated file to be copied over the old 
file on the other machine).  I am not worried about the case where I 
might update a given file on both machines at the same time - it 
doesn't happen.
Any advice and scripts that you use to accomplish this?

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


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


Re: Backups: rsync, software RAID, other strategies?

2004-03-07 Thread Dany Nativel
Hi Bob,

I use the following configuration on my file server.
It's a small cube based on a low power mini-ITX EPIA 5000 motherboard 
(fanless) and running two 120GB HDDs.
I looked at RAID but it doesn't help solving one of the potential issue 
... me, user removing files that are not supposed to be removed so 
incremental backup is a plus. This baby is powered by FreeBSD 5.2.1 
(used to be Debian).

DISK 0 (live)
128M   ad0s1a /
512M   ad0s1b swap
128M   ad0s1d /var
200M   ad0s1e /tmp
3200MB ad0s1f /usr
110GB  ad0s2d /data
DISK 1  (Backup)
ad2s1d 128M  /backup/os/root
ad2s0b 512M  swap
ad2s1e 128M  /backup/os/var  
ad2s1f 200M  /backup/os/tmp
ad2s1g3199M  /backup/os/usr
ad2s2d 108G  /backup/data/backup

I use 3 different programs :
- Unison (http://www.cis.upenn.edu/~bcpierce/unison/):  2-way 
synchronization using rsync/ssh, multi-platform graphical interface. I 
can have the same files on my file server, laptop running win2k as well 
as my desktop running BSD.  Very convenient especially with laptops when 
you can't be connected all the time.Very fast too (only transmit diffs)
- rsync (man rsync) :  typical rsync that will mirror the source to the 
destination
- rdiff-backup (http://rdiff-backup.stanford.edu/index.html): it's based 
on rsync but you get the advantage of incremental backups so you can 
restore from a specific date. You can also purge the backup by removing 
old stuff. No fancy  file  format, just .gz for the diffs.

Here is how I use those tools :
/data/current/user0_live (DISK 0)    UNISON : 2-way 
synchronization with laptop/desktop
/data/current/user0_incremental (DISK 0)      RDIFF-BACKUP : 
incremental backup of user0_live using RDIFF system
/backup/data/backup/user0_incremental (DISK1)    RSYNC : quick 
mirror of the already incremental backup

/backup/data/backup/pictures (DISK1)   RDIFF-BACKUP : 
in this case, rdiff-backup between drive0 and drive1 (no incremental on 
disk0)

/backup/os/root (DISK1)DUMP : 1:1 copy of the live root fs
/backup/os/tmp  (DISK1)
/backup/os/var  (DISK1)
/backup/os/usr (DISK1) RSYNC :  (with -delete option) for 
a quick mirror of current /usr

PS: for user0, there are two copies of the data on disk0, 1 live 
synchronized with Unison and another one which is an incremental of the 
first one.  For less critical data (like /data/current/pictures) I use 
rdiff-backup between disk0 and disk1. In that case I would lose 
incremental backups if disk1 fails.

I've simulated a crisis situation by removing the drive0 and swapping it 
with drive1. It worked (except for those entries in fstab referring to 
disk1).

I have a cron job taking of the different backups at night. 

#!/bin/sh

# Duplicate /
# erase slive before mirroring, any other way?
umount /backup/os/root
newfs /dev/ad2s1a
mount /backup/os/root
# dump with 'live filesystem' option
dump -0 -L -f - /dev/ad0s1a | (cd /backup/os/root ; restore -r -v -f -)
# Duplicate /var
umount /backup/os/var
newfs /dev/ad2s1d
mount /backup/os/var
dump -0 -L -f - /dev/ad0s1d | (cd /backup/os/var ; restore -r -v -f -)
# Duplicate /tmp (probably a wate of time)
umount /backup/os/tmp
newfs /dev/ad2s1e
mount /backup/os/tmp
dump -0 -L -f - /dev/ad0s1e | (cd /backup/os/tmp ; restore -r -v -f -)
# incremental backup of the ./pictures directory on the second drive
rdiff-backup /data/current/pictures /backup/data/backup/pictures
# First, incremental of the user0_live dir on the same drive then rsync 
on the second drive
rdiff-backup /data/current/user0_live /data/current/user0_incremental
rsync  -a --delete /data/current/user0_incremental/ 
/backup/data/backup/user0_incremental

The only I don't like is the NEWFS command. Is there a cleaner way to do 
this dump ?

I use this configuration is a non-critical installation (my house) but 
it has been serving its purpose so far.
Dany

PS:  On the rdiff-backup webpage there is a link to another tool call 
duplicity (http://rdiff-backup.stanford.edu/duplicity.html).  You can do 
remote backup but in that case the image can be stored on a remote FTP 
server and encrypted with GPG... sweet if you're planning to use your 
ISP's disk space for backups!



Bob Johnson wrote:

A bunch of related questions:

I'm setting up a small mail and file server.  The mail server part will 
be Courier, while the file server part will primarily be used via NFS 
and Samba to store backups of my desktop and laptop computers.

The system has a pair of WD1600JB 160 GB ATA 100 drives in it, both on a 
single Promise PDC20268 UDMA100 controller, but each on a separate 
channel (i.e. both are masters with no slaves).  My plan is to use one 
of the drives as a backup for the other.  I want to use a backup method 
that creates a mirror of the working drive so that if it fails, I can 
simply mount the backup in place of the working drive, and get back in 
business.  The operating system will (probably) not be on either

Re: USB 2.0 harddisk performance

2004-03-01 Thread Dany Nativel
Have you enabled EHCI support ?

Even with EHCI enabled the speed won't be that great. According to the 
man page, the code is still under development and therefore pretty buggy.

Maybe you'll have better luck with Firewire.

Dany

Guy Van Sanden wrote:

I have a USB 2.0 harddisk (internally ATA-100) connected to a USB 2.0
port.
Unfortunatly, data transfers are limited to 1 MB/second (reported by
FreeBSD on detection, and confirmed using Bonnie).
Any ideas?

I'm running 5.2.1

 

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


Re: USB 2.0 harddisk performance

2004-03-01 Thread Dany Nativel
add a line to your kernel config file with :
device ehci 
or options ehci... I'm not sure. Check your kernel config file, it 
should be the same as ohci! ... sorry I'm not in front of my fbsd box.

Also don't forget to enable DMA for your drives.
you can switch DMA (it should be on for HD) for CDROM/CDRW through 
/boot/loader.conf

#sysctl -a | gep dma
to see HDD status
#sysctl -a | grep atapi
to see CD status



Guy Van Sanden wrote:

Silly question Dany, how do I enable EHCI?



On Mon, 2004-03-01 at 17:11, Dany Nativel wrote:
 

Have you enabled EHCI support ?

Even with EHCI enabled the speed won't be that great. According to the 
man page, the code is still under development and therefore pretty buggy.

Maybe you'll have better luck with Firewire.

Dany

Guy Van Sanden wrote:

   

I have a USB 2.0 harddisk (internally ATA-100) connected to a USB 2.0
port.
Unfortunatly, data transfers are limited to 1 MB/second (reported by
FreeBSD on detection, and confirmed using Bonnie).
Any ideas?

I'm running 5.2.1



 

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

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


Re: GBDE - Destroy command not working

2004-02-19 Thread Dany Nativel
It didn't work but after several other attempts. I've been able to run 
it using a specific combination.

So to summarize,  in my case, I can only run destroy :
- using external lock files (-l parameter mandatory)
- with the current key only (no -n -1 parameter to say destroy them all)
- using /dev/xxx  (xxx  only doesn't work)
First, what's not working :
-- Without detached lockfile
# kldload geom_bde
# gbde init /dev/da0 -i
# gbde attach da0
# gbde detach da0
# gbde destroy da0
Enter passphrase:
gbde: read: Inappropriate ioctl for device
and also

# gbde destroy /dev/da0
Enter passphrase:
gbde: No -L option and no space in sector 0 for lockfile
-- With detached lockfile
# gbde destroy da0 -l /etc/mykey
Enter passphrase:
gbde: Error 22 decrypting lock
and then

# gbde destroy /dev/da0 -l /etc/mykey
Enter passphrase:
Wrote key 0 at 5371894
And it worked for the current key.

I also tried to use the -n x, --n x parameter (with x= -1, 1) but it 
never worked!

At one point I even received  a
Fatal trap 12: page fault while in kernel mode  (many of them in fact)


Dany Nativel wrote:

I've been playing around with GBDE under 5.2RC2-1. It's a fantastic 
encrypted FS.
Following the man page, I've tried to use the destroy command but 
without success.

Here is what I did to create the encrypted FS (for this test I didn't 
use the /dev/random to fill-up the disc).

# kldload geom_bde
# gbde init /dev/da0 -i
# gbde setkey /dev/da0 -n 2
# gbde attach /dev/da0 # newfs /dev/da0.bde
# mount /dev/da0.bde /mnt/usbkey
-- use the FS, works fine
# umount /mnt/usbkey
# gbde detach da0
Then according to the man page I should use  :
#gbde destroy da0 -n -1   to purge all keys but I get :
gbde: illegal option -- n
so I changed to :
#gbde destroy da0 --n -1   and got  :
gbde: read: Innapropriate ioctl for device
so I changed to :
#gbde destroy /dev/da0 --n -1  and this time I get the password prompt 
but it fails to destroy anything :
Enter passphrase:
Opened with key 0
gbde: No -L option and no space in sector 0 for lockfile

Maybe I didn't understand the purpose of the this command. I thought 
it was going to replace each lock key with some random data.
Can somebody explain me how to use the destroy command ?

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


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


GBDE - Destroy command not working

2004-02-16 Thread Dany Nativel
I've been playing around with GBDE under 5.2RC2-1. It's a fantastic 
encrypted FS.
Following the man page, I've tried to use the destroy command but 
without success.

Here is what I did to create the encrypted FS (for this test I didn't 
use the /dev/random to fill-up the disc).

# kldload geom_bde
# gbde init /dev/da0 -i
# gbde setkey /dev/da0 -n 2
# gbde attach /dev/da0 
# newfs /dev/da0.bde
# mount /dev/da0.bde /mnt/usbkey
-- use the FS, works fine
# umount /mnt/usbkey
# gbde detach da0

Then according to the man page I should use  :
#gbde destroy da0 -n -1   to purge all keys but I get :
gbde: illegal option -- n
so I changed to :
#gbde destroy da0 --n -1   and got  :
gbde: read: Innapropriate ioctl for device
so I changed to :
#gbde destroy /dev/da0 --n -1  and this time I get the password prompt 
but it fails to destroy anything :
Enter passphrase:
Opened with key 0
gbde: No -L option and no space in sector 0 for lockfile

Maybe I didn't understand the purpose of the this command. I thought it 
was going to replace each lock key with some random data.
Can somebody explain me how to use the destroy command ?

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


Re: GBDE - Destroy command not working

2004-02-16 Thread Dany Nativel
You'll find more information in the handbook :

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-encrypting.html

It can be enabled as a kernel option or loaded with klload so it's no 
part of the port tree but rather part of the base system (I hope I use 
the right wording here).

Below you'll find some links to relevant documents.

White paper on GBDE
http://phk.freebsd.dk/pubs/bsdcon-03.gbde.paper.pdf
Some slides on GBDE
http://phk.freebsd.dk/pubs/bsdcon-03.slides.gbde.pdf
Another how-to
http://bsdhound.com/newsread_print.php?newsid=63
Encrypt a USB Thumbdrive using CFS or GBDE
http://www.bsdnews.org/03/cryptusb.php
And the man page
http://www.freebsd.org/cgi/man.cgi?query=gbdesektion=4apropos=0manpath=FreeBSD+5.2-RELEASE+and+Ports


JJB wrote:

Sorry I can not help you with your problem.

An totally encrypted file system sounded very interesting,
I tried to find GBDE in the FBSD ports/package collection and
there is no hit on GBDE, or gbde, or encrypted FS.
Would you please provide the ports name or an URL to where I
can find out more about it?
Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dany
Nativel
Sent: Monday, February 16, 2004 6:11 PM
To: [EMAIL PROTECTED]
Subject: GBDE - Destroy command not working
I've been playing around with GBDE under 5.2RC2-1. It's a fantastic
encrypted FS.
Following the man page, I've tried to use the destroy command but
without success.
Here is what I did to create the encrypted FS (for this test I
didn't
use the /dev/random to fill-up the disc).
# kldload geom_bde
# gbde init /dev/da0 -i
# gbde setkey /dev/da0 -n 2
# gbde attach /dev/da0
# newfs /dev/da0.bde
# mount /dev/da0.bde /mnt/usbkey
-- use the FS, works fine
# umount /mnt/usbkey
# gbde detach da0
Then according to the man page I should use  :
#gbde destroy da0 -n -1   to purge all keys but I get :
gbde: illegal option -- n
so I changed to :
#gbde destroy da0 --n -1   and got  :
gbde: read: Innapropriate ioctl for device
so I changed to :
#gbde destroy /dev/da0 --n -1  and this time I get the password
prompt
but it fails to destroy anything :
Enter passphrase:
Opened with key 0
gbde: No -L option and no space in sector 0 for lockfile
Maybe I didn't understand the purpose of the this command. I thought
it
was going to replace each lock key with some random data.
Can somebody explain me how to use the destroy command ?
Thanks
Dany
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]
 

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


Re: VMware 3 crashes 5.2 system

2004-01-23 Thread Dany Nativel
Vmware3 worked for me under 5.2RC2... I haven't tried on 5.2 Release 
yet.   The only thing that never worked was the full screen mode using 
either nvidia or nv driver.

You can find some tips for installing VMWARE under FreeBSD at :
http://www.packetwatch.net/documents/papers/vmware2.txt
Here is what I did (comes from the link above and other sources... sorry 
for the lack of copyright notice) :

Install Linux-base first (should be installed)
# cd /usr/ports/emulators/linux_base
# make install  make clean
add to /etc/fstab
linproc /compat/linux/proc linprocfs rw 0 0
add to etc/sysctl.conf
kern.ipc.shm_allow_removed=1
add to /etc/rc.conf
gateway_enable=YES
firewall_enable=YES
firewall_type=OPEN
natd_enable=YES
natd_interface=vr0#physical ethernet card... put your own
natd_flags=
Now, we will set the firewall rules. Before we set the firewall rules 
make a
backup of the /etc/rc.firewall file. Clear everything from the rc.firewall
file. Add the following to the file:

   fwcmd=/sbin/ipfw
   ${fwcmd} -f flush
   ${fwcmd} add divert natd all from any to any via 
vr0   - again replace vr0 with your physical interface
   ${fwcmd} add pass all from any to any

edit Kernel config file
options IPFIREWALL
options IPDIVERT
options VFS_AIO   #   you can also use aio_load=YES in loader.conf
options SYSVSHM   # should already be there
options SYSVMSG   # should already be there
options SYSVSEM   # should already be there
Recompile kernel, install, reboot

Install using ports.
# cd /usr/ports/emulators/vmware3
# make install
   1) Do you want to use netgraph bridging? Yes/No
   Answer No
   2) What will the IP address of your host on your private network?
   I like to use 192.168.2.1
   3) What will be the netmask of your private network?
   I like to use 255.255.255.0
In VMware Configuration Editor, change Ethernet Adapter to 'Host-only'
Edit .cfg file of the virtual machine.
vmnet1.hostOnlyAddress = 192.168.254.1
vmnet1.hostOnlyNetmask = 255.255.255.0
-- vmnet1.hostOnlyAddress should be the same as the vmnet1 interface 
(use ifconfig to get it).

In the virtual machine, statically configure IPaddress to an IP address 
on the same network (i.e. 192.168.254.2) and the netmask should be the 
same as above. Set default gateway to 192.168.254.1. Add in DNS servers, 
and you should be ready to surf the web or whatnot from within your 
virtual machine.
After the installation is complete type:

# /usr/local/etc/rc.d/vmware.sh start

Now, run ifconfig to see the new interface: vmnet1. Then, run kldstat to 
make sure the proper modules are running for VMware. You should see:
   vmmon_up.ko
   if_tap.ko
   linux.ko

Then you should be able to start vmware, enter the license information 
and configure your VM.

Quintin Riis wrote:

I'm pretty sure that VMware doesn't currently support 5.x in any fashion.

Quintin

Konrad Heuer wrote:

Does anyone successfully run VMware 3 on 5.2-R? After upgrading from 
5.1-R
to 5.2-R my system crashes shortly after VMware begins to initialize.

The modules vmmon etc. have been rebuild after the upgrade.

Thanks for any hint.

Konrad

Konrad Heuer ([EMAIL PROTECTED])  ___  ___
GWDG   / __/__ ___ / _ )/ __/ _ \
Am Fassberg   / _// __/ -_) -_) _  |\ \/ // /
37077 Goettingen /_/ /_/  \__/\__//___//
Germany
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



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


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


Re: Segmentation fault on OPIE when sequence number 0

2004-01-23 Thread Dany Nativel
I've posted my s/key issue on this mailing list, BSD forums and also 
submitted a bug report to FBSD... no response so far or any advice on 
how to debug the problem.

I'd like to switch my Debian based file server to freebsd but this issue 
on s/key is annoying.

Any comments are welcome.
Thanks
Dany
Dany wrote:

In order to allow my user to login using his regular Unix password I 
had to remove the file /etc/opiekeys

I've tried the same opiepasswd thing on a Debian box and when the 
s/key expired (sequence #  = 0), I just pressed enter in order to get 
the Password prompt for the Unix password.

Just for information heres is my /etc/pam.d/login (stock from 5.2R 
install)  :
auth required pam_nologin.so  no_warn
auth sufficient pam_self.so no_warn
auth include system

account requisite pam_securetty.so
account include system
session include system

password include system

How did I get the OPIE running in the first place without any 
modification of this file ?

On the debian one I had to add auth sufficient pam_opie.so and auth 
required pam_deny.so.

Dany

Dany wrote:

Playing around with OPIE I used the following command on a 5.2R 
(hopefully I still have my root working) :

1) from the user account :
#opiepasswd -c -n 2
I put 2 for the initial sequence number just to see what would happen 
to the user when he reaches 0

Entered my passphrase, got the seed and got the first response.

2) I didn't touch the /etc/pam.d/login but noticed that it didn't 
contain any reference to opie (/etc/pam.d/ssh does have some).

3) After exiting the current session, I got :
login : alpha
otp-md5 2 he201
Password:
I think I tried my regular Unix password first and it worked. I 
logged out and this time I used the response computed by my external 
s/key calculator. It worked well and I was logged in... nice !

4) So I repeated that process until I reached 0.

5) Now this is what I get :
login: alpha
otp-md5 -1 (null) ext
Password:
I now my s/key password has expired so I put in my Unix password and 
received a nice :

FreeBSD/i386 (local) (ttyv0)
login: Jan 19 22:08:25 local kernel: pid 613 (login), uid 0:exited on 
signal 11 (core dumped)

6) I though it was some kind of security mecanism so I logged back on 
my root account.

7) Trying to disable OPIE login for alpha using the following command :
#opiepasswd -d alpha
Updating alpha:
Segmentation fault (core dumped)
local# Jan 19 22:10:06 local kernel: pid 627 (opiepasswd), uid 0: 
exited on signal 11 (core dumped)

I also tried opipasswd -c alpha to recreate OPIE keys for alpha but I 
received the same segmentation fault.

a) how did OPIE worked in the first place with no mention to it in 
/etc/pam.d/login ?
b) why do I get a segmentation fault ?

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


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


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


Re: Root lost after KDE user manager change

2004-01-19 Thread Dany
Robert Fitzpatrick wrote:

On 5.2, I install, startx, go in to the user manager and set my admin
user created during installation to the wheel group, exit and save
changes. Now I can't login as root after logging out. I think this
happens no matter what changes you do in the user manager, once saved,
root is gone. Does not show up in user list to start with. This is a
brand new install, thank you, so I did it again just to be sure that was
all I did. Is this well known?
 

there is a bug in Kuser, it resets the expired flag for all users. To 
log in without root password you should :

While the system is booting and you see something like this:

Hit [ENTER} to boot immediately, or any other key for command prompt. 
Booting [kernel] in 8 seconds.

Hit any key except the enter key!
You should get a prompt. At the prompt, type:
unload all
load kernel
boot -s
Let the boot process continue until it asks you for a shell. Then just 
hit Enter for 'sh'. At this time, only your root partition is mounted. 
You will need to mount your /usr partition so you can use the 'passwd' 
command. For example:

mount /dev/ad0s1c /usr

To make your root partition read-write, you will need to execute this 
command:

mount -u /

The root partition should now be mounted read-write. Now you can use 
'passwd' command to change the root password.

Edit /etc/master.passwd (using ee for example) and reset all the 
expiration flags to 0 (they should show -1)
# passwd root
# pwd_mkdb /etc/master.passwd

Then if I remember you can just type boot.

PS: I've collected the above information from forums and mailing lists. 
Sorry for the lack of copyright notice.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Segmentation fault on OPIE when sequence number 0

2004-01-19 Thread Dany
Playing around with OPIE I used the following command on a 5.2R 
(hopefully I still have my root working) :

1) from the user account :
#opiepasswd -c -n 2 

I put 2 for the initial sequence number just to see what would happen to 
the user when he reaches 0

Entered my passphrase, got the seed and got the first response.

2) I didn't touch the /etc/pam.d/login but noticed that it didn't 
contain any reference to opie (/etc/pam.d/ssh does have some).

3) After exiting the current session, I got :
login : alpha
otp-md5 2 he201
Password:
I think I tried my regular Unix password first and it worked. I logged 
out and this time I used the response computed by my external s/key 
calculator. It worked well and I was logged in... nice !

4) So I repeated that process until I reached 0.

5) Now this is what I get :
login: alpha
otp-md5 -1 (null) ext
Password:
I now my s/key password has expired so I put in my Unix password and 
received a nice :

FreeBSD/i386 (local) (ttyv0)
login: Jan 19 22:08:25 local kernel: pid 613 (login), uid 0:exited on 
signal 11 (core dumped)

6) I though it was some kind of security mecanism so I logged back on my 
root account.

7) Trying to disable OPIE login for alpha using the following command :
#opiepasswd -d alpha
Updating alpha:
Segmentation fault (core dumped)
local# Jan 19 22:10:06 local kernel: pid 627 (opiepasswd), uid 0: exited 
on signal 11 (core dumped)

I also tried opipasswd -c alpha to recreate OPIE keys for alpha but I 
received the same segmentation fault.

a) how did OPIE worked in the first place with no mention to it in 
/etc/pam.d/login ?
b) why do I get a segmentation fault ?

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


Re: Segmentation fault on OPIE when sequence number 0

2004-01-19 Thread Dany
In order to allow my user to login using his regular Unix password I had 
to remove the file /etc/opiekeys

I've tried the same opiepasswd thing on a Debian box and when the s/key 
expired (sequence #  = 0), I just pressed enter in order to get the 
Password prompt for the Unix password.

Just for information heres is my /etc/pam.d/login (stock from 5.2R 
install)  :
auth required pam_nologin.so  no_warn
auth sufficient pam_self.so no_warn
auth include system

account requisite pam_securetty.so
account include system
session include system

password include system

How did I get the OPIE running in the first place without any 
modification of this file ?

On the debian one I had to add auth sufficient pam_opie.so and auth 
required pam_deny.so.

Dany

Dany wrote:

Playing around with OPIE I used the following command on a 5.2R 
(hopefully I still have my root working) :

1) from the user account :
#opiepasswd -c -n 2
I put 2 for the initial sequence number just to see what would happen 
to the user when he reaches 0

Entered my passphrase, got the seed and got the first response.

2) I didn't touch the /etc/pam.d/login but noticed that it didn't 
contain any reference to opie (/etc/pam.d/ssh does have some).

3) After exiting the current session, I got :
login : alpha
otp-md5 2 he201
Password:
I think I tried my regular Unix password first and it worked. I logged 
out and this time I used the response computed by my external s/key 
calculator. It worked well and I was logged in... nice !

4) So I repeated that process until I reached 0.

5) Now this is what I get :
login: alpha
otp-md5 -1 (null) ext
Password:
I now my s/key password has expired so I put in my Unix password and 
received a nice :

FreeBSD/i386 (local) (ttyv0)
login: Jan 19 22:08:25 local kernel: pid 613 (login), uid 0:exited on 
signal 11 (core dumped)

6) I though it was some kind of security mecanism so I logged back on 
my root account.

7) Trying to disable OPIE login for alpha using the following command :
#opiepasswd -d alpha
Updating alpha:
Segmentation fault (core dumped)
local# Jan 19 22:10:06 local kernel: pid 627 (opiepasswd), uid 0: 
exited on signal 11 (core dumped)

I also tried opipasswd -c alpha to recreate OPIE keys for alpha but I 
received the same segmentation fault.

a) how did OPIE worked in the first place with no mention to it in 
/etc/pam.d/login ?
b) why do I get a segmentation fault ?

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


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


Re: I can not boot my FreeBSD-5.2 partition, please help

2004-01-16 Thread Dany
Using SBM Smart Boot Manager http://btmgr.sourceforge.net/  I was able 
to boot my FreeBSD 5.2R out of the box which is located on the upper 
part of the disk (40G to 80G).

It uses MBR for installation, so you can boot from a DOS floppy. Backup 
your existing MBR and isntall this nice tool.

Dany

Hanspeter Roth wrote:

 On Jan 16 at 12:30, Juan Rodriguez Hervella spoke:

 

Hello,

I've got a 40 GBytes hard disk on an old Pentium MMX 266 MHz.
The first time I plugged it into the motherboard my BIOS didn't recognize
the drive, but fortunately there is a jumper that reduces the size of the
disk to 32 GBytes, and that's enough for my BIOS at this moment.
So I've got something like this:

10 GBytes for Windows 2000
10 GBytes for Linux
10 GBytes for FreeBSD-5.2
The big problem is that the FreeBSD boot manager that I've
got installed on my MBR is only able to boot the Windows partition.
   

Hello Juan,

I assume that you have installed all OSes on primary partitions, if
not you should mention it.
FreeBSD's bootmanager has an option `packet' which is required to
boot from cylinder  1023. Unfortunately it is set off by default.
There are two (or more) possibilities to recover. 

1. install the FreeBSD bootmanager into MBR and Lilo/Grub into the
  Linux partition (/dev/hda2). In order to install the FreeBSD
  bootmanager with the packet option you should boot the FreeBSD
  recovery disk. This is the second disk. And then choose Fixit
  from the install menu. After you have the root prompt issue the
  following command:
  boot0cfg -vB -o packet /dev/ad0

  (This assumes you have a IDE disk.)

2. launch the Linux recovery CD/floppy and setup Lilo or Grub
  accordingly.
  You would need to install it in the MBR (/dev/hda) and create
  entries for Windows and FreeBSD as well.
-Hanspeter
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Re: I can not boot my FreeBSD-5.2 partition, please help

2004-01-16 Thread Dany
Using SBM Smart Boot Manager http://btmgr.sourceforge.net/  I was able 
to boot my FreeBSD 5.2R out of the box which is located on the upper 
part of the disk (40G to 80G).

It uses MBR for installation, so you can boot from a DOS floppy. Backup 
your existing MBR and isntall this nice tool.

Dany

Hanspeter Roth wrote:

 On Jan 16 at 12:30, Juan Rodriguez Hervella spoke:

 

Hello,

I've got a 40 GBytes hard disk on an old Pentium MMX 266 MHz.
The first time I plugged it into the motherboard my BIOS didn't recognize
the drive, but fortunately there is a jumper that reduces the size of the
disk to 32 GBytes, and that's enough for my BIOS at this moment.
So I've got something like this:

10 GBytes for Windows 2000
10 GBytes for Linux
10 GBytes for FreeBSD-5.2
The big problem is that the FreeBSD boot manager that I've
got installed on my MBR is only able to boot the Windows partition.
   

Hello Juan,

I assume that you have installed all OSes on primary partitions, if
not you should mention it.
FreeBSD's bootmanager has an option `packet' which is required to
boot from cylinder  1023. Unfortunately it is set off by default.
There are two (or more) possibilities to recover. 

1. install the FreeBSD bootmanager into MBR and Lilo/Grub into the
  Linux partition (/dev/hda2). In order to install the FreeBSD
  bootmanager with the packet option you should boot the FreeBSD
  recovery disk. This is the second disk. And then choose Fixit
  from the install menu. After you have the root prompt issue the
  following command:
  boot0cfg -vB -o packet /dev/ad0

  (This assumes you have a IDE disk.)

2. launch the Linux recovery CD/floppy and setup Lilo or Grub
  accordingly.
  You would need to install it in the MBR (/dev/hda) and create
  entries for Windows and FreeBSD as well.
-Hanspeter
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Re: windows killed my boot manager

2004-01-07 Thread Dany
I use Smart Boot Manager to boot my Windows and FreeBSD. If fits on the 
MBR of the first disk and allow ID swap as well as hidding.

http://btmgr.sourceforge.net/



Dan Dan wrote:

I needed to reinstall Windows after a FreeBSD 5.x
install. I knew that I could reinstall the boot
manager from the CD. However, looking at the FAQ
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/install.html#WIN95-DAMAGED-BOOT-MANAGER
to answer my question, the answers don't work for me:
- if I try to run bootinst from within XP, it won't
let it access the MBR
- I don't have a floppy drive. When I go through this
process on the CD, there's no (W)rite command in the
partition editor (which should actually be called a
slice editor, right?) When I exit, it asks if I want
to install the boot loader, but it doesn't do it. When
I try to commit my changes, it wants new partition
label, and asks be what packages to install
- If I try to go to the fixit shell, I can't really
get a live filesystem. At least, not from the
installation CD. I know there's another FreeBSD live
CD project out there, but it's based on 4.x, and I'm
not sure if the boot loader has changed at all,
because I can't find a version history anywhere.
So... What's the current (5.x) answer to this dilemma?

Thanks,
Dan
__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


FreeBSD AGP or Nvidia AGP?

2004-01-05 Thread Dany
Running 5.2RC2 on a Epox 8K5A2+ motherboard I've experienced multiple 
hard reset problems while running simple process like compilation under 
KDE. The result was either a blank screen and reboot or frozen window. I 
don't know exactly where to look at in order to determine the problem. 
Dmesg doesn't show anything bad.

If I understand correctly they are two ways of installing Nvidia graphic 
cards and using them with Nvidia drivers : using Nvidia AGP support or 
FreeBSD AGP support.  I took the default one as described at the bottom 
of this email.

What is the preferred method ?   The one that would give the most 
stability (I don't really care about performance and fps).

After those reboots and according to some posts, I changed my kernel 
config  and commented the following two lines :

#options SMP   # Symmetric MultiProcessor Kernel
#device  apic # I/O APIC
It didn't really help and I got the same hang up situations.

So I've added hint.acpi.0.disabled=1 in /boot/device.hints and it 
looks like more stable but didn't have time to confirm it.

Can this problem come from the AGP support selection I've made or is it 
more related to ACPI ?

Now that I've disabled ACPI, should I enable APM in order to be able to 
turn off the PC without compromising stability ?

Thanks
Dany


1) Use the Nvidia AGP support
- cd /usr/ports/x11/nvidia-driver
- make install 

Add Option NvAgp 1  in XFree86config :
and
nvidia_load=YES  in /boot/loader.conf
2) Use the FreeBSD AGP support
- cd /usr/ports/x11/nvidia-driver
- make WITH_FREEBSD_AGP=yes install 

Add Option NvAgp 2  in XFree86config :
and
AGP_LOAD=YES in /boot/loader.conf
nvidia_load=YES  in /boot/loader.conf






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


All the possible Kernel options

2004-01-05 Thread Dany
This week-end I was trying to get my Atapi CDRW to burn something and 
noticed I needed the CAM support enabled for it. Reading the handbook 
gave me the necessary option for the kernel : *device atapicam

*It worked but I remember posting a question about where to find all the 
different options for the Kernel.
The response was easy and located into the /sys/i386/conf/NOTES file 
(under 5.x).

The thing is I couldn't find any trace of the Device atapicam in either 
GENERIC or NOTES. Is this normal or is there any other hidden options I 
should be aware of ?

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


Re: pkg_add and openoffice package problems (5.2-RC2)

2004-01-05 Thread Dany
I got OpenOffice working on my 5.2 with the help of a gentleman for the 
bsdforums who sent me a newer version compiled for 5.2RC2.

I didn't want to compile it by myself (time consuming) so it was kind of 
him to make this available. Worked right out of the box.

If you want I can post the file on my webserver so you can download it. 
Just say the word.

Cheers
Dany
Luca Gerli wrote:

Hello all,

 I'm totally new to FreeBSD, and I come from a Linux-Gentoo experience.
I installed 5.2RC2 yesterday without much hassle, but I'm having problems
installing OpenOffice.org v1.1 package, due to some dependency errors
coming from pkg_add that I couldn't solve either looking at the docs
or skimming through past posts.
 So, I downloaded the FreeBSD package from:

  http://projects.imp.ch/openoffice/current/openoffice-1.1.0_1.tbz

 First thing I tried was to run pkg_add on the downloaded package,
which failed due to some dependency errors:
 falcon# pkg_add ./openoffice-1.1.0_1.tbz
 pkg_add: could not find package glib-1.2.10_10 !
 pkg_add: could not find package gtk-1.2.10_10 !
 pkg_add: could not find package ORBit-0.5.17 !
 Then I tried the -r option, hoping the command would automatically
download the missing and necessary packages, without much luck as
pkg_add refused to use the local ./openoffice-1.1.0_1.tbz, and was
looking for it on ftp.freebsd...:
 falcon# pkg_add -r ./openoffice-1.1.0_1.tbz
 Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/
  i386/packages-current/Latest/./openoffice-1.1.0_1.tbz: File
  unavailable (e.g., file not found, no access)
 pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/
  i386/packages-current/Latest/./openoffice-1.1.0_1.tbz' by URL
 I then set the PACKAGESITE to the appropriate link to download 
openoffice,
but then this same site was used to download the missing packages which
were obviously not found.

 falcon# setenv PACKAGESITE http://projects.imp.ch/openoffice/current/
 falcon# pkg_add -r ./openoffice-1.1.0_1.tbz
 I'm surely doing something wrong, but my questions are:

 . is there a way to specify more than one FTP/HTTP source for
   packages ? PACKAGESITE does not seem to accept a syntax where
   different URLs are separated by a semicolon (:);
 . do I have to manually download the necessary packages that
   openoffice depends on ? Or is pkg_add really able to do that alone ?
 Thanks for any help / documentation pointers you might give,

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


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


Re: FreeBSD AGP or Nvidia AGP?

2004-01-05 Thread Dany
That's a good idea but if I do that I will be missing the cool 
screensavers using OpenGL ;)

Stijn Hoop wrote:

On Mon, Jan 05, 2004 at 07:46:53AM -0500, Dany wrote:
 

What is the preferred method ?   The one that would give the most 
stability (I don't really care about performance and fps).
   

Just one thought: if you don't want 3D support, just go with the 2D
'nv' driver -- that should be stable.
--Stijn

 

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


Re: FreeBSD AGP or Nvidia AGP?

2004-01-05 Thread Dany
What about DVD playing ? Does that take advantage of the Nvidia driver 
or will that work with nv ?

Dany wrote:

That's a good idea but if I do that I will be missing the cool 
screensavers using OpenGL ;)

Stijn Hoop wrote:

On Mon, Jan 05, 2004 at 07:46:53AM -0500, Dany wrote:
 

What is the preferred method ?   The one that would give the 
most stability (I don't really care about performance and fps).
  


Just one thought: if you don't want 3D support, just go with the 2D
'nv' driver -- that should be stable.
--Stijn

 

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


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


Re: AMD Processors

2004-01-03 Thread Dany
/sys/i386/conf/NOTESon 5.x

Mike Maltese wrote:

options CPU_ATHLON_SSE_HACK
options CPU_ENABLE_SSE
   

These are also valid kernel options for 4.x.
 

Where are these documented?
   

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

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


Re: mplayer gui?

2004-01-03 Thread Dany
the following howto comes from a post on bsdforums.org. I used it and it 
worked well.

#cd /usr/ports/multimedia/mplayer
#make WITHOUT_RUNTIME_CPUDETECTION=yes WITH_GUI=yes WITH_FREETYPE=yes 
WITH_XVID=yes WITH_DVD=yes WITH_SVGALIB=yes WITH_MAD=yes WITH_AALIB=yes 
WITH_SDL=yes WITH_VORBIS=yes WITH_REALPLAYER=yes WITH_LIVEMEDIA=yes 
WITH_FAAD=yes WITH_XMMS=yes install clean

most of the options above have flags autodetect so if you have some of 
the above then you can skip it

6. DO NOT RUN MPLAYER yet
7. install fonts
#cd /usr/ports/multimedia/mplayer-fonts
#make install clean
(select 8859-1)
8. configure mplayer for user:
as a user (not root)
#cd /usr/ports/multimedia/mplayer
#make install-user
9. next copy following files to ~/.mplayer
#cp /usr/local/share/mplayer/codecs.conf ~/.mplayer/
#cp /usr/local/share/mplayer/example.conf ~/.mplayer/config
#cp /usr/local/share/mplayer/input.conf ~/.mplayer
10. fINAL STEPS FOR USER CONFIG
#cd ~/.mplayer
create directory for skins
#mkdir Skin (THIS IS THE NAME OF DIR DONT MAKE ANY OTHER)
11. download mplayer skins from http://www.mplayerhq.hu/homepage/dload.html
12. unpack skins to the directory you created ~/.mplayer/Skin
you shoud download also default skin
13. make sure that these lines in ~/.mplayer/config file are uncommented:
vo=xv
fs=yes   # maybe not required !!!
comment out the following line at the end of ~/.mplayer/config file:
#include = /home/gabucino/.mplayer/i_did_not_RTFM_carefully_enough...
Alternative way to get skins (did not work for me sometime ago, never 
tested after that): built the skins from ports
14. you are almost done
15. run
#gmplayer

extra stuff
16. Install mplayer-plugin for mozilla from /usr/ports/www/mplayer-plugin
this will allow you to play quicktime movies from mozilla
test for mozilla plugin:
http://www.apple.com/trailers/newli..._towers-teaser/
select small from watch it now panel (small loads faster) you should see 
and hear trailer.
There is no plugin for realplayer so *rm file will invoke it as separate 
instance
except downloading realplayer to ../.../distfiles you do not need to get 
or install anything before mplayer.
Test realplayer alone to see if it works (for me it does).
You will be also able to listen WMP streaming files (mozilla should open 
small extra window - empty), and watch DVD

Dany

Tom McLaughlin wrote:

On Sat, 2004-01-03 at 23:13, chip wrote:
 

Now I installed mplayer. The man pages shows gmplayer as a gui version 
of mplayer. When I enter gmplayer I get command not found. Mplayer works 
otherwise. I see a port for skins for the gui, but no port for the gui 
itself. Am I missing something here?
thanks
Chip

   

Chip, use the WITH_GUI knob when you build mplayer and gmplayer will be
built.  This fill force gtk12 to be installed if it isn't already.
Tom

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

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


Re: help me!!!

2004-01-02 Thread Dany
This question has been asked yesterday.

Try using shutdown -p now instead of -h and you system should turn his
power off automatically.

DAny



dc wrote:

Hi,

I have just build a freeBSD box with some parts I had lying around. I was
wondering what I need to do to make the machine shutdown completely. When I
run the shutdown -h now command the machine starts the process and than I
get the message that I need to press any key to reboot. I would like to turn
off automatically.It used to shutsdown automatically in in Windows :-)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  


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


Re: AMD Processors

2004-01-02 Thread Dany
My 2600+ overclocked doesn't complain on the 5.2 (worked also with 
4.9) Don't worry I don't use it a production server ;)

For the kernel configuration you can even optimize the compilation for 
such processors (5.x only) :

options CPU_ATHLON_SSE_HACK
options CPU_ENABLE_SSE
and also a special cpu type in the make.conf

/CPUTYPE?=athlon-xp/

I would think that the second one (CPUTYPE) is more critical than the 
first set of options (more multimedia oriented).

Dany



peter lageotakes wrote:

Here are the 4.9 hardware specs:
http://www.freebsd.org/releases/4.9R/hardware-i386.html
Here are the 5.1 specs: 
http://www.freebsd.org/releases/5.1R/hardware-i386.html

--- Sal Aldana [EMAIL PROTECTED] wrote:
 

I was wondering which AMD Processors are compatible
with FreeBSD. I have a 
Athlon XP 2700 and wanted to know if it would work.
I was also going to 
build a Dual Processor machine using Athlon MP
Processors. If any of these 
work could you let me know before I decide to use
FreeBSD. Thank you for 
your time.

   

_
 

Take advantage of our limited-time introductory
offer for dial-up Internet 
access. http://join.msn.com/?page=dept/dialup

___
[EMAIL PROTECTED] mailing list
   

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 

To unsubscribe, send any mail to
   

[EMAIL PROTECTED]

=
ESCape with VI. Cheese A La mode.
__
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Re: Mounting CDROM as user under 5.x

2004-01-01 Thread Dany
The operator trick worked. Thanks again and happy new year. Since I've 
started the FreeBSD experience, I've collected about 20 pages of tips 
and tricks to get stuff running. I will probably publish something so 
others can enjoy it.

Dany

Harald Schmalzbauer wrote:

On Wednesday 31 December 2003 16:37, Dany wrote:
 

Thanks Harry for taking the time to answer my questions. I think based
on your comments it should work.
Is there any security concern having a user belonging to the group
operator ?
   

I never really cared about. AnonFTP is owned by operator, but in general I 
think wheel is worse than operator.
Please correct me anybody, I don't really care on my workstation ;)
Best is to have a look through the (default) filesystem and see if operator 
has any write permissions where it was no good. I'm quiet sure wheel has much 
too much read permissions for normal users. But that doesn't matter for 
useres who can su ;)

Happy new year,

-Harry

 

Thanks again
Dany
Harald Schmalzbauer wrote:
   

On Wednesday 31 December 2003 16:07, Dany wrote:
 

Harald Schmalzbauer wrote:
   

*SNIP*

 

This is pretty much what I've tried. My user is in the Wheel group.
Would this exact configuration work ?Should I set any other
permission in order to have the user from the wheel group to mount
drives?
Thanks for posting your configuration.

PS: One thing I've noticed with this specific user, whenever he creates
something the file/directory will show owner:username   group:username.
I've used the command groups as well as chpass I think and they gave
me only one group for this username... wheel.  Why doesn't wheel appear
as the group owner for stuff that username is creating ?
   

When you add a user with adduser by default FreeBSD creates a group
similar named like the username. If you later say that this user should
be in group wheel it's additional.
 

added the following to /dev/devfs.conf
link acd0 cdrom
perm acd0 0660
 

This line just gives write access to group. You can either add the line:
ownacd0 root:wheel
or you edit /etc/groups and add your user to the group operator.
I'd prefere the latter.
Here's my simple /etc/group example:
# $FreeBSD: src/etc/group,v 1.28 2003/04/27 05:49:53 imp Exp $
#
wheel:*:0:root,harry
daemon:*:1:
kmem:*:2:
sys:*:3:
tty:*:4:
operator:*:5:root,harry
mail:*:6:
bin:*:7:
news:*:8:
man:*:9:
games:*:13:
staff:*:20:
sshd:*:22:
smmsp:*:25:
mailnull:*:26:
guest:*:31:
bind:*:53:
uucp:*:66:
dialer:*:68:
network:*:69:
www:*:80:
nogroup:*:65533:
nobody:*:65534:
harry:*::
uli:*::
schowi:*::
administrator:*::
alle:*::root,harry,uli,schowi,administrator
setiathome:*::
-Harry

 

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


/dev/sequencer missing - Midi support under 5.x

2004-01-01 Thread Dany Nativel
Searching the archives I found a previous thread 
(http://docs.freebsd.org/cgi/mid.cgi?3FA6C96D.3090502) talking about my 
problem.
Any progress on playing Midi files under 5.x ? My card uses the 
snd_DS1 module.

Kmidi is complaining about a missing /dev/sequencer (which I don't have 
in my /dev).

Thank you
Dany


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


Re: something wrong withshutdown

2004-01-01 Thread Dany
to turn the power off automatically, you should use :  shutdown -p now   
instead of the -h which gives you this message.

Greg 'groggy' Lehey wrote:

On Friday,  2 January 2004 at  4:25:49 +0800, dc wrote:
 

 Versino 4.9whenever i use the command shutdownor haltto
shutdown the power,system displaytype anykey to rebootso computer
reboot~and i have to boot windows(i installed FREEBSD and
WINDOWS2000).
   

Why?

 

  Someone told me to configue the kernel.Add device acpicato
the kernel and make it ~I did so,nothing changed,porblem is still
there.HELP~!
   

It's almost impossible to guess what your problem is.  Obviously
shutdown works.  Did you install the boot selector?  Please:
1.  Shut down the machine (with shutdown, not halt).
2.  When you see Press any key to reboot, turn the power off.
3.  Turn the power on.
4.  Describe *exactly* what happens.
Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
Finger [EMAIL PROTECTED] for PGP public key.
See complete headers for address and phone numbers.
 

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


Re: Mounting CDROM as user under 5.x

2003-12-31 Thread Dany
I'v checked my kernel config and it had the Options CD9660.

Beside the mounting problem as I said the user cannot use the linked 
device (/dev/dvd) to just watch a DVD (not need for mounting, just 
access to the device).

Can you post the system configuration files that you're using in order 
to allow your users to mount CD drives ?

Thank you
Dany
Harald Schmalzbauer wrote:

On Wednesday 31 December 2003 10:08, Andrew L. Gould wrote:
 

On Tuesday 30 December 2003 11:39 pm, Dany wrote:
   

Hello,

Because I didn't get any response on BSDforums, I've decided to try my
chance here.
I'm trying to get my single user (belonging to the wheel group) mounting
a CD drive under 5.x using devfs (5.2RC2).
Could somebody post a very simple howto showing the files to modify ?
Thanx
So far I've tried the following things without success :

mkdir /home/username/mount/cdrom
chown username /home/username/mount/cdrom
chmod 755 /home/username/mount/cdrom
added the following to /etc/sysctl.conf
vfs.usermount=1
added the following to /dev/devfs.conf
link acd0 cdrom
perm acd0 0660
added /etc/devfs.rules with
[my_ruleset=10]
add path 'acd*' mode 660
added the following to /etc/rc.conf
devfs_system_ruleset=my_ruleset
/dev/cdrom now shows up and root can use it to play a DVD for example
but user cannot use it either directly (/dev/cdrom) or when trying to
mount a CD (mount_cd9660 /dev/cdrom /home/username/mount/cdrom) .. the
result is ?Operation not permitted?
Thank you
Dany
 

All I do for my user that's a member of wheel under FreeBSD 4.* is:

chmod u+s /sbin/*mount

Does this not work in FreeBSD 5.*?
   

No, 5 has devfs.

Dany, make sure you have CD9660 compiled into the kernel, normal user aren't 
allowed to load kernel modules. Also securemode should net be set.
And the mountpoint should be owned by the user (which is in your case I think 
since its under $home).
I had the same problem and it was simply the missing CD9660 bits in the kernel

-Harry

 

Andrew Gould

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

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


Where do I find all the available options/devices I can use in my kernel config

2003-12-31 Thread Dany
Reading some forums, I discovered I could use the following options in 
my kernel configuration (5.2):
options CPU_ATHLON_SSE_HACK
options CPU_ENABLE_SSE

I looked at the GENERIC kernel config but there were no mention of those 
2 options. Where can I find an exhaustive list of available 
options/devices I can use in my custom kernel config file?

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


Re: Mounting CDROM as user under 5.x

2003-12-31 Thread Dany
Thanks Harry for taking the time to answer my questions. I think based 
on your comments it should work.

Is there any security concern having a user belonging to the group 
operator ?

Thanks again
Dany
Harald Schmalzbauer wrote:

On Wednesday 31 December 2003 16:07, Dany wrote:
 

Harald Schmalzbauer wrote:
   

*SNIP*
 

This is pretty much what I've tried. My user is in the Wheel group.
Would this exact configuration work ?Should I set any other
permission in order to have the user from the wheel group to mount drives?
Thanks for posting your configuration.

PS: One thing I've noticed with this specific user, whenever he creates
something the file/directory will show owner:username   group:username.
I've used the command groups as well as chpass I think and they gave
me only one group for this username... wheel.  Why doesn't wheel appear
as the group owner for stuff that username is creating ?
   

When you add a user with adduser by default FreeBSD creates a group similar 
named like the username. If you later say that this user should be in group 
wheel it's additional.

 

added the following to /dev/devfs.conf
link acd0 cdrom
perm acd0 0660
 

This line just gives write access to group. You can either add the line:
ownacd0 root:wheel
or you edit /etc/groups and add your user to the group operator.
I'd prefere the latter.
Here's my simple /etc/group example:
# $FreeBSD: src/etc/group,v 1.28 2003/04/27 05:49:53 imp Exp $
#
wheel:*:0:root,harry
daemon:*:1:
kmem:*:2:
sys:*:3:
tty:*:4:
operator:*:5:root,harry
mail:*:6:
bin:*:7:
news:*:8:
man:*:9:
games:*:13:
staff:*:20:
sshd:*:22:
smmsp:*:25:
mailnull:*:26:
guest:*:31:
bind:*:53:
uucp:*:66:
dialer:*:68:
network:*:69:
www:*:80:
nogroup:*:65533:
nobody:*:65534:
harry:*::
uli:*::
schowi:*::
administrator:*::
alle:*::root,harry,uli,schowi,administrator
setiathome:*::
-Harry
 

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


Re: Backing up programs

2003-12-31 Thread Dany
On my file server I have 2 drives. I looked at RAID but it doesn't help 
solving the major issue ... me, user removing files that are not 
supposed to be removed so incremental backup is a plus.

On the first one there is the linux system (sorry... I promise I will 
switch to fbsd) as well as data (2 directories) :

DISK 1
/
OS
current 
 |
 |  user 1 current  ---   UNISON with laptop/desktop...

backup
 |
 |- user 1 backup    RSYNC-BACKUP of user 1 current, 
incremental backup

DISK 2
/
backup
|
|   linux backup -  RSYNC of the file system from 
the first drive excluding data
| - user 1 backup (2)  -  RSYNC of the user 1 backup 
directory (already incremental in the first place)

I use 3 different programs :
- Unison :  2-way synchronization using rsync/ssh, multi platform 
graphical interface. I can have the same files on my file server, laptop 
running win2k as well as my desktop running Linux/BSD.  Very convenient 
especially with laptops when you can't be connected all the time.Very 
fast too (only transmit diffs)
- rsync :  typical rsync that will mirror the source to the destination
- rsync-backup : it's based on rsync but you get the advantage of 
incremental backups so you can restore from a specific date. You can 
also purge the backup by removing old stuff.

A couple of cron jobs take care of the different backups at night.

I don't know if that answers to your question but I thought that could 
give you some ideas.

Dany

Francisco Reyes wrote:

With every HD problem I loose less and less data. On my last episode I
lost only the current day's worth of data (backup at night). However I
realised that I also need to backup programs installed on the machine. It
takes a long time to rebuild all packages (I had a list of ports I had
installed).
How do others backup their programs?
I am undecided between trying to backup the entire /usr/local and making
packages of my critical ports and burning that to CDs.
I also took care of all system files, but I realized that backing up all
of /etc wasn't so helpfull if I didn't know which files I used. I also, as
of last crash, am going to backup /usr/src since restoring all of /etc
only makes sense with matching sources.
The one thing I have against trying to backup all of /usr/local is that
something like PostgreSQL may cause the backup problems whereas the
package solution will be a one time deal and will not affect production.
The other thing I learnt that needs to be backed up is the /usr/ports
directory.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Re: Backing up programs

2003-12-31 Thread Dany
Francisco Reyes wrote:

On Wed, 31 Dec 2003, Dany wrote:

 

On my file server I have 2 drives.
   

I also have two drives on each of my machines. One for backup.
I also keep several days worth of backups in case I corrupt a file.
Overall I think I have the data part of the backup covered properly,
although I plan to backup some directories every few hours instead of
daily.
 

- Unison :  2-way synchronization using rsync/ssh, multi platform
graphical interface.
   

I use unison to backup data from a remote machine to my local machine,

 

- rsync :  typical rsync that will mirror the source to the destination
   

Why use both unison and rsync? Unison can do the same as rsync.
 

Because it's one-way, so no worries about conflicts. I know I'm not 
supposed to change the destination files but I like to use a one-way 
backup solution.

 

- rsync-backup : it's based on rsync but you get the advantage of
incremental backups so you can restore from a specific date. You can
also purge the backup by removing old stuff.
   

Will look it up.
 

I made two mistakes in my description.

First the tool is call  rdiff-backup (and not rsync-backup which also 
exists) :  http://rdiff-backup.stanford.edu/index.html
Secondly, for the OS, I also use rdiff-backup and not rsync so I have a 
fast, space efficient, incremental backup of the OS too !

PS:  On the same web page you will also find a link to another tool call 
duplicity (http://rdiff-backup.stanford.edu/duplicity.html).  You can do 
remote backup but in that case the image can be stored on a remote FTP 
server and encrypted with GPG... sweet if you're planning to use the 
disk space of your ISP for backups!

Cheers
Dany
 

A couple of cron jobs take care of the different backups at night.
   

Same thing here, except that I plan to do some dierctories more often (ie
emails).
 

I don't know if that answers to your question but I thought that could
give you some ideas.
   

Didn't really answer what I asked, but all suggestions/feedback/comments
on how other people are doing things are always welcome. It helps to see
other possible solutions to what one is doing. I am a firm believer in
learning from the experience of others if they are willing to dedicate the
time to share their experience with me. :-)
 

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


Mounting CDROM as user under 5.x

2003-12-30 Thread Dany
Hello,

Because I didn't get any response on BSDforums, I've decided to try my 
chance here.

I'm trying to get my single user (belonging to the wheel group) mounting 
a CD drive under 5.x using devfs (5.2RC2).
Could somebody post a very simple howto showing the files to modify ? Thanx

So far I've tried the following things without success :

mkdir /home/username/mount/cdrom
chown username /home/username/mount/cdrom
chmod 755 /home/username/mount/cdrom
added the following to /etc/sysctl.conf
vfs.usermount=1
added the following to /dev/devfs.conf
link acd0 cdrom
perm acd0 0660
added /etc/devfs.rules with
[my_ruleset=10]
add path 'acd*' mode 660
added the following to /etc/rc.conf
devfs_system_ruleset=my_ruleset
/dev/cdrom now shows up and root can use it to play a DVD for example 
but user cannot use it either directly (/dev/cdrom) or when trying to 
mount a CD (mount_cd9660 /dev/cdrom /home/username/mount/cdrom) .. the 
result is Operation not permitted

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


Re: mozilla-firebird dependency on gnomecontrolcenter?

2003-09-02 Thread Dany Cayouette
Chuck,
  Did you solve this issue?  I had a similar problem on my first 4.8 install.  I was 
getting No running window found. and then I got got the shell prompt back.  I didn't 
keep track of the things I've changed... but I think it started to work after I ran 
fc-cache (It took a while for that command to complete).  I still get the No 
running window found. msg, and then my firebird window would start.

Dany


On Thu, 21 Aug 2003 13:19:26 -0700
Chuck Tuffli [EMAIL PROTECTED] wrote:

 
 On Wed, Aug 20, 2003 at 08:48:04PM -0700, Kris Kennaway wrote:
  On Wed, Aug 20, 2003 at 08:29:03PM -0700, Chuck Tuffli wrote:
   Ok, I did a cvsup of ports-base and the build completed without the
   strangeness I saw earlier. Now when I run firebird, nothing happens
   (i.e. no browser window, no message stating an error, no core dump,
   and nothing logged to dmesg).
   
   Since there aren't any error messages, I'm not sure what info to send
   you. The machine is running 4.8-RELEASE with Linux compatibility built
   into the kernel. firebird -v reports
   
   [92] firebird -v
   Mozilla 1.5a, Copyright (c) 2003 mozilla.org developer build
  
  This is a FAQ.
  
  When you update mozilla you often need to remove your old .mozilla
  directory (save the bookmarks.html if you like).  They are not very
  careful to maintain backwards compatibility.
 
 This is a brand new system that has never had a .mozilla dir
 
  mozilla is also VERY sensitive to being built with consistent library
  interfaces - if you have stale headers lying around on the system, or
  old/mismatched versions of the dependencies, it can become confused in
  this fashion.
  
  Kris
 
 Would you suspect this to be a problem on a brand new 4.8 install
 (i.e. there has never been anything else on this disk)? Maybe it
 doesn't build with a stock 4.8 version of ports? Has anyone ever tried
 this?
 
 -- 
 Chuck Tufflichuck_tuffli AT NO_SPAM agilent DOT com
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]