Re: ipf: filter by program?

2005-06-19 Thread Peder Blom
On Fri, 17 Jun 2005 14:35:54 +0100 (BST)
John Conner [EMAIL PROTECTED] wrote:

 Hello all,
 
 I was just wondering if it was possible to add program
 filtering into an IPF firewall? For example if traffic
 is allowed out on port 80 then it may only travel
 through this port if, for example, it is coming from
 firefox etc. It seems like a pretty useful feature but
 as of yet I have been unable to find any documentation
 that covers such a filtering rule. Any
 feedback/suggestions would be much appreciated,
 

Other answers in this thread has made it clear that this is not possible
using IPF. However, you can achieve something along these lines using
jails.

Put Firefox in a jail and make sure that there are no other programs in
that jail that can access port 80. Then block all outgoing access to
port 80, except from the jail ip.

It will be a little more complicated to start Firefox, eg ssh -X
jail.ip firefox instead of firefox. Another effect is that Firefox
will only have access to the jailed environment when you save data (or
when it crashes or is a victim of the latest unpatched exploit).

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


Re: burncd syntax for burning dvd ???

2005-06-12 Thread Peder Blom
On Sun, 12 Jun 2005 12:08:21 +0200 (CEST)
P.U.Kruppa [EMAIL PROTECTED] wrote:

 Hello!
 
 I created an .iso file from a dvd by
   # dd if=/dev/acd0 of=dvd.iso bs=2048
 Now I would like to burn dvd.iso on a fresh dvd+rw medium.
 Could someone be so nice and give me the correct command line for 
 this - seems I am too stupid to understand the man pages :-( .
 
 Thanks,
 
 Uli.
 


The FreeBSD Handbook (eg. at www.freebsd.org) has detailed instructions
on how to burn different kinds of dvd:s. See chapter 16.7 Creating and
Using Optical Media.

Good Luck

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


Re: Ogle Question

2004-11-22 Thread Peder Blom
On Sun, 21 Nov 2004 17:28:31 -0500
RL [EMAIL PROTECTED] wrote:

 Anyone?
 
 And BTW, I also linked /dec/acd0 to /dev/dvd; still got the same
 issue. 
 
 
 On Sat, 20 Nov 2004 17:49:20 -0500, RL [EMAIL PROTECTED] wrote:
  Hi, I just installed ogle-gui and when I try to open up a dvd or
  play it, I get such things as DVDSetDVDRoot: Root not set  That is
  both when I run it as root and as a regular user. And therefore I
  cannot play dvd's.


I think you should use /dev/acd0c and not /dev/acd0 (if that's what
you are linking to).

Try this:

% ogle -u cli /dev/acd0c

This will try to run the cli version, if it works then I guess the gui
version also will (I don't use the gui myself).

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


Re: streaming video help

2004-07-20 Thread Peder Blom
On Tue, 20 Jul 2004 02:00:32 +0300
rosen [EMAIL PROTECTED] wrote:

 Hello form Bulgaria!!!Sorry for stupid question! I'm newbie in this
 OS.I have read info about ffmpeg and ffserver,programs used to live
 stream a video.My question is there some possibilty to livestream from
  avi,mpeg ot asf files, and how can i do that? 
 Best Regards rosse
 ___


Hi,

take a look at the VideoLAN project, (http://www.videolan.org/). 

You'll find a vlc port in multimedia/vlc. But be aware that is has an
amazing amount of dependencies...

I use vlc to stream mpeg and most avi files without problems, but this
is just one solution to the problem. There might be other and even
better ones.

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


Re: cd clone img cd image

2004-07-19 Thread Peder Blom
On Sat, 17 Jul 2004 19:24:17 +0100
arden [EMAIL PROTECTED] wrote:

 hi all 
 
 dose anyone know of a way to burn an img image that was created in
 windows 
 
 at home i don't have any windows machines anymore 
 
 
 Arden 
 

Hi Arden,

doing a:

 cd /usr/ports ; make search key=clonecd

returns:

Port:   ccd2iso-0.9_1
Path:   /usr/ports/sysutils/ccd2iso
Info:   A CloneCD to ISO converter

I haven't used this program myself but it might be worth checking it
out.

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


Re: Pruning the Ports Tree

2004-06-14 Thread Peder Blom
On Sun, 13 Jun 2004 11:52:18 -0700
Graham North [EMAIL PROTECTED] wrote:

 Hi Uli and the rest of the FreeBSD forum:
 
 Thanks for your advice - though I am not entirely sure what the
 purpose of your last questions are.
 
 To answer though:
 My HD is about 1.2G - it is sharing 2.0G with another OS.
 /usr~ 778M
 usr/ports ~247M
 total /usr being used is ~595M  with about 183M free.
 
 The problem is not disk space - it appears to be file handles.  
 Remember, those ports files are only about 0.5K each - so lots of
 inodes are being used in file infrastructure.  Midnight Comm which I
 use for a lot of file navigation indicates that I had 99838 inodes
 available - of which there are now only 602 free!   Yesterday that was
 about 900, but then I mirrored part of a friend's website and used
 another 300. As you can see, I need to free up some file handling
 capability.
 
 Thanks for any further advice you can give.
 
 Cheers,  Graham/

Hi Graham

You might consider using a file-backed disk (see the handbook sec 12.11)
for your portstree. This should save a lot of inodes at the cost of
wasting some space on your hd.

Something along the lines of:

1) Point workdirs and distfiles to directories outside the ports dir by
setting the environmental variables WRKDIRPREFIX and DISTDIR (man
ports).

2) Estimate what will be the maximum size of your portstree for the
lifetime of your setup, create a file of this size and make it into a
file-backed disk.

3) Mount this file-backed disk on /usr/ports.

For this to be meaningful you obviously have to remove your current
portstree and build one on your file-backed disk.

I'm running a setup similar to this for sharing ports between jails
without any problems.

(You might even be able to create the file-backed disk on the slice you
are
sharing with another OS and gain some space on /usr, if needed.)

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


Re: High pitch/wrong frequency audio on disc via burncd

2004-03-29 Thread Peder Blom
On Mon, 29 Mar 2004 13:51:01 -0500 (EST)
Ada Cheng [EMAIL PROTECTED] wrote:

 Good afternoon,
   I have a series of wma files (speeches) which I convert to wav
   via
 mplayer.  The wav files played fine using both xmms and Noatun. 
 However when I burn them onto a cd via burncd:
 burncd -f /dev/acd0c audio *.wav fixate
 the resulting audio on the disc gives me high pitch/wrong frequency
 audio.
 
 I never had problem with burncd before but this is the first time I
 burned wav files obtained via conversion from wma files.
 
 Any help is greatly appreciated.
 
 Many thanks in advance.
 
 Ada

It's likely a problem with the samplerate of your wav files. To burn an
audio cd your tracks should be in stereo with a samplerate of 44100 Hz.


Also, take a look at the FreeBSD Handbook sec 16.3.4 to see why you
should convert to raw pcm instead of wav when you use burncd.

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


Re: mplayer questions

2004-03-29 Thread Peder Blom
On Mon, 29 Mar 2004 06:00:33 +0100 (BST)
Tadimeti Keshav [EMAIL PROTECTED] wrote:

 Hi,
 I have a couple of questions:

snip

 
 2. using the CLI mplayer, how can I play the video
 file from a given place, say after 19 minutes and 30
 seconds?
 


mplayer -ss 19:30 ...


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


Re: Virtual terminal buffer?

2004-03-22 Thread Peder Blom
On Mon, 22 Mar 2004 16:51:49 -0800
Chris Pressey [EMAIL PROTECTED] wrote:

 On Mon, 22 Mar 2004 16:57:26 -0600 (CST)
 Eric F Crist [EMAIL PROTECTED] wrote:
 
  Hello list,
  
  Is there a way to clear the buffer after you've logged out of a
  virtual terminal?  
  
  TIA
  
  Eric
 
 Well, you could call 'echo' a hundred times in your .logout script :)
 
 -Chris


And if you run csh/tcsh you can put these two lines in your .logut
script:

vidcontrol -C
clear


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


Re: How to get an overview of the installed ports

2004-03-19 Thread Peder Blom
On Fri, 19 Mar 2004 09:40:39 +0100
Ronald Hoellwarth [EMAIL PROTECTED] wrote:

 Hello,
 
 I've installed some apps and deinstalled them  again because I didn't 
 like them. While installing them other software was installed too but 
 I think it wasn't removed when I removed the unwanted programms.
 
 Is there a possibility to get an overview which ports are installed
 and how they are linked? something like this:
 
 appA
 needs appB appC
 needed by appD appE appF
 
 appB
 needs -none-
 needed by appA
 


pkg_info -rRa


There is also a GUI program that gives you a convenient tree-view of the
dependencies:

/ports/sysutils/gpkgdep


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


Re: why can't I implement syslog ?

2004-03-19 Thread Peder Blom
On Fri, 19 Mar 2004 08:18:59 + (GMT)
Supote Leelasupphakorn [EMAIL PROTECTED] wrote:

 Hi all,
 
I would like to log my message by using syslog so I altered
 /etc/syslog.conf like below (kill and re-start syslogd as well)
 
 # file: /etc/syslog.conf 
 -- snip ---
 
 local1.debug/var/log/myScript.log
 
 
   and in a shell script I use 
 
 # /usr/bin/logger -i -p local1.debug -t myScript this is a
 testing log message.
 
 after I run above script nothing  to file:/var/log/myScript.log.
 Why not or
 I miss something ?
 

You might have a program or hostname specification preceding your line
from syslog.conf. Probably true if you just appended the line to
syslog.conf. This would limit the scope of logging. See man syslog.conf!

The file myscript.log must exist before you restart syslogd to re-read
the configuration.

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


Re: downmix wave file from stereo to mono

2004-03-18 Thread Peder Blom
On Thu, 18 Mar 2004 16:45:49 +0800
Zhang Weiwu [EMAIL PROTECTED] wrote:

 Today I got a simple job to convert a 600MB stereo .wav file to mono
 .wav file. Very simple task.
 
 First I read the lame(1) manual carefully, and decide it cannot help.
 I tried to install several sound editor, glame tried to pull down the
 gtk1 library and depended packages, so stopped it. audacity takes too
 long time to compile (still doing now). I tried sweep, and it hung my
 machine; it seems trying to load the whole wave file into memory. I
 find xwava compiles correctly, runs okay, but it can do downmix only
 when the file fits memory. I also tried several other ports I don't
 remember now. Now I worked the whole afternoon without any progress.
 
 I think there must be some handy tools can do this. On audio port
 directory I tried
 make search key=mono
 make search key=downmix
 Both returned nothing.
 
 So what do you suggest me to use?

ports/audio/sox should be able to do what you want.

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


Re: copying files with same name

2004-02-17 Thread Peder Blom
On Mon, 16 Feb 2004 16:49:37 -0500 (EST)
Dru [EMAIL PROTECTED] wrote:

 
 Okay, I must be missing something obvious here. How do you do a batch
 copy while renaming the destination files? I want to copy all of the
 configure scripts in /usr/ports to ~/scripts. I can get find to find
 the files, I can get sed to rename them, but I can't get the timing
 down right.
 
 cp -v `find /usr/ports -name configure -print | sed 's:/:=:g'` .
 
 renames the files nicely (so they're not all named configure), but
 does it too soon--the source no longer exists.
 
 cp -v `find /usr/ports -name configure -print -exec sed 's:/:=:g' {}
 \;` .
 
 gives a syntax error (missing }) and
 
 cp -v `find /usr/ports -name configure -print | sed 's:/:=:g'` .
 
 has sed complain of extra characters at the end of a p command,
 followed by all my destination files being named configure.
 
 Is there a way to do this as a one-liner, or does one have to write a
 shell script with a while loop?
 
 Dru
 ___



---
cd ~/scripts

find /usr/ports/ -name configure | awk '{dst=$0;gsub(/,=,dst); \
print cp,$0,dst}' | sh
---

Pipe the output to less instead of sh to check what actions will be
taken before running the above commands!

This will not work with filenames that contain spaces (easily fixed).


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


Re: Problem with someone port scanning me

2004-02-12 Thread Peder Blom
On Thu, 12 Feb 2004 11:12:53 -0500
Dragoncrest [EMAIL PROTECTED] wrote:

   For the past couple of days I've had someone on our lan port
   scanning my 
 box.  Not sure what's up with that, but I'm curious if there's a way
 to log what IP address this is coming from.  I don't have IPFW enabled
 yet as I haven't had the time to configure it at this point as it's
 currently behind the company firewall on our T3.  Is there a way to
 log where it's coming from?  Or is that already being logged
 somewhere?
 

man tcpdump

ports/net/ethereal

netcat? (ports/net/nc). If connections are to a specific port and
protocol are tcp you can set up nc to listen for connections on this
port. Once a connection is established you might get some info, e.g. see
what requests are made. A while ago I started getting an absurd number
of requests (+30k in an afternoon on my standalone home computer), using
netcat I found out that it was requests from kazaa clients... (and no, I
don't run kazaa but I'm on dhcp so I obviously got a bad ip).

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


Re: Graphical FTP client from command line

2004-02-11 Thread Peder Blom
On Wed, 11 Feb 2004 09:12:17 -0500
JJB [EMAIL PROTECTED] wrote:

 FBSD Friends
 
 On my gateway server I do not run X.
 Looking for recommendation on command line  Graphical FTP client.
 Something with directory tree to select the 'from' and 'to'
 locations.
 
 Are there any?
 
 Thanks

ports/misc/mc/

This is not an ftp client but it can do what you ask for. It's not that
great for ftp but you could check it out as a last resort if you don't
find anything better.

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


Re: Graphical FTP client from command line

2004-02-11 Thread Peder Blom
On Wed, 11 Feb 2004 11:51:47 -0500
JJB [EMAIL PROTECTED] wrote:

 Yes mc does show graphical directory tree for the local HD, but it
 has no way to be used from within FTP so both local and remote sides
 can be navigated.
 
 Maybe graphical directory tree is bad selection of words.
 
 Restated as FTP client that presents an local and remote windows
 that can be individually navigated to specify file to be sent or to
 get and directory to receive it in or to get it from.

Yes, that's exactly what you can do with mc.

1) start mc

2) cd /#ftp:ftp.freebsd.org

3) navigate away, copy files from server, and so on. Just as you would
to with local directories on your HD.

You might have to do some configuration, eg use of passive mode, default
username and so on. But sure it works.


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


Re: where can I download freebsd4.2

2004-02-09 Thread Peder Blom
On Mon, 9 Feb 2004 10:35:08 +0800
kyue [EMAIL PROTECTED] wrote:

 

check at:

http://mirrorlist.freebsd.org

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


Re: Make Syntax

2004-01-31 Thread Peder Blom
On Fri, 30 Jan 2004 21:38:54 -0800
Rishi Chopra [EMAIL PROTECTED] wrote:

 Is there any way to run a 'clean' command to remove 'WORK' directories
 
 from the ports tree after the fact?
 

If you want to clean a specific port (and its dependencies) just do a
'make clean' in its directory, or if you want to clean the whole tree do
it in the ports base directory.

Check 'man ports' ,there are a number of other targets that might come
in handy at times. E.g. you can do a 'make extract' to get the ports
work directory, browse through readme's and other information before
installing, then do a 'make install clean'.


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


Re: where am I supposed to put my rc.firewall?

2004-01-31 Thread Peder Blom
On Fri, 30 Jan 2004 19:47:47 -0600
Eric F Crist [EMAIL PROTECTED] wrote:

 On Friday 30 January 2004 06:54 pm, Chuck Swiger wrote:
  Eric F Crist wrote:
   I'm trying to add IPFW support.  Where do I put my rc.firewall so
   that it gets read at boot time?  I've tried /usr/local/etc/rc.d
   and /etc but neither seems to get read.
 
  Specify the location of your firewall script in /etc/rc.conf like
  so:
 
  firewall_enable='YES'
  firewall_type='/etc/ERICS_firewall'
  firewall_flags='-p /usr/bin/cpp'
 
  [ You might choose to use some other preprocessor... ]
 
 Well, here's what I have now.  I have a file in /etc called
 grog.firewall.  It's contents are:
 
 grog# more grog.firewall
 ipfw -f flush
 ipfw add 100 pass all from any to any via lo0
 ipfw add 200 deny all from any to 127.0.0.0/8
 ipfw add 300 deny ip from 127.0.0.0/8 to any
 ipfw add 600 allow all from any to any
 
 In my /etc/rc.conf file, I have the following two entries pertaining
 to the firewall:
 
 firewall_enable=YES
 firewall_type=/etc/grog.firewall

Add this to your rc.conf: (instead of firewall_type=...):
firewall_script=/etc/grog.firewall

See /etc/defaults/rc.conf !


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


Re: where am I supposed to put my rc.firewall?

2004-01-31 Thread Peder Blom
On Sat, 31 Jan 2004 10:50:19 -0500
Chuck Swiger [EMAIL PROTECTED] wrote:

 Peder Blom wrote:
 [ ... ]
  Add this to your rc.conf: (instead of firewall_type=...):
  firewall_script=/etc/grog.firewall
  
  See /etc/defaults/rc.conf !
 
 While I won't speak against looking at /etc/defaults/rc.conf, setting 
 firewall_type works fine; see the end of /etc/rc.firewall:
 
 *)
  if [ -r ${firewall_type} ]; then
  ${fwcmd} ${firewall_flags} ${firewall_type}
  fi
  ;;
 
 -- 
 -Chuck
 ___

Yes, that's the other way of doing it. The mentioning of scripts and the
fact that his file was in the form of a script made me assume that he
wanted to write his own script for setting up his firewall. On second
thought I realize that he might just as well want to do it your way and
define a set of rules to be read in by rc.firewall. (This might even be
the best solution).

I've never done it this way, but in this case I assume that you just
define the rules in  '/etc/ERICS_firewall', thus:

--
add 100 pass all from any to any via lo0
add 200 deny all from any to 127.0.0.0/8
add 300 deny ip from 127.0.0.0/8 to any
add 600 allow all from any to any
--

Using your suggestions for rc.conf, of course.

Is this correct?


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


Re: Newbie firewall question

2004-01-28 Thread Peder Blom
On Wed, 28 Jan 2004 07:15:46 +0100
Nicolas [EMAIL PROTECTED] wrote:

 Hello.
 I have just installed 5.2 on my machine and everything works. Now I am
 
 trying to configure it and I want to put up a firewall but a
 everything I read seem to refer to a dial up connection, I have a LAN
 connection.So my question(s) is: is there a difference between a
 firewall for a dial up connection and a  Lan connection.? And if so
 what is the difference, where can I read about it and is there any
 good sites to look at? I have The Complete FreeBSD, the handbook,
 Absolute FreeBSD.. I would be very grateful for some help or
 directions where to look. Many Thanks!!
 ___

If what you want is to set up a simple firewall for a standalone
computer connected via LAN to an ISP there are a number of informative
articles by Dru Lavigne on

http://www.onlamp.com/pub/ct/15

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


Re: [kinda ot] writing the date into a file when saving it

2004-01-27 Thread Peder Blom
On Mon, 26 Jan 2004 15:59:19 -0600
rob_spellberg [EMAIL PROTECTED] wrote:

 dear sir or madam ---
 
 this may be a vi question, but i'd like to be editor-independent, if
 possible.
 
 i want to self-document source code files when i write them to disk.
 
 this would include such things as path and modification time.
 
 ideally, within vi, i would like to have :w run a script [ that i
 would write ]
that does exactly what i want.
 
 for years, i've been doing this more or less haphazardly during
 development,
until i was satisfied that the file was in its final form.
 then i would manually get it right and leave it alone.
 but i'm writing too much right now to keep doing this manually and
i'm something of a nut for documentation.
 
 its easy enough to write a sed script to find a unique string and do a
 replacement. its only slightly more involved to write a glorified
 version of touch
[ which is kinda what i want, actually ].
 
 maybe what i want is to go into vi [ or ex, or wherever ],
find where :w is processed and cause it to look for a script to
run.
 
 i know about :so.
 i know about !command.
 neither are really it.
 
 i've been googling for about an hour and coming up almost completely
 empty. maybe there's a jargon word for what i want that i don't know.
 
 so to get to the question:  what do you folks do?
 
 rob spellberg
 woodstock, illinois
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


I guess this is not what you are after, but have you considered mapping
keys in vi? E.g. something like

:map = 1GO^[!!date;whoami;hostname^M1G3J:w^M

Now, pressing = in command mode adds a line at the top of the file
with current date, user and host, then saves the file. You could be
creative with !command, write your own script or c-program to generate
input.


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


Re: mp3 - wav

2003-10-09 Thread Peder Blom
On Thu, 9 Oct 2003 17:46:46 +0100
geek [EMAIL PROTECTED] wrote:

 I have a problem, i have a bunch of .mp3's files and i want to pass
 them to .wav to put it on my cdplayer, anyone knows, how i can put
 them in .wav ?!

If you look through ports/audio you should be able to find several
programs capable of that. I use lame for converting wav-mp3.

 
 PS: with burncd i can rip .wav files?!

I don't think so. cdparanoia works great for me.

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


Re: vi and wrap text

2003-10-08 Thread Peder Blom
On Wed, 8 Oct 2003 06:22:45 -0500
Bryan Cassidy [EMAIL PROTECTED] wrote:

 I want to know is there a way to wrap the text in vi? In emacs you can
 just hit Esc+q and it will wrap the text. How about vi?

I dont use emacs, but isn't Esc+q the command to rewrap text? I'm not
aware of any such command in vi but instead you can invoke the external
command fmt.

To rewrap the whole text to 60 columns:

:%!fmt 60

To rewrap the text between lines 50 to 100:

:50,100!fmt 60

You can of course also set markers, say a and b, and then

:'a,'b!fmt 60


Check man fmt! It is capable of doing other things you might find
useful, like centering a piece of text.


(Hint: other useful external commands that can be used to extend vi in
this way includes expand, unexpand and awk, especially awk is very
powerful for advanced text processing. You can also write your own
shellscripts and programs, the possibilites are almost unlimited.)

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


Re: mounting floppies as normal user

2003-09-26 Thread Peder Blom
On Fri, 26 Sep 2003 11:11:13 +0200
Frans-Jan v. Steenbeek [EMAIL PROTECTED] wrote:

 OK, I feel like a total newbie again, but I can't figure this out...
 
 I cannot get floppies to be mounted by normal users.
 
 this is what I did:
 $ su
 # systctl vfs.usermount=1
 # chmod 777 /dev/fd0
 # chmod 777 /dev/fd0a
 # exit
 $ mount /dev/fd0a /mnt/flop
 mount: /dev/fd0a: Operation not permitted
 
 root mounts everything fine.
 
 I know that there is a port wich make msdos-flops usable, but I do not
 want that :) I use FreeBSD-formatted floppies also, and then there is
 this backup-drive I do not mount at boottime but only when I need
 it... same problem there.
 The FreeBSD-FAQ tells me exactly (well, to some extend) what I did
 above Google also didn't help me out...
 
 what the heck am I doing wrong?
 

You must own the directory where you mount the floppy (or CD). Try
mounting onto a directory in ~.

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


Re: Disable keyboard beep

2003-09-25 Thread Peder Blom
On Thu, 25 Sep 2003 14:39:56 +0100
[EMAIL PROTECTED] wrote:

 I am using FreeBSD 4.8 and 
 I would like to know
 how would I disable 
 the beep from keyboard 
 when I am in console mode prompt.
 


kbdcontrol -b off


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


Re: Disklabe oddity

2003-09-20 Thread Peder Blom
On Sat, 20 Sep 2003 10:44:28 +0200
Guy Van Sanden [EMAIL PROTECTED] wrote:

 I get a strange message from disklabel:
 Warning, partition c doesn't start at 0!
 Warning, partition c doesn't cover the whole unit!
 Warning, An incorrect partition c may cause problems for standard
 system utilities
 
 What does this mean?

You don't say what version of FreeBSD you are running. I recall that
this problem has been discussed several times on freebsd-current though,
so it might be better to check there.


 I'm considering reinstalling the system with 5.2, reformatting the
 disk, but I don't know if this will clear the error.  It will have a
 larger root though.

It's a warning and not necessarily an error. IIRC it *might* be an issue
with bsdlabel, but don't take my word for it, go and check current, or
google mailing.freebsd.current.

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


Re: Newbie MAKE question

2003-09-20 Thread Peder Blom
On Sat, 20 Sep 2003 12:57:15 -0700
Erick Smith [EMAIL PROTECTED] wrote:

 the problem was that I sent the wrong switch to potinstall
 
 the command should be:
 
 portinstall -f  x11-toolkits/qt32 -M WITHOUT_OPENGL=yes
 

Hint: if you use portinstall/portupgrade you can define make arguments
in /usr/local/etc/pkgtools.conf instead of using the -M switch. This way
you don't have to remember the arguments if you later use portupgrade to
update the port.

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


Re: how

2003-09-18 Thread Peder Blom
On Thu, 18 Sep 2003 14:15:25 +0300
ëéòäùë ÁÎÄÒÅÅ×ÉÞ [EMAIL PROTECTED] wrote:

 How to boot FreeBSD by Windows XP loader?


The FAQ at www.freebsd.org has info on how to use the nt loader to dual
boot with FreeBSD. It worked for me with win2k.






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


Re: dependencies

2003-09-18 Thread Peder Blom
On Thu, 18 Sep 2003 10:46:42 -0500
Brian Henning [EMAIL PROTECTED] wrote:

 Greetings:
 
 I am trying to figure out the dependencies for the j2sdkee13 port.
 
 I was looking through the Makefile and the distinfo file but i didn't
 see anything info.
 
 
 
 i know it needs the bsd-jdk131-patches file and javavmwrapper-1.4
 among others.
 
 any ideas?
 
 thanks,
 
 brian


Cd to the directory as usual and do a make readme. The resulting
README.html file should include the dependencies.




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


Re: Question on downloading and installing freeBSD4.8

2003-09-09 Thread Peder Blom
On Sun, 7 Sep 2003 21:25:59 -0400
Satish Kumar [EMAIL PROTECTED] wrote:

 Hello,
 
 I am trying to download and install freeBSD4.8 as per instructions in
 the freeBSD handbook section 2.13.4 (Installing from an MS-DOS®
 Partition).  When I go to the following site:
 ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/4.8-RELEASE/4.8-RELEASE/
 
 I see a number of files in the bin directory.  I am unable to open the
 install.html document.  Am I supposed to download all the files on
 this site?
 
 
 Could you direct me to a URL from where all files are packaged and
 named clearly so that I know what to download?
 
 Thanks
 Satish 

Hi,

I have never installed from a dos partition so you have to take this for
what it is... vague remembrances from googling when I was to do my first
install of FreeBSD, and perhaps they are not valid for 4.8.

I think that you can get by with just downloading the bin and crypto
directories and then choose a minimal install. That would give you a
very barebone installation, but supposedly it will enable you to get
something started so that you can get an internet connection up and
sysinstall a more complete distribution.

Otherwise I think that you have to download most of the files in the
4.8-RELEASE directory. This will depend on type of installation and the
amount of documentation you want. Don't download the packages directory.

A simple way to get all the files needed for an install is to
download the iso-image(s) and burn them to a cd. Then you can either
install from cd or (I assume) copy the files from the cd to your dos
partition. The mini iso should suffice to get you started. Some dark
memories from the past tells me that there are windows programs that
lets you extract files directly from iso-images, so you might be able to
skip burning to cd...

You should be able to download the install.html document, but if for
some reason you can't open it you can download install.txt instead.


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


Re: Two X sessions on one machine???

2003-09-05 Thread Peder Blom
On Thu, 4 Sep 2003 12:44:20 -0400
Louis LeBlanc [EMAIL PROTECTED] wrote:

 
 There are a hundred other questions, like how do you get an xsession
 to start different WMs or even different configurations of the same WM
 based on the display?
 

I have a number of .xinitrc versions to start different WMs, like
.xinitrc_fluxbox, .xinitrc_gnome and so on. To switch WM I symlink
.xinitrc to the version I want, and then do a startx from the command
line.

I guess this approach can be extended to symlink WM (and other) config
files to different configurations depending on the value of $DISPLAY.

BTW, an alternativ way to start up an xsession on screen N using
terminal xx is:

startx -- :N vtxx


Personally I don't see much use in starting several WMs at the same
time, but it comes in handy when having to deal with FreeBSD is not
ready for the desktop-people. Can you do this on windows? :-)


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


Re: playing a DVD with mplayer

2003-09-03 Thread Peder Blom
On Tue, 2 Sep 2003 08:36:37 +
Ganael Laplanche [EMAIL PROTECTED] wrote:

 Hi,
 
 Isn't there a mean to launch the full DVD and to navigate through the
 in a graphical way (as ogle or xine) ?
 

You can define WITH_GUI when you build the port (see the Makefile). I
also think that there are some graphical frontends in ports/multimedia
that you might want to look at.

But as I've never used any gui for mplayer I don't know if they bring in
any additional functionality.

Note that if you use the command line you can put options in
~/.mplayer/config so most of the time you just have to enter something
like mplayer -dvd 1 to watch a movie.

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


Re: playing a DVD with mplayer

2003-09-01 Thread Peder Blom
On Sat, 30 Aug 2003 21:13:52 -0400
stan [EMAIL PROTECTED] wrote:

 I just got a new notebook with a DVD drive. I compiled mplayer from
 the ports.
 
 Now I want to play a smaple VD that I have. What do I need to do to
 mount the DVD?
 
 -- 

You don't have to mount it. Just run mplayer.

As an example, this is what I do to view chapter 5 of title 6 with
japanese sound and english subtitles in fullscreen mode:

mplayer -dvd 6 -dvd-device /dev/acd0c -alang ja -slang en -fs
 -cache 8192 -chapter 5

See man mplayer for (many!) more options.

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