/srv/irclogs.ubuntu.com/2014/06/18/#ubuntu-server.txt

=== Ursinha is now known as Ursinha-afk
=== m6 is now known as markour
=== Ursinha-afk is now known as Ursinha
sander^workAnyone know why I get: nfsstat: Error: No Client Stats (/proc/net/rpc/nfs: No such file or directory). after an distro upgrade?07:54
sander^workand also nfs mounts wont mount, it says nfs.statd is not installed.07:54
lkthomashey guys08:12
lkthomasanyone using preseed to set static ip ?08:12
kaitanyahttp://paste.ubuntu.com/7662598/08:30
kaitanyaproblem with locales http://paste.ubuntu.com/7662598/08:30
bluefrogkaitanya, que donne sudo update-locale08:51
kaitanyabluefrog: no luck, cannot change locale08:52
bluefrogsudo apt-get install locales08:53
bluefroget refais ton binz après pour voir08:53
kaitanyabluefrog: have tingled with this one on #ubuntu but no luck even there08:53
bluefrogkaitanya, 14.04? ‪vient d'être installé?08:53
kaitanyabluefrog: 14.04 LTS en_GB.UTF-8 is working but no scandinavian or utf-8 chars on irssi08:55
bluefrogτεστ08:56
bluefrogah irssi, pardon08:57
kaitanyacan see them from my regular shell, just typing scands or <EUR> makes the screen go messed and everything is unusable08:57
bluefrogkaitanya, lis ça pour voir http://xkr47.outerspace.dyndns.org/howtos/irssi-utf-8-guide.txt08:58
kaitanyabluefrog: irssi and screen are working. the problem is with ubuntu's locales09:00
lkthomaslooks like netcfg have bugs to make interface always run on dhcp09:04
sync0patemorning everyone09:57
sync0pateI've unfortunately been tasked with configuring and securing a ubuntu server, is there a handy checklist of things I should've checked?09:58
sync0pate(server is just for web server)09:58
sync0pateso far I've done updates, fail2ban, firewall, disabled ssh password auth and set to keys only..09:58
OpenTokixsync0pate: do you filter outgoing?09:59
sync0pateOpenTokix, I'm not sure, should I?09:59
sync0pateI don't think so09:59
sync0pateI think I need some outgoing connections09:59
OpenTokixsync0pate: yes10:00
OpenTokixsync0pate: but only those you specify10:00
lordievadersync0pate: It makes a reverse remote shell more difficult ;)10:00
sync0pateso I should limit outgoing to just the connections I need?10:00
sync0patewhich will be ssh, web, mail..10:01
lordievaderDon't forget DNS.10:01
sync0pate!!10:01
sync0pate(this is why I've not filtered it! :D)10:01
sync0patethanks10:01
lordievaderAnd maybe whois, if you want fail2ban to mail the whois info.10:02
sync0pateyeah10:02
sync0pateat the moment I'm just using ufw, is that good enough?10:03
sync0pateit's a frontend to iptables right?10:03
sync0pategoddammit, and now I've locked myself out10:11
sync0patehaha10:11
sync0patewell, better now than later10:11
Tazmainhi all I have a few cron jobs setup but it does not seem they are running how can I check to see if they are working or of cron is running them ?10:15
remix_tjsync0pate: knockd for avoiding to lock out when configuring firewall :-)10:24
remix_tjTazmain: look on /var/log/syslog10:24
remix_tjsync0pate: https://help.ubuntu.com/community/PortKnocking10:25
sync0pateyeah cheers remix_tj :)10:25
sync0patelittle late, but thanks :D10:25
sync0pateI've used a cron job before to turn it off every 10 minutes while I'm configuring10:25
Tazmainremix_tj, My syslog seems empty nothing related to any erros.10:26
Tazmainremix_tj, all I see is anacron[59202]: Job `cron.daily' terminated10:28
remix_tjsync0pate: yeah but you can't accept lockout when in production10:54
sync0pateyeah cheers remix_tj , it's a handy thing to know, thankyou10:55
sync0pateright now I'm trying to get the fucking IT guy to allow me access to the recovery console or something10:56
PupenoHow can I make some upstart services wait for a volume to be mounted before starting?10:57
histoPupeno: you could change the priority of the loading. I thought it was controlled by ##'s in the begining of the upstart scripts. You may have to man rc.d  or some of the upstart stuff.11:40
sync0pateanyone recommend UK based ubuntu VPS?11:45
sync0patehosting11:46
lazyPowersync0pate: is it being based in the UK a hard requirement? Digital Ocean has a really nice datacenter in amsterdam.11:48
sync0patenot a hard requirement11:48
sync0pateit's a preference11:48
sync0patebut I'd prefer non-US companies11:48
sync0pateif anyone knows any11:51
sync0patecan someone explain the difference between puttin something in sudo crontab -e , or in /etc/crontab ?12:13
rbasaksync0pate: /etc/crontab is the system crontab. "sudo crontab -e" edits the root user's crontab. You can use either, but note that the syntax for a system crontab is slightly different.12:15
rbasakAll users can see the system crontab, too. I find it more convenient to put stuff in there (I suggest /etc/crontab.d/local or something to make upgrades smoother)12:15
rbasakAlthough puppet's cron resource uses the root user's crontab instead.12:15
sync0pateso, there's nothing essentially wrong with using either?12:16
rbasakErr.../etc/cron.d/local12:16
sync0pateneither is deprecated or anything12:16
rbasakNeither is deprecated. But the root user's crontab is more "hidden", which can be confusing. So I'd avoid it if possible.12:16
sync0pateok12:17
sync0pateI don't think it matters to me that it's more "hidden", this is only a temporary thing12:17
sync0patefor more permanent stuff I'll use the /etc/crontab12:17
sync0patewait, the /etc/cron.d12:18
sync0patethat's just a directory for system cron files?12:18
sync0pateso i can put anything in there and it'll run like /etc/crontab?12:18
sync0pateand won't mess up on upgrades..12:19
sync0pateis that right rbasak ?12:19
Arrickhey all, I have a 12.04 server which hosts an internal training site.... Right now, one NIC (statis IP) is accepting traffic (it's the nic that is supposed to be for SAN use only) and my other nic (static IP) quit accepting traffic.... wont let me touch ssh, port 80 or anything through that IP.... Any ideas would be appreciated, I've verified the services are running by connecting to the IP addresses.12:20
Arrickconnecting to the ONE ip address that is.12:20
rbasaksync0pate: correct. Packages drop files into /etc/cron.d to avoid having to edit /etc/crontab and confusing users on upgrade. So just make sure not to conflict by using a name that a package might drop in. I'd stick to "local", etc.12:24
rbasaksync0pate: there may be some rules regarding ignoring filenames with punctuation in them. See the manpages for details. It's to avoid running editor backup files as jobs, etc.12:26
sync0pateok thansk12:26
sync0pate*thanks12:26
Arrickhow do I activate eth0? when I try ifup eth0, it says RTNETLINK Answers: file exists, failed to bring up eth012:31
Arrickis that because it is static?12:31
zuljamespage:  https://code.launchpad.net/~zulcss/nova/2014.1.1/+merge/22354612:32
sync0pateanyone any idea what is going on with my firewall..12:38
sync0pateit is not disrupting my current ssh connection12:38
sync0patebut is disallowing new ones12:38
sync0pateeven though it is set to "ufw allow 22"12:39
Arrickok... I know that sdb1 is supposed to be mounted to /www but it is not showing up, anyone have any ideas on how to refresh it?12:39
sync0pateufw status gives no clues12:42
jdstrandsync0pate: what is the output of 'ufw status'? (can you paste in paste.ubuntu.com?12:42
jdstrand)12:42
sync0patejdstrand, ufw status gives no clues12:42
sync0pateshows allow 22 and 80 from anywhere12:43
sync0pateneither of which are working12:43
sync0pateuntil I ufw disable12:43
sync0patethat's all it shows12:43
sync0patehttp://paste.ubuntu.com/7663524/12:43
jdstrandsync0pate: what is the output of '$ sudo /usr/share/ufw/check-requirements' (please paste in paste.ubuntu.com)12:44
sync0patejdstrand, http://paste.ubuntu.com/7663538/12:45
jdstrandsync0pate: your kernel doesn't have everything ufw needs12:45
sync0pateso.. what are my options?12:46
sync0patethis is a vps12:46
jdstrandsync0pate: talk to your vps and show them the output of that comand12:46
jdstrandin the meantime, you probably need to use iptables directly12:47
sync0pateOK thanks12:47
sync0pateI've been putting off learning iptables12:47
sync0patefor a long time12:47
sync0pateI just want to switch to a different VPS :( nothing works on this one12:49
kaitanyasync0pate: i have a cheap 2,5e/month vps, today started using so cant say anything for sure yet12:56
sync0patewhere's that from kaitanya ?12:57
sync0patejdstrand, response from the vps "Unfortunately we don't offer managed support for your OS/server. We only support Centos based servers at this time."12:59
sync0patethis is not what I would consider "managed support" ... fucksake12:59
Arricksync0pate, back up your data, and then move over to 1and1.com or someone for a VPS.... cheaper, and more reliable, and much more responsive (I use them all the time for almost 200 sites)13:02
sync0pate1and1? really13:02
sync0pate?13:02
sync0pateI've heard nothing but bad things about them in the past13:02
ArrickI use them ALL the time.13:02
Arrickin the past I would have said the same thing, but they have a new owner.13:02
Arrickin the last 2 years things really turned around with them13:03
sync0patehmm I think I need to do some shopping around13:04
sync0pateat the moment am using servint13:04
sync0pateagainst my will13:04
=== Beliq_ is now known as Beliq
histosync0pate: digital ocean13:30
sync0patehisto, yeah, as a lot of people have said digital ocean are good13:31
jamespagezul, nova looks good - please merge and upload!13:38
zuljamespage:  ack13:38
Pupenosync0pate: linode, they have a datacenter in the uk.13:38
Pupenohisto: which ## are you talking about?13:39
zuljamespage:  nova testsuite is running fine again now13:41
jamespagezul, yeah - I checked :-)13:41
zuljamespage:  new dep though :(13:42
histoPupeno: http://serverfault.com/questions/193115/how-can-i-change-the-service-boot-order-in-ubuntu-server-10-0413:42
sync0patethanks Pupeno13:42
sync0patethe person with the payment details is on holiday for a week13:42
sync0patewhen he's back I'll see if we can't switch13:42
sync0pateI got it working for now, if anyone's interested13:42
sync0pateusing this: http://blog.kylemanna.com/linux/2013/04/26/ufw-vps/13:42
Pupenohisto: that seems to be talking about systemv or however the system before upstart was called... there's a hint about how to do it with upstart in the second answer, but I'm still unsure how to prevent a service from starting if something is not mounted.13:44
rbasakPupeno: do you want "start on mounted MOUNTPOINT=..."? http://manpages.ubuntu.com/manpages/trusty/en/man7/mounted.7.html describes it.13:48
rbasakYou probably want to start on that and the event you're starting on already.13:48
PupenoAh... yes... that sounds exactly what I want rbasak. Should I put all the start on... in separate lines?13:49
rbasakPupeno: I'm not sure I understand your question. Probably no - all on one line. But see http://upstart.ubuntu.com/cookbook/#start-on13:50
PupenoThanks.13:50
PupenoYeah, that answers my question.13:50
sync0pateok now I'm stumped13:56
sync0pateI have a cron job to disable ufw every minute while I'm configuring13:56
sync0pate/var/log/syslog shows the command is running, shows no errors13:56
sync0patebut ufw is still enabled13:56
sync0patemanually running "sudo ufw disable" works without issue13:56
hallynsmb: bug 1326003, you have upload rights now?14:14
uvirtbotLaunchpad bug 1326003 in libvirt "apparmor prevents libvirt from running pygrub" [High,In progress] https://launchpad.net/bugs/132600314:14
hallyni think that may be the last low-hanging fruit for utopic's libvirt, so i tmay be about time to sru to trusty14:15
smbhallyn, Yeah I should. I though of uploading to utopic (at least first) but waited whether you have any comments14:16
smb*thought14:16
hallynsmb: nope lgtm14:17
hallynpush away :)14:17
smbhallyn, ack14:18
smb:)14:18
rbasakhallyn: does libcgroup need a merge? Ubuntu is on 0.38-1ubuntu1; Debian 0.41-2.14:21
historbasak: debian what and ubuntu what?14:31
hallynrbasak: well noone should be using libcgroup...14:32
hallynuntil/unless someone ports it to cgmanager :)14:32
hallynwhich would be very useful for at least the boot-time setup and libpam hook14:32
Solution-Xanyone here do much with MAAS? I have a fresh install of 14.04 installed as MAAS controller that is being cranky and refuses to load the images. Installed OS, booted up, apt-upgrade, reboot, create MAAS user, login, click download images. Also tried "sudo maas-import-pxe-files" after as a backup and that completes but does not result in the webpage recognizing the images' existence14:33
Solution-Xchecked celery.log and it doesnt spit any errors/warns14:35
rbasakhallyn: so is that a "no need to merge"?14:49
rbasakor just very low priority to merge, or what?14:50
=== Solution-X is now known as Solution-X|AFK
=== Solution-X|AFK is now known as Solution-X
hallynrbasak: it's a "needs to be done very carefully *and* is low priority."14:56
hallyni had bee working with jbernarnd on ways forward with libcgroup in the face of (a) the fundamental brokenness of the daemon model and (b) cgorup-lite, but then he had to bow out of maintaining the debian pkg14:57
rbasakhallyn: OK, thanks!15:04
hallynrbasak: do you know someone (including yourself) who has time to play with it? :)15:05
rbasakhallyn: no, sorry. I'm looking at a hundred or so packages that need merging!15:05
rbasakMy focus is just to prioritise the most important ones. From the sounds of it, this one needs to go at the bottom of the list.15:06
hallynrbasak: yeah fraid so, thanks15:06
hallynwasn't sure whethe ryou had someone asking about a feature :)15:07
Solution-XIts been a while and we've had a few joins/quits so reposting...15:43
Solution-Xanyone here do much with MAAS? I have a fresh install of 14.04 installed as MAAS controller that is being cranky and refuses to load the images. Installed OS, booted up, apt-upgrade, reboot, create MAAS user, login, click download images. Also tried "sudo maas-import-pxe-files" after as a backup and that completes but does not result in the webpage recognizing the images' existence. Also15:44
Solution-Xchecked celery.log and it doesnt spit any errors/warns.15:44
jhobbsSolution-X: there is #maas too15:44
Solution-Xthanks, ill post in there and see if we can figure it out in there15:47
thesheff17anyone know how to restart the networking for lxc containers....I modified /etc/default/lxc-net but I can't seem to have the lxc containers pick up the new settings...15:58
thesheff17on ubuntu 12.04 there are /etc/init.d/lxc and lxc-net but ubuntu 14.04 didn't seem to get these files16:00
thesheff17it finally worked killing the dnsmasq service and service lxc-net restart16:24
=== wendar_ is now known as wendar
zartooshHi I would like to install ubuntu 14.04 on my system and boot in UEFI mode. Using official ubuntu 14.04 dvd I failed. I know my BIOS is UEFI enabled and secure boot is enabled. I need reference how to install and how to verify I am in UEFI mode? thx16:56
=== matsubara is now known as matsubara-lunch
pmatulisLXC people, what am i missing on this trusty host?  i'm trying to set up an alternative directory for my containers ==> http://paste.ubuntu.com/7664718/17:20
pmatulisi have this working on another trusty host but i can't find any difference in configuration, albeit i set this one up a while ago17:21
pmatulisah.  i need to use 'sudo' for lxc-ls (without -P) to give the output17:23
=== jreyno40_ is now known as jreyno40
=== |J-W| is now known as |Jurgen|
=== deegee__ is now known as drussell
=== matsubara-lunch is now known as matsubara
rbasakhallyn: my machine didn't have uidmap installed. I had upgraded from saucy (and raring, and quantal...).18:32
rbasakhallyn: is there something that should be done about this? I see that liblxc1 recommended it, but evidently do-release-upgrade didn't pick up on it.18:32
rbasakClose examination of https://help.ubuntu.com/lts/serverguide/lxc.html told me that I needed uidmap, but it seems suboptimal to me that users won't get it on upgrade (assuming this reproduces)18:33
sarnoldrbasak: keeping uidmap in universe helped make the security team a little less jumpy :)18:34
rbasaksarnold: it's in main in trusty.18:35
* sarnold jumps18:35
rbasakI guess the recommendation got added between saucy and trusty then18:36
sarnoldmaybe I'm remembering an older conversation then. I know hallyn said it'd be optional for a while..18:36
hallynstgraber: ^ suggestion for uidmap package in release upgrades?18:36
rbasakIt still is optional - I just don't get user namespaces18:36
hallynsarnold: I don't remember when it would've gotten promoted.  may have happened automatically through lxc?  but xlc only recommends it, so i dunno18:37
stgraberhallyn: recommends do get promoted18:38
sarnoldhallyn: yeah, me neither, but at least it's been through a few reviews along the way :)18:38
stgraberrbasak: that seems like a bug in the upgrader or some other weirdness on your system, might be worth pinging mvo about it... lxc recommends it so it should get installed...18:38
stgrabersarnold: and at least it's a separate package, so not present on everyone's system by default (but yeah, the changes are now upstream and in Debian, so I suspect quite a few people have reviewed the setuid code now)18:39
z1hazehello, im a rookie linux server owner, can someone please help me out with checking if my java is up to date?19:12
lordievader!info default-jre19:13
ubottudefault-jre (source: java-common (0.51)): Standard Java or Java compatible Runtime. In component main, is optional. Version 2:1.7-51 (trusty), package size 0 kB, installed size 21 kB19:13
lordievaderMeh, not sure if that is helpfull.19:13
RoyKz1haze: java is usually up to date on ubuntu19:14
z1hazeit just says java version "1.7.0_60" / Java(TM) SE Runtime Environment (build 1.7.0_60-b19) / Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)19:17
z1hazei think i want to update to java 819:18
z1hazehow woudl i do that19:21
jrwrenanyone familiar enought with both cmake and autotools to give me a pros/cons of each?19:48
=== lazyPower is now known as lazypower-travel
professerslime Hi there I have a dual NIC set up and i am wondering if there is a way to dedicate one card to a vpn and the other towards the rest of the web20:34
jrwrenprofesserslime: to what end?20:35
professerslimeWell in essence i am trying to create a private cloud but i am trying to block outside intrusion to highest level20:37
professerslimeThis is all js20:38
professerslimeJust me experimenting20:38
lordievaderprofesserslime: Block every ip except yours?20:38
professerslimeto one NIC20:39
professerslimethis all seems a little redundent i know but i do have a plan with this20:40
lordievaderprofesserslime: Anyhow you can have your vpn server listen to one interface and have the primary interface the other. However this is probably not what you want.20:41
professerslimeIts just about there it would cover my goal of dividing the internet traffic20:42
lordievaderIt would make it impossible for you to reach the vpn server from the outside. And that, well, defeats the purpose.20:43
QuanquedHi - is there anyone that can point me in the right direction to disable the automatic provisioning of ephemeral disks in cloud-init?20:44
professerslimerightbut would i be able to forward the traffic using my router to divide where everything is going20:45
professerslimeI would just need to tweek the ip tabbles20:46
lordievaderprofesserslime: You want your router to divide your traffic? Why? Seems a bit silly to me.20:46
=== |Jurgen| is now known as |J-W|
professerslimeyeah once like i said this all seems a little redundent20:47
lordievaderSo what's the big idea I'm missing?20:48
professerslimeI am just trying to isolate the public from the private traffic20:49
professerslimei suppose it is just overcomplicating the QoS process20:52
lordievaderprofesserslime: Let your server act as your router.20:52
professerslimeI was thonking about that20:52
professerslimebut i am thinking about starting a rtmp server and i dont want the two services conflicting with each other20:58
=== elliotd123_ is now known as elliotd123
lordievaderWhy would they?20:59
professerslimeWell wouldn't to two flowing traffic at the same time create a bottle neck21:01
jrwrena bottle neck?21:02
jrwrenhow fast is your internet connection?21:02
lordievaderprofesserslime: For a home network? Probably not.21:03
professerslimeWell i guess that answer  saved me plenty of headache21:05
lordievaderDepends, ofcourse, on whay you do within your home network. But generally speaking, it wont be a bottleneck.21:06
=== elliotd123_ is now known as elliotd123
hacktronwhen I ifconfig I see the tx_bytes are very high. 50gb within only a hour or two after reboot23:21
hacktronanyone know what can cause that, because I have very low traffic to my server23:22
hacktrononly few hundred people each day23:22
sarnoldhacktron: heh, are you running an open dns recursor?23:25
sheptardhaha23:26
sarnoldhacktron: you might have success with the 'iftop' program, some nice pretty pictures here: http://www.ex-parrot.com/pdw/iftop/23:26
hacktronsarnold: sorry had to check was dns recursor was23:29
hacktronsarnold: no I am not just a ubuntu server with apache2 (LAMP) basics23:29
hacktrontook a look at iftop this morning and a few others that monitor badwidth23:30
sarnoldhacktron: it could be crawlers like googlebot or bingbot or baidubot.. do your access logs show anything unexpected?23:31
hacktronsarnold: didn't check them yet, I have limited access right now but will be there tonight23:32
sarnoldhacktron: okay. iftop is nice for "right now" numbers, ntop might be better for "who used it the most today?" kinds of questions23:33
hacktronsarnold: one thing I did notice was when checking bandwidth usage tcp monitoring, I saw my server listed as client and connecting to another server ip with port 77723:33
hacktronsarnold: I will gladly play with them both tonight, get to the bottom of it ;) thx23:34
hacktronsarnold: I am just thinking maybe something is installed on my server23:34
hacktronsarnold: like zombie ware lol, because the data happens so fast. and I noticed a while ago sometimes the server will bring down my connection, until I reboot23:35
sarnoldnuts. I used to have a nice long list of services but can't find it now. the only thing I can find for 777 is the 'moira' service, something from project athena days. you're not running that. :)23:35
hacktronsarnold: haha nope23:36
sarnoldhacktron: you could check 'netstat -anp | grep 777' to see what program is using port 77723:36
hacktronjust trying to get my first real box ubuntu up and secure23:36
sarnoldhacktron: do you allow password authentication over ssh? or do you have a web-based "control panel" installed?23:36
hacktronwell actually it looks like my ip is connecting to another ip:77723:37
hacktronjust ssh installed23:37
hacktronsarnold: no web-based control panel or anything outside of normal lamp server besides monitoring tools23:38
sarnoldhacktron: yay. :) double-check the password authentication when you get a chance, it's best to turn that off. keys can't be bruteforced as easily as passwords can..23:38
hacktronsarnold: thanks, I am actually going on my way to check it out now. will check back in here when I arrive. thanks again sarnold23:39
sarnoldhacktron: good luck :)23:40

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