[Xastir] {Disarmed} Xastir Freezes

Mike Swiatkowski, AA9VI aa9vi at yahoo.com
Fri Mar 2 13:11:17 EST 2012


Curt and all, I found that Xastir is not grabbing the serial port since I can open the port with minicom while Xastir is supposed to have it.  I don't get a lockfile type of message saying it was in use by another application.

My speculation is one of the recent Debian 6 updates is causing the port to not open in Xastir.  Not sure which one though.  

Mike, AA9VI

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

Message: 4
Date: Thu, 1 Mar 2012 14:56:30 -0800 (PST)
From: "Curt, WE7U" <curt.we7u at gmail.com>
To: Xastir - APRS client software discussion <xastir at lists.xastir.org>
Subject: Re: [Xastir] {Disarmed} Xastir Freezes
Message-ID: <alpine.LNX.2.00.1203011455030.17290 at DadsBox.we7u.net>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

On Thu, 1 Mar 2012, Mike Swiatkowski, AA9VI wrote:

>
 Well, I managed to get the interface 0 hard fail to go away but I 
cannot prevent Xastir from freezing every time I open up the serial port
 with the Peet Ultimeter 2100 weather station on it.? I tried USB to 
serial interfaces and PCI to serial interfaces and I get the same 
result.? The Debian 6 box is fully talking to the TNC but why not the WX
 station serial port?? Why would it freeze Xastir??
>
> Then
 I went as far as blowing away the entire OS, reinstalling, adding my 
user to the dialout and sudo groups and reinstalling Xastir.? I did the 
chmod 4755 to /usr/local/bin/xastir
>
> Again, the program 
freezes as soon as I open the serial port.? I can only get Xastir to 
relaunch once I clear out the xastir.cnf file.? As soon as I try an open
 the port with the weather station on it, Xastir freezes.? Again, I can 
see the data from the serial port easily with minicom.? Xastir is just 
choking on it.?
>
> any ideas?? Day 7 without APRS now.

It
 sounds to me like permission issues.  On my OpenSuSE boxes I don't have
 that kind of a problem once I do the chmod 4755 bit or add the Xastir 
user to the proper groups and log out and back in to get those added 
permissions.

Maybe someone more versed in Debian has the answer.

-- 
Curt, WE7U.        http://www.eskimo.com/~archer
APRS Wiki:  http://info.aprs.net/

--- On Fri, 3/2/12, xastir-request at lists.xastir.org <xastir-request at lists.xastir.org> wrote:

From: xastir-request at lists.xastir.org <xastir-request at lists.xastir.org>
Subject: Xastir Digest, Vol 76, Issue 2
To: xastir at lists.xastir.org
Date: Friday, March 2, 2012, 11:00 AM

Send Xastir mailing list submissions to
    xastir at lists.xastir.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
or, via email, send a message with subject or body 'help' to
    xastir-request at lists.xastir.org

You can reach the person managing the list at
    xastir-owner at lists.xastir.org

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


Today's Topics:

   1. Re: Bitmap not found? (Tom Russo)
   2. Re: Bitmap not found? (Curt, WE7U)
   3. {Disarmed} Xastir Freezes (Mike Swiatkowski, AA9VI)
   4. Re: {Disarmed} Xastir Freezes (Curt, WE7U)
   5. Re: NWS fonction (Arnaud)


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

Message: 1
Date: Thu, 1 Mar 2012 10:10:51 -0700
From: Tom Russo <russo at bogodyn.org>
To: Xastir - APRS client software discussion <xastir at lists.xastir.org>
Subject: Re: [Xastir] Bitmap not found?
Message-ID: <20120301171051.GA3577 at bogodyn.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Mar 01, 2012 at 08:10:26AM -0800, we recorded a bogon-computron collision of the <aa9vi at yahoo.com> flavor, containing:
> I tried to compile xastir from CVS and here's the output:
> 
> client(1) Thu Mar? 1 10:08:09 2012 : accepted from localhost
> XReadBitmapFile() failed: Bitmap not found? /usr/share/xastir/symbols/2x2.xbm
> client(1) Thu Mar? 1 10:08:10 2012 : disconnected
> 
> 
> what does Bitmap not found mean?? How do I fix it?

The problem is that you probably have previously installed a binary version 
of Xastir from your system's repository --- and Linux packages are set up
to install files in /usr (e.g. binaries to /usr/bin, libraries to /usr/lib/,
and supporting files to /usr/share).  But CVS xastir, like almost all source
packages, installs to /usr/local (/usr/local/bin, /usr/local/lib, 
/usr/local/share).  When you de-installed your binary package and installed
the source version, it removed the /usr/ stuff and installed the files in
/usr/local/.

Your configuration files for Xastir still point to the old locations, and
Xastir is confused because files it's expecting aren't there.

You have two approaches to fix this:

  1) If you have not used Xastir a lot and don't have a whole lot of 
     custom configurations (map selections, interface properties, etc.) then
     you can just move your .xastir/config/xastir.cnf file and let Xastir
     regenerate a default set-up.  Many people here recommend that approach
     because it's just a matter of one command:  

        mv .xastir/config/xastir.cnf .xastir/config/xastir.cnf_old

     But this will blow away all your customizations, so it might not be the
     best choice.

  2) Change all references to /usr/ in your configuration files to /usr/local.
     Most of these will be in .xastir/config/xastir.cnf so it's just a matter
     of editing that one file and changing them all.  

This is one of the more common questions on this list, and for whatever reason
isn't in the FAQ file.

It is always an issue when you switch from a pre-compiled linux package to
a source build.

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236        http://kevan.org/brain.cgi?DDTNM
"And, isn't sanity really just a one-trick pony anyway? I mean all you get is
 one trick, rational thinking, but when you're good and crazy, oooh, oooh,
 oooh, the sky is the limit!"  --- The Tick



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

Message: 2
Date: Thu, 1 Mar 2012 10:18:43 -0800 (PST)
From: "Curt, WE7U" <curt.we7u at gmail.com>
To: russo at bogodyn.org,     Xastir - APRS client software discussion
    <xastir at lists.xastir.org>
Subject: Re: [Xastir] Bitmap not found?
Message-ID: <alpine.LNX.2.00.1203011017370.17290 at DadsBox.we7u.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Thu, 1 Mar 2012, Tom Russo wrote:

> The problem is that you probably have previously installed a binary version
> of Xastir from your system's repository ---

> This is one of the more common questions on this list, and for whatever reason
> isn't in the FAQ file.

It's been added to the text FAQ and the online Wiki FAQ.  Thanks to Tom for such a complete answer.

-- 
Curt, WE7U.        http://www.eskimo.com/~archer
   Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.


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

Message: 3
Date: Thu, 1 Mar 2012 14:16:05 -0800 (PST)
From: "Mike Swiatkowski, AA9VI" <aa9vi at yahoo.com>
To: xastir at lists.xastir.org
Subject: [Xastir] {Disarmed} Xastir Freezes
Message-ID:
    <1330640165.14212.YahooMailClassic at web130201.mail.mud.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

Well, I managed to get the interface 0 hard fail to go away but I cannot prevent Xastir from freezing every time I open up the serial port with the Peet Ultimeter 2100 weather station on it.? I tried USB to serial interfaces and PCI to serial interfaces and I get the same result.? The Debian 6 box is fully talking to the TNC but why not the WX station serial port?? Why would it freeze Xastir?? 

Then I went as far as blowing away the entire OS, reinstalling, adding my user to the dialout and sudo groups and reinstalling Xastir.? I did the chmod 4755 to /usr/local/bin/xastir

Again, the program freezes as soon as I open the serial port.? I can only get Xastir to relaunch once I clear out the xastir.cnf file.? As soon as I try an open the port with the weather station on it, Xastir freezes.? Again, I can see the data from the serial port easily with minicom.? Xastir is just choking on it.? 

any ideas?? Day 7 without APRS now.

Mike, AA9VI? 

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

Message: 8
Date: Mon, 27 Feb 2012 20:43:13 -0500
From: Lee Bengston <lee.bengston at gmail.com>
To: Xastir - APRS client software discussion <xastir at lists.xastir.org>
Subject: Re: [Xastir] Error opening interface 0 Hard Fail
Message-ID:
??? <CAPF_JSLbWMnx_RoXqK6-ES+kXmJ2bbFHNw_2=OukHcxA71v5vA at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Mon, Feb 27, 2012 at 7:12 PM, Curt, WE7U <curt.we7u at gmail.com> wrote:
> On Mon, 27 Feb 2012, Curt, WE7U wrote:
>
>> On Mon, 27 Feb 2012, Mike Swiatkowski, AA9VI wrote:
>>
>>> What causes "Interface Error! Error opening interface 0 Hard Fail"?
>>
>>
>> As root:
>>
>> ? chmod 4755 /usr/local/bin/xastir
>>
>> That gives Xastir SUID Root privileges when opening/closing/manipulating
>> ports. ?Xastir code is smart enough to drop those privileges the rest of the
>> time, and only invoke them when doing the mentioned operations.
>
>
> Darn it. ?Tom pointed out me that you've already tried that. ?I missed that
> on my first read.
>
> You're putting in /dev/ttyD0 in the Xastir box right?
>
> If Minicom can open it, Xastir with 4755 permissions should be able to.

I have a vague memory of Debian Squeeze being stubborn about serial
port permissions as long as the user was not a member of the group
'dialout'.? As root, issue the following command to add your username
to the group, dialout.

? usermod -G dialout username

where 'username' is the username that starts Xastir.

You can see what group(s) of which your username is a member by
issuing the command below (not as root)

? id -a

The above will verify if your user is a member of 'dialout' or not.

The fact that your other methods didn't work is puzzling, though - I
know I have been able to take the insecure way out for something quick
and dirty and change the permissions of /dev/ttyX0 to '777' and see
things work.

Hope this helps.

Lee - K5DAT

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

Message: 4
Date: Thu, 1 Mar 2012 14:56:30 -0800 (PST)
From: "Curt, WE7U" <curt.we7u at gmail.com>
To: Xastir - APRS client software discussion <xastir at lists.xastir.org>
Subject: Re: [Xastir] {Disarmed} Xastir Freezes
Message-ID: <alpine.LNX.2.00.1203011455030.17290 at DadsBox.we7u.net>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

On Thu, 1 Mar 2012, Mike Swiatkowski, AA9VI wrote:

> Well, I managed to get the interface 0 hard fail to go away but I cannot prevent Xastir from freezing every time I open up the serial port with the Peet Ultimeter 2100 weather station on it.? I tried USB to serial interfaces and PCI to serial interfaces and I get the same result.? The Debian 6 box is fully talking to the TNC but why not the WX station serial port?? Why would it freeze Xastir??
>
> Then I went as far as blowing away the entire OS, reinstalling, adding my user to the dialout and sudo groups and reinstalling Xastir.? I did the chmod 4755 to /usr/local/bin/xastir
>
> Again, the program freezes as soon as I open the serial port.? I can only get Xastir to relaunch once I clear out the xastir.cnf file.? As soon as I try an open the port with the weather station on it, Xastir freezes.? Again, I can see the data from the serial port easily with minicom.? Xastir is just choking on it.?
>
> any ideas?? Day 7 without APRS now.

It sounds to me like permission issues.  On my OpenSuSE boxes I don't have that kind of a problem once I do the chmod 4755 bit or add the Xastir user to the proper groups and log out and back in to get those added permissions.

Maybe someone more versed in Debian has the answer.

-- 
Curt, WE7U.        http://www.eskimo.com/~archer
APRS Wiki:  http://info.aprs.net/

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

Message: 5
Date: Fri, 2 Mar 2012 15:38:21 +0100
From: Arnaud <arneir77 at gmail.com>
To: Xastir - APRS client software discussion <xastir at lists.xastir.org>
Subject: Re: [Xastir] NWS fonction
Message-ID:
    <CANK7nThAMoOMrxdhZrJHwP3dqN48qbNjOEnG9SrhT_XdxJGjBQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello,

because i'm not a programmer it take me 4 hour to find how to code it in C.
It's verry too long for 15 lines.
So what did you think about lowercase or upper case ?
I can't make more. For the time it check a file if exist and use it or not
(alert.xbm)

73
Arnaud

2012/2/29 Curt, WE7U <curt.we7u at gmail.com>

> On Wed, 29 Feb 2012, Arnaud wrote:
>
>  In first time i've take existing PID and i make a test with own pid.
>> Where I custom is the alerte_tag (after the time) like we can see in
>> alert.c
>>
>
>  That's wy it would be great if the alert-tag was unknow to take a default
>> .xbm for each color (ADVIS, WATCH, WARN, and peharps CIVIL) like now and
>> make an add to take the alert_tag try to find if we saw a .xbm with the
>> same name
>>
>> ANDVAS>APRS::NWS-ADVIS:VAGUES-**SUBMERTION,FR_C001 {JDIAA
>> => find a vagues-submertion.xbm
>>
>
> I see what you want to do and I like your idea.
>
> It doesn't seem like a difficult thing to implement, but someone would
> have to look into it.  I'm not sure I have the time right now.  Are you
> willing to give it a go?  Would anyone else like to tackle this?  I'd be
> happy to test the changes and check them into CVS.
>
>
> --
> Curt, WE7U.        http://www.eskimo.com/~archer
> APRS:  Where it's at!        http://www.xastir.org
>
> ______________________________**_________________
> Xastir mailing list
> Xastir at lists.xastir.org
> http://lists.xastir.org/cgi-**bin/mailman/listinfo/xastir<http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir>
>

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

_______________________________________________
Xastir mailing list
Xastir at lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


End of Xastir Digest, Vol 76, Issue 2
*************************************



More information about the Xastir mailing list