Crypt::Random and Woody
Greetings, I am trying to install Net::SSH::Perl from CPAN on Woody. A few of the dependencies are failing. One is Crypt::Random. The following is the make test results. I appreciate any explanations or suggestions to solve this. Running make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/generator..ok 3/18PARI: *** forbidden division t_REAL % t_INT. at /usr/local/lib/perl/5.6.1/Math/Pari.pm line 978. t/generator..dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-18 Failed 15/18 tests, 16.67% okay t/makerandom_itv.PARI: *** forbidden division t_REAL % t_INT. at /usr/local/lib/perl/5.6.1/Math/Pari.pm line 978. t/makerandom_itv.dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-5 Failed 5/5 tests, 0.00% okay t/octet_string...ok t/pari_misfeaturePARI: *** forbidden division t_REAL % t_INT. at /usr/local/lib/perl/5.6.1/Math/Pari.pm line 978. t/pari_misfeaturedubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/random.ok Failed Test Stat Wstat Total Fail Failed List of Failed --- t/generator.t255 6528018 30 166.67% 4-18 t/makerandom_itv.t 255 65280 5 10 200.00% 1-5 t/pari_misfeature.t 255 65280 12 200.00% 1 Failed 3/5 test scripts, 40.00% okay. 21/27 subtests failed, 22.22% okay. make: *** [test_dynamic] Error 11 /usr/bin/make test -- NOT OK -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Unidentified subject!
On Fri, 14 May 2004 11:58:35 -0400 (EDT) Ishwar Rattan <[EMAIL PROTECTED]> wrote: > > How does one start local services? I run ssh daemon after boot using > > #/etc/init.d/ssh start > > is there way to execute a /etc/rc.local file as the last step in boot > process? > > Any ideas? > > -ishwar > > http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-boot -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Script execution at boot time..
Rather than repeating existing documentation, I must again provide a link to the documention: http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit On Fri, 14 May 2004 16:26:48 -0400 (EDT) Ishwar Rattan <[EMAIL PROTECTED]> wrote: > > I have written a shell script /etc/init.d/rclocal > with two lines.. > > /etc/init.d/ssh start > /home/mine/iptablerules > > and created a link in /etc/rc3.d > > S99rclocal link to ../init.d/rclocal > > and reboot won't execute the script. If I do the same by hand it > works. I aso tried placing the link in /etc/rc2.d bu had no luck. > > Any help will be appreciated. > > -ishwar > -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Script execution at boot time..
On Fri, 14 May 2004 20:52:19 -0400 (EDT) Ishwar Rattan <[EMAIL PROTECTED]> wrote: > I understand that there is documentation. I have looked at it > but have not had success. If you can help, please do so. > > -ishwar > Here are the startup script basics: There are different run levels for running a Unix system. Run level 2 is the default for Debian. $ grep default /etc/inittab # The default runlevel. id:2:initdefault: So when Debian goes to run startup scripts it looks in the /etc/rc2.d directory. If you list that directory you will find symbolic links to scripts in the /etc/init.d directory. The purpose is to have one place to store startup scripts and allow links from the various runlevel directories instead of copying and having to maintain multiple scripts in multiple directories. If you want a script to run during the boot process, put the script in the /etc/init.d directory (make sure it is executable) and make a symbolic link to it from the /etc/rc2.d directory. The symbolic link should be named with the following pattern: SXXname. Where S is for start, XX is a two digit number to determine what order to start and name is the name of the script found in /etc/init.d. In /etc/rc0.d and /etc/rc6.d you will find corresponding stop scripts (KXXname with the K for kill). The update-rc.d program can help with creation of the rc links, but it can also be done manually. If you install a Debian package that requires a startup script, it should be taken care of automatically by the package. The ssh package does this. Hopefully, this information helps to better understand the documentation. I am also willing to help clarify information in the documenation if you have specific questions after reviewing it. -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: OT - trivial programming language
On Fri, 21 May 2004 14:55:35 -0400 richard lyons <[EMAIL PROTECTED]> wrote: > I'm asking for a bit of advice here. > > I wish to convert a kaddressbook database to abook format saving as > many fields as possible. > [ ... ] > > I could probably do it in perl - but I've never really learned perl, > and would have to work from the manual. > Perl is a great language. I think it can solve many issues quickly, but it does appear large and overwhelming at first. > > I really do need to equip myself with a convenient scripting language > for all these day-to-day admin tasks, and I'd like it if it can do a > little maths for me at time too. Please advise me which manual to > open. > Until this past year, I used three primary tools in conjunction with the Bourne Shell for my "day-to-day admin tasks": sed, grep and awk. With these three tools you can manipulate text to your heart's content. In this case, if I didn't want to use perl, awk is a good choice. For example, echo "hanson,carlos,[EMAIL PROTECTED],123 street,somewhere,555-1234" | awk ' BEGIN { FS="," } { printf ("[%s]\n", NR) printf ("name=%s %s\n", $2, $1) printf ("email=%s\n", $3) printf ("address=%s\n", $4) printf ("city=%s\n", $5) printf ("phone=%s\n", $6) printf ("\n") }' but the equivalent in perl script is #!/usr/bin/perl my $count = 1; while (<>) { chomp; my @record = split(/,/); printf ("[%s]\n", $count++); printf ("name=%s %s\n", $record[1], $record[0]); printf ("email=%s\n", $record[2]); printf ("address=%s\n", $record[3]); printf ("city=%s\n", $record[4]); printf ("phone=%s\n", $record[5]); printf ("\n"); } If I was to do something quick on the command line, I would use sed, grep and awk. Otherwise, I try to use perl. Perl is a combination of those tools and more. Enjoy. -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Doc viewer
On Tue, 01 Jun 2004 20:27:26 +0100 Mark Crean <[EMAIL PROTECTED]> wrote: > Hi > > Maybe a silly question but nearly all the Debian docs in the > /usr/share/doc tree are in gz format. Is there a viewer that will allow > me to read them without having to decompress them first? > > :) > > Fish Vim. -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: sed question.
On Fri, 04 Jun 2004 10:31:07 -0400 Ralph Crongeyer <[EMAIL PROTECTED]> wrote: > Hi all, > I need to do a pattern match with sed of "(" and ")". I need to replace > every ( with "(" and every ) with ")" on every line. > > Can someone help me with this? > > Thanks > > Ralph > sed 's/[()]/"&"/g' Here is the test I used: $ echo "This (is) a (test) of (())" | sed 's/[()]/"&"/g' This "("is")" a "("test")" of "(""("")"")" -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: sed question.
On Fri, 04 Jun 2004 11:28:50 -0400 Ralph Crongeyer <[EMAIL PROTECTED]> wrote: > Carlos Hanson wrote: > > >On Fri, 04 Jun 2004 10:31:07 -0400 > >Ralph Crongeyer <[EMAIL PROTECTED]> wrote: > > > > > > > >>Hi all, > >>I need to do a pattern match with sed of "(" and ")". I need to > >replace >every ( with "(" and every ) with ")" on every line. > >> > > > >sed 's/[()]/"&"/g' > > > > > Carlos, Thanks! > By the way, what does the & mean? > > Ralph > It refers to "the portion of the pattern space which matched". Quoted from the sed man page. -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
PAM ldap login on woody
Greetings, I am trying to use pam_ldap for logins from the console and ssh. I have installed both libpam-ldap and libnss-ldap. libnss-ldap is working as expected. And libpam-ldap seems close. When I login on the console or ssh, I get the MOTD and then I am sent back to the previous prompt, login or original host, respectively. I have included log and configuration files. If I missed something, let me know. Here is a log sample from an ssh attempt: --- Apr 9 11:38:16 web1 sshd[506]: Accepted password for chanson from 10.1.1.110 port 3367 ssh2 Apr 9 11:38:16 web1 PAM_unix[508]: (ssh) session opened for user chanson by (uid=25000) Apr 9 11:38:16 web1 PAM_unix[508]: (ssh) session closed for user chanson Apr 9 11:38:16 web1 sshd[508]: PAM pam_putenv: delete non-existent entry; MAIL --- Here is one from a console attempt: --- Apr 9 11:38:51 web1 PAM_unix[479]: (login) session opened for user chanson by LOGIN(uid=0) --- The following are the pam.d conf files: -- login: -- auth requisite pam_securetty.so auth requisite pam_nologin.so auth required pam_env.so auth sufficient pam_ldap.so auth required pam_unix.so nullok try_first_pass accountsufficient pam_ldap.so accountrequired pam_unix.so sessionrequired pam_unix.so sessionrequired pam_mkhomedir.so skel=/etc/skel/ umask=0022 sessionoptional pam_lastlog.so sessionoptional pam_motd.so sessionoptional pam_mail.so standard noenv password sufficient pam_ldap.so password required pam_unix.so nullok obscure min=4 max=8 md5 use_first_pass ssh: auth required pam_nologin.so auth sufficient pam_ldap.so debug auth required pam_unix.so try_first_pass auth required pam_env.so # [1] accountsufficient pam_ldap.so accountrequired pam_unix.so sessionrequired pam_unix.so sessionrequired pam_mkhomedir.so skel=/etc/skel/ umask=0022 sessionoptional pam_lastlog.so # [1] sessionoptional pam_motd.so # [1] sessionoptional pam_mail.so standard noenv # [1] sessionrequired pam_limits.so password sufficient pam_ldap.so password required pam_unix.so use_first_pass --- passwd: --- password sufficient pam_ldap.so password required pam_unix.so nullok obscure min=4 max=8 md5 use_first_pass -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: parsing Apache logs
Using apt-cache always helps me find what I need. Usually I do a couple searches with different key words, but here is a one line search: apt-cache search web log 'analy(sis)|(zer)' On Fri, 9 Apr 2004 17:07:27 -0400 "S.D.A." <[EMAIL PROTECTED]> wrote: > Happy "Good Friday" everyone: > > I seem to remember there being a Debian package that allowed one to parse and > view Apache logs via the web. I can't remember the name of the package though. > > Anyone remind me? Thanks. > -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PAM ldap login on woody
None of the examples show that as a requirement. When I add that line, I get the same results without a log showing a session opened and a session closed. On Tue, 13 Apr 2004 00:13:05 +0200 Bob Schlärmann <[EMAIL PROTECTED]> wrote: > On Fri, 9 Apr 2004 12:26:43 -0700 > Carlos Hanson <[EMAIL PROTECTED]> wrote: > > > Greetings, > > > > I am trying to use pam_ldap for logins from the console and ssh. I > > have installed both libpam-ldap and libnss-ldap. libnss-ldap is > > working as expected. And libpam-ldap seems close. > > > sessionrequired pam_unix.so > > sessionrequired pam_mkhomedir.so skel=/etc/skel/ umask=0022 > > sessionoptional pam_lastlog.so > > sessionoptional pam_motd.so > > sessionoptional pam_mail.so standard noenv > > Unless i miss something, why didn't you specify an ldap rule here too, > like: > > session sufficient pam_ldap.so > -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053
Re: PAM ldap login on woody
Let me close this thread by adding my solution. I feel rather foolish, but I failed to check the settings for my user in the LDAP server. They had been set months ago with a default loginShell of /bin/false. So all the PAM configurations were correct which is why the logs indicated success. But when it tried to start a shell, /bin/false stopped everything and the session was closed. After changing to /bin/bash, my login succeeded. I have since found one website with an example that does add the session configuration mentioned below. But it works fine without it. I need to do further research to see what effect one has over the other. On Tue, 13 Apr 2004 09:52:25 -0700 Carlos Hanson <[EMAIL PROTECTED]> wrote: > None of the examples show that as a requirement. When I add that line, > I get the same results without a log showing a session opened and a > session closed. > > > On Tue, 13 Apr 2004 00:13:05 +0200 > Bob Schlärmann <[EMAIL PROTECTED]> wrote: > > > > > Unless i miss something, why didn't you specify an ldap rule here too, > > like: > > > > session sufficient pam_ldap.so > > > -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053
Re: apt-file usage
Did you do an update first? # apt-file update On Wed, 12 May 2004 12:25:58 -0400 Matt Price <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to understand how to use apt-file. I've just installed it > on unstable (2.0.3-6) and am using what I believe is the default > /etc/apt/apt-file.conf (follows below). > > when I try: > > apt-file list mozilla-firefox > or > apt-file search firefox > > I get nothing. Am I doing something wrong? Or is the config perhaps > not set up right? > > I ifnd the man page soemwhat telegraphic, so perhaps I'm missing > something! > > thanks, > matt > -- Carlos Hanson Webmaster and Postmaster Tigard-Tualatin School District ph: 503.431.4053 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]