[01:57] hello [02:31] New bug: #889689 in nagios3 (main) "E: nagios3-common: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/889689 [02:39] what's a good firewall for 11.10 ? [02:42] dravekx: iptables doesn't do it for you? [02:43] Is that installed with a fresh install? [02:44] Yup, its part of the standard build [02:44] ah nice. I did not know that. ty. [02:44] Tricky to configure though if you're not sure what you're doing. I love the ufw front end for basic configs [02:45] well, I was looking at shorewall, but someone in #linux said iptables also. [02:45] if it's part of the build, I should be fine. it's a home server. :) [02:46] ufw is the way to go then. Google for 'ufw howto' or something like that [02:47] great. ty [02:50] https://help.ubuntu.com/community/UFW [02:58] great! works perfect. [03:57] hello === virusuy is now known as virusuy-away [05:03] Trying 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:05] Any ideas? [05:29] jehoshua02: puppet their /etc/mysql/my.cnf [05:29] I have a few even set to use rsync into ramdisk [05:31] jehoshua02: yes, take a look at /etc/mysql/my.cnf .. search for datadir [05:31] just don't forget to puppet the  /etc/apparmor.d/usr.sbin.mysqld too if you're running apparmor [05:32] if you have some issues with storage, change your datadir folder and use any backup system (rsync, bacula,etc.) for backup that DB [05:43] virusuy-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:45] have your considered scripting the datadir by using a file in the /mysql/conf.d folder? [05:45] you could override the property in the master my.cnf [05:46] ninjix: I came across that but don't remember why I didn't look into it further... [05:50] I 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:53] ninjix: 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-d [05:55] ninjix: I mean, I understand that the datadir ought to be highly guarded, but this just seems silly. [05:56] This looks promising: http://www.ubuntugeek.com/how-to-change-the-mysql-data-default-directory.html [05:56] we'll, I refrain from commenting on apparmor or selinux usefulness :) [05:57] both of those guides look fine to me [05:58] the important thing is to get the permissions correct on the directory [05:58] how are you planning to script this? [05:58] true. -rwx------ mysql mysql? [05:58] you using something like Chef for Puppet? [05:58] ninjix: not even. [05:59] ninjix: just plain old shell script. [05:59] #!/bin/bash [05:59] hah.. old school sys ops [06:00] we'll just make sure you have some logical tests for checking paths exist and permissions are correct [06:01] I 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:02] However, I'd really like to know how to add more storage and processors when needed. What do they call that? Clustering? [06:02] how many servers you planning to use in your development pool? [06:03] ninjix: right now I only have one. [06:03] But you know how it goes . . . [06:04] some 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] And cling to my invention with my life! [06:04] :) [06:07] that's why we have ubuntu clouds :) [06:07] ninjix: right now I don't really have a budget for anything. [06:10] I'm a big fan of KISS and aways reminding devs not to get overly complex with infrastructure too early on. [06:10] MySQL's default install in Ubuntu is excellent for getting an idea off the ground [06:12] it 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:14] ninjix: keeping all my valuable data separate from all the software muck is all I'm really trying to do at this point. [06:15] ninjix: I'll worry about clustering, redundant storage, load balancing later. [06:15] :) [06:38] mysql is pretty poor tbh [06:45] yeah, if you want to scale beyond a couple servers, it's a bad choice [06:45] it's fine to work with on one server, but don't get too attached to any mysql-isms if you want to scale later [07:04] airtonix, qman__: I'm curious how you would solve my problem of keeping my data separate from everything else? [07:04] I think it's silly I can't just mount a folder right ontop of the datadir and not have to mess with apparmor. [07:06] New 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/889732 [07:29] jehoshua02: but what about changing datadir option in my.cf ? === virusuy-away is now known as virus === virus is now known as virusuy [07:30] virusuy: I've thought about that, but I'm still extremely curious why mounting on top of the current datadir doesn't work. [07:33] did you try ? [07:33] mount on top of current datadir [07:33] virusuy: yes. [07:33] any error or log or something ? [07:35] virusuy: something like this: https://gist.github.com/1361763 [07:35] virusuy: let me rewind a bit and try it again, and post the error I'm getting. [07:36] ok [07:38] jehoshua02: what is "sf_mysql_data" [07:38] ? [07:38] It's the name of the virtualbox shared folder. [07:38] I'm mounting two other sf's exactly the same way, and they work just fine. [07:38] read and write. [07:39] ok, rewind and see which error you got [07:39] virusuy: 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] k [07:41] jehoshua02: could be, [07:42] jehoshua02: can you pastebin here the output of aa-status command ? [07:42] just execute aa-status in command line . [07:44] that command will show you the status of apparmor. [07:45] sure, give me a minute... [07:46] one 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:51] stinker. How do I copy the contents of the directory but not the directory? [07:57] virusuy: https://gist.github.com/1361763#file__error_cp [07:57] virusuy: after the mount, I can't write to the directory. [08:02] jehoshua02: googgling seems an issue with vbox [08:03] virusuy: 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] jehoshua02: oh, then shouldn't be problems [08:04] https://gist.github.com/1361763#file_aa_status [08:05] virusuy: There is an aa profile for mysqld... [08:07] jehoshua02: yes [08:07] take a look at /etc/apparmor.d/usr.sbin.mysqld [08:07] that's mysqld's profile [08:08] virusuy: is there an aa config against mounting? [08:10] jehoshua02: let me see [08:10] virusuy: https://gist.github.com/1361763#file_etc_apparmor.d_usr.sbin.mysqld [08:11] /var/lib/mysql/ r... [08:12] yes [08:12] I'm unfamiliar with apparmor syntax. Does that mean no writing directly under /var/lib/mysql? [08:12] that's means... mysqld will use that folder with read permissions [08:12] But /var/lib/mysql/** rwk, means? [08:13] read and write for any file in that folder [08:13] virusuy: what's the k? [08:13] file locking [08:14] virusuy: does any of this prevent root from copying files to /var/lib/mysql? [08:16] i don't see any rule [08:16] but, let's test something [08:16] virusuy: turn off apparmor? [08:16] just for a second [08:17] and see if that's the problem [08:17] if it is, turn on apparmor [08:17] if not, also turn it on [08:17] sudo /etc/init.d/apparmor stop? [08:18] yes [08:19] https://gist.github.com/1361763#file_stop_apparmor [08:20] virusuy: selinux too? [08:20] jehoshua02: yes, remember to turn them on again [08:20] let's see . . . echo 0 > /selinux/enforce? [08:20] virusuy: There's always at least 5 ways to do these things. [08:21] jehoshua02: yes [08:21] :) [08:21] I guess it's backup. If we forget how to do it one way, we'll remember another. [08:22] rsync between /var/lib/mysql and destination folder is the easiest way [08:24] https://gist.github.com/1361763#file_stop_selinux [08:24] is your SF mounted ? [08:25] right ? [08:27] I'm getting mixed results... [08:28] wait, hold on... [08:29] ... [08:30] sorry it took so long: https://gist.github.com/1361763#file_proper_mounting [08:31] so ... [08:31] You'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] yes [08:31] mounting is working. [08:31] nice [08:31] but if you touch [08:32] touch a [08:32] in /var/lib/mysql [08:32] works? [08:33] I can't write whatsoever... [08:33] :-\ [08:33] i'm out of clue [08:33] clues* [08:33] Should root be able to write? even when mysql is owner? [08:33] I know, wierd right? [08:33] yes , otherwise you could be "locked out" [08:34] root is basically... god [08:34] http://images.daniweb.com/customavatars/avatar152410_5.gif [08:35] lol [08:36] i guess you will end up with a nice and shiny rsync script :-D [08:37] I'm afraid I'm too stubborn to give up until I know why it doesn't work. [08:38] I guess I'll have to give it a break. [08:38] http://images.daniweb.com/customavatars/avatar152410_5.gif [08:38] jehoshua02: that is a god idea [08:38] Or else I'll end up like this guy. [08:38] http://images.daniweb.com/customavatars/avatar152410_5.gif [08:38] lol [08:38] well, it's 6:38 am here in Uruguay [08:38] so, i must be in bed right now [08:38] (freekin funny right? I love it.) [08:39] also today is my birthday [08:39] so... see you around [08:39] It's 12:39 and I got church -- happy b-day! yeah, thanks for trying to figure it out with me. [09:16] New bug: #681724 in libcgroup (universe) "cgroup-bin package installs with errors (failure to parse /etc/cgconfig.conf)" [High,Fix released] https://launchpad.net/bugs/681724 [10:12] is anyone familiar with senderid/spf records? [10:58] hi all [11:09] how can i install additional locales via cli? [11:09] i remember having ncurses gui somewhere for that === alaing is now known as funkymonk [11:54] dsirijus: iirc locale-gen [11:54] given you have language-pack-xx-base where xx is that language ... [11:54] RoyK: i don't know exact name of the locale, nor how to setup default locale [11:55] iirc, the ncurses gui was shown on dpkg-reconfigure locales [11:55] now it's not [11:55] dsirijus: google for LC_ALL etc - the locale is usually set per user [11:56] but start with installing the language pack [11:56] or start out finding the names of the locale :P [11:57] yeah, the last time i tried to do all that by hand, all got screwed [11:57] that's why i'm trying to recall which was this gui (cli gui) which set it all up nicel [11:57] y [12:01] RoyK: i'm basically having issue with putty displaying characters [12:01] just did a test here [12:01] langpacks="";for i in nb nn de sv da; do langpacks+="language-support-$i "; done; apt-get install $langpacks [12:01] that install language support for scandinavian languages +german [12:02] :) [12:02] the locale is usually two letters [12:02] yeah, found my locale [12:02] but! [12:02] :) [12:02] i think it's the putty issue [12:02] now, how to remove locale? [12:02] :D [12:03] it's rarely a puty issue [12:03] try export LC_ALL=yourlocale.UTF-8 [12:04] * RoyK needs food [12:07] * koolhead17 drops RoyK inside becon well === nande is now known as nandemonai [12:56] New 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/889812 === maxb is now known as Guest38799 === JanC is now known as Guest33428 === funkyHat_ is now known as funkyHat [14:23] hi, how to use vmbuilder create a VM on server . [16:12] hi... I'm getting a "truncate: not found" error... which package contains it? [16:13] or which package do I install to have bash give me the "install X to have this package" tips? [16:13] or which package do I install to have bash give me the "install X to have this file" tips? [16:31] well, it's on all my lucid boxes and the hardy box doesn't have that feature [16:31] trying to remember the dpkg switches to find what it's in [16:33] ah [16:33] ryan@mediaopty:~$ dpkg-query -S `which truncate` [16:33] coreutils: /usr/bin/truncate === Guest38799 is now known as maxb [17:14] Daviey, [17:17] chroot: if you're new to VMs on linux, virt-manager is probably the easiest [17:18] koolhead17: [17:23] RoyK, wassup dude [17:23] * koolhead17 bows to Daviey [17:35] hey 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] any ideas? [17:36] i might add, altho i'm doing netboot, i'm not using preseed for automated install just yet, i'm interactively installing [17:37] how do i make the default editor vim; and not nano or whatever it seems tob to be now .... [17:37] arooni-mobile, export EDITOR=vim <--- in your $HOME/.bash_profile [17:38] and or at the cmd line, type that. [17:43] i'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:48] how can i make it so that bash is automatically loaded as my shell? [17:48] chsh [17:49] arooni-mobile, update-alternatives [17:49] for the first question, that is [17:49] the second, change it in /etc/passwd or use chsh [17:52] arooni-mobile: and change /etc/default/useradd to bash if you want that for new users as well [17:57] how would i make tmux start upon ssh login to my server? i'm using bash if it matters. [17:58] arooni-mobile: do you mean , start tmux when you login trhough ssh ? [17:58] virusuy, exactly [17:58] arooni-mobile: uhmmm take a look at your .profile file [17:58] in your home folder [17:59] i esentially cant see a time where i wouldnt want to do that each time i login [17:59] unless i'm missing somethiing [17:59] .profile is loaded everytime you log in [18:00] ubuntu seems to be pushing byobu over tmux .. [18:00] I 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] Kinda getting used to byobu .. Its enabled by default on all the EC2/UEC/Cloud images now... [18:25] hm.. tmux or screen? is tmux any better? === jason is now known as jasef === marass is now known as mcas [20:24] i installed ubuntu server on a machine with no network connection. how can i stop the startup scripts from waiting for network configuration? === alaing is now known as funkymonk === jason is now known as jasef [23:04] under lucid's kernel, how do I enable the disk buffer [23:04] It somehow got turned off [23:05] disk buffer? [23:05] exactly what is the disk buffer? [23:06] yes, the "normal" disk buffer that Linux normaly has on [23:06] there is a vfs read cache, and vfs write buffer [23:06] but those are not disk buffer [23:06] there are also disk buffers on your drive and raid cards [23:06] and how you control them depends on the drive/raid [23:06] Guess Im looking for the filesystem buffers [23:06] I'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:09] patdk-lap, How I figured its off is the very slow disk reads and no buffers nor cache when "free" is ran [23:10] I'm not sure it is possible to turn it off [23:10] except to tune it [23:10] but normally you shouldn't except much write buffer usage [23:10] as it should be written [23:10] cache usage grows over time [23:11] its zero at the moment [23:12] well, post your free -m output [23:12] http://pastebin.com/MGGubS7F [23:12] thats without -m [23:12] http://pastebin.com/ZnSzpPAp <- with free -m [23:13] odd [23:14] unless you tuned the amount of free ram you wanted [23:14] and it has no ram left for buffers/cache [23:14] mope [23:15] never used sysctrl on this system [23:15] jrwr: what sort of system is this? [23:15] Ubuntu - Lucid, VPS with OpenVM [23:15] jrwr: I've seen similar thing on embedded stuff [23:15] that's about it [23:15] and btw [23:15] !pastebin [23:16] For 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] pastebin.com is an ad havoc [23:16] lol, I use pastebinit from the repos thats all [23:16] you did? [23:16] yes [23:17] damn - someone should fix that... [23:17] Lucid repos still have it going to pastebin.com [23:17] yeah, I just checked [23:17] oh, openvm [23:17] I don't think that works for openvm [23:17] so does maverick [23:17] cause you aren't in conrtol of the kernel, your using the host kernel [23:18] ah [23:19] yep, it's a vps thing [23:19] it doesn't show [23:19] well i guess I shot my self in the foot with a crap VPS Provider [23:19] no, all vps providers would be that [23:19] you need a vm provider if you really want that [23:19] no, the disk speed is still crap [23:20] ps aux takes about 2 minutes to print anything [23:20] anything not FS based is fine [23:20] bug 648298 - seems someone has released a fix for pastebinit... [23:20] Launchpad bug 648298 in pastebinit "pastebinit should use paste.ubuntu.com by default" [Wishlist,Fix released] https://launchpad.net/bugs/648298 [23:21] jrwr: hehe - seems they don't sell for quality, then :P [23:39] jrwr: how much do you pay per month for that VPS? [23:40] RoyK, 130 for 1 year [23:40] 1TB of BW a month, 50GB disk, [23:41] * RoyK wonders if that machine can possibly sustain 1TB/m with that i/o performance [23:42] s/\/m/\/mon\/ [23:42] \o/ [23:52] og - and btw, if anyone cares, pastebinit is configurable in $HOME/.pastebinit.xml - it's all documented if you know sufficient python to RTFS :þ [23:58] royk, if it's configurable, doesn't matter, if it's not default :) [23:58] 130/year? that sounds like the going price for crap vps's [23:59] about 11 a month [23:59] * patdk-lap wonders if that is in usd