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
theperminator
Sep 16, 2009

by Smythe
Fun Shoe

Morter posted:

Alright, so I got an HP laptop that came with Windows 10 preinstalled last Sunday, and after doing Win10's initial setup (name and what not) I immediately installed Ubuntu 16.04 alongside it and have been running that. Up until last night, whenever I restarted, from POST it'd go into grub to let me select either OS.

But now it's only going to Windows 10 by default and I have no clue why. I've tried disabling fast boot in Win10, I've tried messing with the OS boot manager in the BIOS--it's first but whenever I go into the submenu, Windows is above ubuntu, and I can't seem to switch the order (if that'd even help?) and have disabled Secureboot, I've tried boot-repair but not only did that not help, but instead just added a bunch of entries to grub, which I was only able to access after going to Win10's advance restart.

It took me a while to figure out I could just press F9 at the POST (which I had to figure out how to widen the time of the delay so I could press any buttons), so I don't have to go through win10 anymore, but I'd still like to figure out the problem area, if possible.

The best option to avoid issues whenever windows does an update might be to chainload GRUB from the windows bootloader rather than the other way around. I know it's possible but I've never done it myself.
http://askubuntu.com/questions/62440/is-it-possible-to-boot-ubuntu-using-the-windows-bootloader

Adbot
ADBOT LOVES YOU

apropos man
Sep 5, 2016

You get a hundred and forty one thousand years and you're out in eight!

A good poster posted:

It booted and didn't redline my CPU or use up all my memory sitting on the desktop, but it didn't see the laptop's sound hardware, and I couldn't see any option to install the OS to the hard drive. The functionality was probably in there somewhere and I was too awful a Linux user to find it, though.


I also ran it in a VM and there doesn't appear to be an "install to drive" option but there is a persistence of data option, so I might try that some time.

Getting the sound to work should be a piece of cake if you're using mainstream hardware, since it's Debian based. Try searching for answers pertaining to a Debian system.

I have a question about my 8 year-old Clarkdale/Nehalem board:

I suspect that it's doing some kind of thermal throttling or I may need to remove the heatsink and reapply thermal paste, since it's done lot of sitting around in a cupboard. I'm not planning to use it for anything serious but I'd like to run a light distro on it and then a system monitor program that will keep a log of any hangs or bottlenecks within the hardware. I'm looking for something I can leave running for a couple of hours (maybe even idling) and come back to it and get an idea if there has been anything stopping it from running smoothly. Something like grafana, but I've tried to set that up before and failed to get it running acceptably. Maybe I'll just learn how to set up grafana properly this time..

telcoM
Mar 21, 2009
Fallen Rib

everythingWasBees posted:

The weird thing is that bit on the disk hasn't existed for a while. Like, I wiped that entire disk!
I ended up adding the stuff to the efibootmgr, and that didn't end up helping at all either. Now I guess I'll just try removing the new hard drive and hope it fixes itself, if not I guess I'll risk bricking my laptop.

E: Welp, that didn't fix it.

There's no way to get like, GRUB up and running or something instead is there? like setting up a new boot partition with all that set up? Or anything? I'm kind of worried about deleting everything because given how it's been it feels like nothing is really gonna work all that well.

EE: Also, the lack of option to get into the BIOS is kind of worrying.

Oh, so the Boot001 entry is a remnant from an old wiped installation? Then, you could wipe it out the firmware boot entry with:
code:
# efibootmgr -B 0001
Assuming that your UEFI firmware works as expected, you should be able to get to Windows with:
code:
# efibootmgr -n 0000
and rebooting the system.
This is a one-time setting, so after rebooting a second time, you should get back into Arch.

Likewise, referring back to your efibootmgr -v output:

efibootmgr -v posted:

Boot0010 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011 Boot Menu FvFile(126a762d-5758-4fca-8531-201a7f57f850)
Boot0012 Diagnostic Splash Screen FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013 Lenovo Diagnostics FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)
Boot0014 Startup Interrupt Menu FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)

Boot0010 says "Setup", so it should be possible to tell UEFI "on next boot, I want to go to the BIOS/UEFI setup" by running:
code:
# efibootmgr -n 0010
Another way to tell an UEFI-based system "on next boot, I want to go to the setup" is to use the OsIndications UEFI variable.
It's a bit tricky to do by hand, so I've made a script for it:
code:
#!/bin/sh
EFIVARFS=/sys/firmware/efi/efivars
EFI_OSINDSUPP=OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c
EFI_OSIND=OsIndications-8be4df61-93ca-11d2-aa0d-00e098032b8c

if [ ! -d $EFIVARFS ]
then
    echo "ERROR: no efivarfs present"
    exit 72 # EX_OSFILE
fi

cd $EFIVARFS
if [ ! -f $EFI_OSINDSUPP ]
then
    echo "ERROR: no support for EFI OsIndications"
    exit 72 # EX_OSFILE
fi

FWSUP=$(od -An -t x4 $EFI_OSINDSUPP | cut -c 18)
case $FWSUP in
    [02468ace])
        echo "ERROR: no support for boot-to-fw-ui OsIndication" >&2
        exit 69 # EX_UNAVAILABLE
        ;;
esac

printf '\007\000\000\000\001\000\000\000\000\000\000\000' > $EFI_OSIND
if [ $? -eq 0 ]
then
    echo "Success. The system will boot to EFI setup at next reboot."
    exit 0 # EX_OK
else
    echo "FAIL: could not update the OsIndications EFI variable."
    exit 69 # EX_UNAVAILABLE
fi
You could certainly install an UEFI version of GRUB 2 and use it instead of the current systemd-bootx64.efi, if you prefer.
However, if you have Secure Boot enabled, GRUB might not be able to load any modules, since GRUB modules are not using the proper format for signed UEFI binary modules, so the UEFI firmware cannot validate their signatures and refuses to load them as a result. You would need a version of GRUB 2 that has all the required modules compiled-in. You would also need a "shim.efi" that is signed with a certificate that is on your UEFI firmware's allowed list (in practice, this means Microsoft's third-party UEFI boot certificate). RHEL 7 provides this type of GRUB configuration by default, when installed on a UEFI system.

However, it seems to me that you just need something that allows you to choose between Arch, Windows (and possibly the UEFI setup) at boot time.
The rEFInd boot manager is designed to do exactly that: http://www.rodsbooks.com/refind/
It provides a customizable graphical boot menu, which can also include utility options like UEFI setup access, UEFI memtest86 and/or a GPT partitioning tool.

I don't know if Arch has pre-packaged versions of GRUB 2 for UEFI and/or rEFInd available, so you'll have to do a bit of research. But hopefully these tips allow you to at least access your Windows and your UEFI setup, even if not in the most convenient way. I might be able to offer more suggestions after I know whether any of these things worked for you or not.

Double Punctuation
Dec 30, 2009

Ships were made for sinking;
Whiskey made for drinking;
If we were made of cellophane
We'd all get stinking drunk much faster!
You should just run "systemctl reboot --firmware-setup" as root to get to UEFI Setup. That does it in exactly the same way as Windows does. Don't mess with the boot manager to do that. Setup shouldn't even be a boot option and probably won't do what you think it should.

evol262
Nov 30, 2010
#!/usr/bin/perl

Double Punctuation posted:

You should just run "systemctl reboot --firmware-setup" as root to get to UEFI Setup. That does it in exactly the same way as Windows does. Don't mess with the boot manager to do that. Setup shouldn't even be a boot option and probably won't do what you think it should.

I'm not sure why you think that. It shouldn't be an option, but some Lenovo systems do really stupid things (like letting you brick the system by changing efivars so you can't get to setup). It's likely that "Setup" and "Diagnostic Splash Screen" and the other FvFile() options do exactly what you think they should.

everythingWasBees
Jan 9, 2013




So blindly selecting Windows not only started Windows, but now everything works. :psyduck:
Thank you all for all your help, regardless.

evol262
Nov 30, 2010
#!/usr/bin/perl
Lenovo firmware utility probably fixed it. It'd be interesting to see what efibootmgr say now

Dejan Bimble
Mar 24, 2008

we're all black friends
Plaster Town Cop
Did I gently caress around for 3 hours trying to install fedora 25 on my thinkpad without success because windows 10 won't allow more than 4 primary partitions at a time, is it that simple?

I decreased the size of an existing partition by 20 gb and no utility could turn it into a partition, trying to install directly to it did nothing, neither did disabling startup malware protection

ToxicFrog
Apr 26, 2008


Dejan Bimble posted:

Did I gently caress around for 3 hours trying to install fedora 25 on my thinkpad without success because windows 10 won't allow more than 4 primary partitions at a time, is it that simple?

I decreased the size of an existing partition by 20 gb and no utility could turn it into a partition, trying to install directly to it did nothing, neither did disabling startup malware protection

You said "primary" partition, so this is probably a DOS format partition table? That has a hard limit of four primary partitions, nothing to do with the OS.

You can either replace it with a GPT partition table (if your motherboard supports that), or replace one of the "primary" partitions with an "extended" partition, which lets you create more partitions inside it ("logical partitions").

Doing this without destroying any existing partitions is possible (by creating the new partition(s) with exactly the same size and position as the old), but back up your partition table first.

evol262
Nov 30, 2010
#!/usr/bin/perl
Switch to GPT and EFI, please.

Dejan Bimble
Mar 24, 2008

we're all black friends
Plaster Town Cop

ToxicFrog posted:

You said "primary" partition, so this is probably a DOS format partition table? That has a hard limit of four primary partitions, nothing to do with the OS.

You can either replace it with a GPT partition table (if your motherboard supports that), or replace one of the "primary" partitions with an "extended" partition, which lets you create more partitions inside it ("logical partitions").

Doing this without destroying any existing partitions is possible (by creating the new partition(s) with exactly the same size and position as the old), but back up your partition table first.
[/quot]e

[quote="evol262" post="467721722"]
Switch to GPT and EFI, please.
Thank you two

It's a 2014 thinkpad, so I'm reasonably sure it supports these modern things. It rejected all attempts to create an extended partition.
I read several forum posts that said a combination of what you've said.

So I'm going to have to pull out my old external hdd, back up everything, copy the partitions and start fresh according to the instructions here. http://www.disk-partition.com/windows-10/convert-mbr-gpt-windows-10-0528.html following these directions, and then I Should be able to create a partition to install fedora into?

I think it is using uefi, I'm not quite sure, I can get to the uefi screen and disable secure boot, but I'm not clear if that's persistent or only works until I shut it off

Edit: I used AOMEI Partition Assistant Convert to convert to GPT, fedora ignored my petition but I was albe to make a new one as part of installation and it feels like I'm using a real computer again. Thanks for your help

Dejan Bimble fucked around with this message at 07:27 on Dec 26, 2016

evol262
Nov 30, 2010
#!/usr/bin/perl
You have EFI instead of a legacy BIOS, but you can't have an EFI bootloader without GPT. Sorry, that probably wasn't clear from the other post.

Booting a system in EFI mode requires EFI as firmware, loading an EFI executable from an EFI system partition (generally fat, though macefi breaks this rule sometimes)

I just mentioned it because EFI booting is 99% less magical/confusing/error-ridden than legacy boot, and changing to EFI makes finding and solving problems much easier

ToxicFrog
Apr 26, 2008


Dejan Bimble posted:

Thank you two

It's a 2014 thinkpad, so I'm reasonably sure it supports these modern things. It rejected all attempts to create an extended partition.

Extended and primary partitions share the same four slots, so if you still had four primaries you definitely wouldn't be able to create an extended partition. You would have to delete one of the primary partitions and replace it with an extended one, then create logical partitions inside that.

quote:

So I'm going to have to pull out my old external hdd, back up everything, copy the partitions and start fresh according to the instructions here. http://www.disk-partition.com/windows-10/convert-mbr-gpt-windows-10-0528.html following these directions, and then I Should be able to create a partition to install fedora into?

It's possible, at least in principle, to convert from MBR to GPT "in place":
- resize/move partitions so the space at the start and end of the disk where the GPTs are stored is clear (1MB at each end of the disk should be more than enough)
- take note of the offsets, types, and sizes of all the partitions
- back up the partition table
- delete the MBR and create a new GPT
- re-create all the partitions from the notes you took earlier
- attempt to mount all the partitions, and if it doesn't work, restore from the backup partition table and try to figure out where you went wrong

That said, I've only ever done this on linux; I have no idea how the windows bootloader works, and it's entirely possible that this approach could change partition IDs or something in a way that makes windows unbootable. If you have the space for it, backing everything up properly is definitely the safer course, and even if you wanted to try an in-place conversion it would be a good idea to have a full backup.

evol262
Nov 30, 2010
#!/usr/bin/perl
The Windows bootloader scans for a magic number at the beginning of the partition, or used to. Rebuilding the table shouldn't break it, though converting to GPT does mean you need a dosboot partition to chainload

JHVH-1
Jun 28, 2002
I got this cool video ad while watching youtube and now I am going to switch to Suse

https://www.youtube.com/watch?v=50Qs4gVHB_E

Thermopyle
Jul 1, 2003

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

So, I've got a couple of ubuntu servers on the internet for just personal things like a vpn and whatever.

I'm fairly confident in my configuration, but what I'm wondering about is best practices for on-going maintenance with the minimal amount of work on my part. Right now, I just try to remember to SSH in every once in a while and check for updated packages and whatnot, but I'm sure that's not the best method.

So, what's the best practices for maintaining their security over time?

xzzy
Mar 5, 2009

iptables to lock down every port except the ones you really need, run a software update once a month or so. Should pretty much cover the bases.

Some kind of fail2ban for the ssh port is handy too, it isn't really "security" but it will clean up your logs from brute force attacks and will maybe punt script kiddies who don't have a bunch of ip's to attack from.

No wordpress is a good plan too. :angel:

Paul MaudDib
May 3, 2006

TEAM NVIDIA:
FORUM POLICE
Is there a way to prevent Ubuntu Server from building up a critical assload of linux-image-### packages that aren't even being booted onto, without having to log onto the server periodically and do an apt-get autoremove?

Forgall
Oct 16, 2012

by Azathoth

Paul MaudDib posted:

Is there a way to prevent Ubuntu Server from building up a critical assload of linux-image-### packages that aren't even being booted onto, without having to log onto the server periodically and do an apt-get autoremove?
unattended-upgrades can be configured to also do autoremove after upgrade.

apropos man
Sep 5, 2016

You get a hundred and forty one thousand years and you're out in eight!
If I'm uid=1000, gid=1000 and named "foo" on two machines is that all I need to be able to access files identically that were transferred using rsync/scp?

I'm getting a weird permissions issue and wondered if there's anything else I need to do, to be essentially the "same user" on both machines? One's Fedora 25 and the other's Ubuntu 16.04. I'm working on an ext4 filesystem on both.

As far as the filesystem is concerned I am the same user that created the files before transmission, right? There's no hidden unique identifier per user or anything?

jre
Sep 2, 2011

To the cloud ?



apropos man posted:

If I'm uid=1000, gid=1000 and named "foo" on two machines is that all I need to be able to access files identically that were transferred using rsync/scp?

I'm getting a weird permissions issue and wondered if there's anything else I need to do, to be essentially the "same user" on both machines? One's Fedora 25 and the other's Ubuntu 16.04. I'm working on an ext4 filesystem on both.

As far as the filesystem is concerned I am the same user that created the files before transmission, right? There's no hidden unique identifier per user or anything?

What's the error you get ?

apropos man
Sep 5, 2016

You get a hundred and forty one thousand years and you're out in eight!

jre posted:

What's the error you get ?

I think I'm getting to the solution. I'm backing up my ~/.mozilla directory with borgbackup in Fedora, then rsync it to my Ubuntu box. Borgbackup extracts it fine in Fedora but in Ubuntu it throws up a load of " [Errno 1] Operation not permitted: " errors for every file in the archive.

The files are still being extracted in Ubuntu (and the extracted files are good) but the errors were causing me to worry about integrity of my archive and if borgbackup was any good or not, since I've spent the last couple of days messing round with it.

I realised in the last half-hour that it's probably SElinux in Fedora, so I just spent a while reading about SElinux extended attributes.

Sure enough, my ~/.mozilla directory is tagged by selinux like this:

code:
drwxr-xr-x.  5 foo foo unconfined_u:object_r:mozilla_home_t:s0  4.0K Dec 11 15:35 ./
drwx------. 28 foo foo unconfined_u:object_r:user_home_dir_t:s0 4.0K Dec 30 08:37 ../
drwxr-xr-x.  3 foo foo unconfined_u:object_r:mozilla_home_t:s0  4.0K Dec 11 15:35 extensions/
drwx------.  3 foo foo unconfined_u:object_r:mozilla_home_t:s0  4.0K Dec 11 15:58 firefox/
drwxr-xr-x.  2 foo foo unconfined_u:object_r:mozilla_home_t:s0  4.0K Feb  4  2016 plugins/
So I just need to somehow strip SElinux contexts by making a contextless copy before archiving, or getting Borgbackup to ignore the contexts.

I reckon it'll be better to strip the contexts first and then if I ever need to restore them I can copy them over the top, rather than move them: since SElinux preserves contexts for copied files but not moved ones. I can also do a "sudo restorecon" operation to fill in any missing contexts this way.

Learned quite a bit about SElinux today.

EDIT: Tried the following to disable ACL and then remove SELinux security contexts to no avail:

code:
#!/bin/bash
for i in $( find . -type f ) ; do
  echo $i
  sudo setfacl -b $i
  sudo setfattr -h -x security.selinux $i
done
I tried for a while to only remove selinux attributes, then I realised that it might be ACL preventing me from changing SELinux attrs.

Then I read somewhere I can't disable ACL without rebooting. Aaargh. I'm not rebooting to disable ACL every time I want to backup. I'm just gonna do it the lazy way and put it into a tarball, rsync the tarball to Ubuntu and let Ubuntu archive it with Borgbackup.

Why can't SELinux let you do something when you know what it is you want and own the files you want to change? I suspect that disabling ACL has more grand consequences.

And is the version of ext4 in Ubuntu a different variant than the one in SELinux systems to allow for extended attributes, or are the filesystems the same but the kernels are different??

apropos man fucked around with this message at 11:22 on Dec 30, 2016

evol262
Nov 30, 2010
#!/usr/bin/perl
Same filesystem. Kernel won't matter here.

You're spending a lot of time digging into selinux, and I'm not sure it's the right tact. What actually fails? The rsync to Ubuntu? Extracting a tarball on Ubuntu?

The actual problem is probably that Ubuntu doesn't use selinux at all. Your backup utility should have an option to avoid setting contexts when you restore. Or run it in debug to see what command is getting Operation not permitted

Computer Serf
May 14, 2005
Buglord
Looking to run a local development environment for several servers.
Is it sane to do this ala VirtualBox and additional hardware NICs?

Open to any other recommendations!

Harik
Sep 9, 2001

From the hard streets of Moscow
First dog to touch the stars


Plaster Town Cop

evol262 posted:

Same filesystem. Kernel won't matter here.

You're spending a lot of time digging into selinux, and I'm not sure it's the right tact. What actually fails? The rsync to Ubuntu? Extracting a tarball on Ubuntu?

The actual problem is probably that Ubuntu doesn't use selinux at all. Your backup utility should have an option to avoid setting contexts when you restore. Or run it in debug to see what command is getting Operation not permitted

It's either that, or the ubuntu selinux tags are slightly different than the ones on fedora. You'll get the same effect if you try to rsync to FAT, for instance, as it will throw an error for the uid/gid/permissions portion. The data is fine.

To be absolutely sure, you could always recursively md5 on both systems and compare the output.

Computer Serf posted:

Looking to run a local development environment for several servers.
Is it sane to do this ala VirtualBox and additional hardware NICs?

Open to any other recommendations!

What are you trying to do with the additional NICs? One should be fine for most VM uses (but beware hairpin NAT issues that even multiple NICs won't really help with.)

Computer Serf
May 14, 2005
Buglord

Harik posted:

What are you trying to do with the additional NICs? One should be fine for most VM uses (but beware hairpin NAT issues that even multiple NICs won't really help with.)

Just trying to experiment and learn about multi-server environments for isolating a database server from various external servers sending requests.

Harik posted:

(but beware hairpin NAT issues that even multiple NICs won't really help with.)

That's what I was imagining the hardware NICs would address? Alternatively is there a some reliable utility for network simulation on a software level?

Computer Serf fucked around with this message at 05:01 on Dec 31, 2016

Harik
Sep 9, 2001

From the hard streets of Moscow
First dog to touch the stars


Plaster Town Cop

Computer Serf posted:

Just trying to experiment and learn about multi-server environments for isolating a database server from various external servers sending requests.


That's what I was imagining the hardware NICs would address? Alternatively is there a some reliable utility for network simulation on a software level?

As long as you're just simulating connecting/disconnecting the ethernet cable, you should be able to do that entirely in software, no NICs required. Just brctl delif <bridgename> <VMs host interface> to disconnect, and addif to put it back.

evol262
Nov 30, 2010
#!/usr/bin/perl

Computer Serf posted:

That's what I was imagining the hardware NICs would address? Alternatively is there a some reliable utility for network simulation on a software level?

Openvswitch

Harik posted:

It's either that, or the ubuntu selinux tags are slightly different than the ones on fedora. You'll get the same effect if you try to rsync to FAT, for instance, as it will throw an error for the uid/gid/permissions portion. The data is fine.
This doesn't actually matter. selinux contexts are xattrs. The filesystem will happily set invalid contexts (even on Fedora/RHEL) as long as you're root or otherwise have permissions. We really need to see what command it's trying to run.

You see this on FAT be because it doesn't support xattrs at all.

apropos man
Sep 5, 2016

You get a hundred and forty one thousand years and you're out in eight!

evol262 posted:

Same filesystem. Kernel won't matter here.

You're spending a lot of time digging into selinux, and I'm not sure it's the right tact. What actually fails? The rsync to Ubuntu? Extracting a tarball on Ubuntu?

The actual problem is probably that Ubuntu doesn't use selinux at all. Your backup utility should have an option to avoid setting contexts when you restore. Or run it in debug to see what command is getting Operation not permitted

I think the failures I was getting were related to the way that Borgbackup creates archives and stores files/extracts them. There doesn't seem to be an option in borg to ignore the extended attributes set by selinux (https://borgbackup.readthedocs.io/en/stable/usage.html#borg-create)

------------------------------------------------------------------------------

This was my scenario yesterday:

Laptop running Fedora runs a cron job to add a new archive to my borg-mozilla repository every hour.
(my borg-mozilla repository is just a complete, versioned archive of everything in ~/.mozilla)
Laptop then runs an rsync to update the borg-mozilla repo on my Ubuntu server every hour (10 minutes after running borg, which is overkill because borg takes a couple of seconds to refresh the repo).
Just to check everything is working, because all the files seem to be in the right places and modify times seem to be correct, I then go to extract an arbitrary version of my .mozilla directory from the repo in Ubuntu and if I use verbose options in borg, it throws up hundreds of " [Errno 1] Operation not permitted: " errors for every file in the archive. It seems to extract each file and then do it again, which it obviously can't because the file now exists at the target.

The files were OK in terms of content but I wasn't happy creating archives that produced some kind of error just in case this becomes a problem weeks down the line.


--------------------------------------------------------------------------

This is my scenario today:

Laptop running Fedora runs a cron job every hour which tarballs my ~/.mozilla directory (with lz compression turned on), then rsyncs tarball to my Ubuntu server.
Ubuntu server runs a cron job which extracts tarball into a directory and then runs borgbackup to add next version of ~/.mozilla to my repo borg-mozilla.
When I check that everything is working the errors are gone and borgbackup can extract the contents of the repo perfectly.

------------------------------------------------------------------------------

I believe that using tar (without specifying to keep extended attributes, for that is possible with tar) is removing the SELinux attributes from my files so that borgbackup doesn't throw errors during an extraction command. The extraction command works, but I much prefer having it work without error messages. If anything, it allows easier diagnosis in the event of a real error, since I wouldn't have to dig through hundreds of 'expected' error messages.

Tad Naff
Jul 8, 2004

I told you you'd be sorry buying an emoticon, but no, you were hung over. Well look at you now. It's not catching on at all!
:backtowork:
I'm formulating a plan to consolidate a few functions I have running on geriatric hardware:

  • General file storage (mostly camera files that will never get organized, some videos, and archived system images that will never be looked at), also the main box I SSH to from away. This was a homebuilt machine from 2006. It mainly just shares a big drive over NFS to the local network and has the cable modem plugged into it.
  • A motion capture webcam that spies on my dog when I'm not at home (an Eee 1005 I think)
  • A machine that tries to run Ubuntu Studio because I like to plug various instruments into a computer and then get intimidated by Ardour (An old Acer laptop, 2008 vintage I think, but until recently this role was played by a very old Mac Mini)

Basically I want to put all this together into one box that I can screw to the wall, I'm thinking something like this thing from a company I've never heard of. A couple of questions:

  • Being new to NUC-style stuff, are there any gotchas? I'd be running Ubuntu most likely
  • Any drawbacks to running a realtime kernel (as JACK wants) on an always-on machine?
  • What kind of price range would be reasonable, and/or recommendations for small industrial-type boxes suitable for this sort of thing. I was attracted to this one in particular for the i7 + lots of USB ports + dual video.

Buttcoin purse
Apr 24, 2014

anthonypants posted:

Is there any reason I shouldn't be using Continuous Release packages for CentOS 7?

I don't really know, but since nobody answered (as far as I noticed):

I'm guessing that since they're just rebuilding Red Hat packages, there shouldn't be too many issues, and any issues that do exist are probably glaring ones, like things not installing due to broken packages. That's just a guess, though.

I recently got tired of waiting for the Firefox security fix which was blocked behind them releasing CentOS 7.3, so I installed Firefox or maybe everything (I can't remember exactly) from CR and didn't have any problems.

I've haven't actually enabled the CR repository permanently but I'd consider it, even though I really don't like things to be broken on my machines (which is why I use CentOS in the first place), because I have so few problems with CentOS generally.

Dejan Bimble
Mar 24, 2008

we're all black friends
Plaster Town Cop

ToxicFrog posted:

Extended and primary partitions share the same four slots, so if you still had four primaries you definitely wouldn't be able to create an extended partition. You would have to delete one of the primary partitions and replace it with an extended one, then create logical partitions inside that.


It's possible, at least in principle, to convert from MBR to GPT "in place":
- resize/move partitions so the space at the start and end of the disk where the GPTs are stored is clear (1MB at each end of the disk should be more than enough)
- take note of the offsets, types, and sizes of all the partitions
- back up the partition table
- delete the MBR and create a new GPT
- re-create all the partitions from the notes you took earlier
- attempt to mount all the partitions, and if it doesn't work, restore from the backup partition table and try to figure out where you went wrong

That said, I've only ever done this on linux; I have no idea how the windows bootloader works, and it's entirely possible that this approach could change partition IDs or something in a way that makes windows unbootable. If you have the space for it, backing everything up properly is definitely the safer course, and even if you wanted to try an in-place conversion it would be a good idea to have a full backup.

Yeah, that's what happened, it made windows unbootable. To add insult , I get the error: The resize command has been removed in parted 3.0, so I can't change the size of the partition I installed fedora into. Fedora itself is working fine. I think I'm going to have to start over, see if I format the drive, then install fedora, make two partitions for windows, try and install and see if that works. Although I've read here and there that windows 10 will refuse to boot if it's not the first partition. Oh well, I'm learning various arcane things when I should be having fun on my school break.

Thanks for the help

If I could turn back time, I would do it your way, first make windows install media and a bootball flash drive, put that aside, set up the linux partitions, then install windows and see if it's as picky about being first in line as they say. In the future I'll just use a second drive. It's a shame, I really liked fedora, windows 10 is really really lovely but the tablet functions with wolfram alpha and various "I'm pretending I'm a tablet" stuff make a few things for work easier, and I didn't want to lose them for good.

I guess I could still just put fedora on a big usb stick and use that as my day to day os. I sort of dove in head first after a friend told me it was really easy and doing it all would be no problem.

Dejan Bimble fucked around with this message at 08:26 on Jan 2, 2017

RFC2324
Jun 7, 2012

http 418

Learning various arcane things isn't fun?

:confused:

Dejan Bimble
Mar 24, 2008

we're all black friends
Plaster Town Cop

RFC2324 posted:

Learning various arcane things isn't fun?

:confused:

I feel wiser and greatly resent myself for it!

Super Slash
Feb 20, 2006

You rang ?
I feel like I'm missing something obvious here, I've got an rsync script to constantly backup recording files from our hosted PABX but doesn't appear to actually copy the files.

Now I don't do this often but it should be simple enough; run rsync and ignore files which are already at the destination as to only copy new files, connect via SSH using a public key, copy files from source dir to destination dir, and create a log file.

code:
rsync -avh --ignore-existing --log-file=/srv/storage/logs/backup.log -e "ssh -i /root/.ssh/private_openssh" root@pabx.company.local:/var/spool/asterisk/monitor/ /storage/monitor
The source is an Asterisk-like PABX and the destination is a share on a Debian VM running Turnkey Linux File Server (basically Samba), running the script I can see it fetching all the new files only, but when I open the Samba share in windows the new files aren't there. There's not much to check as there's something like 40,000+ .wav files all named by date/time, so if I run the script today and don't see any of today's recordings I know something's up. I also set the folder/file permissions for the destination to 0755 which should open it up to everything.

apropos man
Sep 5, 2016

You get a hundred and forty one thousand years and you're out in eight!
Have you checked that authentication is OK during the ssh session being opened. It's a common point of failure for automated rsync between two different machines.

I had a similar problem with a cron job running an rsync script: the script ran fine manually but when cron called it there was authentication problems due to it being run in a different manner (non interactive terminal, environment variables not set).

Not saying this is definitely your problem but worth a look.

Super Slash
Feb 20, 2006

You rang ?
Although it is listed as a Cron job this is happening when run manually, here's a short excerpt from the log;

code:
2017/01/04 10:47:32 [61286] receiving file list
2017/01/04 10:47:32 [61289] .d..t...... monitor/
2017/01/04 10:47:35 [61289] >f+++++++++ monitor/2017.01.04.09.33.46-1483522426-2028-01539552206.wav
2017/01/04 10:47:37 [61289] >f+++++++++ monitor/2017.01.04.09.41.04-1483522864-07392081655-111.wav
2017/01/04 10:47:38 [61289] >f+++++++++ monitor/2017.01.04.09.46.39-1483523199-2006-01792472667.wav
2017/01/04 10:47:39 [61289] >f+++++++++ monitor/2017.01.04.09.48.28-1483523308-2037-07707508543.wav
--
2017/01/04 12:13:49 [62754] sent 4.85K bytes  received 232.23M bytes  5.22M bytes/sec
2017/01/04 12:13:49 [62754] total size is 17.74G  speedup is 76.40
Whereas the last file I have on the share is dated yesterday morning, I'm now wondering if there is something on the source that could be getting in the way.

telcoM
Mar 21, 2009
Fallen Rib

Super Slash posted:

I feel like I'm missing something obvious here, I've got an rsync script to constantly backup recording files from our hosted PABX but doesn't appear to actually copy the files.

code:
rsync -avh [...] [email]root@pabx.company.loca[/email]l:/var/spool/asterisk/monitor/ /storage/monitor

Your rsync looks fine... but just in case, please see if the new files might actually have ended up at /storage/monitor/monitor/ instead of what you expected?

Your cron job output indicates that the source filenames had the path component "monitor/" prefixed to them. And if the target specification is /storage/monitor, then the likely end result would be /storage/monitor/monitor/<filename>.

apropos man
Sep 5, 2016

You get a hundred and forty one thousand years and you're out in eight!
Looks like there's some kind of transfer of 232Mb happened. So it's definitely transferring something. It's far too much data for sending and receiving checksums, obviously.

Maybe some kind of permissions error preventing all of your stuff being synced.

Edit: post above mine looks like a good shout. Always be conscious of where your trailing slashes are when using rsync.

apropos man fucked around with this message at 15:32 on Jan 4, 2017

Adbot
ADBOT LOVES YOU

xzzy
Mar 5, 2009

Yes, rsync is super sensitive about the trailing slash and is completely silent about what it's doing.

Which I've always felt was a lovely feature, when we're migrating disks someone always fucks it up at least once, but hey, that's unix! :buddy:

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