Re: Client Authentication

2013-03-26 Thread Joseph Olatt
On Sat, Mar 23, 2013 at 09:22:07PM -0700, Doug Hardie wrote:
> I am not sure this is the best place to ask this, but I didn't see any other 
> maillists that seemed more appropriate.
> 
> Basically, my outgoing mail server is being systematically attacked to try 
> passwords looking for one that works.  When they do find one, we get 
> inundated by spam sent through that account throughout the world.  The 
> situation is such that most of our users are older and their computer is a 
> hand-me-down so they can talk to their grandchildren.  Passwords are a great 
> inconvenience for them and create numerous problems with remembering them 
> even when they are simple.  Unfortunately, most of them are quite easy to 
> guess.
> 
> Telling users to use more appropriate passwords is a complete waste of my 
> time.  Its never going to make any changes as they probably would not 
> remember any other password (or where they wrote down the password).  This 
> situation requires a technical solution.
> 
> I have been investigating the use of client authentication through SSL.  DoD 
> uses this approach by having the certificates on an ID card and a card reader 
> on each computer.  We don't have the money to use that approach no could we 
> every get our users to spring for that.  I was hoping to figure out a way to 
> put the certificate on a flash drive or CD that the user would carry.  The 
> approach we use has to also work for iPads, smart phones etc that do not have 
> an interface for a card reader.
> 
> At this time, I have successfully configured a test for openssl client 
> authentication using a client certificate.  There are a few issues remaining. 
>  DoD uses a p12 format for their certificates.  Many browsers support that 
> format.  It encrypts the certificate and private key so they are not easily 
> obtained from the smart card.  Openssl's s_client uses pem certificates and 
> the key has to be included in the certificate file.  While that is easily 
> transported on CD or flash drive, the private key is in the clear on the 
> device.  Thats not really viable.
> 
> S_client works properly without a certificate when the certificate check in 
> the server is set to not fail if a certificate is not provided.  This is 
> needed because we will never get all our users to use this approach at home.  
> They will still want to use passwords.  Since the certificate request is made 
> before the connection information is available, there is no easy way to 
> request it only when needed.  I have only been able to test with the Safari 
> browser and it does not handle the no certificate case properly.  I believe 
> it is dropping the connection when the user does not select a certificate.  I 
> still have to test the other browsers.
> 
> There is an interesting aspect of openssl that the certificate it uses for 
> normal SSL authentication is not used for client authentication.  There are 
> another completely different set of calls that have to be made to set the 
> certificate/key for use in validating the client certificates.  Much of this 
> is only documented in existing code.
> 
> With Safari you have to import the client's certificate into the keychain.  
> Then it works fine.  Unfortunately, it doesn't go away when you are done with 
> it.  Unlike the smart card which, when removed, removes the certificate, the 
> Safari certificate can continue to be used by anyone afterwards.  Hence, its 
> not all that useful for authentication.  One approach I have heard about, but 
> not investigated yet is to place the keychain on the removable device.  That 
> would make it go away.  However, that approach would not work with any other 
> browser or mail program.
> 
> Any ideas/suggestions on this will be appreciated.  Thanks,
> 
> -- Doug

A little while back I wrote a system to do a simple Two Factor
Authentication and dynamic manipulation of PF (Packet Filter) Tables. I
created it to prevent brute-force attacks on the servers that I have
exposed on the Internet. 

Users would carry around a flash drive that has an HTML file containing
a "message" that is signed by your server (Alternatively, the HTML file
can be saved/placed of frequently used devices). When users double-click 
that file, that message is verfified and the user is then prompted for
his/her password. If the password is correct, then access from the
user's IP is allowed to your server. 

The system is released as FOSS and is available at: 
  http://taferno.sourceforge.net

More info may be found at:
  http://taferno.com


I don't know if it will work for you. But, you can try if you'd like.


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

Re: audio/baresip on FreeBSD 9

2013-01-03 Thread Joseph Olatt
On Thu, Jan 03, 2013 at 08:15:41AM +0100, Matthias Apitz wrote:
> 
> Hi,
> 
> El d?a Wednesday, January 02, 2013 a las 08:19:11PM -0800, Joseph Olatt 
> escribi?:
> 
> > 
> > I've been trying to get baresip to work on my FreeBSD 9.x laptop and
> > haven't had much success. I register successfully to callcentric.com and
> > it appears that I can connect and there is a stream of data coming
> > through based on the status display:
> > 
> > [0:00:08] audio=0/0 (bit/s) []
> 
> The display shows zero audio data!
> 
> > However, there is no sound.
> 
> Have you tried the local audio loop with pressing the single letter 'a'?
> 
> > Is anybody on the list successfully using baresip? If so, could they
> > please provide some pointers on how to get sound?
> 
> I'm attaching my config file which works fine; in your config file it
> looks stange to me:
> 
> > # Audio
> > audio_dev   /dev/audio0.0
> 
> do you have such a device file '/dev/audio0.0'?
> 
> > # Audio codec Modules (in order)
> > #module g7221.so
> > #module g722.so
> > module  g711.so
> > #module gsm.so
> > #module l16.so
> > #module speex.so
> > #module celt.so
> > #module bv32.so
> > 
> > # Audio filter Modules (in order)
> > # NOTE: AEC should be before Preproc
> > #module sndfile.so
> > #module speex_aec.so
> > #module speex_pp.so
> > #module speex_resamp.so
> > #module plc.so
> > 
> > # Audio driver Modules
> > #module oss.so
> > #module alsa.so
> > #module portaudio.so
> > #module gst.so
> 
> you have no audio driver loaded, try 'oss.so'
> 
> Once you get the local loop working you could contact me off-list for my
> SIP and try to call me.
> 
> HIH
> 
>   matthias
> -- 
> Sent from my FreeBSD netbook
> 
> Matthias Apitz   |  - No system with backdoors like Apple/Android
> E-mail: g...@unixarea.de |  - No HTML/RTF in E-mail
> WWW: http://www.unixarea.de/ |  - No proprietary attachments
> phone: +49-170-4527211   |  - Respect for open standards

> #
> # baresip configuration
> #
> 
> #--
> 
> # Core
> poll_method   poll# poll, select, epoll ..
> 
> # Input
> input_device  /dev/event0
> input_port
> 
> # SIP
> sip_trans_bsize   128
> #sip_listen   127.0.0.1:5050
> 
> # Audio
> audio_dev /dev/dsp
> audio_srate   8000-48000
> audio_channels1-2
> #audio_aec_length 128 # [ms]
> 
> # Video
> video_dev /dev/video0
> video_size352x288
> video_bitrate 384000
> video_fps 25
> #video_selfview   window # {window,pip}
> 
> # AVT - Audio/Video Transport
> rtp_tos   184
> #rtp_ports1-2
> rtp_ports 1024-1030
> #rtp_bandwidth512-1024 # [kbit/s]
> rtcp_enable   yes
> rtcp_mux  no
> jitter_buffer_delay   5-10# frames
> 
> # Network
> #dns_server   10.0.0.1:53
> 
> #--
> # Modules
> 
> module_path   /usr/local/lib/baresip/modules
> 
> # UI Modules
> modulestdio.so
> modulecons.so
> #module   evdev.so
> 
> # Audio codec Modules (in order)
> #module   g7221.so
> #module   g722.so
> moduleg711.so
> #module   gsm.so
> #module   l16.so
> #module   speex.so
> #module   celt.so
> #module   bv32.so
> 
> # Audio filter Modules (in order)
> # NOTE: AEC should be before Preproc
> #module   sndfile.so
> #module   speex_aec.so
> #module   speex_pp.so
> #module   speex_resamp.so
> #module   plc.so
> 
> # Audio driver Modules
&

audio/baresip on FreeBSD 9

2013-01-02 Thread Joseph Olatt

I've been trying to get baresip to work on my FreeBSD 9.x laptop and
haven't had much success. I register successfully to callcentric.com and
it appears that I can connect and there is a stream of data coming
through based on the status display:

[0:00:08] audio=0/0 (bit/s) []

However, there is no sound.

Is anybody on the list successfully using baresip? If so, could they
please provide some pointers on how to get sound?

There doesn't seem to be much documentation anywhere on the Internet for
baresip.

My config file (~/.baresip/config) is:

/* Begin ~/.baresip/config */
#
# baresip configuration
#

#--

# Core
poll_method poll# poll, select, epoll ..

# Input
input_device/dev/event0
input_port  

# SIP
sip_trans_bsize 128
#sip_listen 127.0.0.1:5050

# Audio
audio_dev   /dev/audio0.0
audio_srate 8000-48000
audio_channels  1-2
#audio_aec_length   128 # [ms]

# Video
video_dev   
video_size  352x288
video_bitrate   384000
video_fps   25
#video_selfview window # {window,pip}

# AVT - Audio/Video Transport
rtp_tos 184
#rtp_ports  1-2
#rtp_bandwidth  512-1024 # [kbit/s]
rtcp_enable yes
rtcp_muxno
jitter_buffer_delay 5-10# frames

# Network
#dns_server 10.0.0.1:53

#--
# Modules

module_path /usr/local/lib/baresip/modules

# UI Modules
module  stdio.so
module  cons.so
#module evdev.so

# Audio codec Modules (in order)
#module g7221.so
#module g722.so
module  g711.so
#module gsm.so
#module l16.so
#module speex.so
#module celt.so
#module bv32.so

# Audio filter Modules (in order)
# NOTE: AEC should be before Preproc
#module sndfile.so
#module speex_aec.so
#module speex_pp.so
#module speex_resamp.so
#module plc.so

# Audio driver Modules
#module oss.so
#module alsa.so
#module portaudio.so
#module gst.so

# Video codec Modules (in order)
module  avcodec.so
#module vpx.so

# Video source modules
#module avformat.so
#module v4l.so
#module v4l2.so

# Video display modules
#module sdl.so
#module x11.so

# Media NAT modules
#module stun.so
#module turn.so
#module ice.so

# Media encoding modules
#module srtp.so

# Other modules
#module natbd.so

#--
# Module parameters


# Speex codec parameters
speex_quality   7 # 0-10
speex_complexity7 # 0-10
speex_enhancement   0 # 0-1
speex_vbr   0 # Variable Bit Rate 0-1
speex_vad   0 # Voice Activity Detection 0-1
speex_agc_level 8000

# NAT Behavior Discovery
#natbd_server   creytiv.com
#natbd_interval 600 # in seconds
/* End ~/.baresip/config */


/* uname -a */
FreeBSD peace 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #4 r244062: Mon Dec
10 17:56:25 CST 2012 root@peace:/usr/obj/usr/src/sys/PEACE  i386


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


freebsd-texlive port

2012-10-09 Thread Joseph Olatt
Hi,

According to: 
  
  http://code.google.com/p/freebsd-texlive

I got the impression that the texlive is now available in the ports. My
understanding was that we no longer need to use portshaker(8). I've
updated svn of ports to r305607 and I still don't see texlive* in 
/usr/ports/print or any where in /usr/ports.

I'm running: FreeBSD 9.0 STABLE i386

Can any TeX Live / LaTeX users on the list shed some light?

Thanks

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


Re: /usr/ports/x11-wm/awesome problems

2011-01-30 Thread Joseph Olatt
On Sun, Jan 30, 2011 at 01:01:23AM +, Frank Shute wrote:
> On Fri, Jan 28, 2011 at 09:08:36PM -0800, Joseph Olatt wrote:
> >
> > Hi,
> > 
> > Anybody on the list having recent problems with the awesome window
> > manager? I get the following error when I try to run awesome:
> > 
> > W: awesome: image_new_from_file:288: cannot load image 
> > /usr/local/share/awesome/icons/awesome16.png: unknown error, that's really 
> > bad
> > /usr/local/share/awesome/lib/awful/menu.lua:221: attempt to compare number 
> > with nil
> > W: awesome: image_new_from_file:288: cannot load image 
> > /usr/local/share/awesome/icons/awesome16.png: unknown error, that's really 
> > bad
> > /usr/local/share/awesome/lib/awful/menu.lua:221: attempt to compare number 
> > with nil
> > 
> > 
> > 
> > /usr/local/share/awesome/icons/awesome16.png exists, is readable and can
> > be displayed fine with display(1).
> > 
> > 
> > I did csup the ports tree and recompiled both awesome and imlib2, but
> > did not succeed.
> > 
> > 
> > The entire output of startx is:
> > 
> > X.Org X Server 1.7.5
> > Release Date: 2010-02-16
> > X Protocol Version 11, Revision 0
> > Build Operating System: FreeBSD 8.2-PRERELEASE i386 
> > Current Operating System: FreeBSD mint 8.2-PRERELEASE FreeBSD 
> > 8.2-PRERELEASE #0: Fri Jan 21 05:05:00 CST 2011 
> > root@mint:/usr/obj/usr/src/sys/MINT i386
> > Build Date: 27 January 2011  07:56:40PM
> >  
> > Current version of pixman: 0.18.4
> > Before reporting problems, check http://wiki.x.org
> > to make sure that you have the latest version.
> > Markers: (--) probed, (**) from config file, (==) default setting,
> > (++) from command line, (!!) notice, (II) informational,
> > (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> > (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 28 21:43:23 2011
> > (==) Using default built-in configuration (30 lines)
> > (EE) Failed to load module "fbdev" (module does not exist, 0)
> > NTSC 
> >   XRANDR name: VGA-0
> >   Connector: VGA
> >   CRT1: INTERNAL_DAC1
> >   DDC reg: 0x60
> >   XRANDR name: DVI-0
> >   Connector: DVI-D
> >   DFP1: INTERNAL_TMDS1
> >   DDC reg: 0x64
> >   XRANDR name: LVDS
> >   Connector: LVDS
> >   LCD1: INTERNAL_LVDS
> >   DDC reg: 0x6c
> >   XRANDR name: S-video
> >   Connector: S-video
> >   TV1: INTERNAL_DAC2
> >   DDC reg: 0x0
> > finished output detect: 0
> > finished output detect: 1
> > finished output detect: 2
> > finished output detect: 3
> > finished all detect
> > Entering TV Save
> > Save TV timing tables
> > saveTimingTables: reading timing tables
> > TV Save done
> > disable primary dac
> > disable FP1
> > disable TV
> > init memmap
> > init common
> > init crtc1
> > init pll1
> > restore memmap
> > restore common
> > restore crtc1
> > restore pll1
> > set RMX
> > set LVDS
> > enable LVDS
> > disable primary dac
> > disable FP1
> > disable TV
> > record: RECORD extension enabled at configure time.
> > record: This extension is known to be broken, disabling extension now..
> > record: http://bugs.freedesktop.org/show_bug.cgi?id=20500
> > W: awesome: image_new_from_file:288: cannot load image 
> > /usr/local/share/awesome/icons/awesome16.png: unknown error, that's really 
> > bad
> > /usr/local/share/awesome/lib/awful/menu.lua:221: attempt to compare number 
> > with nil
> > W: awesome: image_new_from_file:288: cannot load image 
> > /usr/local/share/awesome/icons/awesome16.png: unknown error, that's really 
> > bad
> > /usr/local/share/awesome/lib/awful/menu.lua:221: attempt to compare number 
> > with nil
> > E: awesome: main:505: couldn't find any rc file
> 
> Missing rc file. Copy and edit the example one distributed in the
> package/port to your $HOME.
> 
> Hopefully, that will get rid of most of the warnings.

Frank, Thanks for your response. I did try copying over the required rc
file soon after I sent out my first email. All it did was stop
complaining about it. But, the other errors persisted.

I suspect that there is a problem with the imlib2 routines. I may have
to write some code using the imlib2 routines before I can confirm this.


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


/usr/ports/x11-wm/awesome problems

2011-01-28 Thread Joseph Olatt
Hi,

Anybody on the list having recent problems with the awesome window
manager? I get the following error when I try to run awesome:

W: awesome: image_new_from_file:288: cannot load image 
/usr/local/share/awesome/icons/awesome16.png: unknown error, that's really bad
/usr/local/share/awesome/lib/awful/menu.lua:221: attempt to compare number with 
nil
W: awesome: image_new_from_file:288: cannot load image 
/usr/local/share/awesome/icons/awesome16.png: unknown error, that's really bad
/usr/local/share/awesome/lib/awful/menu.lua:221: attempt to compare number with 
nil



/usr/local/share/awesome/icons/awesome16.png exists, is readable and can
be displayed fine with display(1).


I did csup the ports tree and recompiled both awesome and imlib2, but
did not succeed.


The entire output of startx is:

X.Org X Server 1.7.5
Release Date: 2010-02-16
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 8.2-PRERELEASE i386 
Current Operating System: FreeBSD mint 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE 
#0: Fri Jan 21 05:05:00 CST 2011 root@mint:/usr/obj/usr/src/sys/MINT i386
Build Date: 27 January 2011  07:56:40PM
 
Current version of pixman: 0.18.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 28 21:43:23 2011
(==) Using default built-in configuration (30 lines)
(EE) Failed to load module "fbdev" (module does not exist, 0)
NTSC 
  XRANDR name: VGA-0
  Connector: VGA
  CRT1: INTERNAL_DAC1
  DDC reg: 0x60
  XRANDR name: DVI-0
  Connector: DVI-D
  DFP1: INTERNAL_TMDS1
  DDC reg: 0x64
  XRANDR name: LVDS
  Connector: LVDS
  LCD1: INTERNAL_LVDS
  DDC reg: 0x6c
  XRANDR name: S-video
  Connector: S-video
  TV1: INTERNAL_DAC2
  DDC reg: 0x0
finished output detect: 0
finished output detect: 1
finished output detect: 2
finished output detect: 3
finished all detect
Entering TV Save
Save TV timing tables
saveTimingTables: reading timing tables
TV Save done
disable primary dac
disable FP1
disable TV
init memmap
init common
init crtc1
init pll1
restore memmap
restore common
restore crtc1
restore pll1
set RMX
set LVDS
enable LVDS
disable primary dac
disable FP1
disable TV
record: RECORD extension enabled at configure time.
record: This extension is known to be broken, disabling extension now..
record: http://bugs.freedesktop.org/show_bug.cgi?id=20500
W: awesome: image_new_from_file:288: cannot load image 
/usr/local/share/awesome/icons/awesome16.png: unknown error, that's really bad
/usr/local/share/awesome/lib/awful/menu.lua:221: attempt to compare number with 
nil
W: awesome: image_new_from_file:288: cannot load image 
/usr/local/share/awesome/icons/awesome16.png: unknown error, that's really bad
/usr/local/share/awesome/lib/awful/menu.lua:221: attempt to compare number with 
nil
E: awesome: main:505: couldn't find any rc file

waiting for X server to shut down xmessage: not found
xmessage: not found
finished PLL2
finished PLL1
Entering Restore TV
Restore TV PLL
Restore TVHV
Restore TV Restarts
Restore Timing Tables
Restore TV standard
Leaving Restore TV

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


Re: randomising tracks: scripting question

2011-01-03 Thread Joseph Olatt
On Sun, Dec 26, 2010 at 05:09:30PM +, Frank Shute wrote:
> 
> I generally play my tracks of an album like so:
> 
> for track in $(cat trombone_shorty-backatown.m3u); do
> mplayer $track
> done
> 
> They then play in the correct order.
> 
> How would I go about randomising the order of play using
> sh (preferably) or perl?
> 
> Sorry for the OT posting but I thought a brainteaser might clear the
> fog caused by excessive Xmas indulgence ;)
> 
> 
> Regards,
> 
> -- 
> 
>  Frank
> 
>  Contact info: http://www.shute.org.uk/misc/contact.html
> 
> 

A little while back I wrote a perl script to randomly pick mp3, 
ogg, flac files from any directory specified as arg 1 and play them
using mplayer. 

I categorize my genres by directory and with this perl script I can
randomly play songs from any directory.

If the script is invoked without any arguments, then it will play songs
from the default hard-coded directory defined by $SONG_DIR.

Don't know if this would be useful to you (or someone else). 


#!/usr/bin/perl -w

use strict;

my $SONG_DIR = "/home/joji/songs/good";

if ($#ARGV == 0)
{
$SONG_DIR = $ARGV[0];
}

my %played = ();
my $rand;
my $dh;
my @song_list;


opendir($dh, $SONG_DIR);
@song_list = readdir($dh);
closedir($dh);

my $count = $#song_list;

# Perl counts from zero. If there is one item, Perl will say 0.
# So to get the real count, we have to increment by 1.
$count++;

chdir($SONG_DIR);

while ((keys %played) < $count)
{
while (1)
{
$rand = int(rand($count));
if (! $played{$rand})
{
$played{$rand} = 1;
last;
}

if ((keys %played) >= $count)
{
last;
}
}

if ($song_list[$rand] eq "." || $song_list[$rand] eq "..")
{
;
}
else
{
print "Playing song # " . $rand . " [" . $song_list[$rand] . "]\n";
`mplayer \"$song_list[$rand]\"`;
}

}

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


Re: RT 3.8.6 web page wont display after configuration on FreeBSD 8.0

2010-05-10 Thread Joseph Olatt
On Mon, May 10, 2010 at 09:14:13AM -, Pamela Pomary wrote:
> Hello,
> I have installed rt3.8.6 with apache2-modperl2 on freebsd 8.0. I have
> configured RT_SiteConfig.pm and /apache22/Includes/http-local.conf files
> as directed by RT's wiki website
> http://wiki.bestpractical.com/view/UserManual. I get the following message
> when i want to launch the web page http://monitor.ug.edu.gh/rt/
> 
> You don't have permission to access /rt/ on this server.
> 
> I have included mod_perl in /apache22/Includes/http-local.conf
> 
> When i checked httpd-error.log, it said [Mon May 10 08:56:56 2010] [error]
> [client 82.206.239.244] client denied by server configuration:
> /usr/local/share/rt38/html/
> 
> 
> Below is my RT_SiteConfig.pm and /apache22/Includes/http-local.conf
> respectively:
> 
> 
> Set( $rtname , "ug.edu.gh");
> Set($Organization , "ug.edu.gh");
> Set($MinimumPasswordLength , "5");
> Set($Timezone , 'GMT');
> Set($DatabaseType ,'mysql');
> Set($DatabaseHost , 'localhost');
> Set($DatabaseRTHost , 'localhost');
> Set($DatabaseUser , 'root');
> Set($DatabasePassword , '1234asdf');
> Set($DatabaseName , 'mysql');
> Set($DatabasePort , '');
> Set($DatabaseRequireSSL , undef);
> Set($UseSQLForACLChecks, 1);
> Set($OwnerEmail , 'root');
> Set($LoopsToRTOwner , 1);
> Set($StoreLoops , undef);
> Set($MaxAttachmentSize , 1000);
> Set($TruncateLongAttachments , undef);
> Set($DropLongAttachments , undef);
> Set($ParseNewMessageForTicketCcs , undef);
> Set($RTAddressRegexp , '^moni...@ug.edu.gh$');
> Set($CanonicalizeEmailAddressMatch , '@monitor\.ug.edu\.gh$');
> Set($CanonicalizeEmailAddressReplace , '@ug.edu.gh');
> Set($CanonicalizeOnCreate, 0);
> Set($SenderMustExitInExternalDatabase , undef);
> Set($ValidateUserEmailAddress,undef);
> Set($ExtractSubjectTagMatch, qr/\[.+? #\d+\]/);
> Set($ExtraSubjectTagNoMatch, ( ${RT::EmailSubjectTagRegex}
>? qr/\[(?{RT::EmailSubjectTagRegex}) #\d+\]/
>: qr/\[\Q$RT::rtname\E #\d+\]/));
> Set($MailCommand , 'sendmailpipe');
> Set($MailCommand , 'sendmailpipe');
> Set($SendmailArguments , "-oi -t");
> Set($SendmailBounceArguments , '-f "<>"');
> Set($SendmailPath , "/usr/sbin/sendmail");
> Set($SMTPServer, undef);
> Set($SMTPFrom,undef);
> Set($SMTPDebug, 0);
> Set(@MailParams, ());
> Set($CorrespondAddress , 'ppom...@ug.edu.gh');
> Set($CommentAddress , 'ppom...@ug.edu.gh');
> Set($DashboardAddress, 'ppom...@ug.edu.gh');
> Set($UseFriendlyFromLine, 1);
> Set($FriendlyFromLineFormat, "\"%s via RT\" <%s>");
> Set($WebPath, "/rt");
> Set($WebBaseURL , "http://monitor.ug.edu.gh";);
> Set($WebURL , $WebBaseURL . $WebPath . "/");
> 
> 
>
>AllowOverride None
>order allow,deny
>Allow from all
>  
> Alias /rt/ /usr/local/share/rt38/html/
> 
> Counting on your help to complete my RT setup soon.
> 
> Thank You.

Have you checked the permissions on /usr/local/share/rt38/html.
If you are using Apache from the ports, then it is probably running
as user "www" and group "www".

User "www" should be able to read and cd into /usr/local/share/rt38/html

I would first check that.

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


Re: Unable to use CD/DVD drive

2009-09-20 Thread Joseph Olatt
On Sun, Sep 20, 2009 at 09:48:40AM +0530, N. Raghavendra wrote:
> Until a couple of months ago, I was able to read and write CDs and
> DVDs.  Since then, I haven't been able to do so.  When I try to mount
> a CD/DVD, the process just hangs without the media being mounted, or I
> get errors like this:
> 
> [r...@griffin:/root]# mount /cdrom
> mount_cd9660: /dev/acd0: Input/output error
> 
> Also, `/var/log/messages' shows lines like
> 
> Sep 20 09:11:51 griffin kernel: g_vfs_done():acd0[READ(offset=32768, 
> length=2048)]error = 5
> 
> Similar messages occur when I try to write a CD/DVD using cdrecord(1).
> The CD/DVD drive is a ` Removable CD-ROM
> SCSI-0 device'.  I upgraded my kernel to no avail.
> 
> More details are below.  Any help is appreciated.
> 
> Thanks and regards,
> Raghavendra.
> 
> --
> 
> 1. Output of dmesg: attached.
> 
> 2. Kernel configuration file
> 
> 
> include "GENERIC"
> ident GRIFFIN
> device atapicam
> device sound
> device snd_hda
> options ACCEPT_FILTER_HTTP
> 
> 3. /boot/loader.conf
> 
> 
> nvidia_load="YES"
> hw.ata.ata_dma="1"
> 
> 4. /etc/fstab
> -
> 
> # DeviceMountpoint FStype  Options   Dump Pass#
> /dev/ad4s3b none   swapsw00
> /dev/ad4s3a /  ufs rw11
> /dev/ad4s3f /home  ufs rw22
> /dev/ad4s3e /opt   ufs rw22
> /dev/ad4s3h /tmp   ufs rw22
> /dev/ad4s3d /usr   ufs rw22
> /dev/ad4s3g /var   ufs rw22
> /dev/acd0   /cdrom cd9660  ro,noauto 00
> 
> 5. Output of `cdrecord --scanbus'
> 
> 
> [r...@griffin:/root]# cdrecord -scanbus
> Cdrecord-Clone 2.01 (i386-unknown-freebsd7.0) Copyright (C) 1995-2004 Jorg 
> Schilling
> Using libscg version 'schily-0.8'.
> scsibus0:
> 0,0,0 0) 'TEAC' 'USB   HS-CF Card' '4.08' Removable
> Disk
> 0,1,0 1) *
> 0,2,0 2) *
> 0,3,0 3) *
> 0,4,0 4) *
> 0,5,0 5) *
> 0,6,0 6) *
> 0,7,0 7) *
> scsibus4:
> 4,0,0   400) 'PBDS' 'DVD+-RW DH-16W1S' '2D14' Removable
> CD-ROM
> 4,1,0   401) *
> 4,2,0   402) *
> 4,3,0   403) *
> 4,4,0   404) *
> 4,5,0   405) *
> 4,6,0   406) *
> 4,7,0   407) *
> 
> -- 
> N. Raghavendra  | http://www.retrotexts.net/
> Harish-Chandra Research Institute   | http://www.mri.ernet.in/
> See message headers for contact and OpenPGP information.
> 
> 

> Copyright (c) 1992-2009 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>   The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 7.2-STABLE #3: Thu Sep 10 21:00:51 IST 2009
> r...@griffin.campus.hri:/usr/obj/usr/src/sys/GRIFFIN
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Intel(R) Core(TM)2 Quad CPUQ6600  @ 2.40GHz (2394.01-MHz 686-class 
> CPU)
>   Origin = "GenuineIntel"  Id = 0x6fb  Stepping = 11
>   
> Features=0xbfebfbff
>   Features2=0xe3bd
>   AMD Features=0x2010
>   AMD Features2=0x1
>   Cores per package: 4
> real memory  = 3219718144 (3070 MB)
> avail memory = 3136708608 (2991 MB)
> ACPI APIC Table: 
> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
>  cpu2 (AP): APIC ID:  2
>  cpu3 (AP): APIC ID:  3
> ioapic0: Changing APIC ID to 4
> ioapic0  irqs 0-23 on motherboard
> kbd1 at kbdmux0
> acpi0:  on motherboard
> acpi0: [ITHREAD]
> acpi0: Power Button (fixed)
> acpi0: reservation of 0, a (3) failed
> acpi0: reservation of 10, bfd9 (3) failed
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
> acpi_hpet0:  iomem 0xfed0-0xfed003ff on acpi0
> device_attach: acpi_hpet0 attach returned 12
> acpi_button0:  on acpi0
> pcib0:  port 0xcf8-0xcff on acpi0
> pci0:  on pcib0
> pcib1:  irq 16 at device 1.0 on pci0
> pci1:  on pcib1
> vgapci0:  port 0xcf00-0xcf7f mem 
> 0xfa00-0xfaff,0xd000-0xdfff,0xf800-0xf9ff irq 16 at 
> device 0.0 on pci1
> nvidia0:  on vgapci0
> vgapci0: child nvidia0 requested pci_enable_busmaster
> vgapci0: child nvidia0 requested pci_enable_io
> nvidia0: [GIANT-LOCKED]
> nvidia0: [ITHREAD]
> em0:  port 0xff00-0xff1f mem 
> 0xfdfc-0xfdfd,0xfdfff000-0xfdff irq 20 at device 25.0 on pci0
> em0: Using MSI interrupt
> em0: [FILTER]
> em0: Ethernet address: 00:1d:09:99:b5:ee
> uhci0:  port 0xfe00-0xfe1f irq 16 at device 
> 26.0 on pci0
> uhci0: [GIANT-LOCKED]
> uhci0: [ITHREAD]
> usb0:  on uhci0
> usb0: USB revision 1.0
> uhub0:  on usb0
> uhub0: 2 ports with 2 removable, self powered
> uhci1:  port 0xfd00-0xfd1f irq 21 at device 
> 26

Re: Racoon VPN

2009-08-13 Thread Joseph Olatt
On Wed, Aug 12, 2009 at 07:35:08PM +0200, Roland Smith wrote:
> On Wed, Aug 12, 2009 at 08:26:45AM -0700, Joseph Olatt wrote:
> > It appears that racoon2 has been removed from the ports. 
> > Superseded by: ipsec-tools
> 
> Look closely. security/racoon was removed, not security/racoon2!

Thanks for the correction.



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


Re: Racoon VPN

2009-08-12 Thread Joseph Olatt
On Tue, Aug 11, 2009 at 09:44:28PM +0200, get acoder wrote:
> Hi there,
> 
> I am refering to your very detailed doc
> 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ipsec.html
> 
> I am exactly looking for the same features and setup, my only issue is that
> I cant find racoon as you are describing here:
> 
> /usr/local/etc/racoon/racoon.conf
> 
> I installed ipsec tools, compiled my kernel for IPSec only to find out that
> racoon2 is only available
> 
> Any idea how where I ca find racoon v1
> 
> regards and tx
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


It appears that racoon2 has been removed from the ports. 
Superseded by: ipsec-tools


[/usr/ports]
x...@serenity$ make search name=racoon
Port:   racoon2-20071227e_1
Path:   /usr/ports/security/racoon2
Info:   Racoon2 IPsec daemon
Maint:  sumik...@freebsd.org
B-deps: autoconf-2.61_2 autoconf-wrapper-20071109 m4-1.4.11,1
perl-5.8.8_1
R-deps:
WWW:http://www.racoon2.wide.ad.jp/

Port:   security/racoon
Moved:  security/ipsec-tools
Date:   2005-11-18
Reason: removed, successor is ipsec-tools



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


Re: Forgotten password

2009-06-04 Thread Joseph Olatt
On Thu, Jun 04, 2009 at 01:32:27PM +0200, Wojciech Puchar wrote:
> >Good day am a new user of of freebsd Os and i forgot my login password, i 
> >will need an assitance on how to get it changed.
> boot, press 4 at boot loader prompt to get single user.
> 
> after seeing a guestion what to run as a shell (/bin/sh as default) press 
> enter.
> 
> then
> 
> /sbin/mount /
> /usr/bin/passwd

Without any arguments, the password for root will probably get changed. 
If the user wants to change his/her personal account passwd, then:

/usr/bin/passwd 


> change password
> 
> then press CTRL-D
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: flex from ports kills buildworld?

2009-04-09 Thread Joseph Olatt
On Thu, Apr 09, 2009 at 12:53:09PM -0700, Steve Franks wrote:
> Probably doing something stupid, but on the off chance I'm not:
> 
> - Had to install a newer flex from ports for something.
> - Had to move the system flex to avoid hacking reams of bad makefiles
> - Did a buildworld, and it can't find a flex
> - Seems to me, buildworld should be able to use a newer flex, and
> should be able to use the one from /usr/local instead of /sbin
> 
> Thanks,
> Steve
> 
> [st...@dynstant /usr/src]$ sudo make buildworld
> ...
> flex -ogengtype-lex.c
> /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype-lex.l
> flex:No such file or directory
> *** Error code 1
> 
> Stop in /usr/src/gnu/usr.bin/cc/cc_tools.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> [st...@dynstant /usr/src]$ which flex
> /usr/local/bin/flex
> [st...@dynstant /usr/src]$

It appears that your flex in /usr/local/bin is not being found.
It is possible that PATH for the build environment does not 
contain /usr/local/bin probably in order to have a controlled
build environment.

Why don't  you temporarily do:

ln -s /usr/local/bin/flex /usr/bin/flex

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


Re: Need help installing on SATA

2008-10-13 Thread Joseph Olatt
On Fri, Oct 10, 2008 at 11:06:51PM -0500, Conrad J. Sabatier wrote:
> Does anyone know the magic incantation that will permit me to install 
> FreeBSD on this new machine of mine (nVidia chipset, SATA1 disk 
> controller)?
> 
> I've been trying for a week or so now, with no luck.  Just out of 
> curiosity, I downloaded and ran Ubuntu 8.x, and it recognized all of 
> my hardware automatically.  The FreeBSD installer (both in 7.x and 
> 8.x), though, can't find my hard drive or CD-ROM.
> 
> I *really* don't want to have to resort to Linux, not after using 
> FreeBSD for 12 years now, but if I can't find a solution to this 
> problem, I'll have no choice.  :-(
> 
> Thanks for any advice.


Hello Conrad,

Recently I had a similar problem. My motherboard is:

NVIDIA MCP73

Fortunately, the above motherboard also has an ATA controller. So I
installed an ATA drive and installed FreeBSD 7.x.

Later I tried to patch the ata drivers but didn't get it right. See the
following thread:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=101821+0+archive/2008/freebsd-stable/20080921.freebsd-stable

 
Later on, Andrey V. Elsukov provided a patch. See the following thread:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=206853+0+archive/2008/freebsd-stable/20080928.freebsd-stable


I can now see the SATA drive (thanks to Andrey V. Elsukov) that is 
installed in the system with Ubuntu. But I'm still have some issues 
with the DVD Writer that is also connected to the SATA controller. I'm
getting read errors when I try to view a DVD. I haven't had the time 
to research it yet.

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


Re: Presenting 'host' command output

2008-09-26 Thread Joseph Olatt
On Fri, Sep 26, 2008 at 06:51:46PM +0200, Jos Chrispijn wrote:
> If I do this on my server1 (BSD 6.4 prerelease)
> 
> server1# host dekiekendief.nl
> 
> I get this, which is good:
> 
> dekiekendief.nl has address 72.36.229.154
> dekiekendief.nl mail is handled by 30 mail.dekiekendief.nl.
> 
> If I do this on my server2 (BSD 7.0 stable)
> 
> server2# host dekiekendief.nl
> 
> I get this, which I think is not the right way to display:
> 
> dekiekendief.nl has address 72.36.229.154
> 154.229.36.72.in-addr.arpa domain name pointer dekiekendief.nl.
> 154.229.36.72.in-addr.arpa domain name pointer dekiekendief.nl.
> 
> Can someone tell me how I can alter server2 display to something similar 
> to server1 display?


Try copying server1:/etc/resolv.conf -> server2:/etc/resolv.conf


Make a backup copy of server2:/etc/resolv.conf before you do so.


See it that helps.

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


Re: sed html tags

2008-08-28 Thread Joseph Olatt
On Thu, Aug 28, 2008 at 03:04:22PM -0400, An wrote:
> yes, it does work perfectly with the example I gave... the actual file
> is some like
> 
> ...  111  no    
>        ...
> 
> 
> your command only returns ]# sed 's/\( .*>.*<\/span>\)\(.*\)\(.*<\/span>\)/\2/' file
> 
>  
> 
> 
> I wish to rip all  .*  and obtain


If you wish to rip out all " .* " then the output would
be:

     


If that is what you want, then try the following:

sed 's/[ 0-9a-z<>]*<\/span>//g; s/<\/span>//g'


But if Perl is already doing the job for you, I think this can be put to
rest.

regards,
joseph



> ...        ...
> 
> 
> i think sed should be able to do it, but the operator [ ^ (  ) ]* is
> not behaving as i think it would... perl does it alright, though : s



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


Re: sed html tags

2008-08-28 Thread Joseph Olatt


> > >>> Hi, I have the string
> > >>>
> > >>>  111     
> > >>>
> > >>> And i wish to use sed to strip *only* the "" tag and its
> > >>> contents... is this possible ? I'm trying this expression, but it
> > >>> doesn't work...
> > >>>
> > >>> sed 's/\)]+<\/span>//g' file
> > >>>
> > >>> is there anything like it ?
> > >>>
> > >>> I would like to obtain
> > >>>
> > >>> 
> > >>>
> > >>>
> > >>>
> > >>> I hope someone can help,
> > >>>
> > >>> thank you,
> > >>>
> > >>> siran

If you haven't yet solved the above problem, give the following a try:

sed 's/\(.*<\/span>\)\(.*\)\(.*<\/span>\)/\2/'


regards,
joseph


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


Re: sed/awk, instead of Perl

2008-08-21 Thread Joseph Olatt
On Thu, Aug 21, 2008 at 08:46:47AM -0400, Steve Bertrand wrote:
> I'm frequently having to modify/convert email addresses from one 
> format/domain to another.
> 
> Usually, I slap together a quick Perl script to do this for me. I don't 
> do it frequently enough to keep track which one of my scripts does this 
> for me, so I'm continuously re-inventing the wheel.
> 
> Some of the time, I use sed/awk to do this, but that usually requires a 
> few passes over a few files.
> 
> To put it plainly, can anyone, if it's possible, provide a single line 
> sed/awk pipeline that can:
> 
> - read email addresses from a file in the format:
> 
> user.name TAB domain.tld
> 
> - convert it to:
> 
> [EMAIL PROTECTED]
> 
> - write it back to either a new file, the original file, or to STDOUT
> 
> Regards,
> 
> Steve

Try the following:


 cat t.txt | awk -F\t '{split($1, arr, "."); printf("[EMAIL PROTECTED]", arr[
1], arr[2], $2);}'

where t.txt:
john.doeexample.com


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


Re: JDK13

2003-01-03 Thread Joseph Olatt
I believe that you need to get the source for JDK from the sun site
(after agreeing to their license agreement) and then compile it using
the patches provided at the following site:

http://www.eyesbeyond.com/freebsddom/java/jdk13.html

See above site for more info.


On Fri, Jan 03, 2003 at 08:14:30AM -0500, Alvaro Rosales R. wrote:
> HEllo guys, Im trying to install JDK 13 in my FreeBSD BOx but I cant 
> find the src files the port asks me to  fetch from SUN's website, there I 
> can only find a linux binary and a Solarys tar.Z file. Can yoou tell me  
> where else can I look for it? or Does anyone of you have it in an FTP 
> server?. Thanks in advance for all your help!
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 

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