Re: [gentoo-user] conf.d/net routes
Maybe is this ... #route add default gw IPgateway Il 02/set/2017 21:14, "Branko Grubic" ha scritto: > > On Sat, 2 Sep 2017 11:54:48 -0700 > Ian Zimmerman wrote: > > > What is the exact syntax of the *_routes lines in the /etc/conf.d/net > > file, or where is it documented? > > > > The wiki gives a couple of examples, but they are all either just for > > dhcp (so no configurable routes) or else they are of the form > > > > eth0_routes="default via eth0" > > > > "via" is not something I can use on the command line of the route > > command, at least according to its manpage. So it can't be just > > straight repetition of the command line. But then, what is it? > > > > Motivation: I want to add a route for a point-to-point interface. > > > > Some examples you can find > in /usr/share/doc/netifrc-0.5.1/net.example.bz2 > > Replace netifrc version with one installed on your system. > >
[gentoo-user] Re: Ruby - 3 versions - seriously????
On Sat, 02 Sep 2017 21:33:31 +0800, Andrew Lowe wrote: > Hi all, > I'm in the process of doing a world update and due to a failed compile, > I have cause to look up through the list of stuff to compile/update. > Imagine my surprise when I saw there were three versions of Ruby wanting > to update: > > [ebuild U ] dev-lang/ruby-2.4.1-r4 [2.4.1-r3] > [ebuild U ] dev-lang/ruby-2.3.4-r4 [2.3.4-r3] > [ebuild U ] dev-lang/ruby-2.2.7-r4 [2.2.7-r3] That is unusual unless you configured this yourself. Did you set RUBY_TARGETS in make.conf? Are you on stable or testing? It would also be interesting to know what is pulling in these ruby versions. > I would prefer to get rid of Ruby, but, if memory serves me correctly, > someone associated with the kernel decided it would be a good idea to > use yet another language for something, obviously Python wasn't good > enough webkit-gtk and thin-provisioning-tools come to mind as pulling ruby for people that don't want it perse. Hans
Re: [gentoo-user] Is my SSD dying?
On Sat, Sep 2, 2017 at 8:49 AM, Peter Humphrey wrote: > A week or two ago I was investigating some other weirdnesses and at one > point I zeroed out the first partition: the unformatted one containing the > UEFI data. It took longer than I expected, having only 2MB to fill. I wonder > if it strayed outside the partition... > Are you trimming your drive?
Re: [gentoo-user] Ruby - 3 versions - seriously????
On Sat, Sep 2, 2017 at 4:37 PM, Marvin Gülker wrote: > Am 02. September 2017 um 22:57 Uhr +0200 schrieb Alan McKinnon > : >> OK, so disclaimer up front. I detest Ruby. I hate it with a passion. > > There is nothing one can do against that, but... > >> Each new minor version of ruby is a whole new language and the devs >> are OK with large breaking changes between minor version numbers. > > ...this is factually incorrect. There are new features added quite > often, but minor versions are generally backwards-compatible. The one > exception was the 1.8->1.9 switch years ago. One of the reasons I dislike Ruby is that there is no complete specification of the language available, making this statement (technically) untestable. Seeing as the OP is saying there are 3 versions queued for merge and he has not installed any of them by hand it looks like Alan is right. Perhaps the OP is using "old" Ruby based software, but software of that age in another language could work on new interpreters. Cheers, R0b0t1.
Re: [gentoo-user] Re: Easiest way to block domains?
Rich Freeman wrote: > On Sat, Sep 2, 2017 at 5:06 PM, Walter Dnes wrote: >> On Thu, Aug 31, 2017 at 09:19:00AM -0700, Ian Zimmerman wrote >>> On 2017-08-31 08:47, Walter Dnes wrote: >>> 1) To protect my gear against power surges/spikes/drops 2) To protect against the rare occurence when power goes off for 1 or 2 seconds >>> I do the same. Or at least I did until last week, when the UPS died >>> after more than a decade of perfect service. (Here, the outages are >>> longer than 2 seconds; it's not often, but is very annoying when it >>> happens, with the UPS square wave beeps.) >> I just had a second look at your message. Did you say your UPS puts >> out ***SQUARE WAVES***? That is very bad for consumer grade electrical >> stuff. >> > He said the beeps were square waves. That is roughly what mine sound > like, though mine is a sine-wave UPS. > > A lot of stuff can handle square wave power output, though PFC power > supplies don't like it as I understand things. I think most of the > cheaper UPSs on the market still put out fairly raw inverter output. > I can tell you one thing that doesn't like square wave or the modified square waves some UPSs put out. The air pump for a fish tank. The ones I had and tried to run off a UPS when we had a large power failure would not run off the UPS. Generator, fine. UPS, not happening. I was told that if one hooks up a 120v>120v transformer, it will work. I never tested that but according to the person that told me that, it changes the wave enough that it is more like a sine wave, since transformers don't recreate square to well. It makes sense that it would work. Also, some AC motors won't run off of it either. They have a name for the type of motor but can't recall what it is. I think the compressors in a fridge/freezer will run off that tho. Then again, may vary by model. Our little small fans, won't run but they do get hot pretty quick. o_O Since power outages are not so often nowadays, I depend on the surge protection in my UPS more than I do the backup power. Both of my UPSs have a LOT of MOVs in them. I put new batteries in my old UPS last month. Third set of batteries in that thing. It's pretty old but works well. Odd how some things work and some don't. Dale :-) :-)
Re: [gentoo-user] Re: Easiest way to block domains?
On Sat, Sep 2, 2017 at 5:06 PM, Walter Dnes wrote: > On Thu, Aug 31, 2017 at 09:19:00AM -0700, Ian Zimmerman wrote >> On 2017-08-31 08:47, Walter Dnes wrote: >> >> > 1) To protect my gear against power surges/spikes/drops >> > 2) To protect against the rare occurence when power goes off for 1 >> >or 2 seconds >> >> I do the same. Or at least I did until last week, when the UPS died >> after more than a decade of perfect service. (Here, the outages are >> longer than 2 seconds; it's not often, but is very annoying when it >> happens, with the UPS square wave beeps.) > > I just had a second look at your message. Did you say your UPS puts > out ***SQUARE WAVES***? That is very bad for consumer grade electrical > stuff. > He said the beeps were square waves. That is roughly what mine sound like, though mine is a sine-wave UPS. A lot of stuff can handle square wave power output, though PFC power supplies don't like it as I understand things. I think most of the cheaper UPSs on the market still put out fairly raw inverter output. -- Rich
Re: [gentoo-user] Re: Easiest way to block domains?
On Thu, Aug 31, 2017 at 09:19:00AM -0700, Ian Zimmerman wrote > On 2017-08-31 08:47, Walter Dnes wrote: > > > 1) To protect my gear against power surges/spikes/drops > > 2) To protect against the rare occurence when power goes off for 1 > >or 2 seconds > > I do the same. Or at least I did until last week, when the UPS died > after more than a decade of perfect service. (Here, the outages are > longer than 2 seconds; it's not often, but is very annoying when it > happens, with the UPS square wave beeps.) I just had a second look at your message. Did you say your UPS puts out ***SQUARE WAVES***? That is very bad for consumer grade electrical stuff. -- Walter Dnes I don't run "desktop environments"; I run useful applications
Re: [gentoo-user] Ruby - 3 versions - seriously????
Am 02. September 2017 um 22:57 Uhr +0200 schrieb Alan McKinnon : > OK, so disclaimer up front. I detest Ruby. I hate it with a passion. There is nothing one can do against that, but... > Each new minor version of ruby is a whole new language and the devs > are OK with large breaking changes between minor version numbers. ...this is factually incorrect. There are new features added quite often, but minor versions are generally backwards-compatible. The one exception was the 1.8->1.9 switch years ago. I have done quite a bit of web developing with it and never had an API break problem with Ruby itself, save the aforementioned 1.8/1.9 switch. Granted, gems are quite different. RubyOnRails especially releases new (breaking) versions way too fast for me; that's why I prefer to use different libraries. Marvin
[gentoo-user] Re: conf.d/net routes
On 2017-09-02 22:01, Mick wrote: > ip route add 10.0.0.0/8 via 192.168.0.1 dev eth0 Ah, that's where the "via" comes from. I didn't realize when I wrote my OP that iproute2 would be used by default, and not the old route program from net-tools. Thanks. -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.
Re: [gentoo-user] conf.d/net routes
On Sat, Sep 2, 2017 at 2:54 PM, Ian Zimmerman wrote: > > What is the exact syntax of the *_routes lines in the /etc/conf.d/net > file, or where is it documented? > > The wiki gives a couple of examples, but they are all either just for > dhcp (so no configurable routes) or else they are of the form > > eth0_routes="default via eth0" > > "via" is not something I can use on the command line of the route > command, at least according to its manpage. So it can't be just > straight repetition of the command line. But then, what is it? > > Motivation: I want to add a route for a point-to-point interface. For documentation, see "/usr/share/doc/netifrc-/" For "via", "man ip-route".
Re: [gentoo-user] Ruby - 3 versions - seriously????
On 02/09/2017 15:33, Andrew Lowe wrote: > Hi all, > I'm in the process of doing a world update and due to a failed compile, > I have cause to look up through the list of stuff to compile/update. > Imagine my surprise when I saw there were three versions of Ruby wanting > to update: > > [ebuild U ] dev-lang/ruby-2.4.1-r4 [2.4.1-r3] > [ebuild U ] dev-lang/ruby-2.3.4-r4 [2.3.4-r3] > [ebuild U ] dev-lang/ruby-2.2.7-r4 [2.2.7-r3] > > Have I managed to stuff up something on my machine or is this really the > case, there has to be three versions? And to make matters worse, they > are not big version jumps, + 0.1 -> 2.2, 2.3 & 2.4. > > I would prefer to get rid of Ruby, but, if memory serves me correctly, > someone associated with the kernel decided it would be a good idea to > use yet another language for something, obviously Python wasn't good > enough > > Thoughts on the magically multiplying Rubies would be greatly > appreciated, Welcome to the giant clusterfuck that is RubyWorld(tm). Just be thankful you don't have to support corporate internal code written in it. Or package gems. OK, so disclaimer up front. I detest Ruby. I hate it with a passion. You have to understand what Ruby is. It is not a language. It is 5 languages. Like python27 and python3 are really different languages with much in common. The difference is the python devs have solid reasons for doing python3 and the transition has been mostly smooth. Each new minor version of ruby is a whole new language and the devs are OK with large breaking changes between minor version numbers. So why 3 rubys? Because they are 3 languages and you have packages that for whatever reason are tied to different rubys. Just pretend to yourself that they aren't really ruby22, ruby23 and ruby24 - they are php, perl and python (or whatever 3 language names you like that help you get past the 3 rubys! thing). You probably need all 3. As housekeeping, you can put this in make.conf: RUBY_TARGETS="ruby22", and remove all ruby versions from world and let depclean, revdep-rebuild and emerge world take care of the details. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] conf.d/net routes
On Saturday, 2 September 2017 19:54:48 BST Ian Zimmerman wrote: > What is the exact syntax of the *_routes lines in the /etc/conf.d/net > file, or where is it documented? > > The wiki gives a couple of examples, but they are all either just for > dhcp (so no configurable routes) or else they are of the form > > eth0_routes="default via eth0" > > "via" is not something I can use on the command line of the route > command, at least according to its manpage. So it can't be just > straight repetition of the command line. But then, what is it? > > Motivation: I want to add a route for a point-to-point interface. The /usr/share/doc/netifrc-0.5.1/net.example.bz2 page offers this: 10.0.0.0/8 via 192.168.0.1 Is this what you are after? If you want to add a route in real time using the CLI, then this would work: ip route add 10.0.0.0/8 via 192.168.0.1 dev eth0 -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Re: conf.d/net routes
On 2017-09-02 21:05, Simon Thelen wrote: > > Motivation: I want to add a route for a point-to-point interface. > You probably only need to list the peer address on a single line and > then that peer should become routable. The problem was that _two_ routes were being added: the host-specific one (which was what I wanted), but _also_ one for a non-CIDR network based on the peer IP. Since the address was a 10.* address, I ended up with a /8 route, which was definitely not wanted. I got around it by suffixing the address with /32. But I am surprised that iproute2 apparently cannot explicilty set the IFF_POINTOPOINT flag (ifconfig can). -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.
[gentoo-user] Re: conf.d/net routes
On 2017-09-02 21:11, Branko Grubic wrote: > > Motivation: I want to add a route for a point-to-point interface. > > Some examples you can find > in /usr/share/doc/netifrc-0.5.1/net.example.bz2 That didn't really help much, sorry. I figured out how to do it, but only by reading the shell code in /lib/netifrc/net/* . But at least you confirmed that netifrc is the package responsible. That package could use a volunteer to write some real documentation :-P -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.
Re: [gentoo-user] conf.d/net routes
On 17-09-02 at 11:54, Ian Zimmerman wrote: > What is the exact syntax of the *_routes lines in the /etc/conf.d/net > file, or where is it documented? [..] > "via" is not something I can use on the command line of the route > command, at least according to its manpage. So it can't be just > straight repetition of the command line. But then, what is it? As far as I'm aware it's based on ip-route(8) syntax separated by newlines. There's a complete documentation file for netifrc in /usr/share/doc/netifrc-/net.example[.bz2] You'll probably be most interested in the "INTERFACE HANDLERS" section and potentially the "Advanced Routing" section. > Motivation: I want to add a route for a point-to-point interface. You probably only need to list the peer address on a single line and then that peer should become routable. -- Simon Thelen
Re: [gentoo-user] conf.d/net routes
On Sat, 2 Sep 2017 11:54:48 -0700 Ian Zimmerman wrote: > What is the exact syntax of the *_routes lines in the /etc/conf.d/net > file, or where is it documented? > > The wiki gives a couple of examples, but they are all either just for > dhcp (so no configurable routes) or else they are of the form > > eth0_routes="default via eth0" > > "via" is not something I can use on the command line of the route > command, at least according to its manpage. So it can't be just > straight repetition of the command line. But then, what is it? > > Motivation: I want to add a route for a point-to-point interface. > Some examples you can find in /usr/share/doc/netifrc-0.5.1/net.example.bz2 Replace netifrc version with one installed on your system.
[gentoo-user] conf.d/net routes
What is the exact syntax of the *_routes lines in the /etc/conf.d/net file, or where is it documented? The wiki gives a couple of examples, but they are all either just for dhcp (so no configurable routes) or else they are of the form eth0_routes="default via eth0" "via" is not something I can use on the command line of the route command, at least according to its manpage. So it can't be just straight repetition of the command line. But then, what is it? Motivation: I want to add a route for a point-to-point interface. -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.
Re: [gentoo-user] Rename /dev/nvme0n1 to /dev/sda
On Fri, Sep 1, 2017 at 12:10 PM, Grant wrote: > My new laptop uses /dev/nvme0n1 instead of /dev/sda which conflicts > with the script I use to manage about 12 similar laptops running > Gentoo. Is there a udev method for renaming the disk that will work > well with any USB disks that happen to also be attached? I'm not certain what you mean by that, but I would guess that you want the nvme disk to show up as /dev/sda, and the USB disk(s) to show up as /dev/sd[b-z]. It is not possible to accomplish this using udev; the kernel owns the /dev/sdX device namespace, and will sequentially create devices nodes for SCSI-like block devices using that namespace. There is no way to change that using a udev rule.
Re: [gentoo-user] Ruby - 3 versions - seriously????
On Saturday, 2 September 2017 14:33:31 BST Andrew Lowe wrote: > I'm in the process of doing a world update and due to a failed compile, > I have cause to look up through the list of stuff to compile/update. > Imagine my surprise when I saw there were three versions of Ruby wanting > to update: > > [ebuild U ] dev-lang/ruby-2.4.1-r4 [2.4.1-r3] > [ebuild U ] dev-lang/ruby-2.3.4-r4 [2.3.4-r3] > [ebuild U ] dev-lang/ruby-2.2.7-r4 [2.2.7-r3] > > Have I managed to stuff up something on my machine or is this really the > case, there has to be three versions? And to make matters worse, they > are not big version jumps, + 0.1 -> 2.2, 2.3 & 2.4. > > I would prefer to get rid of Ruby, but, if memory serves me correctly, > someone associated with the kernel decided it would be a good idea to > use yet another language for something, obviously Python wasn't good > enough > > Thoughts on the magically multiplying Rubies would be greatly > appreciated, > > Andrew Won't portage let you remove any of them? On my system only qtwebkit and webkit-gtk need ruby, and they seem happy to accept version 2.2.6. Nothing apparently to do with the kernel. -- Regards, Peter.
Re: [gentoo-user] Is my SSD dying?
On Saturday, 2 September 2017 13:28:44 BST Jacques Montier wrote: > I once encountered the problem with my Crucial SSD. > I found a procedure to make the SSD detected which worked for me. > http://forums.crucial.com/t5/Crucial-SSDs/Why-did-my-SSD-quot-disappear-qu > ot-from-my-system/ta-p/65215 Hope this will help. Mine's by Samsung: # lspci -v -s 05:00.0 05:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM951/PM951 (rev 01) (prog-if 02 [NVM Express]) Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM951/ PM951 Flags: bus master, fast devsel, latency 0, IRQ 35, NUMA node 0 Memory at fbd0 (64-bit, non-prefetchable) [size=16K] I/O ports at d000 [size=256] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [70] Express Endpoint, MSI 00 Capabilities: [b0] MSI-X: Enable+ Count=9 Masked- Capabilities: [100] Advanced Error Reporting Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00 Capabilities: [158] Power Budgeting Capabilities: [168] #19 Capabilities: [188] Latency Tolerance Reporting Capabilities: [190] L1 PM Substates Kernel driver in use: nvme It's clearly visible to the kernel, and smartd finds it too if I tell it what to look for. I don't want to start unplugging it unless I have to, as it's in a PCI slot and I'd probably make things worse. And it is only 18 months old, as I said. A week or two ago I was investigating some other weirdnesses and at one point I zeroed out the first partition: the unformatted one containing the UEFI data. It took longer than I expected, having only 2MB to fill. I wonder if it strayed outside the partition... -- Regards, Peter.
[gentoo-user] Ruby - 3 versions - seriously????
Hi all, I'm in the process of doing a world update and due to a failed compile, I have cause to look up through the list of stuff to compile/update. Imagine my surprise when I saw there were three versions of Ruby wanting to update: [ebuild U ] dev-lang/ruby-2.4.1-r4 [2.4.1-r3] [ebuild U ] dev-lang/ruby-2.3.4-r4 [2.3.4-r3] [ebuild U ] dev-lang/ruby-2.2.7-r4 [2.2.7-r3] Have I managed to stuff up something on my machine or is this really the case, there has to be three versions? And to make matters worse, they are not big version jumps, + 0.1 -> 2.2, 2.3 & 2.4. I would prefer to get rid of Ruby, but, if memory serves me correctly, someone associated with the kernel decided it would be a good idea to use yet another language for something, obviously Python wasn't good enough Thoughts on the magically multiplying Rubies would be greatly appreciated, Andrew
Re: [gentoo-user] Rename /dev/nvme0n1 to /dev/sda
On Fri, Sep 1, 2017 at 11:10 AM, Grant wrote: > > My new laptop uses /dev/nvme0n1 instead of /dev/sda which conflicts > with the script I use to manage about 12 similar laptops running > Gentoo. Is there a udev method for renaming the disk that will work > well with any USB disks that happen to also be attached? > > crw--- 1 root root 252, 0 Aug 31 11:34 /dev/nvme0 > brw-rw 1 root disk 259, 0 Aug 31 11:34 /dev/nvme0n1 > brw-rw 1 root disk 259, 1 Aug 31 11:34 /dev/nvme0n1p1 > brw-rw 1 root disk 259, 2 Aug 31 11:34 /dev/nvme0n1p2 Isn't so much easier to use labels? Those are automatically available on /dev/disk/by-label, and you can use them in basically any type of partition, including Windows (NTFS and vfat) and swaps. Regards. -- Dr. Canek Peláez Valdés Profesor de Carrera Asociado C Departamento de Matemáticas Facultad de Ciencias Universidad Nacional Autónoma de México
Re: [gentoo-user] Is my SSD dying?
Hello, I once encountered the problem with my Crucial SSD. I found a procedure to make the SSD detected which worked for me. http://forums.crucial.com/t5/Crucial-SSDs/Why-did-my-SSD-quot-disappear-quot-from-my-system/ta-p/65215 Hope this will help. Cheers, *--* *Jacques* 2017-09-02 11:51 GMT+02:00 Peter Humphrey : > On Saturday, 2 September 2017 10:32:23 BST I wrote: > > > ... Now smartmon appears to run ok - provided that I remove DEVICESCAN > > from /etc/smartd.conf and give it a specific device to monitor ... > > Some months ago someone here mentioned a test suite for SSDs, but I can't > remember what it was called and now I can't find it. Can someone point me > in > the right direction, please? > > -- > Regards, > Peter. > > >
Re: [gentoo-user] Is my SSD dying?
On Saturday, 2 September 2017 10:32:23 BST I wrote: > ... Now smartmon appears to run ok - provided that I remove DEVICESCAN > from /etc/smartd.conf and give it a specific device to monitor ... Some months ago someone here mentioned a test suite for SSDs, but I can't remember what it was called and now I can't find it. Can someone point me in the right direction, please? -- Regards, Peter.
Re: [gentoo-user] Is my SSD dying?
On Saturday, 2 September 2017 02:24:57 BST Adam Carter wrote: > On Fri, Sep 1, 2017 at 7:46 PM, Peter Humphrey > wrote: > > For the last week or two my NVMe SSD isn't being detected on startup. I > > get this error on manual invocation: > > > > # smartctl -a /dev/nvme0n1 > > smartctl 6.4 2015-06-04 r4109 [x86_64-linux-4.12.5-gentoo] (local build) > > Probably also worth updating to 4.12.10, there's some important sounding > security fixes in it, and the Changelogs for 4.12.6 and 4.12.8 mention > nvme. I went to version 6.5. Now smartmon appears to run ok - provided that I remove DEVICESCAN from /etc/smartd.conf and give it a specific device to monitor, like this: /dev/nvme0n1 -a -o on -S on -s (S/../.././02|L/../../6/03) (following an example in the file). So I'm still feeling somewhat edgy. -- Regards, Peter.
Re: [gentoo-user] Is my SSD dying?
On Friday, 1 September 2017 10:54:45 BST Arthur Țițeică wrote: > În 1 septembrie 2017 12:46:39 EEST, Peter Humphrey a scris: > >Hello list, > > > >For the last week or two my NVMe SSD isn't being detected on startup. I > >get > >this error on manual invocation: > > > ># smartctl -a /dev/nvme0n1 > >smartctl 6.4 2015-06-04 r4109 [x86_64-linux-4.12.5-gentoo] (local > >build) > >Copyright (C) 2002-15, Bruce Allen, Christian Franke, > >www.smartmontools.org > > > >/dev/nvme0n1: Unable to detect device type > >Please specify device type with the -d option. > > Smartmontools supports NVMe starting from version 6.5. That was it - thanks. It's odd, though, that I hadn't noticed this before. > >Most things still seem to be working, but do I need to rush out and buy > > > >another drive? This one's only 18 months old. I don't really want to > >box up > >the machine and send it to Watford under warranty. > > > >Two things that aren't working properly are KMail (surprise!), and > >BOINC, > >which insists that VirtualBox isn't installed, when of course it (more > >or > >less) always has been. > > Is the boinc user in the vboxusers group? Yes: # groups boinc vboxusers boinc -- Regards, Peter.