Linux - Reddit – Telegram
Linux - Reddit
772 subscribers
4.19K photos
207 videos
39.9K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
Should Python shell replace CLI?

While you can't do everything in Python shell that you can do in CLI (Without invoking CLI from Python), here is why I think that Python Shell should eventually replace CLI:

1. CLI is collection of different tools with inconsistent interfaces while Python is designed with readability in mind
2. Python is an actual programming language that you can use to develop apps. You can make an android app in Python but not in CLI.
3. With Python you can also do a lot of other things such as statistical analysis, AI, game design, etc.
4. Python is more cross-platform while CLI is \*nix specific

The downsides of replacing CLI with Python shell are:

1. A lot of people already know and love CLI and for many Linux is CLI.
2. There are a lot of tools in CLI that are not available as a python module
3. A lot of legacy noscripts

Let me know what you think.

https://redd.it/dy4yxy
@r_linux
Rick Sanchez uses GNU/Linux
https://redd.it/dy8yah
@r_linux
xcp 0.6.0 adds experimental block-level parallelism

`xcp` is (work-in-progress) clone of the Unix cp command, with more user-friendly feedback and some optimisations that make sense on modern hardware. On Linux it uses `copy_file_range(2)` for performance.

https://github.com/tarka/xcp

The major changes in this version are:

* The introduction of switchable 'drivers'. This has been added to facilitate experimenting with alternative strategies for copy optimisation. Currently 2 drivers are available:
* 'parfile': the previous hard-coded xcp copy method, which parallelises tree-walking and per-file copying. This is the default.
* 'parblock': An experimental driver that parallelises copying at the block level. This has the potential for performance improvements in some architectures, but increases complexity. It should be considered a work-in-progress; currently it does not support sparse files, does not play well with the progress bar, and will almost certainly eat your data. Testing is welcome.
* A '--block-size' flag to configure size of copy operations.
* The --no-target-directory (-T) flag from 'cp' is now supported (thanks to Walther Chen).

See README for how to install. `xcp` is written in Rust and requires it to build.

https://redd.it/dyazu7
@r_linux
Terminal for custom links to files and directories.

I am looking for terminal for i3 window manager. At this point I am keen to choose urxvt or st, but I do not say 'no' to others. However, there are 2 features, that would be super useful for me, that no one writes about or shows on youtube videos. Namely,

1. I would like to be able to quickly navigate to the paths that are displayed in the terminal. Something similar to opening the urls. I would like to have an option to cd to this path in the current terminal or open the new one. This would probably save me minutes per day as I often use programs that log something like: 'for more details check directory /path/to/dir'. If cd happens in the same terminal, it would be also user super useful to have an shortcut to come back to the previous working directory.
2. The second functionality is very similar, but it concerns files. I would like to be able to open them easily in vim in the current terminal or in the new terminal.

https://redd.it/dyh4r1
@r_linux
Hibernate Progress Bar

I remember that while I was using **OpenSUSE**., the **hibernate** feature has a console progress bar...
Many years passed. Now using **Arch** linux but... just see a black screen and not have informed anything about...


Why linux kernel has not such a feature by default, I don't know.


What is your distro? Do you have any progress bar while hibernating or just watch black screen?
Thanks

https://redd.it/dy6zmn
@r_linux
How to add packages to linux iso in bootable pendrive?

I wanna use Puppy Linux bootable from my pendrive. And the PC is offline. I wanted to add vim and nano in that Puppy Linux iso and make my pendrive bootable so that I can use Vim and nano in my offline PC. How to do so?

https://redd.it/dykr40
@r_linux
Fixing the font problem on Linux

Hi all,

I recently partitioned my laptop and installed Debian (after a few other distros) , it works really well for me on my XPS 9550 but I got hit with the terrible font problem in Linux. Text and the terminal look great but apps look blurry and awful.

Well, I came across this article and solution. After following the steps of installing the Noto font everything looks great on my Debian 10.

[https://pandasauce.org/post/linux-fonts/](https://pandasauce.org/post/linux-fonts/)

​

sudo apt install fonts-noto

## Tweak Tool

​

* Hinting: Slight
, which translates to “autohint”. I suggest it because it exhibits the advance widths rounding issue in kerning pairs the least. Personally, I use full hinting with v38.
* Anti-aliasing: Subpixel
* Window Titles: Noto Sans UI Regular 11
or Noto Sans Display Regular 11
(renamed in newer versions)
* Interface: Noto Sans UI Regular 10
or Noto Sans Display Regular 10
(renamed in newer versions)
* Documents: Noto Serif Regular 11
* Monospace: Noto Mono Regular 13

## Application Settings

I find that different applications render best with certain font sizes set. Most likely, this is because it forces the least broken glyph form in absence of subpixel positioning which would give me a non-broken glyph.

Here they are:

​

* Terminator: Ubuntu Mono 13.5
* Sublime Text: Ubuntu Mono 13.4
, padding-top 4
, padding-bottom 4
* IntelliJ: Ubuntu Mono 18
, line height 1.4
* Chrome, Spotify, Slack, Electron apps: add --disable-font-subpixel-positioning
to the shortcut. I used to [manually patch every binary release of Chrome](https://gist.github.com/pandasauce/398c080f9054f05bee6e1c465416b53b) to enable subpixel positioning, but thanks to [this bug in Chromium](https://bugs.chromium.org/p/chromium/issues/detail?id=824153#c39) that turned out to be not necessary.

​

Long live Noto :)

https://redd.it/dyl9qs
@r_linux
Weekly Questions and Hardware Thread - November 20, 2019

Welcome to r/linux! If you're new to Linux or trying to get started this thread is for you. Get help here or as always, check out r/linuxquestions or r/linux4noobs

This megathread is for all your question needs. As we don't allow questions on r/linux outside of this megathread, please consider using r/linuxquestions or r/linux4noobs for the best solution to your problem.

Ask your hardware requests here too or try r/linuxhardware!

https://redd.it/dywizc
@r_linux
65 Linux Networking Commands and Scripts and Programs [REDUX]

# My [latest post](https://www.reddit.com/r/linux/comments/dxkwg1/59_linux_networking_commands_and_noscripts/), got removed with a petty [copyright notice](https://i.imgur.com/H07u79A.png)!

"*Mere listings of ingredients or contents*" - is ***not*** ***protected*** by copyright according to copyright.gov [Circular 1](https://www.copyright.gov/circs/circ01.pdf).

So here is a modified list with updated denoscriptions, the suggestions from the previous thread and my own additions. I hope you find it useful.
For easier managing I've created a [github repo](https://github.com/friskfrysefrugt/awesome-networking), you're very welcome to make any suggestions/pull requests there.

1. [arpwatch](https://linux.die.net/man/8/arpwatch) – keep track of ethernet/ip address pairings.
2. [bmon](https://github.com/tgraf/bmon) – bandwidth monitor and rate estimator.
3. [bwm-ng](https://www.gropp.org/?id=projects&sub=bwm-ng) – console-based live network and disk io bandwidth monitor.
4. [curl](https://curl.haxx.se/) – transfer data with URLs. (alternatives [aria2](https://github.com/aria2/aria2), [httpie](https://httpie.org/))
5. [darkstat](https://unix4lyfe.org/darkstat/) – Captures network traffic, calculates statistics, and serves reports over HTTP.
6. [dhclient](https://linux.die.net/man/8/dhclient) – Dynamic Host Configuration Protocol Client.
7. [dhcpcd](https://wiki.archlinux.org/index.php/Dhcpcd) \- RFC2131 compliant DHCP client daemon.
8. [dig](https://linux.die.net/man/1/dig) – DNS lookup utility.
9. [dstat](https://github.com/dagwieers/dstat) – A versatile resource statistics tool
10. [ethtool](https://mirrors.edge.kernel.org/pub/software/network/ethtool/) – utility for controlling network drivers and hardware.
11. [gated](https://www.oreilly.com/library/view/linux-in-a/0596000251/re101.html) – gateway routing daemon.
12. [host](https://linux.die.net/man/1/host) – DNS lookup utility.
13. [hping](http://www.hping.org/) – TCP/IP packet assembler/analyzer.
14. [ibmonitor](http://ibmonitor.sourceforge.net/) – shows bandwidth and total data transferred.
15. [ifstat](http://gael.roualland.free.fr/ifstat/) – report network interfaces bandwidth.
16. [iftop](http://www.ex-parrot.com/pdw/iftop/) – display bandwidth usage.
17. [ip](https://access.redhat.com/sites/default/files/attachments/rh_ip_command_cheatsheet_1214_jcs_print.pdf) (PDF file) – ifconfig on steroids.
18. [iperf3](https://github.com/esnet/iperf) – A TCP, UDP, and SCTP network bandwidth measurement tool.
19. [iproute2](https://wiki.linuxfoundation.org/networking/iproute2) – collection of utilities for controlling TCP/IP.
20. [iptables](https://netfilter.org/) – utility for configuring Linux kernel [firewall](https://wiki.archlinux.org/index.php/Firewall).
21. [IPTraf](https://sourceforge.net/projects/iptraf-ng/) – Console-based network monitoring utility.
22. [iputils](https://wiki.linuxfoundation.org/networking/iputils) – Network monitoring tools, including ping.
23. [iw](https://wireless.wiki.kernel.org/en/users/documentation/iw) – a new nl80211 based CLI configuration utility for wireless devices.
24. [jwhois](https://github.com/jonasob/jwhois/) (improved whois) – client for the whois service.
25. [“lsof -i”](https://www.novell.com/coolsolutions/tip/18078.html) – reveal information about your network sockets.
26. [Lynis](https://cisofy.com/lynis/) \- Auditing, system hardening, compliance testing
27. [mtr](http://www.bitwizard.nl/mtr/) – network diagnostic tool.
28. [net-tools](http://net-tools.sourceforge.net/) – the collection of base networking utilities for Linux.
29. [ncat](https://nmap.org/ncat/) – much-improved re-implementation of the venerable [Netcat](http://sectools.org/tool/netcat/).
30. [nethogs](https://github.com/raboof/nethogs) – Linux 'net top' tool written in C++.
31. [Netperf](https://github.com/HewlettPackard/netperf) – Network bandwidth benchmark.
32. [netsniff-ng](http://netsniff-ng.org/) – Swiss army knife for your daily Linux network plumbing if you will.
33. [netstat](http://net-tools.s