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

2006-10-09 Thread pbdlists
sed -i .backup s,:/bin/bash$,:/sbin/nologin, /etc/passwd 

But at least on my FBSD systems bash is in /usr/local/bin/bash, not
/bin/bash! And what would you need this for?

Cheers,

Kurt

On Mon, Oct 09, 2006 at 03:24:30PM +0800, James Corteciano wrote:
 Dear guru's:
 
 How to change all word lines of /bin/bash at /etc/passwd file to
 /sbin/nologin in just  a single line command?
 
 I am looking forward for your great responses.
 
 Thank you.
 
 Regards,
 
 -- 
 James G. Corteciano
 FreeBSD User
 ___
 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: 6.1 and NFS

2006-09-23 Thread pbdlists
On Thu, Sep 21, 2006 at 04:12:03PM -0700, Perry Hutchison wrote:
 
 File locking works reasonably well within a single system (defined
 as a combination of hardware and software that all crashes together
 :)  I doubt anyone will ever get it to work all that well when the
 locks must be shared across a larger entity.

Not yet extensive 'real-world-usage-experience' but from what I have
learnt and seen myself, DLM (Distributed Lock Manager) coming with
GFS v6.1 (Global File System) does quite a nice job. However, it is
not NFS and requries quite a bit more pocket money to setup as a SAN
is required (unless you use iSCSI served off a spare box...). So
building a reliable lock manager over multiple systems can be done.

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


Re: Cluster File System

2006-06-23 Thread pbdlists
Hi Christopher!

GFS (Global File System) is for Red Hat Linux, but GPL, if you have the
programming muscle to port it. http://www.redhat.com/software/rha/gfs/

But does MySQL support accessing one file storage from two separate
servers? Even with GFS, applications must play along and do _proper_
filelocking without hanging on to exclusive locks unnecessarily.

Also, if you really do need to go with a cluster file system, you
probably easily have the pennies necessary for buying Red Hat and GFS
subscriptions and do it that way, considering that proper shareable SAN
storage is not (yet) available for a butterbread. The el-cheapo variant
of SAN storage would be iSCSI.

As for ftp; replication or NFS probably are the cheapest solutions.

Cheers,

Kurt

On Fri, Jun 23, 2006 at 09:03:03PM +1000, Christopher Martin wrote:
 Is there, or are there any plans for, a cluster file system for FreeBSD?
 Does anyone know of an open-source one that could be ported?
 
 Would be great to have two servers dishing out MySQL, ftp, etc from a single
 chunk of RAID rather than having to muck about replicating between the two
 boxen.
 
 C Martin
 ___
 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]


Edgeport USB-serial device

2006-02-20 Thread pbdlists
Hello,

Anybody ever tried to run one of the following usb-serial devices on a
FreeBSD 5/6 box? Does it work out of the box, not work at all, work with
some driver code adjustments?

There is something about ETHERPORT4 in /usr/src/sys/dev/usb/usb_quirks.c
and /usr/src/sys/dev/usb/usbdevs, but I'm not sure it's the same
Edgeport I'm looking at; the code says vendor INSIDEOUT, while I'm
looking at a product by Digi.

Edgeport/412 USB to 4 port USB and 12 port DB-9
Edgeport/416 USB to 4 port USB and 16 port DB-9
Edgeport/8 USB to 8 port RS-232 DB-9
see http://www.digi.com/products/usb/edgeport.jsp

Thanks,

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


Re: Free BSD and HP's Integrated Lights Out

2005-03-22 Thread pbdlists
As far as I know, basic iLO features are not OS dependent at all. But if
you need a license, you're using advanced features; basic support is
included with the server. Possibly you want to get to a graphic display?
If you can do with access to a text terminal you should be fine.
Switching to a text terminal via a SSH session to iLO can, for example,
be done by assigning CTRL-ALT-F1 to say CTRL-T in iLO itself.


On Tue, Mar 22, 2005 at 10:08:48AM -0800, Doug Paquette wrote:
 Group,
 
 Is there anyone here who knows if HP's Integrated
 Lights out card on a Proliant DL380 G3 will for sure
 work with Free BSD?
 
 I beleive it will from the last time I tried the
 trial, but that was 8 months ago and I cannot remember
 if it did or not, and I have already used up my 30 day
 trial, and HP doesn't know how to get me more trial
 time. I hate to buy the licencing pack without knowing
 for sure.
 
 Can anyone help me with this?
 
 Thanks 
 
 Doug
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new resources site!
 http://smallbusiness.yahoo.com/resources/ 
 ___
 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: apm device not configured ?!

2004-01-24 Thread pbdlists
Julian,

Did you try to add the following line to your /boot/kernel.conf file?

en apm

and make sure the file ends with a q all by itself on a line.

Unfortunately I have quite some issues with either apm or acpi on my
Dell laptop as well when installing FBSD 5.2; it stops during boot when
a battery is connected and ACPI not disabled. It crashes on resume and
my 3Com PCMCIA ethernet card stops working sometimes, needing an
ifconfig down; ifconfig up. Maybe the PC-card problem is not apm/ACPI
related?

On Sat, Jan 24, 2004 at 04:27:53PM +, Julian Holley wrote:
 Hi all - I'm still having problems persuading my laptop to work with apm
 - apparently my machine should work on 4.9 - I have re-compiled with apm
 enabled, set rc.conf to enable apm etc, but apmd, apm will not operate
 and gives the message :-
 
 apm device not configured, although /dev/apm does exist !?
 
 what do I have to do to configure apm ? on bsd 4.9 
 what is the difference between apm and apm0 ?
 
 IBM TP 390x 2626FOG on FreeBSD4.9
 
 any help much appreciated, J
 
 incidently on 5.2 apm appears, and loads, but alas crashes on resume :(
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing from ISO images

2004-01-24 Thread pbdlists
Sure,

On a separate machine setup an ftp server, create a directories named
4.9-RELEASE and 5.2-RELEASE right where you will be placed when
connecting with ftp. Then mount the iso image as follows (4.x syntax):

vnconfig -e /dev/vn0 4.9-image.iso
vnconfig -e /dev/vn1 5.2-image.iso
mount -t cd9660 -o ro /dev/vn0 4.9-RELEASE
mount -t cd9660 -o ro /dev/vn1 5.2-RELEASE

Now you can boot from a floppy and select ftp for the installation.

On Sat, Jan 24, 2004 at 01:16:14PM -0500, Chip Morton wrote:
 Is there a way for me to install FreeBSD from CD images that I have 
 downloaded without burning them to CD?  Can I boot from a floppy and then 
 mount the images like a CD?  I'm installing versions 4.9 and 5.2.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ep driver problem in 5.2?

2004-01-18 Thread pbdlists
Today I installed FBSD 5.2 on my main notebook because I want to make
the switch from 4.7. I have a 3Com Megahertz 10/100 LAN PC Card Model
3CCFE574BT.

  ep0: 3Com Megahertz 574B at port 0x100-0x11f irq 11 function 0
   config 1 on pccard0
  Unknown ID: 0x201
  ep0: Ethernet address 00:50:da:d3:6b:22

The default kernel is being used, no changes made.

This card was working flawlessly all the time with FBSD 4.5/4.7, did
autonegotiation perfectly, no problem at all, not even plugging the
cable out on my 100 Mb switch and plugging it in on a 10 Mb hub or vice
versa.

With 5.2, however, the card works fine right right after ifconfig ep0
up, but:

- it stops working if there has not been any traffic through the card
  for a while (have not yet been able to determine the exact time)
- if there is traffic through the card all the time (eg pinging another
  host continuously) it does not stop working
- broadcasts, arp requests and other packets going to all nodes on the
  network seem to do the trick as well as a constant ping
- the autonegotiating switch, to which it is connected, still shows the
  card is there and in 100 MB full duplex mode
- ifconfig ep0 down followed by ifconfig ep0 up brings the card back to
  life again
- if connecting the card to a 10 MB hub, there are no problems, it
  continues to work properly, even if there is no traffic through it for
  some time

Unfortunately the ep driver does not support setting the media,
otherwise it might be possible to work around the problem.

At the moment I'm at a loss, not knowing how to get this to work.
Writing a startup script which does not return and pings another host on
the network all the time is not quite the solution I'd be happy to
implement...

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


Re: zmore for bzip2?

2003-08-30 Thread pbdlists
Adapting zmore for the case where you specify the files to display on
the command line is not problem at all:

  diff kk zmore
 5,14d4
  get_decompressor ()
  {
case `file ${1--} | sed s/[^:]*: *\([^ ]*\).*/\1/` in
  compress*) DECOMPRESSOR=uncompress -c;;
  gzip*) DECOMPRESSOR=gzip -cdfq;;
  bzip2*)DECOMPRESSOR=bunzip2 -cdq;;
  *)   DECOMPRESSOR=cat;;
esac
  }
  
 56,57c46
  get_decompressor ${FILE}
${DECOMPRESSOR} $FILE | eval ${PAGER-more}
 ---
gzip -cdfq $FILE | eval ${PAGER-more}

But when zmore is used as a pipe or with input redirection, things become
more complicated.

   gzip -cdfq | eval ${PAGER-more}

In order to detect the type of data passed on STDIN, the get_decompressor
function or any other means of detection would consume STDIN. STDIN, however
must be passed to the decompressor after the type of data has been
detected. I don't have an idea hot to 'duplicate' STDIN, so it could be
consumed twice. Sure, writing it to a temporary file would be a
workaround:

 38,53c28
  FILE=/tmp/.zmore.${$}
  touch ${FILE} 2/dev/null
  if [ ${?} -ne 0 ]; then
echo can't create temporary file
exit 1
  fi
  chmod 0600 ${FILE}
  cat ${FILE}
  if [ ${?} -ne 0 ]; then
echo can't create temporary file
rm -f ${FILE}
exit 1
  fi
  get_decompressor ${FILE}
  cat ${FILE} | ${DECOMPRESSOR} | eval ${PAGER-more}
  rm -f ${FILE}
 ---
  gzip -cdfq | eval ${PAGER-more}

But I don't like that. I myself sometimes work with compressed files
larger than anything I would be happy to write to /tmp or somewhere else
(even though those cases usually rather use zcat and its cousinds than
zmore...)

Kurt

On Sat, Aug 30, 2003 at 12:21:45PM -0400, Chuck Swiger wrote:
 David Kelly wrote:
 [ ... ]
  Yes, of course. But zmore is smart enough to figure out what to do with
  several compression techniques, or even to handle non-compressed files
  very trivially and without hassle.
 
 'zmore' is a simple shell script which calls gzcat | ${PAGER-more}.  One 
 solution to your problem, or at least a solution, would be to change zmore to 
 look for a trailing bz/bz2 or invoke bzcat instead.  Another would be to change 
 the sources of gzip to recognize the bzip2 magic files bytes, extending the 
 detection of gzip versus classic LZH used by compress.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fscking remotely

2003-07-10 Thread pbdlists
I have a couple of completely headless systems (some of them so far away
it takes about 12 hours by direct flight). But I always make sure there
are at the very least 2 systems at each location and they are together
close enough to run serial cables between them. Then I redirect the
console to the first serial port and can access it from the other
machine through the serial cable. Works very well, I've even done
complete reinstalls this way.

Kurt

On Tue, Jul 08, 2003 at 03:14:52PM -0700, David Bear wrote:
 I'm thinking that dropping to single user mode will kill are running
 daemons include sshd?  is that true?  I have a nearly headless server
 in another building and would like to ssh into it and
 
 init 1
 fsck /
 
 then init 3
 
 but, I'm thinking single user mode will lock remote access out...
 
 any recommendations?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


PostScript UTF-8 fonts?

2003-06-10 Thread pbdlists
I do have a PostScript capable printer (Lexmark E310) and printing to it
via lpr works fine. However, I do have the requirement to print
Japanese. When the printer is being used from a Windows machine, this
works fine. I guess the necessary fonts are being included in the print
job itself. After lts of searching and trying etc. I finally also
found a way to print from Mozilla on FreeBSD and get Japanese output.

  print from mozilla to postscript -
run the postscript data through ghostscript to the pswrite device -
  send the output from ghostscript to the printer

However, this only works when a webpage is encoded in Shift-JIS
(possible EUC), if it is encoded in the UTF-8 charset, the Japanese
characters again all print as squares, even though they are fine on the
screen.

I do have installed various CJK (ChineseJapaneseKorean 2-byte) fonts
from the ports collection (FBSD v4.7). My guess is, that I need to get a
complete UTF-8 font collection which includes the Japanese characters,
installed for ghostscript. But I can not find anything. What can be
found on the web lacks Japanese characters.

- First of all, am I on the right way with installing fonts and pushing
  the whole stuff through ghostscript or was this solution working by
  mere luck and I should use a completely different approach?

- If my approach is fine, where can a free complete UTF-8 font for
  ghostscript be found?

- I'm also playing with the thought of buying a okidata C5300n color LED
  printer, which has PS level 3 support and quite a number of fonts
  installed by default (financing it is still a barrier, however). Does
  anybody have any experience with printing Japanese from FreeBSD on
  this printer (_NOT_ one bought in Japan, as the models sold in Japan
  usually do have a harddisk with the necessary fonts preinstalled)?

Thanks for any helpful hints,

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


Re: shell script

2002-11-21 Thread pbdlists
Hello Brian,

First of all, your script will not run, you forgot a closing quote on
the third line from the end.

But not to your problem. I was pounding over a similar issue recently
and the solution I came up with was to replace the for loop with a while
loop combined with a read command.

not working:
for L in `cat inputfile`
do
echo the line read is: ${L}
done

works fine:
cat inputfile | while read L
do
echo the line read is: ${L}
done

Cheers,

Kurt

On Thu, Nov 21, 2002 at 02:10:48PM -0600, Brian Henning wrote:
 Hello,
 
 i have a simple shell script problem. if i have a file name with a space in
 the name the following script doesn't get the entire name. The for loop
 conditional statement below stops for spaces or new lines... i would like it
 to stop for just new lines. is there a way to do that with shell script. how
 can i change the condition in the for loop to do that?
 
 Thanks,
 brian
 
 input.txt
 
 Tom Petty - Free Fallin'.mp3
 Dave Matthews.mp3
 
 
 size.sh
 ---
 #!/bin/sh -x
 # sh size.sh /smb/dc input.txt
 
 PATH=$1
 INPUT=$2
 
 for i in `/bin/cat ${INPUT}`; do
 echo in loop
 FILE=`echo $i | /usr/bin/awk -F: '{ print $1 }'`
 SIZE=`echo $i | /usr/bin/awk -F: '{ print $2 }'`
 
 echo ${FILE}
 done
 exit 0;
 
 
 current result
 -
 Tom
 Petty
 -
 Free
 Fallin'.mp3
 Dave
 Matthews.mp3
 
 
 desired result
 --
 Tom Petty - Free Fallin'.mp3
 Dave Matthews.mp3

--
--
: [EMAIL PROTECTED]  http://www.pinboard.com/   business :
:http://kurt.www.pinboard.com/  private  :
--
:Unix and Internet Specialist:
: PGP fingerprint C34E BCD4 BA8B 1337 14FE  116C 2657 FFAC 08B9 BFC7 :
--

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: UUCP Mail

2002-11-06 Thread pbdlists
On Wed, Nov 06, 2002 at 06:10:23PM +0200, Doron Shmaryahu wrote:
 
 I have a machine with a permanent connection, that I am installing for a
 client. Their provider lets them collect mail via UUCP. Can anyone explain
 in simple terms how to use uucp. I have the node name, username and
 password. I just don't know how to use it. The only examples I can find are
 regarding uucp and dial up.

Reading your last sentence, I guess you will be doing UUCP over TCP/IP.
Basically, the setup is the same as for dialup, just instead of
connecting through a modem, you connect via TCP/IP. I'll try to give
some samples based on the files I use myself (don't shoot me if there
are mistakes in my samples, I'm trying to put it together from much more
complicated files without reading the whole UUCP book again):

- make sure all the files in /etc/uucp/ are owned by the user uucp and
  group uucp!!!

- for uucp over TCP/IP you don't need the dial file

- if you only call out but will not be called by others, you don't need
  the passwd file

- /etc/uucp/call:
  --
  # system-name  login-namepassword
  provider   Uyou  yourpwd
  --
  - provider is the uucp nodename (peername) of your provider
  - Uyou is the uucp-login name you are assigned
  - yourpwd is the password for Uyou

- /etc/uucp/config:
  --
  uuname you
  --
  - you is the uucp nodename (peername) you were assigned

- /etc/uucp/port:
  --
  portTCP
  typetcp
  --
  - instead of specifying modems and serial ports here, you need to set
 these to TCP

- /etc/uucp/sys:
  --
  time   ANY 1
  port   TCP
  chat   ogin: \L ssword: \P
  call-login *
  call-password  *
  protocol-parameter g window 7
  protocol-parameter g packet-size 1024

  system provider
  addressyour.providers.uucp.host
  --
  - this assumes that you use the g protocol with a window size of 7
 and a packet size of 1k
  - \L and \P will be taken from your /usr/uucp/call file
  - the value for the system keyword (provider) must correspond to
 the first entry on a line in your /etc/uucp/call file
  - the address is the fully qualified hostname or IP address of
 your providers uucp host

  
The sample files in /etc/uucp/ are a good starting poing. You might also
want to have a good look at the uucp info pages (use the command 'info
uucp'). And if you really want to learn the details, I can recommend
O'Reilly's book 'Using  Managing uucp' (ISBN: 1-56592-153-4), but it
might be hard to find a copy, since it has been out of print for quite
some time.

Cheers,

Kurt

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: buried in spams, recommendation?

2002-10-04 Thread pbdlists

I've had very good results with SpamProbe:

http://sourceforge.net/projects/spamprobe

This is one of the (better, if you ask me) tools which popped up as a
reaction to Paul Graham's splendid article:

http://www.paulgraham.com/spam.html

Cheers,

Kurt

On Thu, Oct 03, 2002 at 04:52:08PM -0400, Peter Leftwich wrote:
 Can someone on the list PLEASE recommend a good quarantining filter app?
 
 I know mwm (Mike Someone) out there uses one that issues a challenge via
 reply or reply to all.  Thanks!!
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: grub boot loader or freebsd boot loader

2002-10-04 Thread pbdlists

Grub is very powerful. (I would like to see it as the default boot loader
on FreeBSD.) But it is not so easy to configure, a bit a steep learning
curve. However, if you dig in, you'll be greatly rewarded with
flexibility. I suggest you give it a shot.

Cheers,

Kurt

On Thu, Oct 03, 2002 at 04:58:25PM -0500, SweeTLeaF wrote:
 
 Primary Master: 40gig
 Primary Slave: 20 gig
 
 I want to install XP on the first 20gig of the Master, Redhat 8.0 on
 the remaining 20gig of the Master and FreeBSD on the entire 20gig of
 the Slave. What would be my best options for being able to boot all 3.
 I heard grub had issues booting BSD so i just wanted to know my best
 approach before starting.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /var/spool/uucppublic

2002-10-02 Thread pbdlists

On Tue, Oct 01, 2002 at 10:39:19PM -0700, Mikko Työläjärvi wrote:
 
 Just delete the directory.  And keep deleting it after every new
 upgrade, install or make world, until uucp finally is divorced from
 the base system, causing grief for all of the three people still alive
 using uucp... ;-).  Hmm.. looks like that will happen in 5.0.  Whee.

Hey, make that count 4! I'm using good old UUCP on a number of servers
throughout three companies.

Cheers,

Kurt

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message