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

raubcan anyone explain me how update-ca-certificates works?02:23
raubDoes it grab all the files that are not commented out in /etc/ca-certificates.conf?02:24
Joe_knockHello. What is the smallest server OS available?02:43
mwhudsonthat supposes a precise answer to a vague question i think02:43
Joe_knocksmallest in MB size, mwhudson02:46
mwhudsonJoe_knock: but what is a 'server os' ?02:46
mwhudsoni don't really have the time to talk about this anyway, so ignore my trolling :-)02:46
Joe_knockmwhudson: The equivalent of ubuntu server02:46
raubJoe_knock: a server provides services. If you build a bare host and then only add the serivices you need you should be able to get it rather small02:58
raubWhat is the hardware?02:58
rauband define small02:58
raubyou see, I have a ubuntu 12.04 vm that takes 2GB02:59
Joe_knockraub: This is what I am trying to do. I want to install owncloud on a 4GB USB flashdrive. it requires the AMP stack and I only have linux desktops. so I want a very thin LAMP stack installed to run owncloud. The reason why (if you ask why) is that I want to learn about building portable web apps.02:59
raubJoe_knock: have you seen what people have done to run ubuntu in the raspberry pi or the (lesser known) cubox?03:02
Joe_knockraub: that is the problem I am seeing. They're all Pi-related scenarios. I don't want to use a Pi. I just want the USB device to act as the way I communicate with owncloud.03:03
raubYou are thinking I am recommending the pi. I am not. My point is see what they did to make it fit03:03
raubHow much memory do you have?03:04
Joe_knock4GB on the flash disk. raub: I actually think I understand what you're saying now. Hacking their solutions to my scenario03:04
raubYes03:04
raubAnd actually I was meaning how much RAM do you have03:05
Joe_knockon my PCs, it is generally 1GB or higher03:06
raubYou see, you need to figure out how much hacking you are willing to do03:06
raubThe question regarding ram is you want to forget about swap and put /tmp in ram03:07
raubThis is not even hacking yet since you are still with a standard ubuntu server03:08
Joe_knockraub that is why I want the thinnest server possible. Perhaps I need to think of a way of building a USB server03:08
raubI have not finished yet03:09
raubthen you need to remove drivers for all the devices you do not use03:09
raubBut that can be fun since next kernel upgrade they might be back03:10
raubBut, you can go over all the packages03:10
raubfind out which ones you need03:10
rauband of the ones you think you can get rid of, the ones that are not needed by something you do03:10
raubI think you can get down to a few hundred packages if you take the time03:10
Joe_knockraub: Wouldn't it be easier to go the other way? I determine the packages I need, let the system pickup dependencies and install only what I need (which is basically LAMP)03:11
raubNow, if and only if you had loads of RAM, you could upload your webserver (the stuff in /var) to a ramdisk upon boot03:11
raubJoe_knock: in principle yes, but even the default is a bit bloated03:13
raubJoe_knock: How about this: https://help.ubuntu.com/community/Installation/MinimalCD03:13
raubhttp://www.maketecheasier.com/install-a-minimal-ubuntu-on-old-laptop/03:13
raubi.e. do the manual package selection03:14
Joe_knock30MB or less. damn that is small. This could actually work! thanks for that raub!03:14
raubJoe_knock: you might want to use nginx instead of apache though03:16
Joe_knockgood point again. If I'm going minimal, I might as well play with nginx too (been meaning too).03:16
raubAnd, for the love of all that is evil and putrid, do not install network manager03:17
raubneither it or gdm have any business in a server03:17
raubok, maybe gdm in very specific conditions ;)03:17
Joe_knockwould network manager apply to a LAN server?03:18
raubyou can do static and dynamic crap without needing it03:19
rauband vlans and vpns and all that exciting stuff03:19
Joe_knockso basically it is bloatware :P03:19
raubFor a laptop I can see its use03:19
raubfor a server, you can do better editing a couple of files while making hot dogs03:20
=== justizin_ is now known as justizin
Joe_knockraub: 1 last question. Is the core of ubuntu desktop and ubuntu server based on the same thing? Or are these 2 different uses of linux vastly different?03:42
sajanJoe_knock: pretty much the same thing.  To demonstrate this, you could install Ubuntu Server on a machine, and turn it into a desktop with like 3 commands and a reboot.03:46
Joe_knocksajan: That makes a lot of sense, considering how easy it is to setup a local server environment on desktop.03:46
sajanJoe_knock: yeah.  The only real difference is the packages included in each .iso; The server version excludes unnecessary desktop packages, and the installer.  Desktop you get a graphical, GUI installer, on the server version, it's more of a ncruses like installer.03:48
sajanJoe_knock: In the past, I believe they were two different kernels.  However, I'm positive even that is not that case anymore.03:49
Joe_knocksajan I think they may possibly have abandoned by original desktop kernel and simply built the GUI features on top of the server one (my theory).03:50
=== markthomas_away is now known as markthomas
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
=== markthomas is now known as markthomas_away
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== alexmoldovan1 is now known as alexmoldovan
lordievaderGood morning.09:37
rbasakjamespage: please could you subscribe ~ubuntu-server to bugs in python-jujuclient, urwid and websocket-client?09:51
jamespagerbasak, yes09:52
rbasakThank you!09:52
* rbasak carries on with the MIR09:52
jamespagerbasak, done09:53
jamespagerbasak, thanks for picking this up btw - appreciated :-)09:57
rbasakjamespage: np. I've almost done as much as I can I think. MIR reports next.10:23
jamespagerbasak, good-oh10:23
sander^workWhat's the easiest console only bootable rescue cd?10:29
omps`b11:31
omps`ls11:31
=== chuck_ is now known as zul
jamespagezul, special treat for you when you start11:45
jamespagefigure out the failing test in libvirt in the CA :-)11:45
=== pgraner` is now known as pgraner
zuljamespage:  that all? :)12:02
jamespagezul, well ceilometer needs a few bits fixing but aside from that :-)12:03
zuljamespage:  good to be back :P12:03
jamespagezul, most things are working; I've not exercised the cloud-archive that much - mainly focussed on 14.0412:03
jamespagezul, nice to have you back - how was the beach?12:03
zulok ill take a look today12:03
zulit was good...im starting to peel12:03
zuljamespage:  no problem getting home either..although its -20C outside today :(12:05
jamespagezul, lol12:05
jamespageit was nearly 19C here yesterday12:05
jamespagealmost like spring!12:05
ogra_same here12:06
ogra_like the whole winter12:06
ogra_(about 10-15°C to warm since Nov in germany)12:06
jamespagezul, I flushed everything through in the CA - http://reqorts.qa.ubuntu.com/reports/ubuntu-server/cloud-archive/icehouse_versions.html12:07
jamespage(and fixed that report)12:07
zulwhats up with openvswitch?12:10
zulbiab i need to take liam to school12:10
zuljamespage:  sorry -27C with the windchill12:28
jamespagezul, ignore ovs - it ftbfs in virtual ppa12:32
zuljamespage:  ack12:33
jamespagezul, oh also - for stable/havana13:00
jamespagehttps://review.openstack.org/#/c/80687/13:00
jamespageand https://review.openstack.org/#/c/70750/13:01
jamespagezul, adam_g pinged me last week about that and whether it would foobar us for the SRU13:01
jamespagethoughts?13:01
zuljamespage:  it shouldnt since we have oauthlib in the archive13:02
jamespagezul, yeah - and its in main - that was my thinking13:03
jamespagebut wanted your opinion on it as well13:03
zuljamespage: yeah i was the one who asked them to use oauthlib originally ;)13:03
jamespagezul, I remember!13:03
zuljamespage:  we should just add the build-depends when we are doing stable/havana though13:04
zulotherwise the tests will fail13:04
jamespageyes - agreed13:04
jamespageadam_g, OK - so we don't think the oauthlib change in stable/havana will cause issues; we'll focus specifcally on that during testing13:05
zuljamespage:  i dont think anyone is using oauth on havana in Ubuntu13:06
=== lool- is now known as lool
jamespagecoreycb, https://bugs.launchpad.net/ubuntu/+source/python-neutronclient/+bug/1292661 if you fancy it13:18
coreycbjamespage, sure thing, I'll work on it13:23
jamespagecoreycb, ta13:23
raj__ how to override global .bashrc over user .bashrc  ?14:07
ikoniaraj__: just told you in #ubuntu - please don't cross-post14:08
sleepeewhats up guys.14:12
sleepeei feel like an idiot, but i was wondering if someone knew how to make ubuntu boot into the xen kernel..14:13
smbsleepee, Activate grub menu and select the "with Xen entry" or change the grub default to the string of that submenu14:14
sleepeei edit the GRUB_DEFAULT line in /etc/default/grub but ubuntu still boots into the regular kernel.14:14
sleepeewell, i really want to change the default so i don' t have to choose the xen kernel manually every time i boot14:15
rbasaksleepee: did you run "sudo update-grub" after editing /etc/default/grub?14:16
sleepeeyes.14:16
sleepeeGRUB_DEFAULT="Xen 4.3-amd64"14:16
sleepeethat's what i have in my /etc/default/grub.14:17
sleepeebut i must be missing something else.14:17
smbsleepee, Make sure that is what is in /boot/grub/grub.cfg and then re-run update-grup14:17
smbupdate-grub14:17
sleepeenot exactly sure what i'm looking for in /boot/grub/grub.cfg but i do see this line:14:18
sleepeeset default="Xen 4.3-amd64"14:18
smbsleepee, Sorry I meant later in that file where the submenu is defined14:19
smbSo 'submenu "Xen...' or so14:20
sleepeei see: menuentry 'Ubuntu GNU/Linux, with Xen 4.3-amd64 and Linux 3.11.0-12-generic'14:20
sleepeeand:  submenu 'Xen hypervisor, version 4.3-amd64'14:20
smbSo you need that string in default14:20
sleepeeahhhhh... ok.  i've been following other guides and how-to's and they just give me the string to put in /etc/default/grub.  i guess it would've been more helpful to know where that string actually came from.  thanks smb!14:21
sleepeei'm going to edit it and reboot and then come back and let you know.14:22
smbsleepee, Yes, unfortunately it changed between releases. Which guide (maybe something I can change) were you looking at?14:22
sleepeehere's one i looked at14:23
sleepeehttps://help.ubuntu.com/community/Xen14:23
sleepeeso that means any time a new xen kernel comes out, i'd have to manually change that line in /etc/default/grub right?14:25
smbsleepee, No, only if there would be a new version of Xen14:25
smbThe setup now always picks the kernel with the highest version from that submenu14:26
sleepeeright.  got it.  thanks smb.14:26
sleepeei see.14:26
=== psivaa_ is now known as psivaa
sleepeewell, i'm going to restart and see if this works.  be right back14:27
zuljamespage:  i think i have libvirt fixed14:34
jamespagezul, what was it? I suspected hardening flags in 12.04 but was not 100% sure14:35
zuljamespage:  the failing test doesnt like Bsymblic-function14:35
jamespageah14:35
jamespageyeah - that's what I though14:35
sleepeesmb, i guess it didn't work.  :(14:35
zuljamespage:  anyways doing a test build and then ill upload14:35
sleepeei'm still running the regular kernel14:35
jamespagezul, good-oh14:35
sleepeebut i'm not sure if it's something i'm doing wrong as far as xen goes.14:36
smbsleepee, It would be the same kernel actually but just as a dom0 under the Xen hypervisor. But just to make sure, where did you change the string and did you run update-grub after (if it was in /etc/default/grub)?14:37
sleepeei changed  GRUB_DEFAULT="Xen hypervisor, version 4.3-amd64" in /etc/default/grub and then sudo update-grub14:41
sleepeeand then i rebooted.14:41
sleepeeso there's not supposed to be a different kernel when i run 'uname -r'?14:42
smbsleepee, And something like "sudo xen info" still does not work?14:42
smbsleepee, No, its the exact same kernel version as without14:42
sleepeei get ERROR:  Can't find hypervisor information in sysfs!14:42
sleepeeahhh.. ok.14:42
sleepeebut still. the xen utilities don't work so i must be doing something wrong.14:42
smbsleepee, probably. maybe you can pastebin your /boot/grub/grub.cfg for me14:43
sleepeehttp://pastebin.com/NCqhtLQX14:44
=== TREllis_ is now known as TREllis
sleepeeam i supposed to put the string that comes after "submenu" or "menuentry"?14:46
smbsleepee, Oh drat, fooled myself... Yeah it should be "Ubuntu GNU/Linux, with Xen hypervisor" from the menuentry14:46
sleepeeahh.. ok.  so basically, in this case, it should be 'Ubuntu GNU/Linux, with Xen 4.3-amd64 and Linux 3.11.0-18-generic'14:47
sleepeeright?14:47
sleepeeok.  so i edited the /etc/default/grub file and ran update-grub.  i'll restart again and come back in a minute.14:49
smbsleepee, No, I think just the string I wrote. Basically the top level menu of the Xen hypervisor entries14:49
sleepeei must not be seeing where that comes from.  what line is that from the pastebin?14:50
smbsleepee, 22014:50
sleepeeok.  i'm going to change right now.14:51
sleepeeok.  reboot time.  i'll let you know if it works.14:52
smbok14:52
Sentynelanybody using the ec2 package mirror getting signature errors on precise-updates at the moment? I don't *think* it's at my end (have run apt-get clean, cleared /var/lib/apt/lists, etc, with no changes)14:58
sleepeesmb, it worked!!!14:58
smbcool. And I added a note to the guide (hopefully correct and understandable)14:58
sleepeeyou just edited the xen documentation?15:00
smbWell the community doc, yes15:00
sleepeeok.  i see the change.  it makes sense now.  thanks for your help smb!15:02
smbsleepee, your welcome :)15:03
sleepeei've got to go now, but you were awesome!15:03
coreycbjamespage, zul: can one of you review this when you have a chance?  https://code.launchpad.net/~corey.bryant/ubuntu/trusty/python-neutronclient/1292661/+merge/21133315:04
smbzul, Just to check, you are not uploading any libvirt for Saucy any soon?15:05
zulsmb: nope15:05
zulsmb:  unless hallyn  has something15:05
smbzul, Well I got something we waited for the previous upload to go to updates and I just recently modified the proposed fix for that15:06
coreycbjamespage, zul: ps: do I need to ping you for reviews or is submitting a merge review enough?15:06
jamespagecoreycb, done15:06
jamespagecoreycb, ping is good at this point in cycle15:06
coreycbjamespage, thanks!  Ok15:07
jamespagecoreycb, I think zul and I both acked you - merged!15:07
zuljamespage:  yep15:07
smbzul, hallyn kind of has it on his todo. Just wanted to avoid doing too many small uploads if you were about to do one for S, too15:08
hallynsmb: zul: nless i have something for what?15:08
zulhallyn:  libvirt saucy15:08
hallynthere's an existing upload,15:08
smbhallyn, I just saw zul upload a version for T15:08
hallynother than taht i only had smb's right now15:08
zuljamespage:  huzzah https://launchpadlibrarian.net/169822752/buildlog_ubuntu-precise-amd64.libvirt_1.2.2-0ubuntu3~cloud0_UPLOADING.txt.gz15:09
coreycbjamespage, zul: thanks!  you guys are quick. :)15:09
smbhallyn, And note that I just updated the fix for S in bug 124802515:09
hallynsmb: yup, saw that, thanks.  when the other fix clears, i'll look at that bug for the latest diff :)15:10
smbhallyn, Ok, cool. Yeah, just tried to avoid multiple uploads as the previous upload seems to be in updates right now and zul was doing something for T which may have been something to go into S, too15:12
zulsmb:  its not going into S15:12
smbzul, /me is always trying to play safe. :)15:13
zulsmb:  i know :)15:14
hallynzul plays by a more freewheeling set of rules :)15:14
zulhallyn:  the cloud awaits you :)15:14
jamespagezul, what was the fix?15:15
zuljamespage:  LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS|sed -e 's/-Wl,-Bsymbolic-functions//g') in the debian/rules15:15
jamespagezul, smb: is it possible to get whatever fix we need for Xen in the CA into trusty as well?15:15
zuljamespage:  im working on xen now as well15:16
smbjamespage, That is already there15:16
jamespagesmb, urh - that was for libvirt15:16
zulsmb:  its gone in Xen15:16
jamespagesmb, zul has other magic for xen15:16
smbjamespage, Just minus a little update to avoid an unnecessary error in libvirts log15:16
smbzul, The LDFLAGS magic was gone in S (Debian made some fix to which flags are pulled when)15:18
zulsmb: hmm...ok15:18
zulsuck15:18
shelloxid anyone got a copy of The Official Ubuntu Server Book,  3nd Edition, July 201315:21
shelloxbought it a while ago, but I'm travelling now and would like to have a PDF of it15:22
dylanlCan someone point me to the maintainer of the precise-updates apt repo that is hosted on Amazon S3?  I am getting a signing issue running apt-get update and think there may be an issue with the repository15:26
sander^workWhy is lynx/curl not working to outside internet when I am logged in with su - username .. but it's working when I use sudo -u username -s15:32
sander^workseems it's working when I have proper root enviroment only.15:35
Sentyneldylanl: I've been trying to find out too, but no luck yet15:37
dylanlSentynel: thanks.  I asked a question on the Ubuntu forums (https://answers.launchpad.net/ubuntu/+question/245627) and AWS forums (https://forums.aws.amazon.com/thread.jspa?threadID=148233&tstart=0).  Do you mind commenting so people realize it isn't an isolated issue?15:38
RoyKAm I right in guessing that 14.04 will use a strange mix of sysv+upstart+systemd?15:39
Sentyneldylanl: commented15:40
RoyKhttp://paste.ubuntu.com/7108777/ <-- "System information disabled due to load higher than 1.015:40
RoyKbut the load is <115:41
dylanlSentynel: thanks.  I figured an apt repository used by AWS customers would be a carefully watched thing but I guess not...15:41
=== markthomas_away is now known as markthomas
dylanlSentynel: it looks like this might be isolated to us-east-1.  If I create a brand new instance in us-west-2 I can run 'sudo apt-get update' successfully.  Not sure if that helps you at all16:20
Sentyneldylanl: yeah, there's separate mirrors for each ec2 region16:20
Sentynelit's not causing me any problems just yet; it's just it's refusing updates on my established ec2 server16:21
dylanlSentynel: Yeah, wasn't sure if this was impacting all mirrors or just us-east-1.  We provision a new box each time we deploy so this is blocking us from deploying at the moment.16:22
rbasakSentynel: dylanl: are the other references you found current, or are they historical?16:52
Sentynelrbasak: somebody else asked in #ubuntu a couple of hours back16:52
Sentynelwhen I first noticed it16:52
rbasakThere's a race condition which can get apt stuck into that situation I think (it'll cache the bad or old file).16:52
rbasakOTOH, it could be a problem with the mirror.16:53
rbasakutlemming: ^^ including backscroll going back ~90 minutes.16:53
utlemmingrbasak: ugh16:54
dylanlrbasak: Pretty sure this is an issue with the us-east-1 repository mirror.  us-west-2 works fine.  And sudo rm /var/lib/apt/lists/* -vf followed by a sudo apt-get update doesn't fix the issue16:57
rbasakdylanl: thank you for the confirmation. I think utlemming is looking into it.16:58
utlemmingrbasak, dylanl: yes, indeed we are on it :)16:59
utlemmingrbasak, dylanl: sorry, and thank you for your patience16:59
dylanlutlemming: Great, thank you!16:59
dylanlSentynel: fyi - utlemming is looking at this17:08
Sentyneldylanl: yup, I saw, thanks17:08
dylanlSentynel: np17:09
utlemmingdylanl, Sentynel: DNS has been updated. As soon as the DNS cache times out things should start working17:09
dylanlutlemming: Fantastic, thanks.  Also, for my info, are you with Amazon/AWS or Ubuntu?  It would be helpful for me to know where to report issues like this in the future17:10
utlemmingdylanl: I work for Canonical/Ubuntu.17:11
dylanlutlemming: thanks.17:11
utlemmingdylanl: generally AWS lets us know pretty fast about mirror issues, but in the future #ubuntu-mirrors is a great place. Our IS team watches that IRC sub.17:12
Sentynelutlemming: I asked in there17:12
utlemmingSentynel: hrm, well normally that works.17:13
dylanl#utlemming: got it, thanks.  I opened a question on Launchpad as well (https://answers.launchpad.net/ubuntu/+question/245627).  I didn't see a way that I could close that.  Not sure if you can.17:14
toyotapieI added a startup script to /etc/rc2.d It has the executable bit but isn't executed when the server boots. Where can I see a log of why it wasn't executed ?17:26
toyotapieubuntu 12.04 LTS17:26
sarnoldtoyotapie: did you add the corresponding S??name symlinks too?17:27
toyotapieyeppers17:27
toyotapieS99myscript17:27
toyotapieI added the script to /etc/init.d/ and the symlinks in rc2.d17:27
toyotapierunlevel says I am in 217:27
toyotapieif I call it myself, /etc/init.d/myscript start, it stats immediately17:28
toyotapieREADME says I might need the LSB style header17:29
toyotapieSo the question is where is init logging too ?17:34
toyotapieto*17:34
sarnoldtoyotapie: there's a /var/log/boot.log -- I suspect it isn't as useful as you'd like though17:36
toyotapieJust my luck, I don't have boot.log17:36
sarnoldtoyotapie: and the 'upstart jobs' are logged din /var/lor/upstart/* -- but that doesn't appear to have the sysv compat jobs17:37
toyotapieyea, for some reason my ubuntu 12.04 doesn't seem to have upstart17:37
toyotapieI am looking at syslog right now. fingers crossed...17:37
RoyKtoyotapie: 12.04 uses upstart17:38
toyotapiesomething is horribly wrong with this machine. All my other 12.04 machines have upstart. THis one doesn't...17:38
toyotapielol17:38
toyotapieit's not ubuntu17:38
RoyKhehehe17:39
toyotapieAll my servers except 2 run ubuntu17:39
toyotapieone runs centos and the other debian17:39
toyotapiethis one is debian17:39
toyotapieI feel like a complete idiot17:39
toyotapiesorry to have wasted your time.17:39
RoyKdebian just uses sysv17:39
RoyKso does centos17:39
toyotapieI only use centos because of proprietairy software17:40
toyotapieand debian for t38modem17:40
RoyKoh17:40
RoyKt.3817:40
sarnoldtoyotapie: well now, that just raises new questions :) whyu isn't that machine's sysv-init working? :)17:41
RoyKI've had nightmares about that17:41
toyotapiesarnold I wish I knew. I am checking now.17:41
raj__ when I logged out of a ssh connection on remote server, I got message : Received SIGHUP or SIGTERM, what does this mean ?17:45
toyotapieI deleted all the /etc/rc?.d/S99myscript files. I did this instead "update-rc.d t38 start 2 3 4". Now when I reboot, the t38 service starts fine. thanks for your help even though it wasn't debian17:47
toyotapieubuntu*17:47
toyotapieI created a new motd script and distributed it to all my servers, now it says which O/S is on the machine when I log in :)18:04
RoyKhehe18:09
sarnoldtoyotapie: haha, nice :)18:09
RoyKI usually know, or I can run a uname -a or lsb_release -a or something to find out if I'm curious ;)18:09
toyotapieIn my case, it's easy. It's always Ubuntu unless the ssh takes more than 10 seconds to connect, at which point it's CentOs.18:10
sarnoldraj__: SIGHUP is sent to processes when their controlling terminal is disconnected -- e.g., closing an ssh connection. you might have had a background task running or suspended or similar.18:10
toyotapieI always forget that I have a machine running on debian18:10
RoyKtoyotapie: if so, it's probably a dns reverse issue, or there's ipv6 in dns and the server isn't configure correctly18:11
toyotapiehttp://pastebin.com/MvfPjEJn18:11
toyotapieI know why centos is slow, it activates GSSAPIAuthentication by default. Once I disable it and 'UseDNS no', it's as fast as ubuntu18:12
raj__sarnold: so  that should be normal when i exit an ssh conn to remote server .. right ?18:12
RoyKtoyotapie: then fix your dns18:12
sarnoldraj__: I wouldn't say 'normal' but 'not unexpected' anyway18:13
RoyKtoyotapie: I have rather a few rhel/centos machines running at work, and it takes a fraction of a second to login18:13
raj__okay..18:13
toyotapieonce GSSAPIAuthentication is off, it takes less than 1 second to login.18:13
RoyKtoyotapie: never disabled that on any of my machines18:14
toyotapiedo you have a dns resolver on each machine or do you have one for all of your servers or do you use ISP provided DNS servers ?18:14
RoyKwe have our own dns servers18:15
=== _KaszpiR___ is now known as _KaszpiR_
toyotapieI am looking for a command that will handle a line of input similar to PHP's preg_match. I want to give a regular expression, and the values that are in brackets are each assigned to a bash variable.19:10
toyotapieIs there any command that can do this ?19:10
toyotapieI think I may have found my answer19:12
toyotapien/m19:14
toyotapiehttp://stackoverflow.com/questions/2624300/save-part-of-matching-pattern-to-variable19:14
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
=== mjohnson15_2 is now known as mjohnson15
thumperhallyn: ping20:56
hallyn.20:56
thumperhallyn: I have an intersting lxc issue20:56
thumperI'm following bug 129354920:56
thumpertrying to skip past the unknowns20:56
thumperI have an lxc container20:57
thumpercloned from a precise ubuntu cloud20:57
thumperI have done the following:20:57
thumpersudo chown ubuntu:ubuntu /etc/ssl/private20:57
thumper$ ll /etc/ssl  # output snipped20:58
thumperdrwx------ 2 ubuntu ubuntu 4096 Jun 4 2013 private/20:58
thumper$ ll /etc/ssl/private20:58
thumperls: cannot open directory /etc/ssl/private: Permission denied20:58
thumperany idea why?20:58
raj__for a service although a pid file exists but still on attempt to start service, it fails saying "* could not access pidfile for Cassandra"... checked folder permissions under /var/run(owner: root) , the subfolder cassandra is owned by cassandra user but still serivice cannot access pid file.. & the file exists as well..(as pid is shown in cat)..so why says it can't service access pid file?20:58
hallynif you can put a short set of lxc commands to reproduce it in the bug, that'd be useful20:58
thumperlogged in as ubuntu user20:58
raj__& running the service as a standalone process just works.. but not  using "service <service-name> start"..!20:58
thumperhallyn: ok, let me see20:58
hallynthumper: it could be apparmor messing up (has happened before), overlayfs (has happened before esp with apparmor),20:59
thumperhallyn: my gut tells me it is aufs20:59
hallynd'oh21:00
thumperI just have a call now21:00
thumperbut will try to get a short list of commands after that21:01
hallynthx21:05
sander__Some how the enviroment variable $http_proxy is set for normal users(not root).. I've checked with bash -lx and figured out bash didnt set it.. How do I figure out where it's set? (I want to remove it).21:19
qman__sander__: grep -R http_proxy /etc21:20
qman__should point you in the right direction21:20
sander__qman__, thanks alot.. It was /etc/environment21:21
=== Guest25821 is now known as jrgifford
ilhamiHey21:38
ilhamianybody here?21:38
ilhamiI have a question. We have a school project where we have to setup servers and all that so I thought about using Ubuntu Server.21:39
ilhamiAnd I want to use my old laptop or desktop as my server21:39
ilhamihow fine will that work?21:40
ilhamiand is it easy to stress test? does Ubuntu Server have those tools?21:40
=== markthomas is now known as markthomas_away
=== markthomas_away is now known as markthomas
sarnoldilhami: there are many ways to stress a machine; if you run a full compile cycle for something huge, like the linux kernel, you'll have some amount of faith in the hardware, kernel, and toolchain21:53
sarnoldilhami: one machine that I thought was rock-solid for a few years showed trouble when I started asking it to run hour-long compile and package tasks (that was qt4-x11) -- after some way into the process, the machine would either log a non-fatal machine check exception or it would instantly reboot, having suffered from a fatal machine check exception21:54
=== markthomas is now known as markthomas_away
ilhamidude sarnold: I just have a database and a web service I am going to host21:59
=== markthomas_away is now known as markthomas
sarnoldilhami: if you want to stress-test a web service, probably the 'ab' tool can be made to help you out22:04
ilhamiI think it will be a hard enough to setup the server hehe :D22:05
RoyKsarnold: if the server can't handle the load, just use varnish22:05
mekonilhami: its very easy22:05
ilhamiyeah we will use varnish I think22:06
sarnoldRoyK: I think he wants to stress test the machine a bit to make sure it's sane before relying on it22:06
ilhamiwe would like it to be able to handle 50 requests per second? Is that fine?22:06
Sprockshas anyone here used byobu?22:07
sarnoldilhami: depends upon what those requests do...22:08
ilhamilike buying some products and also entering website22:09
ilhamibuying products from the website that is22:11
sarnoldah, okay, nothing too fancy, it feels like the kind of thing that should work fine22:12
ilhamii hope so.22:12
ilhamiCan I write the ISO to my USB?22:13
ilhami.iso file22:13
ilhamiin FAT format?22:13
ilhamiand I should go for the LTS version right?22:14
RoyKilhami: 50 requests per second would be easy for most static work. if it's active pages, use caching like varnish22:14
sarnoldilhami: depends upon what you're trying to do; if you want the USB stick to install ubuntu, you should use dd to -overwrite- the filesystem on the USB stick with the iso22:14
ilhamiI am on Windows now sarnold. :)22:14
sarnoldilhami: oh..22:15
ilhamiI can't use Unetbooting now?22:15
ilhamioops I mean for this22:15
sarnoldilhami: maybe you can? I've not looked into it. a pal wrote this, it may also be able to help http://sourceforge.net/projects/win32diskimager/22:15
ilhamiyeah I have that tool actually :D22:16
ilhamiWe are yet to find the hardware we want the server to be installed22:16
ilhamiwe are thinking about an old laptop or desktop.22:16
ilhamiis there a huge difference between the LTS and the new 13.04 version?22:17
bekks13.04 isnt new, it is EOL. 14.04 will be released in April.22:18
sarnoldilhami: 13.04 has already reached end-of-life; 13.10 release is still supported.  The newer release is using apache 2.422:18
ilhamioh yeah I meant 13.10 sorry22:19
sarnoldilhami: sticking with 12.04 LTS would be a fine choice, it'll give you the opportunity to upgrade to 14.04 whenever you'd find it convenient, rather than being forced into upgrading soon22:19
ilhamisarnold but I guess I can just update to 2.4 from the LTS version?22:19
sarnoldilhami: if you choose to compile your own apache, yes, but that's an annoying hassle :)22:20
bekksilhami: No. There are no version bumps within a release of Ubuntu.22:20
ilhamisarnold: when upgrading do I have to do a fresh install or is it now possible to upgrade without breaking packages?22:20
* hallyn tears out his hear and throw half of it at libdbus and half at pthreads22:21
thumperhallyn: oh?22:21
* sarnold throws rocks at libdbus22:21
* thumper gets popcorn22:21
sarnoldilhami: we expect that you can upgrade from release to release with a minimum of fuss; I understand some apache 2.2 configuration options have changed and are no longer available in apache 2.4; this is of course a possibility with most programs, but in general it works quite well22:22
sarnoldilhami: (I've upgraded machines through seven or eight ubuntu releases, and upgraded through a decade of debian releases before switching to ubuntu; the history of safe upgrades is strong :)22:23
ilhamisarnold I am really excited about this. :)22:24
ilhamiif it will work as we expect.22:24
ilhamiand if we can manage to set it all up22:24
ilhamiI just chose the LTS version merely because it is supported for much longer22:24
sarnoldhehe, reminds me of the first linux servers I deployed ages ago, on discarded hardware that was no longer useful for windows.. and got a clever little webserver for free out of dicsarded machine :)22:25
ilhamihehe we can just use Xampp for what?22:25
* hallyn appreciates the backup :)22:25
ilhamithat*22:25
ilhamisarnold did you use xampp as well?22:25
sarnoldthumper: I'm not sure popcorn is going to hurt, no matter how hard your throw it..22:26
sarnoldilhami: no, I just installed apache by hand22:26
hallynit might be that stuff that smells bad enough to maek it feel nautious22:26
ilhamisarnold hehe yeah that is possible too.22:27
ilhamithis server world is really new to me. :)22:27
ilhamiI hope I can come here to ask questions daily.22:27
sarnoldilhami: sure can :) we also have a helpful guide that I refer to often: https://help.ubuntu.com/12.04/serverguide/22:28
ilhamibookmarked!22:28
ilhamithanks for the answers guys. I will maybe be back tomorrow. Have a good night22:29
sarnoldhave fun ilhami :)22:29
thumperhallyn: http://pastebin.ubuntu.com/7110917/22:31
thumperhallyn: want a bug for that?22:31
hallynit's not good when _dbus_cmutex_lock itself can segv22:33
hallynthumper: pls just add that info to th eexisting bug and mark as affecting lxc22:34
hallynafter all that's the root cause right?22:34
thumperkk22:34
hallynand then i'll mark as affecting the kernel and apw will drop aufs from trusty22:34
hallyn(hopefully not :)22:34
thumperhallyn: https://bugs.launchpad.net/lxc/+bug/129354922:35
hallynthx!22:35
thumpernp22:36
=== thumper is now known as thumper-gym
=== Ursinha is now known as Ursinha-afk

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