Re: How to view TCP advertised window by using tcpdump?

2008-09-05 Thread Patrick Mahan


EdwardKing presented these words - circa 9/3/08 10:15 PM-
 I use TCP client to connect daytimesesrver which port is 13,I want to know 
 how to use tcpdump to view TCP advertised window? Where is the TCP advertised 
 window in the tcpdump result?
 
 Thanks


When you run tcpdump, for tcp packets, look for the 'win' string.  For example, 
looking at a pop3 stream
I see -

tcpdump -i rl0 -s 1500 tcp and port pop3
[...]
23:00:38.371059 IP 10.0.0.10.pop3  10.0.0.1.33656: P 13468:14292(824) ack 96 
win 33304 nop,nop,timestamp 246782562 2080639302
23:00:38.373003 IP 10.0.0.1.33656  10.0.0.10.pop3: . ack 14292 win 65535 
nop,nop,timestamp 2080639302 246782562
23:00:38.629916 IP 10.0.0.1.33656  10.0.0.10.pop3: P 96:104(8) ack 14292 win 
65535 nop,nop,timestamp 2080639302 246782562
23:00:38.630021 IP 10.0.0.10.pop3  10.0.0.1.33656: P 14292:14325(33) ack 104 
win 33304 nop,nop,timestamp 246782588 2080639302

The win indicates the advertised window.  So 10.0.0.10 is advertising a 
window of 33304 bytes
and 10.0.0.1 is advertising a window of 65535 bytes.

Try 'man tcpdump'.

Patrick

 
 --
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying attachment(s) is intended only for the use of the intended
 recipient and may be confidential and/or privileged of Neusoft Corporation, 
 its subsidiaries and/or its affiliates. If any reader of this communication 
 is not the intended recipient, unauthorized use, forwarding, printing, 
 storing, disclosure or copying is strictly prohibited, and may be unlawful. 
 If you have received this communication in error, please immediately notify 
 the sender by return e-mail, and delete the original message and all copies 
 from your system. Thank you. 
 ---
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Portsnap: No Update Available

2008-09-05 Thread Zbigniew Szalbot

Hello,

Gerard:

Since last evening (2008-09-03), portsnap has been reporting this when
I run it:

Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
Fetching snapshot tag from portsnap2.FreeBSD.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.


The same happens my side of things...

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


Re: ThinkPad 3.0GHz: can anybody verify?

2008-09-05 Thread Ian Smith
On Thu, 04 Sep 2008 14:48:06 -0400 Steve Bertrand [EMAIL PROTECTED] wrote:
  Gary Kline wrote:
   On Wed, Sep 03, 2008 at 11:00:19PM -0400, Steve Bertrand wrote:
   Gary Kline wrote:
Folks,
  
I'm looking at a 3GHz ThinkPad w/out any OS.  It's got 
at most 512M memory and only 40G drive.  The guy I'm going to
have upgrade this l'top thinks it will take a 160GB drive easily.
Also that the RAM might max out at just 2GB.  

I had no trouble dropping a 120GB Fujitsu into my T23 recently (was 
30GB), so I expect 160GB would be fine, especially in a much later 
model.  And 2GB is likely plenty for anything but Microsloth Vasta.

Something to consider is what type of RAM it uses, eg the older PC133 
144-pin SDRAM I need for my T23 is now very expensive, ~U$70 per 512MB 
stick, or around A$100 shipped, where newer RAM is a fraction of that.

Any fellow TP-people onlist who know if my friend is right?
   If you specify the model of the laptop, a quick Google or search on IBM 
   (Lenovo) website will inform you what the maximum upgrade path on 
   hardware is on the box.
   
   
  So if this 3GHz was an X-41 or a T-41, there'll be someplace
  online with the exact specs?  Or is there more to the model 
  designation.   I have tried to find some specs on upgrade when I
  had my 600E.  Found nothing. 
  
  As an example (T-41):
  
  http://www-307.ibm.com/pc/support/site.wss/MIGR-58183.html

I've never heard of a uniprocessor Thinkpad running anywhere near 3GHz, 
but then there's lots I've never heard of .. but the T41[/p] only goes 
to 1.7GHz according to the above URL, so it must be a much later model.

On a quick check, the fastest T43 seems to be a Pentium M 770 @ 2.13GHz.

  In the past, when dealing with business client purchases, what upgrade 
  paths I could not find on a website or via documentation, I was always 
  able to call up and ask via telephone.
  
  GVood point! I'll find what what this guy's quals are.  No sense
  in blowing $400-500 out the window, then going Oh, S**t!

Well I certainly wouldn't buy a Thinkpad I didn't have the EXACT model 
number of, when that reveals the CPU type/speed, HD and RAM originally 
fitted, CD/CDRW/DVD[RW], screen size, video card, wireless etc options.

Maybe you (Gary) could post an URL illustrating one of these machines?

  This could lead me way into off-topic-ness, so I'm going to leave it 
  alone ;)

As in, what's the RGB code for Thinkpad Black? :)

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


Re: Portsnap: No Update Available

2008-09-05 Thread barbara
 Although the mirror changes, that rest of the message is the same.
 Except doing a ports freeze, I do not remember FBSD going 24 hours
 without some port being updated. I was just wondering if this is
 correct or if something is wrong with the mirrors.

 FreeBSD 7.1 maybe ? not sure if we are in ports freeze yet, but wouldnt
 surprise me.

Sorry, I'm not in this ml.
I've noted the same problem and a number of commits has been done in the 
meanwhile:
http://lists.freebsd.org/pipermail/cvs-ports/2008-September/date.html
http://www.freshports.org/date.php?date=2008/9/4
http://www.freshports.org/date.php?date=2008/9/5

Shouldn't ports freeze start on 2008/9/8 ? (according to 
http://www.freebsd.org/releases/6.4R/schedule.html)

kind regards
Barbara



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


RE: Google Chrome

2008-09-05 Thread jef moskot

On Thu, 4 Sep 2008, Ted Mittelstaedt wrote:
I must have missed something, how would running the Chrome browser 
collect our valuable data?


What other purpose would Google have for creating this software? 
Everything Google does is attempt to collect more data, whether it's 
collecting the world's email or convincing corporations, universities, 
private citizens, and everyone else that storing all their documents and 
records on Google servers is a great idea.


Whether this browser directly collects more data or simply assists them 
with their other collection methods, there's no other reasonable 
explanation for the creation of the tool.


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


Re: ThinkPad 3.0GHz: can anybody verify?

2008-09-05 Thread Wojciech Puchar

 This could lead me way into off-topic-ness, so I'm going to leave it
 alone ;)

As in, what's the RGB code for Thinkpad Black? :)



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


RE: Google Chrome

2008-09-05 Thread Wojciech Puchar

our valuable data?


What other purpose would Google have for creating this software? Everything 
Google does is attempt to collect more data, whether it's collecting the 
world's email or convincing corporations, universities, private citizens, and 
everyone else that storing all their documents and records on Google servers 
is a great idea.


EXACTLY like that. and google succeed in it, showing well that most 
people, even being doctors, professors etc.. don't understand such a 
simple thing. but it's their problem, as long as i'm not FORCED to use it.


Whether this browser directly collects more data or simply assists them with 
their other collection methods, there's no other reasonable explanation for 
the creation of the tool.


with some private person or a few - it could be possible that they do it 
because they like, and give it for free.


but certainly not in a huge corporation
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [kde-freebsd] upgrading kdeartwork to version 4.1.1 fetch error in ports

2008-09-05 Thread Martin Wilke
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Your portstree is broken please resync.


On Thu, Sep 04, 2008 at 02:01:49PM -0700, Dino Vliet wrote:
 Hi peeps,I want to upgrade my kde41 installation and the kdeartwork port 
 gives me troubles. I can't seem to fetch the files due to some checksum 
 mismatch. Can you help me out?The commands I entered and the output is here:# 
 portversion -l  
 # kdeartwork 
 
 # portupgrade -aRr   
 ---  Upgrading 'kdeartwork-4.1.0_1' to 'kdeartwork-4.1.1' 
 (x11-themes/kdeartwork4) 
 ---  Building '/usr/ports/x11-themes/kdeartwork4'
   
 ===  Cleaning for kdeartwork-4.1.1   
   
 ===  Vulnerability check disabled, database not found
   
 ===  Found saved configuration for kdeartwork-4.1.1
 ===  Extracting for kdeartwork-4.1.1
 = MD5 Checksum mismatch for KDE/kdeartwork-4.1.1.tar.bz2.
 = SHA256 Checksum mismatch for KDE/kdeartwork-4.1.1.tar.bz2.
 ===  Refetch for 1 more times files: KDE/kdeartwork-4.1.1.tar.bz2 
 KDE/kdeartwork-4.1.1.tar.bz2
 ===  Vulnerability check disabled, database not found
 ===  Found saved configuration for kdeartwork-4.1.1
 = kdeartwork-4.1.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/KDE.
 = Attempting to fetch from ftp://ftp.kde.org/pub/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from http://ftp.scarlet.be/pub/kde/stable/4.1.1/src/.
 fetch: 
 http://ftp.scarlet.be/pub/kde/stable/4.1.1/src/kdeartwork-4.1.1.tar.bz2: 
 Forbidden
 = Attempting to fetch from http://mirrors.isc.org/pub/kde/stable/4.1.1/src/.
 fetch: 
 http://mirrors.isc.org/pub/kde/stable/4.1.1/src/kdeartwork-4.1.1.tar.bz2: Not 
 Found
 = Attempting to fetch from 
 ftp://ftp.gtlib.cc.gatech.edu/pub/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 ftp://ftp.informatik.hu-berlin.de/pub/Mirrors/ftp.kde.org/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 http://ftp.gtlib.cc.gatech.edu/pub/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 ftp://ftp.oregonstate.edu/pub/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from ftp://ftp.solnet.ch/mirror/KDE/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from ftp://gd.tuwien.ac.at/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from http://gd.tuwien.ac.at/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 ftp://kde.mirrors.tds.net/pub/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 http://kde.mirrors.tds.net/pub/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 ftp://ftp.rz.uni-wuerzburg.de/pub/unix/kde/stable/4.1.1/src/.
 fetch: 
 ftp://ftp.rz.uni-wuerzburg.de/pub/unix/kde/stable/4.1.1/src/kdeartwork-4.1.1.tar.bz2:
  File unavailable (e.g., file not found, no access)
 = Attempting to fetch from http://mirrors.dotsrc.org/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from ftp://mirrors.dotsrc.org/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 ftp://ibiblio.org/pub/mirrors/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 http://ibiblio.org/pub/mirrors/kde/stable/4.1.1/src/.
 fetch: 
 http://ibiblio.org/pub/mirrors/kde/stable/4.1.1/src/kdeartwork-4.1.1.tar.bz2: 
 Moved Permanently
 = Attempting to fetch from http://kambing.vlsm.org/kde/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from http://mirrors.evolva.ro/kdeftp/stable/4.1.1/src/.
 fetch: kdeartwork-4.1.1.tar.bz2: local modification time does not match remote
 = Attempting to fetch from 
 ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.kde.org/stable/4.1.1/src/.
 
 
 [EMAIL PROTECTED] /usr/ports/graphics/digikam]# portversion -l 
  
 kdeartwork   
   
 [EMAIL PROTECTED] 

Re: /: write failed, filesystem is full

2008-09-05 Thread Nikola Knežević

On 5 Sep 2008, at 04:34 , Gautham Ganapathy wrote:



As soon as I start copying files from FTP, this is the error I get:
/: write failed, filesystem is full



I used to get the same error on freebsd 7.0-release if the bsd  
partition was
not aligned to cylinder boundaries. did sysinstall give any warnings  
about

this when you partitioned your harddrive?


No, there was no warning about alignment. Only warning was about disk  
geometry.


I tried to install FreeBSD couple of times, and third time it worked  
like charm :) No warning, no errors. Since I have two machines which  
are the same, I will try the second one today.


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


Re: Google Chrome

2008-09-05 Thread Kris Kennaway

jef moskot wrote:

On Thu, 4 Sep 2008, Ted Mittelstaedt wrote:
I must have missed something, how would running the Chrome browser 
collect our valuable data?


What other purpose would Google have for creating this software? 
Everything Google does is attempt to collect more data, whether it's 
collecting the world's email or convincing corporations, universities, 
private citizens, and everyone else that storing all their documents and 
records on Google servers is a great idea.


 Whether this browser directly collects more data or simply assists them
 with their other collection methods, there's no other reasonable
 explanation for the creation of the tool.

The big selling point of this browser is the performance of its 
Javascript engine compared to other existing browsers.  Javascript is 
what is used to run the client side of web applications...like Google 
Docs, and other Google applications.


Pushing the development of Javascript is directly tied to google's 
ability to launch more complex web-based applications in the future.


As for google collecting private data, this browser apparently does no 
more of that than other existing browsers, according to:


http://www.mattcutts.com/blog/google-chrome-communication/

Kris

P.S. This thread is off-topic for freebsd-questions, redirecting to chat.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Automatically starting user programs on boot

2008-09-05 Thread Ricardo Jesus

David Collins wrote:

| Date: Thu, 4 Sep 2008 13:06:54 +0200 (CEST)
| From: Sa?a Stupar [EMAIL PROTECTED]
| Subject: Automatically starting user programs on boot
| To: freebsd-questions@freebsd.org
| Message-ID:
|[EMAIL PROTECTED]
| Content-Type: text/plain;charset=iso-8859-2
|
| Hi!
|
| On my FBSD 7 server I also use screen with rtorrent. In case of server
| reboot (power outage, server goes on UPS then power down) the user need
| manually to login, then start screen and then rtorrent. Is it possible to
| start this procedure automatically and of course as certain user and not
| as root?
| I was thinking about .startup file or something in users home directory.
|
| Regards,
| Sasa

Hi,

I have been using rtorrent and screen for a while now, it is a great
setup. Anyway, I found an rc.d file for debian that I have changed to
make work for me on freebsd 7. I doubt it is as good as it could be,
but hey, it works fine for me :)

You will have to change some of the variables at the top of the file.
It opens screen on boot, names it rtorrent and starts rtorrent, does
its thing in the background. To connect to it type screen -r rtorrent

I placed it in /usr/local/etc/rc.d since it isn't part of the base
distribution. I also named it with a .sh suffix, I forget why but it
is something to do with a controlling terminal, I think. I also have a
nice .screenrc file if you would like since I know how much of a pain
it is to figure out!

$ cat /usr/local/etc/rc.d
#!/bin/sh

# PROVIDE: rtorrent
# REQUIRE: DAEMON

#
###Notes###
#
# This script depends on screen.
# For the stop function to work, you must set an
# explicit session directory using ABSOLUTE paths (no, ~ is not
absolute) in your rtorrent.rc.
# If you typically just start rtorrent with just rtorrent on the
# command line, all you need to change is the user option.
# Attach to the screen session as your user with
# screen -dr rtorrent. Change rtorrent with srnname option.
# Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com
##
###/Notes###
##

###
##Start Configuration##
###
# You can specify your configuration in a different file
# (so that it is saved with upgrades, saved in your home directory,
# or whateve reason you want to)
# by commenting out/deleting the configuration lines and placing them
# in a text file (say /home/user/.rtorrent.init.conf) exactly as you would
# have written them here (you can leave the comments if you desire
# and then uncommenting the following line correcting the path/filename
# for the one you used. note the space after the ..
# . /etc/rtorrent.init.conf

# system user to run as
user=davidcollins

# the system group to run as, not implemented, see d_start for
beginning implementation
# group=`id -ng $user`

# the full path to the filename where you store your rtorrent configuration
config=`su $user -c 'echo $HOME'`/.rtorrent.rc

# set of options to run with
options=

# default directory for screen, needs to be an absolute path
base=`su $user -c 'echo $HOME'`

# name of screen session
srnname=rtorrent

# file to log to (makes for easier debugging if something goes wrong)
logfile=/var/log/rtorrentInit.log
###
###END CONFIGURATION###
###

. /etc/rc.subr

PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin
name=rtorrent

rcvar=`set_rcvar`
eval ${rcvar}=\${${rcvar}:-'NO'}

start_precmd=checkcnfg
start_cmd=${name}_start
stop_cmd=${name}_stop

checkcnfg() {
exists=0
for i in `echo $PATH | tr ':' '\n'` ; do
if [ -f $i/$name ] ; then
exists=1
break
fi
done
if [ $exists -eq 0 ] ; then
err 3 cannot find rtorrent binary in PATH $PATH
fi
if ! [ -r ${config} ] ; then
err 3 cannot find readable config ${config}. check that it is
there and permissions are appropriate
fi
session=`getsession $config`
if ! [ -d ${session} ] ; then
err 3 cannot find readable session directory ${session} from
config ${config}. check permissions
fi
}

rtorrent_start()
{
echo Starting $name.
[ -d ${base} ]  cd ${base}
stty stop undef  stty start undef
## start screen with rtorrent inside
su ${user} -c screen -dm -S ${srnname} ${name} ${options} 21
1/dev/null | tee -a $logfile 2
}

rtorrent_stop()
{
echo Stopping $name.
session=`getsession $config`
if ! [ -s ${session}/rtorrent.lock ] ; then
return
fi
pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed
s/[^0-9]//g`
## make sure the pid doesn't belong to another process
if ps -A | grep -sq ${pid}.*rtorrent ; then
kill -s INT ${pid}
fi
}

getsession()
{
session=`cat $1 | grep ^[[:space:]]*session[[:space:]]*= | sed
s/^[[:space:]]*session[[:space:]]*=[[:space:]]*// `
echo $session
}

load_rc_config $name
run_rc_command $1

Re: Automatically starting user programs on boot

2008-09-05 Thread davidcollins001

 Minda sharing your .screenrc?



Sure, here it is. I have set the escape character to [ because it is
easier on my little finger than the default ctrl-a. It is easily
changed by changing escape to 'escape ^pP'. If you leave it as [ it
will play havok when trying to paste text into a terminal since
everytime it reads [ it reads the char after and does what ever that
binding does.

I haven't really changed much, but the important thing for me was the
hard status line. I found the default difficult to remember what was
open, I have set it up so that it shows all windows open with the
current highlighted in red with the host and time and date on the
right. There are probably other smart things that can be done, but
this suits me for now :)

$ cat ~/.screenrc
## to open multiple buffers:
## place dir and name in file in format
##   screen -t name
##   chdir dir
##   screen -t name2
##   chdir dir2
##   chdir
##
## call from in screen with
## (current screen has high number)
##  :source file
## or source it in .screenrc file

#source /tmp/screen_open

# COPY MODE
#Emacs  style  movement  keys  can  be customized by a
#  .screenrc command.  (E.g. markkeys h=^B:l=^F:$=^E)
#There is no simple method for a full emacs-style keymap, as
#  this involves multi-character codes.



#
# Example of a user's .screenrc file
#

# This is how one can set a reattach password:
# password ODSJQf.4IJN7E# 1234

# no annoying audible bell, please
vbell off

# start in $HOME directory
#chdir ${HOME}

# set file to copy paste buffer to
bufferfile /tmp/buf

# set activity alert
activity 'Activity in windown %n'

# detach on hangup
autodetach on

# don't display the copyright page
startup_message off

# emulate .logout message
pow_detach_msg Screen session of \$LOGNAME \$:cr:\$:nl:ended.

# advertise hardstatus support to $TERMCAP
# termcapinfo  * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'

# make the shell in every window a login shell
#shell -$SHELL

# autoaka testing
# shellaka ' |tcsh'
# shellaka '$ |sh'

# set every new windows hardstatus line to somenthing descriptive
# defhstatus screen: ^En (^Et)

defscrollback 1000

# don't kill window after the process died
# zombie ^[

# enable support for the alternate screen capability in all windows
# altscreen on


#
# xterm tweaks
#
#
# #xterm understands both im/ic and doesn't have a status line.
# #Note: Do not specify im and ic in the real termcap/info file as
# #some programs (e.g. vi) will not work anymore.
# termcap  xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
# terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
#
# #80/132 column switching must be enabled for ^AW to work
# #change init sequence to not switch width
# termcapinfo  xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
#
# # Make the output buffer large for (fast) xterms.
# #termcapinfo xterm* OL=1
# termcapinfo xterm* OL=100
#
# # tell screen that xterm can switch to dark background and has function
# # keys.
# termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
# termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
# termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
#
# # special xterm hardstatus: use the window title.
# termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
#
# #terminfo xterm 'vb=\E[?5h$200/\E[?5l'
# termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
#
# # emulate part of the 'K' charset
# termcapinfo   xterm 'XC=K%,%\E(B,[\304,\326,]\334,{\344,|\366,}\374,~\337'
#
# # xterm-52 tweaks:
# # - uses background color for delete operations
# termcapinfo xterm* be


# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b .I
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E8;5;%dm:AF=\E8;5;%dm'
# erase background with current bg color
defbce on

# 
# #
# # wyse terminals
# #
#
# #wyse-75-42 must have flow control (xo = terminal uses xon/xoff)
# #essential to have it here, as this is a slow terminal.
# termcapinfo wy75-42 xo:hs@
#
# # New termcap sequences for cursor application mode.
# termcapinfo wy*
CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J
#
# 
# #
# # other terminals
# #
#
# # make hp700 termcap/info better
# termcapinfo  hp700
'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61p:ds=\E[62p\E[1$~\E[61p:ic@'
#
# # Extend the vt100 desciption by some sequences.
# termcap  vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
# terminfo vt100*
ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
# termcapinfo linux C8
# # old rxvt versions also need this
# # termcapinfo rxvt C8
#
#

#
# keybindings
#

# remap C-a  to t
#escape ^Zz
escape [[   # try this !?! - press open bracket then cmd
# nice if it stops me using 

freebsd-update

2008-09-05 Thread Vlad GURDIGA
Hello,

I've run today freebsd-update fetch and it found some updates,
including /boot/kernel/kernel:

The following files will be updated as part of updating to 7.0-RELEASE-p4:
/boot/kernel/kernel
/boot/kernel/kernel.symbols
/usr/src/sys/amd64/amd64/exception.S
/usr/src/sys/conf/newvers.sh
/usr/src/sys/kern/vfs_mount.c
/usr/src/sys/netinet6/icmp6.c

Then I ran freebsd-update install

# freebsd-update install
Installing updates... done.

I guess this does not update my running kernel and I have to reboot to
really update it. Right? Or is there any way to do this without
reboot? O course I doubt it but I'd like to make sure I'm not missing
some magic feature... :-).

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


Re: freebsd-update

2008-09-05 Thread Michael Lednev

Vlad GURDIGA пишет:

I guess this does not update my running kernel and I have to reboot to
really update it. Right? Or is there any way to do this without
reboot? O course I doubt it but I'd like to make sure I'm not missing
some magic feature... :-).


  


Yes, reboot is required.

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


Re: Google Chrome

2008-09-05 Thread Wojciech Puchar
As for google collecting private data, this browser apparently does no more 
of that than other existing browsers, according to:


http://www.mattcutts.com/blog/google-chrome-communication/


of course. they just start.. just wait a bit
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


broken autoconf upgrade

2008-09-05 Thread Michael P. Soulier
While running portupgrade -ai, I noticed this

else \
  rc=$?; \
  cd .  \
  $restore $backupdir/* `echo ./autoconf-2.62.info | sed 's|[^/]*$||'`
; \
fi; \
rm -rf $backupdir; exit $rc
autoconf-2.62.texi:1723: Unknown command `'.
autoconf-2.62.texi:3353: Unknown command `'.
autoconf-2.62.texi:3920: Unknown command `'.
autoconf-2.62.texi:3935: Unknown command `'.
autoconf-2.62.texi:3947: Unknown command `'.
autoconf-2.62.texi:3965: Unknown command `'.
autoconf-2.62.texi:3986: Unknown command `'.
autoconf-2.62.texi:4001: Unknown command `'.
autoconf-2.62.texi:4019: Unknown command `'.
autoconf-2.62.texi:4027: Unknown command `'.

So, this won't upgrade. Anyone else see that?

Mike
-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Google Chrome

2008-09-05 Thread John Nielsen
On Tuesday 02 September 2008, Vlad GURDIGA wrote:
 On Wed, Sep 3, 2008 at 12:14 AM, Beech Rintoul [EMAIL PROTECTED] wrote:
  On Tuesday 02 September 2008, Vlad GURDIGA said:
  Hello,
 
  In Google Chrome System requirements
  (http://www.google.com/support/chrome/bin/answer.py?answer=95411to
 pic=14660) they say that a Linux version is going to appear. And in
  the Download and install help article
  (http://www.google.com/support/chrome/bin/answer.py?answer=95346qu
 ery=open-sourcetopic=type=) they say that it is open-source.
 
  Does this mean that is hope we'll have a FreeBSD version?
 
  If someone steps up and rolls and submits the port. You're welcome to
  volunteer :-)

 I'd be glad to, but I'm afraid I do not have the skills for that... :-(

It won't be trivial to port. Last night I got as far as installing the 
recommended versions of the dependencies (including nspr and nss a version 
ahead of what's currently in ports). The chromium build script assumes the 
existence of /proc and /bin/bash. I stopped trying for now when I 
discovered that it doesn't even run configure for some of the third-party 
tools. It uses canned header files generated for Linux or Mac..

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


flyspray and php 5/postgresql weirdness, help ...

2008-09-05 Thread O. Hartmann

hello,
for development in our scientific environment I setup 
/usr/ports/devel/flyspray, running with a postgresql 8.3.3 backend on a 
FreeBSD 7.1-PRE box.
After a successful installation, I get this error while trying to reach 
the freshly installed server via https://host/flyspray/:


Query {SELECT p.*, c.content AS pm_instructions, c.last_updated AS 
cache_update FROM flyspray_projects p LEFT JOIN flyspray_cache c ON 
c.topic = p.project_id AND c.type = 'msg' WHERE p.project_id = ?} with 
params {1} Failed! (ERROR: operator does not exist: character varying = 
integer LINE 3: ... LEFT JOIN flyspray_cache c ON c.topic = 
p.projec... ^ HINT: No operator matches the given name and argument 
type(s). You might need to add explicit type casts.)


I do not know whether the shown problem is postgresql-syntactical or a 
php 5 problem, so I guess it's a kind of both.


By the way, the webserver is Lighttpd and not Apache, so it may could be 
a fastcgi.server problem?


I would appreciate any hint or tip, thanks a lot ...

Oliver


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


portsnap in cron and firewall

2008-09-05 Thread Albert Shih
Hi all

I've some servers for internal use. On those servers I have some pf (or
ipfw) rule to deny any connection from inside to outside. 

Long time ago when ports tree is update with cvs, I'm using something like

pf command to open inside -- outside connection
cvsup 
portupgrade --fetch-only --all
pf command to close inside -- outside connection

But now with portsnap cron (that's mean random sleep) I don't known when
the system try to connect outside. 

Do you have any idea how can I make my update using portsnap (I known I can
use cvsup) in a crontab with my network config ? 

Regards.

-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Ven 5 sep 2008 16:07:27 CEST
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Google Chrome

2008-09-05 Thread Robert Huff
John Nielsen writes:

  It won't be trivial to port. Last night I got as far as
  installing the recommended versions of the dependencies
  (including nspr and nss a version ahead of what's currently in
  ports). The chromium build script assumes the existence of /proc
  and /bin/bash. I stopped trying for now when I discovered that it
  doesn't even run configure for some of the third-party
  tools. It uses canned header files generated for Linux or Mac..

Have you offered your changes back to Google?


Robert Huff


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


How to delete non-ASCII chars in file

2008-09-05 Thread Mark B.
I have a text file that includes some non-ASCII characters
For example, opening the file in vi shows lines like this:

 'easth_0.541716776378'  0   \xe2\x80\x98dire'   2

Is there a command-line tool I can use to delete these
characters?  I tried:

cat f | tr -cd [:print:]

but this removes the newlines.

I also tried

   cat f | sed s/[^:print:]//g

but it didn't remove the characters.

Thanks,

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


Re: How to delete non-ASCII chars in file

2008-09-05 Thread Giorgos Keramidas
On Fri, 5 Sep 2008 10:14:08 -0400, Mark B. [EMAIL PROTECTED] wrote:
 I have a text file that includes some non-ASCII characters
 For example, opening the file in vi shows lines like this:

  'easth_0.541716776378'  0   \xe2\x80\x98dire'   2

 Is there a command-line tool I can use to delete these
 characters?  I tried:

 cat f | tr -cd [:print:]

 but this removes the newlines.

Hi Mark,

It may be more useful to run the file through sed(1).  The newlines
aren't deleted by sed:

$ echo '^Fhello^F' | sed -e 's/[^[:print:]]*//' | hd
  68 65 6c 6c 6f 06 0a  |hello..|
0007
$

 I also tried

cat f | sed s/[^:print:]//g

 but it didn't remove the characters.

The matching pattern is wrong.  You need `[^[:print:]]'.  The character
class of printable characters is `[:print:]', and you can negate the
pattern with `[^]' where `' is the character class; hence the
extra pair of brackets in `[^[:print:]]'.

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


RE: portsnap in cron and firewall

2008-09-05 Thread Sean Cavanaugh


 Date: Fri, 5 Sep 2008 16:14:02 +0200 From: [EMAIL PROTECTED] To: 
 freebsd-questions@freebsd.org Subject: portsnap in cron and firewall  Hi 
 all  I've some servers for internal use. On those servers I have some pf 
 (or ipfw) rule to deny any connection from inside to outside.   Long time 
 ago when ports tree is update with cvs, I'm using something like  pf 
 command to open inside -- outside connection cvsup  portupgrade 
 --fetch-only --all pf command to close inside -- outside connection  But 
 now with portsnap cron (that's mean random sleep) I don't known when the 
 system try to connect outside.   Do you have any idea how can I make my 
 update using portsnap (I known I can use cvsup) in a crontab with my network 
 config ?  
 
portsnap cron just randomizes the time to download unlike portsnap fetch 
which says to do it right now. cron was added to help randomize the time so 
everyone syncing at midnight UTC arent all hitting at exact same 
time.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Starting and using services -- Single-user mode -- TECRA_A9-S9017

2008-09-05 Thread freebsd_user
I have the need to start and use service while in single_user mode.  To 
this point I'm not able to use 'top' or 'ps' respectively.  In 
addition,from the CLI; when I attempt to start services such as 
'portmap' and 'sshd' nothing is shown running via 'ps'.  All I see are 
the headers when I issue th 'ps aux' command.


I'm sure its possible to do what I'm attempting, but given the crippled 
situation of this box, I'm stuck in Single-user mode and need to start 
enough services that will allow the use of 'scp' in order to move some 
zipped/crucial files from the crippled box to another machine on the 
same network.



There are no other options, I need to do this from single-user mode.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portsnap in cron and firewall

2008-09-05 Thread Albert Shih
 Le 05/09/2008 à 11:33:59-0400, Sean Cavanaugh a écrit
 
 
  Date: Fri, 5 Sep 2008 16:14:02 +0200 From: [EMAIL PROTECTED]
  To: freebsd-questions@freebsd.org Subject: portsnap in cron and
  firewall  Hi all  I've some servers for internal use. On those
  servers I have some pf (or ipfw) rule to deny any connection from
  inside to outside.   Long time ago when ports tree is update with
  cvs, I'm using something like  pf command to open inside --
  outside connection cvsup  portupgrade --fetch-only --all pf
  command to close inside -- outside connection  But now with
  portsnap cron (that's mean random sleep) I don't known when the
  system try to connect outside.   Do you have any idea how can I
  make my update using portsnap (I known I can use cvsup) in a
  crontab with my network config ? 
  
 portsnap cron just randomizes the time to download unlike portsnap
 fetch which says to do it right now. cron was added to help randomize
 the time so everyone syncing at midnight UTC arent all hitting at
 exact same time.

Yes I known. That's why I'm asking you how can I make portsnap through the
cron and opening firewall just before he going to make the connection.

Of course I can hack the portsnap to make he don't try to see if it's fork
by cron or not. But it's not a good idea IMHO, what's happen if all person
do that ? 

Regards.

-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Ven 5 sep 2008 17:41:30 CEST
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: portsnap in cron and firewall

2008-09-05 Thread Sean Cavanaugh


 Date: Fri, 5 Sep 2008 17:43:44 +0200 From: [EMAIL PROTECTED] To: [EMAIL 
 PROTECTED] CC: freebsd-questions@freebsd.org Subject: Re: portsnap in cron 
 and firewall   Le 05/09/2008 à 11:33:59-0400, Sean Cavanaugh a écrit   
 Date: Fri, 5 Sep 2008 16:14:02 +0200 From: [EMAIL PROTECTED]   
 To: freebsd-questions@freebsd.org Subject: portsnap in cron and   
 firewall  Hi all  I've some servers for internal use. On those   
 servers I have some pf (or ipfw) rule to deny any connection from   
 inside to outside.   Long time ago when ports tree is update with   cvs, 
 I'm using something like  pf command to open inside --   outside 
 connection cvsup  portupgrade --fetch-only --all pf   command to close 
 inside -- outside connection  But now with   portsnap cron (that's mean 
 random sleep) I don't known when the   system try to connect outside.   
 Do you have any idea how can I   make my update using portsnap (I known I 
 can use cvsup) in a   crontab with my network config ? portsnap 
 cron just randomizes the time to download unlike portsnap  fetch which 
 says to do it right now. cron was added to help randomize  the time so 
 everyone syncing at midnight UTC arent all hitting at  exact same time.  
 Yes I known. That's why I'm asking you how can I make portsnap through the 
 cron and opening firewall just before he going to make the connection.  Of 
 course I can hack the portsnap to make he don't try to see if it's fork by 
 cron or not. But it's not a good idea IMHO, what's happen if all person do 
 that ? 
I think you misread what i was saying. Inside your cron job use portsnap 
fetch instead of portsnap cron. that way it will fetch exactly when you run 
the cron job, without the randomized delay.
 
most likely a shell script that would have the following:
1)open pf
2)portsnap fetch
3)portsnap update (- you were missing this important step also)
4)portupgrade --fetch-only --all
5)close pf___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portsnap in cron and firewall

2008-09-05 Thread Albert Shih
 Le 05/09/2008 à 11:51:57-0400, Sean Cavanaugh a écrit
 ---
 
  Yes I known. That's why I'm asking you how can I make portsnap through the
  cron and opening firewall just before he going to make the connection.
 
  Of course I can hack the portsnap to make he don't try to see if it's fork
  by cron or not. But it's not a good idea IMHO, what's happen if all person
  do that ?
 
 I think you misread what i was saying. Inside your cron job use portsnap
 fetch instead of portsnap cron. that way it will fetch exactly when you run
 the cron job, without the randomized delay.
  
 most likely a shell script that would have the following:
 1)open pf
 2)portsnap fetch
 3)portsnap update (- you were missing this important step also)
 4)portupgrade --fetch-only --all
 5)close pf

Yes I known ;-) and I understand what you saying. But what I'm saying is if
the developper of portsnap think it's useful to put some randomized delay
I'm going to follow this. Because if I make what you say how can I known
after 1 or 2 years there no other enough users to do same thing and make the
portsnap server overload ? Event I make some «randomize» time in the
crontab it's only when I make the crontab, that's mean every day the
portsnap is launch in the same moment. 

The best solution is to make some «hook_script» in the portsnap and after
the randomize delay is over just before the fetch is launch to run a
hook-script

So now 
portsnap cron = sleep random_time; portsnap fetch

what I think is 

portsnap cron -h hook-script = sleep random_time; sh hook-script; 
portsnap fetch

regards.


-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Ven 5 sep 2008 17:53:37 CEST
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portsnap in cron and firewall

2008-09-05 Thread RW
On Fri, 5 Sep 2008 16:14:02 +0200
Albert Shih [EMAIL PROTECTED] wrote:

 Hi all
 
 I've some servers for internal use. On those servers I have some pf
 (or ipfw) rule to deny any connection from inside to outside. 
 
 Long time ago when ports tree is update with cvs, I'm using something
 like
 
 pf command to open inside -- outside connection
 cvsup 
 portupgrade --fetch-only --all
 pf command to close inside -- outside connection
 
 But now with portsnap cron (that's mean random sleep) I don't known
 when the system try to connect outside. 
 
 Do you have any idea how can I make my update using portsnap (I known

You can do this

sleep `jot -r  1 0 3599`
open pf
portsnap fetch
close pf


However, I would suggest you simply create pf rules to allow the
server contact to the portsnap servers. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Starting and using services -- Single-user mode -- TECRA_A9-S9017

2008-09-05 Thread Ivan Voras
[EMAIL PROTECTED] wrote:
 I have the need to start and use service while in single_user mode.  To
 this point I'm not able to use 'top' or 'ps' respectively.  In

ps is in /bin, top is in /usr/bin ; unless you a) have your PATH wrong
or b) commonly put /bin on separate file systems, you should be able to
use ps and others in /bin and /sbin.

 addition,from the CLI; when I attempt to start services such as
 'portmap' and 'sshd' nothing is shown running via 'ps'.  All I see are
 the headers when I issue th 'ps aux' command.

Are your world and kernel matched?

 I'm sure its possible to do what I'm attempting, but given the crippled
 situation of this box, I'm stuck in Single-user mode and need to start
 enough services that will allow the use of 'scp' in order to move some
 zipped/crucial files from the crippled box to another machine on the
 same network.

When you enter single user mode, root file system is mounted read-only
so one of the first things you need to do is mount -u -o rw /. Next,
you need to mount your other file systems (/usr is usually a separate
file system and that's where ssh lives) so do mount -a. At this point
you might as well cancel the single-user mode by exiting the shell and
go multi-user.

If there are file system errors. mount -a will fail and you'll need to
mount other file systems by hand.



signature.asc
Description: OpenPGP digital signature


Re: How to delete non-ASCII chars in file

2008-09-05 Thread Mark B.
On Fri, Sep 5, 2008 at 10:58 AM, Giorgos Keramidas
[EMAIL PROTECTED] wrote:

 $ echo '^Fhello^F' | sed -e 's/[^[:print:]]*//' | hd
   68 65 6c 6c 6f 06 0a  |hello..|
 0007
 $

Thanks.

 The matching pattern is wrong.  You need `[^[:print:]]'.  The character
 class of printable characters is `[:print:]', and you can negate the
 pattern with `[^]' where `' is the character class; hence the
 extra pair of brackets in `[^[:print:]]'.

In case you are interested, I've patched the re_format man page with this
example.  I had read it, and it says :print: is the name of the character
class.  I think the concrete example helps clarify things.

A follow question--is it possible to use that statement in a Makefile (BSD)?
A straight cut 'n paste didn't work, and I couldn't figure out the escaping to
make it work.

Thanks,

m

cd to /usr/src/lib/libc/regex/ and apply this patch.

--- /dev/null Fri Sep  5 12:12:21 2008
+++ re_format.7Fri Sep  5 12:18:29 2008
@@ -288,6 +288,10 @@
 A locale may provide others.
 A character class may not be used as an endpoint of a range.
 .Pp
+To match all characters not in a class, use a bracket expression
+like this:
+.Ql [^[:print:]] .
+.Pp
 There are two special cases\(dd of bracket expressions:
 the bracket expressions
 .Ql [[::]]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: string split, bash and IFS

2008-09-05 Thread Jim Hertzler

#!/bin/bash
# Split the command line argument on the colon character.

SaveIFS=$IFS
IFS=:
declare -a Array=($*)
IFS=SaveIFS

echo Array[0]=${Array[0]}
echo Array[1]=${Array[1]}
echo Array[2]=${Array[2]}
echo Array[3]=${Array[3]}


Unga wrote:
 
 Hi all
 
 How to use bash and IFS to split a string?
 
 eg. 
 $string = Name:Surname:10
 IFS=:
 echo $string | read name surname age
 
 This does not work for some reason. The read does not create name, surname
 and age variables. Any idea why?
 
 Appreciate your reply.
 
 Kind regards
 Unga
 
 
   
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 

-- 
View this message in context: 
http://www.nabble.com/string-split%2C-bash-and-IFS-tp19140697p19335104.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: How to delete non-ASCII chars in file

2008-09-05 Thread Mark B.
On Fri, Sep 5, 2008 at 12:27 PM, Mark B. [EMAIL PROTECTED] wrote:
 A follow question--is it possible to use that statement in a Makefile (BSD)?
 A straight cut 'n paste didn't work, and I couldn't figure out the escaping to
 make it work.

Never mind, it works just fine.

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


Re: string split, bash and IFS

2008-09-05 Thread Polytropon
Please allow me a sidenote:

On Fri, 5 Sep 2008 09:38:29 -0700 (PDT), Jim Hertzler [EMAIL PROTECTED] wrote:
 
 #!/bin/bash
^
Isn't compatible to FreeBSD, I think, because BASH is an additional
package and the bash binary will be installed into /usr/local/bin/bash;
unless you're not using any features that are exclusively in bash
(and not in sh), declare /bin/sh as shell (standard scripting shell
in UNIX). So if you use BASH on FreeBSD, BASH scripts would need
to have the header

#!/usr/local/bin/bash

on order to operate correctly - unless, of course, you modify your
system to have BASH as /bin/bash (copying, symlinking)...



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: which gray is best for print?

2008-09-05 Thread Frank Shute
On Wed, Sep 03, 2008 at 04:14:42PM -0700, Gary Kline wrote:

 This is for any webmaster types:  which color gray (in hex, #xx)
 is best for a site that has probably very long articles?  I've googled
 around and found various grays such as #696969 or #708090, but I
 haven't found anything that really fits what I want.  URL, anybody?
 Or if there is a color-chooser in ports, that too, altho I haven't found
 anything in ports/x11 or ports/www.
 
 To prevent boredom, two shades of deep gray or blue-gray would be besy.
 
 tia,
 
 gary

I can't tell you which grey is most suitable but I can tell you how I
go about choosing a colour.

Install: x11/rgb

Then:

$ showrgb | less

will give you the names of the 256 websafe colours and their rgb
values.

I usually check out the colours by:

$ xterm -bg DarkSalmon

etc.

Alternatively, you can use css and set an html pages bg properties:

style type=text/css
body{
background-color: rgb(233,150,122);
}
/style

 view it in your browser.

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


HP 2133 MiniNote FreeBSD

2008-09-05 Thread kuantem

If anyone else out there is trying to run FreeBSD 7 on their HP 2133 MiniNote
lets share some progress.

I'm currently having issues with the Broadcom wireless card working and
along with the audio drivers. After compiling a new KERNEL the hardware is
located however I'm getting no sound and no activity from wifi.

Suggestion anyone? 

I'll post my kernel config and dmesg in a few...
-- 
View this message in context: 
http://www.nabble.com/HP-2133-MiniNote---FreeBSD-tp19335910p19335910.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: Google Chrome

2008-09-05 Thread John Nielsen
On Friday 05 September 2008, Robert Huff wrote:
 John Nielsen writes:
   It won't be trivial to port. Last night I got as far as
   installing the recommended versions of the dependencies
   (including nspr and nss a version ahead of what's currently in
   ports). The chromium build script assumes the existence of /proc
   and /bin/bash. I stopped trying for now when I discovered that it
   doesn't even run configure for some of the third-party
   tools. It uses canned header files generated for Linux or Mac..

   Have you offered your changes back to Google?

Haven't made any changes yet, just observations. I did send my updated nss 
port to the maintainer.. If I make any headway on Chromium itself I don't 
intend to keep it private, though I don't think it'll be a priority any 
time soon.

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


Re: How to delete non-ASCII chars in file

2008-09-05 Thread Giorgos Keramidas
On Fri, 5 Sep 2008 12:27:12 -0400, Mark B. [EMAIL PROTECTED] wrote:
 On Fri, Sep 5, 2008 at 10:58 AM, Giorgos Keramidas
 [EMAIL PROTECTED] wrote:

 $ echo '^Fhello^F' | sed -e 's/[^[:print:]]*//' | hd
   68 65 6c 6c 6f 06 0a  |hello..|
 0007
 $

 In case you are interested, I've patched the re_format man page with
 this example.  I had read it, and it says :print: is the name of the
 character class.  I think the concrete example helps clarify things.

Excellent, thank you!  Using your text as a starting point, I've
committed two examples to the manpage now: one for matching the
characters of a class, and one for matching all the characters *not* in
a class.

%%%
Index: re_format.7
===
--- re_format.7 (revision 182794)
+++ re_format.7 (working copy)
@@ -288,6 +288,14 @@
 A locale may provide others.
 A character class may not be used as an endpoint of a range.
 .Pp
+A bracketed expression like
+.Ql [[:class:]]
+can be used to match a single character that belongs to a character
+class.
+The reverse, matching any character that does not belong to a specific
+class, the negation operator of bracket expressions may be used:
+.Ql [^[:class:]] .
+.Pp
 There are two special cases\(dd of bracket expressions:
 the bracket expressions
 .Ql [[::]]
%%%

Does this look ok?  If not, we can commit a followup change and refine
it in the next 2-3 days.  Then I'll file an MFC request with our release
engineering team, and merge it to stable branches too.

 A follow question--is it possible to use that statement in a Makefile
 (BSD)?  A straight cut 'n paste didn't work, and I couldn't figure out
 the escaping to make it work.

It should be possible.  Quoting may be a bit trickier in Makefiles, but
can you show me the Makefile you tried?



pgprSAFBsodyO.pgp
Description: PGP signature


Strange traffic originating from httpd

2008-09-05 Thread Peter Boosten
Hi all,

Just today I noticed some strange UDP4 traffic from my webserver to an
IP address unknown to me, connecting to port 8000 (UDP).

Sockstat showed httpd (running as www) as the culprit.
Does anyone know what could cause this?

I run several websites (Joomla, Wordpress, Coppermine, Nucleus), so
maybe some plugin does this.

My setup:

FreeBSD 7 patch 4
Apache 2.2.9_3 (from ports)
PHP5.2.6 (not from ports)

Thanks in advance for your answers.

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


Re: How to delete non-ASCII chars in file

2008-09-05 Thread Mark B.
On Fri, Sep 5, 2008 at 1:38 PM, Giorgos Keramidas [EMAIL PROTECTED] wrote:

 Does this look ok?

Looks good to me.

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


sendmail not authenticating with smart host

2008-09-05 Thread Derrick Ryalls
Greetings,

Due to port 25 restrictions, I am trying to get my brother's email
server to authenticate out on port 587.  I have sendmail talking via
port 587, but it is not properly authenticating.  To help narrow
things down, I am having his machine route all mail to my machine with
authentication.  His machine is a running version 7:   7.0-RELEASE
FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008

Here are some relevant parts of the hostname.mc file:

define(`SMART_HOST', `myserver.com')
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info.db')dnl

auth/client-info has this:

AuthInfo:myserver.com U:hisuser I:hisuser P:password M:PLAIN

And I have created client-info.db hash.  I have copied the config file
workflow from my server which uses smtp auth to talk to my ISP on port
587.

On myserver.com, I do see that his machine connects to me, but I see
this error in maillog:

Relaying denied. Proper authentication required.

When I was trying to go through his ISP, I got this error message in
his error log:  stat=Service unavailable.  We share ISP (from
different states though) and I am still able to send via my ISP.  I
even tried to directly copying my auth info for the ISP from my box to
his (so he would be sending as me) and I got this same error.

Have I missed a configuration setting somewhere?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Strange traffic originating from httpd

2008-09-05 Thread Peter Boosten

Quoting Peter Boosten [EMAIL PROTECTED]:


Hi all,

Just today I noticed some strange UDP4 traffic from my webserver to an
IP address unknown to me, connecting to port 8000 (UDP).

Sockstat showed httpd (running as www) as the culprit.
Does anyone know what could cause this?

I run several websites (Joomla, Wordpress, Coppermine, Nucleus), so
maybe some plugin does this.


[snip]

Oke, did some checks and found the following:

the UDP connection is initiated once when anyone visits one of the  
Wordpress sites. A tcpdump shows that the IP address of the visiting  
client is transmitted to that external site, so probably it's one of  
the plugins:


- Akismet
- WP-Shortstat
- Wassup
- WPsyslog

I'm going to ask in the Wordpress groups.

Apologies for the polution :-)

Peter

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


Problems building port, missing library(?)

2008-09-05 Thread Aggelidis Nikos
Hi to all the list,

i tried to install gtk-murrine-engine from ports...

So i first updated them:

* removed the old ports directory to start fresh and then did
csup -L 2 -h cvsup.fr.FreeBSD.org /usr/share/examples/cvsup/ports-supfile

*i then typed
[EMAIL PROTECTED] /usr]# portupgrade -P -N gtk-murrine-engine

and i got the following output:

[snip]
/usr/bin/ld: cannot find -lgio-2.0
gmake: *** [libgiofam.la] Error 1
*** Error code 2

Stop in /usr/ports/devel/gio-fam-backend.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade.69428.0 env make reinstall
** Fix the installation problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! x11-themes/gtk-murrine-engine (install error)
---  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

so then i tried installing gio-fam-backend

so i typed:

[EMAIL PROTECTED] /usr]# portupgrade -P -N gio-fam-backend
/usr/bin/ld: cannot find -lgio-2.0
gmake: *** [libgiofam.la] Error 1
*** Error code 2

Stop in /usr/ports/devel/gio-fam-backend.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade.93689.0 env make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! devel/gio-fam-backend (unknown build error)
---  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed


i think the important part is:
/usr/bin/ld: cannot find -lgio-2.0

any ideas why this happened and how can i fix it?

thanks in advance for your time,
-nicolas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Subscription Confirmation – Specialty Lists on SelfGrowth.com

2008-09-05 Thread Self Improvement Newsletter
Dear Darling,

You had previously signed up to receive our newsletter. As part of the signup 
process, you requested information on one or more of our specialty interest 
areas.

We were provided with the following information during the sign-up process:

Your Full Name: Darling Smorgrav
Your Email Address: freebsd-questions@freebsd.org

If you are no longer interested in receiving this special topic information, 
you can unsubscribe by clicking here: 
http://newsletters.selfgrowth.com/u?id=17770730.fd784a8643a3567895f29fecebdae9a2o=5283451n=T[EMAIL
 PROTECTED]l=oip

OUR COMPLETE LIST OF TOPICS:  Audio Programs, Dieting  Weight Loss, Foreign 
Language, Goal Setting, Memory Improvement, NLP, Public Speaking, Speed 
Reading, Stress  Anxiety Relief, Success Coaching, and Time Management. 
To signup for any of these other topics, go to: 
http://www.selfimprovementnewsletters.com/ 

We are looking forward to helping you improve your life!

Sincerely,

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


Re: which gray is best for print?

2008-09-05 Thread Gary Kline
On Fri, Sep 05, 2008 at 06:08:04PM +0100, Frank Shute wrote:
 On Wed, Sep 03, 2008 at 04:14:42PM -0700, Gary Kline wrote:
 
  This is for any webmaster types:  which color gray (in hex, #xx)
  is best for a site that has probably very long articles?  I've googled
  around and found various grays such as #696969 or #708090, but I
  haven't found anything that really fits what I want.  URL, anybody?
  Or if there is a color-chooser in ports, that too, altho I haven't found
  anything in ports/x11 or ports/www.
  
  To prevent boredom, two shades of deep gray or blue-gray would be besy.
  
  tia,
  
  gary
 
 I can't tell you which grey is most suitable but I can tell you how I
 go about choosing a colour.
 
 Install: x11/rgb
 
 Then:
 
 $ showrgb | less
 
 will give you the names of the 256 websafe colours and their rgb
 values.
 
 I usually check out the colours by:
 
 $ xterm -bg DarkSalmon
 
 etc.
 
 Alternatively, you can use css and set an html pages bg properties:
 
 style type=text/css
 body{
 background-color: rgb(233,150,122);
 }
 /style
 
  view it in your browser.
 
 -- 
 
  Frank 


Thanks for this.  I'll check it out when I'm less crushed!  Just
one note to the list (in case anybody else it looking for
attractive/fitting #xx codes): dark, black-ish blue #33
is very good and pleasant on the eyes; #66 even more so.

I'm still open to the bg color.  The display white is not true,
paper-white.  Anyway, pretty sure the ink+paper publishers have
their own [[ BETTER ]] ideas.  I'm looking for what looks good on
the web.

gary


 
 
  Contact info: http://www.shute.org.uk/misc/contact.html 
 

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


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


Re: Google Chrome

2008-09-05 Thread Christopher Arnold



On Fri, 5 Sep 2008, John Nielsen wrote:


I'd be glad to, but I'm afraid I do not have the skills for that... :-(


It won't be trivial to port. Last night I got as far as installing the


Until it get's ported run it under wine!:
http://www.arnold.se/chris/2008/09/howto-run-chrome-on-freebsd-70/

It's dead easy today with the new version of wine.

And will be even easier when wine in ports get updated...

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


Re: which gray is best for print?

2008-09-05 Thread Polytropon
On Fri, 5 Sep 2008 13:06:01 -0700, Gary Kline [EMAIL PROTECTED] wrote:
   I'm still open to the bg color.  The display white is not true,
   paper-white.  Anyway, pretty sure the ink+paper publishers have
   their own [[ BETTER ]] ideas.  I'm looking for what looks good on
   the web.

You can't look at the Web, you're looking at a monitor or at a sheet
of paper. :-) The same color may look different on
* a CRT type monitor
* a LCD type monitor
* a hardcopy done by a color laser printer
* a hardcopy done by a color ink pee printer
* ...

This is due to the nature that these devices use different color
spaces (RGB, composed additively, CMY, composed negatively), and
most of them even aren't calibrated. GRB and CMY are parts of the
CIE specified space (see CIE diagram), but they don't have all the
colors in common. There are colors you can show on a CRT, but you
cannot print them 1:1.

Anyway, the best reading contrast - black on white - looks boring
on the web, and it stresses your eyes (too much light reflected /
emitted). Furthermore, if you select a dark color for the background,
LCD type monitors (that have a minimal light emission even if the
color is pure black) may look too light, while a CRT type monitor
may display the color as dark as you intended (because when it's
black, the CRT does not emit any light, unless, of course, the
base brightness is needlessly adjusted above the zero point).

So much for physics, kids. :-)


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


geli init -a hmac/sha256 does not work properly

2008-09-05 Thread Cem Kayali


Hello all there!...

Once i would like to enable disk encryption with geli approcah, i 
noticed following problem:




CASE 1 | SUCCES
---
geli init -b -e aes -l 256 -s 4096 /dev/ad4s1
  
This initializes geli without problem, and then once you run 'bsdlabel 
-w /dev/ad4s1' it goes as expected.
  
 
CASE 2 | FAIL

---
geli init -b -e aes -l 256 -s 8192 /dev/ad4s1

This initializes geli with a warning message 'sector size is bigger than 
the page size' and also 'bsdlabel -w /dev/ad4s1' fails with following 
notice: 'bsdlabel: /dev/ad4s1 read: invalid argument'
 

CASE 3 | FAIL

---
geli init -b -e aes -l 256 -s 4096 -a hmac/sha256 /dev/ad4s1

This initializes geli with a warning message 'sector size is bigger than 
the page size' and also 'bsdlabel -w /dev/ad4s1' fails with following 
notice: 'bsdlabel: /dev/ad4s1 read: invalid argument'
  

   

In short, if i enable 'data integrity verification' or if i increase 
'sector size', 'bsdlabel -w' gives error message.




I thank you in advance for advises.


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


Re: geli init -a hmac/sha256 does not work properly

2008-09-05 Thread Cem Kayali


Sorry, forgot to mention: This is FreeBSD 7.0 on i386 machine with SATA 
mode enabled on bios.


Regards


Cem Kayali, 09/05/08 23:20:


Hello all there!...

Once i would like to enable disk encryption with geli approcah, i 
noticed following problem:




CASE 1 | SUCCES
--- 


geli init -b -e aes -l 256 -s 4096 /dev/ad4s1
  This initializes geli without problem, and then once you run 
'bsdlabel -w /dev/ad4s1' it goes as expected.

   CASE 2 | FAIL
--- 


geli init -b -e aes -l 256 -s 8192 /dev/ad4s1
This initializes geli with a warning message 'sector size is 
bigger than the page size' and also 'bsdlabel -w /dev/ad4s1' fails 
with following notice: 'bsdlabel: /dev/ad4s1 read: invalid argument'
 
CASE 3 | FAIL
--- 


geli init -b -e aes -l 256 -s 4096 -a hmac/sha256 /dev/ad4s1
This initializes geli with a warning message 'sector size is 
bigger than the page size' and also 'bsdlabel -w /dev/ad4s1' fails 
with following notice: 'bsdlabel: /dev/ad4s1 read: invalid argument'

In short, if i enable 'data integrity verification' or if i increase 
'sector size', 'bsdlabel -w' gives error message.




I thank you in advance for advises.


Regards,
Cem


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


how do I disable the generation of XOFFs when using tip over a serial port to another device

2008-09-05 Thread Jeff Haran
Dear Sirs,

I have connected one of the RS232 ports of my PC with FreeBSD (v6.3) on
it to a device that does not understand XON/XOFF flow control. I run the
tip program to connect to that device.

How do I configure tip and/or the serial port so that the FreeBSD PC
will NOT send XOFFs or XONs to the device?

When I run:

stty -a -f /dev/cuad0

where /dev/cuad0 is the device associated with the port, it outputs
(among other things):

iflags: ... ixon -ixoff ...

From my reading of the stty man page, I would think that means the port
is already configured to not send XOFFs.

Is there something I need to do to /etc/remote to tell tip to not enable
XON/XOFF?

Please respond to this email address as I do not subscribe to the
mailing list.

Thanks,

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


Re: portsnap in cron and firewall

2008-09-05 Thread RW
On Fri, 5 Sep 2008 16:49:26 +0100
RW [EMAIL PROTECTED] wrote:

 On Fri, 5 Sep 2008 16:14:02 +0200
 Albert Shih [EMAIL PROTECTED] wrote:
 
But now with portsnap cron (that's mean random sleep) I don't known
  when the system try to connect outside. 

 You can do this
 
 sleep `jot -r  1 0 3599`
 open pf
 portsnap fetch
 close pf


Actually, I just took a look at portsnap and I see that portsnap fetch
has an explicit check for a terminal, so it wont work from crontab.

 
 However, I would suggest you simply create pf rules to allow the
 server contact to the portsnap servers. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: string split, bash and IFS

2008-09-05 Thread Jim Hertzler

Go to:
http://www.linuxquestions.org/questions/programming-9/bash-shell-script-split-array-383848/?posted=1#post3270996
And see:
IP=1.2.3.4; IP=(${IP//./ }); Rev=${IP[3]}.${IP[2]}.${IP[1]}.${IP[0]}


Unga wrote:
 
 Hi all
 
 How to use bash and IFS to split a string?
 
 eg. 
 $string = Name:Surname:10
 IFS=:
 echo $string | read name surname age
 
 This does not work for some reason. The read does not create name, surname
 and age variables. Any idea why?
 
 Appreciate your reply.
 
 Kind regards
 Unga
 
 
   
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 

-- 
View this message in context: 
http://www.nabble.com/string-split%2C-bash-and-IFS-tp19140697p19340538.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Freebsd inspiron mini 9

2008-09-05 Thread bsd

Hi folks,


Does anyone knows if the latest mini Dell computer will be compatible  
with our favorite system?

http://www.cio-today.com/story.xhtml?story_id=61697

From what I can read It is based on:

- a Processeur Intel®  AtomTM  (1,6 GHz, memory cache L2 de 512 Ko,  
FSB de 533 MHz)

- Chipset Intel®  965PM / GM Express


It can be shipped with Ubuntu.
So my simple question is: will It be compatible with FreeBSD 7.x ??


I know the hardware list here: http://www.freebsd.org/releases/7.0R/hardware.html#PROC-I386 
 but no link to either Atom or 965PM could be found…

Is it bad news doctor?




Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



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


Re: Starting and using services -- Single-user mode -- TECRA_A9-S9017

2008-09-05 Thread freebsd_user

Ivan Voras wrote:

[EMAIL PROTECTED] wrote:

I have the need to start and use service while in single_user mode.  To
this point I'm not able to use 'top' or 'ps' respectively.  In


ps is in /bin, top is in /usr/bin ; unless you a) have your PATH wrong
or b) commonly put /bin on separate file systems, you should be able to
use ps and others in /bin and /sbin.






addition,from the CLI; when I attempt to start services such as
'portmap' and 'sshd' nothing is shown running via 'ps'.  All I see are
the headers when I issue th 'ps aux' command.


Are your world and kernel matched?


This is a failed 4.x to 5.x upgrade which I really don't want to address 
any further.  Currently, as a last effort to save this 'current' install 
I'm doing a 'make buildworld, buildkernel, installkernel and 
installworld as we speak.  Should this fail I'll continue with the topic 
of this discussion = while in single-user mode, start enough services 
to use 'scp' and 'mv' curcial files over to another machine thereafter 
do a fresh install on the failed box in question.



I'm sure its possible to do what I'm attempting, but given the crippled
situation of this box, I'm stuck in Single-user mode and need to start
enough services that will allow the use of 'scp' in order to move some
zipped/crucial files from the crippled box to another machine on the
same network.


Until now I've tried fsck -p ; mount -u / ; mount -a -t ufs ; swapon -a

We will try your suggestions once the building finishes (on it own) to 
first see if the new build process has fixed everything (multi-user) 
that was broken and if not, we'll follow your recommendation(s).




When you enter single user mode, root file system is mounted read-only
so one of the first things you need to do is mount -u -o rw /. Next,
you need to mount your other file systems (/usr is usually a separate
file system and that's where ssh lives) so do mount -a. At this point
you might as well cancel the single-user mode by exiting the shell and
go multi-user.

If there are file system errors. mount -a will fail and you'll need to
mount other file systems by hand.


The only errors or warnings we've experienced where listed in the 4.x to 
5.x section of the 5.5 /usr/src/UPDATING file with reference to 
'userland'  The UPDATING said to ignore these errors.  Obviously 
something is seriously wrong with that section on updating from 4.x to 5.x


Enough said, we'll post one way or the other once the build is done.





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


Re: pf to block against DDoS?

2008-09-05 Thread Diego Schulz
On Fri, Sep 5, 2008 at 1:54 AM, Peter N. M. Hansteen [EMAIL PROTECTED]wrote:

 Oliver Peter [EMAIL PROTECTED] writes:

  I can recommend reading through this as well:

  http://www.bgnett.no/~peter/pf/en/bruteforce.htmlhttp://www.bgnett.no/%7Epeter/pf/en/bruteforce.html

 Thanks for recommending that!  However I would generally recommend the
 maintained version which is up at 
 http://home.nuug.no/~peter/pf/http://home.nuug.no/%7Epeter/pf/
 ,
 with the direct link to the part about state tracking and bruteforcers
 at 
 http://home.nuug.no/~peter/pf/en/bruteforce.htmlhttp://home.nuug.no/%7Epeter/pf/en/bruteforce.html
 .

 (and of course there's the book, nudge, nudge)


I bought your book a few weeks ago, and I must say it's a great one.
I take it everywhere I go! ;)

Thanks for such an excellent resource.

best regards,

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


Re: which gray is best for print?

2008-09-05 Thread Gary Kline
On Fri, Sep 05, 2008 at 10:38:59PM +0200, Polytropon wrote:
 On Fri, 5 Sep 2008 13:06:01 -0700, Gary Kline [EMAIL PROTECTED] wrote:
  I'm still open to the bg color.  The display white is not true,
  paper-white.  Anyway, pretty sure the ink+paper publishers have
  their own [[ BETTER ]] ideas.  I'm looking for what looks good on
  the web.
 
 You can't look at the Web, you're looking at a monitor or at a sheet
 of paper. :-) The same color may look different on
   * a CRT type monitor
   * a LCD type monitor
   * a hardcopy done by a color laser printer
   * a hardcopy done by a color ink pee printer
   * ...


So you're saying that the white on my [monster] CRT is not the
same as on a future LCD Display?  rats:)  --I can't see much
difference in my new laserjet from my HP500 DeskJet, but then it
wasn't a main concern ... .

 
 This is due to the nature that these devices use different color
 spaces (RGB, composed additively, CMY, composed negatively), and
 most of them even aren't calibrated. GRB and CMY are parts of the
 CIE specified space (see CIE diagram), but they don't have all the
 colors in common. There are colors you can show on a CRT, but you
 cannot print them 1:1.


I took all 5 quarters of physics, like most of us, but never got
far into optics.  And certainly, nothing like *this*.  the
quality of my writing is much more important that the colors of
typeface or background.  But this is an interesting side-bar.

 
 Anyway, the best reading contrast - black on white - looks boring
 on the web, and it stresses your eyes (too much light reflected /
 emitted). Furthermore, if you select a dark color for the background,
 LCD type monitors (that have a minimal light emission even if the
 color is pure black) may look too light, while a CRT type monitor
 may display the color as dark as you intended (because when it's
 black, the CRT does not emit any light, unless, of course, the
 base brightness is needlessly adjusted above the zero point).
 
 So much for physics, kids. :-)
 

Really!  So far, in my tests [staring at a CRT], I find an
off-white reads most easily against a very dark blue. 33;
or whatever 66 is.  Still experimenting.

 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

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


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