/srv/irclogs.ubuntu.com/2013/01/24/#ubuntu-server.txt

MraAlbertinahi. do you know any way of detecting and configure the NIC briefly. ( i did a basic installation on other machine and installed openssh, then moved the hard drive to the one where i don't have any access to display. I can't get it to connetc to the network. So i believe it's necessary to detect the network card again, on this machine.00:03
=== slank is now known as slank_away
sarnoldMraAlbertina: could be, check /etc/udev/rules.d/70-persistent-net.rules and /etc/network/interfaces  -- hopefully there're some details in those00:06
MraAlbertinasarnold: hi :) i don't have access to the machine... but i can login, pass and then issue commands - but no display00:07
MraAlbertinai just login, pass then sudo reboot pass ... and it did it00:08
sarnoldMraAlbertina: hahaha, wow, what a kick. :)00:08
MraAlbertina:)00:08
sarnoldMraAlbertina: the udev rules file has a comment that says it was autogenerated by /lib/udev/write_net_rules00:09
MraAlbertinaso, i believe if i force to recognize the new nic it might work, with sort commands00:09
MraAlbertinasort/short00:09
sarnoldbleh, reading /lib/udev/write_net_rules doesn00:10
MraAlbertinaso... the only way might be to write a file in a pen and copy it over the one in there00:11
sarnolddoesn't give many hints to its correct use. pff.00:11
MraAlbertinaor moving the hard drive back to the installation box... a big pain :(00:11
sarnoldMraAlbertina: try just a bare "/lib/udev/write_net_rules", then reboot, and see what happens? :)00:11
MraAlbertinaokay00:12
MraAlbertinawhere could i get a copy of it, you know?00:12
MraAlbertinadon't worry if is too much work for you, i'll find it00:13
sarnoldMraAlbertina: it's in the 'udev' package; if it isn't installed yet, it might not even be the right track..00:13
MraAlbertinasarnold: i can't see what's installed, that's the problem.00:14
MraAlbertinait's ok. tomorrow i'll try to install in a different way00:14
sarnold*snort*  dpkg -l udev && reboot    ....00:14
MraAlbertinasnort? :o00:15
sarnoldif it reboots, it was installed :)00:15
MraAlbertinaokokok00:15
sarnoldthere's gotta be some better way to get boolean status out of a machine than a reboot....00:15
MraAlbertinasarnold: it's fine, that's a new installation so no problem with running servers00:18
MraAlbertinathere are no running servers anyway, it was a basic install00:19
MraAlbertinano... didn't reboot. tried 3 times :( so it means no changes00:22
MraAlbertinathe wireless led is on. i think there is a way of making a temp connection to wan. if so i'll ssh and change everything00:28
MraAlbertinai didn't cinfigure wireless during the installation...00:28
MraAlbertinaconf*00:28
=== cpg is now known as cpg|away
=== cpg|away is now known as cpg
Free99hello. I'm trying to resize a 1997Gb ext4 partition down to 1996Gb, I need the extra space for drbd metadata. Issue i'm running into is that every time I try running `resize2fs /dev/sdb 1996G` I get told that the requested size is larger than the number of blocks for the whole drive03:32
Free99what am I doing wrong?03:32
sarnoldFree99: /dev/sdb03:33
sarnoldFree99: it should probably be a partition, e.g. /dev/sdb1 or /dev/sdb2 or similar03:34
Free99so it should be /dev/sdb103:34
Free99ok03:34
sarnoldhow's the projcet going otherwise? :)03:34
Free99last step before I start syncing, the other server is ready to sync with this one via drbd. pretty psyched03:35
sarnoldawesome :D03:35
Free99sarnold: so I ran `resize2fs /dev/sdb1 1996G` and it says, "The containing partition (or device) is only 487584768 (4k) blocks.03:36
Free99You requested a new size of 523239424 blocks."03:36
Free99meanwhile cfdisk tells me that sdb1 is 1997.21 gigs03:36
sarnoldFree99: can you interact with the programs using units of kilobytes? the 1000 vs 1024 mega and giga stuff would terrify me to no end03:37
=== cpg is now known as cpg|away
Free99I guess that makes sense hahaha03:37
Free99is there a difference between sector size & blocks?03:38
sarnoldFree99: well.... most <2TB drives use 512 byte sector sizes / blocks (though I think they use 540 bytes on disk, what with error correcting codes...) -- but some new, large, drives use 4k sectors. or so I've heard.03:40
Free99sarnold: interesting b/c the response it's giving me mentions 4k03:41
Free994k=4096 or 4000?03:41
sarnoldFree99: 409603:41
sarnoldor at least I think the 1000 vs 1024 insanity never reached the kilobyte level :)03:41
Free99I just re-read the man page for resize2fs, the author is pretty funny when he mentions that everything is in base 203:43
Free99gibibytes (facepalm)03:43
=== cpg|away is now known as cpg
sarnoldFree99: it's actually -standardized-. *sigh* :)03:46
marshallhey ubuntu-server03:47
marshalli've got a server running a web app of mine. the app can be reached in the browser and stuff, but I can't ping google or anything when I ssh into the box. what could cause this?03:48
qman__missing or incorrect default gateway or DNS servers03:49
sarnoldcan you ping ip addresses?03:50
marshalllet's see...03:50
marshallsarnold: yeah, i can ping google's ip03:51
sarnoldmarshall: yay :) that's probably dns then. check /etc/resolv.conf and /etc/nsswitch.conf (rare for that one to break..)03:51
virusuyhowdy gents !03:51
virusuygreetings from Uruguay !03:51
=== stooj_ is now known as stooj
marshallqman__: i'm not the one hosting the server, i'm the dev. the host said they would implement ssl for us sometime today, and I'm pretty sure they messed it up, but I don't know how they could have messed it up to this point. they generated a key and cert file.03:52
marshallsarnold: everything looks normal in those files03:54
Free99sarnold: I got it resized, sweet!03:54
sarnoldFree99: awesome :D03:54
Free99but now what?03:54
Free99can I just mount it or do I have to do anything?03:55
sarnoldFree99: do whatever that drbd syncy thing you were going to do? :)03:55
sarnoldFree99: wellllll, I'd probablybe inclined to fsck. got an hour? :)03:55
Free99hmmm. my entire department's VM disk repo, or waiting a little while. hmmm.03:56
Free99they're backed up though03:56
Free99sarnold: someone was mentioning that I have to delete the partition and then recreate it03:56
Free99is that true?03:56
hallynstgraber: you know, i just built your ppa's lxc (not the pending one, the one with logfile changes) and lxc-info works fine for me03:57
hallynah03:58
hallynit's a permission thing!03:58
hallynsudo lxc-info works, lxc-info does not03:58
marshallsarnold, qman__: what do you know, the host screwed up the DNS outside the server. Thanks for your help, gentlepersons.03:58
sarnoldFree99: that was escott; his advice sounded good to me, or at least resizing the partition to match reality, made sense to me. but I've not done what you're doing. :)03:58
sarnoldmarshall: woot. nice. :)03:58
Free99cripes man, that's what really has me nervous lol03:58
sarnoldFree99: I did a resize once, a decade back, using lvm. I was terrified to run that resize2fs command, but it all worked in the end.03:59
hallynstgraber: heh i'll have to think about that03:59
hallyni might just say "screw it, that means we wait until we have unprivileged containers"04:00
* hallyn goes to put his chin on his fist in a thinking pose04:00
sarnoldthat might be a long wait :)04:00
escottFree99, sarnold im here, but i can't promise to remember what i said earlier04:00
sarnoldescott: I've got it in /lastlog if it'd be helpful :)04:00
escottFree99, you were shrinking some partitions right?04:01
sarnold< escott> Free99, the steps for something like that are usually (a) resize2fs (b) fsck (c) mount to make sure (d) umount (e) write down the partition begin and end address in LBA and CHS if you have got it (f) back up the table (g) modify the table deleting partition if needed (h) recreate the table (i) remount04:01
Free99escott: you mentioned fsck'ing the resized partition, check the data was still there, then resize the partition by noting the start and end04:01
escottsarnold, thanks04:01
escottFree99, there are two instances where the size of the partition are recorded. one in the filesystem and one in the partition table04:02
stgraberstgraber@castiana:~$ sudo lxc-info -n qatracker0104:02
stgraberlxc-info: could not build log path04:02
stgraberhallyn: ^04:02
escottFree99, you want to always ensure that the partition table entry is larger than the filesystem entry04:02
hallynstgraber: that's not the error I get04:02
hallynstgraber: I get lxc-info: failed to open log file "/var/lib/lxc/r1/r1.log" : Permission denied04:02
escottFree99, so after you resize2fs you can then shrink the table entry to match the filesystem04:02
escottFree99, tools like gparted would do that on your behalf04:03
Free99escott: that doesn't make sense, wouldn't you want to limit the size in software before you got your butt kicked by the hardware?04:03
Free99escott: doing this on ubu server, no X1104:03
stgraberhallyn: I get the same error as root and non-root. Let me strace it, see what's going on.04:03
Free99escott: I realized they are both software lol04:03
escottFree99, that is what i am describing. you limit in software (resize2fs so that the ext2 partition knows it should be smaller) and then you limit in "hardware" (cut off part of the disk with the table)04:04
escottFree99, you just dont want a situation where ext2 would be trying to write to a location which would be beyond the end of /dev/sda7 or whatever the partition device is04:04
Free99escott, now that i've resize2fs'd this mother, how do I change the partition? I was tinkering with cfdisk a little04:04
escottFree99, since you shrank you are now safe in that ext2 will never touch the bits at the end of the partition device, so you can shrink the device itself04:05
stgraberhallyn: strace doesn't show anything useful, so it fails before it tries to access/create something04:05
escottFree99, a tool like parted might allow you to shrink the partition in place, alternately you delete the entry/table and recreate in place (and then fix up UUIDs since they might be regenerated)04:05
stgraberhallyn: and I get the same problem with lxc-stop and lxc-start so can't try with a freshly started container either04:06
Free99spooky thing though, I ran cfdisk /dev/sdb and it tells me there is nothing but free space04:06
hallynstgraber: then your build is different from mine.  weird04:06
escottFree99, might it be a gpt table?04:06
hallynstgraber: what version exactly?04:06
stgraberhallyn: oh, would the fact that /var/lib/lxc is a symlink mess with your stuff? :)04:06
escottFree99, does sudo parted -l /dev/whatever show msdos or gpt table type04:06
hallynyes it probably would04:06
stgraberhallyn: 0.9.0~alpha2-0ubuntu1+b1~bzr1099-27~201301230251~raring104:06
Free99escott: nope, I ran it on /dev/sdb1 not sdb04:06
Free99so my bad again04:06
stgraberhallyn: my /var/lib/lxc and /var/cache/lxc are symlinks to sub-directories of /home/ :)04:06
hallynyeah we've got the same versions04:07
hallynlemme try as a symlink into /mnt04:07
hallynstgraber: how long is the pathname then?04:08
hallynstgraber: no, /var/lib/lxc as symlink to /mnt/lxc doesn't cause any issues here04:08
stgraberhallyn: my /var/lib/lxc/qatracker01/ once expanded would become /home/stgraber/data/vm/lxc/lib/lxc/qatracker01/04:09
Free99escott: it's an msdos disk04:09
stgrabera tiny bit shorter than that actually: /home/stgraber/data/vm/lxc/lib/qatracker01/04:09
Free99escott: http://pastebin.com/A7nRB3y104:10
Free99I ran `resize2fs /dev/sdb1 487559168` to shrink the partition04:11
escottFree99, and your next change is to the table which is /dev/sdb04:11
escottFree99, not sdb1 as you already noted04:11
Free99so how do I do this without losing data? tried googling this but it doesn't seem really clear04:12
escottFree99, see if you can use parted on the command line to shrink the partition. That would be the easiest04:14
hallynstgraber: that still works fine for me.  (wtf?)04:14
escottFree99, something like "sudo parted /dev/sdb" resize partition_number start end04:14
Free99how do I know what the end is?04:15
escottFree99, it would be start+size04:15
hallynstgraber: hm.  wait.  I think I made the mistake I warned you about earlier :04:15
escottFree99, in your case start+487559168 (making sure you have matching units everywhere)04:16
Free99escott: I changed the size of the partition by 25,600 4096-byte blocks04:16
Free99escott: so parted is saying the start is at 1049kB04:18
Free99I multiply that by 512 to get the start that I have to add to "start+487559168"04:18
Free99is that correct?04:19
Free99I'm sorry to be leaning on you like this04:19
stgraberhallyn: the path length is the problem04:19
stgraberhallyn: "p1" will work fine "a-long-name" won't04:19
escottFree99, 487559168 is in what bytes?04:20
Free99I...guess so?04:21
stgraberhallyn: 40 characters to the container path works, 41 doesn't (if that means anything to you)04:21
Free99escott: it's in 4k blocks04:21
stgraberhallyn: also, "lxc-start -n abc" where "abc" doesn't exist, will still create the directory and logfile. We probably don't want that to happen if the container doesn't exist :)04:22
escottFree99, so you shrank the disk from something like 1860GiB to 1859.9 GiB04:22
Free99right, only need about 100mb04:23
Free99really, 58.6mb by calculations04:23
hallynstgraber: your main failure is due to my typing 'sizeof' instead of 'strlen' :)04:23
Free99escott: but I rounded up04:24
stgraberhallyn: (and me not spotting it in the review ;))04:24
hallynstgraber: as for the logfile getting created, I'm actually not sure you can get what you want there, bc you want two conflicting things:04:24
escottFree99, so by my calculation your new partition needs to run from04:24
hallyn1. if someone specified logdir as /var/log/lxc, you want /var/lgo/lxc to get created04:25
hallyn2. if someone specified /var/lib/lxc/container, you don't want that to get created :)04:25
hallynnote, the container not existing is something that gets logged04:25
escottFree99, 1049kB to 1950237721kB04:25
escottFree99, but then this is where things get fun04:25
hallyni suppose this might mean Dwight can't get what he wants,04:25
hallynand we insist on using /var/log/lxc/container.log04:25
escottthat 1049kB might (and probably is) something like 1048.5 kB but is rounded up04:25
hallynbut there is still the other problem - unprivileged users04:25
hallynunless we only default to the logfile for lxc-start and lxc-execute, and everything else defaults to console04:26
stgraberhallyn: for the record, I really like the idea of having /var/log/lxc/<container>.log and not /var/lib/lxc/<container>/<container.log :)04:26
escottFree99, so you might want to go into parted and type04:26
escottFree99, "unit B; print" to and then do everything in bytes04:27
stgraberhallyn: well, in my case, it was lxc-start creating the directory I didn't want, so having only lxc-start and lxc-execute do the logging won't really help there04:27
Free99yeah, took your value, mutiplied by 1024 then divided by 4096, its pretty close to what resize2fs says the partition got resized to04:27
hallynstgraber: no, those are separate issues, indeed that wouldn't help04:28
hallynstgraber: ok i might respond to your email tomorrow then - thanks for spottin gthis, sorry for the inconvenience04:29
hallyni thought i had it all figured out04:29
hallyn(meddling kids)04:29
stgraberhallyn: I think we need a sane fallback if the default log location isn't writable (where the fallback is likely to be no logging at all) and we'll just have lxc-create write a decent lxc.logfile when using a user namespace04:29
escottFree99, and then add to the bytes reported by parted as the start the bytes reported by dumpe2fs on the device /dev/sdb104:29
Free99escott: so the value I get is 487559168*(4096/1024)=1,950,236,67204:30
Free99thats in kB04:30
stgraberhallyn: but yeah, I think we'll need to write down all the scenari and make sure we do something we think is sensible in all cases (offering enough flexibility so that distros can easily change the locations)04:31
stgraberhallyn: anyway, talk to you tomorrow!04:31
escottFree99, sure i may have typed a number wrong when i was putting it in the calculator. I would suggest you work in physical blocks or smaller because parted will round up/down04:31
Free99well I clucked up, typed dumpe2fs /dev/sdb1 and now ssh is getting mad at me, I can't press ctrl-c any faster04:32
hallynstgraber: yup, ttyl04:32
escottFree99, so Bytes or 512Bytes not logical blocks (4k)04:32
Free99escott: just wanted to check that the numbers were close04:32
escottFree99, you can safely round the size of the ext2 partition up, but you cannot miss that starting block04:34
Free99escott, roger that.04:34
Free99escott: how's this look? `(parted) (parted) resize 1 1049kB 1950236672kB`04:35
Free99hmm. getting a complaint about incompatible features on the partition04:37
Free99I already cleared out the journal04:38
escottFree99, you disabled the journal?04:38
Free99tune2fs -O ^has_journal /dev/sdb104:38
escottFree99, annoying that you would have to do that04:39
escottFree99, i realize it probably would have been easier to do the whole resize operation inside parted. i was giving the quick overview last night before i signed off04:39
Free99escott, well it's still not working, not sure what features are stopping this04:40
escottFree99, at this point parted should not care what kind of filesystem is on that partition04:40
escottFree99, because it should be small enough, but it probably checks it anyways just to make sure its a safe operation and then pukes because of other non-journal features it cannot handle (maybe extents)04:41
escottFree99, with another tool like fdisk you can just delete the partition and create a new one in the place left over04:42
escottFree99, you just have to get it all lined up correctly04:42
Free99escott, erm. I'm kind of cool with just disabling features, resizing, then enabling. doesn't that seem more sensible?04:43
Free99longer though04:43
escottFree99, disabling extents will be a time consuming operation and could result in corruption pretty easily04:43
Free99oh snap04:44
escottFree99, i don't even know if you can disable all features... thats not usually the direction people go with features04:44
escottFree99, you have your backups. i would just back up the table with sfdisk, and then use fdisk to delete the partition and create the new one in the right place04:44
Free99escott: so based on what the manual says, running sfdisk -d /dev/sdb > /root/sdb.out ought to work?04:49
escottFree99, yes04:51
escottFree99, then make sure everything on that device is unmounted before playing around with the partition table. if anything goes south you can reload the backup table you just made04:52
Free99escott: if I write the end of the partition table incorrectly, but the beginning is fine, will I lose any data?05:03
Free99beginning = 2048 bytes05:03
escottFree99, it cant be short. otherwise its ok05:04
Free99ok phew05:06
Free99think I got it05:06
Free99one other question. how do I actually get my data onto the drbd?05:06
Free99since /dev/sdb1 is the disk device and /dev/drbd1 is the drbd thing...05:06
Free99woohoo! it worked! the resize part anyhow05:08
Free99thanks a million escott & sarnold05:08
escottFree99, do fsck that partition again, then mount it read only and look around before final sign-off05:13
Free99I did, also re-enabled the journal05:14
escottFree99, i dont know what the drbd thing is so...05:14
escottFree99, and then fsck after you re-enable... basically fsck every time you do anything05:14
escottbut now that you have done it the painful way it should be much easier in the future05:15
Free99hey um escott05:32
escottFree99, yeah05:32
Free99so I ran a e2fsck and it's saying the superblock or partition table is corrupt05:32
escottFree99, well something isnt correct then05:33
Free99so should I restore the sfdisk dump?05:33
escottwas it clean after you changed the partition size?05:33
escottor was it the change in partition size that caused the corruption?05:34
Free99"The filesystem size (according to the superblock) is 487558900 blocks05:34
Free99The physical size of the device is 445382656 blocks05:34
Free99"05:34
escottif it was an issue with shrinking the partition then yes restore it05:34
escottand then make the partition table the length evidently should be 487558900 blocks so verify thats what you said it would be05:34
Free99well I think the problem may have been with the resize2fs05:35
Free99partition table has to be larger than the resize2fs right?05:35
escottso your partition start was 1049kB which is something like 2000+ blocks into the disk05:35
escottso your end is going to be 2875 58 900 + 2000 = 2875 60 900 or so05:36
Free99so basically should I start with the resize2fs then do the partition table?05:39
escottFree99, did the resize2fs not shrink the filesystem?05:40
Free99b/c it's talking about the superblock, which sounds like the 2fs tools more than a mess-up in fdisk05:40
escottis 487558900 not the number of blocks you want?05:40
Free99but its saying the physical size of the device is 44538265605:41
Free99blocks05:41
Free99so apparently I added a zero at the end05:41
Free99and its way larger than possible05:41
escottFree99, the superblock number is what is coming from resize2fs. the physical is from fdisk05:41
escottFree99, its possible you accidentaly grew the FS05:42
escottFree99, so long as you never wrote to the disk you might not notice? seems strange though and fsck should have noticed that after the resize before the fdisk05:42
Free99I remember that the disk is 1997.21G05:43
Free99if each sector is 4096bytes, then...05:43
escottFree99, 4kB would be a standard logical block size for the filesystem, but it could be other sizes05:44
escottFree99, the disk will probably report a block size of 512B05:44
Free99hmm. ok, so how do I know where the problem lies?05:46
Free99is it with my fdisk or with my 2fs?05:46
escottFree99, i dont know what you started with so i dont know for sure what to say05:46
Free99I started with resize2fs05:47
escott487558900 in 4kB blocks is 1859.9 GiB05:47
Free99yep, definitely messed up on the resize2fs05:47
escott445382656 in 4kB blocks is 1699 GiB05:48
escottthats unfortunate b/c thats the slow one05:48
Free99dang man05:51
Free99I think the data is gone05:51
escottFree99, did you restore the table with sfdisk?05:52
Free99sfdisk -O sdb.out05:53
Free99right?05:53
escottFree99, its in the manpage "man sfdisk | grep -C5 -- -d"05:54
Free99oh phew!05:55
Free99it worked05:55
Free99good call bro05:56
escottas long as you don't mount the disk read-write until it passes an fsck you should be ok05:56
Free99any reason I should pick e2fsck over fsck or vice-versa?05:57
escottFree99, no. one will call the other05:57
Free99phew ok. passed fsck05:58
Free99files all seem to be there05:59
Free99think I ought to be ok to mount06:00
escottFree99, as long as you are passing fsck you should be fine06:01
Free99guess I'll try this again tomorrow. Thanks for your help escott06:07
escottFree99, alright goodluck06:08
Free99you rock man. peace06:08
escottFree99, you've stumbled through the basic mistakes and recovery so it should be easier for you tomorrow06:08
=== smb` is now known as smb
daffy|2Hi all08:13
koolhead17hi08:13
daffy|2i've a question about selecting a version when i'm installing a package with ubuntu (the latest)08:14
daffy|2i need to install a specific older version of java (java version "1.6.0_22")08:14
koolhead17daffy|2: oracle java is not specifically supported from ubuntu repo08:15
koolhead17you have to do it urself :)08:15
daffy|2:)08:15
daffy|2so i have to compil this version08:16
daffy|2i use the openjdk on my second server, but it's running under centos08:17
koolhead17daffy|2: yes. do it yourself :)08:24
daffy|2thanks for help08:29
SpankyAnyone know how to tell if "local application" in Java Visual VM is dangerous or not?08:36
SpankyI'll try #javasec...08:37
=== yofel_ is now known as yofel
daniel_-I get this error when I deploy to my server:        sudo: no tty present and no askpass program specified09:51
daniel_-my repo is in /var/git and gets deployed to /var/www09:51
rbasakdaniel_-: did you get anywhere with RequestTTY in ~/.ssh/config and/or NOPASSWD in sudoers?09:55
rbasakdaniel_-: I suppose another solution would be to change permissions so you don't need sudo09:56
rbasakdaniel_-: Or you could set a suitable askpass09:56
daniel_-nopasswd I havent tried yet09:56
=== matsubara-afk is now known as matsubara
daniel_-hey rbasak there is no config in ~/.ssh10:19
rbasakdaniel_-: by default there isn't one - you'll need to create it10:19
daniel_-on my server or my local computer?10:20
rbasakLocal computer. You might want to limit the entry to apply to only your server with a Host directive. And I'm not entirely sure that it'll work with git. sudoers NOPASSWD should work. It all depends on the approach you want to take10:20
daniel_-rbasak: thx Ill try this one now10:22
daniel_-rbasak:        /Users/daniel/.ssh/config: line 4: Bad configuration option: RequestTTY10:27
rbasakdaniel_-: it needs to go under a Host stanza10:28
rbasakdaniel_-: Host my-server.example.com10:28
rbasakdaniel_-:     RequestTTY yes10:28
daniel_-Host myhost10:29
daniel_-  RequestTTY yes10:29
daniel_- /Users/daniel/.ssh/config: line 2: Bad configuration option: RequestTTY10:29
daniel_-       /Users/daniel/.ssh/config: terminating, 1 bad configuration options10:30
rbasakNot sure then, sorry10:30
daniel_-np. Ill try some of your other solutions10:31
daniel_-what would I add to visudo? I mean I run a deploy from my local computer which checks out /var/git/xxx and deploys to /var/www/xxx All files and folders belong to my user10:34
daniel_-there is no git user on my /etc/passwd10:35
rbasakdaniel_-: evidently your user is trying to do something as root by calling sudo as part of your deployment. If you want to stop the error this way, then either don't call sudo, or allow sudo to permit access as root without your password10:40
=== cpg is now known as cpg|away
rbasakAs an example, this line allows the ubuntu user to access root without a password:10:41
rbasakubuntu ALL=(ALL) NOPASSWD:ALL10:41
daniel_-thx10:46
daniel_-for your help rbasak10:49
daniel_-now it works10:50
quietone I can't mount an encrypted drive, mount returns "NTFS signature missing"11:18
psivaajamespage: virtual host server installations do not include cpu-checker from 20130120 onwards. Is that intended? (virtual-host smoke tests failing with kvm-ok not being installed doe amd64)11:23
quietoneit's used for rdiff-backup and I didn't expect it to be NTFS11:25
quietonenot much experience in this area. Any reading suggestions appreciated11:25
Andrei...11:45
psivaajamespage: Daviey: reported a bug for the issue above ^ bug 110398212:40
uvirtbotLaunchpad bug 1103982 in ubuntu-meta "cpu-checker is not included in virtual host server installations from 20130120 onwards" [Undecided,New] https://launchpad.net/bugs/110398212:40
LuizAngiolettiHello there! How do I know the script I put under /etc/cron.daily/ is being run every day?13:13
LuizAngiolettiThe infos at https://help.ubuntu.com/community/CronHowto are a little out of date, as it seems.13:13
virusuyLuizAngioletti: take a look at /var/log/syslog13:18
LuizAngiolettidone that.13:19
virusuydon't you see a line like13:19
LuizAngiolettiIt appears my script hasn't run, although I can see a line from cron at 6h25am this morning13:19
virusuyoh13:19
LuizAngiolettiany ideas on why it wouldn't run? The perms and ownership are right.13:20
virusuyand what said that line ?13:20
LuizAngioletti ubuntu CRON[19838]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))13:21
LuizAngiolettivirusuy: ?13:21
virusuyuhmm13:21
virusuycreate a new script, a easy one .. like a scripts who execute "ifconfig -a" and send the output to a plain file in /tmp13:22
virusuyand see if that works13:22
virusuyif it does.. then is something wrong with your script13:22
LuizAngiolettimy script takes some 30s to execute completely, could that be it?13:23
LuizAngioletticron doesn't want to wait, or something.13:23
virusuyLuizAngioletti: nope..13:23
virusuyLuizAngioletti: that shouldn't be the problem13:24
LuizAngiolettiand what if the script runs properly by means of ./script.sh?13:24
virusuyin your script, what do you do ??13:25
virusuyi mean13:25
virusuyusing commands ... like in terminal ?13:25
virusuyor you execute instead of ifconfig -a ... /sbin/ifconfig -a13:26
LuizAngiolettiI use commands like in the terminal.13:26
virusuyok.13:26
virusuyprobably thats the problem13:27
LuizAngiolettihow?13:27
virusuyi do not really know why13:27
virusuybut sometimes, and in some cases..cron doesn't seems to have the right PATH to those commands13:28
virusuyand thats the reason why if you run manually your script it works13:28
LuizAngiolettiSo, I'd have to go... /sbin/ifconfig -a13:29
LuizAngiolettiabsolute paths?13:29
LuizAngiolettifor everything?13:29
virusuyor set the path at the beggining of the script13:29
virusuybut i don't know if that's a "healty" practice13:29
LuizAngiolettiPATH=$PATH:blah/blah?13:30
virusuyyes13:30
virusuyor13:30
virusuyyou can set something like13:30
virusuywell.. what you said seems good13:30
LuizAngioletti=P13:30
virusuyanyway, wait a few minutes to see if someone where can help you with an easy way13:30
virusuyin fact help us :-P13:31
LuizAngiolettivirusuy: thanks for the insight though.13:33
virusuyLuizAngioletti: you're welcome13:34
=== Ursinha-afk is now known as Ursinha
=== Ursinha-afk is now known as Ursinha
=== slank_away is now known as slank
LuizAngiolettiNow that a lot of text has gone by...14:45
LuizAngiolettiwhy would a script not be run by anacron?14:45
LuizAngiolettiIt runs perfectly as ./script.sh but it isn't run when under /etc/cron.daily/ or /etc/cron.hourly.14:46
LuizAngiolettivirusuy: it doesn't work to simply put the PATH=$PATH:/blah14:47
LuizAngiolettivirusuy: I don't really know why... but if I schedule my script to be run by "crontab -e", it gets run. If I simply put it under /etc/cron.hourly, it doesn't.15:04
RoyKhow did you put it under /etc/cron.hourly? just copy or symlink the script in?15:06
LuizAngiolettiRoyK: I copied it.15:06
=== matsubara is now known as matsubara-lunch
RoyKLuizAngioletti: looks like /etc/crontab uses run-parts to run those15:07
RoyKperhaps try manually15:07
RoyKor use the crontab ;)15:08
LuizAngiolettiRoyK: That means that I can't simply put scripts under the .[period] directories?15:08
LuizAngiolettiHow do the files already in there get executed and mine don't?15:08
RoyKno idea15:09
RoyKcheck the logs15:09
LuizAngiolettiRoyK: It doesn't get run.15:09
LuizAngioletti(my script I mean).15:09
LuizAngiolettithe run-parts run normally.15:09
* RoyK has no idea15:10
LuizAngiolettiPeople simply put them under crontab?15:10
RoyKI usually use crontab -e, though, to keep all my stuff in one place15:10
LuizAngiolettiok.15:10
LuizAngiolettiWell... it works there... =)15:11
Picicron.hourly doesn't necessarly run at 0 minutes past, so I don't find it useful for my stuff either.15:11
LuizAngiolettiPici: It runs at 17 minutes past, by default.15:11
rbasakLuizAngioletti: is your script executable? Also, check the run-parts manpage for naming rules.15:15
LuizAngiolettirbasak: It is +x , and I've just done that. The script name is clean-operation.sh15:15
LuizAngiolettirbasak: I supose it can't be named with a . then.15:16
rbasakLuizAngioletti: there's run-parts --test /etc/cron.hourly. Does that list it?15:16
rbasakLuizAngioletti: ah yes. Looks like '.' is not permitted15:17
LuizAngiolettirbasak: It always pays to wait. Some knowledgeable sage comes to the rescue. =)15:18
LuizAngiolettiRoyK: There is our answer. See, virusuy ?15:19
virusuyLuizAngioletti: wow.. nice15:19
virusuyrbasak: thanks !15:20
rbasakNo problem!15:20
LuizAngiolettirbasak: =) thank you.15:21
jcastrojamespage: hey, do you know if elasticsearch on anyone's radar as far as packaging?15:28
jamespagejcastro, not that I am aware of - is it java?15:28
jcastroit is15:28
jamespage(guess it is as you are asking me :-))15:28
jcastroand the charm grabs from upstream and some people want a more debian-like experience15:28
jibelsmoser, jodh I found bug 1103881 this morning, not really critical but really annoying. I *think* it's upstart but have no evidence. If you could have a look that'd be nice.15:37
uvirtbotLaunchpad bug 1103881 in cloud-init "cloud-final is never executed if upstart is upgraded during initialization of the image " [Undecided,New] https://launchpad.net/bugs/110388115:37
smoserjibel, hm... that is bad.15:37
jodhsmoser/jibel: upstart will now restart itself on package upgrade if the running instance is capable of stateful re-exec. However, I don't know what that means in the context of cloud-init I'm afraid.15:49
smoserjodh, well, i'd hope that cloud-init can remain blisfully unaware15:52
smoserjodh, you can take a look at the upstart jobs there15:52
jodhsmoser: the whole point of stateful re-exec is that it is supposed to be transparent to the system too. I think we need to see some logs here.15:54
jibeljodh, what kind of log do you need?15:56
jibelthe issue is 100% reproducible with yesterday's images15:57
jodhjibel: the system log / dmesg with Upstart in debug mode (boot with --debug). Then we can see when the re-exec occurred and what happened afterwards.15:58
jodhjibel/smoser: to save me learning cloud-init, can you tell me at what point in the boot it runs apt-get?16:00
Davieyzul: did you see bug 1104137 ?16:02
uvirtbotLaunchpad bug 1104137 in nova "FTBFS on raring in schroot" [Undecided,New] https://launchpad.net/bugs/110413716:02
=== matsubara-lunch is now known as matsubara
zulDaviey: yeah its effing testrepository failures that i havent figured out how to fix them16:03
zulwithout disabling the tests16:04
Davieyzul: i fear it's blocking jdstrand16:05
zulDaviey: ill talk to him16:05
zuljdstrand: ping16:05
jdstrandhey16:06
smoserjodh, early-ish.16:10
smoserstart on (filesystem and started rsyslog)16:10
smoserbut other things shove that to also happen after networking is up16:11
drPoo hi all, Im runnint 10.04 LTS on a headless server and I get the following when running df -h "100% /var/lib/ureadahead/debugfs". Has anybody ran into this issue? I found this page http://www.somewhereville.com/?p=1370 telling me to "sudo mv /etc/init/ureadahead.conf /etc/init/ureadahead.conf.disable". Any ideas?16:14
roaksoaxSpamapS: hi Clint! How's everything? Hey I've seen you've been doing SRU's every now and then. When you can, do you mind taking care of bug #1049177 please? It would be very much appreciated16:15
uvirtbotLaunchpad bug 1049177 in isc-dhcp "isc-dhcp-server apparmor profile should have include ".d" " [Medium,Fix committed] https://launchpad.net/bugs/104917716:15
SpamapSroaksoax: yeah I do SRU's when I have some spare time... might have better luck with bdmurray today.16:18
roaksoaxSpamapS: cool thanks :)16:23
RoyKdrPoo: dunno - seems /var/lib/ureadahead/debugfs is on the root fs on my lucid box16:25
RoyKdrPoo: pastbin output of "mount", please16:26
jibeljodh, logs attached to the bug report16:27
pythonsnake where does service starting errors go to?16:29
RoyKdaemon.log, usually16:30
pythonsnakethanks16:30
pythonsnakeis it in var log16:30
RoyKyep16:31
RoyKerm, perhpas /var/log/syslog16:31
drPooRoyK, http://pastebin.com/4gA40L5t16:32
pythonsnakehmmmmmmmmmmmmmm16:34
drPooRoyK, and currently I cannot upgrade mountall because I have no space...16:35
=== pythonsnake is now known as pythonnaute
=== pythonnaute is now known as pythonspace
=== RoyK is now known as Guest35945
=== RoyK^ is now known as RoyK
zulhallyn: they just tagged a rc for libvirt 1.0.2 i think it would be good to have in raring16:58
zuler...not the release candidate but 1.0.2 final16:58
=== pcarrier_ is now known as pcarrier
hallynzul: no objection from me.  Do you know if it contains the commit "qemu: Relax hard RSS limit" ?17:08
hallynzul: and have you enabled --with-vbox?17:08
hallynstgraber: just about ready with the new logfile patchset - good news is no packaging changes will be required for us now17:08
zulhallyn: havent looked at it yet hopefully this afternoon17:08
stgraberhallyn: nice17:09
hallynzul: 'm sorry!  i thought you said *you* tagged it, i.e. had it ready :)17:10
zulhallyn: i wish17:10
jamespagehallyn, are you aware on anything in quantal which would cause the permissions on /dev/kvm to be root:root rather than root:kvm17:16
jamespagehallyn, I keep seeing it on a test system and its breaks my 'power control'17:17
hallynzul: ok, well if i have time i was going to push a libvirt for those two fixes anyway, so let me know if you start the merge, otherwise i'll just merge17:17
hallyn(if i have time - i'm not here tomorrow)17:17
hallynjamespage: i'm not aware of what it is, but we've seen it before (i.e. adam_g i think saw it)17:17
zulhallyn: sure remember they are rc candidates so im just suggesting we upload 1.0.2 when it hits final17:18
hallynzul: oh, ok  nm then17:18
hallynjamespage: it seemed as though udev wasn't seeing inotify updates of rules.d17:18
hallynjamespage: oh, can you check your udev logfile?17:18
hallynjamespage: is there a msg about group kvm not existing?17:18
jacobjamesHello. Downloading Ubuntu server right now. Trying to set up home web server. How do I go about this?17:18
hallynif so, then perhaps i'll try simply restarting udev altogether17:19
jacobjamesAlso trying to get the remote desktop working?17:19
jacobjamesAny help would be awesome. Thanks.17:19
jacobjamesRemote desktop for multiple users that is.17:19
RoyK!ltsp17:19
ubottuLTSP is the Linux Terminal Server Project, which adds thin-client support to Linux servers. See chapter 3 of the !edubuntuhandbook, http://www.ltsp.org and/or http://en.wikipedia.org/wiki/Linux_Terminal_Server_Project17:19
rbasakjacobjames: https://help.ubuntu.com/12.10/serverguide/httpd.html17:20
=== JoeVLcek is now known as JoeVLcek-lunch
patdk-wkroyk, I don't think he wanted many thinclients17:24
jamespagehallyn, I can reproduce it on demand by fixing the permissions and then stop/start qemu-kvm17:24
jamespageI also have an issue where nested kvm is not enabled on install; only after restart17:24
axisyshow do I find out which disk is sdd ?17:25
RoyKjacobjames: what sort of remote desktop?17:25
axisys/dev/sdd rather17:25
axisysdd if=/dev/sdd1 of=/dev/null count=10000 bs=1024K to see which one showing activity.. any other way?17:25
jcastroheya smoser17:26
smoserhey17:26
jcastrohttp://askubuntu.com/questions/245096/adding-nodes-to-maas17:27
jcastroI asked around and someone told me that the missing wiki page is somewhere on the server team's pages, and to ask you17:27
jamespagehallyn, "Jan 24 12:27:16 caipora udevd[20668]: set permissions /dev/kvm, 020660, uid=0, gid=0"17:27
hallynjamespage: you mentioned /dev/kvm being root:root  after install - are you sure you're not conflating that (sometimes happening) with the group::--- acl sticking around?17:32
jamespagehallyn, hmm17:32
hallynjamespage: there are several issues all messing up /dev/kvm17:32
hallynthe one about stop/start qemu-kvm sounds new though, can you tell me more about it?17:32
jamespagehallyn, OK - so I restarted udev and then did the start stop of qemu and the permissions are correct17:32
hallynjamespage: can you reproduce that again from scratch (from install)?17:32
hallynif so, i think we have a udev bug17:33
hallynthat we can report17:33
jamespagehallyn, I've seen it on two systems now17:33
jamespagehmm - actually all 417:33
jamespageI suspect that most systems get rebooted after install17:33
hallynjamespage: yeah but there are so many things messed up i'd like 100% precise, specific, reproducible steps :)17:33
jamespagethese ones don't17:33
jamespagehallyn, OK - lemme work something out17:33
hallynjamespage: no not too long ago i 100% fixed it.  then it broke again :)17:34
hallynjamespage: thanks!17:34
hallynjamespage: and note, if you find kvm failing, but /dev/kvm is root:kvm 0660, then check 'getfacl /dev/kvm', which should show a group::--- acl in that case17:34
hallyni have a bug with proposed 1-line patch for udev to stop that one17:34
jamespagehallyn, once the permissions are OK it works just fine.17:36
=== JoeVLcek-lunch is now known as JoeVLcek
pythonspaceanyone got docs fr nginx fastcgi_params pleasE?18:11
hallynzul: hm, actually i suspect 1.0.2 will require some packaging changes, something about manually removing ipv6 filter rules...  just heads-up18:11
zulk18:12
Grey_LokiHi, i've got a server I haven't updated for a while, it's running 10.10, I want to upgrade it to the latest LTS release (which I believe is 12.04), what's the best way of doing this?18:26
lifelesssudo do-release-upgrade18:26
patdk-wkyou will have to upgrade it to 11.04 -> 11.10 -> 12.04 :(18:27
Grey_Loki'command not found' on sudo do-release-upgrade18:27
lifelesspatdk-wk: wasn't 10.10 also an LTS? we support LTS->TLS upgrades18:27
RoyKsudo -i first18:27
patdk-wkapt-get install update-manager-core18:27
Grey_LokiApparently 10.04 was an LTS18:27
Grey_LokiNot entirely sure why I didn't use that one on this box to begin with18:27
* Grey_Loki smiles18:28
lifelessoh, rar yes.18:28
patdk-wkeven .04 are lts :), 6.04 8.04 10.04 12.04 and hopefully 14.0418:28
RoyKGrey_Loki: it's usually little problems with upgrading, but issues may arise - just try18:30
Grey_Lokipatdk-wk: apt-get update and apt-get install update-manager-core both fail with error: 404  Not Found [IP: 91.189.92.202 80]18:30
patdk-wkgive it internet access?18:31
patdk-wkoh18:31
patdk-wkthat is probably too old18:31
patdk-wkyour going have to use the archive repo's18:31
RoyK11.10 should be supported18:32
patdk-wkbut he is using 10.1018:32
patdk-wknot 11.1018:32
RoyKoh18:32
sarnold10.10 was natty, retired a while back18:32
Grey_LokiI'm updating from 10.10, here's a full pastebin of an apt-get update - http://pastebin.com/HpxXrbBP18:32
Grey_Lokipatdk-wk: so an edit of /etc/apt/sources.list with some 'new' repos?18:32
RoyKGrey_Loki: there are archives out there18:32
patdk-wkarchive.ubuntu.com18:33
Grey_Lokipatdk-wk: the last parts of my pastebin mention archive.ubuntu.com - are they pointing to the right area?18:33
patdk-wkdunno, need to see sources.list18:33
RoyKpatdk-wk: maverick isn't thhere18:34
Grey_LokiOne mo.18:34
patdk-wkodd, why does it say maverick, if your on 10.1018:34
sarnoldpatdk-wk: my fault. sigh :)18:34
Grey_Lokipatdk-wk: http://greyloki.dyndns.org/sources.txt18:34
RoyKpatdk-wk: perhaps because 10.10 == maverick18:34
patdk-wkoh, now sarnold confused me :)18:35
pythonspacecompile and install xorg without root <- possible?18:35
patdk-wk:)18:35
RoyKpythonspace: no18:35
pythonspacewhy18:35
RoyKpythonspace: compile, yes, install, no18:35
sarnoldpythonspace: compile, probably :) install? no.. run? no..18:35
pythonspaceeven with prefix?18:36
patdk-wkGrey_Loki, adjust archive.ubuntu.com to old-releases.ubuntu.com18:36
RoyKpythonspace: Xorg runs as root18:36
pythonspaceoO18:36
TheLordOfTimewhat RoyK said.18:37
pythonspacei thought i was running it as a user18:37
pythonspacexinit18:37
pythonspaceHm18:37
pythonspaceHow about running Xorg with ~200mb ram?18:38
sarnoldpythonspace: should be doable, if you don't mind not running Gnome or Unity or KDE...18:39
pythonspaceNo DE of course18:39
sarnoldpythonspace: dwm, wmii, i3, fluxbox, lxde, xcde (is that right?), might be more useful18:40
pythonspaceI  want a skype server thingy18:40
Grey_Lokipatdk-wk: apt-get update ran nicely with that, next step is to apt-get install update-manager-core and then do-release-upgrade as root?18:40
patdk-wkyep18:40
patdk-wkyou might, or might not have to change that back though18:40
RoyKpythonspace: perhaps twm?18:41
* RoyK sniggers18:41
sarnoldRoyK :)18:41
pythonspacehow much ram do you think would a minimal xorg + skype consume?18:41
sarnold... though you _can_ run X without any window manager, if you wish.18:41
RoyKpythonspace: with 200MB I'd forget about it18:42
sarnoldpythonspace: Xorg on my laptop has 28 megabytes "resident" memory. no idea on skype...18:42
pythonspace:(18:42
RoyKGrey_Loki: yes...18:43
RoyKas patdk-wk said18:44
pythonspacehow about18:45
pythonspacenvm18:45
RoyKdunno - window managers aren't really a server question, after all, nor is X18:46
pythonspacebitlbee server :P18:46
sarnoldbut why run X at all?18:47
pythonspacefor skype18:48
Andreiwhy running xorg and skype on a server ?18:48
pythonspacefor bitlbee skype support18:48
Andreisorry, but i don't see the point18:48
Grey_Lokipatdk-wk / RoyK - upgrading nicely, thanks for your help :)18:49
RoyKto 11.04?18:50
patdk-wkwell, 10.1018:50
patdk-wkthen onto 11.04 :)18:50
patdk-wkoh wait, he was on 10.1018:51
* patdk-wk is hopelessly confused18:51
* patdk-wk smacks himself18:51
* RoyK attends18:51
* TheLordOfTime chuckles18:51
sarnoldpatdk-wk: _I'm sorry_ :D18:52
RoyKbrb - reboot18:56
RoyKb18:59
cocoa117when using nfsv4 to export filesystem to linux client. does the locally bind filesystem automatically export?19:01
cocoa117<cocoa117> e.g. /media/pool/family on /srv/sto/home/pans/multimedia type none (rw,bind)19:01
cocoa117so when i exports /srv/sto/home as root to clients, do i get access to the /meida/pool/family folder?19:01
=== matsubara is now known as matsubara-afk
m_tadeuhi...Im trying to build some sources and I'm getting this error -> No rule to make target `/usr/lib/libpangoft2-1.0.so', needed by `src/libwt.so.3.2.2'.  Stop.19:03
sarnoldcocoa117: I don't think NFS exports cross filesystems19:03
m_tadeuthe thing is that libpangoft2 is inside /usr/lib/x86_64-linux-gnu/19:04
m_tadeuhow can I deal with this?19:04
hallynzul: I will probably push http://people.canonical.com/~serge/libvirt.debdiff this afternoon19:04
zulhallyn: you dont need any additonal depends for vbox?19:05
hallynzul: nope, builds just fine19:05
zulk19:05
zul+119:05
hallyngonna re-build and re-run the testsuite first...19:05
sarnoldm_tadeu: it'd probably be easiest to install libpango1.0-0 or whatever package provides that file on your release...19:05
cocoa117sarnold, so does it mean i need to export each filesystem separately?19:07
sarnoldcocoa117: that's my recollection19:07
m_tadeusarnold: libpango1.0-0 is also in /usr/lib/x86_64-linux-gnu/19:11
sarnoldm_tadeu: now I think you either get to teach your Makefile about multilib, or give it a new library search path..19:13
m_tadeusarnold: autch19:13
RoyKthere - perhaps done with rebooting this vm for a while...19:13
adam_gzul: http://people.canonical.com/~agandelman/g2_deps/pyparsing/ need this for quantumclient (and probably others)19:32
zuladam_g: looks good19:33
zullifeless: so if you want to reproduce that reliably in a chroot, clone the git source for nova ; apt-get build-dep nova then run the testsuite19:55
=== pythonspace is now known as pythonsnake
JonEdneyWhen I try to run screen on my 12.04 server, I receive "Cannot open your terminal '/dev/pts/1' - please check.".20:20
JonEdneyHmm, seems screen dont work when you su to the user, nvm20:22
=== slank is now known as slank_away
=== slank_away is now known as slank
jcastroutlemming: ooh, I have been waiting for non-manual cloud images, nice!20:46
utlemmingjcastro: yup, its been a long time coming. 10.04 went out the door last night. And I am going to slowly turn on the others.20:47
utlemmingjcastro: it was a fair amount of work to get everything in place though. A lot of moving parts.20:47
hallynahs3: netcf 0.2.3-1 pushed to ppa:serge-hallyn/virt for a test.  very minor changes, don't expect any problems20:48
hallynahs3: (will ping you when ready for push to experimental)20:48
ahs3hallyn: okey dokey.  thx for the heads up20:49
jcastroutlemming: I'm sure, I like how it matches the kernel cadence, that's hot action20:49
hallynahs3: if you get sick of these pls let me know :)20:51
utlemmingjcastro: the kernel cadence was the easy part, and the natural choice. We want users to use the latest kernel.20:51
ahs3hallyn: heh.  no worries.  you may want to become a DD at some point :)20:53
hallynahs3: yup20:57
jacobjamesHey I just got finished installing Ubuntu Server... I am at a command prompt... NO GUI? What the heck do I do?21:26
pythonsnakelol jacobjames21:27
jacobjamesyeah funny.21:27
jacobjamesused to the nice ubuntu GUI.21:27
pythonsnakewhere did you install it21:27
jacobjamesLeast I was able to login21:27
yeatsjacobjames: ubuntu server doesn't come with a GUI by default21:27
jacobjameshow do i get one?21:28
jacobjamesfrom the command line21:28
pythonsnakejacobjames: use ubuntu not ubuntu server21:28
hallynapt-get install ubuntu-desktop works for me21:28
jacobjamesI need to use the server to host my website.21:28
yeatsjacobjames: I wouldn't add ubuntu desktop to a server21:28
pythonsnakeyou should probably learn to not use X21:28
hallyn(don't need desktop to host your website, but...)21:28
yeatsjacobjames: I would do 'sudo apt-get install tasksel' and then 'sudo tasksel' selecting lxde21:29
jacobjamespermission denied on the apt-get install ubuntu -desktop21:29
yeatsjacobjames: if you're going to install the full desktop, I would do what pythonsnake suggests and just install desktop ubuntu21:30
jacobjamesk working on taskel21:30
pythonsnakejacobjames: sudo21:30
jacobjamestaskel is already at newest version???21:30
pythonsnakehmm21:31
yeatsjacobjames: okay - then 'sudo tasksel'21:31
virusuyhowdy gents!21:31
jacobjamesnice. desktop loading.21:31
jacobjamesThanks python21:31
yeatsjacobjames: you may be out of your depth if you're thrown by this kind of thing though21:31
pythonsnakehow are you gonna configure your web server21:32
jacobjamesPretty computer savy, just some new territory. Should be climbing soon. Just gotta get some help on where to get the gear.21:32
jacobjamesapache21:32
jacobjamesgot my a record pointed to my ip this morning.21:32
pythonsnakeok21:32
pythonsnakeuse nginx21:32
jacobjameswhat is nginx21:33
pythonsnakeweb server21:33
jacobjamesdifferent then apache?21:33
pythonsnakebetter21:33
pythonsnakefor you, probably21:33
jacobjamescool. Thanks for the info.21:33
jacobjameswhat about a good ftp?21:33
pythonsnakeand learn to use the command line <- urgent21:33
sarnoldplease don't use ftp21:34
pythonsnake^^21:34
uvirtbotpythonsnake: Error: "^" is not a valid command.21:34
virusuyLOL21:34
jacobjamesok.21:34
jacobjameswhy shouldn't I use ftp?21:34
jacobjamesanyone running thin clients out there?21:34
virusuybesides security issues ?21:35
jacobjameswant to set up some thin clients on this server also.21:35
virusuy(related to ftp)21:35
jacobjamesI though ftp was very secure?21:35
pythonsnakeim curious, where did you get your server  jacobjames21:36
jacobjamesoff ubuntu site.21:36
dingo311i am having problems with my internet/server. at this point i get timeouts from ping but yet am still able to connect to the internet, browse... just fine. i cannot remote into the server nor do any of the websites i have work.... any ideas?21:37
pythonsnakejacobjames: did you buy it21:37
jacobjamesno.21:37
dingo311ping fails on my win laptop as well as the server21:37
jacobjamesfree.21:37
pythonsnakeis this on your desktop21:37
jacobjameswhat>21:37
jacobjamesis this on your desktop>?21:38
pythonsnakewhere did you install ubuntu server21:38
jacobjameson my desktop computer.21:38
pythonsnakehmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm21:38
pythonsnakeinstall ubuntu desktop O.O21:39
jacobjamesok.. I am confused.... If I have server edition installed what is the difference with the desktop version.21:39
pythonsnakedingo311: 'but yet am still able to connect to the internet'21:39
pythonsnaketo your server?21:40
jacobjamesok you must be talking to the other guy>21:40
dingo311pythonsnake: no connections to the server, but using lynx for example i can browse the web, but ping times out21:40
pythonsnakelynx from where dingo31121:41
dingo311from the server21:41
sarnoldjacobjames: ftp sends usernames and passwords in the clear (oops). ftp does not work well with NAT (annoying), and the active/passive mode is annoying. The binary vs ascii is annoying. There's no data integrity checks, so data can be replaced (accidentally or maliciously) and no one will ever notice. There's no standardized protocol for nearly anything, because it was assumed a human was sitting at the screen with sane filenames21:41
pythonsnakejacobjames: are you gonna use the desktop daily21:41
jacobjamesso what is my alternative.21:42
jacobjamesI just want to set up my server to host http://, ftp, and thin clients.21:42
pythonsnakedingo311: firewall?21:43
hallynjacobjames: what sort of thin clients21:44
hallynjacobjames: to host ftp and http you don't need the desktop.  Just go read the ubuntu server guide on setting up apache and vsftpd21:44
hallynhttps://help.ubuntu.com/12.04/serverguide/21:44
sarnoldjacobjames: _please_ look into sftp and see if it can meet your needs. clients are available for windows too, if that matters (putty, winscp, I think)21:45
hallynsarnold: haha, good point21:45
hallynftp is still good for netboots at least :)21:45
sarnoldhallyn: itym tftp? :)21:45
pythonsnakemaybe he's gonna use his desktop like a desktop sarnold hallyn21:46
dingo311pythonsnake: honestly, not setup. this is a fresh install of server 12.04. i installed apache2, openssh, and a music steaming web interface. all of which i had on my desktop edition before i switched to server. the only firewall is the router. All of this has worked...few days ago same symptoms but a reboot fixed it. today, rebooted twice but no dice...21:46
hallynpythonsnake: you mean lynx and w3m and mutt21:46
hallynsarnold: i do21:47
pythonsnakehallyn: ?21:47
pythonsnakedingo311: hm21:48
pythonsnakedingo311: you pinged the ip?21:48
hallynpythonsnake: 'desktop as a desktop' - nm21:50
dingo311pythonsnake: just tried to ping out from server, havent tried pinging the server21:50
pythonsnakehallyn: as in ubuntu server as desktop21:50
hallynyes21:50
sarnolddingo311: many firewalls drop ICMP (despite most admins knowing better)21:50
Chompswhat fw are you using or what router?21:52
dingo311sarnold: i think it is my ddns, pinging the ip went right through21:52
pythonsnakedingo311: there you go21:53
dingo311only firewall is router: dlink....dont flame me too bad, i know i need a firewall, is iptables a good place to start?21:53
sarnolddingo311: investigate 'ufw'21:53
dingo311pythonsnake: not sure how to resolve the ddns issue, but i will google around21:53
sarnolddingo311: it's a convenience wrapper around iptables. if it does what you need, it might save you a lot of time.21:53
dingo311sarnold: thanks. also, if you remember my ssh issue... i reformatted my phone and started everything fresh and got my keys working straight away21:54
sarnolddingo311: haha. man. that's too bad, it shouldn't have been that way, but I'm glad it's working. :)21:55
jacobjamesTHin clients the ones that allow people to get a desktop pushed out to a terminal. Any suggestions.21:55
dingo311sarnold: only people who use this are me, my wife, and a few close friends...would iptables work for that?21:55
ChompsI agree with sarnold many routers block ICMP by default. I personally never use them. I try to get a router that supports 'bridge mode' and then write my own firewall. iptables is are very powerful if used correctly.21:56
dingo311Chomps: only thing that has changed is from destop version to server, all hardware the same. could ICMP still be the culprit. only issue with desktop ever was overheating, never had anything unreachable21:58
dingo311i am not familiar with all the lingo, googled ICMP, looks intimidating.21:59
dingo311i dont think my router is blocking anything22:00
Chompsto start ubuntu server 'auto writes' firewall rules like ACL's to a temp file. I dont like it either. have you tried to flush the firewall rules on the server?22:00
Chompscheck to see if there are any rules first "iptables -L"22:01
dingo311Chomps: no i have not tried flushing the rules, which i interpet as deleting22:01
sarnoldjacobjames: look into this? https://help.ubuntu.com/12.10/ubuntu-help/sharing-remote-login.html22:01
Chompsthen run: iptables -F22:01
Chompsiptables -X22:01
Chompsiptables -t nat -F22:02
Chompsiptables -t nat -X22:02
Chompsiptables -t mangle -F22:02
Chompsiptables -t mangle -X22:02
Chompsiptables -P INPUT ACCEPT22:02
dingo311all that, in that order i assume22:02
Chompsiptables -P FORWARD ACCEPT22:02
Chompsiptables -P OUTPUT ACCEPT22:03
Chompsyes in the above order22:03
Chompsthat will allow all rules to be cleared and accept anything and output anything22:04
dingo311 iptables -L gives an error, ends with iptables or kernel needs to be upgraded22:04
Chompsare you running as root22:04
Chompssudo su22:04
dingo311never, but these need to be run as root? that would make sense22:05
Chompsyes definatly22:05
dingo311iptables -L output http://paste.ubuntu.com/1567355/22:06
Chompswas that before or after you ran the above iptables commands22:07
dingo311efore22:08
Chompswell that looks like they are all flushed then22:08
ChompsI would run them anyway and then save the iptables22:08
dingo311cool22:09
Chomps"iptables-save"22:09
dingo311iptables -L looks the same, like you said it would.22:12
ChompsICMP functions differently than other protocols - It is below the IP level in a technical sense. you can take a look at the before rules in /etc/ufw/before.rules22:12
Chompscheck to see if the following exists (or similar): -A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT22:13
dingo311if i can access via local ip 192.168.x.x but not through ddns then that points to faulty ddns carrect22:13
Chompscould be or it could be the ISP Proxy server22:14
dingo311sudo iptables -A ....?22:14
Chompsno in the file /etc/ufw/before.rules22:15
Chompsnot on command line22:15
Chompstry ping (from that server) to google or some site. ie: ping 8.8.8.822:16
Chompsif you get a response then then ICMP out from that server is ok.22:17
dingo311yes i see the string in before.rules22:17
dingo311i dont think i will, hang on22:17
dingo311well it wasnt before when i tried but now success22:18
Chompsok cool...so if I understand correctly you want to be able to ping from somewhere outside to your server?22:18
Chompsdingo311, would it be asking too much if you can give me the ddns name so that I can try ping it from outside?22:21
Chompswill give you the results22:21
dingo311correct. i cannot ping through the ddns22:21
dingo311the ddns is buffet.dlinkddns.com22:21
Chompsthere is definitely an incoming (to you) block on ICMP22:22
ChompsI think it is either a setting on the router or your ISP22:23
dingo311you say that just from ping results? or did you look at some other info?22:23
dingo311so do i call my isp?22:24
Chompsjust from ping results. I dont get any reply. I would ask your ISp if they are blocking it, yes22:24
Chompsbottom line: you can ping the server from your internal network which means your server is ok. If you are sure there is no setting on your router that blocks ICMP requests, then your ISP  or ddns is blocking it...its now that simple...ask them22:26
dingo311hmm, fair enough. although i thought they only block certin ports. i will double check my dlink router to make sure its not blocking requests then call. thanks very much for your help22:28
Chompsno prob. I hate ISP's that block things as a so called service...enjoy22:29
dingo311out of curiosity how would the isp know that i switched from desktop to server os? they couldnt would be my guess22:32
ChompsIt shouldn't be of concern to them22:37
ChompsJust out of interest. On your router do you have "DNS AND DEFAULT GATEWAY" option22:39
ChompsI take it the ddns account info is on the router itself....if so make sure "Enable Firewall" has a check on it or ICMP wont work and also "Enable NAT"22:41
dingo311im begining to think it is striclty a ddns problem. ddns says status disconnected(obviously bad) looking at what router ip says it conflicts with whatismyip.com22:42
dingo311ddns is on the router. looking for the dns and default gateway22:42
dingo311i saved my router config before changing os and reloaded it. so all should be the same, should be22:43
Chompsoh well then you might have put in the incorrect account info in on the router, hee hee that would realy be a big issue. maybe just a typo on the router. the IP must be the same on ddns provider and your router22:44
Chompsdingo311, goto dlinkddns.com and log in...check the IP there. That must be the same as the IP provided by your ISP. if not, that would be problem no 122:46
dingo311shouldn't the ddns host be updating that, that is what it is for22:46
dingo311never thought to really check all that since i never had a problem with it.22:47
Chompsyour router updates that with the host. check that the ddns info on your router is correct and that it is updating dlinkddns.com correctly22:47
Chompsok whatever you did now, it worked....22:48
ChompsI can ping your IP...well done...save the router config...22:48
Chomps64 bytes from ip68-102-96-181.ks.ok.cox.net (68.102.96.181): icmp_req=2 ttl=104 time=337 ms22:49
Chompsdingo311, :)22:50
dingo311i got that too. must need a system or router restart because buffet.dlinkddns.com:4040 still times out22:50
jacobjamesok i am at the command prompt how do i get into my gui. I just donwloaded apt-get ubuntu-desktop22:50
dingo311ddns host had wrong ip in dns, thought that was their job22:51
Chompsok but that is something different. 4040 is a port you are trying to get through on. you now need to forward that port on the router to the servers internal IP22:51
Chompsunder poert forwarding22:51
Chompsport22:51
dingo311right, port forwarding is enabled, pointing to the correct ip22:51
ChompsAlso I take it that there is a service on your server listening on port 4040 ?22:53
dingo311haha, let me make sure that is still up22:53
Chompstry "telnet localhost 4040" on the server that will tell you22:54
jacobjamesgot it.22:54
Chompsjacobjames, should be startx22:56
jacobjamesyes waiting now. Thanks22:56
Chompsdingo311, is the service running ?22:57
jacobjameschomps ok just booted into a blank screen with background?22:58
hallynahs3: http://people.canonical.com/~serge/netcf_0.2.3 has the package, tests fine on raring22:59
Chompsjacobjames, did you just run apt-get install ubuntu-desktop  not xubuntu-desktop or anything else. because apt-get install ubuntu-desktop will install the gnome desktop23:02
Guest85517Chomps: system needed a reboot afet updating ddns, still not sure why they had ip wrong, but i wont forget to look there next time.23:02
=== Guest85517 is now known as dingo311
Chompsdingo311, cool23:03
Chompsdingo311, ok I can see your server is listening on that port...good stuff, have fun...23:04
ahs3hallyn: thx.  i'll take a look and upload to experimental if all is well23:05
dingo311in my dhcp client list there is an unknown ip with mac 00-00-00-00-00..... is this just a fluke?23:05
Chompsdingo311, that looks like and invalid ARP request23:09
Chompsdingo311, is that on the server, is your server the dhcp server23:09
=== cpg|away is now known as cpg
dingo311Chomps: not sure how to answer that, but i think so yes.23:10
Chompsdingo311, do you have a dhcp server service running on your server? Also if you have dhcp running on your router they could be conflicting and can cause an election on the network. (the one will try and force out the other)23:12
sarnold(dhcp has elections?)23:13
Chompsdingo311, only one dhcp server should be handing a single subnet...ie 192.168.x.y23:13
dingo311Chomps: not sure if dhcp server service is running on server. I will have to look into it later. got called to work. bah. thanks again for all your help. it means alot.23:18
Chompscool, it is 1:20am here...going to catch a few zzZZ, cheers23:19
axisysfailing to grow raid10 after replacing one of the 6 disks with a larger disk23:42
axisys# mdadm --grow /dev/md10 --size max23:42
axisysmdadm: raid10 array /dev/md10 cannot be reshaped.23:42
axisyswhat gives?23:42
MraAlbertinahi. what could be the problem of a machine connecting to the network but not to the net? besides all tests i did and comparing with this machine what can i do to check what's wrong with it? i have a feeling a simptom might be important: /etc/resolve.conf is empty. trying to insert manually 'nameserver 192.168.1.1' 'domain home' 'search home' doesn't solve because the changes would be lost on next reboot.23:56

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