Skip to content

u/mrmacky

In this archive from Oct 2011 to Apr 2013

0
posts
17
comments
0
media
56
score

Philosophy: A simple, shell-only server configuration that mimics my desktop(s) CLI as closely as possible.

The idea is that everything I need to do on my server should be configurable from a command line. This is because memory can be limited, and GPU support can be a toss-up on virtual machines. So I just avoid DEs/WMs altogether!

Wherever possible: I choose the tools that provide EASY TO USE command line configuration / flat file configuration.


zsh: I love this shell. Easy to configure, incredibly powerful, and has a great community behind it.

I use this w/ the oh-my-zsh plugin. The ~/.zshrc is shared between my Mac, my home Linux VM, and my server on Rackspace's OpenStack platform.

oh-my-zsh lets me easily add plugins for git, among other things, and the built-in themes provide a nice experience.

vim: I'm no vim wizard, but I'm used to the key bindings and movement commands. I've got NERDTree for file browsing, and gocode for some autocomplete support when editing *.go files.

git: I love git. All my config files are version controlled, and a lot of my deployable software relies on git and tagging as well.

ruby and rbenv: I run several Ruby apps, most notably is GitLab. This lets me easily collaborate w/ my co-workers on our shared git repos.

I use rbenv to switch ruby versions because it is much lighter than rvm, and it's just easier for me to conceptually grasp what rbenv is doing under the hood.

nginx: I use nginx because it's lightweight, fast, and I already have a config file ready to go.

Setting up reverse proxies, FCGI, etc. is a real cinch. -- This works great as a frontend to multiple webapps running in different languages. My nginx frontend currently forwards requests to PHP apps, Ruby apps, and some apps I've written in Go.

tmux: This just seems like a simpler alternative to screen in my opinion. Not as fully featured, but I really don't need all that screen provides.

I also find the command syntax a little easier to grok, and that makes automating it a little easier.

I usually have a window logging stderr from each server process, a window reserved for running privileged commands, a window reserved for ordinary commands, and then I create windows as needed for development, deployment, etc.

yaourt: This is the first "AUR helper" I ever used, so I haven't seen much reason to switch yet. -- It's easy to set up (only need to build two packages from AUR), very easy to use (I don't even have to remember to sudo!), and it knows all the pacman flags.

weechat-curses: Sometimes I just want to hop on IRC! -- I like running this on a server instance b/c it lets me stay connected even when I'm on the move. Again: I really like the scripting support that weechat offers, and the options are all well-named, well documented, and have sensible defaults.

go: I have go installed from sources. When deploying an app written in Google's "Go" programming language: I just compile it on the server. -- Finishes in <10s even for the biggest apps, doesn't eat up CPU, and I'm sure that the binary will be ready for my system.

postgres: My database of choice. Fairly low resource usage, and I find it easier to work with. MySQL simply has too many "quirks" for my taste. -- PostgreSQL is only as quirky as you make it.

mumble: VoIP: Easy to setup, fairly secure, and not too bandwidth intensive for the quality.

4 points

In my git management software, I actually have a tag for whatthefuckdoesthissay issues.

It usually comes from my direct supervisor, who must walk the fine line between "legally blind" and "let this one have a car."

If only "whatthefuckdoesthissay" issues weren't immediately followed by "cram-more-shit-on-the-screen!!!! double-plus priority!" ....

3 points

Gotta say, love systemd... neither systemd nor sysvinit ever gave me problems, but systemd is easily the more standard and maintainable system.

At the end of the day, you can just write a .service wrapper for shell script, and have systemd do whatever you want, so nothing is really lost in the transition.

1 points

Ditto.

I actually stumbled on Arch because of how helpful their wiki was.

I had just upgraded my distro, and I was fighting [Fedora, I think] left and right, trying to get a wireless card working. -- This was many moons ago when wireless was in a sorry state on Linux.

Anyways, I stumbled across the Arch wiki. -- It was really helpful, and got me really far. I had working wireless [although no GUI tools for it] and I started fighting with something else [probably video drivers] when I just decided to move to Arch, because their philosophy seemed so much simpler.

That was my first Arch install. Ever since I'm pretty much a total convert. -- People complain that it's not stable or reliable because it's a rolling release. They claim it's easy to break.

You know what? I've never had a single install last 3 years+ on any other [non-LTS] system. Every Fedora/Ubuntu distro upgrade I tried left my system an inconsistent mess. I remember when Ubuntu moved to PulseAudio, bye-bye working audio stack. -- Distro upgrades, on other systems, have always been equivalent to "clean install" in my book.

Not so with Arch, sysvinit to systemd? No problem. Moving the /lib directory? Had to spend a minute reading a blog post. Grub2 update? Did it remotely.

Not once has Arch "broken" on me. Plus you always learn so much in the process of these upgrades. -- When you're responsible for installing systemd, you inherently learn a lot about it. When you upgrade a distro, and sysvinit is just gone, I mean fucking gone, you're just dumbfounded for a moment as you try and get your bearings. -- Not so with Arch, I was writing systemd units from the start.


Hands down: the wiki is a great resource, haters gonna hate, Arch is my pal.

(P.S: the 3-year-old install has actually been ported from a virtual machine, to bare metal, and back to a different virtual machine.)

6 points

(I'mma help you out because I don't wanna see anyone burned by this. /s Is the sarcasm tag.

Why is he being sarcastic? Because --force will run every update without user intervention. INCLUDING UPDATES THAT WILL BREAK YOUR SYSTEM.

If you then force a reboot after a forcefully applied update, you may very well end up without a bootable system.

You should never use --force, and if a pacman -Syu ever fails you should check the Arch news page to see if there is a breaking update that requires manual intervention.)

4 points

At home I run Arch as a server for a couple things:

  • Nginx
  • GitLab (Rails; "GitHub" clone)
  • sshd
  • Unreal 3.2 IRCd
  • TeamSpeak 3 Server
  • MySQL, Postgres servers

Haven't had any problems; forgot to update it for a while, ended up doing the /lib update, GRUB2, and systemd all inside a week.

Right now I'm going for maximum uptime (though I think I have a kernel update pending; oh foo.)

Solid as a rock, though. I don't think I've ever had Arch crash, and I initially setup this VM in 2010, with a full reinstall in 2011, and I just expanded the virtual disks ("/" and "/home") a few months ago since I got bigger physical disks.

2 points

I installed GRUB2 remotely.

I couldn't believe it actually worked.

[Before a seasoned sysadmin snaps: it's a VM, and I have remote access to the host. So while I did have access to the "bare metal", I didn't need to use it!]

5 points

My first issue with systemd was last night, and it was because the devs were too thoughtful!

I made a custom unit to start/stop mysqld, since one was not included with the Arch package for mysql. (Only the rc.d scripts were included)

Anyways, with my most recent round of updates Pacman was complaining that the service was going to get overwritten.

I just deleted it though; since I'd rather have the standard one.

The Arch devs are amazing!

9 points

Just wanted to chime in: I'm forcing resolution with the vga= kernel arg, and don't see any adverse effects like that.

However I'm using VMWare Workstation 7, not VirtualBox, so it's entirely possible it's a weird reaction between the driver and forcing resolutions.

1 points

That is a lot of material to sift through and "verify."

Although one option is just put the .tar.gz on a thumb-drive (or a CD, etc.) and install the wiki off that on your Arch boxes.

Would Pacman still require the internet to do deps-checking if you're installing that from a local source?

1 points

Right now I update daily, I have a really barebones VM right now, so it doesn't have much that could break.

It's eventually going to be a publicly-facing web server, in which case I'll probably stretch it out to weekly updates.

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.