/srv/irclogs.ubuntu.com/2014/03/08/#ubuntu-server.txt

basilis anyone able to suggest a way to preventUbuntu 12.04 overriding my /etc/resolv.conf file? I have access to the internet now, but I'll lose it if I have to reboot.01:21
sarnoldbasil: uninstall the resolvconf package? why do you have to reboot if you lose internet access....? I feel like there's a much larger, much more significant problem that you're -not- asking about :)01:22
basil<sarnold>I don't have to reboot when I lose access - I'm doing a range of things. I guess I was saying if I do reboot, Ubuntu reverts.01:23
sarnoldbasil: oh! that makes so much more sense. :) okay. thanks01:24
basil<sarnold> I used sudo rm /etc/resolv.conf this morning - does that remove the package?01:24
sarnoldbasil: no that only deletes your file. when your nics change state, probably the resolvconf package will write you a new one.01:25
basil<sarnold>What's the command to remove the whole package?  Can I then just use sudo nano /etc/resolv.conf to build a new file?01:26
mardraumbasil: you should consider just fixing your /etc/network/interfaces with the correct dns servers etc.01:26
basil<mardraum> I had tried that without luck...the only success I've had in the last few days was to rebilid the resolv.conf01:28
basilrebuild01:29
sarnoldbasil: you probably forgot the 's' at the end of 'dns-nameservers' -- see the resolvconf(8) manpage for a better example of the interfaces file than the interfaces(5) manpage01:29
sarnoldbasil: if you really want to be in complete control of your resolv.conf, apt-get purge resolvconf. if you find you need it back, there is probably a backup in /var/cache/apt/archives/01:30
basil<sarnold> so once i purg it, use the interface file?01:33
sarnoldbasil: you'll still need to configure much of your networking in the interfaces file; but you'll be responsible for the dns settings in /etc/resolv.conf01:33
basilsarnold> my resolv.conf has been simply nameserver  8.8.8.8, will that suffice. It was working with that previously01:38
sarnoldbasil: depends upon what you do with your system and how you want to use either local networks or virtual machines / lxc instances etc..01:39
sarnoldbasil: using a public server means you won't be able to look up machines that have names only in your local network, nor will any vms you run via libvirt be resolvable. that might be good or bad, because the automatic stuff doesn't always work, but you'll have to manage your /etc/hosts for those machines as necessary..01:40
basil<sarnold>I've made that change. Purged resolv.conf...restarted, but no Internet access. I'm content with public dns for now. I'd really just like to get stable interent conncetion01:41
basil<sarnold>I can ping 8.8.8.8, www.google.com and my gateway. All work, but no internet access again on FF.01:43
sarnoldbasil: restart firefox? it may still have its own resolver implementation01:44
basil<sarnold>no..it still shows "unable to connect"01:44
sarnoldbasil: try the IP address of your gateway?01:46
basil<sarnold>A few days ago I edited /etc/resolvconf/resolv.cof.d/original - I couldn't remember the setting so it now has as nameserver 127.0.0.1. Would that affect the system? I can ping my gateway.01:47
sarnoldbasil: if you use nameserver 127.0.0.1 you will need to run a local dns resolver, either a forwarding resolver like dnscache or a recursive resolver like pdns-recursor01:50
basil<sarnold>I don't want to do that...I could remember the original setting. I think I tried 8.8.8.8 and things stopped working01:50
sarnoldbasil: was the original setting your gateway's IP address? that's common..01:51
basil<sarnold>All I could recall was that it 192.x Wasn't sure if it was machine IP or gateway?01:52
sarnoldbasil: probably the gateway.01:52
basil<sarnold>changed it to gateway, restarted networking, restarted FF; unable to connect01:55
sarnoldbasil: to where are you trying to connect?01:56
basil<sarnold>When I open FF, type in www.Google.com; unable to connect01:57
sarnoldbasil: telnet www.google.com 80  -- then hit ^D01:58
basil<sarnold> does that mean "enter"?01:59
basil<sarnold>trying 203.8.182.170...02:01
sarnoldbasil: no, ^D is often used as an end-of-file kind of signal, it's some special handling the shell offers02:01
sarnoldbasil: when you hit ^D the telnet should quit and you should see a load of error message from the remote web server02:02
basil<sarnold>^ = ctrl????02:04
sarnoldbasil: yes02:05
basil<sarnold>It's just hanging at the moment.....trying 203.8.182.15202:06
basil<sarnold> now it's trying 203.8.182.16602:08
basil<sarnold> now it's trying 203.8.182.117702:09
basil17702:10
basil<sarnold> now it's trying 203.8.182.18502:12
=== markthomas is now known as markthomas_away
sarnoldbasil: heh, sounds like telnet can't connect to google's webservers either02:12
sarnoldbasil: so now you get to figure that out -- is it something on your gateway? or a local firewall? or something your ISP has put in place?02:13
basil<sarnold>I connected this morning for short period - until I rebooted. After I purged my resolv.conf file and then rewrote it!02:14
basil<sarnold> my webserver appears to get through OK.02:14
basil<sarnold>I can ping www.google.com02:15
sarnoldbasil: your DNS appears to be working fine, though, you got four different IPs for your dns lookup..02:15
basil<sarnold>I can ping 8.8.8.802:16
sarnoldbasil: so it appears to be a problem with tcp, which is usually indicative of firewalling errors somewhere02:16
basil<sarnold> canyouseeme.org shows port 80 is open for 124.254.81.4002:17
basil<sarnold> my static IP02:17
basil<sarnold>port forwarding is setup on my router02:18
basil<sarnold>ubuntu firewall has ports 80,22 open02:19
sarnoldbasil: sure enough, I get http and ssh banners on both those ports02:19
sarnoldbasil: I wonder why you can't do any tcp egress though. that seems odd.02:20
basil<sarnold>i have another NIC - how do I go about switching to it, to test if it's actually hardware02:20
sarnoldbasil: the easiest is to edit the /etc/network/interfaces to select the different NIC, swap the cable, and reboot02:21
sarnoldbasil: but I don't think that will help02:22
sarnoldbasil: your NIC properly talks ICMP with hosts on the other side of the planet, and I can connect to your services just fine02:22
basil<sarnold>just trying to think of solutions02:22
sarnoldbasil: I'd look at your gateway. I wonder if it is forbidding outgoing connections from machines in a 'dmz' zone or something similar02:23
basil<sarnold>I'm port forwarding using my router for ports 80, 22 to my server IP (192.168.1.101)02:23
sarnoldbasil: ah, so not using a goofy 'dmz' service. ok. hrm.02:24
basil<sarnold>don't think so...static ip02:25
basil<sarnold> what switching off my firewall for testing?02:28
basilabout02:28
basil<sarnold>wala...it worked with FW turned off02:30
sarnoldbasil: that makes sense :)02:30
basil<sarnold> so, what does that mean? In practical tersm for me...???????02:30
sarnoldbasil: it means you need to fix your firewall rules.02:34
sarnoldbasil: you need to allow tcp packets out of your machine / network, and you need to allow the reply packets back in02:34
basil<sarnold>Ok...I'll trash it and start over. I did have rules setup for both inbound and outbound. I used Firestarter to assist me graphically.02:35
basil<sarnold>Hey thanks for all your help...and infinite patience02:35
sarnoldbasil: what did you think of firestarter? i've never tried it..02:37
sarnold.. and I've never learned iptables well enough by hand :)02:37
basil<sarnold>its graphical...and I'm not very good with CLI. I've used it for a few years...usually happily02:37
sarnoldbasil: cool, thanks. I've been content with ufw, it normally does what I want :) but it's all CLI02:38
basil<sarnold>thanks again...so much02:38
sarnoldbasil: have fun!02:38
basil<sarnold>ciao02:38
Noah_ATHello, I need support installing Ubuntu 12.04.4-server. Please message me if you can help. I'm having issues at partition time.03:04
sheptardNoah_AT: why not just ask your question in the channel and give everyone a chance to help you03:17
Noah_ATsheptard: thanks for the advice. Do you mean the #ubuntu channel?03:19
sarnoldNoah_AT: or this channel03:28
sheptardevening sarnold03:32
sarnoldhey sheptard :)03:34
Noah_ATsarnold: thanks guys, here goes: I had Ubuntu 11.04 Natty. I was upgrading to Oneiric, but I realized I'd rather just do a 12.04.4 LTS clean install. So I force shut down 5hrs into the upgrade and tried to wipe the hard drive using gparted and then install the clean Ubuntu. I've gotten stuck at the partition phase every time03:40
Noah_ATsheptard: I'm referring to ubuntu servers. there was a bit of confusion about that on #ubuntu, so I wanted to specify03:41
sarnoldNoah_AT: did you get stuck in partitioning durin the installer? or during your manual gparted wiping?03:41
Noah_ATsarnold: installer. Can't remember the exact error though, so I am going to try and make the error happen again03:42
sarnoldNoah_AT: ooh, good, an exact error message is always welcome :)03:42
Noah_ATsarnold: for sure, I'm on it. If its okay with you, I'll post my step by step here so that we know exactly what I might have done to trigger the error03:43
Noah_ATsarnold: I'll be concise so as to not bloat the channel though03:44
sarnoldNoah_AT: hehe, okay03:44
semiosisNoah_AT: just a wild idea, but if you want to wipe the *entire* disk, you could dd if=/dev/zero of=/dev/sd? -- that would nuke anything left by parted/fdisk03:44
semiosissarnold: would you agree?03:44
sarnoldsemiosis: yeah, that's a good way of getting back to a clean slate, but it can take a while on a larger drive03:45
Noah_ATsarnold: we are working on about 111GB03:45
semiosiswell, only need to nuke the beginning of the disk, where the mbr is.  doesn't matter what's after that03:45
sarnoldI'm hoping to avoid a long zeroing if we can nuance the partitioning somehow else..03:45
Noah_ATsarnold: might as well see the error first though, no?03:45
sarnoldsemiosis: hah, true03:46
sarnoldNoah_AT: if it's easy to get to03:46
Noah_ATsarnold: yeah.. t-10min I'd say03:46
sarnoldsemiosis: (funny thing, zfs stores four copies of its per-disk uberblock on a disk, two copies near the beginnin and two copies near the end; advice there often is "zero the first and last ten megabytes" :)03:46
semiosishah, good to know, next time i'm knee deep in zfs03:47
sarnold:)03:47
* semiosis wonders if btrfs does similar03:48
Noah_ATsarnold: Configured language, keyboard, hostname, full name, username, should I choose to encrypt my home directory?03:49
sarnoldNoah_AT: probably not; if you're asking, you probably don't need it :)03:49
semiosisNoah_AT: it'll slow everything down a lot03:49
Noah_ATsemiosis: haha great thanks!03:49
semiosisbut maybe protect from prying eyes03:49
sarnold(it's a neat feature, but it comes with its own caveats for use. skipping it is a lot easier.)03:49
Noah_ATsarnold: for now, lets definitely keep it simple03:50
Noah_ATsarnold: Timezone done03:50
sarnoldNoah_AT: .. I'm off to pick up pizza :) I should be back in a bit.. hopefully semiosis and sheptard will get you squared away :)03:51
Noah_ATsarnold: alright enjoy!03:52
sarnolddanke :)03:52
Noah_ATsarnold: thanks for your help. hopefully I'll have some good news when you get back03:52
semiosissarnold: enjoy your pie03:53
semiosisNoah_AT: feel free to ask me whatever about your install.  happy to help03:54
Noah_ATsemiosis: cool I'm at the partition disks screen with these options: "Guided Partitioning, Configure software RAID, Configure the Logical Volume Manager, Configure encrypted volumes, Configure iSCSI volumes, Undo changed to partitions, and Finish partitioning and write changes to disk" with a little section showing "SCST1 (0,0,0) (sea) - 120.0 GB ATA ST9120822A #1 Primary 120.0 GB ext203:57
semiosisNoah_AT: can we wipe this drive completely?  confirm you dont care about any data on it please03:59
Noah_ATsemiosis: Yup. Confirmed.04:00
semiosisthen just do guided partitioning04:00
semiosisthat should be mostly automatic04:00
Noah_ATsemiosis: I've selected "Guided Partitioning" and am now selecting "Guided - Resize SCSI1 (0,0,0), partition #1 (sea) and use freed space" Ok?04:01
semiosishmm, is there a "use whole disk" option or something like that?04:02
Noah_ATsemiosis: Options: G is for "guided". "G - resize SCSI1 (0,0,0), partition #1 (sea) and use freed space, G - use entire disk, G - use entire disk and set up LVM, G - use entire disk and set up encrypted LVM, Manual"04:02
Noah_ATsea not sea04:02
Noah_ATsda**04:03
semiosis"use entire disk" is the one (no LVM, no encrypted LVM, ...)04:03
Noah_ATsemiosis: would you join a private chat with another nice guy who is helping me out?04:06
semiosisprefer to keep it in channel04:06
Noah_ATsemiosis: he had responded in the ubuntu channel04:06
Noah_ATgotcha kk04:06
Noah_ATi selected "use entire disk" and the plan has updated to "#1 primary 117.9GB f ext4 /" and "#5 logical 2.1 GB f swap  swap"04:09
semiosislooks good to me04:10
Noah_ATsemiosis: "Finish partitioning and write changes to disk" ?04:11
semiosisif you are sure you want to wipe the whole disk drive and install ubuntu on it, then yes04:12
Noah_ATsemiosis: Alonsi! then04:13
semiosisNoah_AT: congrats! you're (almost) the owner of a new ubuntu system!04:14
* sarnold returns04:14
sarnoldNoah_AT: good news? :)04:14
Noah_ATsemiosis: haha I hope you're right! I'll hold you to it :P04:14
Noah_ATsemiosis: alright! Warning screen. "If you continue, changes will be written...This will destroy all data...The partition tables on the following devices are changed: SCSI1 (0,0,0) (sea) and then the plan again04:16
semiosisNoah_AT: you know what to do04:16
Noah_ATsemiosis: its going... .... ....04:17
Noah_ATOh! Installing base system!04:18
sarnoldnice :)04:18
Noah_ATsarnold: hahaha just in time!04:19
* semiosis bed time04:19
sarnoldNoah_AT: yeah no kidding, pizza in the oven, VM upgrading, and your system installing :)04:19
Noah_ATsemiosis: so, this is farther than I've gotten04:19
sarnoldsemiosis: 'night :)04:19
Noah_ATsemiosis: Night! Thanks so much04:19
semiosisNoah_AT: enjoy your new ubuntu04:19
semiosissarnold: laters04:19
* semiosis afk04:19
wkmanireHello.08:50
wkmanireI'm not that familiar with LVM. I know it's supposed to be flexible in that you can increase partition sizes but how does that work with additional disks?08:50
wkmanireCan I add an extra disk and grow an existing partition to include that disk?08:51
=== IdleOne- is now known as IdleOne
bekksLVM does not need partitions. If you want to extend your volume group, add your new disk as physical volume to the volume group, then you can extend your logical volumes. And after that, you need to expand the filesystems contained in the logical volumes.09:31
=== Jare_ is now known as Jare
wkmanirebekks: I see.09:34
wkmanirebekks: So it will appear as one contiguous filesystem09:34
wkmanireComprised of 3 drives09:34
bekksyeah, it is pretty unsafe, but it is possible.09:34
wkmanireUnsafe in what sense?09:35
wkmanireIf I have a drive failure do I lose the whole volume?09:35
bekksIf one drive gets corrupted, data on the whole volume will be lost.09:35
wkmanireThat makes sense.09:35
wkmanirebekks: Thank you for answering my questions.09:37
eagles0513875hey guys10:48
eagles0513875hey lordievader :D here is teh pastebin of the log http://paste.ubuntu.com/7055081/10:48
lordievadereagles0513875: Hmm, does syslog contain something usefull?10:50
lordievaderAlso what happens when you manually run dpkg -i on the package?10:50
eagles0513875lordievader: all im seeing in syslog is emails coming in etc10:51
eagles0513875let me try the dpkg -i10:51
eagles0513875root@ha1:/var/log# dpkg --install runit dpkg: error processing runit (--install):  cannot access archive: No such file or directory Errors were encountered while processing:  runit10:51
eagles0513875!runit10:51
eagles0513875!info runit10:51
ubotturunit (source: runit): system-wide service supervision. In component universe, is optional. Version 2.1.1-6.2ubuntu3 (saucy), package size 108 kB, installed size 415 kB10:51
lordievadereagles0513875: Try redownloading the .deb.10:52
eagles0513875lordievader: i downloaded it from the repo10:52
eagles0513875ok seems like none of my other servers have it10:52
eagles0513875how can i see a list of dependencies that rely on the package giving the issue10:53
lordievaderapt-cache rdepends10:54
eagles0513875lordievader: how will i know what i have on my system is using it as im seeing two things with | next to them10:56
lordievadereagles0513875: Write a script ;)10:57
eagles0513875lordievader: is there a way i can force it to be removed and reinstalled?10:58
lordievaderErr not really sure what you mean? Purge and install?10:59
eagles0513875lordievader: basically how can i have the system reinstall the package with the issue11:02
lordievadereagles0513875: Remove, clean, and install. (check that step one doesn't tear down something important)11:03
eagles0513875lordievader: removing it and reinstalling it solved the problem11:04
eagles0513875it removed something git related which i reinstalled along side it11:04
=== Guest60952 is now known as NCommander
=== NCommander is now known as Guest60966
freenidewhich ubuntu server i need to install that will help me setup dhcp ????? thanks14:48
cfhowlett!dhcp14:51
ubottudhcp is Dynamic Host Configuration Protocol, a protocol for automatic IP assignment from a router. Ubuntu uses dhclient as a DHCP client but other ones (and DHCP servers too) can be obtained from the !repos. More info at http://en.wikipedia.org/wiki/DHCP14:51
=== Mogwai is now known as Guest79014
=== phunyguy_ is now known as phunyguy
irvcan someone assist me with installing a low-latency kernel on ubuntu server 13.10?23:41
qmanapt-get install linux-rt ?23:43
irvi'll give that a shot, thx :)23:44
qmani think its still in default sources23:44
qmanif not i'm sure there's a ppa23:44
irvperfect, i'm just installing the OS now23:44

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!