/srv/irclogs.ubuntu.com/2011/11/13/#ubuntu-server.txt

dravekxhello01:57
uvirtbotNew bug: #889689 in nagios3 (main) "E: nagios3-common: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/88968902:31
dravekxwhat's a good firewall for 11.10 ?02:39
ropetindravekx: iptables doesn't do it for you?02:42
dravekxIs that installed with a fresh install?02:43
ropetinYup, its part of the standard build02:44
dravekxah nice. I did not know that. ty.02:44
ropetinTricky to configure though if you're not sure what you're doing.  I love the ufw front end for basic configs02:44
dravekxwell, I was looking at shorewall, but someone in #linux said iptables also.02:45
dravekxif it's part of the build, I should be fine. it's a home server. :)02:45
ropetinufw is the way to go then.  Google for 'ufw howto' or something like that02:46
dravekxgreat. ty02:47
ropetinhttps://help.ubuntu.com/community/UFW02:50
dravekxgreat! works perfect.02:58
nyukkahello03:57
=== virusuy is now known as virusuy-away
jehoshua02Trying to come up with a scriptable way to configure mysql databases to be stored in an alternate location, for both storage space, and disaster recovery reasons.05:03
jehoshua02Any ideas?05:05
ninjixjehoshua02: puppet their /etc/mysql/my.cnf05:29
ninjixI have a few even set to use rsync into ramdisk05:29
virusuy-awayjehoshua02: yes, take a look at /etc/mysql/my.cnf .. search for datadir05:31
ninjixjust don't forget to puppet the  /etc/apparmor.d/usr.sbin.mysqld too if you're running apparmor05:31
virusuy-awayif you have some issues with storage, change your datadir folder and use any backup system (rsync, bacula,etc.) for backup that DB05:32
jehoshua02virusuy-away, ninjix: thanks. I looked into changing the datadir in my.cnf, but there's no (simple) way to script this. So my next idea was to leave it along and mount a folder ontop of the /var/lib/mysql/ datadir. But I think apparmor is hindering writes. Not sure. I'm unfamiliar with apparmor.05:43
ninjixhave your considered scripting the datadir by using a file in the /mysql/conf.d folder?05:45
ninjixyou could override the property in the master my.cnf05:45
jehoshua02ninjix: I came across that but don't remember why I didn't look into it further...05:46
ninjixI wish someone on the community take on the effort spreading the current default mysql my.cnf into more little files. Make it less monolithic with more include folders.05:50
jehoshua02ninjix: This guy seems to have figured it out, and it had to do with apparmor, but it's not clear to me how he resolved the issue, or if it's scriptable: http://serverfault.com/questions/227565/moving-mysql-datadir-not-working-problems-with-symlink-in-conf-d05:53
jehoshua02ninjix: I mean, I understand that the datadir ought to be highly guarded, but this just seems silly.05:55
jehoshua02This looks promising: http://www.ubuntugeek.com/how-to-change-the-mysql-data-default-directory.html05:56
ninjixwe'll, I refrain from commenting on apparmor or selinux usefulness :)05:56
ninjixboth of those guides look fine to me05:57
ninjixthe important thing is to get the permissions correct on the directory05:58
ninjixhow are you planning to script this?05:58
jehoshua02true. -rwx------ mysql mysql?05:58
ninjixyou using something like Chef for Puppet?05:58
jehoshua02ninjix: not even.05:58
jehoshua02ninjix: just plain old shell script.05:59
jehoshua02#!/bin/bash05:59
ninjixhah.. old school sys ops05:59
ninjixwe'll just make sure you have some logical tests for checking paths exist and permissions are correct06:00
jehoshua02I don't consider myself a sys admin. I'm doing this because that's how badly I want a server for my web development projects.06:01
jehoshua02However, I'd really like to know how to add more storage and processors when needed. What do they call that? Clustering?06:02
ninjixhow many servers you planning to use in your development pool?06:02
jehoshua02ninjix: right now I only have one.06:03
jehoshua02But you know how it goes . . .06:03
jehoshua02some guy does something cool out of his garage... it goes viral ... then he has to sell it because he can't maintain it any longer. I'd prefer to avoid that fate.06:04
jehoshua02And cling to my invention with my life!06:04
jehoshua02:)06:04
ninjixthat's why we have ubuntu clouds :)06:07
jehoshua02ninjix: right now I don't really have a budget for anything.06:07
ninjixI'm a big fan of KISS and aways reminding devs not to get overly complex with infrastructure too early on.06:10
ninjixMySQL's default install in Ubuntu is excellent for getting an idea off the ground06:10
ninjixit will give you plenty of mileage and when the time comes its not too hard to figure out how to scale out your boxes these days. It's a well traveled road.06:12
jehoshua02ninjix: keeping all my valuable data separate from all the software muck is all I'm really trying to do at this point.06:14
jehoshua02ninjix: I'll worry about clustering, redundant storage, load balancing later.06:15
ninjix:)06:15
airtonixmysql is pretty poor tbh06:38
qman__yeah, if you want to scale beyond a couple servers, it's a bad choice06:45
qman__it's fine to work with on one server, but don't get too attached to any mysql-isms if you want to scale later06:45
jehoshua02airtonix, qman__: I'm curious how you would solve my problem of keeping my data separate from everything else?07:04
jehoshua02I think it's silly I can't just mount a folder right ontop of the datadir and not have to mess with apparmor.07:04
uvirtbotNew bug: #889732 in samba (main) "package samba 2:3.5.11~dfsg-1ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/88973207:06
virusuy-awayjehoshua02: but what about changing datadir option in my.cf ?07:29
=== virusuy-away is now known as virus
=== virus is now known as virusuy
jehoshua02virusuy: I've thought about that, but I'm still extremely curious why mounting on top of the current datadir doesn't work.07:30
virusuydid you try ?07:33
virusuymount on top of current datadir07:33
jehoshua02virusuy: yes.07:33
virusuyany error or log or something ?07:33
jehoshua02virusuy: something like this: https://gist.github.com/136176307:35
jehoshua02virusuy: let me rewind a bit and try it again, and post the error I'm getting.07:35
virusuyok07:36
virusuyjehoshua02: what is "sf_mysql_data"07:38
virusuy?07:38
jehoshua02It's the name of the virtualbox shared folder.07:38
jehoshua02I'm mounting two other sf's exactly the same way, and they work just fine.07:38
jehoshua02read and write.07:38
virusuyok, rewind and see which error you got07:39
jehoshua02virusuy: I'm thinking this is a permission/apparmor issue, but the wierd part, is that I'm not moving the datadir, and I'm using exactly the same permissions that were there before the mount.07:39
jehoshua02k07:39
virusuyjehoshua02: could be,07:41
virusuyjehoshua02: can you pastebin here the output of aa-status command ?07:42
virusuyjust execute aa-status in command line .07:42
virusuythat command will show you the status of apparmor.07:44
jehoshua02sure, give me a minute...07:45
jehoshua02one thing I noticed so far, is that my perms are different: I'm using 700, and most of the mysql files are 660. No x.07:46
jehoshua02stinker. How do I copy the contents of the directory but not the directory?07:51
jehoshua02virusuy: https://gist.github.com/1361763#file__error_cp07:57
jehoshua02virusuy: after the mount, I can't write to the directory.07:57
virusuyjehoshua02: googgling seems an issue with vbox08:02
jehoshua02virusuy: however, I'm mounting two other shared vbox folders, one for git repos, and another for www, and I can read write to them fine.08:03
virusuyjehoshua02: oh, then shouldn't be problems08:03
jehoshua02https://gist.github.com/1361763#file_aa_status08:04
jehoshua02virusuy: There is an aa profile for mysqld...08:05
virusuyjehoshua02: yes08:07
virusuytake a look at /etc/apparmor.d/usr.sbin.mysqld08:07
virusuythat's mysqld's profile08:07
jehoshua02virusuy: is there an aa config against mounting?08:08
virusuyjehoshua02: let me see08:10
jehoshua02virusuy: https://gist.github.com/1361763#file_etc_apparmor.d_usr.sbin.mysqld08:10
jehoshua02/var/lib/mysql/ r...08:11
virusuyyes08:12
jehoshua02I'm unfamiliar with apparmor syntax. Does that mean no writing directly under /var/lib/mysql?08:12
virusuythat's means... mysqld will use that folder with read permissions08:12
jehoshua02But /var/lib/mysql/** rwk, means?08:12
virusuyread and write for any file in that folder08:13
jehoshua02virusuy: what's the k?08:13
virusuyfile locking08:13
jehoshua02virusuy: does any of this prevent root from copying files to /var/lib/mysql?08:14
virusuyi don't see any rule08:16
virusuybut, let's test something08:16
jehoshua02virusuy: turn off apparmor?08:16
virusuyjust for a second08:16
virusuyand see if that's the problem08:17
virusuyif it is, turn on apparmor08:17
virusuyif not, also turn it on08:17
jehoshua02sudo /etc/init.d/apparmor stop?08:17
virusuyyes08:18
jehoshua02https://gist.github.com/1361763#file_stop_apparmor08:19
jehoshua02virusuy: selinux too?08:20
virusuyjehoshua02: yes, remember to turn them on again08:20
jehoshua02let's see . . . echo 0 > /selinux/enforce?08:20
jehoshua02virusuy: There's always at least 5 ways to do these things.08:20
virusuyjehoshua02: yes08:21
jehoshua02:)08:21
jehoshua02I guess it's backup. If we forget how to do it one way, we'll remember another.08:21
virusuyrsync between /var/lib/mysql and destination folder is the easiest way08:22
jehoshua02https://gist.github.com/1361763#file_stop_selinux08:24
virusuyis your SF mounted ?08:24
virusuyright ?08:25
jehoshua02I'm getting mixed results...08:27
jehoshua02wait, hold on...08:28
virusuy...08:29
jehoshua02sorry it took so long: https://gist.github.com/1361763#file_proper_mounting08:30
virusuyso ...08:31
jehoshua02You'll see that I list the contents first, then cat/grep out the fstab entry, then apply the mount, then list again to show the difference.08:31
virusuyyes08:31
jehoshua02mounting is working.08:31
virusuynice08:31
virusuybut if you touch08:31
virusuytouch a08:32
virusuyin /var/lib/mysql08:32
virusuyworks?08:32
jehoshua02I can't write whatsoever...08:33
virusuy:-\08:33
virusuyi'm out of clue08:33
virusuyclues*08:33
jehoshua02Should root be able to write? even when mysql is owner?08:33
jehoshua02I know, wierd right?08:33
virusuyyes , otherwise you could be "locked out"08:33
virusuyroot is basically... god08:34
jehoshua02http://images.daniweb.com/customavatars/avatar152410_5.gif08:34
virusuylol08:35
virusuyi guess you will end up with a nice and shiny rsync script :-D08:36
jehoshua02I'm afraid I'm too stubborn to give up until I know why it doesn't work.08:37
jehoshua02I guess I'll have to give it a break.08:38
jehoshua02http://images.daniweb.com/customavatars/avatar152410_5.gif08:38
virusuyjehoshua02: that is a god idea08:38
jehoshua02Or else I'll end up like this guy.08:38
jehoshua02http://images.daniweb.com/customavatars/avatar152410_5.gif08:38
virusuylol08:38
virusuywell, it's 6:38 am here in Uruguay08:38
virusuyso, i must be in bed right now08:38
jehoshua02(freekin funny right? I love it.)08:38
virusuyalso today is my birthday08:39
virusuyso... see you around08:39
jehoshua02It's 12:39 and I got church -- happy b-day! yeah, thanks for trying to figure it out with me.08:39
uvirtbotNew bug: #681724 in libcgroup (universe) "cgroup-bin package installs with errors (failure to parse /etc/cgconfig.conf)" [High,Fix released] https://launchpad.net/bugs/68172409:16
Dulcinis anyone familiar with senderid/spf records?10:12
koolhead17hi all10:58
dsirijushow can i install additional locales via cli?11:09
dsirijusi remember having ncurses gui somewhere for that11:09
=== alaing is now known as funkymonk
RoyKdsirijus: iirc locale-gen <somelocale>11:54
RoyKgiven you have language-pack-xx-base where xx is that language ...11:54
dsirijusRoyK: i don't know exact name of the locale, nor how to setup default locale11:54
dsirijusiirc, the ncurses gui was shown on dpkg-reconfigure locales11:55
dsirijusnow it's not11:55
RoyKdsirijus: google for LC_ALL etc - the locale is usually set per user11:55
RoyKbut start with installing the language pack11:56
RoyKor start out finding the names of the locale :P11:56
dsirijusyeah, the last time i tried to do all that by hand, all got screwed11:57
dsirijusthat's why i'm trying to recall which was this gui (cli gui) which set it all up nicel11:57
dsirijusy11:57
dsirijusRoyK: i'm basically having issue with putty displaying characters12:01
RoyKjust did a test here12:01
RoyKlangpacks="";for i in nb nn de sv da; do langpacks+="language-support-$i "; done; apt-get install $langpacks12:01
RoyKthat install language support for scandinavian languages +german12:01
koolhead17:)12:02
RoyKthe locale is usually two letters12:02
dsirijusyeah, found my locale12:02
dsirijusbut!12:02
dsirijus:)12:02
dsirijusi think it's the putty issue12:02
dsirijusnow, how to remove locale?12:02
dsirijus:D12:02
RoyKit's rarely a puty issue12:03
RoyKtry export LC_ALL=yourlocale.UTF-812:03
* RoyK needs food12:04
* koolhead17 drops RoyK inside becon well12:07
=== nande is now known as nandemonai
uvirtbotNew bug: #889812 in samba (main) "package samba 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: ErrorMessage: package samba is not ready for configuration  cannot configure (current status `half-installed')" [Undecided,New] https://launchpad.net/bugs/88981212:56
=== maxb is now known as Guest38799
=== JanC is now known as Guest33428
=== funkyHat_ is now known as funkyHat
chroothi, how to use vmbuilder create a VM on server .14:23
muszekhi... I'm getting a "truncate: not found" error... which package contains it?16:12
muszekor which package do I install to have bash give me the "install X to have this package" tips?16:13
muszekor which package do I install to have bash give me the "install X to have this file" tips?16:13
qman__well, it's on all my lucid boxes and the hardy box doesn't have that feature16:31
qman__trying to remember the dpkg switches to find what it's in16:31
qman__ah16:33
qman__ryan@mediaopty:~$ dpkg-query -S `which truncate`16:33
qman__coreutils: /usr/bin/truncate16:33
=== Guest38799 is now known as maxb
koolhead17Daviey,17:14
RoyKchroot: if you're new to VMs on linux, virt-manager is probably the easiest17:17
Davieykoolhead17:17:18
koolhead17RoyK, wassup dude17:23
* koolhead17 bows to Daviey 17:23
jtranhey all.  i'm trying to setup a pxe server so that i can launch an installation over the network w/ out dvd media.  so i followed the instructions to do a netboot installer, which when i start the client machine it gets to the installer just fine.  however my problem is that the netboot initrd doesn't allow me to choose my own custom local network mirror.   it only gives me the archive.ubuntu as a selectable option.17:35
jtranany ideas?17:35
jtrani might add, altho i'm doing netboot, i'm not using preseed for automated install just yet, i'm interactively installing17:36
arooni-mobilehow do i make the default editor vim; and not nano or whatever it seems tob to be now ....17:37
jtranarooni-mobile, export EDITOR=vim <--- in your $HOME/.bash_profile17:37
jtranand or at the cmd line, type that.17:38
arooni-mobilei'm trying to come up with ways to make my terminal sessions more useful.  usually i open a few different tabs on terminals... any tips you folks have for making your ssh terminal work more useful?17:43
arooni-mobilehow can i make it so that bash is automatically loaded as my shell?17:48
Patrickdkchsh17:48
qman__arooni-mobile, update-alternatives17:49
qman__for the first question, that is17:49
qman__the second, change it in /etc/passwd or use chsh17:49
RoyKarooni-mobile: and change /etc/default/useradd to bash if you want that for new users as well17:52
arooni-mobilehow would i make tmux start upon ssh login to my server?  i'm using bash if it matters.17:57
virusuyarooni-mobile: do you mean , start tmux when you login trhough ssh ?17:58
arooni-mobilevirusuy, exactly17:58
virusuyarooni-mobile: uhmmm take a look at your .profile file17:58
virusuyin your home folder17:58
arooni-mobilei esentially cant see a time where i wouldnt want to do that each time i login17:59
arooni-mobileunless i'm missing somethiing17:59
virusuy.profile is loaded everytime you log in17:59
Kiallubuntu seems to be pushing byobu over tmux ..18:00
shaunoI have 'if [ $TERM == "xterm" ]; then tmux attach; fi' at the end of my bashrc.  I found if you don't check for a sensible $TERM, you can break things (I think rsync in particular)18:00
KiallKinda getting used to byobu .. Its enabled by default on all the EC2/UEC/Cloud images now...18:00
RoyKhm.. tmux or screen? is tmux any better?18:25
=== jason is now known as jasef
=== marass is now known as mcas
wakejagri installed ubuntu server on a machine with no network connection.  how can i stop the startup scripts from waiting for network configuration?20:24
=== alaing is now known as funkymonk
=== jason is now known as jasef
jrwrunder lucid's kernel, how do I enable the disk buffer23:04
jrwrIt somehow got turned off23:04
patdk-lapdisk buffer?23:05
patdk-lapexactly what is the disk buffer?23:05
jrwryes, the "normal" disk buffer that Linux normaly has on23:06
patdk-lapthere is a vfs read cache, and vfs write buffer23:06
patdk-lapbut those are not disk buffer23:06
patdk-lapthere are also disk buffers on your drive and raid cards23:06
patdk-lapand how you control them depends on the drive/raid23:06
jrwrGuess Im looking for the filesystem buffers23:06
RudyValenciaI'm trying to set up a Windows XP PXE installation using Linux as the server (not Windows' RIS or WDS), but I can't get it to recognize my NIC, despite integrating the drivers in my setup folder; why?23:06
jrwrpatdk-lap, How I figured its off is the very slow disk reads and no buffers nor cache when "free" is ran23:09
patdk-lapI'm not sure it is possible to turn it off23:10
patdk-lapexcept to tune it23:10
patdk-lapbut normally you shouldn't except much write buffer usage23:10
patdk-lapas it should be written23:10
patdk-lapcache usage grows over time23:10
jrwrits zero at the moment23:11
patdk-lapwell, post your free -m output23:12
jrwrhttp://pastebin.com/MGGubS7F23:12
jrwrthats without -m23:12
jrwrhttp://pastebin.com/ZnSzpPAp <- with free -m23:12
patdk-lapodd23:13
patdk-lapunless you tuned the amount of free ram you wanted23:14
patdk-lapand it has no ram left for buffers/cache23:14
jrwrmope23:14
jrwrnever used sysctrl on this system23:15
RoyKjrwr: what sort of system is this?23:15
jrwrUbuntu - Lucid, VPS with OpenVM23:15
RoyKjrwr: I've seen similar thing on embedded stuff23:15
RoyKthat's about it23:15
RoyKand btw23:15
RoyK!pastebin23:15
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.23:16
RoyKpastebin.com is an ad havoc23:16
jrwrlol, I use pastebinit from the repos thats all23:16
RoyKyou did?23:16
jrwryes23:16
RoyKdamn - someone should fix that...23:17
jrwrLucid repos still have it going to pastebin.com23:17
RoyKyeah, I just checked23:17
patdk-lapoh, openvm23:17
patdk-lapI don't think that works for openvm23:17
RoyKso does maverick23:17
patdk-lapcause you aren't in conrtol of the kernel, your using the host kernel23:17
jrwrah23:18
patdk-lapyep, it's a vps thing23:19
patdk-lapit doesn't show23:19
jrwrwell i guess I shot my self in the foot with a crap VPS Provider23:19
patdk-lapno, all vps providers would be that23:19
patdk-lapyou need a vm provider if you really want that23:19
jrwrno, the disk speed is still crap23:19
jrwrps aux takes about 2 minutes to print anything23:20
jrwranything not FS based is fine23:20
RoyKbug 648298 - seems someone has released a fix for pastebinit...23:20
uvirtbotLaunchpad bug 648298 in pastebinit "pastebinit should use paste.ubuntu.com by default" [Wishlist,Fix released] https://launchpad.net/bugs/64829823:20
RoyKjrwr: hehe - seems they don't sell for quality, then :P23:21
RoyKjrwr: how much do you pay per month for that VPS?23:39
jrwrRoyK, 130 for 1 year23:40
jrwr1TB of BW a month, 50GB disk,23:40
* RoyK wonders if that machine can possibly sustain 1TB/m with that i/o performance23:41
RoyKs/\/m/\/mon\/23:42
RoyK\o/23:42
RoyKog - and btw, if anyone cares, pastebinit is configurable in $HOME/.pastebinit.xml - it's all documented if you know sufficient python to RTFS :þ23:52
patdk-laproyk, if it's configurable, doesn't matter, if it's not default :)23:58
patdk-lap130/year? that sounds like the going price for crap vps's23:58
patdk-lapabout 11 a month23:59
* patdk-lap wonders if that is in usd23:59

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