Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Defenestrategy
Oct 24, 2010

So I'm learning Linux by making a small raspberry pi project using a light weight version of Ubuntu and I was wondering what a good method for sending the contents of ifconfig to me was, so I could SSH into the pi without having to hook it into a display.


I was thinking a script that happens x amount of seconds after boot up that

1) Creates a text file
2) echos what ever ifconfig would output [eth0 and wlan0] into it
3) uploads said file to a server

my problem is I don't know the syntax or if part two is possible, or if this is necessarily a good way of doing it. So I'm open to suggestions.

Adbot
ADBOT LOVES YOU

Methanar
Sep 26, 2013

by the sex ghost

KildarX posted:

So I'm learning Linux by making a small raspberry pi project using a light weight version of Ubuntu and I was wondering what a good method for sending the contents of ifconfig to me was, so I could SSH into the pi without having to hook it into a display.


I was thinking a script that happens x amount of seconds after boot up that

1) Creates a text file
2) echos what ever ifconfig would output [eth0 and wlan0] into it
3) uploads said file to a server

my problem is I don't know the syntax or if part two is possible, or if this is necessarily a good way of doing it. So I'm open to suggestions.

Inspect your own arp table for mac addresses that have the raspberry pi MAC OUI. Which is B8-27-EB. https://regauth.standards.ieee.org/standards-ra-web/pub/view.html#registries

You could also inspect the DHCP server handing out IPs, or set up DDNS so that you can have a DNS name that always points to whatever your raspberry pi has registered.

Methanar fucked around with this message at 00:17 on Dec 22, 2017

Desuwa
Jun 2, 2011

I'm telling my mommy. That pubbie doesn't do video games right!
If you can access the admin pages for your router you're probably best off looking for the IP of the Pi there once it has connected. Then you can also give it a static lease so it keeps the same IP.

If you can't it should still be easier to just scan for computers on your local network from your existing desktop.

What you want to do is possible though. Redirecting output is fairly simple. ifconfig > output.txt will redirect the output of ifconfig into output.txt, creating it if necessary. Input can be redirected similarly with <.

Methanar
Sep 26, 2013

by the sex ghost
double post?

soggywaffles
Mar 18, 2009

KildarX posted:



I was thinking a script that happens x amount of seconds after boot up that

1) Creates a text file
2) echos what ever ifconfig would output [eth0 and wlan0] into it
3) uploads said file to a server

my problem is I don't know the syntax or if part two is possible, or if this is necessarily a good way of doing it. So I'm open to suggestions.

Not the approach id take, but you could do 1 & 2 in the same line with output redirection :

ifconfig -a > file.txt

Try it out.

soggywaffles
Mar 18, 2009
So who wants to build a bike shed?

lllllllllllllllllll
Feb 28, 2010

Now the scene's lighting is perfect!
Is there an easy way to remove the login screen from the latest ubuntu distro when you wake from sleep (i.e. close and open the laptop)? There really is nobody else here and I think I can take the security risk. That would be great.

BrainDance
May 8, 2007

Disco all night long!

Hey everybody, I'm running Mint 18.3 and I think it just got boned somehow.

I noticed the mint updater icon wasn't in the panel so I thought "ehh, I'll go run it and see what's up". This is what's up;

$ mintupdate
$ Traceback (most recent call last):
File "/usr/lib/linuxmint/mintUpdate/mintUpdate.py", line 15, in <module>
import pycurl
ImportError: pycurl: libcurl link-time version (7.47.0) is older than compile-time version (7.52.1)


I have no idea how (or exactly what) happened. The only thing I changed at all today was adding the pipelight package from ppa:pipelight/stable, and I installed filezilla and did normal updates. I'm looking at that stuff now though and it doesn't depend on, recommend or provide any packages related to curl or python. If it's not that, what could be going on? If it is that, how? And what do I do about it?

There is a package called libcurl installed, and it is indeed 7.47.0, but there are no other versions of it in my repos to force. Mintupdate also only has one version, so nothing weird could have happened there. There's also python3-pycurl but that's 7.43.0 (also no other versions.) So, any ideas?

edit: Here's my dpkg.log from today https://pastebin.com/raw/NF9NYmXu
I cant see it being something other than something I installed because, otherwise, I haven't done anything today besides gently caress around in irc and check my email.


Edit: Remembered Mint comes with Timeshift now, went back a couple days and all is well, for now. Still, who knows what happened and if it will happen again :/

BrainDance fucked around with this message at 10:59 on Dec 24, 2017

Volguus
Mar 3, 2009
Well, this is one kind of slashdot post that I haven't seen in at least 15 years if not more: Could 2018 Be The Year of the Linux Desktop? .

The Phlegmatist
Nov 24, 2003
^^ finally, our time is now, grandma will learn to use i3 and compile from source

lllllllllllllllllll posted:

Is there an easy way to remove the login screen from the latest ubuntu distro when you wake from sleep (i.e. close and open the laptop)? There really is nobody else here and I think I can take the security risk. That would be great.

Install dconf-editor

navigate to org -> gnome -> desktop -> lockdown and set disable-lock-screen to on

should work, maybe

lllllllllllllllllll
Feb 28, 2010

Now the scene's lighting is perfect!

The Phlegmatist posted:

Install dconf-editor
navigate to org -> gnome -> desktop -> lockdown and set disable-lock-screen to on
should work, maybe
That worked flawlessly. Thank you, The Phlegmatist!

SurgicalOntologist
Jun 17, 2004

Chrome is crashing without warning (just closing all tabs) on my Fedora 27 desktop. Disabling all extensions didn't help, I also tried Chromium and Firefox but it still happens there. At first I thought it was tied to doing something multimedia-related but now I think it will just happen eventually regardless.

Gnome in general is not acting very stable either, it is ocassionaly kicking me back out to the login screen. Not sure if it's related to the browser crashes.

Here's the dmesg after a chrome crash:
code:
[  860.389878] chrome[2074]: segfault at 0 ip 00007f82ff4d85d1 sp 00007ffdcabe5630 error 4 in libfontconfig.so.1.10.1[7f82ff4cd000+3e000]
I'm using a custom ~/.fonts.conf that I got off a github gist some years ago, in case that could be related.

This started happening after not using this desktop for about 4 months (vacation and moving). After getting it set up again, I ran dnf update, then do-release-upgrade up to 27. It's running Wayland and I have a Radeon 7750 with the default open-source graphics (from a quick google that seems to be the only option these days).

Any ideas for troubleshooting? If gnome crashes again I'll post the dmesg for that to see if it's the same segfault. Also, not sure it's related, but got these messages at startup:
code:
[   26.596119] vino-server[1802]: segfault at 40 ip 00007fdf12b1656d sp 00007ffff58e6f80 error 4 in libX11.so.6.3.0[7fdf12ad3000+138000]
[   29.725101] vmtoolsd[2094]: segfault at f0 ip 00007f48f5bd3052 sp 00007fff03e74278 error 4 in libgdk-3.so.0.2200.26[7f48f5b8c000+ed000]
[   29.751914] vino-server[2159]: segfault at 40 ip 00007f823682756d sp 00007ffc3d748050 error 4 in libX11.so.6.3.0[7f82367e4000+138000]
[   30.512479] vino-server[2406]: segfault at 40 ip 00007fd78112256d sp 00007ffe827177b0 error 4 in libX11.so.6.3.0[7fd7810df000+138000]
[   31.126611] vino-server[2481]: segfault at 40 ip 00007fcf6eb0a56d sp 00007ffd88cce4e0 error 4 in libX11.so.6.3.0[7fcf6eac7000+138000]
[   31.872797] vino-server[2591]: segfault at 40 ip 00007f888067556d sp 00007fff5b085a70 error 4 in libX11.so.6.3.0[7f8880632000+138000]
Edit: just got the gnome crash. Same libfontconfig error.
code:
[Tue Jan  2 17:58:13 2018] gnome-shell[1470]: segfault at 0 ip 00007f9c64df15d1 sp 00007ffe17e8df80 error 4 in libfontconfig.so.1.10.1[7f9c64de6000+3e000]

SurgicalOntologist fucked around with this message at 00:01 on Jan 3, 2018

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
fontconfig is a piece of trash. remove your .fonts.conf.

SurgicalOntologist
Jun 17, 2004

I guess I should have tried that. I really like the way my conf looks but of course it's not worse the instability. Thanks. I'll post back if that doesn't solve it.

SurgicalOntologist
Jun 17, 2004

Still getting this one:
code:
[74867.565749] vino-server[28061]: segfault at 40 ip 00007f31372ed56d sp 00007ffc443a2ef0 error 4 in libX11.so.6.3.0[7f31372aa000+138000]
Can I get rid of vino-server?

Edit: actually maybe that was just when logging back in to gnome-shell after the crash (which occurred waking up from sleep), and this is the culprit:
code:
[74850.467963] traps: gnome-shell[1471] general protection ip:7f0087cc75cd sp:7ffde5999550 error:0 in libgobject-2.0.so.0.5400.2[7f0087c92000+51000]

Docjowles
Apr 9, 2009

Welp we upgraded a couple test CentOS 6 XenServer VM's to the new kernel with the mitigations for Meltdown/Spectre today. They refuse to boot, had to edit grub.conf to revert to the previous version. Seems like there may be a severe bug with the new kernel on XenServer? gently caress my life.

https://discussions.citrix.com/topic/392239-new-centos-6-kernel-fails-to-boot-on-xenserver-65/#comment-1995417

thisisfine.gif

mike12345
Jul 14, 2008

"Whether the Earth was created in 7 days, or 7 actual eras, I'm not sure we'll ever be able to answer that. It's one of the great mysteries."





SurgicalOntologist posted:

I guess I should have tried that. I really like the way my conf looks but of course it's not worse the instability. Thanks. I'll post back if that doesn't solve it.

It's interesting you ran into problems with fonts, because the last time I tried to make them look better on Fedora, the whole system crashed hard. I was configuring something starting with infini, forgot the full name.

DrSunshine
Mar 23, 2009

Did I just say that out loud~~?!!!
Hi. I've restored an ancient ASUS Pundit P1-AH1 media center PC as a backup fileserver running Ubuntu Server 16.04, and I've been having problems getting USB input devices to work after it boots up. While I'm able to use the keyboard in the BIOS, after it boots into the operating system proper, the keyboard stops functioning. I've currently configured it to run headless with ssh. When I use the lsusb command, nothing shows up. It just accepts the command and then goes back to the command line. I am completely stumped!

This is the output of lspci.

code:
00:00.0 RAM memory: NVIDIA Corporation C51 Host Bridge (rev a2)
00:00.1 RAM memory: NVIDIA Corporation C51 Memory Controller 0 (rev a2)
00:00.2 RAM memory: NVIDIA Corporation C51 Memory Controller 1 (rev a2)
00:00.3 RAM memory: NVIDIA Corporation C51 Memory Controller 5 (rev a2)
00:00.4 RAM memory: NVIDIA Corporation C51 Memory Controller 4 (rev a2)
00:00.5 RAM memory: NVIDIA Corporation C51 Host Bridge (rev a2)
00:00.6 RAM memory: NVIDIA Corporation C51 Memory Controller 3 (rev a2)
00:00.7 RAM memory: NVIDIA Corporation C51 Memory Controller 2 (rev a2)
00:02.0 PCI bridge: NVIDIA Corporation C51 PCI Express Bridge (rev a1)
00:03.0 PCI bridge: NVIDIA Corporation C51 PCI Express Bridge (rev a1)
00:04.0 PCI bridge: NVIDIA Corporation C51 PCI Express Bridge (rev a1)
00:05.0 VGA compatible controller: NVIDIA Corporation C51PV [GeForce 6150] (rev a2)
00:09.0 RAM memory: NVIDIA Corporation MCP51 Host Bridge (rev a2)
00:0a.0 ISA bridge: NVIDIA Corporation MCP51 LPC Bridge (rev a2)
00:0a.1 SMBus: NVIDIA Corporation MCP51 SMBus (rev a2)
00:0a.2 RAM memory: NVIDIA Corporation MCP51 Memory Controller 0 (rev a2)
00:0b.0 USB controller: NVIDIA Corporation MCP51 USB Controller (rev a2)
00:0b.1 USB controller: NVIDIA Corporation MCP51 USB Controller (rev a2)
00:0d.0 IDE interface: NVIDIA Corporation MCP51 IDE (rev a1)
00:0e.0 IDE interface: NVIDIA Corporation MCP51 Serial ATA Controller (rev a1)
00:10.0 PCI bridge: NVIDIA Corporation MCP51 PCI Bridge (rev a2)
00:10.1 Audio device: NVIDIA Corporation MCP51 High Definition Audio (rev a2)
00:14.0 Bridge: NVIDIA Corporation MCP51 Ethernet Controller (rev a1)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
04:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev 80)
This is the output of dmesg | greb usb.

code:
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.4.0-104-generic root=/dev/mapper/My--Fileserver--vg-root ro acpi=force irqpoll iommu=soft usbcore.autosuspend=-1 acpi=off apm=off
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.0-104-generic root=/dev/mapper/My--Fileserver--vg-root ro acpi=force irqpoll iommu=soft usbcore.autosuspend=-1 acpi=off apm=off
[    0.198474] usbcore: registered new interface driver usbfs
[    0.198491] usbcore: registered new interface driver hub
[    0.198505] usbcore: registered new device driver usb
Thanks!

CaptainSarcastic
Jul 6, 2013



Have you tried turning off or turning on Legacy USB in the BIOS? Changed the ACPI setting? Changed the power state settings?

Mellifluenza
Jan 8, 2018
I'm at a new place doing Linux admin, which I can cope with okay. The other admin was telling me that their hosting is done on Oracle: lots of CentOS 6 environments etc. I haven't really much clue about Oracle, though. I get VMware/ESXI/vSphere hosting but how does Oracle host Linux boxes in datacenters? Are they just using their own brand of Linux? I don't wanna look like too much of an idiot when we're talking about configuring our VM's.

Docjowles
Apr 9, 2009

There is a distro called Oracle Linux, which is basically RHEL rebadged and sold by Oracle. It’s possible that is what he meant.

DrSunshine
Mar 23, 2009

Did I just say that out loud~~?!!!

CaptainSarcastic posted:

Have you tried turning off or turning on Legacy USB in the BIOS? Changed the ACPI setting? Changed the power state settings?

I've tried turning off Legacy USB in the BIOS and I've tried ACPI=off and ACPI=force in the grub settings.

CaptainSarcastic
Jul 6, 2013



DrSunshine posted:

I've tried turning off Legacy USB in the BIOS and I've tried ACPI=off and ACPI=force in the grub settings.

Did you try setting the ACPI suspend to S1 only in the BIOS? From looking at the patches available on the ASUS support site for that machine it seemed like there was a hint of an issue with power management of the USB ports.

DrSunshine
Mar 23, 2009

Did I just say that out loud~~?!!!

CaptainSarcastic posted:

Did you try setting the ACPI suspend to S1 only in the BIOS? From looking at the patches available on the ASUS support site for that machine it seemed like there was a hint of an issue with power management of the USB ports.

Hmm, no I haven't! I'll try doing that and report back, thanks!

jre
Sep 2, 2011

To the cloud ?



Mellifluenza posted:

I'm at a new place doing Linux admin, which I can cope with okay. The other admin was telling me that their hosting is done on Oracle: lots of CentOS 6 environments etc. I haven't really much clue about Oracle, though. I get VMware/ESXI/vSphere hosting but how does Oracle host Linux boxes in datacenters? Are they just using their own brand of Linux? I don't wanna look like too much of an idiot when we're talking about configuring our VM's.

Suspect they means you use this
https://cloud.oracle.com/cloud-infrastructure

rather than

Docjowles posted:

There is a distro called Oracle Linux

DrSunshine
Mar 23, 2009

Did I just say that out loud~~?!!!

CaptainSarcastic posted:

Did you try setting the ACPI suspend to S1 only in the BIOS? From looking at the patches available on the ASUS support site for that machine it seemed like there was a hint of an issue with power management of the USB ports.

Okay, I tried this and it seems to have no effect as well.

EDIT: Derp. I went into BIOS and set everything to defaults again and somehow it works now?? Computers are weird and mysterious. Thanks anyway! :p

DrSunshine fucked around with this message at 07:24 on Jan 9, 2018

CaptainSarcastic
Jul 6, 2013



DrSunshine posted:

Okay, I tried this and it seems to have no effect as well.

EDIT: Derp. I went into BIOS and set everything to defaults again and somehow it works now?? Computers are weird and mysterious. Thanks anyway! :p

Glad it's working, even if by inscrutable means.

Mellifluenza
Jan 8, 2018

jre posted:

Suspect they means you use this
https://cloud.oracle.com/cloud-infrastructure

rather than

Yep. We're running multiple databases on Oracle.

BigRed0427
Mar 23, 2007

There's no one I'd rather be than me.

Hi there. So I'm currently trying to set up a TOR router using a Raspberry Pi. I think I installed TOR correctly but when I check the status of it it shows "active (exited)" in green instead of "active (running)" Did I gently caress something up along the way? What do i need to fix?

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

BigRed0427 posted:

Hi there. So I'm currently trying to set up a TOR router using a Raspberry Pi. I think I installed TOR correctly but when I check the status of it it shows "active (exited)" in green instead of "active (running)" Did I gently caress something up along the way? What do i need to fix?

Usually if there's a service I'm trying to run and it's not starting up correctly, I'll try to run the command that starts it in my shell so I can see the output, or check a log file for some indication of why it's bombing out

insularis
Sep 21, 2002

Donated $20. Get well, Lowtax.
Fun Shoe
Anyone have any ideas on a (all things being relative) "slow" CIFS mount in Ubuntu 17.04/17.10?

Situation: Several VMs accessing a separate FreeNAS array via a point-to-point network link of 10GbE. Works great, no problems, a Windows VM can read at 500-600MB/sec and write at 900MB/sec (weird, but whatever). Close-ish to line speed, at least for write. So that kinda eliminates the ESXi portion as far as I'm concerned. The Ubuntu VMs are using an fstab cifs mount with vers=3.02 specified and verified on the FreeNAS side with smbstatus ... that's the protocol level they're connecting at. iperf tests to one of those VMs shows 10GbE speeds. But an actual large file copy never goes above 220MB/sec. I've got these additional parameters set in smb.conf:

socket options = TCP_NODELAY SO_RCVBUF=524288 SO_SNDBUF=524288 IPTOS_LOWDELAY

But that didn't seem to change anything. Anything else I could look into? I'm just baffled as to why it's 2x faster than gigabit, but no better, and CPU/memory/disk isn't the issue, either. All the Ubuntu VMs behave this way in my setup.

Keito
Jul 21, 2005

WHAT DO I CHOOSE ?

insularis posted:

Anyone have any ideas on a (all things being relative) "slow" CIFS mount in Ubuntu 17.04/17.10?

Isn't SMB known for being slow? Why aren't you using NFS between *nix systems?

insularis
Sep 21, 2002

Donated $20. Get well, Lowtax.
Fun Shoe

Keito posted:

Isn't SMB known for being slow? Why aren't you using NFS between *nix systems?

I also access those shares from Windows boxes, and mixing NFS/SMB operations is bad. SMB 3.x isn't bad at all, usually. Besides, the Windows VM is close enough to line speed, and it's using SMB for access.

Edit: For clarity, the FreeNAS share is an SMB share the Ubuntu VMs connect to and add/modify/delete data. Most of the clients are Windows, and also need ACL controlled access to the share. NFS isn't an option for this share.

insularis fucked around with this message at 15:38 on Jan 12, 2018

Wicaeed
Feb 8, 2005
For a fresh RHEL environment, where Satellite may not be an option, is there anything else to consider to help manage the deployment, auditing and configuration of patches?

Can Spacewalk do this?

xzzy
Mar 5, 2009

A yum repo and a yum cron job? That's what we do. But we aren't RHEL subscribers, we use the poor man free version.

Docjowles
Apr 9, 2009

Spacewalk is the upstream project that Red Hat then packages and sells as Satellite. So yes :)

Viktor
Nov 12, 2005

Wicaeed posted:

For a fresh RHEL environment, where Satellite may not be an option, is there anything else to consider to help manage the deployment, auditing and configuration of patches?

Can Spacewalk do this?

Katello is upstream satellite 6 take a look at it.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

This isn't really a Linux question...more of a recommend me a linux software question, but maybe someone knows something that will get me started in the right direction:

I've got a couple thousand RSS feeds that I'd like to start archiving the content of into some sort of system with good searching capabilities.

I'd really like to write it myself but I don't have the time. If there's some sort of solution that I could hack on or write plugins of some sort that'd be neat. I'd be surprised if there was something made specifically for RSS feeds, so I'm guessing I'll have to write something to fetch the feeds and insert them into whatever system.

Can anyone recommend something they've used or at least something they've heard of?

Super-NintendoUser
Jan 16, 2004

COWABUNGERDER COMPADRES
Soiled Meat

Thermopyle posted:

This isn't really a Linux question...more of a recommend me a linux software question, but maybe someone knows something that will get me started in the right direction:

I've got a couple thousand RSS feeds that I'd like to start archiving the content of into some sort of system with good searching capabilities.

I'd really like to write it myself but I don't have the time. If there's some sort of solution that I could hack on or write plugins of some sort that'd be neat. I'd be surprised if there was something made specifically for RSS feeds, so I'm guessing I'll have to write something to fetch the feeds and insert them into whatever system.

Can anyone recommend something they've used or at least something they've heard of?

You could probably set up and elastic search cluster, there's probably and rss application that can grab the content and send it to the elastic search http Port.

Adbot
ADBOT LOVES YOU

Mr Shiny Pants
Nov 12, 2012

Thermopyle posted:

This isn't really a Linux question...more of a recommend me a linux software question, but maybe someone knows something that will get me started in the right direction:

I've got a couple thousand RSS feeds that I'd like to start archiving the content of into some sort of system with good searching capabilities.

I'd really like to write it myself but I don't have the time. If there's some sort of solution that I could hack on or write plugins of some sort that'd be neat. I'd be surprised if there was something made specifically for RSS feeds, so I'm guessing I'll have to write something to fetch the feeds and insert them into whatever system.

Can anyone recommend something they've used or at least something they've heard of?

Dump them to the filesystem and grep?

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply