/srv/irclogs.ubuntu.com/2011/06/27/#ubuntu-server.txt

CalifIf i have a command I want to give a user access do, via sudoers, how can I accomplish it, in this case the commands able to run from any directory 'firewall start' but barring that I'm forgetting quotes (do I need them when its two words in sudoers?) - I'm not sure why I can't get it to work.00:02
CalifDo I have to give him access to the entire directory, or do I have to mod the file permissions to allow it? He's running sudo so shouldn't that be enough to execute the command to start the firewall?00:03
=== julian is now known as alamar
Gaming4JCHow can I make a new user into an administrator on the server?00:22
Gaming4JCI already have a user account, I just want him to be able to manage it without having to login as root00:22
Gaming4JCvia sudo00:23
pwnguinany suggestions on choosing between libpam-ldap or libpam-ldapd?00:25
sagaciGaming4JC, add the user to /etc/sudoers00:47
sagaciyou can use visudo00:48
vv116vvhola buenas noches01:07
vv116vvhay alguien?01:07
LinSkyrateHi guys :) Is there a good channel for Cloud Servers?01:09
lifelessthis one :)01:09
LinSkyrateahh nice :)01:10
lifelesstheres possibly others, but we do cloudy stuff here01:10
LinSkyrateoki :) do you know if there is any good tutorial sites for Ubuntu Cloud servers? In youtube there is only the install part..01:11
lifelesswhat sort of thing are you looking for?01:13
LinSkyratemore the next step, and good tips on howto setup this in the best way01:13
LinSkyratePrivate Clouds... Not the Amazoon stuff01:14
lifelesshttps://help.ubuntu.com/community/UEC01:15
LinSkyratenice.. thnx alot :)01:15
ntoombshey02:42
ntoombsi'm having a problem getting my server to show up on my router02:42
Datzrouter problem?02:43
ntoombsmost likely no02:43
ntoombsnetworking problem02:43
ntoombsi keep having problem getting a static ip address to work02:44
ntoombsi've read/watched over 20 tutorials02:44
ntoombsi only came here as a last resort02:44
ntoombshowever that said i the only symptom i can find of this not working is that it's not showing up in my routers attached devices02:47
ntoombsnor can i ping the lan ip address i assigned to it02:47
ntoombsis anyone willing to help me?02:51
pmatulisntoombs: eth0?02:56
ntoombseth102:57
ntoombsthe server i'm running won't work with eth102:57
ntoombsat least it wouldn02:57
ntoombswouldn't*02:57
ntoombsis eth1 a problem?02:57
ntoombsi meant won't work with eth0 :P02:57
pmatulisntoombs: best discover why "won't work with eth0"02:59
ntoombsi thought it may be because eth1 is the primary network device03:01
benjgvpsI installed natty on my server the other day and set a static IP on it. This is the /etc/network/interfaces file: http://pastebin.com/jrezu7hd . However, it seems like it somehow ignored that setting after a day or so of working just fine with the static IP, then used DHCP to get a different address (192.168.1.110).03:09
=== alamar is now known as julian
sw0rdfishhey guys is there a way to download multiple files via terminal from a server03:39
sw0rdfishI actually thought sftp would have "mget"03:40
twbOver what protocol, HTTP?03:40
twbOh, sftp.03:40
twbIf you have scp, there is scp -r.03:40
twbFrom the sftp manpage, looks like get -r03:40
sw0rdfishget -r would fetch me EVERY file on the directory I'm in03:41
sw0rdfishright?03:41
twbApparently it globs by default.03:41
twbsw0rdfish: no, say "get -r foo/" would pull down foo and all its contents03:41
twbsw0rdfish: and "get *.txt" should get every file in the remote working directory that ends in ".txt"03:41
sw0rdfishbut I think I can evade that by doing something like "get -r ./*loop"03:41
twbThis is just from reading the manpage, you understand; I haven't tried it.03:42
twbI normally use scp or sshfs03:42
sw0rdfishif I do that every file beginning or ending with "loop" will be downloaded? lol I'm just making this up I just read a similar thing on a guide somewhere03:42
twbEnding in loop.03:42
sw0rdfishhmmm03:42
twbIf you do "man 7 glob" it will explain how globbing works03:43
sw0rdfishI see.03:43
sw0rdfishI think I might as well get a gui03:43
sw0rdfishunless its possible to download multiple files from different directories?03:43
twbI recommend you learn how to use the CLI instead03:43
twbsw0rdfish: you mean like get -r *.d/ ?03:43
twbOr you could install sshfs on your client side, which will basically allow you to "mount" any directory from the remote host, on the local host03:44
twbThen you can just use commands like cp03:44
sw0rdfishhmmmmm03:45
sw0rdfishhey I saw someone somewhere saying we could use scp to queue files03:45
sw0rdfishsomething like scp sw0rdfish@server_ip:/home/sw0rdfish/dir1/file2:/home/sw0rdfish/dir2/file203:46
twbI'm not sure what you mean by that.03:46
Viper550somebody better tell them, ubuntu server iso seems to still use the old logo03:46
sw0rdfishwell it means there are two directories in the home dir. of sw0rdfish and each containing a file i'd like to grab for example03:47
twbThat would be "scp you@host:foo you@host:bar ." -- the "." is the destination, the local working dir.03:47
sw0rdfishoh03:49
sw0rdfishI see.03:49
sw0rdfishcool.03:49
twbNote that if you aren't using agentized keys, you will have to type your password twice03:50
sw0rdfishI see.03:51
sw0rdfishso like03:51
sw0rdfishwhy didn't they include the mget03:51
sw0rdfishin sftp03:51
twbPresumably because they prefer -r.03:53
sw0rdfishoh but then again i couldn't use mget the way i wanna use it03:54
sw0rdfishanyways, right?03:54
=== Jasonn is now known as JasonnAWAY
twbDunno04:17
twbThe only reason I even know about mget is from smbclient :-/04:17
astrostlj #infra-talk05:29
astrostloops :)05:29
uvirtbotNew bug: #802343 in mysql-5.1 (main) "package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/80234305:41
=== JasonnAWAY is now known as Jasonn
=== Guest47276 is now known as Adri2000
=== Jasonn is now known as JasonnAWAY
mkcis it possible to tell the server to run init.d/<scripts> as regular user, without sudo?07:10
twbbasically no07:14
twbHowever within those scripts, you can drop privileges using e.g. start-stop-daemon(8)07:14
mkci have to add a couple paths into the root bashrc file. I was avoiding that. Thanks for letting me know. I was going to waste more time looking for non-sudo running of init.d scripts07:16
twbI really doubt that's what you want07:16
mkcim looking for a quick hack to start passenger with web arguments on system boot07:17
twbThis is for some shitty proprietary package that installs itself into /opt ?07:17
mkci wrote a simple ruby script that does it for me, but when i run it as sudo it doens't work07:17
twbThat's probably because sudo doesn't preserve $HOME and your script needs something in ~mkc07:17
mkci gave it full paths but there errors are not coming from ruby directly. Not able to find gems, etc.07:18
mkcnow*07:18
twbThat's probably because they're installed in ~mkc/.ruby or whatever07:18
mkcOMG i can't write!!! It is too late for this.07:19
mkcyea, they are07:19
twbSo: don't do that07:19
twbIMO it's pretty fucked up to be doing that with some ruby script in the first place, let alone one that relies on third-party gems installed into a $HOME07:20
mkchmm, yea. I might have to rethink what im doing07:20
twbI guess you're talking about https://secure.wikimedia.org/wikipedia/en/wiki/Phusion_Passenger07:20
mkcyep07:20
mkcI'm still pretty confused about this whole system admin thing...I'm trying to build a scaleable AWS infrastructure  and it is not fun07:22
mkcI know i should be using something like puppet to configure my servers, but as of now im justt trying to get a working version manually07:23
twbI'm not convinced that you're going to get both "scalable" and "ruby"07:23
twbThe ruby weenie sitting next to me suggested using unicorn rather than mod_ruby07:23
twbhttp://tomayko.com/writings/unicorn-is-unix07:23
mkcyea, ruby has issues just like any other language, but im sticking with it07:25
twbI disagree with "just like"; inasmuch as it's a mishmash of ideas from smalltalk, CL and perl, it has its own excitingly different issues.07:26
mkci was getting pretty descent results last time i was running a set up. I was running a bunch of AWS micro app servers with a balancer on top and RDS with 3 read slaves and i was getting pretty good results considering i was hitting the database on every call. All that without a caching server07:27
mkcone complain that people keep bringing up, which i dont understand, is the fact that ruby waits for a respond from IO like a database in a busy state, but it seems like most other languages do that as well07:29
mkctwb: anyways thanks for the help. I really appreciate it. I need some sleep time07:33
mkcthanks07:33
uvirtbotNew bug: #802367 in net-snmp (main) "snmpd reports "truncating integer value > 32 bits" at ERROR loglevel, should be DEBUG" [Undecided,New] https://launchpad.net/bugs/80236707:52
uvirtbotNew bug: #802372 in samba (main) "windows clients unable to connect to samba after KB2536276" [Undecided,New] https://launchpad.net/bugs/80237208:17
=== Ursinha-afk is now known as Ursinha
=== _ruben_ is now known as _ruben
amerois it possible to find out the compile parameters used to compile a deb package?09:09
jpdsamero: apt-get source <package>09:10
ameroyeah then?09:22
twbamero: read the debian/rules file09:22
jpdsamero: Look at the debian/rules file.09:22
twbIf you're looking for something like a standardized set of USE flags, you will look in vain09:22
twbUsually there will simply be a call to "dh", which implies all defaults, or there will be a call to "./configure --foo" or "dh_auto_configure -- --foo", which indicates it's configured with --foo.09:23
twbOlder and/or sillier systems will do things in arbitrarily icky ways09:23
amerogot it :] thanks09:27
Ursinhaapparently anyone can name an unnamed person, sorry person-purple-square09:44
uvirtbotNew bug: #802399 in samba (main) "package samba 2:3.5.8~dfsg-1ubuntu2.2 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 1" [Undecided,New] https://launchpad.net/bugs/80239909:56
uvirtbotNew bug: #802402 in image-store-proxy (main) "convert to dh_python2" [Undecided,New] https://launchpad.net/bugs/80240210:01
lynxmanhey zul o/10:27
uvirtbotNew bug: #802400 in maria "mysql help sends unchecked contents to mysqld" [Medium,Confirmed] https://launchpad.net/bugs/80240010:57
=== smb` is now known as smb
Ang3o/  - i'm trying  to setup a OpenVPN on my ubuntu serv, it"s really pain in the ass. Somebody here tested it?11:16
raubvogelWas https://bugs.launchpad.net/ubuntu/+source/request-tracker3.8/+bug/444046 ever dealt with?11:27
uvirtbotLaunchpad bug 444046 in request-tracker3.8 "rt-setup-database-3.8 does not seem to work" [Undecided,New]11:27
=== julian is now known as alamar
frenzzHello, how create 'mysql' user in the machine ?11:30
jpdsfrenzz: sudo adduser mysql11:31
hallynweird i didn't mean to leave this chan...13:16
hallynjbernard: on bug 693594, did you ever decide whether you consider that fixed in natty?13:18
uvirtbotLaunchpad bug 693594 in libcgroup "cgroup-bin should not move kthreadd into a default cgroup" [High,Confirmed] https://launchpad.net/bugs/69359413:18
lunaphyte_hi.  my experience has been that [prior to 11.04] if deleted, the 70-persistent-net.rules file in /etc/udev/rules.d would be automatically regenerated upon a subsequent boot.  this doesn't seem to happen anymore with 11.04 - how can i figure out why?13:22
hallynlunaphyte_: see /lib/udev/write_net_rules13:29
lunaphyte_hallyn: thanks, i was actually just looking at that.13:30
lunaphyte_is that something that should be run by hand though?  and why isn't the system doing it like it was before?13:33
hallynshould be done automatically, dont' know why it isn't.13:33
hallynlunaphyte_: hm, looking at the natty version, it seems to imply that if the file isn't writeable it uses a temp one.  Maybe you should create a new empty one?13:36
lunaphyte_hmm, no luck.13:41
lunaphyte_the write_net_rules shell script seems to be expecting the $INTERFACES variable is set, but it's not quite clear to me where this variable is supposed to come from.13:42
lunaphyte_ok, exporting a shell var seems to have addressed that, although i'm not sure if that's really the way it should be done, but now it says "missing valid match"13:47
lunaphyte_sigh.  this is frustrating.13:47
lunaphyte_ah, a clue, maybe: 70-persistent-net.rules13:48
lunaphyte_bah13:48
lunaphyte_http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=49219313:48
uvirtbotDebian bug 492193 in udev "write_net_rules fails to write udev rule" [Important,Fixed]13:48
hallynlunaphyte_: if you're really seeing that bug (fixed in 2008?) pls open an ubuntu bug for it?13:53
hallynare you on lucid?13:53
hallynno13:53
hallynyou're not :)  sorry13:53
hallynsounds to me like a bugfix may have gotten dropped in a sync13:53
kirklandzul: i can't get to cobbler_web on aussie14:14
kirklandzul: packaging issue?  problem with the last merge?14:15
zulkirkland: not sure14:16
RoAkSoAxkirkland: howdy!!14:28
RoAkSoAxkirkland: what's the cobbler issue?14:28
kirklandRoAkSoAx: howdy14:28
kirklandRoAkSoAx: http://hostname/cobbler_web is not working14:28
kirklandRoAkSoAx: can you take a look?14:28
lunaphyte_hallyn: https://bugs.launchpad.net/ubuntu/+source/udev/+bug/80253814:28
uvirtbotLaunchpad bug 802538 in udev "/etc/udev/rules.d/70-persistent-net.rules not automatically generated" [Undecided,New]14:28
RoAkSoAxkirkland: sure, let me get a fresh install14:30
hallynlunaphyte_: thx14:33
hallyn(i gotta run out for a bit)14:33
=== hallyn is now known as hallyn_afk
RoAkSoAxkirkland: ok, seems to be a problem with django itself14:46
RoAkSoAxkirkland: tail -f /var/log/apache2/error.log14:46
koichiroseHello, I'm having trouble with mysql (related to upstart, I think). some info: http://pastie.org/212897515:00
UrsinhaDaviey: https://launchpad.net/+apidoc/1.0.html#team15:02
UrsinhaDaviey: it's there15:02
Davieybah15:02
Davieythanks :)15:02
Ursinha:)15:02
Ursinhano problem15:02
UrsinhaDaviey: I'm trying to fetch the tasks now, which's a bit tricky as it timeouts consistently :(15:02
UrsinhaI'm digging a bit to see if that's a known bug15:03
koichiroseHello, I'm having trouble starting mysql-server on my ubuntu 11.04. I'm willing to give sudo access to my server to help me solve it... some info: http://pastie.org/212897515:03
Ursinhaif not, I"ll report it right away15:03
DavieyUrsinha: \o/15:04
Ursinha:D15:05
Ursinhakoichirose: the problem there is not that the server isn't running, but a problem with permissions for the user root15:06
Ursinhathat sucks15:06
koichiroseUrsinha, any hints?15:06
UrsinhaI've hit that before, let me find a reference for that15:06
Ursinhajust a moment, please15:06
Ursinhahm wait15:07
* Daviey waits15:07
Ursinhalol15:09
jpdskoichirose: Shouldn't you be running those commands with sudo?15:09
Ursinhajpds: I thought there was a difference between mysql's root and system's root15:10
koichirosejpds, yeah, the pastie is a bit old. I'm running them with sudo below15:10
koichirosealso, mysql seems to start if I reboot. then 'sudo service mysql stop', 'sudo service mysql start' -> system hangs15:11
RoAkSoAxkirkland: ok, found the issue in cobbler15:11
Ursinhakoichirose: are the permissions ok for the socket file?15:11
RoAkSoAxkirkland: manually edit /usr/share/cobbler/web/settings.py and change TIME_ZONE = 'America/NewYork' to let's say 'UTC'15:12
UrsinhaI'm *far* from being an expert, I've just run through that situation before and trying hard to remember what I did15:12
Ursinhausing my jetlagger brain15:12
Ursinha:)15:12
Ursinha*jetlagged15:12
UrsinhaI can't even type15:13
koichiroseUrsinha, /var/run/mysqld is now empty :O15:13
Ursinhakoichirose: so the instance is gone, I presume15:13
koichiroseyes15:13
koichiroseI can't restart mysql15:13
Ursinhawhat's the error? it hangs?15:14
Ursinhathat's weird15:14
koichiroseUrsinha, http://pastie.org/212921215:15
lynxmankoichirose: any error on the mysql log?15:15
koichiroseI can start it using the old init.d. Doesn't start with 'service mysql start'15:15
koichiroselynxman, how do I check that?15:15
lynxmankoichirose: it should be under /var/log/mysql or /var/lib/mysql/instancename.err15:16
koichirosemysql.err: empty - mysql.log: empty -  /var/log/mysql/error.log: 13k lines. let me see15:17
lynxmankoichirose: that'll be a good one to check :)15:17
UrsinhaDaviey: I'll try to find launchpad guys to help me out with that timeout15:17
koichiroselynxman, http://pastie.org/2129232 - something like this15:20
koichiroselet me empty it15:20
lynxmankoichirose: looks like you're in deep trouble15:21
lynxmankoichirose: either your innodb storage is corrupt15:21
lynxmankoichirose: or you have bad memory on the server15:21
koichiroselynxman, it is a fresh install, I don't have anything15:21
lynxmankoichirose: so bad memory then :)15:21
koichirosedo you want root access? :D15:21
koichiroseyou mean bad ram?15:21
lynxmankoichirose: yes, nad ram15:21
lynxmankoichirose: no thank you :) I rather not have root in any machine that is not mine15:22
koichirosehow do I check that? (it's a $19/year VPS, I don't really care but now I'm curious)15:22
koichiroseanyway, lynxman, it's a fresh install, you'd have access to nothing15:24
lynxmankoichirose: well... it's a hardware issue, being disk or ram, I'd rather just contact their support15:25
=== kentb_ is now known as kentb_dell
koichiroselynxman, I'll try with ubuntu 8.0415:26
lynxmankoichirose: have fun :)15:27
koichirose:D15:27
jMCgO_o15:28
koichiroselynxman, /etc/init.d/mysql start -> * Starting MySQL database server mysqld                                                     [fail]  - nice :D15:37
koichirosealso, empty logs15:37
raubvogelkoichirose, nothing even on syslog?15:38
koichiroseraubvogel, where do I find it?15:41
Ursinhakoichirose: /var/log/syslog15:42
Ursinhaomg irssi completed the path for me15:42
raubvogelScary!15:42
koichirosefound it15:42
koichirosemm yeah15:42
koichirosesame stuff more or less as with 11.04: http://pastie.org/212923215:42
koichiroseI guess I'll open a ticket then15:42
koichirosethanks all15:43
Ursinhakoichirose: offtopic, but there's a tool called pastebinit that pastes the command output directly to ubuntu paste and gives you a link15:43
raubvogel koichirose, something ought to be smelly in your setup. I am running 5.1 here without a problem15:44
UrsinhaI find it handy :)15:44
koichiroseUrsinha, thanks15:45
raubvogel koichirose, I wonder if the crazies at #mysql could help you more15:45
koichiroseraubvogel, I have another vps and it's running flawlessly there, too - I already asked in #mysql15:46
raubvogelYou could wipe all dbs and repopulate mysql15:46
koichiroseanyway 192MB of ram should be enough for a basic lamp server right?15:46
raubvogeltop should tell you that15:46
koichiroseraubvogel, it's a fresh install (i had 11.04, switched to 8.04, same problems)15:46
koichirosetop looks fine: Mem:    225280k total,    66348k used,   158932k free15:46
koichirosei'll open a ticket15:47
UrsinhaDaviey: https://bugs.launchpad.net/launchpad/+bug/73906315:49
uvirtbotLaunchpad bug 739063 in launchpad "PillarNameSet:EntryResource:search timeout" [Critical,Triaged]15:49
uvirtbotNew bug: #802565 in php5 (main) "Arbitrary file limit in garbage-collection cron script causes loss of service" [Undecided,New] https://launchpad.net/bugs/80256515:57
DavieyUrsinha: great, can't look atm as on a tty.  But will be back in the room shortly.16:07
UrsinhaDaviey: I guess it just allows you to paginate a collection you already have, instead of allowing you to fetch the results every time you turn the page :P16:19
Ursinhabut I have to read more16:19
Ursinhasigh16:23
=== klaas_ is now known as klaas
=== JasonnAWAY is now known as Jasonn
UrsinhaDaviey: what's the name of that graphing site again?16:59
=== hallyn_afk is now known as hallyn
uvirtbotNew bug: #758072 in nova "nova compute cannot run radvd" [High,Triaged] https://launchpad.net/bugs/75807217:32
uvirtbotNew bug: #752316 in nova "Package vlan should be included in nova-compute's dependencies" [High,Fix released] https://launchpad.net/bugs/75231617:33
uvirtbotNew bug: #676026 in nova "Nova services do not log to new log file after log rotation" [Medium,Fix released] https://launchpad.net/bugs/67602617:38
UrsinhaDaviey: https://lp-oops.canonical.com/oops.py/?oopsid=2004EB4118:03
=== JGJones_ is now known as JGJones
=== lullabud is now known as warzauwynn
=== lborda is now known as lborda_afk
evilsushiI need to download the jaunty repository and host it from my lucid server for jaunty devices I still have.21:12
evilsushiwill apt-mirror change my repo for the server as well ?21:12
genii-aroundJaunty ( and other releases which are past End Of Life ) are still on the servers, just old-releases.ubuntu.com    instead of country-code.ubuntu.com21:18
evilsushihow long will they be there genii-around ?21:20
genii-aroundevilsushi: Well, 4.10 is still there for instance, so a while :)21:21
evilsushigenii-around: I would feel better just downloading the repo tho and hosting it locally .. how would I use apt-mirror to clone the old-releases repo?21:22
jpdsevilsushi: Upgrade the jaunty devices as they're not getting security updates anytime within the next... century.21:23
genii-aroundevilsushi: Basically to put the old-releases.ubuntu.com  urls in the /etc/apt/mirror.list file21:27
evilsushigenii-around: thanks for your help21:40
evilsushigenii-around: apt-mirror is going now =)21:40
evilsushigenii-around: looks like its going to take awhile to download the repo =)21:40
genii-aroundYes, they are about 30-some-odd GB21:41
evilsushigenii-around: so I'm downloading this on my server to a mounted s3fs =)21:43
lunaphyte_hallyn: thanks for the clue, that was indeed it.21:55
hallynlunaphyte_: np.  the q is, should that be like that or not.21:56
lunaphyte_yeah, indeed.  not wanting to second guess anyone to much, it seems quite clear to me it's likely a shortsighted action.21:57
lunaphyte_presumably, as with the kvm reference preceding it, the goal is to ignore logical interfaces - e.g. cases in which the os is a vmware host.21:58
hallynyeah21:59
hallynbut...  your's isn't vmware right?21:59
lunaphyte_no, it is.22:00
lunaphyte_well - to be clear - it's a vmware guest.22:00
hallynright22:00
lunaphyte_it's just a bit surprising that it would be so easily overlooked that this would break vmware guests.22:00
hallynyeah22:00
hallyndon't know how it was decided. Luckily platform is all in one place right now, so lemme provoke with the bug id in #ubuntu-devel and see if anyone bites22:01
lunaphyte_oh, ok.  mind if i lurk?22:02
hallynheh, not at all.  they're probalby at the bar right now, it'll be a few hours before anyone shows up to bite22:02
lunaphyte_no worries22:02
skrewleri googled a bit but couldnt' find the answer.  running 10.04.02 on ec2.  mail.info and mail.log keep growing to 2GB a piece.  they're being rotated, but I don't see an entry in logrotate.d .. anyone know where I can adjust this22:08
axolxhi -- i cant seem to find an official AMI for 10.04, EBS, for a m1.small instance running on us-west-122:27
axolxis there one?22:27
geekbriaxolx: http://uec-images.ubuntu.com/releases/10.04/release/23:01
geekbrius-west-1  32-bit  ebs  ami-831d4fc623:01
erichammondaxolx: I also list the official Ubuntu AMI ids in a format that I find easier to read at the top of: http://Alestic.com (pick an EC2 region)23:04
geekbri^ that site is good23:09
uvirtbotgeekbri: Error: "that" is not a valid command.23:09

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