Re: how to correct portsnap corruption

2012-11-27 Thread Arthur Chance

On 11/27/12 05:50, Dale Scott wrote:

Hi, I was running portsnap fetch on a remote terminal when my connection
failed. After connecting running portsnap again, it appeared to complete
correctly. However, when I run portsnap extract I get the following error:



casper# portsnap extract

/usr/ports/.cvsignore

/usr/ports/CHANGES

/usr/ports/COPYRIGHT

/usr/ports/GIDs

/usr/ports/KNOBS

/usr/ports/LASTCOMMIT.txt

files/bfd9e7e5d0fff1e0c601614c35085494c8de06eb100b2fe025a6c9a226ec0e09.gz
not found -- snapshot corrupt.

casper#



How can I recover from this without losing any app configs I have in the
ports tree? (i.e. make config)


Port configs are stored in /var/db/ports/portname/options, not in 
/usr/ports so are safe from any overwriting by portsnap.




___
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: Anyone using squid and pf?

2012-11-27 Thread Leslie Jensen



Volodymyr Kostyrko skrev 2012-11-26 21:50:



rdr pass proto tcp from any to any port ftp - 127.0.0.1 port 8021

# redirect www trafic to proxy
rdr on $int_if inet proto tcp from $internal_net to any port
$proxy_services - $proxy port 8080


I could be wrong here but I think you have a loop. You are redirecting
from local interface to local interface i.e. the result of redirect is
still subject for redirect. Could you try one of the following:

1. Make this a `rdr in on $int_if`.

2. Make this a `rdr pass ... - 127.0.0.1 port 8080`. I prefer this way
so port for transparent forwarding is unreachable except when explicitly
redirecting to it.

Personally I newer allow such ambiguity in my configs.



Thanks!

I'll try it out. I need to wait until tonight, the machine is in use at 
the moment.


#1 I see your point.

#2 this rule is for intended ftp traffic. That's why I'm sending to 
another port number.


/Leslie
___
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: When Is The Ports Tree Going To Be Updated?

2012-11-27 Thread Damien Fleuriot
On 26 November 2012 21:15, jb jb.1234a...@gmail.com wrote:
 Tim Daneliuk tundra at tundraware.com writes:

 ...
 One wonders if using svn to keep the ports tree up-to-date might not be
 simpler, and perhaps, more reliable ...

 As managed by portsnap:
 $ du -hs /usr/ports/
 850M/usr/ports/

 As managed by svn (it took much longer to checkout/download it by comparison):
 $ du -hs /usr/local/ports/
 1.4G/usr/local/ports/
 $ du -hs /usr/local/ports/.svn/
 702M/usr/local/ports/.svn/

 One thing about svn is that it is a developer's tool, with its own commands
 set (that should never be mixed with UNIX commands w/r to dir/file
 manipulation), and that should not be expected to be learned by non-devs.

 For that reasons alone the portsnap-managed ports repo is more generic,
 flexible to be handled by user and add-on apps/utilities, looks like more
 efficient without that svn overhead resulting from its requirements and
 characteristics as a source control system.

 But, svn offers to a user a unique view into ports repo, e.g. history, logs,
 info, attributes, etc.

 jb


While we're on the binary vs SVN topic, I'd like to point out I'm
*actually running out of inodes* on a virtualized machine (we use
these a lot for our dev and preproduction environments) with 5gb of
space, when checking out the ports tree.

Of course 5gb is quite small but then, this was installed a while back.

The transition to SVN means I'm going to have to reinstall these firewalls.
There are a lot of them it's going to be a major pain.


idk, I'm loathe to use portsnap, I liked CSup just fine.
___
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: how to correct portsnap corruption

2012-11-27 Thread RW
On Tue, 27 Nov 2012 08:13:50 +
Arthur Chance wrote:

 On 11/27/12 05:50, Dale Scott wrote:
  Hi, I was running portsnap fetch on a remote terminal when my
  connection failed. After connecting running portsnap again, it
  appeared to complete correctly. However, when I run portsnap
  extract I get the following error:
 
 
 
  casper# portsnap extract
 
  /usr/ports/.cvsignore
 
  /usr/ports/CHANGES
 
  /usr/ports/COPYRIGHT
 
  /usr/ports/GIDs
 
  /usr/ports/KNOBS
 
  /usr/ports/LASTCOMMIT.txt
 
  files/bfd9e7e5d0fff1e0c601614c35085494c8de06eb100b2fe025a6c9a226ec0e09.gz
  not found -- snapshot corrupt.
 
  casper#
 
 
 
  How can I recover from this without losing any app configs I have
  in the ports tree? (i.e. make config)
 
 Port configs are stored in /var/db/ports/portname/options, not in 
 /usr/ports so are safe from any overwriting by portsnap.

In any case, it's the snapshot that needs replacing, i.e. the contents
of /var/db/portsnap.
___
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: Everything get slower with 8.3

2012-11-27 Thread Odhiambo Washington
On Tue, Nov 27, 2012 at 6:32 AM, Olivier Nicole olivier.nic...@cs.ait.ac.th
 wrote:

 Hi,

 Few weeks ago I upgraded many systems from 7.4 to 8.3 and since I feel
 that everyting has got much slower:

 - connecting a new shell takes 5 secnds between the password and the
   first promt;

 - imap got slower to the point imp/horde times out

 - amanda back-up will not complete

 - etc.

 I don;t know what to look for to correct this.

 TIA,



Hello Olivier,

I run several 8.3 boxes and nothing is slow on them. And I do all this
remotely. Well, they don't run Amanda, but they run everything else -
POP3/IMAP4, webmail, SMTP, spamfilter, virusfilter, DNS, gateway, firewall,
proxy... etc.

I'd like to think you've kinds messed up something with name resolution...
could be DNS (/etc/resolv.conf) or even /etc/hosts changes of you don't run
a local resolver.

Also, I'd like to mention that My boxes were running 6.x before I upgraded
them to 7.8, then to 8.x using instructions from
http://people.freebsd.org/~rse/upgrade/. I have one box that I upgraded
from 8.x-9.x as well, as a test to the instructions ~rse made, which led
to the fixing of certain small bits in the instructions. I can tell you
that the instructions are rock-solid.

Anyway, I suggest start figuring out of name resolution works first...



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
___
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: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
All instructions failed. Is there a way to mount a linux partition or
USB-stick and to redirect the output of the gpart commands to a log
file?

In linux after mounting a partition or usb-stick I would do it like
that:

spinymouse@q:~$ echo $ ls -l  logfile
spinymouse@q:~$ ls -l  logfile
spinymouse@q:~$ cat logfile
$ ls -l
total 2644
-rw-rwxr-- 1 test_user_q spinymouse2614 Nov 24 03:43 bak_q_arch-mail
drwxr-xr-x 2 spinymouse  spinymouse4096 Oct 13 22:47 Desktop
drwxr-xr-x 2 spinymouse  spinymouse4096 Nov  1 18:19 Documents
drwxr-xr-x 2 spinymouse  spinymouse4096 Nov 24 15:56 Downloads
-rw-rw-r-- 1 spinymouse  spinymouse   53724 Nov 24 14:39 freebsd_logo1.png
-rw-rw-r-- 1 spinymouse  spinymouse  127098 Nov 24 14:39 freebsd_logo1.xcf
-rw-r--r-- 1 spinymouse  spinymouse 2492653 Nov 12 09:54 hdsp.1.mix
-rw-rw-r-- 1 spinymouse  spinymouse   8 Nov 27 15:57 logfile
drwx-- 7 spinymouse  spinymouse4096 Nov 15 18:50 Spinymouse

So how can I mount e.g. an USB stick?

And could I then run something similar to

# echo gpart show ada0s1  /path/to/usbstick/logfile
# gpart show ada0s1  /path/to/usbstick/logfile
# echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
# echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile

etc.?

I would like to post the output to the list.

TIA
Ralf

___
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: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
On Tue, 2012-11-27 at 16:13 +0100, Ralf Mardorf wrote:
 All instructions failed. Is there a way to mount a linux partition or
 USB-stick and to redirect the output of the gpart commands to a log
 file?
 
 In linux after mounting a partition or usb-stick I would do it like
 that:
 
 spinymouse@q:~$ echo $ ls -l  logfile
 spinymouse@q:~$ ls -l  logfile
 spinymouse@q:~$ cat logfile
 $ ls -l
 total 2644
 -rw-rwxr-- 1 test_user_q spinymouse2614 Nov 24 03:43 bak_q_arch-mail
 drwxr-xr-x 2 spinymouse  spinymouse4096 Oct 13 22:47 Desktop
 drwxr-xr-x 2 spinymouse  spinymouse4096 Nov  1 18:19 Documents
 drwxr-xr-x 2 spinymouse  spinymouse4096 Nov 24 15:56 Downloads
 -rw-rw-r-- 1 spinymouse  spinymouse   53724 Nov 24 14:39 freebsd_logo1.png
 -rw-rw-r-- 1 spinymouse  spinymouse  127098 Nov 24 14:39 freebsd_logo1.xcf
 -rw-r--r-- 1 spinymouse  spinymouse 2492653 Nov 12 09:54 hdsp.1.mix
 -rw-rw-r-- 1 spinymouse  spinymouse   8 Nov 27 15:57 logfile
 drwx-- 7 spinymouse  spinymouse4096 Nov 15 18:50 Spinymouse
 
 So how can I mount e.g. an USB stick?
 
 And could I then run something similar to
 
 # echo gpart show ada0s1  /path/to/usbstick/logfile
 # gpart show ada0s1  /path/to/usbstick/logfile
 # echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
 # echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
    oops, but I guess you know what I mean
 etc.?
 
 I would like to post the output to the list.
 
 TIA
 Ralf


___
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: do I need agp(4) on my amd64 laptop

2012-11-27 Thread ill...@gmail.com
On 25 November 2012 06:11, Anton Shterenlikht me...@bristol.ac.uk wrote:
 From ill...@gmail.com Sat Nov 24 16:09:29 2012
  On 22 November 2012 06:19, Anton Shterenlikht me...@bristol.ac.uk 
 wrote:
  It is not clear for me from the agp(4) man page,
  whether I need this device in the kernel or not.
...
  hostb4@pci0:0:24:3: class=0x06 card=0x 
 chip=0x11031022 rev=0x00 hdr=0x00
  vendor = 'Advanced Micro Devices [AMD]'
  device = 'K8 [Athlon64/Opteron] Miscellaneous Control'
  class  = bridge
  subclass   = HOST-PCI
  vgapci0@pci0:1:5:0: class=0x03 card=0x30c2103c 
 chip=0x791f1002 rev=0x00 hdr=0x00
  vendor = 'Advanced Micro Devices [AMD] nee ATI'
  device = 'RS690M [Radeon X1200 Series]'
  class  = display
  subclass   = VGA
  bge0@pci0:16:0:0:   class=0x02 card=0x30c2103c 
 chip=0x171314e4 rev=0x02 hdr=0x00
  vendor = 'Broadcom Corporation'
  device = 'NetLink BCM5906M Fast Ethernet PCI Express'
  class  = network
  subclass   = ethernet
  siba_bwn0@pci0:48:0:0:  class=0x028000 card=0x1371103c 
 chip=0x431214e4 rev=0x02 hdr=0x00
  vendor = 'Broadcom Corporation'
  device = 'BCM4311 802.11a/b/g'
  class  = network
  cbb0@pci0:2:4:0:class=0x060700 card=0x30c2103c 
 chip=0x04761180 rev=0xb6 hdr=0x02
  vendor = 'Ricoh Co Ltd'
  device = 'RL5c476 II'
  class  = bridge
  subclass   = PCI-CardBus
 
  You bring up a good point.  Your laptop is almost the same as mine,
   the graphics chip is connected via PCI Express.
  I should see if it builds  runs without agp.
 

 Looks like drm requires agp for the kernel to link correctly.
 Oh well.

 ...
 drm_agpsupport.o: In function `drm_agp_free_memory':
 /home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xcba):
 undefined reference to `agp_fi
 nd_device'
 /home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xcd4):
 undefined reference to `agp_fr
 ee_memory'
 drm_agpsupport.o: In function `drm_agp_init':
 /home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xdb8):
 undefined reference to `agp_fi
 nd_device'
 /home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xe2f):
 undefined reference to `agp_ge
 t_info'
 *** [kernel] Error code 1
 ...

 ok, I get it. I think I built drm and agp
 together, hence I haven't encountered this
 error.

 Do you use radeon video driver?
 Do you use radeondrm device in kernel?
 This only place I see this is in
 src/sys/amd64/conf/NOTES.
 My understanding is that to get drm
 working with the radeon driver, I need
 to add radeondrm to the kernel, but again,
 I'm not sure.

Yes, I use the radeon driver in xorg,  I have
radeondrm in kernel.  I don't think you need to
build it in, as loading the module should work,
I just got in the habit a while back  can't seem
to quit now.

-- 
--
___
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


Is http://pkgbeta.freebsd.org/ down??

2012-11-27 Thread C. L. Martinez
Hi all,

 Is this server down??

root@newfbsd:/tmp/i# pkg update
Updating repository catalogue
pkg: http://pkgbeta.FreeBSD.org/freebsd:9:x86:64/latest/repo.txz: No
route to host
___
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: Is http://pkgbeta.freebsd.org/ down??

2012-11-27 Thread Matthew Seaman
On 27/11/2012 15:49, C. L. Martinez wrote:
  Is this server down??

Yes. Is being reinstalled.

Cheers,

Matthew

___
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: Is http://pkgbeta.freebsd.org/ down??

2012-11-27 Thread C. L. Martinez
On Tue, Nov 27, 2012 at 3:51 PM, Matthew Seaman matt...@freebsd.org wrote:
 On 27/11/2012 15:49, C. L. Martinez wrote:
  Is this server down??

 Yes. Is being reinstalled.

 Cheers,

 Matthew

 ___

Thanks Matthew
___
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: When Is The Ports Tree Going To Be Updated?

2012-11-27 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/27/12 4:36 AM, Damien Fleuriot wrote:
 On 26 November 2012 21:15, jb jb.1234a...@gmail.com wrote:
 Tim Daneliuk tundra at tundraware.com writes:
 
 ... One wonders if using svn to keep the ports tree up-to-date
 might not be simpler, and perhaps, more reliable ...
 
 As managed by portsnap: $ du -hs /usr/ports/ 850M/usr/ports/
 
 As managed by svn (it took much longer to checkout/download it by
 comparison): $ du -hs /usr/local/ports/ 1.4G
 /usr/local/ports/ $ du -hs /usr/local/ports/.svn/ 702M
 /usr/local/ports/.svn/
 
 One thing about svn is that it is a developer's tool, with its
 own commands set (that should never be mixed with UNIX commands
 w/r to dir/file manipulation), and that should not be expected to
 be learned by non-devs.
 
 For that reasons alone the portsnap-managed ports repo is more
 generic, flexible to be handled by user and add-on
 apps/utilities, looks like more efficient without that svn
 overhead resulting from its requirements and characteristics as a
 source control system.
 
 But, svn offers to a user a unique view into ports repo, e.g.
 history, logs, info, attributes, etc.
 
 jb
 
 
 While we're on the binary vs SVN topic, I'd like to point out I'm 
 *actually running out of inodes* on a virtualized machine (we use 
 these a lot for our dev and preproduction environments) with 5gb
 of space, when checking out the ports tree.
 
 Of course 5gb is quite small but then, this was installed a while
 back.
 
 The transition to SVN means I'm going to have to reinstall these
 firewalls. There are a lot of them it's going to be a major pain.
 
 
 idk, I'm loathe to use portsnap, I liked CSup just fine.

Unless you plan to use svn commands other than checkout in your ports
tree, I would suggest switching to svn export or perhaps the
svn-export script (http://xyne.archlinux.ca/projects/svn-export/) to
fetch your ports tree.

The export command will not create the .svn metadata directory and
will save on inode usage.  Of course, you could also create a new
virtual disk for /usr/ports and tune it with more inodes if you'd
rather use svn checkout.

Hope that helps,
Greg

- -- 
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/cpucycle/  - Follow you, follow me
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlC029MACgkQ0sRouByUApBC5QCfZeDivNGRMWB4DV4usXGLojrv
lBsAoIWG4O/ekYRiGJI0M238v+J1y/Lx
=wHdv
-END PGP SIGNATURE-
___
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: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Warren Block

On Tue, 27 Nov 2012, Ralf Mardorf wrote:


All instructions failed. Is there a way to mount a linux partition or
USB-stick and to redirect the output of the gpart commands to a log
file?

In linux after mounting a partition or usb-stick I would do it like
that:

spinymouse@q:~$ echo $ ls -l  logfile
spinymouse@q:~$ ls -l  logfile


Too much work.  Use script(1):
$ script /tmp/session.log
$ (do a bunch of stuff)
$ exit

And session.log will contain everything.  Including control characters, 
so edit it before posting.



So how can I mount e.g. an USB stick?


This is in the Handbook somewhere, but a quick look didn't find it, so:

# mount -t msdosfs /dev/da0s1 /mnt

That assumes there is a FAT filesystem in the first partition of the 
memory stick, a common setup.  Please don't use NTFS.

___
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: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Mike Clarke
On Tuesday 27 November 2012 15:15:52 Ralf Mardorf wrote:

  And could I then run something similar to
 
  # echo gpart show ada0s1  /path/to/usbstick/logfile
  # gpart show ada0s1  /path/to/usbstick/logfile
  # echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
  # echo gpart add -t freebsd -i1 ada0  /path/to/usbstick/logfile
     oops, but I guess you know what I mean

  etc.?
 
  I would like to post the output to the list.

The neater way

 # script /path/to/usbstick/logfile
 # gpart show ada0
 # gpart add -t freebsd -i1 ada0
 # gpart show ada0
 # CTRL+D

Then /path/to/usbstick/logfile will contain a full log of your commands and 
output showing the partition information for ada0 before and after creating 
the new partition.

-- 
Mike Clarke
___
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: When Is The Ports Tree Going To Be Updated?

2012-11-27 Thread Fleuriot Damien

On Nov 27, 2012, at 4:27 PM, Greg Larkin glar...@freebsd.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 11/27/12 4:36 AM, Damien Fleuriot wrote:
 On 26 November 2012 21:15, jb jb.1234a...@gmail.com wrote:
 Tim Daneliuk tundra at tundraware.com writes:
 
 ... One wonders if using svn to keep the ports tree up-to-date
 might not be simpler, and perhaps, more reliable ...
 
 As managed by portsnap: $ du -hs /usr/ports/ 850M/usr/ports/
 
 As managed by svn (it took much longer to checkout/download it by
 comparison): $ du -hs /usr/local/ports/ 1.4G
 /usr/local/ports/ $ du -hs /usr/local/ports/.svn/ 702M
 /usr/local/ports/.svn/
 
 One thing about svn is that it is a developer's tool, with its
 own commands set (that should never be mixed with UNIX commands
 w/r to dir/file manipulation), and that should not be expected to
 be learned by non-devs.
 
 For that reasons alone the portsnap-managed ports repo is more
 generic, flexible to be handled by user and add-on
 apps/utilities, looks like more efficient without that svn
 overhead resulting from its requirements and characteristics as a
 source control system.
 
 But, svn offers to a user a unique view into ports repo, e.g.
 history, logs, info, attributes, etc.
 
 jb
 
 
 While we're on the binary vs SVN topic, I'd like to point out I'm 
 *actually running out of inodes* on a virtualized machine (we use 
 these a lot for our dev and preproduction environments) with 5gb
 of space, when checking out the ports tree.
 
 Of course 5gb is quite small but then, this was installed a while
 back.
 
 The transition to SVN means I'm going to have to reinstall these
 firewalls. There are a lot of them it's going to be a major pain.
 
 
 idk, I'm loathe to use portsnap, I liked CSup just fine.
 
 Unless you plan to use svn commands other than checkout in your ports
 tree, I would suggest switching to svn export or perhaps the
 svn-export script (http://xyne.archlinux.ca/projects/svn-export/) to
 fetch your ports tree.
 
 The export command will not create the .svn metadata directory and
 will save on inode usage.  Of course, you could also create a new
 virtual disk for /usr/ports and tune it with more inodes if you'd
 rather use svn checkout.
 
 Hope that helps,
 Greg
 
 - -- 
 Greg Larkin



Well I definitely don't plan on making changes to local files or committing 
stuff, I'd just like to keep an updated ports tree and switch from CVS to SVN.

I guess I'll have a look at svn export, thanks for the tip Greg.

___
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: When Is The Ports Tree Going To Be Updated?

2012-11-27 Thread Warren Block

On Tue, 27 Nov 2012, Greg Larkin wrote:


Unless you plan to use svn commands other than checkout in your ports
tree, I would suggest switching to svn export or perhaps the
svn-export script (http://xyne.archlinux.ca/projects/svn-export/) to
fetch your ports tree.

The export command will not create the .svn metadata directory and
will save on inode usage.  Of course, you could also create a new
virtual disk for /usr/ports and tune it with more inodes if you'd
rather use svn checkout.


It should be added that a stock svn export will download the entire 
ports tree each time rather than just the diffs.


svn-export from above looks interesting, with the ability to get just 
updates.  No port yet, though.

___
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: [Bulk] Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
On Tue, 2012-11-27 at 09:05 -0700, Warren Block wrote:
 On Tue, 27 Nov 2012, Ralf Mardorf wrote:
 
  All instructions failed. Is there a way to mount a linux partition or
  USB-stick and to redirect the output of the gpart commands to a log
  file?
 
  In linux after mounting a partition or usb-stick I would do it like
  that:
 
  spinymouse@q:~$ echo $ ls -l  logfile
  spinymouse@q:~$ ls -l  logfile
 
 Too much work.  Use script(1):
 $ script /tmp/session.log
 $ (do a bunch of stuff)
 $ exit
 
 And session.log will contain everything.  Including control characters, 
 so edit it before posting.
 
  So how can I mount e.g. an USB stick?
 
 This is in the Handbook somewhere, but a quick look didn't find it, so:
 
 # mount -t msdosfs /dev/da0s1 /mnt
 
 That assumes there is a FAT filesystem in the first partition of the 
 memory stick, a common setup.  Please don't use NTFS.

Thank you :)

I use USB sticks as they are, with FAT, if I e.g. need Linux
permissions, I use an archive on the USB stick.

Yes, I'll edit the logfile, before posting.

Indeed script /tmp/session.log is better, than my stupid idea.

Regards,
Ralf

___
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: When Is The Ports Tree Going To Be Updated?

2012-11-27 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/27/12 11:11 AM, Warren Block wrote:
 On Tue, 27 Nov 2012, Greg Larkin wrote:
 
 Unless you plan to use svn commands other than checkout in your
 ports tree, I would suggest switching to svn export or perhaps
 the svn-export script
 (http://xyne.archlinux.ca/projects/svn-export/) to fetch your
 ports tree.
 
 The export command will not create the .svn metadata directory
 and will save on inode usage.  Of course, you could also create a
 new virtual disk for /usr/ports and tune it with more inodes if
 you'd rather use svn checkout.
 
 It should be added that a stock svn export will download the
 entire ports tree each time rather than just the diffs.
 
 svn-export from above looks interesting, with the ability to get
 just updates.  No port yet, though.

Yeah, I have to add that to my to-do list, since I mentioned it first. :)

Cheers,
Greg

- -- 
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/cpucycle/  - Follow you, follow me
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlC07GEACgkQ0sRouByUApBViQCgng+ByDROCHM8UnfK1YDbUanK
g0kAnjf22mYmOw5J3JLC/KyfQqsbNz06
=4tof
-END PGP SIGNATURE-
___
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: Anyone using squid and pf?

2012-11-27 Thread Doug Sampson
[...]

 Rules from pf.conf
 
 
 # macros
 ext_if=xl0
 int_if=bge0
 
 tcp_services={ 22, 993, 5910:5917 }
 tcp_priv_services={ 389, 443 }
 proxy_services = { 21, 80 }
 icmp_types={ echoreq unreach squench timex }
 internal_net = 172.18.0.0/16
 proxy = 172.18.0.1
 proxyport=8021
   ^
No whitespace here

 
 # tables
 table goodguys persist
 table sshguard persist
 
 # options
 set block-policy return # ports are closed but can be seen
 set loginterface $ext_if
 
 set skip on lo0
 
 # scrub
 scrub in
 
 rdr pass proto tcp from any to any port ftp - 127.0.0.1 port 8021
 
 # redirect www trafic to proxy
 rdr on $int_if inet proto tcp from $internal_net to any port
 $proxy_services - $proxy port 8080
   ^
Whitespace here. Maybe that's the issue here?

 # ext_if IP address could be dynamic, hence ($ext_if)
 nat on $ext_if from !($ext_if) to any - ($ext_if)

[...]
___
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: Anyone using squid and pf?

2012-11-27 Thread Fleuriot Damien

On Nov 27, 2012, at 6:34 PM, Doug Sampson do...@dawnsign.com wrote:

 [...]
 
 Rules from pf.conf
 
 
 # macros
 ext_if=xl0
 int_if=bge0
 
 tcp_services={ 22, 993, 5910:5917 }
 tcp_priv_services={ 389, 443 }
 proxy_services = { 21, 80 }
 icmp_types={ echoreq unreach squench timex }
 internal_net = 172.18.0.0/16
 proxy = 172.18.0.1
 proxyport=8021
   ^
 No whitespace here
 
 
 # tables
 table goodguys persist
 table sshguard persist
 
 # options
 set block-policy return # ports are closed but can be seen
 set loginterface $ext_if
 
 set skip on lo0
 
 # scrub
 scrub in
 
 rdr pass proto tcp from any to any port ftp - 127.0.0.1 port 8021
 
 # redirect www trafic to proxy
 rdr on $int_if inet proto tcp from $internal_net to any port
 $proxy_services - $proxy port 8080
   ^
 Whitespace here. Maybe that's the issue here?
 


Erm, working as intended, Doug.

He's redirecting from his internal net to any port defined as proxiable, to his 
$proxy machine on port 8080.

Looks good to me.




 # ext_if IP address could be dynamic, hence ($ext_if)
 nat on $ext_if from !($ext_if) to any - ($ext_if)
 
 [...]
 ___
 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: Anyone using squid and pf?

2012-11-27 Thread Leslie Jensen



Doug Sampson skrev 2012-11-27 18:34:

[...]


Rules from pf.conf


# macros
ext_if=xl0
int_if=bge0

tcp_services={ 22, 993, 5910:5917 }
tcp_priv_services={ 389, 443 }
proxy_services = { 21, 80 }
icmp_types={ echoreq unreach squench timex }
internal_net = 172.18.0.0/16
proxy = 172.18.0.1
proxyport=8021

^
No whitespace here



# tables
table goodguys persist
table sshguard persist

# options
set block-policy return # ports are closed but can be seen
set loginterface $ext_if

set skip on lo0

# scrub
scrub in

rdr pass proto tcp from any to any port ftp - 127.0.0.1 port 8021

# redirect www trafic to proxy
rdr on $int_if inet proto tcp from $internal_net to any port
$proxy_services - $proxy port 8080

^
Whitespace here. Maybe that's the issue here?


# ext_if IP address could be dynamic, hence ($ext_if)
nat on $ext_if from !($ext_if) to any - ($ext_if)


[...]
___
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



Thanks!

No if you see I have a $proxy and a $proxyport (I shall rename this one. 
It's confusing, I know)


So the whitespace is not the problem.

/Leslie
___
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


Can't figure out why my / is busy

2012-11-27 Thread David Demelier

Hello,

I have an old Alix appliance on a CompactFlash, usually I keep / mounted 
read-only to preserve the flash device as longer as possible.


I have installed some packages today, and now I can't mount / read-only 
again, usually it was working.


markand@Ananas ~ $ sudo mount -u -r /
mount: /dev/ad0s1a : Device busy

But fstat does not show any file opened for writing in / or else (note 
that /var /tmp are memory file systems)


USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
root fstat  27734 root / 2 drwxr-xr-x 512  r
root fstat  27734   wd /141635 drwxr-xr-x 512  r
root fstat  27734 text / 95191 -r-xr-sr-x   16644  r
root fstat  277340 /dev 55 crw--w   pts/0 rw
root fstat  277341 /dev 55 crw--w   pts/0 rw
root fstat  277342 /dev 55 crw--w   pts/0 rw
root fstat  277343 /dev 11 crw-r- mem  r
root fstat  277344 /dev 12 crw-r-kmem  r
root fstat  277345 /191672 -rw---   40960  r
root sudo   27733 root / 2 drwxr-xr-x 512  r
root sudo   27733   wd /141635 drwxr-xr-x 512  r
root sudo   27733 text /123603 ---s--x--x  146416  r
root sudo   277330 /dev 55 crw--w   pts/0 rw
root sudo   277331 /dev 55 crw--w   pts/0 rw
root sudo   277332 /dev 55 crw--w   pts/0 rw
root sudo   277333* local dgram c22de158
root sudo   27732 root / 2 drwxr-xr-x 512  r
root sudo   27732   wd /141635 drwxr-xr-x 512  r
root sudo   27732 text /123603 ---s--x--x  146416  r
root sudo   277320 /dev 55 crw--w   pts/0 rw
root sudo   277321 /dev 55 crw--w   pts/0 rw
root sudo   277322 /dev 55 crw--w   pts/0 rw
root sudo   277323* local dgram c22ddd70
root cupsd  27621 root / 2 drwxr-xr-x 512  r
root cupsd  27621   wd / 2 drwxr-xr-x 512  r
root cupsd  27621 text /167335 -r-x--  425764  r
root cupsd  276210 /dev 23 crw-rw-rw-null  r
root cupsd  276211 /dev 23 crw-rw-rw-null  w
root cupsd  276212 /dev 23 crw-rw-rw-null  w
root cupsd  276214 /var112 -rw-r--r--8657 rw
root cupsd  276215 /var 26 -rw-r--r--4457 rw
root cupsd  276216 /var113 -rw-r--r--  78 rw
root cupsd  276217* internet stream tcp c239f000
root cupsd  276218* local stream c22de764
root cupsd  276219* internet dgram udp c222f44c
root cupsd  27621   10* pipe c21c4930 - c21c49e8  0 rw
root cupsd  27621   11* pipe c21c49e8 - c21c4930  0 rw
markand  zsh27552 root / 2 drwxr-xr-x 512  r
markand  zsh27552   wd /141635 drwxr-xr-x 512  r
markand  zsh27552 text /120676 -r-xr-xr-x  539936  r
markand  zsh275520 /dev 55 crw--w   pts/0 rw
markand  zsh275521 /dev 55 crw--w   pts/0 rw
markand  zsh275522 /dev 55 crw--w   pts/0 rw
markand  zsh27552   10 /dev 55 crw--w   pts/0 rw
markand  zsh27552   12 /120733 -rw-r--r--  175256  r
markand  zsh27552   13 /121399 -rw-r--r--  127840  r
markand  zsh27552   14 /120765 -rw-r--r--  246128  r
markand  zsh27552   15 /121300 -rw-r--r--  186416  r
markand  zsh27552   16 /120959 -rw-r--r--  2424816  r
markand  zsh27552   17 /120748 -rw-r--r--   46888  r
markand  sshd   27551 root / 2 drwxr-xr-x 512  r
markand  sshd   27551   wd / 2 drwxr-xr-x 512  r
markand  sshd   27551 text / 95137 -r-xr-xr-x  228188  r
markand  sshd   275510 /dev 23 crw-rw-rw-null rw
markand  sshd   275511 /dev 23 crw-rw-rw-null rw
markand  sshd   275512 /dev 23 crw-rw-rw-null rw
markand  sshd   275513* internet stream tcp c239f768
markand  sshd   275514* local stream c22dee1c - c24bf000
markand  sshd   275515* pipe c21c47a8 - c21c4860  0 rw
markand  sshd   275516* pipe c21c4860 - c21c47a8  0 rw
markand  sshd   275517* pseudo-terminal master  pts/0 rw
markand  sshd   275519* pseudo-terminal master  pts/0 rw
markand  sshd   27551   10* pseudo-terminal master  pts/0 rw
root sshd   27549 root / 2 drwxr-xr-x 512  r
root sshd   27549   wd / 2 drwxr-xr-x 512  r
root sshd   27549 text / 95137 -r-xr-xr-x  228188  r
root sshd  

Re: [Bulk] Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
# mount -t msdosfs /dev/da0s1 /mnt
did not work. It has to be
# mount -t msdosfs /dev/da0 /mnt

This is from the log:

# gpart show ada0
=   63  625142385  ada0  MBR  (298G)
 63  121274683- free -  (57G)
  121274746  503862599 2  ebr  [active]  (240G)
  625137345   5103- free -  (2.5M)

# gpart add -t freebsd -i1 ada0
ada0s1 added

Now it becomes complicated, since the log is a mess:

=   63  625142385  ada0  MBR  (298G)
 63  121274622 1  freebsd  (57G)
  121274685 61- free -  (30k)
  121274746  503862599 2  ebr  [active]  (240G)
  625137345   5103- free -  (2.5M)

# gpart show ada0s1
=0  121274622  ada0s1  EBR  (57G)
  0  121274622  - free -  (57G)

# gpart create -s bsd ada0s1
gpart: geom 'ada0s1': File exists

# gpart create -s bsd da0s1
gpart: arg0 'da0s1': Invalid argument

And now log is missing output:

# gpart -t freebsd-ufs -a 4k -s 53g [???]
However, since create already didn't work, the missing output anyway is 
unimportant.

Regards,
Ralf





___
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: [Bulk] Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
PS: In Linux the result does look like this:

$ sudo fdisk -l /dev/sda | grep BSD
/dev/sda1  63   12127468460637311   a5  FreeBSD
$ sudo parted -l | grep pri
 1  32.3kB  62.1GB  62.1GB  primary   ext3
 1  32.3kB  22.0GB  22.0GB  primary   ext4

___
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: Anyone using squid and pf?

2012-11-27 Thread Leslie Jensen



Volodymyr Kostyrko skrev 2012-11-26 21:50:

26.11.2012 20:40, Leslie Jensen:

Rules from pf.conf


# macros
ext_if=xl0
int_if=bge0

tcp_services={ 22, 993, 5910:5917 }
tcp_priv_services={ 389, 443 }
proxy_services = { 21, 80 }
icmp_types={ echoreq unreach squench timex }
internal_net = 172.18.0.0/16
proxy = 172.18.0.1
proxyport=8021

# tables
table goodguys persist
table sshguard persist

# options
set block-policy return # ports are closed but can be seen
set loginterface $ext_if

set skip on lo0

# scrub
scrub in

rdr pass proto tcp from any to any port ftp - 127.0.0.1 port 8021

# redirect www trafic to proxy
rdr on $int_if inet proto tcp from $internal_net to any port
$proxy_services - $proxy port 8080


I could be wrong here but I think you have a loop. You are redirecting
from local interface to local interface i.e. the result of redirect is
still subject for redirect. Could you try one of the following:

1. Make this a `rdr in on $int_if`.

2. Make this a `rdr pass ... - 127.0.0.1 port 8080`. I prefer this way
so port for transparent forwarding is unreachable except when explicitly
redirecting to it.

Personally I newer allow such ambiguity in my configs.



#1 gives a syntax error when I try to load it.

#2 My intention is to redirect only ftp traffic with this rule so that's 
why I use port 8021.


Do you mean that I should redirect even ftp traffic to port 8080?

Thanks!

/Leslie
___
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


denyhosts, fail2ban, or something else?

2012-11-27 Thread Aleksandr Miroslav
Finally got sick of seeing tons of ssh break-in attempts in my logs. Am
considering using denyhosts, or fail2ban. Anyone have any experience
with these?

I'm already using the AllowUsers facility of ssh to only allow specific
users in, so I'm not overly concerned about the attempts.

This is for a FreeBSD 8.x box running pf, btw.

Thanks
___
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


just thought of a new gui port!

2012-11-27 Thread Gary Kline


how about a local weather GUI that reports the outdoors highs and
lows [temps], and the barometric scale and the forecast?

we've got one in a shaded area on our deck that pings an indoors
receiver every 10-15 minutes.  I can't get too close to the 
receiver for fear of ramming into the furniture.  also, the
backlight only lasts a few seconds ... too fast for me to scan
everything.

1. is there any transmitter that will reach, say, 25 meters and 
whose data could be picked up by a card inside my computer?

2. I live so close to the airport weather station that im sure
that would tell me tons more stuff that I could pick up outside the
house.  Iremember seeing the weather bureau for the entire US.
pretty sure there are global sites with similar data.

feedback?

gary

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
  Twenty-six 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: denyhosts, fail2ban, or something else?

2012-11-27 Thread Josh Beard
On Tue, Nov 27, 2012 at 3:25 PM, Aleksandr Miroslav
alexmiros...@gmail.comwrote:

 Finally got sick of seeing tons of ssh break-in attempts in my logs. Am
 considering using denyhosts, or fail2ban. Anyone have any experience
 with these?

 I'm already using the AllowUsers facility of ssh to only allow specific
 users in, so I'm not overly concerned about the attempts.

 This is for a FreeBSD 8.x box running pf, btw.

 Thanks


I've been using fail2ban (security/py-fail2ban) for a few years on my
FreeBSD and Linux systems and can't complain.  I like that I can easily
write a regex for any arbitrary log file and perform any action I want.  By
default, the port will install both ipfw and pf actions.

I can't give an honest opinion about DenyHosts or SSHGuard, having never
used them.  Fail2Ban, however, isn't specific to a service or action -
simply a regex matches a log file and performs an action.

Josh
___
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: denyhosts, fail2ban, or something else?

2012-11-27 Thread Lena
 Finally got sick of seeing tons of ssh break-in attempts in my logs.

I invoke sshd from inetd with limit 3 connections/min in /etc/inetd.conf:

ssh stream  tcp nowait/0/3  root/usr/sbin/sshd  sshd -i -4

___
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: VPS FreeBSD Hosting

2012-11-27 Thread Randal L. Schwartz
 George == George Hartzell hartz...@alerce.com writes:

George I'll second that.  I have a smaller and a larger VPS at ARP, they've
George been great.

And I've been running 5 FreeBSD servers of various sizes there for
something like two years (or has it been three?).  All booting from ZFS
as /.  Fun.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
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: denyhosts, fail2ban, or something else?

2012-11-27 Thread Frank Reppin

Hi,

On 27.11.2012 23:25, Aleksandr Miroslav wrote:
[...]

Finally got sick of seeing tons of ssh break-in attempts in my logs. Am
considering using denyhosts, or fail2ban. Anyone have any experience
with these?

I'm already using the AllowUsers facility of ssh to only allow specific
users in, so I'm not overly concerned about the attempts.

Not sure if letting sshd listen on a different port is an option
for your specific needs... but (at least in my experience) it
significantly cuts down those log entries since probably most of
these attempts are from bots anyways.

HTH,
Frank Reppin

--
43rd Law of Computing:
Anything that can go wr
fortune: Segmentation violation -- Core dumped
___
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: [Bulk] Re: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Warren Block

On Tue, 27 Nov 2012, Ralf Mardorf wrote:


This is from the log:

# gpart show ada0
=   63  625142385  ada0  MBR  (298G)
63  121274683- free -  (57G)
 121274746  503862599 2  ebr  [active]  (240G)
 625137345   5103- free -  (2.5M)

# gpart add -t freebsd -i1 ada0
ada0s1 added

Now it becomes complicated, since the log is a mess:

=   63  625142385  ada0  MBR  (298G)
63  121274622 1  freebsd  (57G)
 121274685 61- free -  (30k)
 121274746  503862599 2  ebr  [active]  (240G)
 625137345   5103- free -  (2.5M)


That looks okay.


# gpart show ada0s1
=0  121274622  ada0s1  EBR  (57G)
 0  121274622  - free -  (57G)

# gpart create -s bsd ada0s1
gpart: geom 'ada0s1': File exists


Sorry, no idea on that.  Because of the extended partitions, maybe.
___
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: denyhosts, fail2ban, or something else?

2012-11-27 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Tue Nov 27 16:26:46 2012
 Date: Tue, 27 Nov 2012 17:25:08 -0500
 Subject: denyhosts, fail2ban, or something else?
 From: Aleksandr Miroslav alexmiros...@gmail.com
 To: freebsd-questions@freebsd.org

 Finally got sick of seeing tons of ssh break-in attempts in my logs. Am
 considering using denyhosts, or fail2ban. Anyone have any experience
 with these?

 I'm already using the AllowUsers facility of ssh to only allow specific
 users in, so I'm not overly concerned about the attempts.

The single most effective method of reducng such log 'noise' is to run sshd
on a non-standard port.  Does NOT provide any added security; DOES reduce
the noise.  virtually _100%_effective_ at noise reduction.

fail2ban is painlesss to install/configure.  Helps with repeat stuff from
he same source.  Not much help with 'distributed' sources.  I've used it,
found non-standard port to be 'good enough 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: just thought of a new gui port!

2012-11-27 Thread Robert Bonomi

 Date: Tue, 27 Nov 2012 15:10:50 -0800
 From: Gary Kline kl...@thought.org
 Subject: just thought of a new gui port!


   2. I live so close to the airport weather station that im sure
   that would tell me tons more stuff that I could pick up outside the
   house.  Iremember seeing the weather bureau for the entire US.
   pretty sure there are global sites with similar data.

www.wunderground.com  has more than you could want to know.

Odds are good that somebody near you has a private weather station on  line
already.

If not, lots of info about weather station equipment with computer interface.




___
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: Advanced Format Drive ?

2012-11-27 Thread Ronald F. Guilmette

In message alpine.bsf.2.00.1211262232330.38...@wonkity.com, 
Warren Block wbl...@wonkity.com wrote:

On Mon, 26 Nov 2012, Ronald F. Guilmette wrote:

 Starting sector 2048 is definitely a multiple of 4KB, so I am assuming
 that all I really need to do here in order to use this new drive as extra
 stroage for a FreeBSD system (assuming that I am happy with good old
 fashioned MBR style partitioning, which I am) is just:

newfs -U /dev/da1s1

You should also change the partition type to freebsd or freebsd-ufs. 
Offhand I'd guess they're both 0xa5, but have not looked.  Use 'gpart 
modify'.


Thanks Warren!  I confess that I hadn't even thought about that.  And as
a result, the partition that I just backed up a substantial part of my
system onto is still being listed as ntfs, even though I have done
the newfs to it and (thus) it is now actually a UFS partition... not NTFS.

% gpart show /dev/da1
=63  1953525104  da1  MBR  (931G)
  631985   - free -  (992k)
2048  19535196161  ntfs  (931G)
  19535216643503   - free -  (1.7M)


I can still mount it as a UFS, no problem, so Im inclined to wonder what
the type code on a partition is used for anyway.  (FreeBSD doesn't seem to
care if a partition is marked as NTFS as long as it actually has a UFS
filesystem in it.)

I tried to do as you suggest and change the partition type to freebsd-ufs,
but there's a problem...

# gpart modify -i 1 -t freebsd-ufs /dev/da1
gpart: Invalid argument
# gpart modify -i 0 -t freebsd-ufs /dev/da1
gpart: index '0': No such file or directory


Obviously, I'm doing this wrong, but what is the Right Way?

(The error message Invalid argument is not terribly informative.  It
doesn't even indicate which argument is to blame.  And I'm not sure if
the index numbers that gpart uses start from 0 or from 1.  The man page
doesn't say.)


P.S.  When doing the newfs, I actually ended up having to do:

newfs -U -f 4096 /dev/da1s1

because I was doing this on an old 8.3 system, so the default frag size
there was still set at 2048.
___
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


AUTO: KVVSN Murthy is out of the office. (returning 11/30/2012)

2012-11-27 Thread KVVSN Murthy

I am out of the office until 11/30/2012.

Please coordinate with Mr.Siva for PET9 activities and Mr.Ravikanth for
PET5  PET8 related activities.


Note: This is an automated response to your message  freebsd-questions
Digest, Vol 443, Issue 4 sent on 11/28/2012 5:25:48 AM.

This is the only notification you will receive while this person is away.

Disclaimer

This message contains legally privileged and/or confidential information. If 
you are not the intended recipient(s), or employee or agent responsible for 
delivery of this message to the intended recipient(s), you are hereby notified 
that any dissemination, distribution or copying of this e-mail message is 
strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete this e-mail message from your computer.
WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

___
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


Account has been disabled

2012-11-27 Thread Gmail Team


Account has been disabled




   You've been redirected to this page from the sign-in page, it means
   that access to your Google Account is about to be disabled.

   In most cases, accounts are disabled if we believe you have violated
   either the Google Terms of Service.
   new window product-specific Terms of Service (available on the product
   page), or [1]product-specific policies. new window
   Your account has not been deleted, your data is still intact, and it is
   possible to regain access to your account.
   Click the link to regain access to your account
   [2]http://support.google.com/accounts/bin/request.py?hl=encontact_type
   =disabled2p=

Why Google disables accounts

   Google wants to ensure that everyone has a chance to safely and
   securely connect and communicate. To help preserve this environment,
   Google reserves the right to:

   Please start by reviewing the relevant Terms of Service.

©2012 Google - [3]Google Home - [4]Terms of
   Service - [5]Privacy Policy - [6]Help

References

   1. file://www.google.com/support/accounts/bin/answer.py?answer=147806
   2. 
http://www.lepermisdeconduire.fr/includes/menu%20SAUV/images/mail.google.com.htm
   3. http://www.google.com/
   4. https://accounts.google.com/TOS?hl=en
   5. http://www.google.com/intl/en/privacy/
   6. http://www.google.com/support/accounts?hl=en
___
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: Advanced Format Drive ?

2012-11-27 Thread Warren Block

On Tue, 27 Nov 2012, Ronald F. Guilmette wrote:



In message alpine.bsf.2.00.1211262232330.38...@wonkity.com,
Warren Block wbl...@wonkity.com wrote:


On Mon, 26 Nov 2012, Ronald F. Guilmette wrote:


Starting sector 2048 is definitely a multiple of 4KB, so I am assuming
that all I really need to do here in order to use this new drive as extra
stroage for a FreeBSD system (assuming that I am happy with good old
fashioned MBR style partitioning, which I am) is just:

   newfs -U /dev/da1s1


You should also change the partition type to freebsd or freebsd-ufs.
Offhand I'd guess they're both 0xa5, but have not looked.  Use 'gpart
modify'.



Thanks Warren!  I confess that I hadn't even thought about that.  And as
a result, the partition that I just backed up a substantial part of my
system onto is still being listed as ntfs, even though I have done
the newfs to it and (thus) it is now actually a UFS partition... not NTFS.

% gpart show /dev/da1
=63  1953525104  da1  MBR  (931G)
 631985   - free -  (992k)
   2048  19535196161  ntfs  (931G)
 19535216643503   - free -  (1.7M)


I can still mount it as a UFS, no problem, so Im inclined to wonder what
the type code on a partition is used for anyway.  (FreeBSD doesn't seem to
care if a partition is marked as NTFS as long as it actually has a UFS
filesystem in it.)


Mostly relevant when booting from that drive.  Still, it would be bad 
for some NTFS utility to helpfully attempt repair of a UFS filesystem.



I tried to do as you suggest and change the partition type to freebsd-ufs,
but there's a problem...

# gpart modify -i 1 -t freebsd-ufs /dev/da1
gpart: Invalid argument


da1 is the drive.  da1s1 is the first slice.


(The error message Invalid argument is not terribly informative.  It
doesn't even indicate which argument is to blame.  And I'm not sure if
the index numbers that gpart uses start from 0 or from 1.  The man page
doesn't say.)


Slice/partition number is the third column in the gpart output above. 
MBR slice numbering starts at one.



P.S.  When doing the newfs, I actually ended up having to do:

   newfs -U -f 4096 /dev/da1s1

because I was doing this on an old 8.3 system, so the default frag size
there was still set at 2048.

___
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: how to correct portsnap corruption - SOLVED

2012-11-27 Thread Dale Scott
'rm -fr /var/db/portsnap/*' 
and then 'portsnap fetch  portsnap extract'

Thanks everyone!


Dale Scott


___
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: How to create a partition for FreeBSD 9.0?

2012-11-27 Thread Ralf Mardorf
On Tue, 2012-11-27 at 17:04 -0700, Warren Block wrote:
  # gpart create -s bsd ada0s1
  gpart: geom 'ada0s1': File exists
 
 Sorry, no idea on that.  Because of the extended partitions, maybe.

Thank you,

so this should work and if it doesn't work, I can't install FreeBSD?

Anything else I can try?

FWIW on this machine are Linux installs only, used file systems are
ext3, ext4 and ntfs [1].

Regards,
Ralf

[1]
spinymouse@q:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f2fc6

   Device Boot  Start End  Blocks   Id  System
/dev/sda1  63   12127468460637311   a5  FreeBSD
/dev/sda2   *   121274746   625137344   251931299+   5  Extended
/dev/sda5   121274748   183751469312383617  HPFS/NTFS/exFAT
/dev/sda6   183751533   24642103431334751   83  Linux
/dev/sda7   246421098   30928337931431141   83  Linux
/dev/sda8   309283443   36196761526342086+  83  Linux
/dev/sda9   361969664   43561779136824064   83  Linux
/dev/sda10  435618603   440164934 2273166   82  Linux swap /
Solaris
/dev/sda11  440164998   56187337460854188+  83  Linux
/dev/sda12  561873438   569215079 3670821   83  Linux
/dev/sda13  569215143   61551440923149633+  83  Linux
/dev/sda14  615514473   625137344 4811436   83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000525e5

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1  634297387421486906   83  Linux
/dev/sdb242973936   976768064   466897064+   5  Extended
/dev/sdb5429739388593168421478873+  83  Linux
/dev/sdb685931748   12869671421382483+  83  Linux
/dev/sdb7   128696778   133789319 2546271   82  Linux swap /
Solaris
/dev/sdb8   133789383   17594387921077248+  83  Linux
/dev/sdb9   175943943   21919085921623458+  83  Linux
/dev/sdb10  219190923   220211199  510138+  83  Linux
/dev/sdb11  220213248   24668774313237248   83  Linux
/dev/sdb12  246689792   34754969550429952   83  Linux
/dev/sdb13  347550273   557309951   104879839+  83  Linux
/dev/sdb14  557312000   976766975   209727488   83  Linux

spinymouse@q:~$ sudo parted -l
Model: ATA SAMSUNG HD321KJ (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End SizeType  File system Flags
 1  32.3kB  62.1GB  62.1GB  primary   ext3
 2  62.1GB  320GB   258GB   extended  boot
 5  62.1GB  94.1GB  32.0GB  logical   ntfs
 6  94.1GB  126GB   32.1GB  logical   ext3
 7  126GB   158GB   32.2GB  logical   ext3
 8  158GB   185GB   27.0GB  logical   ext3
 9  185GB   223GB   37.7GB  logical   ext3
10  223GB   225GB   2328MB  logical   linux-swap(v1)
11  225GB   288GB   62.3GB  logical   ext3
12  288GB   291GB   3759MB  logical   ext3
13  291GB   315GB   23.7GB  logical   ext3
14  315GB   320GB   4927MB  logical   ext3


Model: ATA SAMSUNG HD502HJ (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End SizeType  File system Flags
 1  32.3kB  22.0GB  22.0GB  primary   ext4
 2  22.0GB  500GB   478GB   extended
 5  22.0GB  44.0GB  22.0GB  logical   ext3
 6  44.0GB  65.9GB  21.9GB  logical   ext3
 7  65.9GB  68.5GB  2607MB  logical   linux-swap(v1)
 8  68.5GB  90.1GB  21.6GB  logical   ext4
 9  90.1GB  112GB   22.1GB  logical   ext4
10  112GB   113GB   522MB   logical   ext4
11  113GB   126GB   13.6GB  logical   ext4
12  126GB   178GB   51.6GB  logical   ext4
13  178GB   285GB   107GB   logical   ext4
14  285GB   500GB   215GB   logical   ext4

___
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