Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-questions Digest, Vol 303, Issue 13

1 view
Skip to first unread message

freebsd-ques...@freebsd.org

unread,
Mar 27, 2010, 8:00:25 AM3/27/10
to freebsd-...@freebsd.org
Send freebsd-questions mailing list submissions to
freebsd-...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-ques...@freebsd.org

You can reach the person managing the list at
freebsd-que...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-questions digest..."


Today's Topics:

1. Re: OT: Keystrokes stick every ~1500 strokes (Joe R. Jah)
2. Question about expr (Manish Jain)
3. Re: gnome gdm diable_user_list (Manolis Kiagias)
4. Re: Question about expr (Dan Nelson)
5. Re: Question about expr (Manish Jain)
6. OT: Programming perl, BerkeleyDB/MLDBM (Erik Norgaard)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Mar 2010 18:15:21 -0700 (PDT)
From: "Joe R. Jah" <jj...@cloud.ccsf.cc.ca.us>
Subject: Re: OT: Keystrokes stick every ~1500 strokes
To: Chuck Swiger <csw...@mac.com>
Cc: freebsd-...@freebsd.org
Message-ID: <2010032617...@cloud.ccsf.cc.ca.us>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 26 Mar 2010, Chuck Swiger wrote:

> Date: Fri, 26 Mar 2010 17:31:38 -0700
> From: Chuck Swiger <csw...@mac.com>
> To: Joe R. Jah <jj...@cloud.ccsf.cc.ca.us>
> Cc: freebsd-...@freebsd.org
> Subject: Re: OT: Keystrokes stick every ~1500 strokes
>
> On Mar 26, 2010, at 5:18 PM, Joe R. Jah wrote:
> > Since last Monday my ssh connections started working erraticly. Today I
> > tested it by holding down a key until it stops printing, and made several
> > itterations; it turns out that ~1500 key strokes print on the screen; then
> > it stops responding for several seconds; then it spits out ~25 missed
> > keystrokes.
>
> Sounds like a path MTU problem; perhaps something thinks it should be doing Jumbo frames and can't, or perhaps VLAN tagging or something else is being used....
>
> ping -s 1480 hostname and similar can be helpful.

Thank you Chuck for the suggetion; here's the ping response from three
different servers:

HP Unix server
# ping ip 1480 -n 3
PING ip: 1480 byte packets
1480 bytes from ip: icmp_seq=0. time=0. ms
1480 bytes from ip: icmp_seq=1. time=0. ms
1480 bytes from ip: icmp_seq=2. time=0. ms

----ip PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0

Solaris server:
# ping -s ip 1480 3
PING ip: 1480 data bytes
1488 bytes from ip: icmp_seq=0. time=1. ms
1488 bytes from ip: icmp_seq=1. time=0. ms
1488 bytes from ip: icmp_seq=2. time=0. ms

----ip PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/1

FreeBSD server:
# ping -s 1480 ip
ping: packet size too large: 1480 > 56: Operation not permitted

Any ideas?

Regards,

Joe
--
_/ _/_/_/ _/ ____________ __o
_/ _/ _/ _/ ______________ _-\<,_
_/ _/ _/_/_/ _/ _/ ......(_)/ (_)
_/_/ oe _/ _/. _/_/ ah jj...@cloud.ccsf.cc.ca.us


------------------------------

Message: 2
Date: Sat, 27 Mar 2010 12:01:59 -0700
From: Manish Jain <invalid...@gmail.com>
Subject: Question about expr
To: freebsd-...@freebsd.org
Message-ID: <4BAE5627...@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Hello all,

I am used to the normal GNU-version of expr (also available on Solaris)
and much prefer it over the FreeBSD version. The GNU version allows
internal commands like length, substring and others which make it much
easier to work with. Is there any way I can replace FreeBSD's native
expr with the GNU version ? Since I believe expr does not normally ship
as a shell-builtin, I don't think the shell can of much help in the matter.

Actually, I think it might not be a bad idea to place a port of GNU-expr
in the ports directory. This would allow a lot a scripts to be readily
portable to multiple environments.

Thanks for any help.


Regards

Manish Jain
invalid...@gmail.com

------------------------------

Message: 3
Date: Sat, 27 Mar 2010 08:36:58 +0200
From: Manolis Kiagias <son...@otenet.gr>
Subject: Re: gnome gdm diable_user_list
To: n dhert <ndhe...@gmail.com>
Cc: freebsd-...@freebsd.org
Message-ID: <4BADA78A...@otenet.gr>
Content-Type: text/plain; charset=ISO-8859-1

On 26/03/2010 3:42 ?.?., n dhert wrote:
> FreeBSD8.0, gnome2-2.28.2_1, using gdm to login.
> Gdm login screen presents a list of all users on the system to choose from.
> I don't want the list, just a prompt for a username and password.
> I tried
> # gconf-editor
> this graphical config program allows to set in apps / gdm / simple-greeter
> the setting 'disable_user_list' to checked (default is not checked)
> after setting it to checked, closing the program, rebooting
> I still have the user list at the gdm login window.
> I verified with starting the gconf-editor again: the option is still checked
> ..
> (also $ gconftool-2 -R /apps/gdm/simple-greeter shows: disable_user_list =
> true )
>
> Why do I still have the user list?
> How to fix?
>

gconf-editor changes the settings of the current user, the gdm settings
are global (system) so should be changed by root or the user gdm is
running in.
I don't currently have gdm on any of my systems but AFAIR there is a gdm
user created for running the greeter. You should be able to change the
disable_user_list setting for this user which will have the desired
effect. Something along the lines of this blog post
http://lionlix.wordpress.com/2009/11/07/hack-ubuntu-9-10-disabling-userlist-in-gdm-login-screen/
should work.


------------------------------

Message: 4
Date: Sat, 27 Mar 2010 01:51:01 -0500
From: Dan Nelson <dne...@allantgroup.com>
Subject: Re: Question about expr
To: Manish Jain <invalid...@gmail.com>
Cc: freebsd-...@freebsd.org
Message-ID: <2010032706...@dan.emsphone.com>
Content-Type: text/plain; charset=us-ascii

In the last episode (Mar 27), Manish Jain said:
> I am used to the normal GNU-version of expr (also available on Solaris)
> and much prefer it over the FreeBSD version. The GNU version allows
> internal commands like length, substring and others which make it much
> easier to work with. Is there any way I can replace FreeBSD's native expr
> with the GNU version ? Since I believe expr does not normally ship as a
> shell-builtin, I don't think the shell can of much help in the matter.
>
> Actually, I think it might not be a bad idea to place a port of GNU-expr
> in the ports directory. This would allow a lot a scripts to be readily
> portable to multiple environments.

It's part of the coreutils package. If you install the sysutils/coreutils
port, you can symlink /bin/expr over to it (or make a copy). I don't know
if it's 100% compatible with BSD expr, though, so you may end up breaking
scripts in the base system.

--
Dan Nelson
dne...@allantgroup.com


------------------------------

Message: 5
Date: Sat, 27 Mar 2010 12:48:06 -0700
From: Manish Jain <invalid...@gmail.com>
Subject: Re: Question about expr
To: Dan Nelson <dne...@allantgroup.com>
Cc: freebsd-...@freebsd.org
Message-ID: <4BAE60F6...@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dan Nelson wrote:
> In the last episode (Mar 27), Manish Jain said:
>> I am used to the normal GNU-version of expr (also available on Solaris)
>> and much prefer it over the FreeBSD version. The GNU version allows
>> internal commands like length, substring and others which make it much
>> easier to work with. Is there any way I can replace FreeBSD's native expr
>> with the GNU version ? Since I believe expr does not normally ship as a
>> shell-builtin, I don't think the shell can of much help in the matter.
>>
>> Actually, I think it might not be a bad idea to place a port of GNU-expr
>> in the ports directory. This would allow a lot a scripts to be readily
>> portable to multiple environments.
>
> It's part of the coreutils package. If you install the sysutils/coreutils
> port, you can symlink /bin/expr over to it (or make a copy). I don't know
> if it's 100% compatible with BSD expr, though, so you may end up breaking
> scripts in the base system.
>

Hello Dan,

Thanks for the info. But I don't intend to symlink /bin/expr over to it.
Instead I'll just create an alias in bash's profile and my scripts.

That should let core scripts execute with /bin/expr and my scripts to
use the GNU-version. Which actually leads me to second question :

When you execute a script, it will automatically pick up the exports in
.bash_profile. But even if you manually source bash's profile at the
start of your script, only the exports get picked up and the aliases are
ignored. Is there some way to fix this so that I don't have to set an
alias for expr at the top each time I write a script ?


Thanks & Regards

Manish Jain
invalid...@gmail.com

------------------------------

Message: 6
Date: Sat, 27 Mar 2010 11:28:50 +0100
From: Erik Norgaard <norg...@locolomo.org>
Subject: OT: Programming perl, BerkeleyDB/MLDBM
To: ques...@freebsd.org
Message-ID: <4BADDDE...@locolomo.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi:

I have been searching for the appropriate perl mailing list, but no
avail. I'm trying to build a database with Berkeley DB and MLDBM for a
multi dimensional hash structure,

my $hdbm = tie %host, 'MLDBM', -Filename => "$dbdir/host.db",
-Flags => DB_CREATE|O_RDWR
or die "Cannot open database '$dbdir/host.db: $!\n";

but I have some problems:

I can read entries and create new ones, but I can't update existing
entries.

And I have a problem untieing cleanly:

untie attempted while 1 inner references still exist at
bin/smtp_reject.pl line 175.
untie attempted while 1 inner references still exist at
bin/smtp_reject.pl line 176.

Any hints? or which mailing list should I post to?

Thanks, Erik
--
Erik Nørgaard
Ph: +34.666334818/+34.915211157 http://www.locolomo.org


------------------------------


End of freebsd-questions Digest, Vol 303, Issue 13
**************************************************

0 new messages