[00:05] <wolflarson> I should mention it is still asking for my old hostname. sudo: unable to resolve host <oldhostname>
[00:05] <sarnold> what does uname -a report?
[00:06] <wolflarson> old hostname
[00:08] <sarnold> wolflarson: running "hostname <newhostname>" will probably sort that out
[00:08] <sarnold> wolflarson: maybe "hostname --file /etc/hostname" ?
[00:09] <wolflarson> hmm thats how I changed it in the first place though.
[00:09] <wolflarson> I did not do the --file part will give that a shot
[00:09] <wolflarson> /etc/hostname was showing the correct host however
[00:16] <wolflarson> adding --file seems to have worked thanks sarnold
[00:18] <wolflarson> that or opening a new session picked up the 127.0.1.1 change to hosts. whatever way it is now working
[00:19] <sarnold> wolflarson: nice :)
[00:20] <sarnold> wolflarson: twenty-ish years ago I set up an SCO unix machine, and it had beena real bastard on the first two attempts, so on the third attempt I gave it a -terrible- bad word for a system name... and when the time came to deploy it, I couldn't track down every bloody use of the bad word
[00:20] <sarnold> I thought I got them all but we kept finding occurances where we didn't expect it and things broke ...
[00:20] <wolflarson> lol
[00:20] <sarnold> yet another re-install required :)
[02:07] <jak2000> hi all
[03:01] <jak2000> i buy a domain and how to configure the domain in the server? i want setup a mails erver(postfix) and webserver http2 thnks
[03:14] <patdk-lap> jak2000, I would highly recommend you don't do that
[03:31] <jak2000> why?
[04:19] <jak2000> ?
[11:51] <ChrisWarrick> Hello, have you got any good and up-to-date guides on setting up L2TP/IPSec VPNs?
[15:14] <DexterF> hi all
[15:15] <DexterF> server as base for media center, installing to 32GB usb3 thumbdrive for / and /boot. 3xsata hdds supposed to be main storage for media in md raid5. now: where do I put swap if I mean to suspend-to-disk?
[15:16] <DexterF> I was thinking: 4GB RAM, so put 3x 2GB swap in all of the 3 array drives, but then thought: bad idea, if one disk fails: no resume from disk. if I put swap on the raid5/lvm: lots of writing when swap is accessed.
[15:17] <RoyK> I'd put the swap on the USB thing
[15:18] <RoyK> gparted should be able to change the partition size, although perhaps from a live usb boot, since it's not always easy to change a mounted fs
[15:19] <RoyK> IIRC swap needs to be on a dedicated partition for suspend-to-disk to work
[15:20] <RoyK> and separating data from system, like you're doing, is a very good idea indeed
[15:24] <DexterF> RoyK: swap on the usb drive thought crossed my mind, too, if it only is used for suspend then the wear would even be ok, question is: how much swap does linux use when there's plenty of RAM. it's 4GB for a media center / DVB streamer on a minimum install so I don't expect it to use swap
[15:24] <RoyK> DexterF: but again - I'm not sure if you'll need suspend-to-disk on such a machine. I just use a raspberry pi for mine with openelec and it doesn't have that feature
[15:25] <DexterF> that's option B: "always on, don't suspend at all." power consumption is at 20W idle and barely exceeds 25 active.
[15:25] <DexterF> it really is feasible.
[15:25] <DexterF> leave out swap altogether then?
[15:25] <RoyK> DexterF: linux usually uses a wee bit of swap, but that's tunable with the vm.swappiness setting, default 60. Set that to 1 and it won't use much unless it's really necessary
[15:26] <RoyK> sysctl vm.swappiness
[15:26] <RoyK> will tell you it's setting
[15:26] <DexterF> ok, swap goes to the usb thumb then
[15:26] <RoyK> yes
[15:26] <DexterF> did not know that, thanks
[15:27] <RoyK> create a file, like /etc/sysctl.d/10-swappiness.conf
[15:27] <RoyK> add "vm.swappiness = 1" to it and run sysctl -p /etc/sysctl.d/10-swappiness.conf to have sysctl read it
[15:28] <DexterF>  -p is for persistent?
[15:28] <RoyK> man sysctl
[15:28] <RoyK> those things aren't persistent, but creating that file, means sysctl will read it during boot
[15:36] <DexterF> got it
[15:36] <DexterF> what the *flying*....
[15:37] <DexterF> my first attempt was to install directly install on radi5 everything, then found it doesnt fly well with grub, so I thought, ok, put in another usb drive for / /boot swap and start over form scratch.
[15:38] <DexterF> then the installer found the old raid config and I thought, better dd over the first 4M of the raid disks. did that
[15:38] <DexterF> now I created md0 again and it *finds* the former LVM volumes from installation 1. where the heck did it find that info?!
[15:40] <DexterF> LVM keeps a config backup at the end of the pv, right?
[15:42] <DexterF> installation fails due to shoddy sata cable on disk 3 :D
[15:54] <DexterF> then again maybe not. "base-installer: error: could not find any live images"
[15:54] <DexterF> https://bugs.launchpad.net/ubuntu/+source/live-installer/+bug/1575652 seems related. not sure and not sure what to do about it.
[15:54] <DexterF> any way to continue this installation or do I need to boot over and put the line in grub as suggested?
[16:30] <DexterF> ok, it works when *not* cheking "live installer" in the options. what's the difference in that anyway?
[16:36] <RoyK> DexterF: AFAIK grub doesn't support booting from anything but normal disks and mirrors (raid-1)
[16:36] <RoyK> DexterF: separate data and storage, and you'll be fine
[16:37] <DexterF> RoyK: yes, playing it ssafe now. grub2 actually does boot from lvm on raid5, but as soon as something happens you find yourself at a grub shell. plus, grub2 has to be installed to all disks. now it's on one and I should be good.
[16:38] <DexterF> K.I.S.S. principle.
[16:45] <RoyK> damn - didn't know that, but still, separating data from the system will never hurt
[16:46] <RoyK> keep the system and its swap etc on a separate, preferably mirrored volume and use raid-something or zfs for the est
[16:46] <RoyK> or even btrfs if you like to play with matches and petrol
[20:00] <cossier> hola