Re: Help with su on 6.3

2008-02-14 Thread Derek Ragona

At 08:16 AM 2/14/2008, Alex Zbyslaw wrote:

Derek Ragona wrote:

I usually just set the shell to /usr/bin/false or /usr/sbin/nologin for 
users like these.  Of course you can't test these interactively with 
su.  If you want to do that, give the account a valid login shell, test 
it, then set it to false or nologin.
It's not clear to me what you mean by you can't test these interactively 
with su.  If you mean you can't su to them and get a shell; that's wrong.


su -m account_with_fake_shell

--Alex


Alex,

What I meant to say was that you can:
su -m account_with_fake_shell

But you can't:
su - account_with_fake_shell

and then test any command and scripts in the user's environment.

-Derek

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

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


Re: Help with su on 6.3

2008-02-13 Thread Neil Gruending
On 2/12/08, Derek Ragona [EMAIL PROTECTED] wrote:

  At 06:16 PM 2/12/2008, Neil Gruending wrote:

 Hi,

  Today I upgraded my computer to 6.3, but now root can't su to other
  users. I login as a regular user (neil) over ssh and I can su to
  become root. But now root can't su to other users. For example, if I
  do su svn I get su: Sorry. My boot rc scripts do the same thing
  where I use su. Everything worked fine when I was running 6.2. Any
  help is appreciated. I followed the binary upgrade procedure in the
  release announcement.

  Thanks
  Neil
  Did you run mergemaster?  Check your users still exist in /etc/passwd?

  -Derek

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

I didn't run mergemaster because
http://www.freebsd.org/releases/6.3R/announce.html didn't say to.
However, I did try su at the console with the same result, but I was
getting pam_acct_mgmt: authentication errors. I checked
/etc/master.passwd and noticed that the accounts I was trying to su to
were locked. I tried passwd account as root on an account that
wasn't working and once I set a password it I could su to it as long
as logins were enabled. I tried another account with disabled logins
and got This account is currently not available.

Both of these accounts only exist to let servers run as different
users. What's the proper way to set them up? Maybe that's my issue
instead. I only noticed this because the servers weren't starting
because the init scripts can't su to the right users anymore.

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


Re: Help with su on 6.3

2008-02-13 Thread Derek Ragona

At 12:51 PM 2/13/2008, Neil Gruending wrote:

On 2/12/08, Derek Ragona [EMAIL PROTECTED] wrote:

  At 06:16 PM 2/12/2008, Neil Gruending wrote:

 Hi,

  Today I upgraded my computer to 6.3, but now root can't su to other
  users. I login as a regular user (neil) over ssh and I can su to
  become root. But now root can't su to other users. For example, if I
  do su svn I get su: Sorry. My boot rc scripts do the same thing
  where I use su. Everything worked fine when I was running 6.2. Any
  help is appreciated. I followed the binary upgrade procedure in the
  release announcement.

  Thanks
  Neil
  Did you run mergemaster?  Check your users still exist in /etc/passwd?

  -Derek

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

I didn't run mergemaster because
http://www.freebsd.org/releases/6.3R/announce.html didn't say to.
However, I did try su at the console with the same result, but I was
getting pam_acct_mgmt: authentication errors. I checked
/etc/master.passwd and noticed that the accounts I was trying to su to
were locked. I tried passwd account as root on an account that
wasn't working and once I set a password it I could su to it as long
as logins were enabled. I tried another account with disabled logins
and got This account is currently not available.

Both of these accounts only exist to let servers run as different
users. What's the proper way to set them up? Maybe that's my issue
instead. I only noticed this because the servers weren't starting
because the init scripts can't su to the right users anymore.

Thanks,
Neil


Well you should always read and follow UPDATING in /usr/src when doing an 
upgrade.


I usually just set the shell to /usr/bin/false or /usr/sbin/nologin for 
users like these.  Of course you can't test these interactively with 
su.  If you want to do that, give the account a valid login shell, test it, 
then set it to false or nologin.


-Derek


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

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


Re: Help with su on 6.3

2008-02-12 Thread Derek Ragona

At 06:16 PM 2/12/2008, Neil Gruending wrote:

Hi,

Today I upgraded my computer to 6.3, but now root can't su to other
users. I login as a regular user (neil) over ssh and I can su to
become root. But now root can't su to other users. For example, if I
do su svn I get su: Sorry. My boot rc scripts do the same thing
where I use su. Everything worked fine when I was running 6.2. Any
help is appreciated. I followed the binary upgrade procedure in the
release announcement.

Thanks
Neil


Did you run mergemaster?  Check your users still exist in /etc/passwd?

-Derek

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

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


Re: Help with su on 6.3

2008-02-12 Thread Erich Dollansky

Hi,

su works on my 6.3 - but without ssh - just as expected.

Do you have physical access to the machine? Try it without ssh to help 
isolate the problem.


Erich

Neil Gruending wrote:

Hi,

Today I upgraded my computer to 6.3, but now root can't su to other
users. I login as a regular user (neil) over ssh and I can su to
become root. But now root can't su to other users. For example, if I
do su svn I get su: Sorry. My boot rc scripts do the same thing
where I use su. Everything worked fine when I was running 6.2. Any
help is appreciated. I followed the binary upgrade procedure in the
release announcement.

Thanks
Neil
___
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: Help with router problem

2008-02-07 Thread Eugen
My feeling is that's something in my router that BSD doesn't like and
Linux doesn't care
(since it works).

Instead of posting my custom kernel config, I decided that I will give
it another two radical tries:
- first, I'll compile a generic kernel
- second, if the first attempt is unsuccessful, I will try a complete
reinstall of FreeBSD, to
get rid of all the configuration tweaks I made

If it will not work after that, I will remove BSD from my system.
I don't want to waste your time and mine dealing with this annoying
issue anymore.

Thanks a lot,
Eugen

On Feb 7, 2008 10:07 AM, Derek Ragona [EMAIL PROTECTED] wrote:

  At 08:24 PM 2/6/2008, Eugen wrote:

 I tried everything you guys told me and it still doesn't work :

  - tried to set a static address as Derek indicated
  - commented out the ipv6 line in rc.conf, even if it was already set to
 NO
  - the answer to Kevin's questions follow:

  # ping -I dc0 192.168.1.1
  ping: invalid multicast interface: `dc0'

  # arp -a
  ? (192.168.1.1) at (incomplete) on dc0 [ethernet]

  # ifconfig -a
  dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
  options=8VLAN_MTU
  ether 00:14:cf:52:b4:17
  inet 192.168.1.33 netmask 0xff00 broadcast 192.168.1.255
  media: Ethernet autoselect (100baseTX full-duplex)
  status: active
  lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
  inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
  inet6 ::1 prefixlen 128
  inet 127.0.0.1 netmask 0xff00

  ping 192.168.1.1 and traceroute 192.168.1.1 give Network is unreachable

  I even connected directly to the cable modem as it was before I bought the
  router and... surprise: it works! Put the router back and BSD stops working
  again. I'm writing this post from Linux, so this one works.
  When it is connected directly to the router, what IP are you using then?
 Can you post your
  ifconfig -a
  output then, and when it is connected to the router.

  What router are you using?  How do you have it set-up?  What are the IP
 settings for the router?  What are the DHCP settings?  Can the router ping
 itself or other hosts?

  -Derek


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


Re: Help with router problem

2008-02-07 Thread Derek Ragona

At 08:24 PM 2/6/2008, Eugen wrote:

I tried everything you guys told me and it still doesn't work :

- tried to set a static address as Derek indicated
- commented out the ipv6 line in rc.conf, even if it was already set to NO
- the answer to Kevin's questions follow:

# ping -I dc0 192.168.1.1
ping: invalid multicast interface: `dc0'

# arp -a
? (192.168.1.1) at (incomplete) on dc0 [ethernet]

# ifconfig -a
dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 00:14:cf:52:b4:17
inet 192.168.1.33 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX full-duplex)
status: active
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00

ping 192.168.1.1 and traceroute 192.168.1.1 give Network is unreachable

I even connected directly to the cable modem as it was before I bought the
router and... surprise: it works! Put the router back and BSD stops working
again. I'm writing this post from Linux, so this one works.


When it is connected directly to the router, what IP are you using 
then?  Can you post your

ifconfig -a
output then, and when it is connected to the router.

What router are you using?  How do you have it set-up?  What are the IP 
settings for the router?  What are the DHCP settings?  Can the router ping 
itself or other hosts?


-Derek

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


Re: Help with router problem

2008-02-07 Thread Wojciech Puchar

My feeling is that's something in my router that BSD doesn't like and
Linux doesn't care
(since it works).

Instead of posting my custom kernel config, I decided that I will give
it another two radical tries:
- first, I'll compile a generic kernel
- second, if the first attempt is unsuccessful, I will try a complete
reinstall of FreeBSD, to
get rid of all the configuration tweaks I made

If it will not work after that, I will remove BSD from my system.
I don't want to waste your time and mine dealing with this annoying
issue anymore.


very good idea. don't waste yor time on freebsd if something else works 
well 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: Help with router problem

2008-02-06 Thread Eugen
Thanks for all your input. For now I am posting my rc.conf, but I will try
your suggestions this evening when I come back from work.

If anyone needs additional details, please ask and I'll repost my
initial cry for help.

Eugen

### Console options
keymap=us.iso
font8x8=NO
font8x14=NO
font8x16=NO
scrnmap=NO
keyrate=fast
cursor=blink
blanktime=900
saver=warp

### Mouse daemon
mousechar_start=NO
moused_enable=NO
moused_flags=
moused_port=/dev/sysmouse
moused_type=auto

### IPv6 options
ipv6_enable=NO

ifconfig_dc0=DHCP

### PF firewall
# pf_enable=YES# Enable PF (load
module if required)
# pf_flags=  #
additional flags for pfctl startup
# pf_rules=/etc/pf.conf# rules
definition file for pf
# pflog_enable=YES   # start pflogd(8)
# pflog_flags= # additional
flags for pflogd startup
# pflog_logfile=/var/log/pflog   # where pflogd
should store the logfile

###  Miscellaneous administrative options
kern_securelevel=-1   # range: -1..3 ;
`-1' is the most insecure
kern_securelevel_enable=NO# kernel security level
(see init(8)),
local_startup=/usr/local/etc/rc.d
clear_tmp_enable=YES  # Clear /tmp at startup.
devfs_system_ruleset=devfsrules_local # The name of a ruleset to apply to /dev
dmesg_enable=YES   # Save dmesg(8) to
/var/run/dmesg.boot
update_motd=YES # update version
info in /etc/motd (or NO)
virecover_enable=NO# Perform
housekeeping for the vi(1) editor

usbd_enable=YES
usbd_enable=YES # Run the usbd daemon.
usbd_flags=   # Flags to
usbd (if enabled).

lpd_enable=YES

On Feb 5, 2008 11:15 PM, Kevin Kinsey [EMAIL PROTECTED] wrote:

 Eugen wrote:
  Are there really no experienced FreeBSD users who can help me
  with my behind a router problem ? Should I post it again ?
  Should I just give up using BSD altogether due to an unusable
  system? I would not like this idea, I was really starting to like it.
 
  Respectfully,
  Eugen

 Hello.  I'm sorry to hear you're having trouble.

 Have you attempted static assignment to another address, such as
 192.168.1.38 (something not 33, but within your pool)?

 # ifconfig dc0 down
 # ifconfig dc0 inet 192.168.1.38 netmask 255.255.255.0
 # ping 192.168.1.1

 What does `arp -a` say?  Does ping work if you call it with
 `ping -I dc0 192.168.1.1`?  What does `traceroute 192.168.1.1`
 give you?  And, I've only seen output for the one interface
 (maybe I overlooked something in your posts), what is the
 output of ifconfig -a --- is there some other interface
 that could be causing route problems and therefore network
 unreachable from ping(8)?

 It does seem rather odd, so I wonder if there's something we
 are all overlooking.  Since no one but you is there, we can't
 tell you what it is, but only guess.  Maybe something
 above will give us all a clue :-)

 Also respectfully, ;-)

 Kevin Kinsey
 --
 Conscience doth make cowards of us all.
 -- Shakespeare

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


Re: Help with router problem

2008-02-06 Thread Derek Ragona

At 07:40 AM 2/6/2008, Eugen wrote:

Thanks for all your input. For now I am posting my rc.conf, but I will try
your suggestions this evening when I come back from work.

If anyone needs additional details, please ask and I'll repost my
initial cry for help.

Eugen

### Console options
keymap=us.iso
font8x8=NO
font8x14=NO
font8x16=NO
scrnmap=NO
keyrate=fast
cursor=blink
blanktime=900
saver=warp

### Mouse daemon
mousechar_start=NO
moused_enable=NO
moused_flags=
moused_port=/dev/sysmouse
moused_type=auto

### IPv6 options
ipv6_enable=NO

ifconfig_dc0=DHCP

### PF firewall
# pf_enable=YES# Enable PF (load
module if required)
# pf_flags=  #
additional flags for pfctl startup
# pf_rules=/etc/pf.conf# rules
definition file for pf
# pflog_enable=YES   # start pflogd(8)
# pflog_flags= # additional
flags for pflogd startup
# pflog_logfile=/var/log/pflog   # where pflogd
should store the logfile

###  Miscellaneous administrative options
kern_securelevel=-1   # range: -1..3 ;
`-1' is the most insecure
kern_securelevel_enable=NO# kernel security level
(see init(8)),
local_startup=/usr/local/etc/rc.d
clear_tmp_enable=YES  # Clear /tmp at startup.
devfs_system_ruleset=devfsrules_local # The name of a ruleset to apply 
to /dev

dmesg_enable=YES   # Save dmesg(8) to
/var/run/dmesg.boot
update_motd=YES # update version
info in /etc/motd (or NO)
virecover_enable=NO# Perform
housekeeping for the vi(1) editor

usbd_enable=YES
usbd_enable=YES # Run the usbd daemon.
usbd_flags=   # Flags to
usbd (if enabled).

lpd_enable=YES


Eugen,

I almost always set my FreeBSD systems up to use a static IP, even behind a 
router.  I don't know if you want to access your FreeBSD system from ONLY 
the LAN, or if you want some access through your router.  I prefer a static 
IP on my FreeBSD systems as they are all providing some server functions 
(file sharing, DNS, etc.)


Below are typical lines you would have in your /etc/rc.conf:
==
#set the default router to your router's IP, often 192.168.1.1
defaultrouter=192.168.1.1
#set your hostname to match the enty in /etc/hosts
hostname=myhostname.mydomainname.com
#set your IP to one not in any DHCP range
ifconfig_dc0=inet 192.168.1.10  netmask 255.255.255.0
==

These are all you need to get it working.

If you want the FreeBSD to have a LAN address but access through the router 
you need to set that up in your router.


-Derek

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

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


Re: Help with router problem

2008-02-06 Thread Eugen
I tried everything you guys told me and it still doesn't work :

- tried to set a static address as Derek indicated
- commented out the ipv6 line in rc.conf, even if it was already set to NO
- the answer to Kevin's questions follow:

# ping -I dc0 192.168.1.1
ping: invalid multicast interface: `dc0'

# arp -a
? (192.168.1.1) at (incomplete) on dc0 [ethernet]

# ifconfig -a
dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 00:14:cf:52:b4:17
inet 192.168.1.33 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX full-duplex)
status: active
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00

ping 192.168.1.1 and traceroute 192.168.1.1 give Network is unreachable

I even connected directly to the cable modem as it was before I bought the
router and... surprise: it works! Put the router back and BSD stops working
again. I'm writing this post from Linux, so this one works.

The /etc/hosts and /etc/dhclient.conf are the original ones, coming from BSD
install, untouched.

What else can I do ?

Eugen

On Feb 6, 2008 8:36 AM, Derek Ragona [EMAIL PROTECTED] wrote:


  At 07:40 AM 2/6/2008, Eugen wrote:

 Thanks for all your input. For now I am posting my rc.conf, but I will try
  your suggestions this evening when I come back from work.

  If anyone needs additional details, please ask and I'll repost my
  initial cry for help.

  Eugen

  ### Console options
  keymap=us.iso
  font8x8=NO
  font8x14=NO
  font8x16=NO
  scrnmap=NO
  keyrate=fast
  cursor=blink
  blanktime=900
  saver=warp

  ### Mouse daemon
  mousechar_start=NO
  moused_enable=NO
  moused_flags=
  moused_port=/dev/sysmouse
  moused_type=auto

  ### IPv6 options
  ipv6_enable=NO

  ifconfig_dc0=DHCP

  ### PF firewall
  # pf_enable=YES# Enable PF (load
  module if required)
  # pf_flags=  #
  additional flags for pfctl startup
  # pf_rules=/etc/pf.conf# rules
  definition file for pf
  # pflog_enable=YES   # start pflogd(8)
  # pflog_flags= # additional
  flags for pflogd startup
  # pflog_logfile=/var/log/pflog   # where pflogd
  should store the logfile

  ###  Miscellaneous administrative options
  kern_securelevel=-1   # range: -1..3 ;
  `-1' is the most insecure
  kern_securelevel_enable=NO# kernel security level
  (see init(8)),
  local_startup=/usr/local/etc/rc.d
  clear_tmp_enable=YES  # Clear /tmp at startup.
  devfs_system_ruleset=devfsrules_local # The name of a ruleset to apply to
 /dev
  dmesg_enable=YES   # Save dmesg(8) to
  /var/run/dmesg.boot
  update_motd=YES # update version
  info in /etc/motd (or NO)
  virecover_enable=NO# Perform
  housekeeping for the vi(1) editor

  usbd_enable=YES
  usbd_enable=YES # Run the usbd daemon.
  usbd_flags=   # Flags to
  usbd (if enabled).

  lpd_enable=YES
  Eugen,

  I almost always set my FreeBSD systems up to use a static IP, even behind a
 router.  I don't know if you want to access your FreeBSD system from ONLY
 the LAN, or if you want some access through your router.  I prefer a static
 IP on my FreeBSD systems as they are all providing some server functions
 (file sharing, DNS, etc.)

  Below are typical lines you would have in your /etc/rc.conf:
  ==
  #set the default router to your router's IP, often 192.168.1.1
  defaultrouter=192.168.1.1
  #set your hostname to match the enty in /etc/hosts
  hostname=myhostname.mydomainname.com
  #set your IP to one not in any DHCP range
  ifconfig_dc0=inet 192.168.1.10  netmask 255.255.255.0
  ==

  These are all you need to get it working.

  If you want the FreeBSD to have a LAN address but access through the router
 you need to set that up in your router.

  -Derek



 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 MailScanner thanks transtec Computers for their support.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help with router problem

2008-02-06 Thread OutBackDingo
But i still dont see any ipv6 data in the ifconfig for dc0, we had an
instance where ipv6 being turned off networking stopped functioning

in your ifconfig dc0 should show inet6 data like lo0 does. make sure its
commented out of rc.conf and reboot. also is this a generic kernel or
did you customize it ?

On Wed, 2008-02-06 at 20:24 -0600, Eugen wrote:
 I tried everything you guys told me and it still doesn't work :
 
 - tried to set a static address as Derek indicated
 - commented out the ipv6 line in rc.conf, even if it was already set to NO
 - the answer to Kevin's questions follow:
 
 # ping -I dc0 192.168.1.1
 ping: invalid multicast interface: `dc0'
 
 # arp -a
 ? (192.168.1.1) at (incomplete) on dc0 [ethernet]
 
 # ifconfig -a
 dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   options=8VLAN_MTU
   ether 00:14:cf:52:b4:17
   inet 192.168.1.33 netmask 0xff00 broadcast 192.168.1.255
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
   inet6 ::1 prefixlen 128
   inet 127.0.0.1 netmask 0xff00
 
 ping 192.168.1.1 and traceroute 192.168.1.1 give Network is unreachable
 
 I even connected directly to the cable modem as it was before I bought the
 router and... surprise: it works! Put the router back and BSD stops working
 again. I'm writing this post from Linux, so this one works.
 
 The /etc/hosts and /etc/dhclient.conf are the original ones, coming from BSD
 install, untouched.
 
 What else can I do ?
 
 Eugen
 
 On Feb 6, 2008 8:36 AM, Derek Ragona [EMAIL PROTECTED] wrote:
 
 
   At 07:40 AM 2/6/2008, Eugen wrote:
 
  Thanks for all your input. For now I am posting my rc.conf, but I will try
   your suggestions this evening when I come back from work.
 
   If anyone needs additional details, please ask and I'll repost my
   initial cry for help.
 
   Eugen
 
   ### Console options
   keymap=us.iso
   font8x8=NO
   font8x14=NO
   font8x16=NO
   scrnmap=NO
   keyrate=fast
   cursor=blink
   blanktime=900
   saver=warp
 
   ### Mouse daemon
   mousechar_start=NO
   moused_enable=NO
   moused_flags=
   moused_port=/dev/sysmouse
   moused_type=auto
 
   ### IPv6 options
   ipv6_enable=NO
 
   ifconfig_dc0=DHCP
 
   ### PF firewall
   # pf_enable=YES# Enable PF (load
   module if required)
   # pf_flags=  #
   additional flags for pfctl startup
   # pf_rules=/etc/pf.conf# rules
   definition file for pf
   # pflog_enable=YES   # start pflogd(8)
   # pflog_flags= # additional
   flags for pflogd startup
   # pflog_logfile=/var/log/pflog   # where pflogd
   should store the logfile
 
   ###  Miscellaneous administrative options
   kern_securelevel=-1   # range: -1..3 ;
   `-1' is the most insecure
   kern_securelevel_enable=NO# kernel security level
   (see init(8)),
   local_startup=/usr/local/etc/rc.d
   clear_tmp_enable=YES  # Clear /tmp at startup.
   devfs_system_ruleset=devfsrules_local # The name of a ruleset to apply to
  /dev
   dmesg_enable=YES   # Save dmesg(8) to
   /var/run/dmesg.boot
   update_motd=YES # update version
   info in /etc/motd (or NO)
   virecover_enable=NO# Perform
   housekeeping for the vi(1) editor
 
   usbd_enable=YES
   usbd_enable=YES # Run the usbd daemon.
   usbd_flags=   # Flags to
   usbd (if enabled).
 
   lpd_enable=YES
   Eugen,
 
   I almost always set my FreeBSD systems up to use a static IP, even behind a
  router.  I don't know if you want to access your FreeBSD system from ONLY
  the LAN, or if you want some access through your router.  I prefer a static
  IP on my FreeBSD systems as they are all providing some server functions
  (file sharing, DNS, etc.)
 
   Below are typical lines you would have in your /etc/rc.conf:
   ==
   #set the default router to your router's IP, often 192.168.1.1
   defaultrouter=192.168.1.1
   #set your hostname to match the enty in /etc/hosts
   hostname=myhostname.mydomainname.com
   #set your IP to one not in any DHCP range
   ifconfig_dc0=inet 192.168.1.10  netmask 255.255.255.0
   ==
 
   These are all you need to get it working.
 
   If you want the FreeBSD to have a LAN address but access through the router
  you need to set that up in your router.
 
   -Derek
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner, and is
  believed to be clean.
  MailScanner 

Re: Help with router problem

2008-02-06 Thread Eugen
That's what I get when I put ipv6_enable=YES in /etc/rc.conf :

$ ifconfig -a
dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 00:14:cf:52:b4:17
inet6 fe80::214:cfff:fe52:b417%dc0 prefixlen 64 scopeid 0x1
inet 192.168.1.33 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX full-duplex)
status: active
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff00

And yes, it is a customized kernel. Would it be useful to attach my
config file ?

Eugen

On Feb 6, 2008 8:46 PM, OutBackDingo [EMAIL PROTECTED] wrote:
 But i still dont see any ipv6 data in the ifconfig for dc0, we had an
 instance where ipv6 being turned off networking stopped functioning

 in your ifconfig dc0 should show inet6 data like lo0 does. make sure its
 commented out of rc.conf and reboot. also is this a generic kernel or
 did you customize it ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help with router problem

2008-02-06 Thread OutBackDingo
Yeah you might want to attach the kernel config just to make sure
nothing was dropped that needs to be there
, when you got this dc0 ip of 192.168.1.33 was that set staticly?? 
On Wed, 2008-02-06 at 22:48 -0600, Eugen wrote:
 That's what I get when I put ipv6_enable=YES in /etc/rc.conf :
 
 $ ifconfig -a
 dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   options=8VLAN_MTU
   ether 00:14:cf:52:b4:17
   inet6 fe80::214:cfff:fe52:b417%dc0 prefixlen 64 scopeid 0x1
   inet 192.168.1.33 netmask 0xff00 broadcast 192.168.1.255
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
   inet6 ::1 prefixlen 128
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
   inet 127.0.0.1 netmask 0xff00
 
 And yes, it is a customized kernel. Would it be useful to attach my
 config file ?
 
 Eugen
 
 On Feb 6, 2008 8:46 PM, OutBackDingo [EMAIL PROTECTED] wrote:
  But i still dont see any ipv6 data in the ifconfig for dc0, we had an
  instance where ipv6 being turned off networking stopped functioning
 
  in your ifconfig dc0 should show inet6 data like lo0 does. make sure its
  commented out of rc.conf and reboot. also is this a generic kernel or
  did you customize it ?

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


Re: Help on freeBSD 4.10

2008-02-05 Thread Chuck Swiger

On Feb 4, 2008, at 11:01 PM, Matthew Seaman wrote:

As an administrator, how can i disable an account after three
consecutive unsuccessful login attempts?


As root, you could run:

chsh -s /usr/sbin/nologin _user_


Um... I don't think that's quite what the OP meant.  He wants to  
automatically

lock out anyone that fails 3 times to supply the right password.


Perhaps, although I preferred to answer the question which was  
actually asked in this case, since automatically locking out accounts  
results in a trivial denial-of-service condition whenever anyone  
happens to do a brute-force scan on the machine in question.



See login.conf(5), particularly these entries:

login-backoffnumber3 The number of login  
attempts allowed
 before the backoff delay is  
inserted
 after each subsequent  
attempt.  The
 backoff delay is the number  
of tries
 above login-backoff  
multiplied by 5

 seconds.
login-retriesnumber10The number of login  
attempts allowed

 before the login fails.

Note that this applies only to the login(1) program and so applies to
textmode logins directly on the console.  Other applications like  
xdm(1)

have different controls, as do applications that provide remote access
like ssh(1).


Have you actually tried setting these?  They make the system add a  
pause if the wrong password is entered several times, but they will  
not actually lock the account.


--
-Chuck

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


Re: Help with router problem

2008-02-05 Thread Per olof Ljungmark

Eugen wrote:

Are there really no experienced FreeBSD users who can help me
with my behind a router problem ? Should I post it again ?
Should I just give up using BSD altogether due to an unusable
system? I would not like this idea, I was really starting to like it.


I'm not a very experienced user, but I read through your posts and it is 
indeed puzzling.


Did you try to set an address manually on the interface, boot without 
any ifconfig-statement in rc.conf and then

ifconfig dc0 inet 192.168.1.2 netmask 255.255.255.0
and
route add default 192.168.1.0/24 192.168.1.1

Perhaps post your rc.conf as well.

Is the router in the arp cache (arp -a)

?

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


Re: Help with router problem

2008-02-05 Thread Derek Ragona

At 07:24 PM 2/5/2008, Eugen wrote:

Are there really no experienced FreeBSD users who can help me
with my behind a router problem ? Should I post it again ?
Should I just give up using BSD altogether due to an unusable
system? I would not like this idea, I was really starting to like it.

Respectfully,
Eugen


Eugen,

I saw your post but was too busy to respond then.  If you give me the 
details, and what you have in your /etc/rc.conf for the ethernet I will try 
to help.


-Derek


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

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


Re: Help with router problem

2008-02-05 Thread Kevin Kinsey

Eugen wrote:

Are there really no experienced FreeBSD users who can help me
with my behind a router problem ? Should I post it again ?
Should I just give up using BSD altogether due to an unusable
system? I would not like this idea, I was really starting to like it.

Respectfully,
Eugen


Hello.  I'm sorry to hear you're having trouble.

Have you attempted static assignment to another address, such as
192.168.1.38 (something not 33, but within your pool)?

# ifconfig dc0 down
# ifconfig dc0 inet 192.168.1.38 netmask 255.255.255.0
# ping 192.168.1.1

What does `arp -a` say?  Does ping work if you call it with
`ping -I dc0 192.168.1.1`?  What does `traceroute 192.168.1.1`
give you?  And, I've only seen output for the one interface
(maybe I overlooked something in your posts), what is the
output of ifconfig -a --- is there some other interface
that could be causing route problems and therefore network
unreachable from ping(8)?

It does seem rather odd, so I wonder if there's something we
are all overlooking.  Since no one but you is there, we can't
tell you what it is, but only guess.  Maybe something 
above will give us all a clue :-)


Also respectfully, ;-)

Kevin Kinsey
--
Conscience doth make cowards of us all.
-- Shakespeare
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help on freeBSD 4.10

2008-02-04 Thread Chuck Swiger

On Feb 4, 2008, at 2:31 PM, Tuan Ho wrote:

1/
As an administrator, how can i disable an account after three  
consecutive unsuccessful login attempts?


As root, you could run:

 chsh -s /usr/sbin/nologin _user_


2/
How can I enable logged file to monitor successful and unsuccessful  
logins and logouts?


This should be enabled by default already; examine /var/log/auth.log

--
-Chuck

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


Re: Help on freeBSD 4.10

2008-02-04 Thread Matthew Seaman
Chuck Swiger wrote:
 On Feb 4, 2008, at 2:31 PM, Tuan Ho wrote:
 1/
 As an administrator, how can i disable an account after three
 consecutive unsuccessful login attempts?
 
 As root, you could run:
 
  chsh -s /usr/sbin/nologin _user_

Um... I don't think that's quite what the OP meant.  He wants to automatically
lock out anyone that fails 3 times to supply the right password.

See login.conf(5), particularly these entries:

 login-backoffnumber3 The number of login attempts allowed
  before the backoff delay is inserted
  after each subsequent attempt.  The
  backoff delay is the number of tries
  above login-backoff multiplied by 5
  seconds.
 login-retriesnumber10The number of login attempts allowed
  before the login fails.

Note that this applies only to the login(1) program and so applies to
textmode logins directly on the console.  Other applications like xdm(1)
have different controls, as do applications that provide remote access
like ssh(1).

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: HELP: Motherboard Selection (ASUS)

2008-01-28 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of David Naylor
 Sent: Monday, January 28, 2008 12:21 AM
 To: freebsd-questions@freebsd.org
 Subject: HELP: Motherboard Selection (ASUS)
 
 
 Hi,
 
 Late last year I bought a AS US P5N-E (force 650) motherboard.  It
 didn't work with FreeBSD and SUMP (I can't blame FreeBSD has Linux and
 Windows struggle to run on the board, and it is riddled with bugs).
 
 I'm now hoping to convince AS US that I need a different motherboard,
 does anyone know which AS US boards work (or don't work) with FreeBSD.
  I need SLID, quad core and 4 DIM MS.
 

Why don't you ask us when you have actually managed to get AS US
convinced?  It seems to me your chances of doing this now are
gone.  The Uniform Commercial Code only requires retailers to
offer a 30 day guarentee.  Assuming late last year meant sometime
in December, you should have returned the motherboard to the
retailer weeks ago.  And, AS US has no obligation to take the
board back and supply you with a different one under their warranty.

 One board I was considering was the AS US P5N32-E (with force 680i).
 I know there was a problem with NF (but I can live with that, if it is
 not already solved).
 

I think your nuts to consider AS US again.  You got burned once by them,
do you like getting slapped upside the head repeatedly?

The best chance you have of
salvaging this train wreck is selling the motherboard on Ebay for
50 cents on the dollar, and treating it as a learning experience.

In the future, don't buy a motherboard from an online retailer
unless you know it works.  And whether you buy one from an online
retailer or a local retailer, return it as soon as you find it
doesen't work.  And of course, test that it works before the 30
day return period is up.

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


Re: HELP: Motherboard Selection (ASUS)

2008-01-28 Thread Predrag Punosevac

Ted Mittelstaedt wrote:
  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of David Naylor
Sent: Monday, January 28, 2008 12:21 AM
To: freebsd-questions@freebsd.org
Subject: HELP: Motherboard Selection (ASUS)


Hi,

Late last year I bought a AS US P5N-E (force 650) motherboard.  It
didn't work with FreeBSD and SUMP (I can't blame FreeBSD has Linux and
Windows struggle to run on the board, and it is riddled with bugs).

I'm now hoping to convince AS US that I need a different motherboard,
does anyone know which AS US boards work (or don't work) with FreeBSD.
 I need SLID, quad core and 4 DIM MS.




Why don't you ask us when you have actually managed to get AS US
convinced?  It seems to me your chances of doing this now are
gone.  The Uniform Commercial Code only requires retailers to
offer a 30 day guarentee.  Assuming late last year meant sometime
in December, you should have returned the motherboard to the
retailer weeks ago.  And, AS US has no obligation to take the
board back and supply you with a different one under their warranty.

  

One board I was considering was the AS US P5N32-E (with force 680i).
I know there was a problem with NF (but I can live with that, if it is
not already solved).




I think your nuts to consider AS US again.  You got burned once by them,
do you like getting slapped upside the head repeatedly?

The best chance you have of
salvaging this train wreck is selling the motherboard on Ebay for
50 cents on the dollar, and treating it as a learning experience.

In the future, don't buy a motherboard from an online retailer
unless you know it works. 

Ted,
I love reading your comments as you are so knowledgeable but you should 
give a brake to a poor guy. He is already traumatized

by online experience so we need to conform him.

There is nothing wrong in buying thins from online retailers as you can 
usually save 30-50% in my experience but as Ted said you have to know 
what are you buying.


Tad's idea of Ebay is almost perfect. You can also try to get a read of 
your board on the Craigslist. My advice would be that you put the

price 10%-20% bigger of what you actually pay for for the board.

If the person knows what he is doing he would not buy from Ebay or 
Craigslist anyway.
I just looked the Tuscon's Craigslist and some moron is selling a mother 
board for $50 bucks. Instead of the picture of his mother board he gave  
a link  to  the Geeks' web-site where the same mother board is clearly 
priced $33.95. Including $8 shipping, that is still cheaper
than $50 which his asking price (If I remember well arithmetic from the 
kindergarten:-) ).


Cheers,
Predrag

P. S. Ted, I am so happy you didn't make a progress with that 
anti-Serbian filter you were working on so that I can still read your 
comments and learn. Kind regards from Arizona :-)



 And whether you buy one from an online
retailer or a local retailer, return it as soon as you find it
doesen't work.  And of course, test that it works before the 30
day return period is up.

Ted
___
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: HELP: Motherboard Selection (ASUS)

2008-01-28 Thread Wojciech Puchar

Ted,
I love reading your comments as you are so knowledgeable but you should give 
a brake to a poor guy. He is already traumatized

by online experience so we need to conform him.

There is nothing wrong in buying thins from online retailers as you can 
usually save 30-50% in my experience but as Ted said you have to know what 
are you buying.




what i always do when have to buy a computer is to (after getting rough 
knowledge what will work in freebsd)


a) go to the shop and say about what i want to buy, telling in advance 
that it has to run freebsd, and i want to check it before buying.


in many shops they refuse to sell at all, but there are other shops :)

b) check everything with live cd+my laptop. disks, network, etc.

c) if it work - buy it, and ONLY complete machine, not parts.


may get slightly more expensive but no problems then
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: HELP: Motherboard Selection (ASUS)

2008-01-28 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Predrag
 Punosevac
 Sent: Monday, January 28, 2008 2:37 AM
 To: Ted Mittelstaedt
 Cc: David Naylor; freebsd-questions@freebsd.org
 Subject: Re: HELP: Motherboard Selection (ASUS)


 Ted Mittelstaedt wrote:
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of David Naylor
  Sent: Monday, January 28, 2008 12:21 AM
  To: freebsd-questions@freebsd.org
  Subject: HELP: Motherboard Selection (ASUS)
 
 
  Hi,
 
  Late last year I bought a AS US P5N-E (force 650) motherboard.  It
  didn't work with FreeBSD and SUMP (I can't blame FreeBSD has Linux and
  Windows struggle to run on the board, and it is riddled with bugs).
 
  I'm now hoping to convince AS US that I need a different motherboard,
  does anyone know which AS US boards work (or don't work) with FreeBSD.
   I need SLID, quad core and 4 DIM MS.
 
 
 
  Why don't you ask us when you have actually managed to get AS US
  convinced?  It seems to me your chances of doing this now are
  gone.  The Uniform Commercial Code only requires retailers to
  offer a 30 day guarentee.  Assuming late last year meant sometime
  in December, you should have returned the motherboard to the
  retailer weeks ago.  And, AS US has no obligation to take the
  board back and supply you with a different one under their warranty.
 
 
  One board I was considering was the AS US P5N32-E (with force 680i).
  I know there was a problem with NF (but I can live with that, if it is
  not already solved).
 
 
 
  I think your nuts to consider AS US again.  You got burned once by them,
  do you like getting slapped upside the head repeatedly?
 
  The best chance you have of
  salvaging this train wreck is selling the motherboard on Ebay for
  50 cents on the dollar, and treating it as a learning experience.
 
  In the future, don't buy a motherboard from an online retailer
  unless you know it works.
 Ted,
 I love reading your comments as you are so knowledgeable but you should
 give a brake to a poor guy. He is already traumatized
 by online experience so we need to conform him.


I loved your post!  Your right - he didn't say, of course, that he
bought online - I didn't want to imply that he did, actually, I
just wanted to make sure that he didn't decide to go online.

 There is nothing wrong in buying thins from online retailers as you can
 usually save 30-50% in my experience but as Ted said you have to know
 what are you buying.


I buy lots of stuff online myself - but you have to be careful, and
you have to be sure of what your doing.  Most of the time, I am -
but I've got burned a few times online  (fortunately, not for more
than $20 USD or so)

 Tad's idea of Ebay is almost perfect. You can also try to get a read of
 your board on the Craigslist. My advice would be that you put the
 price 10%-20% bigger of what you actually pay for for the board.

 If the person knows what he is doing he would not buy from Ebay or
 Craigslist anyway.

Yes - but a lot of people DON'T and so that is why you can unloa.. I
mean sell stuff there.  And of course the old adage of one man's
trash is another man's treasure always applies - I've bought
what just about anyone would consider junk before - extracted
the bits I wanted - then tossed out the rest.  Sometimes when
you need a power supply it's cheaper to buy the device then
toss everything but the power supply in the garbage.

The same things apply to the old car market.  I've seen people selling
a car engine for $600 that I could go buy an old car for $300 that
had the same engine - remove the engine - and haul the rest of
the car to the wrecker and get $50 for the scrap steel.  Of course
I have to have the tools to remove the engine - but they are the
same tools I need to have to deal with the $600 engine.

 I just looked the Tuscon's Craigslist and some moron is selling a mother
 board for $50 bucks. Instead of the picture of his mother board he gave
 a link  to  the Geeks' web-site where the same mother board is clearly
 priced $33.95. Including $8 shipping, that is still cheaper
  than $50 which his asking price (If I remember well arithmetic from the
 kindergarten:-) ).


ROTFL!!  That's one of the best I've heard about.  If you ever want
to kill 10 minutes and get a few laughs, read the craigslist free
list.  I particularly love the ones that start out free TV set doesen't
turn on - you fix  Yeah, like I'm really going to be able to fix
a TV that has it's entire circuitry embedded in a big ASIC inside
the TV

Ted

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


Re: help

2008-01-21 Thread Heiko Wundram (Beenic)
Am Montag, 21. Januar 2008 10:16:40 schrieb Enovation Technologies:
 my question is how to configure  2 nics with different ip on same box  in
 the same subnet.

You know that this makes no sense? At least not in 99.99% of the cases? Maybe 
you can describe a little more clearly _why_ you want to do this, then 
somebody might be able to help you more appropriately than me helping you 
now.

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


Re: help

2008-01-21 Thread Wojciech Puchar

on re0 i have installing this ip

# -- sysinstall generated deltas -- # Thu Dec  6 15:26:31 2007
ifconfig_re0=inet 10.200.1.37  netmask 255.255.255.0
defaultrouter=10.200.1.1
hostname=zeus.local


i want to install on re1 another ip10.200.1.40


it won't work this way, 2 cards on same subnet.

what do you need - more speed that 100Mbit/s or what exactly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help From Indonesian....What's the matter with my mouse ??

2008-01-20 Thread Colin Brace
An issue like this is best posted in the appropriate pcbsd forum:

http://forums.pcbsd.org/

with detailed information about your system and dmesg output.

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


Re: help wanted configuring HPLIP

2007-12-08 Thread Robert Huff

Anish Mistry writes:

  So if the PSC attaches as umass, I'm hosed, but if it attaches
   as ugen I win.

  You can probably hack the umass driver to prevent it from
  attaching to the printer.

On attaching, I get:

ugen1: Hewlett-Packard PSC 750xi, class 0/0, rev 1.10/1.00, addr 6 on uhub4

So it looks like I'm good. Now we'll see if HPLIP can do its
job.


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


Re: help wanted configuring HPLIP

2007-12-08 Thread Robert Huff

Robert Huff writes:

   So it looks like I'm good. Now we'll see if HPLIP can do its
  job.

So close, and yet so far.
Ran hp-setup.  Everything worked OK except for:

1) didn't automatically find the correct driver (is it supposed
to?)
2) found the device when I checked discover all, but not when
I checked only scan to PC.

However, the real obstacle is:

Dec  8 19:50:17 jerusalem PSC_750xi?serial=MY22KD1108WB: io/hpmud/musb.c 1003: 
unable to open hp:/usb/PSC_750xi?serial=MY22KD1108WB

I'm assuming this is because I haven't rebooted and the devfs
rules haven't changed.  Is there an approved way to get the
appropriate party to re-read and implement?


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


Re: help wanted configuring HPLIP

2007-12-07 Thread Predrag Punosevac

Robert Huff wrote:

I've got it installed, see the post-install configuration
message, and have questions about how it will interact with existing
printers.


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
You might want to repeat your message as attachments are stripped by the 
FreeBSD mail server.


For generic informatin

http://dsteinbrook.googlepages.com/hpliponfreebsd

Make sure you start HPLIP daemons before the CUPS daemon.  Make  sure  
you understand  the part of the article about the kernel!
ulpt driver must be out of kernel!!! Make sure you add printers using 
http://localhost:631 before you go to HP management program.


Finally, parallel printers are not supported by HPLIP no matter what 
they say. They are only supported if you could attach them directly to 
the local network on the very specific way. Also there is  whole class 
of HP printers that  not supported as they use  very unusual protocol

to communicate with the printer server

Qoute from HPLIP website.

Question: Are drivers available for the Deskjet 710C, 712C, 720C, 722C, 
820Cse, 820Cxi, 1000Cse, 1000Cxi; or LaserJet 1000, 1005, 1020, 3100; or 
Color LaserJet 1500, 2600 printers?


Answer: These are non-standard host based printers. Currently there are 
no plans to support these printers in HPLIP. Ghostscript print filters 
for the Deskjet products can be found at the pnm2ppa project.




These printers are supported with 
http://www.freebsd.org/cgi/url.cgi?ports/print/foo2zjs/pkg-descr driver 
and I personally would not waist

my time with them.

If you are managing printers in your company the best decision that you 
could make is to have only printers that can speak postscript language 
and not worry about drivers to begin with.



HPLIP is the great thing if you want to get full functionality from you 
ALL-IN-ONE devices (including scanning) and things like toner option.


Printers however on your network will still be managed by CUPS spooling 
system. I believe that HPLIP cannot work with other spooling systems 
that you might like better than CUPS so that could be also another 
reason always to use printers that can speak postscript language.


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


Re: Help with Crontab

2007-12-07 Thread Kevin Kinsey

Drew Tomlinson wrote:
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:


# Run 1st Sunday at 0930 - Fulls
30 9 1-7 * 7 /usr/local/scripts/backup_bootstrap.sh

Yet this script just ran on Thursday, December 6 at 0930.   Why?  I just 
added it to cron so I don't know if it will run on any other days.




See crontab(5), which says:

 Note: The day of a command's execution can be specified by two fields --
day of month, and day of week.  If both fields are restricted (ie, are
not *), the command will be run when either field matches the current
time.  For example, ``30 4 1,15 * 5'' would cause a command to be run at
4:30 am on the 1st and 15th of each month, plus every Friday.

HTH,

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


Re: help wanted configuring HPLIP

2007-12-07 Thread Philip M. Gollucci

Robert Huff wrote:

I've got it installed, see the post-install configuration
message, and have questions about how it will interact with existing
printers.
Were I you, I would install cups, and then goto web page interface on 
localhost.  It kind of just works.


--
-
Philip M. Gollucci ([EMAIL PROTECTED])
c:323.219.4708 o:703.749.9295x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help wanted configuring HPLIP

2007-12-07 Thread Anish Mistry
On Saturday 08 December 2007, caldari_halo wrote:
 Anish Mistry wrote:
  On Friday 07 December 2007, Robert Huff wrote:
  Predrag Punosevac writes:
   I've got it installed, see the post-install configuration
message, and have questions about how it will interact with
existing printers.
 
   You might want to repeat your message as attachments are
  stripped by the FreeBSD mail server.
 
 Didn't send an attachment.
 Here's the scenario:
 Computer in question is runnong -CURRENT and already has CUPS
  installed for the (parallel attached) LaserJet 6mp.
 I now have access to a PSC 7xx, which I would like to use 0x1
  % for color printing and the rest for scanning.  As far as i can
  tell sane by itself does not have the ability to do this, but it
  concert with HPLIP it does.
 First question: is this correct?  Not just connect to the PSC,
  but use both devices at once  If not, then I just abort the
  whole plan.
 After seeing the post-installation message for HPLIP, I wat to
  understand what I'm doing before messing with devfs. 
  (Revuilding the kernel is no biggie, though I don't think
  that'll be necessary.) And, frankly, configuring CUPS is usually
  as pleasant as aggrssive dysentery.
 
  You should be fine since your other printer is a parallel port
  printer.  The HPLIP port doesn't configure parallel port printers
  so just use the normal CUPS configuration.  There are some issues
  with the PSC printers and getting attached as umass devices. 
  Search the archives for more info.  Basically a real solution for
  the umass issue won't appear until the HPS USB stack grows
  generic device access for already claimed usb devices support
  sometime next year.

 I've read the last couple of replies, and they have been sort of
 discouraging. I have a HP PSC 1610, which mounts itself as a umass
 device, instead of ugen. Its connected via USB (instead of
 parallel, in the other guys case). I recompiled the kernel (using
 6.2 here) without ulpt support, just like Daniel Steinbrook's howto
 said. I
 installed/configured cups and hpijs (donot need hplip) as well. Are
 you saying that I'm at a dead end as far as getting my printer to
 work under FBSD?
Like a said to Robert, it should be pretty simple to tweak the umass 
driver to not attach as umass for your printer.  All you should need 
is in umass_match_proto is an if() statement that checks for you 
printer ID and then returns UMATCH_NONE


-- 
Anish Mistry
[EMAIL PROTECTED]
AM Productions http://am-productions.biz/


signature.asc
Description: This is a digitally signed message part.


Re: Help with Crontab

2007-12-07 Thread Kevin Kinsey

Drew Tomlinson wrote:

On 12/7/2007 10:49 AM Kevin Kinsey wrote:

Drew Tomlinson wrote:
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:


# Run 1st Sunday at 0930 - Fulls
30 9 1-7 * 7 /usr/local/scripts/backup_bootstrap.sh

Yet this script just ran on Thursday, December 6 at 0930.   Why?  I 
just added it to cron so I don't know if it will run on any other days.




See crontab(5), which says:

 Note: The day of a command's execution can be specified by two fields --
day of month, and day of week.  If both fields are restricted (ie, 
are not *), the command will be run when either field matches the current
time.  For example, ``30 4 1,15 * 5'' would cause a command to be 
run at 4:30 am on the 1st and 15th of each month, plus every Friday.


Thank you for the reply.  Now I see the light.  :)  So I suppose there 
is no way to schedule as I wish using cron.  I suspect I'll have to 
modify my script to do the date  checking and only execute the meat if 
it's the right date.



Well, as the sage said, the light at the end of the
tunnel is an oncoming train.  Note the word restricted
there, and realize that it means that both fields are
checked and the job is constrained by both of them.

In other words, any of these should mail you the FBSD
COPYRIGHT file on Sundays only at 4:30 a.m.:

30   4   *   *   Sun   /bin/cat /COPYRIGHT
30   4   *   *   0 /bin/cat /COPYRIGHT
30   4   *   *   7 /bin/cat /COPYRIGHT

So, yes, Virginia, there is a Sunday Cron.
;-)


Puns, but no ill will, intended,

Kevin Kinsey
--
Look afar and see the end from the beginning.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[Fwd: Re: Help with Crontab]

2007-12-07 Thread Kevin Kinsey

Kevin Kinsey wrote:

] Well, as the sage said, the light at the end of the
] tunnel is an oncoming train.  Note the word restricted
] there, and realize that it means that both fields are
] checked and the job is constrained by both of them.
]
] In other words, any of these should mail you the FBSD
] COPYRIGHT file on Sundays only at 4:30 a.m.:
]
] 30   4   *   *   Sun   /bin/cat /COPYRIGHT
] 30   4   *   *   0 /bin/cat /COPYRIGHT
] 30   4   *   *   7 /bin/cat /COPYRIGHT
]
] So, yes, Virginia, there is a Sunday Cron.
] ;-)

BUT:


Drew Tomlinson wrote:
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:  


Doh!

I suppose you are right after all, and the script needs modified.

I suppose I'll have my crow with hot mustard, plx.  Esp. since 
I wrote an article a few years ago about scheduling for the last

day of the month only using an external script

Sorry for the noise,

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


Re: help wanted configuring HPLIP

2007-12-07 Thread Anish Mistry
On Friday 07 December 2007, Robert Huff wrote:
 Anish Mistry writes:
   You should be fine since your other printer is a parallel port
   printer.  The HPLIP port doesn't configure parallel port
  printers so just use the normal CUPS configuration.  There are
  some issues with the PSC printers and getting attached as umass
  devices. Search the archives for more info.

   Found.
   This may be a show-stopper - that system has umass devices
 which are higher priority than this.  And I don't want to have an
 entire requires operator intervention or even non-standard
 script to deal with (and remember) at boot.
   So if the PSC attaches as umass, I'm hosed, but if it attaches
 as ugen I win.
You can probably hack the umass driver to prevent it from attaching to 
the printer.

-- 
Anish Mistry
[EMAIL PROTECTED]
AM Productions http://am-productions.biz/


signature.asc
Description: This is a digitally signed message part.


Re: help wanted configuring HPLIP

2007-12-07 Thread Robert Huff
Anish Mistry writes:

  You should be fine since your other printer is a parallel port
  printer.  The HPLIP port doesn't configure parallel port printers
  so just use the normal CUPS configuration.  There are some issues
  with the PSC printers and getting attached as umass devices.
  Search the archives for more info.

Found.
This may be a show-stopper - that system has umass devices
which are higher priority than this.  And I don't want to have an
entire requires operator intervention or even non-standard
script to deal with (and remember) at boot.
So if the PSC attaches as umass, I'm hosed, but if it attaches
as ugen I win.

Thanks,


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


Re: Help with Crontab

2007-12-07 Thread Drew Tomlinson

On 12/7/2007 10:49 AM Kevin Kinsey wrote:

Drew Tomlinson wrote:
I'm trying to use cron to run a script on the first Sunday of every 
month at 0930.  I used this entry in the crontab:


# Run 1st Sunday at 0930 - Fulls
30 9 1-7 * 7 /usr/local/scripts/backup_bootstrap.sh

Yet this script just ran on Thursday, December 6 at 0930.   Why?  I 
just added it to cron so I don't know if it will run on any other days.




See crontab(5), which says:

 Note: The day of a command's execution can be specified by two fields --
day of month, and day of week.  If both fields are restricted (ie, 
are

not *), the command will be run when either field matches the current
time.  For example, ``30 4 1,15 * 5'' would cause a command to be 
run at

4:30 am on the 1st and 15th of each month, plus every Friday.

HTH,

Kevin Kinsey



Thank you for the reply.  Now I see the light.  :)  So I suppose there 
is no way to schedule as I wish using cron.  I suspect I'll have to 
modify my script to do the date  checking and only execute the meat if 
it's the right date.


Thanks,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com

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


Re: help wanted configuring HPLIP

2007-12-07 Thread Anish Mistry
On Friday 07 December 2007, Robert Huff wrote:
 Predrag Punosevac writes:
 I've got it installed, see the post-install configuration
message, and have questions about how it will interact with
existing printers.
 
   You might want to repeat your message as attachments are
  stripped by the FreeBSD mail server.

   Didn't send an attachment.
   Here's the scenario:
   Computer in question is runnong -CURRENT and already has CUPS
 installed for the (parallel attached) LaserJet 6mp.
   I now have access to a PSC 7xx, which I would like to use 0x1
 % for color printing and the rest for scanning.  As far as i can
 tell sane by itself does not have the ability to do this, but it
 concert with HPLIP it does.
   First question: is this correct?  Not just connect to the PSC,
 but use both devices at once  If not, then I just abort the whole
 plan.
   After seeing the post-installation message for HPLIP, I wat to
 understand what I'm doing before messing with devfs.  (Revuilding
 the kernel is no biggie, though I don't think that'll be
 necessary.) And, frankly, configuring CUPS is usually as pleasant
 as aggrssive dysentery.
You should be fine since your other printer is a parallel port 
printer.  The HPLIP port doesn't configure parallel port printers so 
just use the normal CUPS configuration.  There are some issues with 
the PSC printers and getting attached as umass devices.  Search the 
archives for more info.  Basically a real solution for the umass 
issue won't appear until the HPS USB stack grows generic device 
access for already claimed usb devices support sometime next year.

-- 
Anish Mistry
[EMAIL PROTECTED]
AM Productions http://am-productions.biz/


signature.asc
Description: This is a digitally signed message part.


Re: help wanted configuring HPLIP

2007-12-07 Thread Robert Huff
Predrag Punosevac writes:

  I've got it installed, see the post-install configuration
   message, and have questions about how it will interact with existing
   printers.
  

  You might want to repeat your message as attachments are stripped by the 
  FreeBSD mail server.

Didn't send an attachment.
Here's the scenario:
Computer in question is runnong -CURRENT and already has CUPS
installed for the (parallel attached) LaserJet 6mp.
I now have access to a PSC 7xx, which I would like to use 0x1
% for color printing and the rest for scanning.  As far as i can
tell sane by itself does not have the ability to do this, but it
concert with HPLIP it does.
First question: is this correct?  Not just connect to the PSC,
but use both devices at once  If not, then I just abort the whole
plan.
After seeing the post-installation message for HPLIP, I wat to
understand what I'm doing before messing with devfs.  (Revuilding
the kernel is no biggie, though I don't think that'll be necessary.)
And, frankly, configuring CUPS is usually as pleasant as aggrssive
dysentery.

  For generic informatin
  
  http://dsteinbrook.googlepages.com/hpliponfreebsd

Bookmarked.

Thank you.


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


Re: Help for very bad perf for MySQL

2007-11-27 Thread Albert Shih
 Le 26/11/2007 à 22:34:34-0800, Ted Mittelstaedt a écrit
 
 

Sorry yeasterday I don't have time to answer you.

 
  I've already send a message. But I don't receive any answer :-(.
  I try again
  and hope there more solution
 
  I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm running Mysql
  5.X on this server and the performance of MySQL is very bad. For some
  complexe select I've got ~6secondes (on some basic Linux it's take 0.6
  sec). And I think this is nothing about thead (that's mean I don't think
  FreeBSD 7.0 can solve my problem) because it's just for one select.
 
  The server have two SAS 10 000 tr/m disks.
 
  Anyone have some advise to tunning FreeBSD or MySQL for increase
  the perf ?
 
 
 Start with the obvious stuff first.  How big is the database?  How
 big is system ram?  If you have less ram than you have database then
 mysql will have to go to the hard disk for the select which will kill
 it's performance.
 
Well : 

Database size ~ 180Mo
Ram of server = 4 Go
2 processeurs.
Nothing run on this server (charge is near zero).

The disk I/O is running very fast.
The make buildworld is fast too (I don't have measure but it's «fast» ;-))

Regards.


--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Mar 27 nov 2007 13:58:17 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help for very bad perf for MySQL

2007-11-27 Thread Albert Shih
 Le 26/11/2007 à 13:31:12+0100, Jan Catrysse a écrit
I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, 
  I'm running 
Mysql 5.X on this server and the performance of MySQL is 
  very bad. 
For some complexe select I've got ~6secondes (on some basic Linux 
it's take 0.6 sec).
 
   6 seconds seem to be an awful lot. What kind of query are 
  you running 
   on what kind of database / contents?
 
  I don't really known it's some scientifical data. But the 
  problem is on a basic linux pc (with SATA disk) the time is 
  0.6 sec with same request and same data. And it's for web 
  applications. At 6 sec for one request it's become very long 
  for the visitor because the application make many requests.
  
  Regards
  --
  Albert SHIH
 
 Did you try pinpointing down the problem to make sure their is not another
 bottleneck? Is the system running in production environment for the moment
 or are you the sole user?

No the server is empty (only root can logging) and no service running
(other thant Mysql and apache). And when I try this test the load of the
server is near zero.

 
 How did you install MySQL? I my experience (but I can be wrong) the default
 settings give the best performance on 5.x MySQL FreeBSD 6.2. So no Linux
 threads and stuff...

Directly from the ports.

Regards.
 
JAS
--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Mar 27 nov 2007 14:00:40 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help for very bad perf for MySQL

2007-11-27 Thread Albert Shih
 Le 26/11/2007 à 13:29:35+0100, Ivan Voras a écrit
 Albert Shih wrote:
  Hi all
  
  I've already send a message. But I don't receive any answer :-(. I try again
  and hope there more solution 
  
  I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm running Mysql
  5.X on this server and the performance of MySQL is very bad. For some
  complexe select I've got ~6secondes (on some basic Linux it's take 0.6
  sec). And I think this is nothing about thead (that's mean I don't think
  FreeBSD 7.0 can solve my problem) because it's just for one select.
 
 
 For starts, if you didn't do it already, copy
 /usr/local/share/mysql/my-huge.cnf to /etc/my.cnf and try again. These
 are just some general settings, they might or might not help you.

It's change nothing but thanks for you answer

Regards.

JAS
--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Mar 27 nov 2007 14:02:06 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help for very bad perf for MySQL

2007-11-27 Thread Albert Shih
 Le 26/11/2007 à 07:20:43-0500, Philip M. Gollucci a écrit
 Albert Shih wrote:
  Hi all
  
  I've already send a message. But I don't receive any answer :-(. I try again
  and hope there more solution
  
  I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm running Mysql
  5.X on this server and the performance of MySQL is very bad. For some
  complexe select I've got ~6secondes (on some basic Linux it's take 0.6
  sec). And I think this is nothing about thead (that's mean I don't think
  FreeBSD 7.0 can solve my problem) because it's just for one select.
 Well -- we'll need more information, but as your say, if its not
 threading related what makes you think its FreeBSD.  You'd probably have
 better luck over on [EMAIL PROTECTED]

Thanks for this information.

 Also, your my.cnf is the next step.

[client]
port= 3306
socket  = /tmp/mysql.sock
[mysqld]
port= 3306
socket  = /tmp/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
thread_concurrency = 8
log-bin=mysql-bin
server-id   = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout

Regards.

JAS

--

Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Mar 27 nov 2007 14:02:31 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help for very bad perf for MySQL

2007-11-27 Thread cpghost
On Mon, 26 Nov 2007 13:03:19 +0100
Albert Shih [EMAIL PROTECTED] wrote:

   I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm 
   running Mysql 5.X on this server and the performance of MySQL 
   is very bad. For some complexe select I've got ~6secondes (on 
   some basic Linux it's take 0.6 sec). And I think this is 
   nothing about thead (that's mean I don't think FreeBSD 7.0 
   can solve my problem) because it's just for one select.

 I don't really known it's some scientifical data. But the problem is
 on a basic linux pc (with SATA disk) the time is 0.6 sec with same
 request and same data. And it's for web applications. At 6 sec for
 one request it's become very long for the visitor because the
 application make many requests.

It may also be a simple database administration issue:

If selects are taking so long, I'd strongly suspect that an
INDEX table is either missing or damaged. Are you 100% sure
that the database schema is *identical* on the Linux and
FreeBSD machines? Perhaps dropping and rebuilding the index
tables could speed things up?

You could also try to listen to the disks while that slow
select is performed: if the disks are thrashing, AND the
swap activity is not really higher than else (vmstat -s,
or top), it's a dead giveaway that mysqld is doing more
disk i/o than necessary, i.e. check the index tables. If
on the contrary the disks are quiet while the select runs,
check if mysqld is accumulating CPU time (with top): if it
is NOT, I'd guess it is some issue with the threading library,
i.e. some threads are deadlocked and waiting.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Help for very bad perf for MySQL

2007-11-27 Thread Ted Mittelstaedt


 -Original Message-
 From: Albert Shih [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 27, 2007 5:00 AM
 To: Ted Mittelstaedt
 Cc: freebsd-questions@freebsd.org
 Subject: Re: Help for very bad perf for MySQL


  Le 26/11/2007 à 22:34:34-0800, Ted Mittelstaedt a écrit
 
 

 Sorry yeasterday I don't have time to answer you.

  
   I've already send a message. But I don't receive any answer :-(.
   I try again
   and hope there more solution
  
   I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm
 running Mysql
   5.X on this server and the performance of MySQL is very bad. For some
   complexe select I've got ~6secondes (on some basic Linux it's take 0.6
   sec). And I think this is nothing about thead (that's mean I
 don't think
   FreeBSD 7.0 can solve my problem) because it's just for one select.
  
   The server have two SAS 10 000 tr/m disks.
  
   Anyone have some advise to tunning FreeBSD or MySQL for increase
   the perf ?
  
 
  Start with the obvious stuff first.  How big is the database?  How
  big is system ram?  If you have less ram than you have database then
  mysql will have to go to the hard disk for the select which will kill
  it's performance.
 
 Well :

 Database size ~ 180Mo
 Ram of server = 4 Go
 2 processeurs.
 Nothing run on this server (charge is near zero).

 The disk I/O is running very fast.
 The make buildworld is fast too (I don't have measure but it's «fast» ;-))


Is Hyperthreading enabled  (by default it is not under
FreeBSD)  mysql is heavily dependent on threading, if it is not
built and linked into the freebsd threads package you will get
poor performance.  Some folks have installed the linux compat libs
and linked mysql into the linux threads package and reported good
results.

Ted

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


Re: Help for very bad perf for MySQL

2007-11-27 Thread Josh Carroll
 Is Hyperthreading enabled  (by default it is not under
 FreeBSD)  mysql is heavily dependent on threading, if it is not
 built and linked into the freebsd threads package you will get
 poor performance.  Some folks have installed the linux compat libs
 and linked mysql into the linux threads package and reported good
 results.

Actually, on 6.2, it's better to use libthr instead of libpthread.
This can be done for MySQL only, but to test this without recompiling
MySQL, he can:

% echo libpthread.so.2 libthr.so.2  /etc/libmap.conf

Then restart the mysql server and test again. I noticed a huge
increase in performance on 6.2 with libthr instead of libpthread. It
wasn't a 10x improvement, though, so there is definitely something
else going on with his setup.

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


RE: Help for very bad perf for MySQL

2007-11-27 Thread Michael K. Smith - Adhost


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-freebsd-
 [EMAIL PROTECTED] On Behalf Of Josh Carroll
 Sent: Tuesday, November 27, 2007 8:12 AM
 To: Ted Mittelstaedt
 Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
 Subject: Re: Help for very bad perf for MySQL
 
  Is Hyperthreading enabled  (by default it is not under
  FreeBSD)  mysql is heavily dependent on threading, if it is not
  built and linked into the freebsd threads package you will get
  poor performance.  Some folks have installed the linux compat libs
  and linked mysql into the linux threads package and reported good
  results.
 
 Actually, on 6.2, it's better to use libthr instead of libpthread.
 This can be done for MySQL only, but to test this without recompiling
 MySQL, he can:
 
 % echo libpthread.so.2 libthr.so.2  /etc/libmap.conf
 
 Then restart the mysql server and test again. I noticed a huge
 increase in performance on 6.2 with libthr instead of libpthread. It
 wasn't a 10x improvement, though, so there is definitely something
 else going on with his setup.
 
 Regards,
 Josh

Here are some things that helped us on a high-volume MySQL server.

-- /etc/sysctl.conf -- (these can be added dynamically from the command
line)
kern.threads.max_groups_per_proc=4
kern.threads.max_threads_per_proc=4
kern.maxfiles=65535
kern.maxfilesperproc=65535

-- /boot/loader.conf -- (You'll have to reboot for these to take effect)
kern.maxdsiz=1073741824 # 1GB
kern.dfldsiz=1073741824 # 1GB
kern.maxssiz=134217728 # 128MB

-- /etc/libmap.conf -- (as Josh said)
[mysqld]
libpthread.so.2 libthr.so.2
libpthread.so libthr.so

Regards,

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


RE: Help for very bad perf for MySQL

2007-11-26 Thread Jan Catrysse
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Albert Shih
 Sent: Monday, November 26, 2007 12:50 PM
 To: freebsd-questions@freebsd.org
 Subject: Help for very bad perf for MySQL
 
 Hi all
 
 I've already send a message. But I don't receive any answer 
 :-(. I try again and hope there more solution 
 
 I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm 
 running Mysql 5.X on this server and the performance of MySQL 
 is very bad. For some complexe select I've got ~6secondes (on 
 some basic Linux it's take 0.6 sec). And I think this is 
 nothing about thead (that's mean I don't think FreeBSD 7.0 
 can solve my problem) because it's just for one select.
 
 The server have two SAS 10 000 tr/m disks.
 
 Anyone have some advise to tunning FreeBSD or MySQL for 
 increase the perf ?
 
 Regards
 --
 Albert SHIH
 Observatoire de Paris Meudon
 SIO batiment 15
 Heure local/Local time:
 Lun 26 nov 2007 12:46:06 CET

6 seconds seem to be an awful lot. What kind of query are you running on
what kind of database / contents?

Regs,
Jan

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


Re: Help for very bad perf for MySQL

2007-11-26 Thread Albert Shih
 Le 26/11/2007 à 13:01:47+0100, Jan Catrysse a écrit
  -Original Message-
  
  I've already send a message. But I don't receive any answer 
  :-(. I try again and hope there more solution 
  
  I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm 
  running Mysql 5.X on this server and the performance of MySQL 
  is very bad. For some complexe select I've got ~6secondes (on 
  some basic Linux it's take 0.6 sec). And I think this is 
  nothing about thead (that's mean I don't think FreeBSD 7.0 
  can solve my problem) because it's just for one select.
  
  The server have two SAS 10 000 tr/m disks.
  
  Anyone have some advise to tunning FreeBSD or MySQL for 
  increase the perf ?
  
  Regards
  --
  Albert SHIH
  Observatoire de Paris Meudon
  SIO batiment 15
  Heure local/Local time:
  Lun 26 nov 2007 12:46:06 CET
 
 6 seconds seem to be an awful lot. What kind of query are you running on
 what kind of database / contents?
 
I don't really known it's some scientifical data. But the problem is on a
basic linux pc (with SATA disk) the time is 0.6 sec with same request and
same data. And it's for web applications. At 6 sec for one request it's
become very long for the visitor because the application make many
requests.

Regards
--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Lun 26 nov 2007 13:00:32 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help for very bad perf for MySQL

2007-11-26 Thread Philip M. Gollucci
Albert Shih wrote:
 Hi all
 
 I've already send a message. But I don't receive any answer :-(. I try again
 and hope there more solution
 
 I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm running Mysql
 5.X on this server and the performance of MySQL is very bad. For some
 complexe select I've got ~6secondes (on some basic Linux it's take 0.6
 sec). And I think this is nothing about thead (that's mean I don't think
 FreeBSD 7.0 can solve my problem) because it's just for one select.
Well -- we'll need more information, but as your say, if its not
threading related what makes you think its FreeBSD.  You'd probably have
better luck over on [EMAIL PROTECTED]

A good start would be the query itself, and the output of EXPLAIN for
that query.

Also, your my.cnf is the next step.

-- 

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Re: Help for very bad perf for MySQL

2007-11-26 Thread Ivan Voras
Albert Shih wrote:
 Hi all
 
 I've already send a message. But I don't receive any answer :-(. I try again
 and hope there more solution 
 
 I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm running Mysql
 5.X on this server and the performance of MySQL is very bad. For some
 complexe select I've got ~6secondes (on some basic Linux it's take 0.6
 sec). And I think this is nothing about thead (that's mean I don't think
 FreeBSD 7.0 can solve my problem) because it's just for one select.


For starts, if you didn't do it already, copy
/usr/local/share/mysql/my-huge.cnf to /etc/my.cnf and try again. These
are just some general settings, they might or might not help you.

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


RE: Help for very bad perf for MySQL

2007-11-26 Thread Jan Catrysse
   I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, 
 I'm running 
   Mysql 5.X on this server and the performance of MySQL is 
 very bad. 
   For some complexe select I've got ~6secondes (on some basic Linux 
   it's take 0.6 sec).

  6 seconds seem to be an awful lot. What kind of query are 
 you running 
  on what kind of database / contents?

 I don't really known it's some scientifical data. But the 
 problem is on a basic linux pc (with SATA disk) the time is 
 0.6 sec with same request and same data. And it's for web 
 applications. At 6 sec for one request it's become very long 
 for the visitor because the application make many requests.
 
 Regards
 --
 Albert SHIH

Did you try pinpointing down the problem to make sure their is not another
bottleneck? Is the system running in production environment for the moment
or are you the sole user?

How did you install MySQL? I my experience (but I can be wrong) the default
settings give the best performance on 5.x MySQL FreeBSD 6.2. So no Linux
threads and stuff...

Regs,
Jan

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


RE: Help for very bad perf for MySQL

2007-11-26 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Albert Shih
 Sent: Monday, November 26, 2007 3:50 AM
 To: freebsd-questions@freebsd.org
 Subject: Help for very bad perf for MySQL


 Hi all

 I've already send a message. But I don't receive any answer :-(.
 I try again
 and hope there more solution

 I've a bi-proc single core Xeon 3.2ghz with FreeBSD 6.2, I'm running Mysql
 5.X on this server and the performance of MySQL is very bad. For some
 complexe select I've got ~6secondes (on some basic Linux it's take 0.6
 sec). And I think this is nothing about thead (that's mean I don't think
 FreeBSD 7.0 can solve my problem) because it's just for one select.

 The server have two SAS 10 000 tr/m disks.

 Anyone have some advise to tunning FreeBSD or MySQL for increase
 the perf ?


Start with the obvious stuff first.  How big is the database?  How
big is system ram?  If you have less ram than you have database then
mysql will have to go to the hard disk for the select which will kill
it's performance.

Ted

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


Re: Help with a new port?

2007-11-25 Thread Roland Smith
On Sat, Nov 24, 2007 at 05:01:36PM -0800, Zachary Kline wrote:

 I must confess I haven't.  I'll look into it and see what comes up. 
 Currently trying to figure out how to get ports upgraded in a sane fashion 
 as well, as I've noticed some of the packages are quite behind in comparison 
 to the ports they're based on.

First of all, if you look into the ports directories on the FreeBSD FTP
servers, you'll see different versions of the packages, e.g.
packages-5-stable, packages-6-stable, packages-6.2-release,
packages-7-current, etc. Depending on which version you installed,
'pkg_add -r' picks the packages from one of those directories. So if you
installed 6.2-RELEASE, you'll probably get packages from
packages-6.2-release. That packages tree is based on the ports tree at
the moment that 6.2 was released.

So the best way to keep your ports current is to build them
yourself. First, update your ports tree with portsnap (from the base
system). Then install one of the ports management tools like portmaster
or portupgrade, and use that to upgrade the ports. Do read
/usr/ports/UPDATING so that you are aware of any issues.

If you have questions, don't hesitate to ask on the list, but have a
look through the list archives as well, if you can access them. 

If you have trouble navigating the FreeBSD website, you should contact
the website maintainers mailing list: [EMAIL PROTECTED]

Good luck!

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp2azUCvG5I2.pgp
Description: PGP signature


Re: Help with a new port?

2007-11-24 Thread Robert Joosten
Hi,

 I have a new port which I feel should be included in the FreeBSD 
 accessibility  category, if only because I noticed its absence in 
 searching for it.

Have you read 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html 
yet ?

I don't use ports myself and never ported anything but I've read that 
guide a long time ago and to me it seemed quite easy to do.

Happy porting.

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


Re: Help with a new port?

2007-11-24 Thread Zachary Kline

Robert Joosten [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,

 I have a new port which I feel should be included in the FreeBSD
 accessibility  category, if only because I noticed its absence in
 searching for it.

 Have you read
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html
 yet ?

I must confess I haven't.  I'll look into it and see what comes up. 
Currently trying to figure out how to get ports upgraded in a sane fashion 
as well, as I've noticed some of the packages are quite behind in comparison 
to the ports they're based on.
Thanks,
Zack.



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


Re: Help with a new port?

2007-11-24 Thread Giorgos Keramidas
On 2007-11-24 15:24, Zachary Kline [EMAIL PROTECTED] wrote:
 Hi,
 My name is Zachary Kline,

Hi Zachary,

 Anyway, to get to the point: I'm not quite sure where to ask this.  I
 have a new port which I feel should be included in the FreeBSD
 accessibility category, [...]
 This port is Emacspeak, from http://emacspeak.sf.net.  It's a screen
 reader--though that term isn't really encouraged by the developer--for
 the Emacs work environment.

I can help with the integration of the new port.  I will have a look at
the site of the program, but it would be nice if you sent me any porting
details/work you have already.

Happy FreeBSD'ing :-)

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


Re: Help no network with dhcp

2007-11-19 Thread kev c

--- security [EMAIL PROTECTED] wrote:

 
  Its me, kev. Sorry, I misunderstood the request. I
  redid the test on a separate computer and it didnt
  broadcast the dhcprequest.
 
  The router's log shows no dhcp activities.
 
  I tried by passing the router and using my isp's
 dhcp
  server but the result was the same.
 
  I tried useing sysinstall on a computer with a
  different network card and it worked.
 
  I am useing 6.2 release.

 If you're not seeing the broadcast, it doesn't
 matter whose dhcp server
 you use.
 
 When you say you used a different card, is it the
 same mfg/chipset or a
 different one?
 
It was a different kind of card it had a different
chipset. I was confused because the not working card
doesnt actually have a dm9102a chipset that is just
what freebsd said it has a dm9102af chip I looked
inside the computer and made sure.

Thank you for the help I thought that maybe I was
doing something wrong since I hadnt installed freebsd
before.

 6.2 should support that card.  on the card that
 doesn't work, do you see
 a link light come up when you boot up to sysinstall?
 
 Have you switched to the alternate console to check
 for error messages?
 
 thks
 



  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

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


Re: Help how to set up networking for ftp install

2007-11-16 Thread Jerry McAllister
On Thu, Nov 15, 2007 at 10:12:59PM -0800, kev sadasda wrote:

 I am trying to install freebsd over ftp but it always
 says, cannot resolve ftp.freebsd.org
 
 I told it to use dchp but it didnt do anything even
 though my router's dhcp server was on. it kept on
 saying
 
 dhcpdiscover on dc0 to 255.255.255.255 port 67
 interval ..
 
 So I tried to fill in the infos but it always said
 cannot resolve.. as soon as I pressed ok.

It looks like no DHCP server is responding to it.
Is there supposed to be a DHCP server listening to you?
Do you usually use DHCP from that machine?  or do you have to
use a fixed address?   or is this the first time you have tried
to put this machine on the net?

Anyway, if you have to enter your own info, you cannot both
do that and have DHCP turned on.  You have to DHCP setting off
then enter your fixed IP address, your Default Name server, your 
default gateway and your netmask as given by your Internet provider.

From a quick glance, it looks like you are trying to use both DHCP
and fixed IP addresses.   In addition, it looks like the IPs you are
trying to assign are private network IPs rather than public network
addresses.  You need to talk with whoever is providing you network service.

Also, take a look at:  http://en.wikipedia.org/wiki/Private_network
   http://www.duxcw.com/faq/network/privip.htm
   http://www.pku.edu.cn/academic/research/computer-center/tc/html/TC0305.html

And probably some parts of the FreeBSD Handbook

jerry
   


   




jerry

 
 These are my infos.
 
 Windows IP Configuration
 
 Host Name . . . . . . . . . . . . :
 sasdasda-164680
 Primary Dns Suffix  . . . . . . . :
 Node Type . . . . . . . . . . . . : Unknown
 IP Routing Enabled. . . . . . . . : No
 WINS Proxy Enabled. . . . . . . . : No
 DNS Suffix Search List. . . . . . :
 gv.shawcable.net
 
 Ethernet adapter Local Area Connection:
 
 Connection-specific DNS Suffix  . :
 gv.shawcable.net
 Description . . . . . . . . . . . : CNet
 PRO200WL PCI Fast Ethernet Adap
 ter
 Physical Address. . . . . . . . . :
 00-80-AD-88-97-D8
 Dhcp Enabled. . . . . . . . . . . : Yes
 Autoconfiguration Enabled . . . . : Yes
 IP Address. . . . . . . . . . . . :
 192.168.0.102
 Subnet Mask . . . . . . . . . . . :
 255.255.255.0
 Default Gateway . . . . . . . . . :
 192.168.0.1
 DHCP Server . . . . . . . . . . . :
 192.168.0.1
 DNS Servers . . . . . . . . . . . :
 192.168.0.1
 Lease Obtained. . . . . . . . . . : Thursday,
 November 15, 2007 10:05:10
  PM
 Lease Expires . . . . . . . . . . : Thursday,
 November 22, 2007 10:05:10
  PM
 
 
 
   
 
 Get easy, one-click access to your favorites. 
 Make Yahoo! your homepage.
 http://www.yahoo.com/r/hs 
 
 ___
 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: Help how to set up networking for ftp install

2007-11-16 Thread Tino Engel

kev sadasda schrieb:

I forgot to explain that my computer is behind a home
router connected to the cable modem. The dhcp server
is working on the router it gives me an ip address in
windows. So I think the problem is that freebsd isnt
finding the server. It is failing with dhcpdiscover on
dc0 to 255.255.255.255 port 67
interval.. But I dont know what to do about that.

This is the status info from the router.

LAN
MAC Address 
	00-0F-3D-5B-E3-BC
IP Address 
	192.168.0.1
Subnet Mask 
	255.255.255.0
DHCP Server 
	Enabled
  	 
WAN
MAC Address 
	00-0F-3D-5B-E3-BD
Connection 
	DHCP Client Connected  
IP Address 
	24.69.77.165
Subnet Mask 
	255.255.252.0
Default Gateway 
	24.69.76.1
DNS 
	64.59.160.13 64.59.160.15


  

Does the network options screen fill in the values automatically?
Do you try IPv6 configuration?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help how to set up networking for ftp install

2007-11-16 Thread Jerry McAllister
On Fri, Nov 16, 2007 at 11:50:36AM -0800, kev sadasda wrote:

 I forgot to explain that my computer is behind a home
 router connected to the cable modem. The dhcp server
 is working on the router it gives me an ip address in
 windows. So I think the problem is that freebsd isnt
 finding the server. It is failing with dhcpdiscover on
 dc0 to 255.255.255.255 port 67
 interval.. But I dont know what to do about that.

That helps make things more clear.

I am not very knowledgeable about using DHCP and setting up routers
(I am spoiled by being in a very highspeed net with fixed addresses
for every system I need)

so hopefully someone else will weigh in.   

Is your router functioning as a firewall too?
Maybe you have to look in to passive ftp.

jerry


 
 This is the status info from the router.
 
 LAN
 MAC Address 
   00-0F-3D-5B-E3-BC
 IP Address 
   192.168.0.1
 Subnet Mask 
   255.255.255.0
 DHCP Server 
   Enabled

 WAN
 MAC Address 
   00-0F-3D-5B-E3-BD
 Connection 
   DHCP Client Connected  
 IP Address 
   24.69.77.165
 Subnet Mask 
   255.255.252.0
 Default Gateway 
   24.69.76.1
 DNS 
   64.59.160.13 64.59.160.15
 
 
   
 
 Never miss a thing.  Make Yahoo your home page. 
 http://www.yahoo.com/r/hs
 
 ___
 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: Help how to set up networking for ftp install

2007-11-16 Thread Andriy Babiy
 I am trying to install freebsd over ftp but it always
 says, cannot resolve ftp.freebsd.org
 
 I told it to use dchp but it didnt do anything even
 though my router's dhcp server was on. it kept on
 saying
 
 dhcpdiscover on dc0 to 255.255.255.255 port 67
 interval ..

Have you tried to unplug your modem from the power for 1 minute? Usually, this 
is an advise you'll get from Shaw support. And usually, it really helps.

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


Re: Help how to set up networking for ftp install

2007-11-16 Thread kev sadasda
I forgot to explain that my computer is behind a home
router connected to the cable modem. The dhcp server
is working on the router it gives me an ip address in
windows. So I think the problem is that freebsd isnt
finding the server. It is failing with dhcpdiscover on
dc0 to 255.255.255.255 port 67
interval.. But I dont know what to do about that.

This is the status info from the router.

LAN
MAC Address 
00-0F-3D-5B-E3-BC
IP Address 
192.168.0.1
Subnet Mask 
255.255.255.0
DHCP Server 
Enabled
 
WAN
MAC Address 
00-0F-3D-5B-E3-BD
Connection 
DHCP Client Connected  
IP Address 
24.69.77.165
Subnet Mask 
255.255.252.0
Default Gateway 
24.69.76.1
DNS 
64.59.160.13 64.59.160.15


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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


Re: Help how to set up networking for ftp install

2007-11-16 Thread kev sadasda
 Is your router functioning as a firewall too?
 Maybe you have to look in to passive ftp.

But it isnt getting to the ftp part it is not even
getting the infos from the dhcp server.

 Does the network options screen fill in the values
 automatically?

No it is all blank. So I tried filling it in but it
didnt work.

 Do you try IPv6 configuration?

I tried it but it didnt do anything I am sure I am not
useing ipv6.

 Have you tried to unplug your modem from the power
 for 1 minute? Usually, this is an advise you'll get
 from Shaw support. And usually, it really helps.

I tried that but it didnt help.



  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/

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


Re: Help Failing Disk Problem

2007-11-05 Thread James
On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote:

 I have a FreeBSD 6.2 Release box with a single ide that has user data 
 and the FreeBSD OS on a hard disk that is failing.  I need advice on the 
 best way to clone the entire disk (or at least the data) onto a larger 
 ide disk drive, then pull the failing disk and replace it with the 
 clone.  What is the best way in FreeBSD to do that?
 
 Thanks


The best way is to do it regularly before the hard drive is failing.

Given that you haven't done that, there're a few methods. I'm a big fan
of rsync,  which is the nectar of the gods, but a lot of folks seem to
prefer dd for this kind of thing. There was a thread not  long ago about
how best to duplicate a drive.

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


Re: Help Failing Disk Problem

2007-11-05 Thread Derek Ragona

At 01:53 PM 11/5/2007, Sean Murphy wrote:
I have a FreeBSD 6.2 Release box with a single ide that has user data and 
the FreeBSD OS on a hard disk that is failing.  I need advice on the best 
way to clone the entire disk (or at least the data) onto a larger ide disk 
drive, then pull the failing disk and replace it with the clone.  What is 
the best way in FreeBSD to do that?


Thanks


If you buy a new disk most disk manufacturer's have cloning 
software.  However if you are having media failure errors it can be 
difficult to get the data off.  You may be able to just get the data you 
need off this disk by copying to a new disk, or top tape, or a usb 
disk.  If you  know what data you need like: /etc /usr/local/etc 
/usr/local/data you may be better to just copy those trees off.


-Derek

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

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


Re: Help Failing Disk Problem

2007-11-05 Thread Warren Block

On Mon, 5 Nov 2007, Sean Murphy wrote:

I have a FreeBSD 6.2 Release box with a single ide that has user data and the 
FreeBSD OS on a hard disk that is failing.  I need advice on the best way to 
clone the entire disk (or at least the data) onto a larger ide disk drive, 
then pull the failing disk and replace it with the clone.  What is the best 
way in FreeBSD to do that?


http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK

-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: Help Failing Disk Problem

2007-11-05 Thread Hakan K
Try to connect the bad one as a secondary HD to get the data if u can
not clone it..


Thanks
Hakan
http://dominor.com

On Nov 5, 2007 3:50 PM, Derek Ragona [EMAIL PROTECTED] wrote:
 At 01:53 PM 11/5/2007, Sean Murphy wrote:
 I have a FreeBSD 6.2 Release box with a single ide that has user data and
 the FreeBSD OS on a hard disk that is failing.  I need advice on the best
 way to clone the entire disk (or at least the data) onto a larger ide disk
 drive, then pull the failing disk and replace it with the clone.  What is
 the best way in FreeBSD to do that?
 
 Thanks

 If you buy a new disk most disk manufacturer's have cloning
 software.  However if you are having media failure errors it can be
 difficult to get the data off.  You may be able to just get the data you
 need off this disk by copying to a new disk, or top tape, or a usb
 disk.  If you  know what data you need like: /etc /usr/local/etc
 /usr/local/data you may be better to just copy those trees off.

  -Derek

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

 ___
 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: Help Failing Disk Problem

2007-11-05 Thread Warren Block

On Mon, 5 Nov 2007, James wrote:


On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote:


I have a FreeBSD 6.2 Release box with a single ide that has user data
and the FreeBSD OS on a hard disk that is failing.  I need advice on the
best way to clone the entire disk (or at least the data) onto a larger
ide disk drive, then pull the failing disk and replace it with the
clone.  What is the best way in FreeBSD to do that?


The best way is to do it regularly before the hard drive is failing.

Given that you haven't done that, there're a few methods. I'm a big fan
of rsync,  which is the nectar of the gods, but a lot of folks seem to
prefer dd for this kind of thing.


rsync is too high-level, and may not do exactly the right thing with 
links or sparse files or who knows what.  dd is too low-level--you get 
the same partition table/bsdlabel and the exact same slice/partition 
sizes.  That's okay on an identical hard drive, but a pain on one that's 
larger.


dump, on the other hand, is just right.

-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: Help Failing Disk Problem

2007-11-05 Thread James
On Mon, 2007-11-05 at 14:04 -0700, Warren Block wrote:

 On Mon, 5 Nov 2007, James wrote:
 
  On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote:
 
  I have a FreeBSD 6.2 Release box with a single ide that has user data
  and the FreeBSD OS on a hard disk that is failing.  I need advice on the
  best way to clone the entire disk (or at least the data) onto a larger
  ide disk drive, then pull the failing disk and replace it with the
  clone.  What is the best way in FreeBSD to do that?
 
  The best way is to do it regularly before the hard drive is failing.
 
  Given that you haven't done that, there're a few methods. I'm a big fan
  of rsync,  which is the nectar of the gods, but a lot of folks seem to
  prefer dd for this kind of thing.
 
 rsync is too high-level, and may not do exactly the right thing with 
 links or sparse files or who knows what. 

rsync -cav takes cares of symlinks and all that just right. It's a
beautiful thing.

Checksumming, too. Ah, bliss.


  dd is too low-level--you get 
 the same partition table/bsdlabel and the exact same slice/partition 
 sizes.  That's okay on an identical hard drive, but a pain on one that's 
 larger.
 dump, on the other hand, is just right.
 
 -Warren Block * Rapid City, South Dakota USA


dump has the problem that a lot of tools have, though, including rsync.
It creates a file list to start from. 

If the file names on the drive change during the dump, corruption can
occur. At least on linux. I remember Torvalds ranting about it on a
mailing list. I imagine FreeBSD suffers the same issue, though, as it's
a pretty generic problem.

dump is a good tool, though, no arguments really here.

James

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


Re: Help Failing Disk Problem

2007-11-05 Thread Roland Smith
On Mon, Nov 05, 2007 at 03:16:46PM +, James wrote:
  rsync is too high-level, and may not do exactly the right thing with 
  links or sparse files or who knows what. 
 
 rsync -cav takes cares of symlinks and all that just right. It's a
 beautiful thing.
 
 Checksumming, too. Ah, bliss.

It doesn't necessarily do the right thing with flags, acls and other
extended attributes,

   dd is too low-level--you get 
  the same partition table/bsdlabel and the exact same slice/partition 
  sizes.  That's okay on an identical hard drive, but a pain on one that's 
  larger.
  dump, on the other hand, is just right.

 If the file names on the drive change during the dump, corruption can
 occur. At least on linux. I remember Torvalds ranting about it on a
 mailing list. I imagine FreeBSD suffers the same issue, though, as it's
 a pretty generic problem.

For starters, you should _never_ dump a live filesystem. What you can do is
dump a snapshot of a live filesystem, using dumps '-L' option, because a
snapshot is like a frozen image of the filesystem; it doesn't change.

Dump  restore is the best way to move data and all attributes to a
larger disk. See §9.2 of the FAQ.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpQI3Oof6eue.pgp
Description: PGP signature


Re: Help Failing Disk Problem

2007-11-05 Thread Jerry McAllister
On Mon, Nov 05, 2007 at 11:53:13AM -0800, Sean Murphy wrote:

 I have a FreeBSD 6.2 Release box with a single ide that has user data 
 and the FreeBSD OS on a hard disk that is failing.  I need advice on the 
 best way to clone the entire disk (or at least the data) onto a larger 
 ide disk drive, then pull the failing disk and replace it with the 
 clone.  What is the best way in FreeBSD to do that?

If you can get the new disk physically installed and recognized and
running before the old disk completely fails, then it should be no
problem.   Build the file systems on the new disk as you want them,
then use dump/retore to move the data.   The dump/restore needs to
be done one filesystem at a time.   

NOTE: For best results, this should all be done in single user mode
  with no other thing running to avoid changes in files confusing
  things.   It will work in full multi user mode, but you may get
  some files in indeterminate condition if they happen to change
  during the copy process.

Either use sysinstall  (/usr/sbin/sysinstall) to slice and partition
the new drive and build file systems on it or do it yourself with
  fdisk, bsdlabel and newfs.

Since you are using a larger drive, think out the sizes you want
for the partitions on the new drive.   I am guessing from the way
you talk here, that the system is not dual booted with some other OS.

Given that presumption:
  (This is right out of the bsdlabel man page, by the way.  I just
   changed numbers and device names to fit the situation)

NOTE: The dd-s below are just to make sure the label areas and such
  are wiped clean in case the manufacturer made some presumptions
  and wrote something there.   They might not really be needed, but
  won't hurt anything and take just a moment.

Create one large slice, marked bootable for FreeBSD:
  dd if=/dev/zero of=/dev/ad1 bs=512 count=1024
  fdisk -BI da0

Write a basic label and boot record on the slice:
  dd if=/dev/zero of=/dev/ad1s1 bs=512 count=1024
  bsdlabel -w -B ad1s1

Partition the slice by using the edit function of bsdlabel:
  bsdlabel -e ad1s1

This will put you in an edit screen with the beginnings of partition
information.   Ignore anything it might have before the lines that read:
  # /dev/ad1s1:
  8 partitions:
  #  size   offsetfstype   [fsize bsize bps/cpg]

After that you will see a list of partitions.  There should only be
one 'c' partition listed.   Do not change that line, but copy it 
enough times to have one for each partition you want.  Lets say you
want root, swap, /tmp, /usr, /var and /home.   Then make it 
something like:

 # /dev/ad1s1:
 8 partitions:
 #  size   offsetfstype   [fsize bsize bps/cpg]
 a:   52428804.2BSD2048 16384 32776
 b:  2572288*  swap
 c: 783168750unused   0 0# raw part, don't edit
 d:  1048576*4.2BSD2048 16384 8
 e:  4194304*4.2BSD2048 16384 28552
 f:  6291456*4.2BSD2048 16384 28552
 g:**4.2BSD2048 16384 28552

Then just :wq out of the edit session and your label is nicely written.

Using the stars for offset and final size tells bsdlabel to calculate
the offsets for you and make the last partition take up all the 
remaining available space.   The first partition should have the
offset specified as '0'.The numbers I have here are in 512 byte blocks
and give the following sizes.Choose your own according to your needs.

 a:   256  MBI mount as /
 b:  1256  MBis swap
 d:   512  MBI mount as /tmp
 e:  2048  MBI mount as /usr
 f:  3072  MBI mount as /var
 g:  Remainder MB  I mount as /home 

Once that is finished, then you need to run new fs on each partition
except the one for swap (b).   eg.  newfs a, d, e, f, g
Generally, unless you need extra inodes for a lot of small files
or expect only unusually large files, you can just take the defaults
for newfs.   so:

  newfs /dev/ad1s1a
  newfs /dev/ad1s1d
  newfs /dev/ad1s1e
  newfs /dev/ad1s1f
  newfs /dev/ad1s1g

Now you need to make mount points for and mount each partition.
Something like:

  mkdir /newroot
  mount /dev/ad1s1a /newroot
  mkdir /newusr
  mount /dev/ad1s1e /newusr
  mkdir /newvar
  mount /dev/ad1s1f /newvar
  mkdir /newhome
  mount /dev/ad1s1g /newhome

You don't usually need to copy /tmp to the new disk, though you
can do that if you want as well.

Then do the dump/restore-s

  cd /newroot
  dump 0af - / | restore -rf - 

  cd /newusr
  dump 0af - /usr | restore -rf -

  cd /newvar 
  dump 0af - /var | restore -rf -

  cd /newhome
  dump 0af - /home | restore -rf -

At the end of each dump it might ask you if you want to
set permissions on .   just answer no.   I don't think it does
that with the restore -r, but if it does, then answer no.

After all this, you should be able to just physically switch
the disks and boot on the new one.

jerry


 
 Thanks
 

Re: Help Failing Disk Problem

2007-11-05 Thread FX Charpentier
Roland,

The mention of dump '-L' in your email below has caught my attention.
Pardon my ignorance, but what is the '-L' option?

I looked it up in the man pages but wasn't able to find any mention of it.
Can you point me in the right direction?

Thanks,
- FX

- Original Message 
 From: Roland Smith [EMAIL PROTECTED]
 To: James [EMAIL PROTECTED]
 Cc: Sean Murphy [EMAIL PROTECTED]; freebsd-questions@freebsd.org
 Sent: Monday, November 5, 2007 4:58:47 PM
 Subject: Re: Help Failing Disk Problem
 
 On Mon, Nov 05, 2007 at 03:16:46PM +, James wrote:
   rsync is too high-level, and may not do exactly the right
 thing
 
 with 
   links or sparse files or who knows what. 
  
  rsync -cav takes cares of symlinks and all that just right. It's a
  beautiful thing.
  
  Checksumming, too. Ah, bliss.
 
 It doesn't necessarily do the right thing with flags, acls and other
 extended attributes,
 
dd is too low-level--you get 
   the same partition table/bsdlabel and the exact
 same
 
 slice/partition 
   sizes.  That's okay on an identical hard drive, but a pain on
 one
 
 that's 
   larger.
   dump, on the other hand, is just right.
 
  If the file names on the drive change during the dump, corruption can
  occur. At least on linux. I remember Torvalds ranting about it on a
  mailing list. I imagine FreeBSD suffers the same issue, though,
 as
 
 it's
  a pretty generic problem.
 
 For starters, you should _never_ dump a live filesystem. What you
 can
 
 do is
 dump a snapshot of a live filesystem, using dumps '-L' option,
 because
 
 a
 snapshot is like a frozen image of the filesystem; it doesn't change.
 
 Dump  restore is the best way to move data and all attributes to a
 larger disk. See §9.2 of the FAQ.
 
 Roland
 -- 
 R.F.Smith 
 
 http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email
 much
 
 appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725
 (KeyID:
 
 C321A725)
 



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help Failing Disk Problem

2007-11-05 Thread Jerry McAllister
On Mon, Nov 05, 2007 at 02:40:36PM -0800, FX Charpentier wrote:

 Roland,
 
 The mention of dump '-L' in your email below has caught my attention.
 Pardon my ignorance, but what is the '-L' option?
 
 I looked it up in the man pages but wasn't able to find any mention of it.
 Can you point me in the right direction?

It stands for 'Live' and causes dump to do some snapshotting if you
are running from multi user.   It is not really meaningful if you
are running in single user mode, but can help reduce confusion if
files change during a dump on a live multi user mode system.

jerry

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


Re: Help Failing Disk Problem

2007-11-05 Thread FX Charpentier
Thanks.  I might actually use this on a box I'm running.

Best,
- FX

- Original Message 
 From: Jerry McAllister [EMAIL PROTECTED]
 To: FX Charpentier [EMAIL PROTECTED]
 Cc: Roland Smith [EMAIL PROTECTED]; James [EMAIL PROTECTED]; Sean Murphy 
 [EMAIL PROTECTED]; freebsd-questions@freebsd.org
 Sent: Monday, November 5, 2007 7:18:57 PM
 Subject: Re: Help Failing Disk Problem
 
 On Mon, Nov 05, 2007 at 02:40:36PM -0800, FX Charpentier wrote:
 
  Roland,
  
  The mention of dump '-L' in your email below has caught my attention.
  Pardon my ignorance, but what is the '-L' option?
  
  I looked it up in the man pages but wasn't able to find any
 mention
 
 of it.
  Can you point me in the right direction?
 
 It stands for 'Live' and causes dump to do some snapshotting if you
 are running from multi user.   It is not really meaningful if you
 are running in single user mode, but can help reduce confusion if
 files change during a dump on a live multi user mode system.
 
 jerry
 
  
  Thanks,
  - FX
  
 



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help Failing Disk Problem

2007-11-05 Thread Jon Hamilton
James [EMAIL PROTECTED], said on Mon Nov 05, 2007 [03:16:46 PM]:
} On Mon, 2007-11-05 at 14:04 -0700, Warren Block wrote:
} 
}  On Mon, 5 Nov 2007, James wrote:
}  
}   On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote:
}  
}   I have a FreeBSD 6.2 Release box with a single ide that has user data
}   and the FreeBSD OS on a hard disk that is failing.  I need advice on the
}   best way to clone the entire disk (or at least the data) onto a larger
}   ide disk drive, then pull the failing disk and replace it with the
}   clone.  What is the best way in FreeBSD to do that?
}  
}   The best way is to do it regularly before the hard drive is failing.
}  
}   Given that you haven't done that, there're a few methods. I'm a big fan
}   of rsync,  which is the nectar of the gods, but a lot of folks seem to
}   prefer dd for this kind of thing.
}  
}  rsync is too high-level, and may not do exactly the right thing with 
}  links or sparse files or who knows what. 
} 
} rsync -cav takes cares of symlinks and all that just right. It's a
} beautiful thing.
} 
} Checksumming, too. Ah, bliss.

Reading the man page, I believe that will make copies instead of hard links
for files with more than one link.  By my reading, you'd have to specify -H 
in addition.  As others have pointed out, if you're using ACLs or other 
extended attributes, those may be lost as well.  

This is why I think _in principle_ using a tool which has as its sole purpose
in life the backup and restore, unmolested, of filesystems, is the best 
general approach to this problem.  Other tools may work too, but you have
to put a lot of thought and care into getting 473 of their 1692 command line
options right (made up numbers, obviously) and that's never good when you're
in the heat of the moment and your data is at stake.

} dump has the problem that a lot of tools have, though, including rsync.
} It creates a file list to start from. 
} 
} If the file names on the drive change during the dump, corruption can
} occur. At least on linux. I remember Torvalds ranting about it on a
} mailing list. I imagine FreeBSD suffers the same issue, though, as it's
} a pretty generic problem.

Use dump (or anything else, for that matter) on a snapshot.

Of course, all bets are off since the disk is already failing.  The common
case is that the OP may get most of the files off in tact; probably not all.
Backups are important if you care about your data.

-- 

   Jon Hamilton 
   [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: Help Failing Disk Problem

2007-11-05 Thread Roland Smith
On Mon, Nov 05, 2007 at 02:40:36PM -0800, FX Charpentier wrote:
 Roland,
 
 The mention of dump '-L' in your email below has caught my attention.
 Pardon my ignorance, but what is the '-L' option?
 
 I looked it up in the man pages but wasn't able to find any mention of it.
 Can you point me in the right direction?

It's in dump(8);

 -L  This option is to notify dump that it is dumping a live file sys-
 tem.  To obtain a consistent dump image, dump takes a snapshot of
 the file system in the .snap directory in the root of the file
 system being dumped and then does a dump of the snapshot.  The
 snapshot is unlinked as soon as the dump starts, and is thus
 removed when the dump is complete.  This option is ignored for
 unmounted or read-only file systems.  If the .snap directory does
 not exist in the root of the file system being dumped, a warning
 will be issued and the dump will revert to the standard behavior.
 This problem can be corrected by creating a .snap directory in
 the root of the file system to be dumped; its owner should be
 ``root'', its group should be ``operator'', and its mode should
 be ``0770''.

I use dump with the following options (e.g. for /usr);

dump -0 -B 4589560 -C 8 -h 0 -L -u -P \
'cat - usr-0-20071106-vol${DUMP_VOLUME}.dump' /usr

This splits dump output in DVD-R sized chunks.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpvj8pXniSED.pgp
Description: PGP signature


Re: Help Failing Disk Problem

2007-11-05 Thread Wojciech Puchar


I use dump with the following options (e.g. for /usr);

dump -0 -B 4589560 -C 8 -h 0 -L -u -P \
'cat - usr-0-20071106-vol${DUMP_VOLUME}.dump' /usr

This splits dump output in DVD-R sized chunks.

completely strange

better

-f file1,file2,file3,.


(you may type more files than actually needed).

one unneeded extra pipe avoided.

if you use pipe, use with growisofs.

BUT with DVD+RW disks you may use /dev/cd0 directly as dump device
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread Bill Moran
In response to VeeJay [EMAIL PROTECTED]:

 Hello Gurus….
 
 
 
 I am running a status script written in Perl (*status.pl*) and want to have
 it *Always Running*.
 
 
 
 How can I check through CRON that status.pl is running and if NO, then
 start the script execution again?
 
 
 
 Please help and advise…

Have you considered something like daemontools?  It's designed for such
a task, as opposed to reinventing the wheel.

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


Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread Mike Jeays
On October 31, 2007 07:58:21 am VeeJay wrote:
 Hello Gurus….



 I am running a status script written in Perl (*status.pl*) and want to have
 it *Always Running*.



 How can I check through CRON that status.pl is running and if NO, then
 start the script execution again?



 Please help and advise…



 With a bundle of thanks!

You could write a shell script something like:

#!/bin/bash
ps -ax | grep 'status.pl'
if [ $q -eq 0 ]
then
  status.pl
fi

grep will return zero if it finds a line containing 'status.pl', and 1 
otherwise.

in crontab, use

* * * * * /full/path/to/script-above

and it will check every minute.

But a better fix would be to find the bug in status.pl that makes it crash!




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


Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread John Nielsen

Quoting Mike Jeays [EMAIL PROTECTED]:

On October 31, 2007 07:58:21 am VeeJay wrote:

I am running a status script written in Perl (*status.pl*) and want to have
it *Always Running*.

How can I check through CRON that status.pl is running and if NO, then
start the script execution again?

Please help and advise...


You could write a shell script something like:


A couple nits:


#!/bin/bash


#!/bin/sh


ps -ax | grep 'status.pl'


This should probably be something like ps -ax | grep 'status.pl' | 
grep -v grep so you don't get false positives from the grep process 
itself.


JN


if [ $q -eq 0 ]
then
 status.pl
fi

grep will return zero if it finds a line containing 'status.pl', and 1
otherwise.

in crontab, use

* * * * * /full/path/to/script-above

and it will check every minute.

But a better fix would be to find the bug in status.pl that makes it crash!




--
Mike Jeays
http://www.jeays.ca
___
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: Help Plz... Cron Job question....hellp...

2007-10-31 Thread Michaël Grünewald
VeeJay [EMAIL PROTECTED] writes:

 Hello Gurus….



 I am running a status script written in Perl (*status.pl*) and want to have
 it *Always Running*.

 How can I check through CRON that status.pl is running and if NO, then
 start the script execution again?

Why don't you use the following SH script?

  whule true; do
perl status.pl
  done

It will restart `status.pl' whenever it dies.
-- 
Best wishes,
Michaël
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 10/31/07, VeeJay  wrote:
 I am running a status script written in Perl (*status.pl*) and want to have
 it *Always Running*.



 How can I check through CRON that status.pl is running and if NO, then
 start the script execution again?


Run monit.

http://www.freshports.org/sysutils/monit/

Here's an example config for making sure sshd is running:

$ cat /etc/monit.d/sshd
check process sshd with pidfile /var/run/sshd.pid
  start program  /etc/init.d/sshd start
  stop program  /etc/init.d/sshd stop
  if failed port 22 protocol ssh then restart
  if 5 restarts within 5 cycles then timeout

- --
Andy Harrison
public key: 0x67518262
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHKHeKNTm8fWdRgmIRAoZGAJ0ZJCzDedOEzVqJFYlniZshPKJmPwCaA8Uh
pPYRFCDdrIk1YgYPcyH0hew=
=dr1X
-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: Help with Cron pleazzzzzzzzzzzz

2007-10-31 Thread RW
On Wed, 31 Oct 2007 10:02:53 -0400
John Nielsen [EMAIL PROTECTED] wrote:


 This should probably be something like ps -ax | grep 'status.pl' | 
 grep -v grep so you don't get false positives from the grep process 
 itself.
 

or simply use: pgrep status\.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help Plz... Cron Job question....hellp...

2007-10-31 Thread Tino Engel
call a script called script.sh from cron e.g. every minute.
script.sh contains:

#!/bin/sh
ps -a | grep status.pl | |  perl status.pl

Am Mittwoch 31 Oktober 2007 08:32 schrieb VeeJay:
 Hello Gurus….



 I am running a status script written in Perl (*status.pl*) and want to have
 it *Always Running*.



 How can I check through CRON that status.pl is running and if NO, then
 start the script execution again?



 Please help and advise…



 With a bundle of thanks!


pgpFA51yluLwN.pgp
Description: PGP signature


Re: help in deletion part of a line

2007-10-23 Thread Benjamin M. A'Lee
On Mon, Oct 22, 2007 at 03:41:40PM -0700, Gary Kline wrote:
 
   Is there an easier way by sed or ed to remove strings 
   (caight by grep) of the sort:
 
   part5.chapter2.text-
 
   where 5 and 2 can be any integer below 10?
 
   (I know how to delete the *entire* line using ed, but not just
   the first part?

gilmour% echo testpart5.chapter2.text-test | sed 
's/part[0-9].chapter[0-9]\.text-//g' 
testtest

Modify as necessary.

-- 
Benjamin A'Lee [EMAIL PROTECTED]
http://subvert.org.uk/~bma/
The right to search for truth implies also a duty; one must not conceal
any part of what one has recognized to be true. - Albert Einstein


pgpFBKGG7xX7m.pgp
Description: PGP signature


Re: help in deletion part of a line

2007-10-23 Thread Shantanoo Mahajan

On 23-Oct-07, at 4:11 AM, Gary Kline wrote:



Is there an easier way by sed or ed to remove strings
(caight by grep) of the sort:

part5.chapter2.text-

where 5 and 2 can be any integer below 10?

(I know how to delete the *entire* line using ed, but not just
the first part?


$ echo 'part5.chapter2.text-' | tr -d '[0-9]'
part.chapter.text-

$ echo 'part5.chapter2.text-' | sed 's/[0-9]//g'
part.chapter.text-


regards,
shantanoo

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


Re: help in deletion part of a line

2007-10-23 Thread Gary Kline
On Tue, Oct 23, 2007 at 03:37:13AM +0100, Benjamin M. A'Lee wrote:
 On Mon, Oct 22, 2007 at 03:41:40PM -0700, Gary Kline wrote:
  
  Is there an easier way by sed or ed to remove strings 
  (caight by grep) of the sort:
  
  part5.chapter2.text-
  
  where 5 and 2 can be any integer below 10?
  
  (I know how to delete the *entire* line using ed, but not just
  the first part?
 
 gilmour% echo testpart5.chapter2.text-test | sed 
 's/part[0-9].chapter[0-9]\.text-//g' 
 testtest
 
 Modify as necessary.
 

Thanks.   I was able to get rid of things likie -567-[text] from
^, but the part[1-5]. --- OH::: I didn't escape the .

Duh::: hit myself in the forehead! ... slinking away... .

gary
 -- 
 Benjamin A'Lee [EMAIL PROTECTED]
 http://subvert.org.uk/~bma/
 The right to search for truth implies also a duty; one must not conceal
 any part of what one has recognized to be true. - Albert Einstein



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: help in deletion part of a line

2007-10-23 Thread Gary Kline
On Tue, Oct 23, 2007 at 08:13:49AM +0530, Shantanoo Mahajan wrote:
 On 23-Oct-07, at 4:11 AM, Gary Kline wrote:
 
 
  Is there an easier way by sed or ed to remove strings
  (caight by grep) of the sort:
 
  part5.chapter2.text-
 
  where 5 and 2 can be any integer below 10?
 
  (I know how to delete the *entire* line using ed, but not just
  the first part?
 
 $ echo 'part5.chapter2.text-' | tr -d '[0-9]'
 part.chapter.text-
 
 $ echo 'part5.chapter2.text-' | sed 's/[0-9]//g'
 part.chapter.text-
 


This would help unify my regex since I have part7.chapter4.text
as well as misc other shtuff.  (I like tr ... it's easy and has
many uses... .)

thanks.

gary

 
 regards,
 shantanoo
 

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: help: the Input problem

2007-10-16 Thread ronggui
Thanks.

Finally, I set all the env variables in ¬/.tcshrc, It works.

2007/10/8, Jerry McAllister [EMAIL PROTECTED]:

 On Mon, Oct 08, 2007 at 10:23:01AM +0800, ronggui wrote:

   I use scim as my input.
 
  When I use bash as my login shell, I add these lines to ~/.profile
 
  export LANG=zh_CN.eucCN
  export LC_ALL=zh_CN.eucCN
  export G_BROKEN_FILENAMES=1
  export G_FILENAME_ENCODING=GBK
  export XMODIFIERS='@im=SCIM'
  scim -d
 
  All is fine. But I would like to use tcsh as my login shell, and try
 to  add
  the followings to ~/.login_conf
 
  me:\
  :lang=zh_CN.eucCN:\
  :charset=gbk:\
  :setenv=LC_ALL=zh_CN.eucCN:\
  :setenv=LC_COLLATE=zh_CN.eucCN:\
  :setenv=LC_CTYPE=zh_CN.eucCN:\
  :setenv=LC_MESSAGES=zh_CN.eucCN:\
  :setenv=LC_MONETARY=zh_CN.eucCN:\
  :setenv=LC_NUMERIC=zh_CN.eucCN:\
  :setenv=LC_TIME=zh_CN.eucCN:\
  :setenv=G_BROKEN_FILENAMES=1:\
  :setenv=G_FILENAME_ENCODING=GBK:\
  :setenv=XMODIFIERS=@im=SCIM:
 
  and add scim -d to the ~/.xsession. I can't toggle on the scim.
 
  PS: I login in with kdm.
 
  What should I do to use tcsh as  my login shell?

 Change the last field in your /etc/passwd entry  to '/bin/tcsh'
 and make sure /bin/tcsh is listed in /etc/shells

 You can then put whatever you want to set for your account
 in your   /home_directory_path/.cshrc   file

 jerry

 
  Thanks
 
  --
  Ronggui Huang
 
  Department of Sociology, Fudan University, Shanghai, China
 
  Department of Public and Social Administration, CityU, HK
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 [EMAIL PROTECTED]




-- 
Ronggui Huang

Department of Sociology, Fudan University, Shanghai, China

Department of Public and Social Administration, CityU, HK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help: the Input problem

2007-10-16 Thread Jerry McAllister
On Tue, Oct 16, 2007 at 06:19:31PM +0800, ronggui wrote:

 Thanks.
 
 Finally, I set all the env variables in ¬/.tcshrc, It works.

Far out!!

jerry


 
 2007/10/8, Jerry McAllister [EMAIL PROTECTED]:
 
  On Mon, Oct 08, 2007 at 10:23:01AM +0800, ronggui wrote:
 
I use scim as my input.
  
   When I use bash as my login shell, I add these lines to ~/.profile
  
   export LANG=zh_CN.eucCN
   export LC_ALL=zh_CN.eucCN
   export G_BROKEN_FILENAMES=1
   export G_FILENAME_ENCODING=GBK
   export XMODIFIERS='@im=SCIM'
   scim -d
  
   All is fine. But I would like to use tcsh as my login shell, and try
  to  add
   the followings to ~/.login_conf
  
   me:\
   :lang=zh_CN.eucCN:\
   :charset=gbk:\
   :setenv=LC_ALL=zh_CN.eucCN:\
   :setenv=LC_COLLATE=zh_CN.eucCN:\
   :setenv=LC_CTYPE=zh_CN.eucCN:\
   :setenv=LC_MESSAGES=zh_CN.eucCN:\
   :setenv=LC_MONETARY=zh_CN.eucCN:\
   :setenv=LC_NUMERIC=zh_CN.eucCN:\
   :setenv=LC_TIME=zh_CN.eucCN:\
   :setenv=G_BROKEN_FILENAMES=1:\
   :setenv=G_FILENAME_ENCODING=GBK:\
   :setenv=XMODIFIERS=@im=SCIM:
  
   and add scim -d to the ~/.xsession. I can't toggle on the scim.
  
   PS: I login in with kdm.
  
   What should I do to use tcsh as  my login shell?
 
  Change the last field in your /etc/passwd entry  to '/bin/tcsh'
  and make sure /bin/tcsh is listed in /etc/shells
 
  You can then put whatever you want to set for your account
  in your   /home_directory_path/.cshrc   file
 
  jerry
 
  
   Thanks
  
   --
   Ronggui Huang
  
   Department of Sociology, Fudan University, Shanghai, China
  
   Department of Public and Social Administration, CityU, HK
   ___
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to 
  [EMAIL PROTECTED]
 
 
 
 
 -- 
 Ronggui Huang
 
 Department of Sociology, Fudan University, Shanghai, China
 
 Department of Public and Social Administration, CityU, HK
 ___
 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: help with text-append over SSH ? - dd: unknown operand

2007-10-15 Thread Giorgos Keramidas
On 2007-10-12 16:43, Juri Mianovich [EMAIL PROTECTED] wrote:
--- Giorgos Keramidas [EMAIL PROTECTED] wrote:
On 2007-10-11 16:49, Juri Mianovich
[EMAIL PROTECTED] wrote:

 I have an account on a system where I cannot log in over SSH, but I
 _can_ run a limited set of commands remotely, over SSH.  (I am in a
 jail of some sorts).

 I want to append the contents of a local text file to the contents
 of a remote text file, over SSH.

 Normally, I would do this locally with:

 cat file1  file2

 But again, file2 is remote, and I can't log in there... I have
 access to the 'echo' command and the 'dd' command (among others) on
 the remote host ... so for instance, I can do things like this:

 ssh [EMAIL PROTECTED] rm -rf filename

 So, with all that in mind, how do I append the contents of a local
 file to a remote file, over SSH, using either 'echo' or 'dd' ?
 
 Try running:
 
 cat file1 | ssh [EMAIL PROTECTED] dd  file2
 
 Thank you - I do indeed need to use 'dd' because I don't have access
 to 'cat' in the chroot.
 
 However, when I use your example, I get this error:
 
 dd: unknown operand 
 
 So I have something off a bit ... help ?

Then you are not running a 'standard shell', but some sort of local
hack and/or wrapper:

kobe- ssh server echo 'hello world'  foo
kobe- ssh server od -c foo
000   h   e   l   l   o   w   o   r   l   d  \n
014
kobe- echo hello new world | ssh server dd  foo
0+1 records in
0+1 records out
kobe- ssh server od -c foo
000   h   e   l   l   o   w   o   r   l   d  \n   h   e   l   l
020   o   n   e   w   w   o   r   l   d  \n
034
kobe-

I'm sorry, but I don't think you can get effective help from the
FreeBSD lists.  You will have to ask for specific guidelines and help
from your hosting provider.  Anything else will be guesswork and may
break without any sort of notice in the future, when your host decides
to install a new security fix to their custom shell.

- Giorgos

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


Re: help with text-append over SSH ?

2007-10-14 Thread J65nko
On 10/14/07, Wojciech Puchar [EMAIL PROTECTED] wrote:
  'dd' command (among others) on the remote host ... so
  for instance, I can do things like this:
 
  ssh [EMAIL PROTECTED] rm -rf filename
 
  So, with all that in mind, how do I append the
  contents of a local file to a remote file, over SSH,
  using either 'echo' or 'dd' ?
 

 cat file |ssh [EMAIL PROTECTED] cat file

 replace cat with dd if you have to

You can drop the first cat

ssh [EMAIL PROTECTED] cat file file

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


Re: help with text-append over SSH ? - dd: unknown operand

2007-10-13 Thread Svein Halvor Halvorsen
 I want to append the contents of a local text file
 to the contents of
 a remote text file, over SSH.

:

Andrew Pantyukhin wrote:
 cat file1 | ssh [EMAIL PROTECTED] dd -of file2

That will replace the contents of file2, not append it. Also it
should be dd of=file1. However, you can use seek=n to append,
like this:

cat file1 | ssh remote dd of=file2 seek=n

... where n is the length of file2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help with text-append over SSH ? - dd: unknown operand

2007-10-13 Thread Mel
On Saturday 13 October 2007 12:08:16 Svein Halvor Halvorsen wrote:
  I want to append the contents of a local text file
 
  to the contents of
 
  a remote text file, over SSH.

 Andrew Pantyukhin wrote:
  cat file1 | ssh [EMAIL PROTECTED] dd -of file2

 That will replace the contents of file2, not append it. Also it
 should be dd of=file1. However, you can use seek=n to append,
 like this:

 cat file1 | ssh remote dd of=file2 seek=n

 ... where n is the length of file2

or better:
cat file1 | ssh remote dd of=file2 conv=notrunc

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


Re: help with text-append over SSH ?

2007-10-13 Thread Wojciech Puchar

'dd' command (among others) on the remote host ... so
for instance, I can do things like this:

ssh [EMAIL PROTECTED] rm -rf filename

So, with all that in mind, how do I append the
contents of a local file to a remote file, over SSH,
using either 'echo' or 'dd' ?

Thanks.




cat file |ssh [EMAIL PROTECTED] cat file

replace cat with dd if you have to




 

Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, 
and more!
http://tv.yahoo.com/collections/3658

___
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: help with text-append over SSH ?

2007-10-12 Thread Giorgos Keramidas
On 2007-10-11 16:49, Juri Mianovich [EMAIL PROTECTED] wrote:

 I have an account on a system where I cannot log in over SSH, but I
 _can_ run a limited set of commands remotely, over SSH.  (I am in a
 jail of some sorts).

 I want to append the contents of a local text file to the contents of
 a remote text file, over SSH.

 Normally, I would do this locally with:

 cat file1  file2

 But again, file2 is remote, and I can't log in there... I have access
 to the 'echo' command and the 'dd' command (among others) on the
 remote host ... so for instance, I can do things like this:

 ssh [EMAIL PROTECTED] rm -rf filename

 So, with all that in mind, how do I append the contents of a local
 file to a remote file, over SSH, using either 'echo' or 'dd' ?

Try running:

cat file1 | ssh [EMAIL PROTECTED] dd  file2

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


Re: help with text-append over SSH ?

2007-10-12 Thread Tijl Coosemans
On Friday 12 October 2007 01:49:04 Juri Mianovich wrote:
 I have an account on a system where I cannot log in
 over SSH, but I _can_ run a limited set of commands
 remotely, over SSH.  (I am in a jail of some sorts).
 
 I want to append the contents of a local text file to
 the contents of a remote text file, over SSH.
 
 Normally, I would do this locally with:
 
 cat file1  file2
 
 But again, file2 is remote, and I can't log in
 there... I have access to the 'echo' command and the
 'dd' command (among others) on the remote host ... so
 for instance, I can do things like this:
 
 ssh [EMAIL PROTECTED] rm -rf filename
 
 So, with all that in mind, how do I append the
 contents of a local file to a remote file, over SSH,
 using either 'echo' or 'dd' ?

With echo or dd I don't know. With cat you can do it this way:

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


Re: help with text-append over SSH ?

2007-10-12 Thread Peter Boosten
On Fri, October 12, 2007 01:49, Juri Mianovich wrote:


 I have an account on a system where I cannot log in
 over SSH, but I _can_ run a limited set of commands remotely, over SSH.  (I
 am in a jail of some sorts).

 I want to append the contents of a local text file to
 the contents of a remote text file, over SSH.

 Normally, I would do this locally with:


 cat file1  file2

 But again, file2 is remote, and I can't log in
 there... I have access to the 'echo' command and the 'dd' command (among
 others) on the remote host ... so for instance, I can do things like this:


Just did some testing and this should work:

cat localtext | ssh remote cat  remotetext

Peter
-- 
http://www.boosten.org

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


<    1   2   3   4   5   6   7   8   9   10   >