Re: [CentOS] Connecting an android tablet to CentOS
On 9/14/2021 2:29 PM, Scott Robbins wrote: On Tue, Sep 14, 2021 at 11:09:34AM -0600, Frank Cox wrote: On Tue, 14 Sep 2021 17:01:29 + Richard wrote: [My android device file viewer(s) wouldn't get me into the Kindle data directory.] There's an app I use. Cx file explorer. It will go into the kindle directory, and from there, I can delete files. On the rare occasions I put a book in there--for example, at times, an author makes a free ebook available, I use jmtpfs. This is on a fairly minimal install with openbox, I suspect that Gnome's file manager might be able to do it. (I can with Fedora 34's live Gnome workstation). For copying files to and from my PC (including Kindle books), I use an app called WIFI FTP Server. It starts up an FTP server on your phone that you can connect to with Filezilla (or whatever) from your PC. The server is only active while the app is running and you can set a password. FTP is not a particularly secure protocol, but since I only used it when I'm on my home WIFI, it's not much of a risk. It lets me move files around without worrying about cables, drivers, USB modes, etc. -- Bowie ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Connecting an android tablet to CentOS
On Tue, Sep 14, 2021 at 11:09:34AM -0600, Frank Cox wrote: > On Tue, 14 Sep 2021 17:01:29 + > Richard wrote: > > > [My android device file viewer(s) wouldn't get me into the > > Kindle data directory.] There's an app I use. Cx file explorer. It will go into the kindle directory, and from there, I can delete files. On the rare occasions I put a book in there--for example, at times, an author makes a free ebook available, I use jmtpfs. This is on a fairly minimal install with openbox, I suspect that Gnome's file manager might be able to do it. (I can with Fedora 34's live Gnome workstation). -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Connecting an android tablet to CentOS
On Tue, 14 Sep 2021 17:01:29 + Richard wrote: > [My android device file viewer(s) wouldn't get me into the > Kindle data directory.] I wonder if the Termux app would allow you to do look at that. You can download the latest Termux from the F-Droid repo. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Connecting an android tablet to CentOS
> Date: Monday, September 13, 2021 23:07:42 -0400 > From: mark > > I plug it in via usb, and I see mtp... but it sees it as a camera > for some reason. > > Clue? > > Meanwhile, they seem to have updated android to make things less > accessable, meaning I can't find the kindle books I bought, as I > could a few months ago. Check the USB connection type setting on your (android) device. When I set it to "file transfer" (on an android 12-beta device) I can see my Kindle books. While I could open the files with LibreOffice they are in a format that I didn't have a compatible viewer for on my laptop. [My android device file viewer(s) wouldn't get me into the Kindle data directory.] ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Find out which process consumed Network bandwidth
Take a look at Cacti, which is available in the EPEL repo: https://www.cacti.net/ It's not just for network accounting. It polls multiple hosts for all kinds of data and keeps RRD tables for display. Cacti provides a web interface that can display the data in charts. You'll need to install plugins for iptables to do the actual data collection. I've used this to track per-host Internet usage on my LAN by adding an iptables chain with one do-nothing rule per LAN host, just to maintain a counter for Cacti to poll. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Find out which process consumed Network bandwidth
On 9/13/21 18:47, MRob wrote: While you probably can't recover such information for past events, going forward, iptables can help you figure this out. Putting an IPtables rule in the OUTPUT table prior to ACCEPTing the packets can help, e.g.: iptables -A OUTPUT -p tcp -m owner --uid-owner nginx -j ACCEPT OUTPUT and "-m owner" are only going to work for outgoing connections, initiated by nginx, which probably isn't much for most systems that aren't reverse proxies. Most of the time, if you want iptables to track the amount of traffic for a specific service, you'll need one or more rules inserted at the beginning of the INPUT chain, before the typical first rule that allows RELATED and ESTABLISHED packets. You could have one rule that allows all traffic to the service port (a stateless rule), or you could have one rule that allows ESTABLISHED traffic to the service port and one that allows NEW,UNTRACKED traffic to the port (stateful rules) That is nice solution! Why do you add a new output rule rather you can look at the existing port rule: # iptables -v -L | grep https xxx yyy ACCEPT tcp -- any any anywhere anywhere tcp dpt:https ctstate NEW,UNTRACKED xxx is number packets, yyy is number bytes. If adding OUTPUT rule, what is gained? Because the rule you're looking at only matches NEW and UNTRACKED packets, so it's usually only a record of the TCP SYN packets that initiated connections. If you want a byte count of the traffic for that service, this rule won't provide that. The nginx logs are the most detailed and usually the most useful record of traffic used, but accounting through iptables is also an option. Though, if you're interested in the sort of less detailed logs that you'll get from iptables, then I'd suggest what you want might be NetFlow data: https://www.linuxnetflow.com/ ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos