|
Embarassingly, tcpdump started showing the stuff every 10 seconds after fiddling around...not sure what I did.Cidrick posted:Is InfluxDB configured to accept collectd metrics? It won't natively, and I don't see a collectd output plugin to write to InfluxDB, just OpenTSDB and graphite, among other things. InfluxDB has a native way to accept collectd metrics. I edited the [[collectd]] section of influxdb.conf to look like: code:
code:
Thermopyle fucked around with this message at 00:09 on Aug 13, 2016 |
# ? Aug 13, 2016 00:03 |
|
|
# ? Apr 19, 2024 17:20 |
|
Thermopyle posted:InfluxDB has a native way to accept collectd metrics. Well egg on my face. Ignore me I guess!
|
# ? Aug 13, 2016 00:05 |
|
Cidrick posted:Well egg on my face. Ignore me I guess! Well hopefully there's enough egg to go around. That config file obviously says "enabled=False". Sometimes I'm so dumb.
|
# ? Aug 13, 2016 00:28 |
|
taqueso posted:I ran across a bug in Fedora 24 where I had typed my password into the xlock (or whatever is used to lock X) textbox, but got distracted before actually finishing. When the monitor turned off I noticed and hit enter. When the password screen reappeared my password was shown as plain text instead of dots. The effect stayed around through a couple wrong passwords but it was fine after the next screen lock. I was excited to make a bug report but now I can't replicate it. If you right click on the password input box there is an option to show password text. I manage to enable it more often than I'd like by doing something with the right alt or ctrl key. I bet you did the same.
|
# ? Aug 13, 2016 02:49 |
|
Kaluza-Klein posted:If you right click on the password input box there is an option to show password text. I manage to enable it more often than I'd like by doing something with the right alt or ctrl key. I bet you did the same. Looks like ctrl-enter brings it up.
|
# ? Aug 13, 2016 04:57 |
|
I'm running a CentOS 7 home server. It doesn't host anything critical that can't stand a little downtime. Should I be automatically updating overnight or something like that? If so, what's the best way to do that? A cronjob that runs yum update -y ?
|
# ? Aug 13, 2016 23:41 |
|
Another collectd/influxdb/grafana question: The Disk plugin for collectd is supposed to report "the number of octets written to and read from a disk or partition, the number of read/write operations issued to the disk and a rather complex "time" it took for these commands to be issued". So, I set up grafana like so: Which gets me a graph that looks like this: This is a steadily increasing graph no matter which time scale I zoom to. I'm expecting a graph that looks like this from the collectd wiki (obviously this is RRDTool, but I'm referring to ups and downs in the data): This is confusing to me, so I go to look at the raw data in InfluxDB: code:
So apparently, I'm not understanding what the disk_octets is supposed to represent? How do I get a graph or data like that RRDTool graph above?
|
# ? Aug 13, 2016 23:42 |
|
Maybe it needs to be calculated as a delta between values rather than a steadily increasing time series, somewhat similar to an interface speed statistic.
|
# ? Aug 14, 2016 01:40 |
|
Thermopyle posted:Another collectd/influxdb/grafana question: Collectd is producing an ever increasing counter rather than a gauge. So you need to apply a derivative function to it. https://docs.influxdata.com/influxdb/v0.8/api/aggregate_functions/#derivative
|
# ? Aug 14, 2016 12:28 |
|
Wicaeed posted:I've got a fairly large live dataset (~150TB) that I need to slowly move Amazon S3. Both rsync and rclone will only push changed data if you tell them to. I use rclone with amazon cloud drive to back up my files, and the sync function works fine. I also use rsync for local backups to another server using the archive option and the delete option to delete changes on the receiving side, so basically if a file no longer exists on the source, it removes it on the receiving side. I'm also using the '--link-dest' option on rsync to perform differential backups, so i end up with a hard linked folder on the receive side with the changes in it, plus the original files. The actual directory size is only as big as the data pushed, but once that backup is pushed to the top of the rotation (automatically deletes older than 10 days) it becomes as big as the dataset if that makes any sense. This is what the set ends up looking like: code:
|
# ? Aug 14, 2016 12:34 |
|
jre posted:Collectd is producing an ever increasing counter rather than a gauge. Well dang, that's exactly what I need. Thanks.
|
# ? Aug 14, 2016 17:08 |
|
I use byobu to manage my ssh sessions. One of its indicators shows how many packages are available for upgrading on an Ubuntu system. I just realized that it doesn't show this anymore until after I manually run apt-get update. After I do that, then the indicator shows that there are available packages. It used to just show the indicator automatically. As I don't think I've ever had any cron job or anything running apt-get update, I assume Ubuntu has some built-in mechanism for running this command or something like it that somehow got turned off. Anyone know what got turned off?
|
# ? Aug 14, 2016 19:26 |
|
Thermopyle posted:I use byobu to manage my ssh sessions. One of its indicators shows how many packages are available for upgrading on an Ubuntu system. I don't know what the actual running mechanism is, but it's a setting in `Software & Updates`: http://farm8.staticflickr.com/7435/10955425153_b866a08bec_z.jpg
|
# ? Aug 14, 2016 19:43 |
|
I was hoping someone could point me in the right direction so I can try and debug an audio issue? Running Debian/Gnome/Pulse. If I plug my headphones into the front headphone port on my case which uses the audio header pinouts on the motherboard, everything is perfect. When there is nothing playing, there is no sound/no background noise. This is what alsamixer looks like when I use that headphone port: If I use the rear line out port on the same motherboard (not a separate sound card), I get all sorts of lovely background noise. If I open up alsamixer and play with the different channels, I can "solve" half of it. The default state when I plug my headphones into the rear line out port is that I get two type of background noise. One sounds like when you put a sea shell up to your ear, the other is harder to explain, it's just the "sound of silence/interference". Like when you hook up big speakers to a stereo and put the volume to max without playing anything. If I unmute "Line" and leave it at zero the "Sea" noise is gone, mute it and it's back again. The second background noise I can't get rid of unless I completely mute master. I considered hardware interference for the second background noise but it wasn't an issue when I had to run Win 10 for a while.
|
# ? Aug 15, 2016 02:03 |
|
Are you sure it's not a hardware issue? Could be that the rear audio ports are not isolated as well as the front ports?
|
# ? Aug 15, 2016 08:29 |
|
Xik posted:If I use the rear line out port on the same motherboard (not a separate sound card), I get all sorts of lovely background noise. If I open up alsamixer and play with the different channels, I can "solve" half of it. You seem to have the surround/center/LFE/side channels enabled too. If you're using headphones in the line out port, these should be unnecessary - have you tried setting them to zero and/or muting them? Also, would the Auto-Mute or Loopback settings near the right side of the mixer have any noticeable effect at all? Xik posted:The default state when I plug my headphones into the rear line out port is that I get two type of background noise. One sounds like when you put a sea shell up to your ear, the other is harder to explain, it's just the "sound of silence/interference". Like when you hook up big speakers to a stereo and put the volume to max without playing anything. If I unmute "Line" and leave it at zero the "Sea" noise is gone, mute it and it's back again. The second background noise I can't get rid of unless I completely mute master. The HD-Audio standard allows all kinds of audio signal mixers, and relies on some information embedded in the system firmware to identify how to operate the audio mixer in this particular hardware implementation. It is possible that this information is slightly incorrect in your firmware, and the manufacturer has just provided a workaround in the Windows driver since it's easier to update. Such an error could possibly cause the audio mixer chip to enable some physical signal line in the audio chip that is neither actually used nor properly terminated in your motherboard model. Such a line could easily pick up PSU hum and other interference from all the high-frequency electrical activity that happens within the computer chassis. That is fixable with a model-specific "quirk" setting, but tracking down the right fix might require contacting some Linux audio driver guru like Takashi Iwai. If you're interested, https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/sound/pci/hda lists recent developments in the Linux HD-Audio driver: it's mostly model-specific tweaks. Another possibility: you said your headphones are connected to the rear Line Out port. In a 7.1 surround set-up, the "Line Out" actually includes several plugs: green for the primary/front speakers, then three more plugs: one for rear surround pair, another for center+LFE (completing the 5.1 surround set) and one more for side speakers for full 7.1. The blue port is usually switchable or Line *In*. The mixer slider controlling the green port would be the one named "Front"- not because it's related to anything at the front of the chassis, but because it feeds the front speakers. If the blue connector is Line In, then the Line slider in the Playback side might actually control the mixing of the Line In signal into the computer-generated output (PCM). If that's true, you would certainly want to keep the Line slider at zero unless you actually have something connected to the Line In connector. You'll also want to switch the mixer into Capture mode and ensure that all the capture channels that you're not actually using are set to zero and muted, to minimize any sources of incoming noise to the audio chip. The Loopback setting in the mixer seems to be a common cause of noise in modern HD-Audio sound chips, and it seems that the Linux default setting for it was changed to Off in a patch submitted in early June.
|
# ? Aug 15, 2016 13:30 |
|
I'm looking at installing Fedora. From what I can see, the partitions necessary don't include a general storage partition. Can I just use the files on my Windows partition if I dual-boot? Or do I need a separate storage partition?
|
# ? Aug 15, 2016 19:31 |
22 Eargesplitten posted:I'm looking at installing Fedora. From what I can see, the partitions necessary don't include a general storage partition. Can I just use the files on my Windows partition if I dual-boot? Or do I need a separate storage partition? How come you want to dual-boot? Can a VirtualBox VM running Fedora suffice for your needs?
|
|
# ? Aug 15, 2016 19:36 |
|
I'm not sure if I even want to dual-boot, I just would like to not have to transfer my current stuff to my dicey external and back. A VM might be okay, but one of the people in the working in IT threads said that setting up a laptop with full functionality on Linux was the best way to learn about Linux.
|
# ? Aug 15, 2016 19:46 |
22 Eargesplitten posted:I'm not sure if I even want to dual-boot, I just would like to not have to transfer my current stuff to my dicey external and back. A VM might be okay, but one of the people in the working in IT threads said that setting up a laptop with full functionality on Linux was the best way to learn about Linux. If you just want to learn about Linux, a VM is absolutely perfect for that. You don't have to worry about screwing up your host machine messing with dual booting. You can save snapshots of the VM, mess around and break poo poo, and then just restore the last good snapshot. Performance in the VM is on par with host machine.
|
|
# ? Aug 15, 2016 20:05 |
|
Okay, I guess I'll set that up. Using VMs also seems like a good job skill. How much space does the VM generally take on the hard drive? I'm running a 180gb SSD, so I don't have a ton of space.
|
# ? Aug 15, 2016 20:11 |
|
I have (in Hyper-V) CentOS minimal configured with a LEMP stack running a minimal Wordpress install, and it's taking up less than 3GB. Each snapshot is 300 MB or less.
|
# ? Aug 15, 2016 20:14 |
22 Eargesplitten posted:Okay, I guess I'll set that up. Using VMs also seems like a good job skill. Using VMs is an excellent job skill to pick up. Once you've figured out how to manually create the VM, install an OS on it, etc then you should check out Vagrant and how it can help you make that process way easier. Do it at least once without Vagrant though. You can pick the size of the disk but I've found 8GB is usually plenty of room to play around with stuff. If you need additional storage, you can always add more virtual disks or resize the existing disk. You can also setup "shared folders" between your host and virtual machine, so you can give the VM access to anything stored elsewhere on your host machine.
|
|
# ? Aug 15, 2016 22:48 |
|
telcoM posted:Bunch of great info. Thanks telcoM, I really (like really, really) appreciate that you took the time to explain. telcoM posted:Also, would the Auto-Mute or Loopback settings near the right side of the mixer have any noticeable effect at all? telcoM posted:The Loopback setting in the mixer seems to be a common cause of noise in modern HD-Audio sound chips, and it seems that the Linux default setting for it was changed to Off in a patch submitted in early June. Loopback mixing appears to be the cause of the issue, if I flip it to disabled, all my audio related problems are gone. This is the commit you mentioned, it looks like it's going to be set to disabled by default going forward. commit message posted:So far, we enabled the loopback mixing control as default, as this behavior made somewhat compatible with the earlier HD-audio drivers for Realtek & co. However, it's getting annoying as we've got more and more bug reports about the noise coming from the loopback route. Since the loopback mixing is used fairly rarely and often harmful (e.g. using PA), let's get rid of the default turn-on lines. Bold mine, looks like this was generating a lot of bug reports for lovely audio. telcoM posted:You seem to have the surround/center/LFE/side channels enabled too. If you're using headphones in the line out port, these should be unnecessary - have you tried setting them to zero and/or muting them?
|
# ? Aug 16, 2016 00:49 |
|
22 Eargesplitten posted:Okay, I guess I'll set that up. Using VMs also seems like a good job skill. With modern VM technology, only as much space as is actually used -- you can tell the VM that it has an 80GB HDD, but if the OS install only takes up 5GB, that's how much space it'll take on disk. If you're really concerned you can check out something space-optimized like TinyCore (<100MB for a full install), but even something like SUSE will only take a few gigabytes for a standard install. Also, while I agree that a VM is a good way to go here, this: 22 Eargesplitten posted:I'm not sure if I even want to dual-boot, I just would like to not have to transfer my current stuff to my dicey external and back. isn't really a concern, since you can just resize the existing partitions on disk without losing the data in them and install linux in the newly freed space; there's no need to completely wipe the disk.
|
# ? Aug 16, 2016 00:52 |
|
ToxicFrog posted:With modern VM technology, only as much space as is actually used -- you can tell the VM that it has an 80GB HDD, but if the OS install only takes up 5GB, that's how much space it'll take on disk.
|
# ? Aug 16, 2016 00:59 |
|
telcoM posted:The Loopback setting in the mixer seems to be a common cause of noise in modern HD-Audio sound chips, and it seems that the Linux default setting for it was changed to Off in a patch submitted in early June. Thanks for this as well, I didn't even know it was toggleable, and great news about the patch. I have an ALC887-VD on an ASUS board, and like Xik, you can't do anything with the surround/centre/lfe channels except turn them off which mutes master. I'm guessing that's a software switchable thing more useful in a windows driver environment, because it acts the same in ALSA even if you are working in a 2ch setting.
|
# ? Aug 16, 2016 07:34 |
|
I have a server connected with 2 cables to my gateway, both in different VLANS. All Forwarding is blocked via iptables. But when I disconnect one cable, the machine can still ping both interfaces? What?
|
# ? Aug 16, 2016 09:35 |
|
Michaellaneous posted:I have a server connected with 2 cables to my gateway, both in different VLANS. All Forwarding is blocked via iptables. But when I disconnect one cable, the machine can still ping both interfaces? What? There are two possible design principles in TCP/IP driver stacks, known as host models. With the strong host model, each interface will only accept unicast packets with an IP address belonging to that specific interface, which is what you are expecting. However, Linux default behavior is the weak host model, where each interface will accept unicast packets sent to any IP address that belongs to the host. As a result, if a packet comes in via the "wrong" interface, it will still get responded. It is possible to make Linux behave according to the strong host model, if necessary, but it may require multiple settings, depending on the topology of your network. At the very minimum, you'll need to set the rp_filter sysctl, and possibly some iptables rules to explicitly drop any unicast packets that don't match the address of the network interface. You may also need to add a few advanced routing rules to make the routing code use the source IP address as part of the routing decision: in effect, you'll need to provide each network interface with a separate routing table.
|
# ? Aug 16, 2016 12:45 |
|
telcoM posted:There are two possible design principles in TCP/IP driver stacks, known as host models. Okay that is actually quite interesting. Thank you for that writeup. Which brings me to my actual problem: The OpenStack installiation. I want to seperate the both network (Administrative and Provider). Everything is connect to a switch and put into two seperate VLANs. I planned for both networks to have their own dns zone and DHCP. But clients in the Admin network (10.0.1.0) recieve get put into the Provider network (192.168.1.0). Is there a way I can only supply DHCP on a single interface?
|
# ? Aug 16, 2016 13:35 |
|
Michaellaneous posted:Okay that is actually quite interesting. Thank you for that writeup.
|
# ? Aug 16, 2016 16:20 |
|
Michaellaneous posted:Okay that is actually quite interesting. Thank you for that writeup. What are you actually doing here? Can you describe your enviroment (how many hosts? are the "clients" instances?) Is there a reason you're not using Neutron and network namespaces?
|
# ? Aug 16, 2016 16:30 |
|
Does anyone have any recommendations for learning Linux Server, specifically Ubuntu? After upgrading from 14.04 to 16.04, I'm realizing I sorely lack the fundamental base of linux coming from windows. Up until now, most of my work with my VPS(ZNC, another test one), have mainly been Googling for commands to plug into PuTTY via SSH, but I really don't really understand the various system commands, folder locations/purposes, etc. Kind of pieced together. Video tutorials are nice, so are books. Anything that helps my understand the language/method of thought. For example, I have no idea how systemd is different than init, etc.
|
# ? Aug 16, 2016 17:49 |
|
EconOutlines posted:Does anyone have any recommendations for learning Linux Server, specifically Ubuntu? After upgrading from 14.04 to 16.04, I'm realizing I sorely lack the fundamental base of linux coming from windows. Depends on what you're trying to learn, really. Linux is *giant*, even if you just consider the core of kernel + basic userland + distribution tools. It gets a whole lot bigger if you include services/servers, running your own services, etc. I'd recommend setting some goals and working towards them specifically. Things like Wikipedia (https://en.wikipedia.org/wiki/Unix_filesystem#Conventional_directory_layout) + arch wiki (https://wiki.archlinux.org/index.php/systemd) are pretty good for summarization information.
|
# ? Aug 16, 2016 18:06 |
|
https://linuxjourney.com/
|
# ? Aug 16, 2016 18:05 |
|
so loving future posted:Depends on what you're trying to learn, really. Linux is *giant*, even if you just consider the core of kernel + basic userland + distribution tools. It gets a whole lot bigger if you include services/servers, running your own services, etc. I'd recommend setting some goals and working towards them specifically. Thanks, I figured it be something along those lines. I'm still working on *goals*, its just all the small random things such as figuring out to put the public key in a user's '~/.ssh/authorized_keys' file even though it was added to the system as root, for example. The site that Sheep suggested looks pretty good as well. Guess I'll keep plugging away.
|
# ? Aug 16, 2016 18:35 |
|
EconOutlines posted:Thanks, I figured it be something along those lines. I'm still working on *goals*, its just all the small random things such as figuring out to put the public key in a user's '~/.ssh/authorized_keys' file even though it was added to the system as root, for example. .authorized_keys should be user owned, btw (so should priv + pub keys too -- maybe I'm misunderstanding you)
|
# ? Aug 16, 2016 18:59 |
|
EconOutlines posted:Thanks, I figured it be something along those lines. I'm still working on *goals*, its just all the small random things such as figuring out to put the public key in a user's '~/.ssh/authorized_keys' file even though it was added to the system as root, for example. The command 'apropos' may be helpful in figuring out random things. For example 'apropos authorized_keys' might give you the man-page for 'ssh-copy-id' and on that man-page the Notes-section would explain the permissions issue so loving future mentioned.
|
# ? Aug 16, 2016 19:21 |
|
anthonypants posted:I would like to use postfix as an internal relay to forward unauthenticated SMTP mail to Office 365. Because O365 requires authentication, I'd like to rewrite the sender address from baduser@domain.local to something like relay+baduser@domain.com. Assuming that's even a valid from: address, postfix doesn't seem to be translating it. I've got a map file: Now, what I'd like to do is prepend the sender (or something) to the subject line, based who the sender is (before it gets replaced), and I'm not sure what the best method is. I tried doing something like /From: (.*)/ PREPEND Subject: $1 but that doesn't work that way. I think I could make a unique header, and then have Office 365 deal with the sender/recipient, buuuuut I can only match the From: field once.
|
# ? Aug 17, 2016 01:13 |
|
|
# ? Apr 19, 2024 17:20 |
|
EconOutlines posted:Does anyone have any recommendations for learning Linux Server, specifically Ubuntu? After upgrading from 14.04 to 16.04, I'm realizing I sorely lack the fundamental base of linux coming from windows. I've found it surprisingly hard to find good books on linux. It's hard even to get recommendations from experts (presumably because most experts learnt through training / jobs rather than through books). Most of them suffer from the same problem as a lot of technical books: they tell you how to use specific commands (this is how you use "less", this is what you can do with "sed", etc.) without ever really stepping back and talking about why you might need to use those commands, or what is actually going on when those commands are invoked. It's frustrating because learning about how linux does things, the interesting histories and the elegant little rationales for various behaviour is a big part of the appeal of linux (for me). I want some theory and explanation, not just a user manual. I've only just started it, but "How Linux Works" by Brian Ward seems pretty good so far.
|
# ? Aug 17, 2016 15:09 |