Re: Urgent!. Problem with / etc / rc.conf

2011-11-05 Thread Zantgo


El 06-11-2011, a las 1:29, Robert Simmons  escribió:

> On Sun, Nov 6, 2011 at 12:10 AM, Zantgo  wrote:
>> Without wanting to erase all contents of / etc / rc.conf, by running "echo" 
>> slim_enable = "YES" "> / etc / rc.conf". Please help!.
> 
> Well, the absolute basics would be:
> hostname=""
> ifconfig_"="inet  netmask "
> defaultrouter=""
> 
> You may also have had:
> sshd_enable="YES"
> 
> You can also look at dmesg -a and get a grasp over what other services
> you had started.
> 
> Two other things, use >> rather than > to append to the file (better
> yet, learn vi, it's much safer), and always backup any changes from
> default you make to config files.  I keep them all on pastebin.com for
> convenience, but you can keep them anywhere, even scribbled on a
> postit note stuck to the front of the server in question (what I used
> to do).
> 
> Rob
I gave up, and now reinstall everything again :(
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Urgent!. Problem with / etc / rc.conf

2011-11-05 Thread Robert Simmons
On Sun, Nov 6, 2011 at 12:10 AM, Zantgo  wrote:
> Without wanting to erase all contents of / etc / rc.conf, by running "echo" 
> slim_enable = "YES" "> / etc / rc.conf". Please help!.

Well, the absolute basics would be:
hostname=""
ifconfig_"="inet  netmask "
defaultrouter=""

You may also have had:
sshd_enable="YES"

You can also look at dmesg -a and get a grasp over what other services
you had started.

Two other things, use >> rather than > to append to the file (better
yet, learn vi, it's much safer), and always backup any changes from
default you make to config files.  I keep them all on pastebin.com for
convenience, but you can keep them anywhere, even scribbled on a
postit note stuck to the front of the server in question (what I used
to do).

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


Re: Urgent!. Problem with / etc / rc.conf

2011-11-05 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Sat Nov  5 23:10:17 2011
> From: Zantgo 
> Date: Sun, 6 Nov 2011 01:10:28 -0300
> To: "freebsd-questions@FreeBSD.org" 
> Subject: Urgent!. Problem with / etc / rc.conf
>
> Without wanting to erase all contents of / etc / rc.conf, by running "echo" 
> slim_enable = "YES" "> / etc / rc.conf". Please help!.

If you don't want to erase all contents of / etc / rc.conf, DO NOT RUN "echo" 
slim_enable = "YES" "> / etc / rc.conf".  END OF HELP!.


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


Urgent!. Problem with / etc / rc.conf

2011-11-05 Thread Zantgo
Without wanting to erase all contents of / etc / rc.conf, by running "echo" 
slim_enable = "YES" "> / etc / rc.conf". Please help!.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ntpdate on boot problem

2011-11-05 Thread Carl Johnson
Matthew Seaman  writes:

> On 05/11/2011 22:19, Robert Simmons wrote:
>> On Sat, Nov 5, 2011 at 6:03 PM, Alexander Best  wrote:
>>> same here. simply add something like the following to your crontab:
>>>
>>> 0   10  *   *   */2 /etc/rc.d/ntpdate onestart
>> 
>> I have something similar in my crontab which is not exactly what I
>> need.  I want to make sure that the clock is set at every boot because
>> I'm using this as a kerberos server.  If the clock is not set properly
>> at boot, kerberos will not work properly until the nightly cron jobs
>> are run and the clock is set then.  I need everything working at boot.
>>  I can't have a window of problems between boot and midnight or
>> whenever cron runs ntpdate.
>
> crontabs have this handy '@reboot' syntax...  It's all explained in
> crontab(5).

Just be aware that 'Run once, at startup', means when 'cron' starts, not
just when the system boots, unless they have changed it recently.

-- 
Carl Johnsonca...@peak.org

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


Re: ntpdate on boot problem

2011-11-05 Thread Robert Simmons
On Sat, Nov 5, 2011 at 7:43 PM, Warren Block  wrote:
> netwait_enable="YES"
> netwait_ip="192.168.1.1" # IP address to ping to verify network is up
> netwait_if="em0" # interface to use
>
>
> Also there's netwait_timeout, which defaults to 60 in /etc/defaults/rc.conf.

I've finally got a combination of suggested configurations that get me
to where I want to be (using ntpd, ntpdate, and netwait).

However, I've found that I still need ntpdate_enable="YES" rather than
ntpd_sync_on_start="YES".  The reason for this is that I'm running at
securelevel 3, and ntpd takes too long to get up, running, and sync
the clock.  By the time it tries to adjust the clock, secure level has
already been raised preventing the adjustment.

Is there a way to make securelevel wait until ntpd has made its
adjustments?  When I use ntpdate at this point, it seems like the init
scripts are sequential, and it waits until ntpdate is done before
continuing and later raising securelevel.

It seems that even though ntpdate is deprecated that it is still
required if you want to run securelevel 3.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: OpenVPN - what configuration do I need/want

2011-11-05 Thread Ryan Coleman
So... basically you've just set up servers that utilize the host connection or 
doesn't route?

On Nov 5, 2011, at 5:35 AM, Bill Tillman wrote:

>  
> 
> 
> From: Ryan Coleman 
> To: FreeBSD Questions 
> Sent: Friday, November 4, 2011 10:22 AM
> Subject: OpenVPN - what configuration do I need/want
> 
> I have a PE 2450 with dual NICs and I want to turn it into a bridging VPN for 
> the guys in the office to utilize.
> 
> Our configuration:
> My office: 192.168.46.0/24
> Server IPs: 192.168.46.2 [8.2-RELEASE] + public IP
> Corporate office: 192.168.45.0/24
> My VPN: 192.168.47.0/24 [preferred]
> There's a NetVanta VPN between my office and the corporate office and I 
> presume that will still work to route 47.0/24 to 45.0/24 when all is said and 
> done.
> 
> I am going to be supporting Windows and Mac clients (well, all windows and 
> then my mac) and I'd like to test it from my 8.2 server at home before 
> pushing this over to my MacBook Pro (using Tunnelblick) and then to my 
> Windows users.
> 
> I've tried the FreeBSD handbook and the Section6.net walkthroughs to no avail.
> 
> Any help would be appreciated.
> 
> Thanks,
> Ryan 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
> 
> 
>  
> I can't say that I'm familiar with your setup which uses "bridging". But I 
> setup OpenVPN to work on a server inside my LAN which is behind my FreeBSD 
> firewall server. The setup wasn't that hard, you just have to forward the 
> right ports and get the certificates copied to the clients correctly. The 
> docs on the OpenVPN site were very helpful in this for me. 
> The trouble you may find is that this other VPN appliance you reference, 
> NetVanta, may or may not be compatible with OpenVPN. I tried this several 
> years ago with a remote company I was working for and found out quite 
> dissappointingly that the protocol used by OpenVPN would not work whatsoever 
> with Cisco equipment. That may have changed now but at the time all the 
> advice I got was forget about it. Cisco equipment would not work with OpenVPN 
> period. Luckily at the time I had a small Cisco appliance at my house and 
> that is the only way I could get that setup to work. These days I happily 
> connect to my LAN with encrypted tunnels from most places like hotels, etc... 
> There is a problem sometimes at places like Starbucks or McDonalds where they 
> have equipment which is blocking ports needed to run VPN. And in most cases 
> it's not that they are blocking specific ports, it's that they are blocking 
> everything except port 80 to only let their freebie users surf web
> content. 
> YMMVcheck the docs on the OpenVPN site. Many HOWTOs and examples will 
> help you get going.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

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


Re: ntpdate on boot problem

2011-11-05 Thread Warren Block

On Sat, 5 Nov 2011, d...@safeport.com wrote:


On Sat, 5 Nov 2011, Warren Block wrote:

On Sat, 5 Nov 2011, Robert Simmons wrote:


I've had this problem with machines using DHCP and the solution was to
use SYNCDHCP rather than DHCP in rc.conf.  However, this box is using
a static IP address.  But the problem seems to be similar.


Yes, it is.  FreeBSD 8-STABLE and 9 have /etc/rc.d/netwait just for this.


I do not see this in the handbook. Did I just miss it?. IMO the necessary 
synchronization should just be built in to booting.


AFAIK it's not in the Handbook yet.  The problem is that some network 
interfaces actually take a while to come up after ifconfig is done 
setting them up.  The amount of time taken could depend on the local 
network with autonegotiation and such.


Another approach is to set up the DHCP server--if there is one--to 
assign static addresses based on MAC address.

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


Re: recursive copy with spaces in descendants

2011-11-05 Thread Chris
On a hunch, I gave the following a shot:

tar -cvlf - '/usr/local/etc/transmission/home/Downloads'/ | split -a 2
-b 3900m - /mnt/usb/TX_DL.tar.

which created a split tar archive of the files on /mnt/usb. I'm still
thinking there's something with the source path/file names that the
msdosfs driver on BSD doesn't like, but at least this way is usable
for the intended scenario.

I guess I'll call this solved unless you all have some insight as to
why the original method wasn't working.

Thanks for all the help so far!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ntpdate on boot problem

2011-11-05 Thread Warren Block

On Sat, 5 Nov 2011, Robert Simmons wrote:


On Sat, Nov 5, 2011 at 6:55 PM, Warren Block  wrote:

On Sat, 5 Nov 2011, Robert Simmons wrote:

Is there a way to make sure that the interface is UP and working
before running ntpdate at boot on a box with a static IP address?

Yes, it is.  FreeBSD 8-STABLE and 9 have /etc/rc.d/netwait just for this.


Thanks, could you elaborate as to how I use netwait at boot to run ntpdate?


Untested:

netwait_enable="YES"
netwait_ip="192.168.1.1" # IP address to ping to verify network is up
netwait_if="em0" # interface to use


Also there's netwait_timeout, which defaults to 60 in 
/etc/defaults/rc.conf.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: zfs file names (inodes) without files (ENOENT)

2011-11-05 Thread Martin von Gagern
On 06.11.2011 00:27, David Brodbeck wrote:
> I'm curious if you've tried ls -B to see if there are any
> non-printable characters in the filename.

Hadn't tried yet, did try now, nothing strange there.
Nevertheless, thanks for the suggestion, David.

By the way, even "ls -l" of the whole directory will stat the file and
thus result in an error. There can hardly be any strange characters
involved there, as the name should be straight from readdir.

Martin



signature.asc
Description: OpenPGP digital signature


Re: OpenVPN - what configuration do I need/want

2011-11-05 Thread perryh
Bill Tillman  wrote:

> the protocol used by OpenVPN would not work whatsoever with
> Cisco equipment ...

That's what security/vpnc is for :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


mkisofs man page... HUH?

2011-11-05 Thread Ronald F. Guilmette

Looking at the man page for mkisofs I see the following:


   -r ... If any of the special mode bits are set,
  clear  them,  because  file  locks are not useful on a read-only
  file system, ...

Just curious:  What the bleep have file mode bits got to do with file locking?

I'm personally not aware of any connection between the two.

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


Re: ntpdate on boot problem

2011-11-05 Thread Robert Simmons
On Sat, Nov 5, 2011 at 6:33 PM, Matthew Seaman
 wrote:
> crontabs have this handy '@reboot' syntax...  It's all explained in
> crontab(5).

Thanks!

> However, you would be well advised to run ntpd(8) rather than bodging
> the clock with ntpdate at intervals.  ntpdate is deprecated by the ntp
> project, given that ntpd now has the capability to synch the clock the
> first time after restart no matter what the offset.  Just add these
> rc.conf settings:
>
> ntpd_enable="YES"
> ntpd_sync_on_start="YES"

Thanks again, this works without any problems.  I'm still curious how
to get the ntpdate adjustment to occur later in the boot process after
the network interface is UP, but now it's merely academic.

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


Re: ntpdate on boot problem

2011-11-05 Thread Robert Simmons
On Sat, Nov 5, 2011 at 6:55 PM, Warren Block  wrote:
> On Sat, 5 Nov 2011, Robert Simmons wrote:
>> Is there a way to make sure that the interface is UP and working
>> before running ntpdate at boot on a box with a static IP address?
> Yes, it is.  FreeBSD 8-STABLE and 9 have /etc/rc.d/netwait just for this.

Thanks, could you elaborate as to how I use netwait at boot to run ntpdate?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ntpdate on boot problem

2011-11-05 Thread Warren Block

On Sat, 5 Nov 2011, Robert Simmons wrote:


Is there a way to make sure that the interface is UP and working
before running ntpdate at boot on a box with a static IP address?

After setting ntpdate_enable="YES" in rc.conf, I get the following
error on boot:

Setting date via ntp.
Error : hostname nor servname provided, or not known
5 Nov 17:11:05
ntpdate[786]: can't find host 0.freebsd.pool.ntp.org

Error : hostname nor servname provided, or not known
5 Nov 17:11:05
ntpdate[786]: can't find host 1.freebsd.pool.ntp.org

Error : hostname nor servname provided, or not known
5 Nov 17:11:05
ntpdate[786]: can't find host 2.freebsd.pool.ntp.org

5 Nov 17:11:05
ntpdate[786]: no servers can be used, exiting

I've had this problem with machines using DHCP and the solution was to
use SYNCDHCP rather than DHCP in rc.conf.  However, this box is using
a static IP address.  But the problem seems to be similar.


Yes, it is.  FreeBSD 8-STABLE and 9 have /etc/rc.d/netwait just for 
this.

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


Re: recursive copy with spaces in descendants

2011-11-05 Thread Chris
On Sat, Nov 5, 2011 at 6:20 PM, Michael Sierchio  wrote:
> On Sat, Nov 5, 2011 at 3:15 PM, Chris  wrote:
>> I apologize for the lack of detail. The command I'm using is:
>> ( cd /usr/local/etc/transmission/home/Downloads/ ; tar cf - . ) | ( cd
>> /mnt/usb ; tar xf - )
>
> Show, don't tell. What does tar report when you run it?
>

The following messages display:

./: Can't set user=921/group=921 for .
./Reboot S1 - 01 [3FD6C4B2].mkv: Can't create 'Reboot S1 - 01 [3FD6C4B2].mkv'

The last message (can't create) repeats for all files in the
directory. Running 'ls -al /mnt/usb' yields:

drwxr-xr-x   1  rootwheel 32768Dec 31 1979  .
drwxr-xr-x   1  rootwheel 512Nov  5 03:04  ..

Where /mnt/usb was originally empty in the first place.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Checking for broken packages (as in linking)

2011-11-05 Thread Warren Block

On Sat, 5 Nov 2011, C. P. Ghost wrote:


On Sat, Nov 5, 2011 at 7:27 AM, James Colannino  wrote:

No, I don't mean checking for broken ports :-P  In fact, when I Google
around for the answer to my question, that's all I can find, which is why I
bring my question to the mailing list instead :)  Maybe "broken ports" or
"broken packages" isn't the right term (what should I be searching for
instead?)

What I want to know is, are there tools that will check the ports I've
installed and tell me if any of my packages are linked against libraries
that are no longer there?  I'm paranoid that at some point, while I'm
building and installing updates, I'm going to break something.


I'm using the following script (attached).


There's also pkg_libchk from sysutils/bsdadminscripts.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

zfs file names (inodes) without files (ENOENT)

2011-11-05 Thread Martin von Gagern
Hi!


A. SUMMARY

Long story short: I have a file name on my zfs without a file to it. ls
will include it in the dir content, but stat-ing that file will result
in an ENOENT error: "No such file or directory".


B. HISTORY

So how did I come to this situation? I've recently had to kill the
sending side of an rsync, with the receiving side on FreeBSD. For
reasons yet unknown, the next run of rsync started deleting stuff it
shouldn't. Details on this are in PR 162318 [1], but quoting the most
important things:

Logging into the receiving FreeBSD as root, I found that large parts of
the user's home directory content had disappeared, even outside the
subdirectory used as the rsync destination!
- All the .* config files in the home directory were gone
- The .ssh directory was still present, but its content was gone as well
- Both the home dir and the .ssh subdir contained a file "rsync.%stat",
  which should be the name of an extattr instead, used to implement the
  rsync --fake-super command line option.

[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=162318


C. SYMPTOMS

I first assumed a problem in the binary rsync build for FreeBSD, but
devs on the above bug report favored RAM failure or an upstream source
code bug. So I gave it another try, and payed closer attention to the
error messages. Among them was the following:

> rsync: stat "/home/name/backup/etc/ca-certificates" failed: No such file or 
> directory (2)

Strange thing is, this isn't specific to rsync at all, it can be
reproduced using simple command line tools like ls:

> # ls /home/name/backup/etc/ | grep ca-cert
> ca-certificates
> ca-certificates.conf
> ca-certificates.conf~
> # ls /home/name/backup/etc/ca-*
> ls: /home/name/backup/etc/ca-certificates: No such file or directory
> /home/name/backup/etc/ca-certificates.conf
> /home/name/backup/etc/ca-certificates.conf~

So as you see, the name is returned by readdir(3), where both ls for the
dir and the wildcard expansion find it. But anything that stat(2)s the
file will encounter an ENOENT error. "zpool status" says everything's
fine, so zfs isn't aware of any corruption.

I believe that no matter what errors user space programs might make, the
kernel zfs driver should never allow the above to happen. Either a file
is there, or it isn't, there should be no such mixture. So what do you
think, is this likely to be a bug in the zfs implementation?

I found one other person describing problems like this: in threads
titled "file lose inode in Memory-Based file system.", lisen1001
described pretty much the same thing, except on ramdisk on 8.2 instead
of my own hdd-based raidz on 9.0-RC1 [2,3].

[2] http://thread.gmane.org/gmane.os.freebsd.questions/280183
[3] http://thread.gmane.org/gmane.os.freebsd.devel.file-systems/13153


D. NEXT STEPS

As I'm new to FreeBSD, I'm not yet sure how bug reports are handled
around here. As I said, I've reported a bug report against rsync, and it
has been closed on the grounds that this appears to be an upstream
problem. Would it make sense to include the above information in the bug
report for reference? Would replying to the gnats address be enough to
accomplish that? Should the bug be reopened, as I assume all my problems
to be related, and as the zfs corruption at least is specific to
FreeBSD? If so, how does one reopen a report? Or who can do that?

Do you agree that this looks like a problem in the ZFS implementation?
Should I file a new problem report for that?

Can you suggest any way I could resolve the corruption on my local ZFS
pool, short of destroying and recreating the whole file system? "rm" for
the file doesn't work, as it, too, encounters the ENOENT. Is there any
tool to check or rebuild the inode data structures of zfs? "zpool scrub"
doesn't seem to fit the bill, as its manpage indicates a computation of
file content checksums.


Greetings,
 Martin von Gagern



signature.asc
Description: OpenPGP digital signature


Re: ntpdate on boot problem

2011-11-05 Thread Matthew Seaman
On 05/11/2011 22:19, Robert Simmons wrote:
> On Sat, Nov 5, 2011 at 6:03 PM, Alexander Best  wrote:
>> same here. simply add something like the following to your crontab:
>>
>> 0   10  *   *   */2 /etc/rc.d/ntpdate onestart
> 
> I have something similar in my crontab which is not exactly what I
> need.  I want to make sure that the clock is set at every boot because
> I'm using this as a kerberos server.  If the clock is not set properly
> at boot, kerberos will not work properly until the nightly cron jobs
> are run and the clock is set then.  I need everything working at boot.
>  I can't have a window of problems between boot and midnight or
> whenever cron runs ntpdate.

crontabs have this handy '@reboot' syntax...  It's all explained in
crontab(5).

However, you would be well advised to run ntpd(8) rather than bodging
the clock with ntpdate at intervals.  ntpdate is deprecated by the ntp
project, given that ntpd now has the capability to synch the clock the
first time after restart no matter what the offset.  Just add these
rc.conf settings:

ntpd_enable="YES"
ntpd_sync_on_start="YES"

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: ntpdate on boot problem

2011-11-05 Thread Michael Sierchio
The keywords in /etc/rc.d/ntpdate have

# PROVIDE: ntpdate
# REQUIRE: NETWORKING syslogd named
# KEYWORD: nojail

which means that networking must be up first.  The question in your
case is why name resolution is failing.

See what happens if you pick some public stratum 1 or stratum 2
servers for your ntp.conf.  Then try specifying IP addrs instead of
FQDNs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: recursive copy with spaces in descendants

2011-11-05 Thread Michael Sierchio
On Sat, Nov 5, 2011 at 3:15 PM, Chris  wrote:
> I apologize for the lack of detail. The command I'm using is:
> ( cd /usr/local/etc/transmission/home/Downloads/ ; tar cf - . ) | ( cd
> /mnt/usb ; tar xf - )

Show, don't tell. What does tar report when you run it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ntpdate on boot problem

2011-11-05 Thread Robert Simmons
On Sat, Nov 5, 2011 at 6:03 PM, Alexander Best  wrote:
> same here. simply add something like the following to your crontab:
>
> 0       10      *       *       */2     /etc/rc.d/ntpdate onestart

I have something similar in my crontab which is not exactly what I
need.  I want to make sure that the clock is set at every boot because
I'm using this as a kerberos server.  If the clock is not set properly
at boot, kerberos will not work properly until the nightly cron jobs
are run and the clock is set then.  I need everything working at boot.
 I can't have a window of problems between boot and midnight or
whenever cron runs ntpdate.

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


Re: recursive copy with spaces in descendants

2011-11-05 Thread Chris
I apologize for the lack of detail. The command I'm using is:
( cd /usr/local/etc/transmission/home/Downloads/ ; tar cf - . ) | ( cd
/mnt/usb ; tar xf - )

I've also tried:
cp -afv /usr/local/etc/transmission/home/Downloads /mnt/usb
rsync -aq /usr/local/etc/transmission/home/Downloads /mnt/usb
find . -print0 | xargs -0 -I "{}" cp "{}" /mnt/usb #when in source directory

Filesystem on USB drive is FAT32, 32k blocksize, 16GB capacity,
formatted on a Windows 7 box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ntpdate on boot problem

2011-11-05 Thread Robert Simmons
On Sat, Nov 5, 2011 at 5:57 PM, Michael Sierchio  wrote:
> Are you running a firewall?  Do you have a ppp connection?

I'm not running a firewall on the machine in question.  I am behind a
firewall, if that's what you mean.  I don't have a ppp connection.
The box is a server that is running on bare metal, no VM.  Fixed IP
address (198.162) behind a NAT firewall.

But, after booting, everything works correctly:

# /etc/rc.d/ntpdate onestart
Setting date via ntp.
 5 Nov 18:09:31 ntpdate[1324]: step time server 128.10.254.7 offset
-0.000537 sec

>
> This happens when there is a dependency that is not expressed in the
> /etc/rc.d scripts.

Can you elaborate?  My rc.conf looks like this (pretty simple):

hostname="example"
ifconfig_sk0="inet 192.168.1.5 netmask 0xff00"
defaultrouter="192.168.1.1"
sshd_enable="YES"

#Screensaver
saver="daemon"

#Encrypted swap
geli_swap_flags="-d -l 256 -s 4096"

#/tmp in memory
tmpmfs="YES"

#Kerberos
kerberos5_server_enable="YES"
kadmind5_server_enable="YES"

#Time
ntpdate_enable="YES"


Also, the box is 8.2-RELEASE with current updates via freebsd-update.

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


Re: recursive copy with spaces in descendants

2011-11-05 Thread Lowell Gilbert
Michael Sierchio  writes:

> Oh, and what kind of filesystem is on the USB device?

msdosfs.

Sorry; I trimmed that from what I quoted.

 - Lowell

> - M
>
> On Sat, Nov 5, 2011 at 2:48 PM, Lowell Gilbert
>  wrote:
>> Chris  writes:
>>
>>> The tar one-liner is similar what I used to use on Gentoo and Arch linux,
>>> so I thought it strange that it isn't working here. I'm still having
>>> problems though, since the command returns " Can't create '$FILENAME' " for
>>> all files found.
>>
>> It would have been a good idea to show us the command you used that
>> produced this.  Without that, all we can do is say "I don't know; it
>> works for me!"
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ntpdate on boot problem

2011-11-05 Thread Alexander Best
On Sat Nov  5 11, Robert Simmons wrote:
> Is there a way to make sure that the interface is UP and working
> before running ntpdate at boot on a box with a static IP address?
> 
> After setting ntpdate_enable="YES" in rc.conf, I get the following
> error on boot:
> 
> Setting date via ntp.
> Error : hostname nor servname provided, or not known
>  5 Nov 17:11:05
> ntpdate[786]: can't find host 0.freebsd.pool.ntp.org
> 
> Error : hostname nor servname provided, or not known
>  5 Nov 17:11:05
> ntpdate[786]: can't find host 1.freebsd.pool.ntp.org
> 
> Error : hostname nor servname provided, or not known
>  5 Nov 17:11:05
> ntpdate[786]: can't find host 2.freebsd.pool.ntp.org
> 
>  5 Nov 17:11:05
> ntpdate[786]: no servers can be used, exiting
> 
> I've had this problem with machines using DHCP and the solution was to
> use SYNCDHCP rather than DHCP in rc.conf.  However, this box is using
> a static IP address.  But the problem seems to be similar.

same here. simply add something like the following to your crontab:

0   10  *   *   */2 /etc/rc.d/ntpdate onestart

cheers.
alex

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


Re: recursive copy with spaces in descendants

2011-11-05 Thread Michael Sierchio
Oh, and what kind of filesystem is on the USB device?

- M

On Sat, Nov 5, 2011 at 2:48 PM, Lowell Gilbert
 wrote:
> Chris  writes:
>
>> The tar one-liner is similar what I used to use on Gentoo and Arch linux,
>> so I thought it strange that it isn't working here. I'm still having
>> problems though, since the command returns " Can't create '$FILENAME' " for
>> all files found.
>
> It would have been a good idea to show us the command you used that
> produced this.  Without that, all we can do is say "I don't know; it
> works for me!"
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ntpdate on boot problem

2011-11-05 Thread Michael Sierchio
Are you running a firewall?  Do you have a ppp connection?

This happens when there is a dependency that is not expressed in the
/etc/rc.d scripts.

- M

On Sat, Nov 5, 2011 at 2:52 PM, Robert Simmons  wrote:
> Is there a way to make sure that the interface is UP and working
> before running ntpdate at boot on a box with a static IP address?
>
> After setting ntpdate_enable="YES" in rc.conf, I get the following
> error on boot:
>
> Setting date via ntp.
> Error : hostname nor servname provided, or not known
>  5 Nov 17:11:05
> ntpdate[786]: can't find host 0.freebsd.pool.ntp.org
>
> Error : hostname nor servname provided, or not known
>  5 Nov 17:11:05
> ntpdate[786]: can't find host 1.freebsd.pool.ntp.org
>
> Error : hostname nor servname provided, or not known
>  5 Nov 17:11:05
> ntpdate[786]: can't find host 2.freebsd.pool.ntp.org
>
>  5 Nov 17:11:05
> ntpdate[786]: no servers can be used, exiting
>
> I've had this problem with machines using DHCP and the solution was to
> use SYNCDHCP rather than DHCP in rc.conf.  However, this box is using
> a static IP address.  But the problem seems to be similar.
>
> Rob
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


ntpdate on boot problem

2011-11-05 Thread Robert Simmons
Is there a way to make sure that the interface is UP and working
before running ntpdate at boot on a box with a static IP address?

After setting ntpdate_enable="YES" in rc.conf, I get the following
error on boot:

Setting date via ntp.
Error : hostname nor servname provided, or not known
 5 Nov 17:11:05
ntpdate[786]: can't find host 0.freebsd.pool.ntp.org

Error : hostname nor servname provided, or not known
 5 Nov 17:11:05
ntpdate[786]: can't find host 1.freebsd.pool.ntp.org

Error : hostname nor servname provided, or not known
 5 Nov 17:11:05
ntpdate[786]: can't find host 2.freebsd.pool.ntp.org

 5 Nov 17:11:05
ntpdate[786]: no servers can be used, exiting

I've had this problem with machines using DHCP and the solution was to
use SYNCDHCP rather than DHCP in rc.conf.  However, this box is using
a static IP address.  But the problem seems to be similar.

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


ntpdate on boot problem

2011-11-05 Thread Robert Simmons
Is there a way to make sure that the interface is UP and working
before running ntpdate at boot on a box with a static IP address?

After setting ntpdate_enable="YES" in rc.conf, I get the following
error on boot:

Setting date via ntp.
Error : hostname nor servname provided, or not known
 5 Nov 17:11:05
ntpdate[786]: can't find host 0.freebsd.pool.ntp.org

Error : hostname nor servname provided, or not known
 5 Nov 17:11:05
ntpdate[786]: can't find host 1.freebsd.pool.ntp.org

Error : hostname nor servname provided, or not known
 5 Nov 17:11:05
ntpdate[786]: can't find host 2.freebsd.pool.ntp.org

 5 Nov 17:11:05
ntpdate[786]: no servers can be used, exiting

I've had this problem with machines using DHCP and the solution was to
use SYNCDHCP rather than DHCP in rc.conf.  However, this box is using
a static IP address.  But the problem seems to be similar.

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


Re: recursive copy with spaces in descendants

2011-11-05 Thread Lowell Gilbert
Chris  writes:

> The tar one-liner is similar what I used to use on Gentoo and Arch linux,
> so I thought it strange that it isn't working here. I'm still having
> problems though, since the command returns " Can't create '$FILENAME' " for
> all files found.

It would have been a good idea to show us the command you used that
produced this.  Without that, all we can do is say "I don't know; it
works for me!"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: recursive copy with spaces in descendants

2011-11-05 Thread Chris
The tar one-liner is similar what I used to use on Gentoo and Arch
linux, so I thought it strange that it isn't working here. I'm still
having problems though, since the command returns " Can't create
'$FILENAME' " for all files found.

I quick tested by telling the tar command to copy to /tmp instead, and
it worked fine. Copying a few test files created with ee transfer to
/mnt/usb fine as well. I'm thinking there may be some characters (or
even name length) that are causing the problem. Are there restrictions
on filename characters/length on drives mounted with msdosfs? The
mount entry for the drive is:

/dev/da0s1 on /mnt/usb (msdosfs, local)  #with -o longnames
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Kurban Bayramınız Mübarek Olsun

2011-11-05 Thread İstanbul Bilişim
Size özel bülteni görmek için aşağıdaki linke tıklayınız: 
 Tıklayınız 

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


Re: recursive copy with spaces in descendants

2011-11-05 Thread Lowell Gilbert
Michael Sierchio  writes:

> I just use tar for this.
>
> ( cd /path/to/src ; tar cf - . ) | ( cd /path/to/obj ; tar xf - )

I was going to launch into an explanation of shell quoting, but come to
think of it, tar is how I do this too.

> On Sat, Nov 5, 2011 at 12:47 PM, Chris  wrote:
>> I'm having difficulty copying a directory tree from my FreeBSD server to
>> USB storage. The problem is that the tree contains file and folder names
>> which have spaces, similar to the following:
>>
>> ./foo bar/some name.tar.gz
>> ./foo bar/child dir/some other name.tar.gz

I think:
cp foo\ bar/some\ name.tar.gz some_other_path/.

will work for all shells.  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: recursive copy with spaces in descendants

2011-11-05 Thread Michael Sierchio
I just use tar for this.

( cd /path/to/src ; tar cf - . ) | ( cd /path/to/obj ; tar xf - )

- M

On Sat, Nov 5, 2011 at 12:47 PM, Chris  wrote:
> I'm having difficulty copying a directory tree from my FreeBSD server to
> USB storage. The problem is that the tree contains file and folder names
> which have spaces, similar to the following:
>
> ./foo bar/some name.tar.gz
> ./foo bar/child dir/some other name.tar.gz
>
> I've tried various combinations of cp with enclosing the top level
> directory in quotations, along with other commands like tar or xargs  to no
> avail. The problem seems to be with creating the destination directories
> and folders, where mkdir/cp terminates with an invalid argument response.
>
> Cleaning up the source filenames using something like detox isn't viable,
> as the files are being served by transmission-daemon, and as such the names
> must be preserved. Permissions are not an issue either, as the same
> responses occur whether I use a standard or root account.
>
> Any ideas would be greatly appreciated, since I'm pretty much out of them
> at this point.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


recursive copy with spaces in descendants

2011-11-05 Thread Chris
I'm having difficulty copying a directory tree from my FreeBSD server to
USB storage. The problem is that the tree contains file and folder names
which have spaces, similar to the following:

./foo bar/some name.tar.gz
./foo bar/child dir/some other name.tar.gz

I've tried various combinations of cp with enclosing the top level
directory in quotations, along with other commands like tar or xargs  to no
avail. The problem seems to be with creating the destination directories
and folders, where mkdir/cp terminates with an invalid argument response.

Cleaning up the source filenames using something like detox isn't viable,
as the files are being served by transmission-daemon, and as such the names
must be preserved. Permissions are not an issue either, as the same
responses occur whether I use a standard or root account.

Any ideas would be greatly appreciated, since I'm pretty much out of them
at this point.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread Zantgo
I can do this to update the ports and src:

# cd /usr
# cvs -qd anon...@anoncvs.freebsd.org:/cvs get -rFREEBSD_9_0 -P 
# cd /usr/src
# cvs -q up -rFREEBSD_9_0 -Pd
# cd /usr
# cvs -qd anon...@anoncvs.freebsd.org:/cvs get -rFREEBSD -P ports
# cd /usr/ports
# cvs -q up -rFREEBSD_9_0 -Pd
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Checking for broken packages (as in linking)

2011-11-05 Thread James Colannino

On 11/05/11 12:43, C. P. Ghost wrote:


I'm using the following script (attached).


Thanks for the script.  By any chance, are you a Gentoo user (or were 
you at one point)?  revdep-rebuild, a part of the gentoolkit, is the 
first thing I think of when I think about fixing broken packages :)


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


Re: Checking for broken packages (as in linking)

2011-11-05 Thread C. P. Ghost
On Sat, Nov 5, 2011 at 7:27 AM, James Colannino  wrote:
> No, I don't mean checking for broken ports :-P  In fact, when I Google
> around for the answer to my question, that's all I can find, which is why I
> bring my question to the mailing list instead :)  Maybe "broken ports" or
> "broken packages" isn't the right term (what should I be searching for
> instead?)
>
> What I want to know is, are there tools that will check the ports I've
> installed and tell me if any of my packages are linked against libraries
> that are no longer there?  I'm paranoid that at some point, while I'm
> building and installing updates, I'm going to break something.

I'm using the following script (attached).

> I've been using FreeBSD for a little while now, but I'm still learning... :)
>  Thanks in advance!
>
> James

HTH,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/


revdep-rebuild.py
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: -Stable periodic updates

2011-11-05 Thread Zantgo


El 05-11-2011, a las 11:58, "Michael Ross"  escribió:

> Am 05.11.2011, 15:36 Uhr, schrieb Zantgo :
> 
>> I will say my question clear.
>> If I have FreeBSD-8.2-stable, updated 2011/05/18, what I want to do is 
>> update the current, as for example 2011/11/01. I am willing to read me a 
>> manual that tells me how to do 
>> this.___
> 
> 
> I do it like this:
> 
> put this in "stable-supfile":
> 
>*default host=cvsup.de.FreeBSD.org
>*default base=/var/db
>*default prefix=/usr
>*default release=cvs tag=RELENG_8
>*default delete use-rel-suffix
> 
>*default compress
> 
>src-all
> 
> execute:
> 
>csup stable-supfile
>cd /usr/src
>make buildworld
>make buildkernel
>make installkernel
>mergemaster -p
>make installworld
>mergemaster -a
>reboot
> 
> 
> You now have updated to a "current" 8-STABLE.
> This is, if 8.3 would exist, you would now have 8.3-STABLE.
> If you just want security patches for 8.2 and not go to 8.3 if it comes out,
> you have to define tag=RELENG_8_2
> 
> 
> This is not the same as tag=HEAD.
> tag=HEAD gives you CURRENT, which is 9.0-RC1 i believe.
> Do not confuse these.
> 
This also updates ports right?
> 
> http://www.freebsd.org/doc/en/books/handbook/cvsup.html
> http://www.freebsd.org/doc/en/books/handbook/cvs-tags.html
> http://www.freebsd.org/doc/en/books/handbook/makeworld.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread Eduardo Morras

At 11:39 05/11/2011, you wrote:

Am 05.11.2011, 07:23 Uhr, schrieb Conrad J. Sabatier :


Again, go back and read the Handbook sections on using csup, updating
your src and ports trees, etc.  No one is interested in repeating
information that is already available in a complete and detailed form.


Available if you are proficient in English.
The spanish translation is lacking the parts he asks about, and then some.


He's already asking about it in freebsd-es list. But, if he can 
read/write in english to this and others mail lists, i doubt he has 
any problem reading the english handbook.


I think he don't want to read the handbook, he wants answers to 
Frequently Answered Questions. Zantgo, please, read the handbook, 
reread the relevants parts, you are asking the same things one time, 
and another, and another...


And please, don't think i want to PLONK! you



Regards,

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



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


Re: Problem in install

2011-11-05 Thread doug



On Sat, 5 Nov 2011, masayoshi wrote:


--- On Sun, 6/11/11, Zantgo  wrote:


From: Zantgo 
Subject: Problem in install
To: "freebsd-questions@FreeBSD.org" 
Received: Sunday, 6 November, 2011, 4:06 AM
While I am installing FreeBSD
8.2-STABLE, when I finish with disklabel, and then says
"Last chance", then to accept I get the following message:

Unable to find device node for / dev/ad4s1b in / dev!
The creation of filesystem Will be aborted.


Hi
Though I?am noob, I searched FreeBSD forum.
http://forums.freebsd.org/showthread.php?t=1675

I believe this is exactly correct. If this does not do it, recreate the 
partition (step 1) and select the write option rather than quit. Under 
conditions I do not understand the partition table does not get written when 
reformatting a disk when just selecting quit.

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


Problem in install

2011-11-05 Thread Zantgo
While I am installing FreeBSD 8.2-STABLE, when I finish with disklabel, and 
then says "Last chance", then to accept I get the following message:

Unable to find device node for / dev/ad4s1b in / dev!
The creation of filesystem Will be aborted.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread Michael Ross

Am 05.11.2011, 15:36 Uhr, schrieb Zantgo :


I will say my question clear.
If I have FreeBSD-8.2-stable, updated 2011/05/18, what I want to do is  
update the current, as for example 2011/11/01. I am willing to read me a  
manual that tells me how to do  
this.___



I do it like this:

put this in "stable-supfile":

*default host=cvsup.de.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_8
*default delete use-rel-suffix

*default compress

src-all

execute:

csup stable-supfile
cd /usr/src
make buildworld
make buildkernel
make installkernel
mergemaster -p
make installworld
mergemaster -a
reboot


You now have updated to a "current" 8-STABLE.
This is, if 8.3 would exist, you would now have 8.3-STABLE.
If you just want security patches for 8.2 and not go to 8.3 if it comes  
out,

you have to define tag=RELENG_8_2


This is not the same as tag=HEAD.
tag=HEAD gives you CURRENT, which is 9.0-RC1 i believe.
Do not confuse these.


http://www.freebsd.org/doc/en/books/handbook/cvsup.html
http://www.freebsd.org/doc/en/books/handbook/cvs-tags.html
http://www.freebsd.org/doc/en/books/handbook/makeworld.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread Zantgo
Well, there's a faster way to update?, Perhaps anoncvs is faster or not?. After 
all we are talking about regular updates, I'll do every month.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread C. P. Ghost
On Sat, Nov 5, 2011 at 3:36 PM, Zantgo  wrote:
> I will say my question clear.
> If I have FreeBSD-8.2-stable, updated 2011/05/18, what I want to do is update 
> the current, as for example 2011/11/01. I am willing to read me a manual that 
> tells me how to do this.___

If you want to update to the latest 8.2-STABLE (tracking -STABLE),
please follow the instructions in my previous mail. However, updating
to -CURRENT (i.e. FreeBSD 10.0-CURRENT, RELENG_10) is more
involved because of API breakages.

-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 "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread C. P. Ghost
On Sat, Nov 5, 2011 at 3:36 PM, Zantgo  wrote:
> I will say my question clear.
> If I have FreeBSD-8.2-stable, updated 2011/05/18, what I want to do is update 
> the current, as for example 2011/11/01. I am willing to read me a manual that 
> tells me how to do this.___

Short answer:

1. Update /usr/src with csup using an appropriate supfile. e.g.:

-- /etc/8stable-sup 
*default host=cvsup2.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_8
*default delete use-rel-suffix

*default compress

src-all
--- /etc/8stable-sup 

# csup -g -L2 /etc/8stable-sup

2. Compile /usr/src into /usr/obj:

# cd /usr/src
# make buildworld && make buildkernel KERNCONF=GENERIC

3. Install /usr/obj as the base system:

# make installkernel KERNCONF=GENERIC
# reboot (single user)

(You do this to verify that the new kernel is booting correctly)

(single-user)# mount -a
(single-user)# cd /usr/src
(single-user)# mergemaster -p
(single-user)# make installworld
(single-user)# mergemaster

(single-user)# make delete-old
[optional, but beware!] (single-user)# make delete-old-libs

(single-user)# reboot

4. Now update the ports tree /usr/ports

-- /etc/ports-sup ---
*default host=cvsup2.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix

*default compress

ports-all
--- /etc/ports-sup ---

# csup -g -L2 /etc/ports-sup

5. Update the installed ports on your system, by rebuilding
all ports that are not up-to-date:

# cd /usr/ports
# less UPDATING
(Read from the entry of the last time you've updated the ports)

(get a new portmaster just in case)
# portmaster -b ports-mgmt/portmaster

(now, rebuild all that is not up-to-date)
# portmaster -a

Or, if you prefer:

# pkg_version -v '<' > /root/pkg-update-list.txt
# less /root/pkg-update-list
# portmaster -b (one-port-after-the-other-from-the-list-above)

(To get portmaster, install /usr/ports/ports-mgmt/portmaster)

Good luck,
-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 "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread Zantgo
I will say my question clear.
If I have FreeBSD-8.2-stable, updated 2011/05/18, what I want to do is update 
the current, as for example 2011/11/01. I am willing to read me a manual that 
tells me how to do this.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread Conrad J. Sabatier
On Sat, 05 Nov 2011 11:39:32 +0100
"Michael Ross"  wrote:

> Am 05.11.2011, 07:23 Uhr, schrieb Conrad J. Sabatier
> :
> 
> > Again, go back and read the Handbook sections on using csup,
> > updating your src and ports trees, etc.  No one is interested in
> > repeating information that is already available in a complete and
> > detailed form.
> 
> Available if you are proficient in English.
> The spanish translation is lacking the parts he asks about, and then
> some.

Oh, I was not aware that the translations were that lacking.

If that's the case, and the OP has, in fact, tried to do his own
research, then my apologies.  It just seems that we've seen an awful
lot of questions lately from this individual that seem to indicate that
he's using the mailing list as his reference, rather than consulting
whatever documentation may be available to him first.

-- 
Conrad J. Sabatier
conr...@cox.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: -Stable periodic updates

2011-11-05 Thread Michael Ross

Am 05.11.2011, 07:23 Uhr, schrieb Conrad J. Sabatier :


Again, go back and read the Handbook sections on using csup, updating
your src and ports trees, etc.  No one is interested in repeating
information that is already available in a complete and detailed form.


Available if you are proficient in English.
The spanish translation is lacking the parts he asks about, and then some.


Regards,

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


Re: OpenVPN - what configuration do I need/want

2011-11-05 Thread Bill Tillman
 


From: Ryan Coleman 
To: FreeBSD Questions 
Sent: Friday, November 4, 2011 10:22 AM
Subject: OpenVPN - what configuration do I need/want

I have a PE 2450 with dual NICs and I want to turn it into a bridging VPN for 
the guys in the office to utilize.

Our configuration:
My office: 192.168.46.0/24
    Server IPs: 192.168.46.2 [8.2-RELEASE] + public IP
Corporate office: 192.168.45.0/24
My VPN: 192.168.47.0/24 [preferred]
There's a NetVanta VPN between my office and the corporate office and I presume 
that will still work to route 47.0/24 to 45.0/24 when all is said and done.

I am going to be supporting Windows and Mac clients (well, all windows and then 
my mac) and I'd like to test it from my 8.2 server at home before pushing this 
over to my MacBook Pro (using Tunnelblick) and then to my Windows users.

I've tried the FreeBSD handbook and the Section6.net walkthroughs to no avail.

Any help would be appreciated.

Thanks,
Ryan 

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


 
I can't say that I'm familiar with your setup which uses "bridging". But I 
setup OpenVPN to work on a server inside my LAN which is behind my FreeBSD 
firewall server. The setup wasn't that hard, you just have to forward the right 
ports and get the certificates copied to the clients correctly. The docs on the 
OpenVPN site were very helpful in this for me. 
The trouble you may find is that this other VPN appliance you reference, 
NetVanta, may or may not be compatible with OpenVPN. I tried this several years 
ago with a remote company I was working for and found out quite 
dissappointingly that the protocol used by OpenVPN would not work whatsoever 
with Cisco equipment. That may have changed now but at the time all the advice 
I got was forget about it. Cisco equipment would not work with OpenVPN period. 
Luckily at the time I had a small Cisco appliance at my house and that is the 
only way I could get that setup to work. These days I happily connect to my LAN 
with encrypted tunnels from most places like hotels, etc... There is a problem 
sometimes at places like Starbucks or McDonalds where they have equipment which 
is blocking ports needed to run VPN. And in most cases it's not that they are 
blocking specific ports, it's that they are blocking everything except port 80 
to only let their freebie users surf web
 content. 
YMMVcheck the docs on the OpenVPN site. Many HOWTOs and examples will help 
you get going.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Checking for broken packages (as in linking)

2011-11-05 Thread James Colannino

On 11/04/11 23:53, Conrad J. Sabatier wrote:

On Fri, 04 Nov 2011 23:27:54 -0700
James Colannino  wrote:


What I want to know is, are there tools that will check the ports
I've installed and tell me if any of my packages are linked against
libraries that are no longer there?  I'm paranoid that at some point,
while I'm building and installing updates, I'm going to break
something.


The port sysutils/bsdadminscripts includes a tool called pkg_libchk,
which does exactly what you're looking for.


Perfect.  Thanks!


I've been using FreeBSD for a little while now, but I'm still
learning... :)  Thanks in advance!


Hey, we're all (even us so-called "old-timers") "still learning".  :-)


:)

James


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


GUI tool from several years ago...

2011-11-05 Thread Gary Kline

do any of you remember the name of the port that set up a GUI square
or rectangle and allowed easy expansion of code underneath? it let
you do-GUI-framework-quick-and-easy.

my key-click program is close enough that i want to move on to the
part where the mute or speech-impaired user clicks on this GUI
rectangle.  let's say he clicks on the default "talk.0"; the app 
instantly brings up vim or gvim that is loaded with ~130 abbrevs.  the
user types, say, "hw r u gys?" into the talk.0 file.  after he types :x,
thed program forks espeak -f talk.0  and everyone around hears his 
computerized voice.  meanwhile, the gui app  moves talk.0 to
~/.Speak, say,  and spawns gvim talk.1 in case anybody says something
that requires further communication (and typing).

this Speech/Speak tool is =not= for geeks.  --ok. not
necessarily! it is for anyone with a small, lightweight
netpad/notepad like the EEE 900A.  i've talked to a hacker who
volunteers for the OLPC project.  it has a membrane keyboard.  a lot
of the children find this hard to type on, so an audible "click" --
loud or soft -- might be a major win.  

Thus, having the easy-devel tool to  create GUI apps would be a big
help.  i found it maybe 15 years ago, played with it for an hour or
two before going back to the Xlib  files I was teaching myself.  --I
could always use Xaw3d or something else that i'm familiar with, but
would rather find an easier way. i've been searching thru ports.  so
far, nothing.

thanks for any clues!

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

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


Re: trouble setting timezone for ukraine

2011-11-05 Thread Alexander Kapshuk

On 11/05/11 10:06, Matthew Seaman wrote:

On 05/11/2011 07:48, Alexander Kapshuk wrote:

i'm not sure i clearly understand what has to be done to make the ntp
server on my system to be inaccessible to anyone but me.

a sample /etc/ntp.conf would be appreciated.


You need the 'restrict' keyword to control access to ntpd -- add a block
something like this to the beginning of ntp.conf:

restrict default nomodify nopeer noquery notrap   # everyone can go away...
restrict -6 default nomodify nopeer noquery notrap
restrict 127.0.0.1   # except me ...
restrict -6 ::1
restrict 81.187.76.160 mask 255.255.255.248 nomodify notrap nopeer # or
the local net
restrict -6 2001:8b0:151:1:: mask ::::: nomodify notrap
nopeer

Except, obviously, replace the network addresses and netmasks in the
last two lines with appropriate settings for your environment.  See
ntp.conf(5).  Note these restrictions apply to outgoing as well as
incoming queries, so you can block your own access to NTP servers on the
net if not careful.

Cheers,

Matthew



understood. thanks.

sasha

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


Re: trouble setting timezone for ukraine

2011-11-05 Thread Matthew Seaman
On 05/11/2011 07:48, Alexander Kapshuk wrote:
> i'm not sure i clearly understand what has to be done to make the ntp
> server on my system to be inaccessible to anyone but me.
> 
> a sample /etc/ntp.conf would be appreciated.
> 

You need the 'restrict' keyword to control access to ntpd -- add a block
something like this to the beginning of ntp.conf:

restrict default nomodify nopeer noquery notrap   # everyone can go away...
restrict -6 default nomodify nopeer noquery notrap
restrict 127.0.0.1   # except me ...
restrict -6 ::1
restrict 81.187.76.160 mask 255.255.255.248 nomodify notrap nopeer # or
the local net
restrict -6 2001:8b0:151:1:: mask ::::: nomodify notrap
nopeer

Except, obviously, replace the network addresses and netmasks in the
last two lines with appropriate settings for your environment.  See
ntp.conf(5).  Note these restrictions apply to outgoing as well as
incoming queries, so you can block your own access to NTP servers on the
net if not careful.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: trouble setting timezone for ukraine

2011-11-05 Thread Alexander Kapshuk

On 11/05/11 00:55, Lowell Gilbert wrote:

Alexander Kapshuk  writes:


On 11/04/11 22:46, Lowell Gilbert wrote:

Alexander Kapshuk   writes:


the actual current time is 10.21 pm.

Your system's clock may be off as well...


any idea when an updated time zone file will become available?

It's already in the FreeBSD tree:
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/tzdata/europe?rev=1.7.2.2;content-type=text%2Fplain

To install it, you'll need something like
   # zic europe
(where "europe" is the file from the URL above)
and then tzsetup(8) should install the correct information.

Or you could update your system to anything after October 26.

thanks.

here's what i did based on my understanding of the instructions given above:
# cd $HOME
# fetch -o europe
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/contrib/tzdata/europe?rev=1.7.2.2;content-type=text%2Fplain
# zic europe
# tzsetup -r

:; date
Sat Nov  5 00:54:32 EET 2011

the timezone did change from 'FET' to 'EET', but the time is still
wrong by being 1 hour ahead of the actual ukraine time.

another thing i tried, which didn't seem to help was set these
environment variables in my /etc/rc.conf:
(as suggested here: http://forums.freebsd.org/showthread.php?t=10276
[post # 6])

ntpdate_enable="YES"
ntpdate_flags="-u -b"
ntpdate_hosts="ua.pool.ntp.org"

That will only do anything at startup.
To do the same thing without needing to reboot, the command line would be
  # ntpdate -u -b ua.pool.ntp.org


i must be doing something wrong. just don't know what is it.

can anyone please suggest what it is i should be doing?

Well, start with what I suggested a while back: try "date -u"
and see whether that is the correct UTC time.  If not, the ntpdate
command will solve you problems.  If it is, there's still something else
wrong.



thanks for your replies.

running 'date -u' indicated that the system clock on my machine was out 
of sync as well.


running 'ntpdate -u -b ua.pool.ntp.org' set both the system clock and 
the local time to the right time.


:; date -u
Sat Nov  5 07:24:23 UTC 2011
:; date
Sat Nov  5 09:24:26 EET 2011

then i read somewhere that 'ntpdate' is bound to become deprecated at 
some stage. it was suggested that 'ntpd' be used instead. so i removed 
the 'ntpdate' variables from my '/etc/rc.conf' and replaced them with:


:; grep ntpd /etc/rc.conf
ntpd_enable="YES"
ntpd_sync_on_start="YES"

http://www.freebsd.org/doc/handbook/network-ntp.html talks about 
modifying the '/etc/ntp.conf' file by adding information on what servers 
to use. it also said that 'By default, your NTP server will be 
accessible to all hosts on the Internet. The restrict option in 
/etc/ntp.conf allows you to control which machines can access your server'


i'm not sure i clearly understand what has to be done to make the ntp 
server on my system to be inaccessible to anyone but me.


a sample /etc/ntp.conf would be appreciated.

thanks.

sasha




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