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

=== arosales_ is now known as arosales
webfoxHello folks!01:54
webfoxWhen I try to check for ruby at my server the following error message happens : https://gist.github.com/anonymous/9283668, what can I do?01:55
sarnoldwebfox: interesting01:56
webfoxsarnold: yes01:56
sarnoldwebfox: command-not-found is a little helper program that will tell you if a command that isn't found is a small typo or if there is a specific package that you should install01:56
sarnoldwebfox: please do file the bug report that it suggests -- but the short answer is you do'nt currently have ruby installed01:57
webfoxyes, I already restarted the machine and the error still there.01:57
webfoxsarnold: how can I check which is the latest ruby package available at apt-get repository?01:57
sarnoldwebfox: apt-cache search ruby | grep ^ruby01:59
sarnoldwebfox: (the grep is just to make the list more manageble :)01:59
webfoxsarnold: \o/ thank you!02:01
webfoxsarnold: man, it shows several versions. Do you use Ruby by any chance?02:03
sarnoldwebfox: not much these days..02:04
sarnoldwebfox: which release are you on? we've changed which version is in main over time.. 1.9.3 is in main in precise, quantal, saucy, and trusty (maybe we'll drop trusty before release?) -- and ruby2.0 is in main in trusty02:05
webfoxNot sure what version is running at this server.02:06
sarnoldlsb_release -a  should say02:06
webfoxI think those errors are Python related, gem -v command generates the same error.02:06
sarnold(that should say something useful on any linux system)02:06
sarnoldwebfox: chances are, you've got a locale set on your local machine that doesn't exist on the remote machine. but that's just me guessing..02:07
webfoxsarnold: that error is happening in this case as well.02:07
webfoxPerhaps I should do a downgrade on Python..02:08
webfoxCurrently running version 3.3.202:08
sarnoldwebfox: that is unlikely to fix it; probably you can install a langpack or something similar to build your missing locale information02:08
webfoxsarnold: do you mean for Python or the OS?02:09
sarnoldwebfox: the os02:09
webfoxhow do I do that?02:09
sarnoldwebfox: check out apt-cache search language-pack02:10
webfoxlangpack is not a known package02:10
webfoxapt-cache or apt-get?02:11
sarnoldapt-cache02:11
sarnoldapt-cache helps you search your computer's local versions of the lists02:11
sarnold'apt-cache search' is easily 50% of why I switched to debian back in 1998 or 99..02:11
webfoxOh, ok, there are tons of packages, I should filter this result somehow.02:12
sarnoldwebfox: probably you want language-pack-pt  -- you might also want language-pack-gnome-pt or language-pack-kde-pt if you use one or the other of those environments02:13
sarnold(just guessing based on your hostname :)02:13
webfoxsarnold: I don't use any UI, is it necessary to install kde or gnome?02:14
sarnoldwebfox: no. skip those. :)02:14
webfoxsarnold: how about if I install language-pack-us?02:15
sarnoldwebfox: what LANG= do you have on that machine and your local machine?02:16
webfoxsarnold: probably us-base. Is there acommand to verify that?02:17
sarnoldwebfox: echo $LANG02:17
webfoxen_US.UTF-802:18
webfoxyeah this is the latest us-base language package.02:18
sarnoldoh wow, I hadn't expected that.02:18
webfoxsarnold: yeah, I prefer english.02:19
sarnoldwebfox: it seems most better admins do :) I had assumed pt_BR had leaked through from a client somewhere. sigh. :)02:19
webfox:)02:20
webfoxsarnold: so, am I dead then?02:21
sarnoldwebfox: nah, just some error messages will be extremely annoying02:22
sarnoldwebfox: i'm out of ideas on making them go away -- follow the intructions there to file a bug report, hopefully someone else will know what to do to make those annoyances go away :)02:22
webfoxsarnold: all right. Thank you for your help!02:23
sarnoldwebfox: have fun :)02:23
MavKenany reason to use 64bit OS if on a 2GB ram VPS?02:30
sarnoldMavKen: more registers, longer registers, better nx support in the page tables, and you can standardize on 64bit isos and tools and so forth02:31
MavKenok02:32
hawacan anybody tell me how to find the original mac address of cloned mac???02:39
=== onesandzeroes__ is now known as blargh____
MavKenwhat is the most lightweight thing to install so that php scripts can send out mail?  I have 12 different domains on a vps and want the scripts to be sent from their domain.  I tried exim4 but all domains were appearing as from "domain2.com via domain1.com"  only the primary domain would appear correctly03:09
jak2000hia ll05:17
jak2000why when i run this command: sudo a2ensite itsol.mx i get an error: ERROR: Site itsol.mx does not exist!  the file exists: in /etc/apache2/sites-available   itsol.mx  thanks in ubuntu 12.40 worked, but in ubuntu 13.10 not any advice?05:18
sarnoldjak2000: no idea; can you run strace a2ensite itsol.mx and look through the output to see what it's doing?05:19
jak2000sarnold: http://pastebin.com/SidFav4p05:24
sarnoldjak2000: cool! check out lines 1141 through 114505:25
sarnoldjak2000: I think you just need to rename the file to itsol.mx.conf05:26
jak2000ok done and work05:27
sarnoldgreat :)05:27
jak2000but its correct: in sites-enabled i see now a file: itsol.mx.enabled (in color cyan, the letters)05:27
jak2000sarnold?05:39
sarnoldjak2000: yes?05:41
jak2000when restart apache i get this error: AH00526: Syntax error on line 30 of /etc/apache2/sites-enabled/000-default.conf: AllowOverride not allowed here05:42
sarnoldjak2000: hrm, in apache 2.4 the rules may have changes05:42
sarnolds/changes/changed/05:42
jak2000yes05:43
jak2000:(05:43
sarnoldjak2000: looks like it can only be used in a <directory> block http://httpd.apache.org/docs/current/mod/core.html#allowoverride05:43
jak2000comment the line 30 reload the apache and work05:45
jak2000continue working05:45
jak2000thanks sarnold05:45
sarnoldjak2000: cool; it would be worth making sure things are still correct..05:46
jak2000sarnold mmm bether uninstall 13.10 and install 12.0405:54
sarnoldjak2000: uhoh, more problems?05:55
jak2000yes05:55
jak2000and reading reading05:55
jak2000the 13.10 is unestable right?05:55
sarnoldjak2000: it'd be worth doing the reading eventually, because 14.04 will also have apache 2.405:56
sarnoldjak2000: but 13.10 will only be supported until july -- 12.04 will be supported for a while, you can make the transition on your own schedule if you use 12.0405:57
sarnold13.10 should be stable, but 12.04 has been deployed a lot longer and has received more testing work05:57
jak2000yes05:58
lovei am using  MRTG in ubuntu server  i have already installed mrtg  but when i try  cfgmaker --global 'WorkDir: /home/http/mrtg' --output /etc/mrtg/mrtg.cfg public@ localhost to test there is an error is there any help please?08:58
=== Guest65903 is now known as root_
=== root_ is now known as SoulOfTheInterne
=== SoulOfTheInterne is now known as ToBeFree
=== _elia is now known as elia
=== a1berto_ is now known as a1berto
streulmahi what's the simplest way to do an upgrade? from Ubuntu server in April, do-release-upgrade?11:51
alainghi ppl12:06
alaingI want to change a permissions for a folder am I right in thinkink that this is what I need to run from cmd line. sudo chmod 0755 myFolder12:07
alaingalso is 0755 and 755 the same? I've only ever seen 3 digits12:08
=== freeflying is now known as freeflying_away
=== Mogwai is now known as Guest82922
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
MavKenI just installed ubuntu on a new VPS.  I am moving over 12 domains that have been on shared hosting.  What can I install so that each domain can send out mail via their php scripts and it appear as coming from that domain?  I tried yesterday and each virtual site was sending from the primary domain on the vps.  Starting over today.16:11
kyle__Trying to fix an old sad 10.10 server.  It keeps hanging after it claims to be done with init, after it's remounted it's drives.16:22
kyle__Any ideas?  Even single user mode doesn't seem to work16:22
RoyKkyle__: could you reinstall it with 12.04 or something?16:23
RoyKthat is - do you have its data on a separate partition?16:23
kyle__RoyK: A not my server, B There's tons of (what looks to be) very bad custom code on here, and the person who wrote and maintained it has been gone for two years.16:24
kyle__Most of the data is in /var, which is on a separate drive now.16:25
RoyKvm or physical?16:25
RoyKperhaps booting on a memory stick and doing an fsck on the thing would be a start16:26
kyle__RoyK: VM.  And I thought the same thing, so I booted from an iso image and fscked both drives.  No issues with either (but it claims to have gone over 2k days without a check).16:26
RoyKfsck -f ?16:27
RoyKwithout -f it won't do much if the fs is flagged as ok16:28
kyle__Hum.  You know, I didn't do the -f.  Will try again16:28
shaunoMavKen: you can override php's From: address in your virtualhost configs, see http://serverfault.com/questions/165499/16:34
MavKenthanks16:37
MavKenI have 12 sites that I am moving from a shared host to my new VPS... should I just create a user for each and then add public_html dir in each /home/user/ ?16:38
kyle__That didn't do it.   Is it possible the remount of / is masking /var?16:57
RoyKany idea how to install 1204 on non-pae hardware?17:18
OliPicardHi Guys, i am editing the sshconfig, Changed the port number etc on Ubuntu 14.10, Tried to disable the Root Login via SSH and keep getting an error message.17:21
RoyKOliPicard: can I borrow your time machine? ;)17:22
OliPicardXD Why Roy? Is it on Automatically?17:22
RoyKwas just thinking about 14.10 );17:23
RoyK(;17:23
OliPicardah ops 13.10 my bad17:23
OliPicardwas thinking about 14.10 as well!17:23
RoyKI've disabled root login on most of my boxes17:23
RoyKworks well17:23
OliPicardPermitRootLogin no < thats what ive set it to on my box but when i SSHD into the box it provides an error about a bad config.17:24
RoyKPermitRootLogin no <-- that's from my sshd_config17:25
RoyKperhaps you have some special characters there?17:25
OliPicardhttp://paste.reynir.dk/8 < thats my config :)17:26
RoyKtry to type the line in by hand - might be special characters around17:27
RoyKalso - why do you disable key auth?17:27
RoyKand perhaps it wants its ciphers17:27
OliPicardthats what it came with when i got the server :)17:27
OliPicardUsing a Digital Ocean Image :)17:27
RoyKok17:27
shaunojust a hunch, I think PermitRootLogin goes in sshd_config, not ssh_config?  ( you have the client config, rootlogin is a server option)17:28
shauno(per the first two lines of the comments/file)17:28
OliPicardshuno: Ah Yes Doh on my side thanks :D17:29
OliPicardsorry shauno17:29
shaunoYou really want to listen to RoyK about keys though.  they're 'best practice' for very good reasons17:33
OliPicardHow do you set the SSHD keys up?17:36
OliPicardYup i agree, i normally wont be using SSH anyway :) i prefer to use a VNC17:36
RoyKvnc to a server?!?17:44
RoyKOliPicard: ssh-keygen & ssh-copy-id user@host17:44
bekksOliPicard: VNX, unencrypted, totally insecure, over the internet?17:44
bekks*VNC even17:44
RoyKbekks: exactly - insanity17:46
bekksYou dont need any security precautions then at all - that server will be taken over withing minutes.17:50
=== chaos_ is now known as soahccc
OliPicardIm double checking with the host17:56
bekksYou should use ssh, honestly.18:11
OliPicardI will once i can get a stable connection thats the problem right now18:11
OliPicardi used to use PuTTY but my ADSL connection has been so bad recently.18:11
OliPicardOk doing some research on the system it seems the VNC is on the HyperVisor its self.18:13
bekksWhat? No :)18:13
bekksWhich hypervisor is that? :)18:13
OliPicardKVM18:14
bekksYou can configure KVM to run VNC on localhost only, and NOT expose it to the internet.18:15
OliPicardhmm not herd anything back from the host,18:26
RoyKany idea how to install ubuntu on non-pae?18:32
OliPicardone more question :D im editing the etc/sysctl.conf i noticed that some of the redefined items such as net.ipv4.tcp_max_sync_backlog=2080 have a gap after the = and some don't just wondering should i include the gap so for example  backlog = 208018:36
bekksOliPicard: The gap doesnt matter, actually.18:38
OliPicardAwesome thanks bekks18:38
kyle__I got it fixed. It was ureadahead.  It caused everythign to choke up with /var on a separate partition than /.  Ugh.  And no (obvious) clean way of disabling it either.19:05
ancasterhi. I manage the workstations and NFS server of a small university lab. Having /home shared is great because people can move around, but the desktops freeze if the NFS server goes down.19:08
kyle__ancaster: That's kindof expected if the NFS server goes down.  With their files & drive disappearing and all.19:08
kyle__ancaster: Generally, you try and keep servers that are in use from going down....19:09
ancasterkyle__: Yeah... :-) I get that bit. Is there any way of making a fallback NFS server?19:10
ancasteror another solution that doesn't use NFS at all?19:10
kyle__Humm.  I've never seen a way of doing a failback NFS server, but that's not to say it's impossible....19:10
ancasterhmm, okay.19:10
kyle__Are you thinking of something like how windows does portable homes, so it syncs the users files on login locally, then syncs them back to the server on logout?  That I haven't seen, but I suppose it's quite possible.19:11
ancasterIt's just not fun for anyone when the entire lab has to stop working whilst I sort out some problem.19:11
ancasterYeah, something like that could work. I was thinking of doing some rsync on logging in and out...19:11
ancasterOr perhaps using gluster... but my experience with it hasn't be positive.19:12
kyle__gluster is great in a few use cases, but outside of those, even when it __should__ work, it's painful or broken.19:13
ancasterHeh. Good to know.19:13
ancasteralrighty, so I'm not missing some bit of technology that everyone else knows about. :-)19:14
kyle__I know you can use libpam-mount to mount a user's directory at the time they login... I wonder if it's possible to use that, or some other part of pam, to sync their directory...19:14
kyle__Nope :)19:14
sorenYou can have a backup nfs server that just takes over the IP of the broken one.19:15
sorenThere's nothing identifying the server other than its IP.19:15
ancasterIs it common to have the entire user's home directory mounted? We find there is constant traffic from gnome (just moving a window around even).19:16
sorenIt's usually the whole home dir, yes.19:16
ancastersoren: interesting. is there software you recommend that does this (IP failover)?19:17
sorenancaster: Well, the plan only really works if you have the data synchronized between the two servers. Do you?19:18
sorenOtherwise, I imagine things will get.. interesting.19:18
shaunoyou should be able to knock something together with drbd (keep two nfs servers in sync) and heartbeat (for failover)?19:19
ancastersoren: :-) true. well, I don't have anything in place to do this at the moment.19:19
sorenancaster: Do that first. :)19:19
ancastersoren: shauno. :-) okay.19:20
kyle__It looks like you can use the pam_script module to run login and logout hooks per user.  May be able to play with that.19:20
ancasterkyle__: oh cool. thanks. something about this idea seems less complicated maybe.19:23
=== zotta is now known as raray
=== raray is now known as raaray
=== raaray is now known as rarray
ancasterthanks all.  I have some ideas to play with now.19:28
=== cppCzar_ is now known as cppCzar
OliPicardHI Guys, does anyone here have experince compiling sqlite for ubnutu?20:39
OliPicardon node.js20:39
alaingtry #Node.js21:26
psyferreHey folks, I made a git noob error and overwrote a working copy.  I've tried rebooting into a livecd and running extundelete (ext4 on an lvm), but no dice with --restore-all --after [date].  I tried debugfs -w and lsdel says there are no deleted Inodes in that directory.  Am I SOL?  Is there something I haven't tried or am missing?21:37
xnoxpsyferre: you need old commit from git?21:38
psyferrexnox: nope - wasn't that smart.  I didn't have my working copy committed.21:38
xnoxpsyferre: did you atleast $ git add ? files you wanted?21:39
psyferreI was trying to resolve a merge problem and reset back to HEAD, forgetting that I had uncommitted changes on one file that I really wanted to keep.21:39
psyferreI'm rather new to git (always used subversion) and just forgot about the uncommitted file.21:40
psyferreSo it was overwritten by what was in the repo and I lost a large amount of work.  Any other way I'm missing to get at the old contents?21:41
kyle__psyferre: Git doesn't do magic.  It downloads and writes files, and it uploads files.  It doesn't hide your old files someplace else.  There may be some sort of undelete utility that could work, but that's a stretch.21:42
psyferrekyle__: right - the undelete utilty is what I'm looking for.  After doing some research I used sysrq to do an emergency sync, then umount/remount read-only.  After some more research, I booted to a live CD and used extundelete, which only managed to undelete .git in that directory.  I also tried running debugfs, but lsdel says there are no deleted inodes in that directory.21:49
psyferreI'm casting about for anything that I could try that I don't yet know about.21:49
kyle__psyferre: This one may help, again it's a stretch. http://www.cgsecurity.org/wiki/PhotoRec21:50
kyle__There's one more I'm wracking my brain for, I'll let you know when I remember it's name.21:50
psyferrekyle__: Awesome, thanks!  I'll give it a try.21:51
kyle__Hu... There is also an extundelete, and it's even in the ubuntu repos...21:52
kyle__Haven't tried that one.21:52
psyferreYup, tried extundelete first - no dice, unless I've used it incorrectly21:54
kyle__You probably didn't :/  Most of these are designed for the situation where you accidently delete or format a file you need.  Not the situation where you wrote over it.  If it's made as a new file, there's a chance the file overwritten will still exist, but it's not a terribly great chance.21:55
psyferreYeah... I figure it's a longshot.  If I got lucky it'd save me several days worth of work, though.  =-/21:57
kyle__Ouch.  Sorry man.  If you have a separate machine with a buch of space on it, there are things you can do to prevent this sort of problem in the future.  HOldon, finding article...22:01
kyle__ Not the exact one I was thinking of, but this may help for the future.  http://blog.interlinked.org/tutorials/rsync_time_machine.html22:03
kyle__This is the one I was thinking of.  It does essentially the same thing, but explains every working part in detail, so it's worth a read even if you don't want to do it.  http://www.mikerubel.org/computers/rsync_snapshots/22:04
psyferreThanks, kyle__.  Most of my other servers have amanda backing up everything important every night.  This was a new machine for a project that hasn't gotten to staging yet, so I hadn't set that up yet.  Live and learn, I suppose.22:05
kyle__psyferre: That second link is what I've done when I had several, shall we say, bad users, who would accidently delete things when they were panicked.22:06
kyle__I had it take hourly snapshots which it kept for 7 days, Saturday through Thursday.  And on Friday, since it was the day they screwed up the most, I had it do them every 15 minutes.22:07
psyferrelol22:07
psyferreThat's fantastic.22:07
kyle__Big samba server, used by everyone in the company.  Saved their hides more times than I can count, and saved me a ton of trouble.22:07
kyle__night22:24
matt2000Hi! Various utils on my Ubuntu 12.04 server cant fetch things via HTTPS. `npm` and  `docker pull` are examples. curl works fine, and HTTP urls work fine. Any ideas?22:58
wammatt2000: http://i.imgur.com/3ezM6.jpg23:03
wammore like http://codeworkx.de/wordpress/wp-content/uploads/2011/12/jacoj.jpg23:05
wamsry23:05
wamgoogle images fuzzed me23:05

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