Re: Can I Reinstall FreeBSD Over SSH?

2008-05-25 Thread Lothar Braun

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Kyrre Nygård wrote:
| My server is getting kinda messy, but my ISP charges too much for a
reinstall. Can I do this myself over SSH? Or perhaps there are ways to
make ones system as clean as a fresh install? Thanks.

If you have a spare partition on your system, then you can try the
depinguinator:

http://www.daemonology.net/blog/2008-01-29-depenguinator-2.0.html

The depinguinator helps you to create a FreeBSD install image, that has
SSH enabled by default. You can boot into that system and use it as an
install medium for your FreeBSD installation.

Regards,
~  Lothar
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg5NtEACgkQOlpYSeF9JmZvXgCgh1bROYIDzY6b6vn760nLQUNc
cUEAnArHwflIa7//tfX+ce6IZbFYSiWn
=NZd3
-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: Delete a folder although its not empty

2008-04-08 Thread Lothar Braun

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Ruel Luchavez wrote:
| Do you also know the command for viewing the used space of a certain
| directory?
| Is their other command aside from df ?

have a look at du(1). This is the utility you are looking for.

Regards,
~  Lothar
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf7QfkACgkQOlpYSeF9JmY24gCfYwnqlMAgSvEWlHnL/hpB0WSP
wlIAoMwDm5N3AtYF8L+BltWNbP7u+eae
=2ji6
-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: Delete a folder although its not empty

2008-04-08 Thread Lothar Braun

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ruel Luchavez wrote:
| Hello...
|
| I'm tired of deleting a directory or folder in a server using rm and
| rmdir but before deleting a directory using rmdir the folder must be
| empty..what should i do or what command should be use in Free BSD to
delete
| a folder in a directory even if its not empty without affecting the
| folder in the same directory?

If you want to delete a non-empty folder, you have to use the recursive
option (see rm(1))

rm -r folder-name

should do the job.

Regards,
~  Lothar
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf7PjsACgkQOlpYSeF9JmYkOwCg0DagRl9s0L656fBnlNiDt+Np
/GkAn1UAIgLLZr+wdu5dW7qxdjJ2nOUv
=m15J
-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]


dhcp + vpnc results in broken routes (routing loop)

2007-11-06 Thread Lothar Braun
Dear list members,

i'm running FreeBSD 7.0 BETA-2 on a laptop within a network that assigns
addresses from 10.32.136.0/24 via dhcp to it's members. After obtaining
the 10.32.136.0/24 address, we are supposed to connect to a vpn-gateway
using e.g. vpnc. After connecting to the gateway the laptop gets a valid
public IP address, which is used to connect to the internet.

This works pretty well, until dhclient tries to get a new private
address from the dhcp-server. After that i get a message similar to

Nov  6 11:43:26 fitu vpnc[5560]: routing loop to yyy.yyy.yyy.yyy (where
yyy.yyy.yyy.yyy is the ip address of the vpn-gateway)

Here's what happens to routing table. After invoking dhclient for the
first time, i get this table (ipv4 part only):

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default10.32.136.254  UGS 03   iwi0
10.32.136.0/24 link#1 UC  00   iwi0
10.32.136.254  00:12:43:a2:f2:c0  UHLW20   iwi0   1188
127.0.0.1  127.0.0.1  UH  00lo0

Looking at the arp tables i get:

[EMAIL PROTECTED] /usr/home/lothar]# arp -a
? (10.32.136.254) at 00:12:43:a2:f2:c0 on iwi0 [ethernet]

When i start vpnc, the routing table changes to:

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default134.2.166.51   UGS 00   tun0
10.32.136.0/24 link#1 UC  00   iwi0
10.32.136.254  00:12:43:a2:f2:c0  UHLW20   iwi0   1174
127.0.0.1  127.0.0.1  UH  00lo0
xxx.xxx.xxx.xxxxxx.xxx.xxx.xxxUH  10   tun0
yyy.yyy.yyy.yyy10.32.136.254  UGHS00   iwi0

where xxx.xxx.xxx.xxx is my new public ip address and yyy.yyy.yyy.yyy is
the vpn gatways address.

Everything works fine (aka. i can normally connect to the internet),
until dhclient tries to get a new lease:

Nov  6 11:24:36 fitu dhclient: New IP Address (iwi0): 10.32.136.128
Nov  6 11:24:36 fitu dhclient: New Subnet Mask (iwi0): 255.255.255.0
Nov  6 11:24:36 fitu dhclient: New Broadcast Address (iwi0): 10.32.136.255
Nov  6 11:24:36 fitu dhclient: New Routers (iwi0): 10.32.136.254
Nov  6 11:24:48 fitu vpnc[3108]: routing loop to yyy.yyy.yyy.yyy
Nov  6 11:24:48 fitu last message repeated 212 times

where yyy.yyy.yyy.yyy is still the vpn gateway.
(note that the problem occurs even if the new ip address is exactly the
same as the old address).
The routing table changed to:

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
defaultxxx.xxx.xxx.xxxUGS 0  570   tun0
10.32.136.0/24 link#1 UC  00   iwi0
10.32.136.254  link#1 UHLW10   iwi0
127.0.0.1  127.0.0.1  UH  00lo0
xxx.xxx.xxx.xxxxxx.xxx.xxx.xxxUH  10   tun0

and arp -a does provide:

[EMAIL PROTECTED] /usr/home/lothar]# arp -a
? (10.32.136.254) at (incomplete) on iwi0 [ethernet]

One can see that the vpn-gateways ip address and the local routers mac
address disappeared.

The same dhcp/vpnc configuration does work without problems on a linux
box on the same network.

Can someone tell me where i have to look to find the error? I'm
wondering if this a problem with my local setup, a problem within the
network, a problem with vpnc on FreeBSD, or a problem with FreeBSD
itself? Can i provide any additional information?

Best regards,
  Lothar

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


Re: Emacs vs XEmacs: which to choose for plain console using?

2007-01-04 Thread Lothar Braun
Hi Elisej,

On Wednesday 03 January 2007 20:41, [EMAIL PROTECTED] wrote:
 What are advantages and disadvantages of xemacs over emacs?
 Which to choose for plain console using?

Maybe

http://www.emacswiki.org/cgi-bin/wiki/EmacsAndXEmacs

can help you to understand the differences. There's also a small discussion 
about when to use Emacs and when to use XEmacs.
But in your case you only have the possibility to use emacs. Only emacs is 
able to work on the plain console.

Regards,
  Lothar


pgpwZjIPhky85.pgp
Description: PGP signature


Re: Emacs vs XEmacs: which to choose for plain console using?

2007-01-04 Thread Lothar Braun
On Thursday 04 January 2007 11:05, Lothar Braun wrote:
 But in your case you only have the possibility to use emacs. Only emacs is
 able to work on the plain console.

Uh. I have to correct myself:

emacs -nw

will start emacs on the console. So you can use both editors.

Regards,
  Lothar


pgpHwPdiZoTuN.pgp
Description: PGP signature


Re: Multiple port versions

2007-01-04 Thread Lothar Braun
Hi,

On Wednesday 03 January 2007 16:33, Vizion wrote:
 Just been doing a check on installed applications.

 pkg_info shows multiple installed versions of autoconf, automake, db 
 gnupg. viz:

 autoconf-2.13.000227_5 Automatically configure source code on many Un*x
 platforms
 autoconf-2.53_3 Automatically configure source code on many Un*x
 platforms 
 autoconf-2.59_2 Automatically configure source code on many 
 Un*x platforms
 automake-1.4.6_2GNU Standards-compliant Makefile 
 generator (1.4)
 automake-1.5_2,1GNU Standards-compliant Makefile 
 generator (1.5)
 automake-1.9.6  GNU Standards-compliant Makefile 
 generator (1.9) 

It is ok (and even neccessary) that you have different autoconf/automake 
versions installed. This is because different projects use different versions 
of this package. And these versions are not compatible. A port that uses 
automake-1.5 will not compile with automake-1.9.
You therefore need all these versions of autoconf and automake.

 db4-4.0.14_1,1  The Berkeley DB package, revision 4 
 db42-4.2.52_5   The Berkeley DB package, revision 4.2

This might be a similar problem. If you look at the ports, then you will see 
that there are quite a few versions of the db package available. Maybe there 
are ports that depend on 4.0 and won't work with 4.2. I'm not sure if it is a 
good idea to remove the older version.

 gnupg-1.4.6_3   The GNU Privacy Guard
 gnupg-2.0.1 The GNU Privacy Guard

You can savely remove gnupg-1.4.6_3. Version 1.4.6_3 was the gnupg port and 
2.0.1 was the gnupg-devel port. Version 1.4.6_3 is now obsolete and you can 
savely remove it.

 I used partupgrade -aF recently when, on reconsideration, it would have
 been better to have done portupgrade -F on specific ports!

 What is the safest way to remove the earlier versions?

You can remove them the normal way with pkg_delete package. E.g. pkg_delete 
gnupg-1.4.6_3

Best regards,
  Lothar


pgp3qIFkJbuX8.pgp
Description: PGP signature


Re: bind problem

2006-10-10 Thread Lothar Braun
Hi Robin,

On Tuesday 10 October 2006 16:22, Robin Tiwari wrote:
 i've configured dns server in freeBSD 6.1 but when i query the server it
 wont resolve my domain name. i've added in resolv.conf also and my bind
 daemon is also running without any errors. i couldnt figure out the
 problem. if any suggestion please help me

Can you send us your configuration files (or at least the important parts of 
them)?

-- Lothar


pgph5hHaogxsc.pgp
Description: PGP signature


aclocal19 doesn't find macros

2006-10-10 Thread Lothar Braun
Hi list,

i'm trying to work on a configure.ac which contains the line 

AM_PATH_XML2(2.4.0,,AC_MSG_ERROR([*** LibXML version $XML_VERSION not 
found!]))

When i process it with aclocal15 everything works fine. But if i take 
aclocal19 for that job, i'll get the error message:

aclocal:configure.ac:8: warning: macro `AM_PATH_XML2' not found in library

This seems to be because of 

[EMAIL PROTECTED] ~/]$ aclocal19 --print-ac-dir
/usr/local/share/aclocal19
[EMAIL PROTECTED] ~/]$ aclocal15 --print-ac-dir
/usr/local/share/aclocal

If i run

aclocal19 --acdir=/usr/local/share/aclocal i get the message

aclocal:configure.ac:3: warning: macro `AM_INIT_AUTOMAKE' not found in library

What can i do to make that work (using aclocal15 isn't an option because 
automake19 won't work together with it)?

Cheers,
Lothar


pgpFeGLAl97fG.pgp
Description: PGP signature


Re: problems ssh'ing debug1: An invalid name was supplied (OSX client)

2006-10-10 Thread Lothar Braun
On Tuesday 10 October 2006 16:29, David Robillard wrote:
  any clues why ssh is hanging before a prompt is provided from the
  server side. this prompt stalling behavior is only happening when I
  am coming from my OSX ssh client. Any clues on this? I have never see
  this betwe.

 I had this problem when DNS was broken for the FreeBSD server and the
 MacOS X client. Make sure the DNS you're using can resolve both
 forward and reverse for the client and the server. Then your ssh
 session will be fast and free of this error.

If you're not able (or don't want to =)) fix the DNS, you can reconfigure the 
sshd on the server.
Add

UseDNS no

to it's /etc/ssh/sshd_config and restart the ssh daemon (this will make sshd 
stop to look up the hostnames of the connecting clients)

Best regards,
Lothar


pgpsyuWBrbhd8.pgp
Description: PGP signature


Re: How to change all /bin/bash at /etc/passwd to /sbin/nologin?

2006-10-09 Thread Lothar Braun
Hi James,

On Monday 09 October 2006 09:24, James Corteciano wrote:
 How to change all word lines of /bin/bash at /etc/passwd file to
 /sbin/nologin in just  a single line command?

I think you can do this with:

sed 's!/bin/bash$!/sbin/nologin!' /etc/passwd  /etc/passwd

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


Re: How to change all /bin/bash at /etc/passwd to /sbin/nologin?

2006-10-09 Thread Lothar Braun
On Monday 09 October 2006 10:03, Matthias Apitz wrote:
  sed 's!/bin/bash$!/sbin/nologin!' /etc/passwd  /etc/passwd

 DONT DO THAT this way. The result would be that your actual
 shell truncates the file '/etc/passwd' to zero length and
 then launches the 'sed'.

Damn. I just built the regexp but didn't check what the command does before i 
sent it to the list. Sorry for that. I hope nobody killed his pw-file because 
of my advice :/

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


Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread Lothar Braun

user wrote:

Ok, so I have some big directories with lots of files.  If I do mv or cp,
it always refuses, telling me:

cp: argument list too long

so, no problem ... I get creative with things like this:

for f in 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W
X Y Z ; do cp $f* /some/dir ; done



You could use find for that task:

find /directory/with/lots/of/files/ -exec cp {} /destination/directory/ \;


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