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
Count Thrashula
Jun 1, 2003

Death is nothing compared to vindication.
Buglord

evol262 posted:

Is NetworkManager running?

I figured it out, apparently both NetworkManager and dhcpcd were running as services, so they were conflicting. Man, Arch is pretty slick, I'm lovin' it.

Adbot
ADBOT LOVES YOU

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

QPZIL posted:

I figured it out, apparently both NetworkManager and dhcpcd were running as services, so they were conflicting. Man, Arch is pretty slick, I'm lovin' it.

I'll never understand this Stockholm Syndrome.

"I just installed this distro and it's immediately so badly configured that networking doesn't work at all. Slick. I'm lovin' it."

:archlinux:

RFC2324
Jun 7, 2012

http 418

evol262 posted:

I'll never understand this Stockholm Syndrome.

"I just installed this distro and it's immediately so badly configured that networking doesn't work at all. Slick. I'm lovin' it."

:archlinux:

At least with Gentoo its not a default config issue, its a 'You are dumb and compiled your system like a retard. Try again.'

spankmeister
Jun 15, 2008






With Gentoo it's "You are dumb and installed the wrong distro like a retard. Try again."

RFC2324
Jun 7, 2012

http 418

spankmeister posted:

With Gentoo it's "You are dumb and installed the wrong distro like a retard. Try again."

That was actually my reaction. I got halfway through and said 'gently caress this, too much effort'.

Now I use Kubuntu like a retard :downs:

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

evol262 posted:

I'll never understand this Stockholm Syndrome.

"I just installed this distro and it's immediately so badly configured that networking doesn't work at all. Slick. I'm lovin' it."

:archlinux:

obligatory link to funroll loops

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

Suspicious Dish posted:

obligatory link to funroll loops

I was an active Gentoo user in 2002. :ssh:

Xik
Mar 10, 2011

Dinosaur Gum
Arch is less "badly configured" and more "not configured at all". This of course results in a pretty terrible user experience if you want to do anything other than just log in to a text console.

I don't really ever recommend Arch to folks, even though I use it. If you plan to just install one of the standard full blown desktop environments, you're better off installing a distro that has that environment as it's default. That way, everything plays nice and it's configured correctly right from the start.

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

Xik posted:

Arch is less "badly configured" and more "not configured at all". This of course results in a pretty terrible user experience if you want to do anything other than just log in to a text console.

I guess we'll have to disagree. Slack has this problem as well, but even Gentoo fixed NetworkManager+dhclient/dhcpcd conflicts years ago.

Count Thrashula
Jun 1, 2003

Death is nothing compared to vindication.
Buglord
Well to be fair it was my own fault. When I installed the base system, I enabled dhcpcd as a service, then after I installed Cinnamon, I enabled NetworkManager as a service. Totally my own doing.

But hey, I figured out my mistake and now I'm happy with a great working system. I wouldn't recommend Arch to anyone that doesn't know Linux well, but it's a happy medium between the customization of compiling your own distro and having everything handed to you a la Ubuntu.

Lysidas
Jul 26, 2002

John Diefenbaker is a madman who thinks he's John Diefenbaker.
Pillbug

RFC2324 posted:

That was actually my reaction. I got halfway through and said 'gently caress this, too much effort'.

Now I use Kubuntu like a retard :downs:

High five, Kubuntu buddy :hfive:

KDE 4.11 (Kubuntu 13.10) and 4.12 (14.04, still in development) are really good.

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

QPZIL posted:

having everything handed to you a la Ubuntu.

This is intentional. I can fix problems with my distro, but I don't want to. I want it to "hand things to me" and configure things to make it easier for me to do the work that actually matters.

Count Thrashula
Jun 1, 2003

Death is nothing compared to vindication.
Buglord

evol262 posted:

This is intentional. I can fix problems with my distro, but I don't want to. I want it to "hand things to me" and configure things to make it easier for me to do the work that actually matters.

Sure, there's nothing wrong with that at all. I'm not knocking it by any means. Different strokes for different folks.

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

I just tossed Ubuntu on an old laptop, but I'd like something a bit lighter. How's lubuntu?

waffle iron
Jan 16, 2004
Fedora XFCE 4 lyfe.


But seriously it does everything I need aka not getting in the way of Chrome.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

evol262 posted:

I was an active Gentoo user in 2002. :ssh:
So was I, but only because waiting hours for poo poo to compile was still less trouble than trying to get MP3s working in Debian or whatever at the time.

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

waffle iron posted:

Fedora XFCE 4 lyfe.


But seriously it does everything I need aka not getting in the way of Chrome.

Chrome and xchat are the bulk of what I'll be doing, some sort of office software would be good too I guess

RFC2324
Jun 7, 2012

http 418

Lysidas posted:

High five, Kubuntu buddy :hfive:

KDE 4.11 (Kubuntu 13.10) and 4.12 (14.04, still in development) are really good.

I still ruin my pants slightly using the desktop cube with a touch screen every time. I'm just glad this isn't my work setup.

Ashex
Jun 25, 2007

These pipes are cleeeean!!!

Captain Foo posted:

I just tossed Ubuntu on an old laptop, but I'd like something a bit lighter. How's lubuntu?

Xubuntu/Lubuntu Fedora Spin Xfce/LXDE are all good options.

Clanpot Shake
Aug 10, 2006
shake shake!

I've got a Chef question and was told this might be a good place to ask it. Chef doesn't have great support for complex questions like this.

I've got a cookbook that installs our application. Part of the install is writing config files (XML) which are stored in the cookbook as erb templates. The problem is that our different environments will have different versions of the application installed, and the different versions have different configs (new fields, mostly), and the application breaks if it reads config fields that shouldn't be there for that version.

So it seems like in order to have a recipe that works for any version of the application I need a way to have multiple versions of the templates. Ideally, if I could pull the erb templates from SVN (where the application installer and non-templated configs come from), I wouldn't need to worry about it. Unfortunately, I can't find a way to have Chef use an external file as the template source during a run. Is there a way to do this? I'm on Windows, but that shouldn't matter for this task.

Riso
Oct 11, 2008

by merry exmarx
I don't know about the cookbooks, but why is the application not standardised?

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

Clanpot Shake posted:

I've got a Chef question and was told this might be a good place to ask it. Chef doesn't have great support for complex questions like this.

I've got a cookbook that installs our application. Part of the install is writing config files (XML) which are stored in the cookbook as erb templates. The problem is that our different environments will have different versions of the application installed, and the different versions have different configs (new fields, mostly), and the application breaks if it reads config fields that shouldn't be there for that version.

So it seems like in order to have a recipe that works for any version of the application I need a way to have multiple versions of the templates. Ideally, if I could pull the erb templates from SVN (where the application installer and non-templated configs come from), I wouldn't need to worry about it. Unfortunately, I can't find a way to have Chef use an external file as the template source during a run. Is there a way to do this? I'm on Windows, but that shouldn't matter for this task.

Why can't you check out the files you need from the repo into your template directory?

Clanpot Shake
Aug 10, 2006
shake shake!

Riso posted:

I don't know about the cookbooks, but why is the application not standardised?
It's under development. Our prod environment will have one version while our performance testing has another, and those versions have slightly different configs.

evol262 posted:

Why can't you check out the files you need from the repo into your template directory?
Well for one the file name would be the same for each release in SVN but would need to be different in the templates folder (say, with the application version number in it), but assuming I figured that out it would quickly clutter the templates directory. We might run 10 or 20 releases through QA before we get one that we want to push to performance testing or production.

The short answer is this doesn't work because what's in SVN changes fairly frequently and I don't want to clutter up chef with versions that aren't used past dev/QA. Pulling templates directly from SVN during a chef run solves this, I just need to find a way to do it.

I should clarify that I'm pulling from a Releases folder from our SVN repo. We have a build server that compiles the code and handles version numbering, then commits the build back into SVN. The folder I'm pulling from has the installer, configs, and supporting files with none of the source code.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
It sounds like you should just have 1 xml template file and use if/elseif statements in it that check attribute values. Just like the my.cnf.erb template from the mysql cookbook does. I am a chef noob though so I might be way off here.

Xik
Mar 10, 2011

Dinosaur Gum
I'm going to be replacing my motherboard with a different model. Are there going to be any issues with just plugging in the drive and crossing my fingers? I did a new Arch install not long ago after my SSD failed and I can't be assed doing it again.

fstab uses UUID's and both boards are legacy BIOS boards, so I can't imagine grub caring. What about network? The new board actually has the same on-board Ethernet controller, but I'm sure there is other poo poo it cares about. CPU and GPU will remain the same, USB and SATA controllers will be different.

On another note, hopefully the Intel USB 3.0 controller in the new board will actually be supported this time, it will be a novelty to actually use the USB 3 ports on my machine. The piece of poo poo Etron controller I have on this one makes Linux give me the finger and Windows BSOD when the drivers are installed.

SamDabbers
May 26, 2003



Xik posted:

I'm going to be replacing my motherboard with a different model. Are there going to be any issues with just plugging in the drive and crossing my fingers? I did a new Arch install not long ago after my SSD failed and I can't be assed doing it again.

fstab uses UUID's and both boards are legacy BIOS boards, so I can't imagine grub caring. What about network? The new board actually has the same on-board Ethernet controller, but I'm sure there is other poo poo it cares about. CPU and GPU will remain the same, USB and SATA controllers will be different.

On another note, hopefully the Intel USB 3.0 controller in the new board will actually be supported this time, it will be a novelty to actually use the USB 3 ports on my machine. The piece of poo poo Etron controller I have on this one makes Linux give me the finger and Windows BSOD when the drivers are installed.

Which method are you using to configure the network? IIRC NetworkManager identifies different interfaces by MAC address, so you may have to tweak those settings once booted. Other than that, you should be good to go. Plug it in and cross your fingers :)

On a semi-related note, how about a new thread title?
The Linux Thread: Installed Arch, can't be assed to do it again

Xik
Mar 10, 2011

Dinosaur Gum

SamDabbers posted:

Which method are you using to configure the network? IIRC NetworkManager identifies different interfaces by MAC address, so you may have to tweak those settings once booted. Other than that, you should be good to go. Plug it in and cross your fingers :)

I just let dhcpcd do all the network magic. Is that going to work for or against me in this situation?

SamDabbers posted:

On a semi-related note, how about a new thread title?
The Linux Thread: Installed Arch, can't be assed to do it again

I have a confession. After my SSD got RMA'd and I was sent a brand new drive, I had it just sitting in my draw for like a month because I honestly could not be bothered reinstalling Arch.

I think my partial backup solution is to blame for that. My home drive is backed up to a file server so when the SSD failed I booted up Windows from a HDD (which I use to game on every now and then), installed cygwin and restored my backup with rsync. I guess when I say I "use" Linux, what I really mean is that I use Firefox, Thunderbird and Emacs. :v:

I suppose this is a good time to ask about backup solutions. Do any of you do full drive backups on your personal devices? I considered it, but I couldn't really see the point. Apart from the above situation when I was to lazy to do a reinstall, I figured making a backup of personal data and config files is enough.

Also, despite having copies on three difference storage devices in different machines, I have no off-site backups. I know this is a disaster waiting to happen, but I haven't come up with a decent solution yet. I'm primarily concerned about having my ssh keys, private gpg keys and gpg encrypted password files all on someone else's machine (in the ~cloud~). If I use an encrypted service, I would need to keep a copy of those private keys safe at a third location so I could actually restore the backup. What backup solutions do ya'll use?

SamDabbers
May 26, 2003



Xik posted:

I just let dhcpcd do all the network magic. Is that going to work for or against me in this situation?

You may need to update the systemd service to use the new interface's device name if it isn't the same as your previous adapter.

Xik posted:

I have a confession. After my SSD got RMA'd and I was sent a brand new drive, I had it just sitting in my draw for like a month because I honestly could not be bothered reinstalling Arch.

I spent two whole 8-hour days tinkering with Arch on a new laptop before deciding I didn't want to dick with my OS all the time on a machine intended for getting work done, and installed Debian instead. Even fiddling with apt pinning and the testing/unstable repos it was still less painful to get things set up than with Arch. It turns out that having sensible defaults out of the box is useful. I will say though, that Arch's wiki is fantastic for troubleshooting and deciding when/how to deviate from those defaults.

Xik posted:

I think my partial backup solution is to blame for that. My home drive is backed up to a file server so when the SSD failed I booted up Windows from a HDD (which I use to game on every now and then), installed cygwin and restored my backup with rsync. I guess when I say I "use" Linux, what I really mean is that I use Firefox, Thunderbird and Emacs. :v:

I suppose this is a good time to ask about backup solutions. Do any of you do full drive backups on your personal devices? I considered it, but I couldn't really see the point. Apart from the above situation when I was to lazy to do a reinstall, I figured making a backup of personal data and config files is enough.

Also, despite having copies on three difference storage devices in different machines, I have no off-site backups. I know this is a disaster waiting to happen, but I haven't come up with a decent solution yet. I'm primarily concerned about having my ssh keys, private gpg keys and gpg encrypted password files all on someone else's machine (in the ~cloud~). If I use an encrypted service, I would need to keep a copy of those private keys safe at a third location so I could actually restore the backup. What backup solutions do ya'll use?

If you don't want to take full drive images on your Linux systems, one option is to maintain a Vagrant, chef-solo, or puppet script so you can easily bring up the same environment and just restore your /home partition. As for backing up data, I've found rdiff-backup to be useful. You could also try duplicity which will encrypt your backups with gpg before uploading them to wherever. As for backing up the keys, you could add a flash drive to your physical keychain or wallet and carry it with you.

SamDabbers fucked around with this message at 06:08 on Feb 24, 2014

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

Vagrant isn't really appropriate, chef and puppet are overly involved unless you know ruby or love declarative languages. Salt solo or ansible might work.

Keep /home backed up (or on NFS). Dump a list of packages you have installed. Pipe it into pacman or whatever to reinstall them when you reinstall. Use etckeeper or configure essential services with salt or whatever. That's all you really need for a simple home setup.

Xik
Mar 10, 2011

Dinosaur Gum

SamDabbers posted:

You may need to update the systemd service to use the new interface's device name if it isn't the same as your previous adapter.

If that's the only thing I'll have to worry about with the mobo replacement, I'll be pretty happy. Thanks Sam.

SamDabbers posted:

I spent two whole 8-hour days tinkering with Arch on a new laptop before deciding I didn't want to dick with my OS all the time on a machine intended for getting work done, and installed Debian instead. Even fiddling with apt pinning and the testing/unstable repos it was still less painful to get things set up than with Arch. It turns out that having sensible defaults out of the box is useful. I will say though, that Arch's wiki is fantastic for troubleshooting and deciding when/how to deviate from those defaults.

The Arch wiki is pretty amazing. Even before I moved to Arch I used it. It's weird that Debian doesn't have an equally amazing wiki since I'm sure the install base of Debain is order of magnitudes more then Arch. Although I suppose you could make the argument that Debian is easier to configure and use, thus, has less need for it.

SamDabbers posted:

If you don't want to take full drive images on your Linux systems, one option is to maintain a Vagrant, chef-solo, or puppet script so you can easily bring up the same environment and just restore your /home partition. As for backing up data, I've found rdiff-backup to be useful. You could also try duplicity which will encrypt your backups with gpg before uploading them to wherever. As for backing up the keys, you could add a flash drive to your physical keychain or wallet and carry it with you.

Learning and setting up those configuration management solutions would probably be more effort then just reinstalling from scratch when drive failures happen.

I think I really like the idea of just using gpg to encrypt backups and then keeping a copy of my private keys on my physical keychain. Seems like a nice easy solution. I would just have to make sure to test the off-site backups and that the USB device hasn't failed every now and then. Oh, and I guess if there is ever a fire in my house while I'm still in it I better make sure I grab my keys!

evol262 posted:

Vagrant isn't really appropriate, chef and puppet are overly involved unless you know ruby or love declarative languages. Salt solo or ansible might work.

Keep /home backed up (or on NFS). Dump a list of packages you have installed. Pipe it into pacman or whatever to reinstall them when you reinstall. Use etckeeper or configure essential services with salt or whatever. That's all you really need for a simple home setup.

Yeah, I think I would probably just be fine with keeping a text file of packages along with my dotfiles. /home is already backed up using rysnc to an NFS share.

Mega Comrade
Apr 22, 2004

Listen buddy, we all got problems!
If you are feeling too lazy to install Arch , give something like ArchBang a go.

Riso
Oct 11, 2008

by merry exmarx
There's a user friendly, preconfigured variant of Arch called Manjaro.

Xik
Mar 10, 2011

Dinosaur Gum
I appreciate the input but those have everything pre-configured and pre-installed, including their own desktop environments. If I wanted that, I probably wouldn't be using Arch. Debian or Fedora, or something more stable and established would be my preferred option.

It's ultimately less effort to install something like Arch and configure it then it is to wrestle an existing pre-configured distro to how I want it. Except maybe a minimal Debian base install, that has the best of both worlds. I'm sure there is a reason I'm not just using that :v:.

JHVH-1
Jun 28, 2002
Bah, just store everything in Docker containers and then push those to a remote location.

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

JHVH-1 posted:

Bah, just store everything in Docker containers and then push those to a remote location.

Yeah. Who needs SElinux? And bother using LXC when you an use a solution which orphans and zombies children left and right because there's no real init?

Docker's cool and all, but it's not appropriate for many, many things.

Qtotonibudinibudet
Nov 7, 2011



Omich poluyobok, skazhi ty narkoman? ya prosto tozhe gde to tam zhivu, mogli by vmeste uyobyvat' narkotiki
I'm not sure why I'm still using Arch. It took 48 hours just to get it to even install on my new laptop, after which everything managed to slowly break over 2 weeks (touchpad stopped working right, root disk no longer detected by initrd, various other issues). Granted, this is probably more the fault of terribly broken hardware that needs special Windows pseudo-firmware to work correctly, but Fedora managed to boot on the first try and pretty much just works, though the touchpad still has issues.

Networking is actually really easy to setup though, not sure why people complain about that.

Ninja Rope
Oct 22, 2005

Wee.
I use Arch whenever I'm working on something kernel related, the "simplicity" is exactly what I want because I'm too dumb and lazy to deal with custom patches to a RHEL kernel. I can't imagine using it on a laptop. Good for you for trying but no one will blame you for using something else.

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

Ninja Rope posted:

I use Arch whenever I'm working on something kernel related, the "simplicity" is exactly what I want because I'm too dumb and lazy to deal with custom patches to a RHEL kernel. I can't imagine using it on a laptop. Good for you for trying but no one will blame you for using something else.

RHEL/Fedora can use upstream kernels just fine.

Or grab the kernel SRPM. The patches are all included, and listed (in order of application) in the specfile.

Not that you should have to, but laziness shouldn't be a factor when you can extract it, add another patch, and "rpmbuild -bb" your way to a "custom patches + your patch RHEL kernel" if you actually need something to work on RHEL.

Qtotonibudinibudet
Nov 7, 2011



Omich poluyobok, skazhi ty narkoman? ya prosto tozhe gde to tam zhivu, mogli by vmeste uyobyvat' narkotiki
The simplicity is also good if you don't use a major DE and don't want to spend the time ripping all of GNOME/KDE out of other distros. Because I'm weird and launch awesome using startx+xinitrc, even though the feature I used it for (dynamic tag creation with Shifty) doesn't work on the current version and awesome 3.4 packages are too old to be in ARM.

Adbot
ADBOT LOVES YOU

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

scroogle nmaps posted:

The simplicity is also good if you don't use a major DE and don't want to spend the time ripping all of GNOME/KDE out of other distros.

Please don't be serious.

Fedora, CentOS, Debian, and Ubuntu all support some kind of "minimal" install which lets you pick and choose exactly what you want to install. Unless you're picking CrunchBang, Fedora $something Remix, or other which is designed to come with a specific DE.

I run Fedora. The only environments I have installed are Xmonad or Awesome, depending on whether it's desktop or laptop. I didn't ahve to "rip anything" out. I just didn't install it to begin with. Which is literally a checkbox.

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