Re: network manager

2008-12-31 Thread lordfabri
Hi Nick and thanks for the answer.

I have installed openbsd on my laptop and everything works fine,gnome too.
What i haven't uderstand is:

1)I have a Digicom usb wifi with Zydas chipset and i 'vre read it's just
supported...but i don't know to activate (command not found with lsusb and
lspci)

2)Is there a graphical network manager like wicd or something where i can
use wifi connections?

3)The audio. What do i need to initialize it?

4)Tar,zip ecc..how do  you add  with right-clck the function extract here?

5)Opera has Java included?Because from ports in java i can't install it the
output is error 1 while installing...

thanks !!

Nick Guenther wrote:
 
 On Tue, Dec 30, 2008 at 4:46 PM, lordfabri lordfa...@hotmail.it wrote:
 hello evrybody..anyone knows how i can install network manager on gnome?

 thanks!

 
 First: have you installed the associated gnome-* packages?
 Second: judging from it's homepage
 (http://projects.gnome.org/NetworkManager/) it seems pretty
 linux-centric (and needs linux's HAL?). This isn't too surprising,
 networking is a fairly low level OS-specific operation, and the
 network manager would have to contend with all the varieties. Anyway,
 NetworkManager is flakey from my rare interactions with it on Ubuntu,
 why bother?
 
 -Nick
 
 
 

-- 
View this message in context: 
http://www.nabble.com/network-manager-tp21223616p21229304.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



ftp from script

2008-12-31 Thread Ed Ahlsen-Girard

I'm trying to automate getting the sets and source for running -current.

For some reason, this syntax:

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz

or this:

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/bsd.rd

works great from the command line.  But not in scripts, either shell:

#!/bin/sh

cd /where/I/put/sets

rm *

# all above work fine

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz

or perl:

#!/usr/bin/perl

`cd /where/I/put/sets`;

`rm *`;

# all above work fine

`ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz`;

Using system () does not get any different behavior, whether I pass a
list or a proper array.  In all cases I see a connection to the server, 
followed

by a complaint of an invalid directory, and disconnection.

I've been using perl for about ten years, and I'm pretty sure my perl is ok.
Anybody have an idea of what I'm missing?



Re: network manager

2008-12-31 Thread Rene Maroufi
On Wed, Dec 31, 2008 at 01:58:29AM -0800, lordfabri wrote:
 Hi Nick and thanks for the answer.
 
 I have installed openbsd on my laptop and everything works fine,gnome too.
 What i haven't uderstand is:
 
 1)I have a Digicom usb wifi with Zydas chipset and i 'vre read it's just
 supported...but i don't know to activate (command not found with lsusb and
 lspci)

lspci and lsusb are not part of OpenBSD, you can use usbdevs (instead of
lsusb). Read:
http://www.openbsd.org/faq/faq6.html#Setup
and
http://www.openbsd.org/faq/faq6.html#Wireless
how to configure network. For permanent configuration use
/etc/hostname.if (change if with your interface name), for temporary
configuration you can use ifconfig and/or dhclient.

 3)The audio. What do i need to initialize it?

Read:
http://www.openbsd.org/faq/faq13.html#confaudio
Check the output of mixerctl, maybe your soundcard is automatically
configured but mixersettings are mute.

Cheers
Reni
-- 
Reni Maroufi
i...@maroufi.net



Re: ftp from script

2008-12-31 Thread Lars Noodén
Ed Ahlsen-Girard wrote:

 Anybody have an idea of what I'm missing?

How is $PATH set?  Do the scripts work if you include the full path?
i.e. /usr/bin/ftp

Regards,
-Lars



Re: ftp from script

2008-12-31 Thread Jesus Sanchez

this works for me, recheck your install, or otherwise
try to compile ftp again from sources.

-Jesus

Ed Ahlsen-Girard escribis:

I'm trying to automate getting the sets and source for running -current.

For some reason, this syntax:

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz

or this:

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/bsd.rd

works great from the command line.  But not in scripts, either shell:

#!/bin/sh

cd /where/I/put/sets

rm *

# all above work fine

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz

or perl:

#!/usr/bin/perl

`cd /where/I/put/sets`;

`rm *`;

# all above work fine

`ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz`;

Using system () does not get any different behavior, whether I pass a
list or a proper array.  In all cases I see a connection to the 
server, followed

by a complaint of an invalid directory, and disconnection.

I've been using perl for about ten years, and I'm pretty sure my perl 
is ok.

Anybody have an idea of what I'm missing?




Re: ftp from script

2008-12-31 Thread Han Boetes
Ed Ahlsen-Girard wrote:
 I'm trying to automate getting the sets and source for running
 -current.

Incase you don't want to reinvent the wheel:

  http://www.xs4all.nl/~hanb/software/OpenBSD-binary-upgrade/



# Han



Re: ftp from script

2008-12-31 Thread Frank Bax

Ed Ahlsen-Girard wrote:

`ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz`;

Using system () does not get any different behavior, whether I pass a
list or a proper array.  In all cases I see a connection to the server, 
followed by a complaint of an invalid directory, and disconnection.



I don't use snapshots; but I used similar code to get packages.

Why use a list/array?  I use this code to get a single/multiple files 
using wildcards instead.  I made a slight mod to my script to test 
snapshots.


my $get = shift;
system( 'ftp -ia 
ftp://'.$site.'/pub/OpenBSD/'.$ver.'/packages/'.$arch.'/'.$get );


Did you remember to escape the asterisk if passing that into script?

./script \*.tgz



Re: Single Use Port Forwarding Using PF

2008-12-31 Thread Morris, Roy
I would use authpf and assign them each a unique port number. They

must authenticate with the gateway for the rule to become active.



just a thought .. 







-Original Message-

From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org]on Behalf Of

Jonathan Windle

Sent: Tuesday, December 30, 2008 7:15 PM

To: misc@openbsd.org

Subject: Single Use Port Forwarding Using PF





Hello,



I wanted to know if it was possible to do the following with PF

(and/or a mixture of other OpenBSD services).



I would like to have an table of IP addresses with a port redirecting

to the table. Instead of a round robin behavior however I want the IP

address removed from the table when a session is opened. Once the

table is empty the rule should become inactive until the table is

populated again.



The problem is I have a group of Windows boxes running RDP and I only

ever want one user to connect to one Windows box.



Thanks,

Jonathan




bfd.h error while building a release

2008-12-31 Thread Lars Noodén
I've been running into an error while trying to build 4.4 from source in
preparation for building a release.  Both the installation and the
source are plain-vanilla from the CD set.  I've been following the steps
in release(8)
http://www.openbsd.org/cgi-bin/man.cgi?query=release
and the FAQ:
http://www.openbsd.org/faq/faq5.html#Release

I keep running into the same error: don't know how to make bfd.h
What step am I missing?

The tail end of the output from make build is below.

Regards,
-Lars

cd /usr/src/include  make prereq  exec  make includes
preparing in /usr/src/include/../gnu/usr.bin/binutils
cd /usr/src/gnu/usr.bin/binutils/obj/bfd  make bfd.h
make: don't know how to make bfd.h. Stop in
/usr/src/gnu/usr.bin/binutils/obj/bfd.
*** Error code 2

Stop in /usr/src/gnu/usr.bin/binutils (line 143 of
/usr/src/gnu/usr.bin/binutils/Makefile.bsd-wrapper).
*** Error code 1

Stop in /usr/src/include (line 82 of Makefile).
*** Error code 1

Stop in /usr/src (line 73 of Makefile).
~



Re: Running another OS under OpenBSD

2008-12-31 Thread Douglas A. Tutty
On Tue, Dec 30, 2008 at 12:23:59PM +0100, Henning Brauer wrote:
 * Douglas A. Tutty dtu...@vianet.ca [2008-12-30 02:39]:
   crappy applications are still crappy applications on OpenBSD, but
   worse on pretty much any other OS.
  IIUC, with ports right now, to get security fixes you have to run
  current and then you end up getting the latest verions of the upstream
 
 the lack of -stable ports/packages is indeed very sad.
 
  With this in mind, is it still a safe or fair assumption that if you
  only want a box that does web browsing in the most secure mode possible
  (for a web browsing box), lets say for something like internet banking,
  is OpenBSD + Firefox from ports going to be more secure than e.g. Debian
  base + Iceweasel (their off-brand Firefox)?
 
 I'd use the OpenBSD/ff combo over whateverlinux/ff any time, even if
 the ff on OpenBSD is older, yes.

Is it older?  If its older with backported bug fixes, fine.  However, if
ff has a big security bug found that, e.g. lets some remote yahoo read
your local files, can anything on openbsd mitigate that security hole?

Doug.



Re: ftp from script

2008-12-31 Thread Christoph Leser
Just my 1 cent on the perl script

#!/usr/bin/perl
`cd /path-to-dir`:
`rm *`;

will purge your working directory, not /path-to-dir, as each of the `command`
constructs is executed  in a process of its own and thus has no influence on
the next command

you would be better of with
#!/usr/bin/perl
`cd /path-to-dir;rm *`;

Regards
Christoph




Von: owner-m...@openbsd.org im Auftrag von Ed Ahlsen-Girard
Gesendet: Mi 31.12.2008 13:27
An: misc@openbsd.org
Betreff: ftp from script



I'm trying to automate getting the sets and source for running -current.

For some reason, this syntax:

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz

or this:

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/bsd.rd

works great from the command line.  But not in scripts, either shell:

#!/bin/sh

cd /where/I/put/sets

rm *

# all above work fine

ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz

or perl:

#!/usr/bin/perl

`cd /where/I/put/sets`;

`rm *`;

# all above work fine

`ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz`;
ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz%60;

Using system () does not get any different behavior, whether I pass a
list or a proper array.  In all cases I see a connection to the server,
followed
by a complaint of an invalid directory, and disconnection.

I've been using perl for about ten years, and I'm pretty sure my perl is ok.
Anybody have an idea of what I'm missing?



Re: ftp from script

2008-12-31 Thread eagirard
That's good thing to know (!)
 Christoph Leser le...@sup-logistik.de wrote: 
 Just my 1 cent on the perl script
  
 #!/usr/bin/perl
 `cd /path-to-dir`:
 `rm *`;
  
 will purge your working directory, not /path-to-dir, as each of the `command` 
 constructs is executed  in a process of its own and thus has no influence on 
 the next command 
  
 you would be better of with
 #!/usr/bin/perl
 `cd /path-to-dir;rm *`;
  
 Regards
 Christoph
  
 
 
 
 Von: owner-m...@openbsd.org im Auftrag von Ed Ahlsen-Girard
 Gesendet: Mi 31.12.2008 13:27
 An: misc@openbsd.org
 Betreff: ftp from script
 
 
 
 I'm trying to automate getting the sets and source for running -current.
 
 For some reason, this syntax:
 
 ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz
 
 or this:
 
 ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/bsd.rd
 
 works great from the command line.  But not in scripts, either shell:
 
 #!/bin/sh
 
 cd /where/I/put/sets
 
 rm *
 
 # all above work fine
 
 ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz
 
 or perl:
 
 #!/usr/bin/perl
 
 `cd /where/I/put/sets`;
 
 `rm *`;
 
 # all above work fine
 
 `ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz`; 
 ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz%60; 
 
 Using system () does not get any different behavior, whether I pass a
 list or a proper array.  In all cases I see a connection to the server,
 followed
 by a complaint of an invalid directory, and disconnection.
 
 I've been using perl for about ten years, and I'm pretty sure my perl is ok.
 Anybody have an idea of what I'm missing?
 
 
 

--
Ed Ahlsen-Girard
Ft. Walton Beach FL



Re: Single Use Port Forwarding Using PF

2008-12-31 Thread Jonathan Windle
Thanks for the response.

I have considered this however the users who are connecting to the
windows boxes are rather unsophisticated. The user also already has to
authenticate when they connect to the Windows box. Adding another
layer of authentication and software on the users end is undesirable.

Jonathan

On Wed, Dec 31, 2008 at 6:39 AM, Morris, Roy rmor...@internetsecure.com wrote:
 I would use authpf and assign them each a unique port number. They
 must authenticate with the gateway for the rule to become active.

 just a thought ..



 -Original Message-
 From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org]on Behalf Of
 Jonathan Windle
 Sent: Tuesday, December 30, 2008 7:15 PM
 To: misc@openbsd.org
 Subject: Single Use Port Forwarding Using PF


 Hello,

 I wanted to know if it was possible to do the following with PF
 (and/or a mixture of other OpenBSD services).

 I would like to have an table of IP addresses with a port redirecting
 to the table. Instead of a round robin behavior however I want the IP
 address removed from the table when a session is opened. Once the
 table is empty the rule should become inactive until the table is
 populated again.

 The problem is I have a group of Windows boxes running RDP and I only
 ever want one user to connect to one Windows box.

 Thanks,
 Jonathan



Re: Running another OS under OpenBSD

2008-12-31 Thread Henning Brauer
* Douglas A. Tutty dtu...@vianet.ca [2008-12-31 15:56]:
 On Tue, Dec 30, 2008 at 12:23:59PM +0100, Henning Brauer wrote:
  I'd use the OpenBSD/ff combo over whateverlinux/ff any time, even if
  the ff on OpenBSD is older, yes.
 
 Is it older?  If its older with backported bug fixes, fine.  However, if
 ff has a big security bug found that, e.g. lets some remote yahoo read
 your local files, can anything on openbsd mitigate that security hole?

maybe, maybe not. no definate answer possible with that a vague
description.

I run -current anyway.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Re: network manager

2008-12-31 Thread Nick Guenther
And if mixerctl doesn't help you then post a dmesg. It is good
practice here to always send a dmesg when you have a hardware issue.
There is no GUI wifi manager that I know of. There are various scripts
that people have posted to misc@ over time to try to make wifi
management 'smart'/'windows-like', but most OpenBSDers seem to prefer
just typing a line at the command prompt.
-Nick

On 12/31/08, Rene Maroufi i...@maroufi.net wrote:
 On Wed, Dec 31, 2008 at 01:58:29AM -0800, lordfabri wrote:
 Hi Nick and thanks for the answer.

 I have installed openbsd on my laptop and everything works fine,gnome too.
 What i haven't uderstand is:

 1)I have a Digicom usb wifi with Zydas chipset and i 'vre read it's just
 supported...but i don't know to activate (command not found with lsusb and
 lspci)

 lspci and lsusb are not part of OpenBSD, you can use usbdevs (instead of
 lsusb). Read:
 http://www.openbsd.org/faq/faq6.html#Setup
 and
 http://www.openbsd.org/faq/faq6.html#Wireless
 how to configure network. For permanent configuration use
 /etc/hostname.if (change if with your interface name), for temporary
 configuration you can use ifconfig and/or dhclient.

 3)The audio. What do i need to initialize it?

 Read:
 http://www.openbsd.org/faq/faq13.html#confaudio
 Check the output of mixerctl, maybe your soundcard is automatically
 configured but mixersettings are mute.

 Cheers
 Reni
 --
 Reni Maroufi
 i...@maroufi.net



Re: ftp from script

2008-12-31 Thread bofh
On Wed, Dec 31, 2008 at 9:42 AM, Christoph Leser le...@sup-logistik.de wrote:
 Just my 1 cent on the perl script

 #!/usr/bin/perl
 `cd /path-to-dir`:
 `rm *`;

 will purge your working directory, not /path-to-dir, as each of the `command`
 constructs is executed  in a process of its own and thus has no influence on
 the next command

You shouldn't be using backticks in a perl script.  Backtick simply
starts a new process/subshell and runs whatever you have in the
backticks.  If you're writing perl, use perl's syntax, and you won't
have these issues.


-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
This officer's men seem to follow him merely out of idle curiosity.
-- Sandhurst officer cadet evaluation.
Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted.  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=j1G-3laJJP0feature=related



Re: ftp from script

2008-12-31 Thread eagirard
 On Wed, Dec 31, 2008 at 9:42 AM, Christoph Leser le...@sup-logistik.de 
 wrote:
  Just my 1 cent on the perl script
 
  #!/usr/bin/perl
  `cd /path-to-dir`:
  `rm *`;
 
  will purge your working directory, not /path-to-dir, as each of the 
  `command`
  constructs is executed  in a process of its own and thus has no influence on
  the next command
 
 You shouldn't be using backticks in a perl script.  Backtick simply
 starts a new process/subshell and runs whatever you have in the
 backticks.  If you're writing perl, use perl's syntax, and you won't
 have these issues.
 
 
 --
 http://www.glumbert.com/media/shift
 http://www.youtube.com/watch?v=tGvHNNOLnCk
 This officer's men seem to follow him merely out of idle curiosity.
 -- Sandhurst officer cadet evaluation.
 Securing an environment of Windows platforms from abuse - external or
 internal - is akin to trying to install sprinklers in a fireworks
 factory where smoking on the job is permitted.  -- Gene Spafford
 learn french:  http://www.youtube.com/watch?v=j1G-3laJJP0feature=related

How do you get the output of the command then?  System returns the return value.

Backticks are part of perl's syntax.  See 'perldoc perlop'.

Ed Ahlsen-Girard



Re: ftp from script

2008-12-31 Thread Daniel A. Ramaley
On Wednesday December 31 2008 13:34, you wrote:
On Wed, Dec 31, 2008 at 9:42 AM, Christoph Leser 
le...@sup-logistik.de wrote:
 #!/usr/bin/perl
 `cd /path-to-dir`:
 `rm *`;

You shouldn't be using backticks in a perl script.  Backtick simply
starts a new process/subshell and runs whatever you have in the
backticks.  If you're writing perl, use perl's syntax, and you won't
have these issues.

Try the below instead of the subprocess commands. Verify that unlink 
command first though; i don't work with globs in perl much and might 
have munged the syntax.

chdir /path-to-dir;
unlink *;
-- 

Dan RamaleyDial Center 118, Drake University
Network Programmer/Analyst 2407 Carpenter Ave
+1 515 271-4540Des Moines IA 50311 USA



Opção Global deseja Boas Festas a todos os Clientes, Fornecedores e Amigos.

2008-12-31 Thread opcaoglobal.com
Opccedil;atilde;o Global deseja Boas Festas a todos os Clientes,
Fornecedores e Amigos.




 

se nco conseguir visualizar correctamente o contezdo deste e-mail, por favor,
clique aqui.



 

 

Para mais informagues acerca dos nossos produtos e servigos, por favor,
contacte-nos:
Rua de Raimundo de Carvalho, 171 . 4.: . Escritsrio 41
4430-186 V. N. de Gaia
Tel. +351 22 510 7467
Fax. +351 22 510 7468
Tlm. +351 91 763 7292
E-mail. criat...@opcaoglobal.com
Pedido de informagco/Solicitagco de contacto:
i...@opcaoglobal.com

Powered by:


AVISO
-
De acordo com a legislagco internacional que regulamenta o correio
electrsnico,
Secgco 301, paragrafo (a)(2)(c) Decreto S 1618, tmtulo terceiro aprovado pelo
105 Congresso Base Das Normativas Internacionais Sobre Spam diz o seguinte:
O email nco podera ser considerado SPAM quando incluir uma forma do receptor
ser removido da lista. Se por algum acaso o seu nome esta inclumdo nesta
lista
por erro ou gostaria de ser removido desta lista, por favor  clique aqui
 Esta mensagem (incluindo quaisquer anexos) pode conter informagco
confidencial
ou legalmente protegida para uso exclusivo do destinatario. Se nco for o
destinatario
pretendido da mesma, nco devera usar, copiar, distribuir ou revelar o seu
contezdo
(incluindo quaisquer anexos) a terceiros, sem autorizagco. Se recebeu esta
mensagem por engano, por favor informe o emissor por e-mail e elimine-a
imediatamente.
Obrigado.
 A transmissco de mensagens via e-mail nco pode ser considerada protegida ou
isenta de erros uma vez que a informagco podera ser interceptada, corrompida,
perdida, destrumda, chegar ao destino com atraso ou conter vmrus. Assim, o
remetente nco podera ser responsabilizado por quaisquer erros ou omissues.