Re: [PLUG] associate *.PLT files with lpr?
Speaking of doing things automagically on a file event. One could put the files to the same directory every time, and setup a trigger on the directory change event. There would be no real delay that way and as soon as a file shows up, it could be sent to a printer. If you are interested in that, search for: monitoring files directories by incron. Tomas On Nov 10, 2017 10:26 PM, "Russell Senior"wrote: > Rather than clicking on it, you could set up a cronjob (or similar) > that sends everything it finds in the particular directory you "print" > it to, and automatically sends it to the printer and then deletes it. > That would make it kind of automatic, if adding a little latency. > > > Russell > > On Fri, Nov 10, 2017 at 3:32 PM, Denis Heidtmann > wrote: > > Figured it out. I needed to add %U to the exec line in the .desktop > file. > > > > Where is there a list of the various command line options (such as this > %U)? > > > > Thanks, > > -Denis > > > > On Fri, Nov 10, 2017 at 3:14 PM, Denis Heidtmann < > denis.heidtm...@gmail.com> > > wrote: > > > >> I would like to be able to double-click on a .PLT file to have lpr > launch > >> with the file as the argument. > >> > >> I have created a *.desktop file, made it executable, and placed it in > >> ~/.local/share/applications. It shows up in Dash. But it does not > show as > >> an application that I can associate with a file. > >> > >> Am I going in the right direction? > >> > >> Thanks, > >> -Denis > >> > > ___ > > PLUG mailing list > > PLUG@pdxlinux.org > > http://lists.pdxlinux.org/mailman/listinfo/plug > ___ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] associate *.PLT files with lpr?
Rather than clicking on it, you could set up a cronjob (or similar) that sends everything it finds in the particular directory you "print" it to, and automatically sends it to the printer and then deletes it. That would make it kind of automatic, if adding a little latency. Russell On Fri, Nov 10, 2017 at 3:32 PM, Denis Heidtmannwrote: > Figured it out. I needed to add %U to the exec line in the .desktop file. > > Where is there a list of the various command line options (such as this %U)? > > Thanks, > -Denis > > On Fri, Nov 10, 2017 at 3:14 PM, Denis Heidtmann > wrote: > >> I would like to be able to double-click on a .PLT file to have lpr launch >> with the file as the argument. >> >> I have created a *.desktop file, made it executable, and placed it in >> ~/.local/share/applications. It shows up in Dash. But it does not show as >> an application that I can associate with a file. >> >> Am I going in the right direction? >> >> Thanks, >> -Denis >> > ___ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] associate *.PLT files with lpr?
On Fri, 10 Nov 2017, Denis Heidtmann wrote: The *.PLT file is created by a print-to-a-file setup in Windows 2000 in VB. Okay. I know nothing about Windows so that explains why I asked. Thanks for answering, Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] associate *.PLT files with lpr?
Figured it out. I needed to add %U to the exec line in the .desktop file. Where is there a list of the various command line options (such as this %U)? Thanks, -Denis On Fri, Nov 10, 2017 at 3:14 PM, Denis Heidtmannwrote: > I would like to be able to double-click on a .PLT file to have lpr launch > with the file as the argument. > > I have created a *.desktop file, made it executable, and placed it in > ~/.local/share/applications. It shows up in Dash. But it does not show as > an application that I can associate with a file. > > Am I going in the right direction? > > Thanks, > -Denis > ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] associate *.PLT files with lpr?
On Fri, 10 Nov 2017, Denis Heidtmann wrote: I would like to be able to double-click on a .PLT file to have lpr launch with the file as the argument. Denis, I've not closely followed this thread so my questions might have been answered. What application you use produces a .plt output file? Doesn't the application itself have a print function? When I looked on the web for information on the file format I learned that it's produced primarily by TecPlot, a commercial vendor of 2D and 3D visualization software for power grid and reservior models. I have created a *.desktop file, made it executable, and placed it in ~/.local/share/applications. It shows up in Dash. But it does not show as an application that I can associate with a file. Admiting to be biased toward the command line, I wonder why providing the filename as an argument to lpr is not working for you. Or, if you have an application that allows you to view the .plt file on screen, doesn't it allow you to print it, too? Curious mind, Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
[PLUG] associate *.PLT files with lpr?
I would like to be able to double-click on a .PLT file to have lpr launch with the file as the argument. I have created a *.desktop file, made it executable, and placed it in ~/.local/share/applications. It shows up in Dash. But it does not show as an application that I can associate with a file. Am I going in the right direction? Thanks, -Denis ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Laptop batteries
On Fri, Nov 10, 2017 at 10:45:11AM -0800, John Meissen wrote: > Long story short, I bought a battery for $17.50, including shipping, from > "YHR store" (https://www.aliexpress.com/store/2782025). Shipped from a > warehouse in the US. > > So far it hasn't burst into flames. ;-) It identifies itself as a Sony > battery, > but I have no way of knowing if that's true. Weigh it - how does it compare to the original? Take it through a full discharge cycle and see how much charge it holds; a typical trick by shady companies is to use smaller or fewer cells. It is VERY unlikely that Sony sells cheap batteries through "YHR store", which must be at a little shady, since they probably counterfeited or stole the ID chip. And if the battery catches fire on an airplane and melts a hole through the fuselage, you must buy the airline a new plane ... if you survive. :-) Seriously, we should do some testing, review collecting, and xray imaging and learn where the various knockoff battery companies land on the good-to-garbage spectrum, and buy from the good ones ... if any. In a plug post a few years ago, I wrote about rebuilding laptop batteries with new cells. I learned that TSA takes a Very Dim View of user-rebuilt batteries (which can hide a deadly amount of explosive) and will prosecute amateur rebuilders. Sigh. We can wish for a TSA-certified laptop battery rebuild company, but we should wish for a nation of ambitious hardware entrepreneurs first. Keith -- Keith Lofstrom kei...@keithl.com ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Laptop batteries
Message: 5 Date: Fri, 10 Nov 2017 11:07:40 -0800 (PST) From: Rich ShepardTo: Portland Linux/Unix Group Subject: Re: [PLUG] Laptop batteries Message-ID: Content-Type: text/plain; charset=US-ASCII; format=flowed On Fri, 10 Nov 2017, John Meissen wrote: > Reputable places like BatteriesPlus want $90 for a new replacement. But my > searching eventually led me to aliexpress.com. Expressing my opinion here. I buy all my batteries, from cell phone and UPS to diesel pickup truck from Northwest Battery Supply at SE 37th and Belmont. I could save money by buying on line, but will gladly pay more to support local businesses. We need the variety and expertise that local vendors offer. That's why I buy from the above, Parkrose Hardware, and others. Look at what Walmart did to local grocery stores. We lost a very high quality Thriftway here in Troutdale when Walmart opened in Wood Village. We all make choices based on our preferences, and mine is to support local vendors of all types whenever possible. Rich === I confirm Rich's perspective on local vendors. However ... I have a ca. 2011 Asus Eee 1015px 10 inch that travels really well. The original 10-hr battery has died. BatteriesPlus by me wanted $155 for a replacement battery. The entire computer was 200$ new, 6 yrs ago. I'd gladly pay a premium to support my neighbors, but no one likes to be gauged. -- Mark Heimstaedt ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Laptop batteries
rshep...@appl-ecosys.com said: >Expressing my opinion here. I buy all my batteries, from cell phone and UPS > to diesel pickup truck from Northwest Battery Supply at SE 37th and Belmont. I > could save money by buying on line, but will gladly pay more to support local > businesses. We need the variety and expertise that local vendors offer. That's > why I buy from the above, Parkrose Hardware, and others. Agreed. I make a point of buying all of my car and motorcycle batteries from a local small business (and I've bought a lot of them over the years). For things like laptop and UPS batteries I usually go to BatteriesPlus down the street, mostly because I don't know anywhere else near here on the west side that deals with them. But this is a special circumstance, basically what would otherwise be a throw-away piece of hardware that's not worth spending that kind of money on. (I didn't talk about how I had to rebuild the case with J-B Weld and Super Glue to deal with a broken hinge). If I can extend it's usefulness for under $20 that's a good thing. Otherwise I'd rather just spend a little more and get a brand new Lenovo with full warranty, a core-i7, 12G RAM and 1TB hard drive from Costco for $450. I wasn't recommending this as a general source, but if you're on a really tight budget and willing to take on some risk it might be worth considering. john- ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Laptop boots with Ethernet ports ipv6
On Fri, 10 Nov 2017, Tomas Kuchta wrote: Mostly likely because your router address is 192.168.1.1 so the laptop cannot have the same address. Pick different between 2-250. Tomas, On that subnet the laptop is assigned 192.168.1.4 Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Backup MX server
On Fri, 10 Nov 2017, Jason Bergstrom wrote: The two reasons this isn't a standard offering are that policies for filtering mail differ widely. If a secondary accepts all mail for your primary, then your primary returns and now refuses mail the secondary has to bounce it (if they don't accept it in the first place their policy has to agree with your filtering policy). The second reason is that sending servers will queue mail for a period of time, often 3-7 days, lists may have a shorter policy. If your receiving server is down longer then 3 days, you probably should not run your own mail server. Jason, Thanks for explaining. The longest outage I've had here has been about 24 hours in the February 1996 ice storm. So, I'll withdraw my request. Regards, Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Backup MX server
daf...@dafydd.com said: > Something I've thought about for when I have my domain host back under my > direct control is acting as a backup MX for friends (and at least one of them > returning the favor). My idea is to act as a spooler until the Primary MX is > back. I haven't seen much documentation out there about a mail server that > just spools messages until the primary MX is back on line, though. Been there, done that. Eventually decided it wasn't worth the hassle. Mail hosts SHOULD be configured to retry for some set period of time before giving up, In the past that used to be 5 days. Unless your server is going to be offline for longer than that there's no difference between spooling on a backup server and just waiting for the sender to retry once you come back online. And you've added unnecessary complexity, especially if you're doing host-based spam blocking on your mail server. It's really only useful if you need redundancy in case the server hardware fails but the rest of your network is still up and running. john- ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Backup MX server
On Fri, Nov 10, 2017 at 10:35:54AM -0800, Rich Shepard wrote: > David, > >I've no idea how this works. When Aracnet/SpiritOne was a working ISP I > set a higer MX number for their mail server (white.spiritone.com). Now that > I've escaped their clutches I'd like a new backup. > >When you learn how functioning as a backup MX works please share with us. > No reason why any of us could not return the favor. > > Rich > The two reasons this isn't a standard offering are that policies for filtering mail differ widely. If a secondary accepts all mail for your primary, then your primary returns and now refuses mail the secondary has to bounce it (if they don't accept it in the first place their policy has to agree with your filtering policy). The second reason is that sending servers will queue mail for a period of time, often 3-7 days, lists may have a shorter policy. If your receiving server is down longer then 3 days, you probably should not run your own mail server. Jason, ber...@bergie.net ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
[PLUG] Laptop batteries
I was resurrecting my daughter's old Lenovo college laptop (G530 from circa 2010) for use when working on projects in my garage - I often need to search for parts or research problems/procedures. I replaced the 3GB of RAM with a new matched pair of 2GB DIMMs for $35, and just for kicks swapped the HD for a small SSD. But the battery was pretty shot and only lasted about 10 minutes. So I went looking for a replacement. Reputable places like BatteriesPlus want $90 for a new replacement. But my searching eventually led me to aliexpress.com. If you've never been there you should check it out, it can be fun. I've bought things from there before. You generally just have to be aware that you're buying cheap Chinese products that may or may not come with English available, and in the case of things like tablets, webcams, etc. may not be upgradable and may contain backdoors. Most of the vendors are wholesalers, but will usually sell single quantities. Long story short, I bought a battery for $17.50, including shipping, from "YHR store" (https://www.aliexpress.com/store/2782025). Shipped from a warehouse in the US. So far it hasn't burst into flames. ;-) It identifies itself as a Sony battery, but I have no way of knowing if that's true. And it seems to be working fine. Chinese Li-Ion batteries don't have the best reputation. But I figured laptop batteries are old-tech and probably a pretty safe bet. Current cellphone and similar batteries have extremely tight tolerences, but old-school laptop batteries are generally just AA-sized cells in a package with some control circuitry that should be pretty much off-the-shelf these days. So we'll see how it goes. john- ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Backup MX server
On Fri, 10 Nov 2017, David Barr wrote: Something I've thought about for when I have my domain host back under my direct control is acting as a backup MX for friends (and at least one of them returning the favor). My idea is to act as a spooler until the Primary MX is back. I haven't seen much documentation out there about a mail server that just spools messages until the primary MX is back on line, though. David, I've no idea how this works. When Aracnet/SpiritOne was a working ISP I set a higer MX number for their mail server (white.spiritone.com). Now that I've escaped their clutches I'd like a new backup. When you learn how functioning as a backup MX works please share with us. No reason why any of us could not return the favor. Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Backup MX server
Following! Something I've thought about for when I have my domain host back under my direct control is acting as a backup MX for friends (and at least one of them returning the favor). My idea is to act as a spooler until the Primary MX is back. I haven't seen much documentation out there about a mail server that just spools messages until the primary MX is back on line, though. David > On Nov 10, 2017, at 7:36 AM, Rich Shepardwrote: > > I would like to add a backup MX server for the rare times my primary MX > server here is off-line for a while. If weather predictions for the area > turn out to be true long power outages might occur and it would be nice to > have someone catch incoming mail until power is restored. > > Are there free services for this as there are for DNS servers? > > Rich > ___ > PLUG mailing list > PLUG@pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > -- David - Offbeat http://pgp.mit.edu/ dafydd - Online 0xda3f18449337d6b5 51525354555657-- Werner Heisenberg is driving down the autobahn. A police officer pulls him over. The officer says, "Excuse me, sir, do you know how fast you were going?" "No," replies Dr. Heisenberg, "but I know where I am." signature.asc Description: Message signed with OpenPGP using GPGMail ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] One ethernet port, two subnets
On Mon, 6 Nov 2017, wes wrote: If the above doesn't work for you, we may need to learn more about your setup. Given what you've mentioned previously on this topic, I'm going to guess that you're trying to arrange it such that you can talk to the Ubiquiti router both on its default subnet as well as the one the rest of your network uses, without having to re-number your interface every time you try to change something. This is exactly the sort of thing I used to do when I was playing with these devices a lot. Wes, Here's the setup I tried: Laptop (IP address 192.168.55.2) -> LinkSys 4-port switch Ubiquiti router (default IP address 192.168.1.1) -> LinkSys 4-port switch LinkSys switch -> LAN router (IP address 192.168.55.4) This won't work for configuring the replacement router because the current router already has the IP address of 192.168.55.4. After setting the Ubiquiti's LAN IP address to the default router address there would be two hosts with that address. So, until the new router is completely configured and replaces the Netgear I need to keep rebooting the laptop as I change its IP address from one subnet to the other. Thanks, Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Laptop boots with Ethernet ports ipv6 [FIXED]
On Fri, 10 Nov 2017, Rich Shepard wrote: I've no idea what caused this but need to learn ASAP how to get it back to using ipv4 addressing. Fixed the issue by stopping/starting rc.inet1, the file that configures network ports. Lesson to me: apparently restarting is not as complete as stopping/starting. I've encountered this with other services, but not before with this one. Please return to your regularly scheduled Friday activities. Carpe weekend, Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
[PLUG] Laptop boots with Ethernet ports ipv6
This is a completely new issue here. I'm using my Dell Latitude E5410, running Slackware-14.2/x86_64 to configure the Ubiquiti ER-X. The laptop's eth0 IP address needs to be set to 192.168.1.1 to configure the router's WAN port. Then I need to change the laptop's eth0 IP address to 192.168.55.2 (its LAN host address) because the Ubiquti's LAN IP address was changed to 192.168.55.4. This swapping back-and-forth lead to last week's thread and Wes' suggestion to have both subnet IP addresses assigned to eth0. I did this. Now, however, I cannot ping LAN hosts or the Ubiquiti router. Looking at inconfig eth0 on the laptop now shows it has an ipv6 address rather than the expected ipv4 address. Huh? How'd this happen? I've no idea what caused this but need to learn ASAP how to get it back to using ipv4 addressing. Never a dull moment with computers, eh? Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
[PLUG] Mikrotik Router Board 2011 and SFP
Folks, I have a RouterBoard 2011, it has a port for an SFP interface. I have several Infineon SFP SX 850nm transceivers, I plugged one into the router board the other into a media converter and tried to establish a link to the router board, but no joy. I wonder if any one has used the SFP port on Mikrotik products? I would like make a fibre run to a machine in a noisy environment but for some reason I cannot get things to work. In the past when I have used these things (SPF transceivers ) they just seemed to work, so not sure what is going on here. If anyone has any ideas I am all ears. -- Chuck Hast -- KP4DJT -- I can do all things through Christ which strengtheneth me. Ph 4:13 KJV Todo lo puedo en Cristo que me fortalece. Fil 4:13 RVR1960 ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Fiber connectors?
On Thu, 9 Nov 2017 22:32:19 -0800 Russell Seniordijo: >Yeah, the "bypassing needless" part is what we did already when I was >helping you. The NDOOR SFU GEN3 is the netgear thingie that the fiber >goes into, the so-called indoor ONT (optical network terminator). > >If you do end up finding a keystone, it will probably amount to a >passive optical connector (i.e. precisely holding the polished ends of >two fiber connector together). You don't crimp these yourself, at >least, not without a $5k fiber fuser, or a super tedious fiber >termination kit that involves cutting, epoxying, and polishing >absolutely flat the end of the strand. You would need not only the >wall plate and an optical connector, but a fiber patch cable for your >side of the wall plate. All of these would need to have the proper >connector pre-attached at a factory (unless you wanted to become an >expert fiber terminator, and, hint, you don't). > >On the other hand, if you do buy a fiber fuser for $5k, you can donate >it to the Personal Telco Project after you've fused the one or two >connections you need, and then we'll be happy to loan it back to you >when ever you need. ;-) OK, I guess I won't be getting a keystone jack for the fiber. I'll just feed the fiber through an empty hole in one of the plates. But to do so I will need to unplug it from the NDOOR SFU GEN3, thread it through the hole, and then plug it back into the NDOOR SFU GEN3. This morning my head is working a little better so it occurred to me to call Adtran to see if they could help. They have a support number and a very nice lady, with native Alabama English, took down my question, created a ticket number and promised that one of their support people would call me back. And after the call to Adtran I noticed that the fiber goes into the device in a corner that looks like it might come apart. Indeed, there was a small screw holding it together. I removed it and discovered that the real connector is inside, and can be pulled out easily. I unplugged the wall wart, pulled the fiber cable out, routed it through a hole in one of the wall plates, reconnected it, and powered it back on. There was some light-blinking for a few moments, but eventually it all went back to normal. My internet is working fine. I don't know why none of this occurred to me last night. I am frequently amazed at how much more intelligent I am in the morning. And now that I see what the connector at the end of the cable actually looks like I'll revisit the idea of getting a keystone jack and patch cable. In fact, I'll just pose that question to the support person when they call me back. Maybe Adtran even sells such accessories. ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
[PLUG] Backup MX server
I would like to add a backup MX server for the rare times my primary MX server here is off-line for a while. If weather predictions for the area turn out to be true long power outages might occur and it would be nice to have someone catch incoming mail until power is restored. Are there free services for this as there are for DNS servers? Rich ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug