Reddit

Subscribe to Reddit feed
All things Linux and GNU/Linux -- this is neither a community exclusively about the kernel Linux, nor is exclusively about the GNU operating system.Linux, GNU/Linux, free software...
Updated: 53 min 29 sec ago

I just found the most actively hostile uefi hp design

Sun, 2017-03-26 15:59

This concerns an `2013 HP elitebook (8570w)

Basically you can mess around the whole day with efibootmgr and efivars and you will not be able to boot your new entry as default except if you label it as "Windows Boot Manager". After that, you do not even need a boot manager, you can use efistub to boot the kernel (with an initramfs).

This is beyond stupid.

submitted by /u/nicman24
[link] [comments]

Installing ethernet driver -- $ sudo make install [...] "Can't read private key". What do?

Sun, 2017-03-26 15:55

After attempting to install a new PCI ethernet driver (for a TP-Link TG-3269) and have run into a problem during install.

(Details below)

Compiled using Realtek driver r8168-8.044.02, extracted to ~Desktop (from official site):

m3talhead@m3talhead ~ $ uname -isor

Linux 3.16.0-38-generic i686 GNU/Linux

m3talhead@m3talhead ~/Desktop/r8168-8.044.02 $ sudo make clean modules

make -C src/ clean make[1]: Entering directory `/home/m3talhead/Desktop/r8168-8.044.02/src' make -C /lib/modules/3.16.0-38-generic/build SUBDIRS=/home/m3talhead/Desktop/r8168-8.044.02/src clean make[2]: Entering directory `/usr/src/linux-headers-3.16.0-38-generic' CLEAN /home/m3talhead/Desktop/r8168-8.044.02/src/.tmp_versions CLEAN /home/m3talhead/Desktop/r8168-8.044.02/src/Module.symvers make[2]: Leaving directory `/usr/src/linux-headers-3.16.0-38-generic' make[1]: Leaving directory `/home/m3talhead/Desktop/r8168-8.044.02/src' make -C src/ modules make[1]: Entering directory `/home/m3talhead/Desktop/r8168-8.044.02/src' make -C /lib/modules/3.16.0-38-generic/build SUBDIRS=/home/m3talhead/Desktop/r8168-8.044.02/src modules make[2]: Entering directory `/usr/src/linux-headers-3.16.0-38-generic' CC [M] /home/m3talhead/Desktop/r8168-8.044.02/src/r8168_n.o CC [M] /home/m3talhead/Desktop/r8168-8.044.02/src/r8168_asf.o CC [M] /home/m3talhead/Desktop/r8168-8.044.02/src/rtl_eeprom.o CC [M] /home/m3talhead/Desktop/r8168-8.044.02/src/rtltool.o LD [M] /home/m3talhead/Desktop/r8168-8.044.02/src/r8168.o Building modules, stage 2. MODPOST 1 modules CC /home/m3talhead/Desktop/r8168-8.044.02/src/r8168.mod.o LD [M] /home/m3talhead/Desktop/r8168-8.044.02/src/r8168.ko make[2]: Leaving directory `/usr/src/linux-headers-3.16.0-38-generic' make[1]: Leaving directory `/home/m3talhead/Desktop/r8168-8.044.02/src'

m3talhead@m3talhead ~/Desktop/r8168-8.044.02 $ sudo make install

NOTE: This is where I receive the private key error. Running as root v. sudo give the same message. make -C src/ install make[1]: Entering directory `/home/m3talhead/Desktop/r8168-8.044.02/src' make -C /lib/modules/3.16.0-38-generic/build SUBDIRS=/home/m3talhead/Desktop/r8168-8.044.02/src INSTALL_MOD_DIR=kernel/drivers/net/ethernet/realtek modules_install make[2]: Entering directory `/usr/src/linux-headers-3.16.0-38-generic' INSTALL /home/m3talhead/Desktop/r8168-8.044.02/src/r8168.ko Can't read private key DEPMOD 3.16.0-38-generic make[2]: Leaving directory `/usr/src/linux-headers-3.16.0-38-generic' make[1]: Leaving directory `/home/m3talhead/Desktop/r8168-8.044.02/src'

m3talhead@m3talhead ~/Desktop/r8168-8.044.02 $ sudo mkinitramfs -o /boot/initrd.img-3.16.0-38-generic

Warning: No support for locale: en_US.utf8

m3talhead@m3talhead ~/Desktop/r8168-8.044.02 $ sudo echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf

NOTE: Not sure why sudo doesn't work here but su does (?) bash: /etc/modprobe.d/blacklist.conf: Permission denied

m3talhead@m3talhead ~/Desktop/r8168-8.044.02 $ su

root r8168-8.044.02 # sudo echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf

root r8168-8.044.02 # sudo cp src/r8168.ko /lib/modules/3.16.0-38-generic/kernel/drivers/net/

root r8168-8.044.02 # sudo depmod -a

root r8168-8.044.02 # sudo modprobe r8168

root r8168-8.044.02 # reboot

Troubleshooting

m3talhead@m3talhead ~ $ ifconfig

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2186 errors:0 dropped:0 overruns:0 frame:0 TX packets:2186 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:567048 (567.0 KB) TX bytes:567048 (567.0 KB)

m3talhead@m3talhead ~ $ /sbin/ip link

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

m3talhead@m3talhead ~ $ nm-tool

NetworkManager Tool State: disconnected

m3talhead@m3talhead ~ $ sudo lshw -C network

*-network UNCLAIMED description: Ethernet controller product: RTL8169 PCI Gigabit Ethernet Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 1 bus info: pci@0000:03:01.0 version: 10 width: 32 bits clock: 66MHz capabilities: pm bus_master cap_list configuration: latency=64 maxlatency=64 mingnt=32 resources: ioport:d000(size=256) memory:f5000000-f50000ff memory:f4000000-f401ffff

m3talhead@m3talhead ~ $ ixni -MiN

Machine: Mobo: Gigabyte model: G31M-S2L Bios: Award version: F6 date: 06/05/2008 Network: Card: Realtek RTL8169 PCI Gigabit Ethernet Controller IF: N/A state: N/A speed: N/A duplex: N/A mac: N/A

m3talhead@m3talhead ~ $ lspci -nnk | grep -i net

NOTE: "Kernel driver in use: xxxxxxxx" is missing on the last line of lspci -nnk | grep -i net (after "Capabilities") when compared to other devices. Leads me to believe the kernel cannot see the .ko. Thinking it's due to the private key error during install. If so, what's the fix? [...] 03:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller (rev 10) Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11 I/O ports at d000 [size=256] Memory at f5000000 (32-bit, non-prefetchable) [size=256] [virtual] Expansion ROM at f4000000 [disabled] [size=128K] Capabilities: [dc] Power Management version

m3talhead@m3talhead ~ $ locate -i r8168

/etc/modprobe.d/r8168-dkms.conf /lib/modules/3.16.0-38-generic/kernel/drivers/net/ethernet/realtek/r8168.ko /usr/share/doc/r8168-dkms /usr/share/doc/r8168-dkms/README /usr/share/doc/r8168-dkms/README.Debian /usr/share/doc/r8168-dkms/changelog.Debian.gz /usr/share/doc/r8168-dkms/copyright /usr/share/initramfs-tools/hooks/r8168-dkms /usr/src/r8168-8.037.00 /usr/src/r8168-8.037.00/Makefile /usr/src/r8168-8.037.00/dkms.conf /usr/src/r8168-8.037.00/r8168.h /usr/src/r8168-8.037.00/r8168_asf.c /usr/src/r8168-8.037.00/r8168_asf.h /usr/src/r8168-8.037.00/r8168_n.c /usr/src/r8168-8.037.00/rtl_eeprom.c /usr/src/r8168-8.037.00/rtl_eeprom.h /usr/src/r8168-8.037.00/rtltool.c /usr/src/r8168-8.037.00/rtltool.h /var/cache/apt/archives/r8168-dkms_8.037.00-1_all.deb /var/lib/dkms/r8168 /var/lib/dkms/r8168/8.037.00 /var/lib/dkms/r8168/8.037.00/build /var/lib/dkms/r8168/8.037.00/source /var/lib/dkms/r8168/8.037.00/build/.built-in.o.cmd /var/lib/dkms/r8168/8.037.00/build/.tmp_versions /var/lib/dkms/r8168/8.037.00/build/Makefile /var/lib/dkms/r8168/8.037.00/build/built-in.o /var/lib/dkms/r8168/8.037.00/build/dkms.conf /var/lib/dkms/r8168/8.037.00/build/make.log /var/lib/dkms/r8168/8.037.00/build/r8168.h /var/lib/dkms/r8168/8.037.00/build/r8168_asf.c /var/lib/dkms/r8168/8.037.00/build/r8168_asf.h /var/lib/dkms/r8168/8.037.00/build/r8168_n.c /var/lib/dkms/r8168/8.037.00/build/rtl_eeprom.c /var/lib/dkms/r8168/8.037.00/build/rtl_eeprom.h /var/lib/dkms/r8168/8.037.00/build/rtltool.c /var/lib/dkms/r8168/8.037.00/build/rtltool.h /var/lib/dpkg/info/r8168-dkms.conffiles /var/lib/dpkg/info/r8168-dkms.list /var/lib/dpkg/info/r8168-dkms.md5sums /var/lib/dpkg/info/r8168-dkms.postinst /var/lib/dpkg/info/r8168-dkms.preinst /var/lib/dpkg/info/r8168-dkms.prerm

m3talhead@m3talhead ~ $ dmesg | grep r8168

NOTE: Assuming this is part of the previous failure to read private key error. [ 20.101374] r8168: module verification failed: signature and/or required key missing - tainting kernel

EDIT: formatting

submitted by /u/M3talhead
[link] [comments]

Looking for a command line wrapper to buffer input line

Sun, 2017-03-26 12:39

I asked this in /r/commandline as well but couldn't get any response. This may be a little difficult to explain but here it goes.

Imagine you have a process that constantly produces output to stdout and reads from stdin at the same time. When a new output comes, your current buffered input line is left behind. You can hit <c-r> (VREPRINT) to print the full line again. However, this has a few problems. First, you need to push the key yourself manually. Then, it prints an extra line with a ^R character which is redundant. Lastly, it leaves behind part of the buffered line which pollutes the output.

I would like a wrapper program for this case. By a wrapper program I mean something like those readline wrappers (e.g. rlwrap) but with a different functionality. When a new output line comes, it should clear the current input line, print the output, and then print the whole buffered input line back again. I think it could be nice if it also provides readline functionality as well.

New apt frontend of ubuntu seems to have something similar. It prints the output continuously and also somehow displays the overall progress as a bar at the very bottom line. What I mean is to display the input line in place of the overall progress bar. It could either be displayed at the very bottom line or right after the last output line.

One of the possible uses for this wrapper would be to use nc as a clean irc client (e.g. wrapper_name nc irc.freenode.net 6667). For this purpose it can also provide a way to use a user defined filter program for stdin and stdout.

I'm not aware of such a program but I think it would be nice to have. A while ago I even tried to write such a program myself but couldn't finish it for my lack of knowledge about terminal handling:

#!/usr/bin/env python import sys import fcntl import signal import termios import threading import subprocess tattr = termios.tcgetattr(sys.stdout.fileno()) trepr = tattr[6][termios.VREPRINT] tattr[3] = tattr[3] & ~termios.ECHOCTL termios.tcsetattr(sys.stdout.fileno(), termios.TCSANOW, tattr) def reader(inp, out): while True: line = out.readline() sys.stdout.write('\r\033[K') sys.stdout.write(line) fcntl.ioctl(sys.stdout.fileno(), termios.TIOCSTI, trepr); def writer(inp, out): while True: line = sys.stdin.readline() inp.write(line) proc = subprocess.Popen(sys.argv[1:], stdout=subprocess.PIPE, stdin=subprocess.PIPE) t1 = threading.Thread(target=reader, args=(proc.stdin, proc.stdout)) t2 = threading.Thread(target=writer, args=(proc.stdin, proc.stdout)) t1.daemon = True t2.daemon = True t1.start() t2.start() try: signal.pause() except KeyboardInterrupt: pass

This has a few problems but it can give you some idea if you decide to work on this. I also tried to do something with ncurses but ncurses likes to handle all the screen itself. I think it is better to be able to use whatever scrolling capacity your terminal offers and leave the output behind after the process ends.

submitted by /u/bonv
[link] [comments]

My Linux distros over the years

Sun, 2017-03-26 11:26

My Linux distros over the years, from mid 90is to now. You see, I dont make experiments but I try other ones (Knoppix, CentOS etc.)

  • SuSE Linux (KDE)
  • Debian (KDE)
  • Ubuntu (Gnome)
  • Linux Mint (Cinnamon)
  • Manjaro (i3) [now]

What are your Linux distributions in the past to now?

submitted by /u/spite77
[link] [comments]

How to deal with people who are not as good as others and slow down the libre project?

Sun, 2017-03-26 10:09

When you work on your libre software project where most of the people are mostly volunteers who gets sometimes paid for some tasks, how do you deal with people who are your good friends, but on the other side they are average at best and everything what they do takes much longer and they do more errors than somebody else o rif you would do it yourself or ask/hire somebody more skilled to do that job. What should I as a leader of that project do? What would you do?

submitted by /u/kapkoz
[link] [comments]

What little-known tools do you like to use, despite them having more advanced equivalents?

Sun, 2017-03-26 08:07

Hi,

I'm constantly looking for new tools to improve my workflow, or just replace current ones that have become bloated over the years, so please share your less known/upcoming tools that you use for whatever purpose!

My picks: lf and kakoune.

Cheers.

submitted by /u/ellaluna4tv
[link] [comments]

I want to know about your experiences with Linode and Vultr (also, Digital Ocean rant)

Sun, 2017-03-26 07:25

<rant>I'm experiencing connectivity issues with Digital Ocean for more than five hours, all I got from them was a reply, after 4 hours, with a generic message telling me to do a MTR test in both ends. Their status page shows that everything is normal, and apparently they have no idea what's going on.</rant>

After today's fiasco I'm looking for another service, uptime and reliability are essential to me, a good (and fast) support is also desirable. I'm interested in Linode and Vultr, and I would like to know your experiences with them. I'm open to more options, but I prefer avoiding small/less popular services.

This is what I'm looking for:

KVM CentOS 7 CPU: 1 Core RAM: 256MB or more SSD: 10GB or more Bandwidth: 1TB or more Gigabit network $5 dollars or less per month submitted by /u/drakofrost
[link] [comments]

Let's discuss. Why do you use or not use BTRFS?

Sun, 2017-03-26 06:01

It's the most modern and generally awesome FS I've ever seen. I heard that it became stable sometime in 2014, so I don't understand why I don't often hear of it being used. Just to test, I formatted a rescue USB with it, and I've had absolutely no problems.

Let's discuss. Why do you use or not use BTRFS?

submitted by /u/ThatReallyFlyKid
[link] [comments]

Communities opinion on BIOS backdoors in their laptops?

Sun, 2017-03-26 05:22

Freedom. That's the reason many people switch to Linux. They're tired of backdoors. They are tired of companies taking their data. They are tired of other spying on them. So they take their Windows/macOS machines and do the smartest choice they've ever made. Install a Linux distro on them.

But I have a problem. I'm getting a new laptop to put Linux onto. Arch to be exact. But then I run into a problem. BIOS. Any company can still get my data via the backdoor BIOS. This, making my switch to Linux, somewhat moot. Yes, I understand that I have so many more freedoms, but my biggest concern is that companies and other organizations can still get my data. Libreboot is a great solution, but the problem is, it's only supported on hardware that is years old. I want to use a newer laptop, of course.

I guess my issue is that I'm stuck. Should I just go and get an older laptop and add Libreboot on it? Should I just say whatever and get a new laptop and slap Arch onto it?

Not only that, but is the community at all concerned with the backdoors on the BIOS, even if they are running Linux?

submitted by /u/Matyuw
[link] [comments]

rsync verbose logging options

Sun, 2017-03-26 03:36

I currently have an rsync transfer schedule to run nightly. I have it logging to a file on the receiving server. I am using the --verbose and --progress options. I also have a line in rsyncd.conf for "transfer logging = true". Right now my log file is only showing each directory that is being traversed during the rsync process but not which files are being changed/deleted/added. I had this working as desired years ago on another server but no longer can access the config files. Any tips?

EDIT: Figured it out. -P is partial progress... which is what I was looking for. Thanks!

submitted by /u/pmdas
[link] [comments]

"I don't intend to 'fix' several of the points you mentioned... because... I don't have a whole lot of love for you right now" - KDE dev refused to fix 10 errors on the website because he don't like the man who pointed at those fixes ;)

Sat, 2017-03-25 18:35

It started with this criticism of the new KDE webpage that is full of beginner webdeveloper/coder errors https://www.reddit.com/r/kde/comments/61els2/the_new_kde_webpage_is_a_shame_userk_ver_should/ (original article - currently refused to be approved by the mod; because he don;t like that I am criticizing /u/K_Ver as a webdeveloper) - down voted to oblivion, because it contains a critique of the /u/K_Ver and his 10 beginner webdeveloper mistakes and the KDE leadership (KDE e.V. Board + others) as whole.

After the critique - it was massively down voted (however, nobody addressed the points of the article, meaning no 1 point of my 10 points in that post were dismissed). They just attacked me and then, the post was hidden (they say by the bot), however, then the user /u/redsteakraw tried to bribe me to stay silent and make /u/K_Ver clean again:

No the mods did not remove your post auto mod did. Automod was implemented after a run of spam and pornographic advertisements have been submitted to the sub. It does mean that sometimes controversial posts get caught. I understand your frustration I feel it was executed in an improper fashion. KDE relies mostly on volunteer work unlike other projects KDE lives and dies by it's community. Most of the contributions come from a small amount of community developers very few of them are paid. Public shaming of a developer when other more productive channels are available to address said problems in a respectful way.

Publicly linking to his user account in said shaming post is borderline witch hunting which by Reddit's TOS is a ban-able offense. Now while I like productive debates and users are free to make posts on problems they see with KDE(and they do). I don't want to subject kver to having links to his reddit account and have him harassed and I don't want to see Reddit(and not me) ban you from the entire site. So while I didn't actively remove it I don't want to see any parties damaged by this post so I am not going to re-instate the post.

That being said I want to end on a lighter note; there are larger and more egregious examples of bad web design, see Fed-Ex paying people $5 to use their shitty deprecated flash page.

Which I refused.

Then the webdesigner /u/K_Ver wrote this:

I was writing a reply to your post, refreshing the page it seems it's just hidden. Currently it has a score of 0, so it's not as blasted as you might expect. You could likely find it via your own comments tabs, but I suspect it was taken down because it was a personal attack, clearly provoked from me calling you a troll yesterday. Either way, consider this my reply;

I'd normally offer to work with you to help resolve the issues (for web stuff, you don't need bug reports with me); but in all honesty I question your stability, and since I don't intend to 'fix' several of the points you mentioned (because the website you were critiquing is only temporary, and some of them are purely academic) I don't know what may or may not "set you off" further if or when I say "no" to some things.

That and I don't have a whole lot of love for you right now. I'm sure you understand that if that was your idea of being "professional", from one professional to another, I don't wish to work with you. If you cleaned up your act a bit and became a positive community influence, in time I would welcome you myself. There were others in the community who didn't take kindly to me, and we now have a good working relationship - I don't see why that's impossible here either.

If you decided for any reason you had it in you to submit patches, I won't block them, but you can reach out to other members of the community involved with the websites to do so. Again, I consider you to be volatile, so I simply consider working with you or accepting your input directly to be a professional risk waiting to explode. If I see you making improvements, I will work with you and accept your input directly.

EDIT: this comment by kapkoz is a legitimate question (where has the post gone?). He may not have a lot of good will, but please don't downvote just because it's him.

So, while I admire his effort to tell others to stop down voting my question, I don't like his approach on refusing t ofix the bugs because he don't like the "color" of my tone. Image organisations not removing bugs and errors because they hate the guy who called them. How would you feel?

Another question is how can KDE "leaders", yes they have leaders (KDE e.V., Schönhauser Allee 6/7, 10119 Berlin, Germany), allow their members to behave like this and openly refuse to fix bugs. What if it was in KDE neon or some other product. This is unacceptable.

First they tried to silence Alessandro Longo on PlanetKDE.org because he has a different opinion on some political issues as the pro-EU KDE mainstream people, then they backed up a little. Now, the same is happening with this censorship of my critique of /u/K_Ver . This has to stop.

Unless there is some fundamental change on how the KDE team membres operate, I can't suggest anybody to use their software. The bugs and more specifically, the unwillingness to fix the bugs - because the developer don't like your "color", is too risky. Please, think twice when using anything KDE related.

submitted by /u/kapkoz
[link] [comments]

How do you read mailing lists (listserv) on your phone?

Sat, 2017-03-25 17:53

Many GNU/Linux projects use listserv but browsing these mailing lists is a nightmare on small form factor devices.

What’s your solution?

submitted by /u/taohansen
[link] [comments]

Thunderbolt USB C

Sat, 2017-03-25 09:08

Does anyone have any experience booting Linux from external ssd via Thunderbolt USB type C connection? If so, can you please share it? Is it fast enough to use that set up at home with a corporate computer?

submitted by /u/keicezis
[link] [comments]

Pages