Comments (8)
That's an interesting idea, but I'm sort of knee deep in the command infrastructure at the moment (and still trying to find time as always) so I'm going to have to TODO that until after all of the serious changes.
As for canto over network, I haven't looked at it in a while, and obviously the network adds some latency vs. a local socket, but last time I used it over LAN it wasn't very noticeable. Your commands look just fine. Totaling the amount of daemon socket traffic I see on startup (which should be the highest load), with maybe 1000 items moving over, I get about 200k of traffic over thirty seconds which isn't even close to enough to choke a LAN connection...
SSH won't speed anything up, but you can use port forwarding to encrypt your traffic (see http://codezen.org/canto-ng/manual/#Remote-Networking) if you'd ever want to connect from outside your LAN.
from canto-next.
Thanks for the reply, maybe it's my bad with my local network. Currently it's not connecting at all. At least now I know that it should work without noticeable latency :) Maybe it's just my RPI issues.
About the hook upon reading news - when I would have some time for it I'll try to make it myself (thx for the great example) and perhaps send a pull-request.
from canto-next.
Well, it seems like it all works over ssh (port forwarding), but nothing works over lan (I get connection refused error). So for now I'm going to use ssh-way.
from canto-next.
I have created a pull request about these hooks
themoken/canto-curses#14
About networking problems - I have fixed them, it was my LAN connection what wasn't working. Although, canto-daemon shuts down after some time working, I don't know why. I wrote a script which will restart canto-daemon if it's not running so it's not problem anymore.
Also, although these hooks and plugin should work, I have tested them on 0.8.4-2 version from Arch Linux AUR canto-curses version (not git). So check it out just in case.
from canto-next.
By the way, currently I don't need these hooks anymore and new version of canto perfectly works both over LAN and SSH, so I guess this issue could be closed unless you want to implement such hooks some day.
from canto-next.
Could the info on the remote networking made be available again?
It got removed some time ago and I'm currently have problems with this.
Wanted to check, if I did something wrong with the configuration.
The problem I notice is, the daemon with -a "" and -p 11000, the daemon doesn't seem to fetch anything, unless a canto-curses session is running.
from canto-next.
Sorry, I moved to inoreader and reading news on the go from my mobile phone now.
from canto-next.
No worries. I think I found the cause of my problem.
Edit: tl/dr;
User units are alive as long as the user is connected. Therefor no wondering, if I cannot connect via LAN if no session is running, and all is working well, after I connected via ssh first :/ Know your tools or so
All is working well, as long an user who owns the canto user units is active on the pi (ssh or whatever)
And after reading those bits a few minutes ago:
Aug 25 01:59:25 Clio systemd[778]: Stopped Timer for forced updates of custom canto-daemon service - 1Hour
(A timer + service file which does every hour an forced update, as it seemed to help in the past, when the LED on the pi was having fun, and ssh into the pi reveaveled via htop, that the canto-daemon hogged quite some resources and tried to do something)
And the actual service for the daemon:
$ usystemctl status cantod
● cantod.service - Canto RSS Daemon
Loaded: loaded (/home/omnius/.config/systemd/user/cantod.service; enabled; vendor preset: enabled)
Active: active (running) since Do 2016-08-25 12:24:32 CEST; 3min 32s ago
Main PID: 1118 (canto-daemon)
CGroup: /user.slice/user-1001.slice/[email protected]/cantod.service
└─1118 /usr/bin/python /usr/bin/canto-daemon -a -p 11000
Aug 25 12:24:32 Clio systemd[1108]: Started Canto RSS Daemon.
I closed the last ssh session at 1:59 and opened the new at 12:24.
So this whole thing is handled by systemd the fact (which I kinda forgot) that the systemd --user instance is a per-user process, and not per-session.
Additionally as a feature which came with 230
( https://github.com/systemd/systemd/blob/master/NEWS#L274 ), which would also be a candidate but as far I can tell is disabled on Arch and ALARM.
So I need to read about how to keep that stuff alive.
The nohup equivalent
from canto-next.
Related Issues (20)
- Feature request: Owncloud support
- Canto-daemon won't start HOT 2
- Ubuntu Trusty Package install does not work HOT 1
- Please document data storage HOT 1
- TypeError: 'NoneType' object is not iterable HOT 1
- Proxy / PAC
- Installation instructions for Debian HOT 2
- Cannot change update interval HOT 1
- canto didn't displayed TUI HOT 2
- request: socks/http proxy HOT 2
- Object of type 'timedelta' is not JSON serializable HOT 1
- No module named 'canto_next' HOT 2
- Please update pypi package HOT 1
- Canto-daemon crashes instead of staying up HOT 1
- Very poor ARM performance HOT 8
- Pip build doesn't declare feedparser as a dependency HOT 2
- dead? HOT 3
- How can i uninstall canto[next,curses] HOT 2
- pypi sdist for release 0.9.8 missing HOT 1
- json.decoder.JSONDecodeError: Expecting value: line 13 column 5 (char 296)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canto-next.