[00:54] <Frenk_> Hey I have a problem with my MySQL - I create the config my.cnf and they get deleted. When I try to start mysqld it stopps: http://paste.ubuntu.com/548399/ | mysql_safe does work for the website but phpmyadmin doesnt work
[00:58] <Frenk_> For now my /usr/bin/mysqld is running and I can see the website (which uses MySQL) but I can not access MySQL via PHPmyadmin with the same username and pw I use for the website.
[00:58] <Frenk_> Any ideas>?
[00:59] <patdk-wk> hmm, more logs would help
[00:59] <patdk-wk> all you showed is it quiting, not anything before the quit message
[01:04] <Frenk_> patdk-wk: http://paste.ubuntu.com/548402/ This is all I got
[01:05] <patdk-wk> 101229 01:45:11 mysqld_safe A mysqld process already exists
[01:06] <patdk-wk> you can't run mysql, if mysql is ready running :)
[01:10] <Frenk_> patdk-wk: okay I got it =) But now I have just mysqld running
[01:10] <patdk-wk> I only have mysqld running also
[01:11] <Frenk_> and the website gets the connection - i see the data on the website | PHPmyadmin refuses to log me in
[01:11] <Frenk_> another application on the same server says: Lost connection to MySQL server at 'reading initial communication packet', system error: 0
[01:11] <patdk-wk> are you sure phpmyadmin is connecting the same way?
[01:12] <patdk-wk> same ip address, or using socket?
[01:12] <Frenk_> actually i dont know. where can i check it?
[01:13] <patdk-wk> I dunno, in your programs, phpmyadmin and website stuff, and whatever else uses mysql
[01:15] <Frenk_> looks like the same way - both use php and dbhost=localhost and port 3306
[01:16] <patdk-wk> same or different users?
[01:16] <patdk-wk> is phpmyadmin attempting to use root login?
[01:17] <patdk-wk> root login might not be allowed via ip by default, not sure
[01:17] <Frenk_> im using another login = not root but the same as for the webiste
[01:17] <Frenk_> let me check the config - one sec
[01:20] <Frenk_> patdk-wk: the config looks like this> http://paste.ubuntu.com/548406/ so i assume thats okay
[01:24] <patdk-wk> I have no idea, I would never use phpmyadmin myself
[01:26] <Frenk_> patdk-wk: I think I found the problem. Maybe both (the second application and phpmyadmin are connecting by IP?) And when I telnet i got: telnet: Unable to connect to remote host: Connection refused
[01:27] <Frenk_> Should I try to bind mysql to 0.0.0.0?
[01:27] <patdk-wk> netstat -atnp | grep mysql
[01:27] <patdk-wk> does that show anything?
[01:27] <Frenk_> netstat -apn | grep LIST | grep 3306 >> tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      27977/mysqld
[01:28] <patdk-wk> so it's bound to localhost
[01:28] <patdk-wk> if you did tell those programs to use localhost, it should work
[01:28] <patdk-wk> when you login with phpmyadmin, it asks you for the database hostname/ip?
[01:28] <patdk-wk> use 127.0.0.1
[01:28] <patdk-wk> does it work?
[01:30] <Frenk_> mh trying
[01:31] <Frenk_> nope =( Will try to bound it to 0.0.0.0
[01:33] <patdk-wk> doubt that will fix it, but will open up mysql to the world though, unless you have firewall rules to block it
[01:33] <patdk-wk> and then it would be the same as not doing that anyways :)
[01:33] <Frenk_> tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      19078/mysqld
[01:33] <Frenk_> If i try to telnet: Escape character is '^]'. Connection closed by foreign host.
[01:34] <Frenk_> And this still doesnt work >S
[01:43] <Frenk_> patdk-wk: haha solved that one
[01:44] <Frenk_> patdk-wk: now everything works
[01:51] <Frenk_> patdk-wk I googled the error my secont application produced and all i had to do was to add ALL:  localhost, 127.0.0.1 to hosts.allowed
[01:52] <Frenk_> (Quite paranoic security rules on the server obviously)
[01:53] <patdk-wk> odd :)
[01:55] <Frenk_> gn8!
[01:55] <Frenk_> thx!
[02:14] <ne7work> how to check file exist ?
[02:14] <ne7work> which is the command for that for directory is ls -na
[02:14] <ne7work> please tell me
[02:16] <The_Tick> http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=linux,+check+file+exists
[02:16] <The_Tick> I don't know or I'd just tell you
[02:16] <The_Tick> but google knows all
[02:16] <ne7work> please tell me
[02:17] <ne7work> the command
[02:17] <The_Tick> click on that link
[02:17] <ne7work> ls what?
[02:17] <ne7work> I click and I can't understand
[02:17] <The_Tick> and go read the search results
[02:17] <The_Tick> I'm sorry I cannot help you
[02:18] <ne7work> The_Tick
[02:18] <ne7work> -e: Returns true value if file exists
[02:18] <ne7work> and how to use that
[02:35] <ne7work> how to change default directory on proftpd
[02:35] <ne7work> ne7work DefaultRoot / ?
[02:35] <ne7work> or how?
[02:55] <Spirits-Sight> what does LVM do?  I am new to this stuff and trying to setup a server using Ubuntu server 10.04
[03:33] <Spirits-Sight> anyone here?
[03:33] <Delerium_> I am
[03:33] <Delerium_> But I'm a noob ;)
[03:34] <Spirits-Sight> dunn I am too :-)
[03:35] <Delerium_> Doh! Any question that I might try to help you out?
[03:40] <Spirits-Sight> I am trying to figure out what selections I should pick for what I want to do
[03:41] <Spirits-Sight> I am programing (trying) in python and will also host asterisks and want to be able to host two other small sites but one main site
[03:44] <Delerium_> Hum... Python come with the basic installation, website need Apache, do you need php/ mysql ?!
[03:47] <Spirits-Sight> doing mysql for the database
[03:47] <Spirits-Sight> don't think will need php
[03:48] <Spirits-Sight> it appears if I use a webframe work then it will come with a server called paste I think
[03:48] <Spirits-Sight> don't know if it is really good or not as I am new to all this
[03:49] <Delerium_> Don't know about this one, but if you need apache + mysql, you can do a very basic installation, then apt-get install apache-server / mysql-server
[03:50] <Spirits-Sight> thats what I am thinking.  do u know what the vitual machion host is?  also I would use openSSH to go into the system right?
[03:52] <Delerium_> The Virtual Machine Host will let you create VM guest under this "Host" installation, if you don't plan to do any virtualizarion, it's not required
[03:52] <Delerium_> to install openSSH : apt-get install openssh-serverr
[03:54] <Spirits-Sight> what the virtual machine host be the thing I use to host the other two sites?
[03:54] <Spirits-Sight> I have my site web app and then two small organization websites
[03:55] <Delerium_> Nope, the Virual Machine in the installation menu is more about, let say, One Physical Machine under which are running different Virtual Machine (This is complete, separate OS)
[03:56] <Spirits-Sight> OK now I got it :-) I was think that but was not sure if it was talking about different website or faking a system :-) nope not need that
[03:57] <Delerium_> For your dffierent website, there is a couple of way to do it, does your sites will have DNS entry?  Or are they just for testing purposes locally?
[03:59] <Spirits-Sight> do u know how to setup so that a dymic domain point to the system and the system looks at the domain that was used say person enters site1.com or site2.com or site.com and it would point to the right site but seeing how I have a dynimac IP address I need to use one of the sites that update the DNS information
[03:59] <Spirits-Sight> wow that was a mouth full
[04:01] <Delerium_> You can use DynDNS, and get 3 names (you won't be the owner of the domain), and in your apache configuration, use Virtail Host to use the right DocRoot depending on which URL was called
[04:02] <Spirits-Sight> OK, I have installed the server and now need to setup so I can access the system using my desktop system also Ubuntu Desktop
[04:03] <Spirits-Sight> DynDNS allows u to use your own domain names I think for a fee now :-)
[04:03] <Delerium_> Yup, I just bought my domain a few day ago... Domain Name + Custom DNS about 60$ a year
[04:06] <Spirits-Sight> OK do you know how to get me to be able to log into the system now using my desktop?
[04:07] <Spirits-Sight> I have openshh installed on both system I believe I kow its on the server as I just did it
[04:07] <Delerium_> ssh user@hostname (or IP)
[04:08] <Spirits-Sight> sweet I am in OK
[04:09] <Spirits-Sight> now here is a dum one, how can I disable the monitor on the other system
[04:15] <Delerium_> Just close it?! :)
[04:16] <Spirits-Sight> its a laptop and screen stays on when the lid is closed
[04:23] <Delerium_> Don't know about this one :(
[04:35] <kaushal> hi
[04:36] <kaushal> I am running Ubuntu 10.04 LTS on HP DL 360 G6 server
[04:36] <kaushal> Can someone please recommend good Hardware Raid Controller card ?
[05:35] <billybigrigger> how can i setup a git repo in my webroot?
[05:35] <billybigrigger> webroot=/var/www
[05:35] <billybigrigger> ie /var/www/billy.git
[05:45] <kaushal> hi
[05:50] <joschi> billybigrigger: http://progit.org/2010/03/04/smart-http.html
[05:52] <gobbe> kaushal: 3ware
[05:53] <kaushal> gobbe: for HP DL 360 G6 ?
[05:53] <Spirits-Sight> how do u save changes in VIM
[05:53] <gobbe> kaushal: well, it's good for every server
[05:53] <kaushal> ok
[05:54] <gobbe> kaushal: HP's own raid controller is usable, but not very good
[05:54] <kaushal> gobbe: is there a wiki for Ubuntu ?
[05:54] <kaushal> gobbe: so HP's is onboard ?
[05:54] <gobbe> no, HP's raid is also card, i haven't seen any onboard
[05:54] <gobbe> kaushal: wiki.ubuntu.com?
[05:54] <kaushal> ok
[05:55] <kaushal> gobbe: for Hard Disk Raid Controller card
[05:55] <gobbe> what kind of wiki?
[06:04] <kaushal> gobbe: is it http://ubuntuforums.org/showthread.php?t=1224849 ?
[06:06] <gobbe> i'm not sure what you are looking for
[06:07] <gobbe> but those 3wares mentioned there are well suitable
[06:08] <kaushal> gobbe: Thanks
[06:11] <Slyboots> intresting
[06:11] <Slyboots> Can SMB not handle files of 6gb or above?
[06:11] <Slyboots> Or.. some weirdness like that?
[06:13] <gobbe> what do you mean handle?
[06:18] <billybigrigger> joschi, thanks
[07:35] <airtonix> when installing apache2, the user www-data created : << is this given a password ?
[07:36] <airtonix> i would like to do something similar for a daemon i want to setup, but im am unsure as to what was done in the case of apaches dedicated useraccount
[07:39] <joschi> airtonix: no, www-data won't have a valid password
[07:39] <joschi> airtonix: it's not meant to login with
[07:43] <airtonix> so something like : sudo adduser desired-daemon-name -r -p -s=/dev/null
[07:44] <airtonix> i am not entirely sure how to specify "no password"
[07:45] <airtonix> and i am aware that /dev/null as the shell would prevent login abilities
[07:45] <airtonix> or at least thats what i assume
[08:00] <joschi> airtonix: use /bin/false or /usr/sbin/nologin as shell, not /dev/null
[08:44] <_ruben> airtonix: check the manpage of adduser, there's a parameter for "disabled password"
[09:05] <sabat-laptop> I have a ubuntu server 10.04 system, it has xorg, gnome-desktop-environment and virtualbox. it's meant to be a virtualbox host only, but when I connect via vncviewer, it pops up the gnome-keyring locally, and doesn't let the remote connection work. Any ideas how to fix this? I am fine using anything as long as vnc works
[09:13] <_ruben> sabat-laptop: well, technically speaking you turned your -server into a -desktop, and thus making your questions offtopic for this channel
[09:13] <_ruben> server != gui
[09:14] <sabat-laptop> _ruben: my "server" is a virtualbox devel server, for creating operating systems...
[09:14] <sabat-laptop> I need virtualbox, via vnc, as part of the server.
[09:14] <sabat-laptop> it's kindof hard to install an os in a virtual machine without having visual access to it
[09:15] <sabat-laptop> so virtualbox server := server
[09:15] <_ruben> not when it comes to ubuntu support
[09:16] <_ruben> you're having an X/GUI/Gnome related question, which is offtopic for this channel
[09:16] <sabat-laptop> sigh... I'm running ubuntu server, with stuff installed via apt... so it's not supported.
[09:16] <sabat-laptop> how quaint.
[09:17] <sabat-laptop> You can buy a car, but if you put a cd in it, that we gave you access to, you're unsupported.
[09:17] <sabat-laptop> seriously?
[09:18] <sabat-laptop> that's asenine.
[09:18] <_ruben> no, it means the car mechanic at the dealer wont help you with a scratched cd
[09:19] <_ruben> or just leave :)
[09:19] <shang> lol
[09:19] <_ruben> !gui
[09:20] <_ruben> hm, no channel specific info
[09:39] <ways> can anyone help me try to get ubuntu on an ancient laptop?
[10:44] <lieuwe> i need to run a java program as a daemon on my server, but  i have no idea how to get it to start on startup
[10:51] <joschi> lieuwe: write an init script for it
[10:51] <joschi> lieuwe: or if you use vixie-cron, you could write a crontab entry running on @reboot
[10:56] <lieuwe> joschi: is there an example init script somewhere that i can modify, and where do i place it?
[10:57] <joschi> lieuwe: normally you'll place it in /etc/init.d/.
[10:57] <joschi> lieuwe: if it should just run on ubuntu, you can as well write an upstart job. see http://upstart.ubuntu.com/getting-started.html
[11:08] <lieuwe> joschi: thanks, got it to work with the upstart job
[11:10] <gobbe> :)
[11:13] <xampart> hmph....what is wrong with my crontab entry: "5 * * * * /usr/sbin/arping_duplicate 2>/dev/null"? using just /usr/sbin/arping_duplicate 2>/dev/null works fine
[11:16] <gobbe> xampart: >/dev/null 2>&1
[11:16] <gobbe> if you mean that you dont want email?
[11:17] <xampart> gobbe: that's just for the arping_duplicate error message "WARNING: interface is ignored: Operation not permitted" to not be shown
[11:54] <gobbe> ok, anyway my line should do it
[11:57] <macno> Hi, I have 2 identical servers (lucid) and on one of them one service doesn't start at boot
[11:57] <joschi> macno: then they aren't identical by definition
[11:57] <macno> joschi, you're right
[11:58] <macno> I tried to configure both at the same way
[11:58] <joschi> macno: maybe you want to share the error message(s)
[11:58] <macno> no error
[11:58] <macno> just don't start
[11:58] <macno> it's cman
[11:59] <macno> if is run service cman start , it starts correctly
[11:59] <macno> s/is/I
[11:59] <macno> and I see it joining the cluster
[12:00] <joschi> macno: runlevel for the init script is correct?
[12:00] <macno> good question, but I don't see any link in /etc/rc2.d
[12:00] <macno> neither on the node where it starts
[12:00] <joschi> macno: is it an init script in /etc/init.d/ or an upstart job in /etc/init
[12:01] <macno> the script is in /etc/init.d
[12:02] <joschi> macno: /etc/rc2.d is only one runlevel
[12:02] <joschi> there are more ;)
[12:03] <joschi> macno: maybe you want to read http://manpages.ubuntu.com/manpages/lucid/en/man8/update-rc.d.8.html
[12:04] <macno> joschi, is there something like chkconfig in ubuntu? to show me in which runlevel the script is enabled?
[12:05] <macno> joschi, http://paste.ubuntu.com/548506/
[12:05] <macno> this is on the node where cman starts at boot
[12:05] <joschi> macno: and now add the init script on the other node to runlevels 0, 6, and S
[12:08] <macno> joschi, hum, on the other node I already have them , but only in 0,6
[12:11] <macno> joschi, well, I manually added the link in rcS.d,  rebooting now
[12:18] <macno> joshi , thanks it worked. I'm gonna read what rcS.d is
[13:33] <alkisg> I want to "limit rate of outgoing traffic to 100Mbps per *destination*, not source IP". What qdisc should I be looking at?
[14:02] <Spirits-Sight> how do I enable ability to use sftp or other protocal to upload and download stuff to my server 10.04
[14:03] <patdk-wk> install opensshd
[14:04] <patdk-wk> openssh-server I guess :)
[14:05] <pmatulis> Spirits-Sight: installing openssh-server will allow clients to upload & download via sftp.  the ssh/sftp *client* is installed by default on any ubuntu machine
[14:06] <patdk-wk> ya, but normally, to my server, means he is running the client not at the server :)
[14:14] <pmatulis> ya, but 'download to my server' is also nonsensical.  i gave a generic answer
[14:15] <patdk-wk> :)
[15:45] <Psi-Jack> Does Ubuntu have an rsync'able repo so I can archive a local mirror?
[15:46] <maswan> https://wiki.ubuntu.com/Mirrors
[15:48] <maswan> basically, just choose a close mirror and hit it with rsync -av host::ubuntu ubuntu for a local mirror of the archive if you just want an occasionally updated one
[15:49] <patdk-wk> it will do all current versions though, if you don't want to, that method won't work (600gigs about currently?)
[15:49] <skorv> can bind9 work with 2 subnets (3 ethernet adapters(1wan;2lan)
[15:49] <Psi-Jack> I have a few things I'd like to do. Keep it trim so it only has the arch's I need, which IIRC Ubuntu only really has i386 and amd64 anyway, and the distributions I want, which will be Lucid/10.04
[15:50]  * patdk-wk would go for probably an apt-cacher-ng or squid method for that
[15:50] <Psi-Jack> Nah. Rsync is fine, even if I have to script it to get just what portions I need. ;)
[15:50] <patdk-wk> I dunno how you would script rsync to do that
[15:50] <Psi-Jack> Same way I do it with CentOS, likely. :)
[15:51] <patdk-wk> you would have to download and parse the package list, and have rsync sync once per package
[15:51] <patdk-wk> no, completely different from centos, it won't work :)
[15:51] <Psi-Jack> Hmmm. That's right.. They have the whole pool thing, don't they?
[15:51] <patdk-wk> yep
[15:51] <Psi-Jack> Ubuntu that is.
[15:51] <Psi-Jack> Frack! What an annoying method that can be. LOL
[15:52] <patdk-wk> there are ones that do it, I think apt-mirror does it
[15:52] <patdk-wk> but apt-mirror annoyed me
[15:52] <popey> debmirror is also good
[15:52] <Psi-Jack> yeah, and I wanted to have my storage server download it directly, which is OpenSUSE, so debmirror, and apt-* isn't available.
[15:52] <Psi-Jack> heh
[15:53] <patdk-wk> never heard of installing via tar.gz?
[15:53] <Psi-Jack> Anything else, I'd have to fricken setup an NFS export or something, and bleh, Just bleh. ;)
[15:53] <patdk-wk> what have people come to these days when they can only use binary packages :)
[15:53] <Psi-Jack> patdk-wk: Say whaaaaa? Are you cwazy? Don't answer, I already know.
[15:53] <maswan> skorv: yes
[15:53] <Psi-Jack> :)
[15:54] <maswan> skorv: If you want to serve up different views to different networks, that is also possible, but takes some trickery.
[15:55] <patdk-wk> heh, I'm liking apt-cacher-ng though, works, clean enough, no need to mirror everything like I used to
[15:56] <patdk-wk> use it for my clusters, and just use squid for my home lan
[15:56] <Psi-Jack> Heh.
[15:57] <patdk-wk> I have done apt-mirror and rsync for awhile, just really the unreleased ubuntu version package changes annoyed me with rsync method, downloading a few hundred packages each day I didn't use
[15:57] <Psi-Jack> Well, If'n I'm gonna do it that route at all, I'ma hafta set it up on a debian server, so dunno how well that'd mix with Debian and Ubuntu both shareing the same cacher method.
[15:57] <patdk-wk> they shouldn't care at all :)
[15:58] <Psi-Jack> And I prefered it to be as transparent as possible. heh
[15:58] <patdk-wk> ya, apt-cacher/apt-mirror I don't think are transparent
[15:58] <Psi-Jack> Like, able to be performed during installation? ;)
[15:58] <patdk-wk> but just set a proxy setting in apt and it's good
[15:58] <patdk-wk> during install, yes, just use the proxy setting during install, it always asks :)
[15:59] <Psi-Jack> So, apt-cacher-ng could be transparent by using a proxy setting?
[15:59] <patdk-wk> yep
[15:59] <patdk-wk> squid is already transparent, or using proxy
[16:00] <patdk-wk> I haven't done an install yet with apt-cacher-ng, I could try one now just to test :)
[16:00] <Psi-Jack> Hehe.
[16:01] <Psi-Jack> Yeah, I've a bit to setup to get that idea rolling. Likely seting up my director vm to NFS mount the storage server to house everything.
[16:06] <Psi-Jack> patdk-wk: Thanks for the idea of apt-cacher-ng. Looks like it's probably the best route for me, so far. ;)
[16:07] <patdk-wk> don't use apt-cacher, I tried it, it took 5min to do an apt-get update with it
[16:08] <Frenk> Hey. I have a Apache2 server and 2 domains. I also have a web-frontend on port 3000. Now I want to configure it that way = I can access the web-frontend by using domain.com but not with anotherdomain.com. How to do that? I already tried that: http://paste.ubuntu.com/548560/
[16:10] <patdk-wk> yep apt-cacher-ng works fine for install time, mini-iso tested :)
[16:13] <patdk-wk> frenk, you need to define a virualhost _default_:3000 and have it reject all
[16:13] <patdk-wk> and then have that virtual host seperate
[16:14] <Frenk> i have it as a seperate file in sites-enabled... what do you mean?
[16:23] <Italian_Plumber> greetings... anyone subscribe to the Ubuntu Security Updates RSS feed?  there hasn't been any update for about 2 weeks now.
[16:24] <pmatulis> Italian_Plumber: guess that's a good thing
[16:24] <patdk-wk> not really :(
[16:24] <giovani> Italian_Plumber: mailing lists are typically the prefered notification method for security updates in any community
[16:24] <giovani> I don't know anything about the RSS feed
[16:25] <Italian_Plumber> what's the ubuntu mailing list?
[16:25] <patdk-wk> I have gotten a one email, that didn't popup on the security rss feed
[16:25] <patdk-wk> but ya, nothing has happened for awhile
[16:25] <giovani> https://lists.ubuntu.com/mailman/listinfo/ubuntu-security-announce
[16:26] <Italian_Plumber> according to this page http://www.ubuntu.com/usn the mailing list and the RSS feed are the same...?
[16:26] <giovani> Dec 16 was the last post
[16:26] <Italian_Plumber> just kinda wierd to have gone for more than 2 weeks with no notices.
[16:26] <giovani> Italian_Plumber: you appear to be correct, like I said, I don't know anything about the RSS feed
[16:27] <giovani> many people are on vacation, etc, it's not terribly surprising
[16:27] <Italian_Plumber> true
[16:29] <Italian_Plumber> The last kernel update was 12/15 ... loooks like I didn't install it... my uptime is ~28 days
[16:30] <giovani> Italian_Plumber: you might've installed it, but not rebooted
[16:30] <giovani> ksplice ftw
[16:39] <_ruben> if only it were free
[17:27] <jdstrand> giovani, Italian_Plumber: yes, people are on vacation which is why there haven't been USNs. we are monitoring for high priority issues though
[17:30] <Yizi> anyone can help me with iptables?
[17:30] <kim0> Yizi: just ask
[17:30] <Yizi> ok i have a ubuntu machine with 3 network cards
[17:30] <ish10> hey guys how do u use nagios plugins?
[17:30] <Yizi> eth0, 1, 2
[17:31] <Yizi> eth1 is connected to net using a gateway
[17:31] <Yizi> on eth0 i have intranet where i need them to be able to access the internet
[17:31] <Yizi> i need to setup the iptables on my ubuntu machine being the middle computer
[17:32] <kim0> Yizi: so u just want to setup natting ?
[17:32] <Yizi> so allow intranet users to access the web
[17:32] <Yizi> what i'm doing is im writting a shell script
[17:32] <Yizi> can i NAT in that too?
[17:33] <kim0> Yizi: iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
[17:33] <kim0> Yizi: this would enable intranet outgoing access to internet
[17:33] <Yizi> thats amazing
[17:34] <Yizi> one more question, how will i be able to prevent packets which logically originated from the internet?
[17:34] <kim0> Yizi: for more details .. might wanna read this https://help.ubuntu.com/10.04/serverguide/C/firewall.html (masquerade section)
[17:40] <pmatulis> i converted single disk non-raid (A) into raid1 with new disk (B) and managed to boot into B (/ on md0); do i need 'grub-install /dev/A' (or anything else)?
[17:45] <ish10> does anyone here use nagios?
[18:08] <eagles0513875> hey guys stupid question probably is it possible to setup quotas on a folder
[18:11] <pmatulis> eagles0513875: i think it's just per filesystem
[18:11] <pmatulis> eagles0513875: not 100% sure
[18:14] <eagles0513875> ok
[18:14] <eagles0513875> tried googling but not turning up much
[18:17] <gobbe> yep
[18:17] <gobbe> i
[18:17] <gobbe> quotas are per set per filesystem
[18:18] <eagles0513875> gobbe: is it possible to do per folder?
[18:18] <eagles0513875> i need that to restrict websites that i have in /var/www
[18:18] <patdk-wk> eagles0513875, if you mount a filesystem per folder, yep
[18:19] <patdk-wk> eagles0513875, your thinking about it wrong :)
[18:19] <eagles0513875> what should i do
[18:19] <patdk-wk> depends, what is the goal?
[18:21] <eagles0513875> basically im going to be setting up packages
[18:21] <patdk-wk> no, explain how you want the quotas to work
[18:21] <eagles0513875> on a per folder basis
[18:21] <eagles0513875> depending on the package
[18:22] <patdk-wk> that makes no sense to me
[18:22] <eagles0513875> what would oy recommend
[18:22] <patdk-wk> I can't recommend anything, as I have no clue what you want, except the impossible
[18:22] <eagles0513875> :-/ ok
[18:23] <sacarlson> eagles0513875: quotas as Identified by what?
[18:23] <sacarlson> ip?
[18:23] <sacarlson> name and user?
[18:23] <eagles0513875> not ip just size
[18:23] <eagles0513875> site size
[18:23] <sacarlson> size to all users
[18:24] <sacarlson> as measured bytes from a folder
[18:24] <eagles0513875> each client will have a folder for their site which is setup as a vhost
[18:25] <eagles0513875> lets say for a site you have 2gb of space have a hard limit on space
[18:25] <sacarlson> well webalizer tracks that
[18:25] <sacarlson> so interface to that and you should have it
[18:25] <eagles0513875> ok but then how does one restrict site size
[18:26] <sacarlson> rename the dir so they can't get in?
[18:26] <eagles0513875> for a particulare folder then lets say 2gb for site2
[18:26] <sacarlson> or redirect to a page that says sorry can't come in
[18:26] <eagles0513875> ok
[18:27] <sacarlson> so first look at the code of webalizer and see how they do it
[18:27] <sacarlson> the rest is easy
[18:27] <eagles0513875> ok
[18:27] <eagles0513875> thanks sacarlson
[18:28] <gobbe> eagles0513875: you could do lvm-volume for www and add it there
[18:28] <eagles0513875> ya only have 1 hdd not setup as lvm
[18:28] <gobbe> eagles0513875: and mount it, then you have it per folder
[18:29] <patdk-wk> :) as long as you have enough diskspace for fullcapacity of all sites
[18:29] <gobbe> yep
[18:29] <eagles0513875> right now only 3 clients
[18:29] <eagles0513875> my site
[18:29] <eagles0513875> crm
[18:29] <eagles0513875> and 2 clients
[18:29] <patdk-wk> use spares file backed lvm?
[18:29] <eagles0513875> ?
[18:29] <gobbe> what do you want to achieve?
[18:30] <gobbe> i dont really get your point
[18:30] <eagles0513875> im considering renting an offsite server as a roll over if my connection goes down or something
[18:30] <patdk-wk> he wants quotas, but not via user/group :(
[18:30] <patdk-wk> or did you mean me, with the sparse file?
[18:31] <gobbe> ok
[18:33] <patdk-wk> hmm, 4Tb sparse file, formated lvm, and split into 200mb sections and mounted, should be fun :)
[18:38] <patdk-wk> hmm, asx works fine for me
[18:38] <eagles0513875> im strapped for cash atm
[18:38] <patdk-wk> oh opps :)
[18:38] <eagles0513875> i woudl buy 2x2tb hdds
[18:38] <eagles0513875> and mirror them
[18:38] <patdk-wk> eagles0513875,  the only way to do it without wasting craploads of diskspace is with a sparse file
[18:39] <eagles0513875> which means
[18:39] <patdk-wk> google:sparse file
[18:41] <eagles0513875> ok
[18:41] <eagles0513875> question webalizer how does one view the information
[18:41] <sacarlson> I think I still have 3 or 4 still on my server I just link this one
[18:42] <sacarlson> opps sorry wrong page
[18:45] <patdk-wk> nice, 100gig sparse file, created lvm with 6 volumes is only 28k :)
[18:47] <SpamapS> sparse files.. or "how to completely fragment your hard drive twice in under 1 second" ;)
[18:51] <patdk-wk> SpamapS, that too :)
[19:01] <gobbe> :D
[19:01] <gobbe> sparsefiles are quite deadend
[19:01] <gobbe> :D
[19:02] <patdk-wk> it fixs a problem, while creating another one down the road
[19:03] <gobbe> yes
[19:08] <eagles0513875> !webalizer | eagles0513875
[19:08] <eagles0513875> how does webalizer   work
[19:08] <eagles0513875> do i just then configure it?
[19:08] <gobbe> eagles0513875: www.webalizer.org?
[19:10] <eagles0513875> there isnt much there
[19:11] <gobbe> so what are you looking for?
[19:12] <patdk-wk> a way to use du -s /var/www/*, and disable a folder that has gone over quota :)
[19:12] <eagles0513875> patdk-wk: in a nutshell yes
[19:12] <patdk-wk> seems pretty simple :)
[19:13] <eagles0513875> is webalizer what i want
[19:13] <gobbe> no
[19:13] <gobbe> webalizer is just analysis
[19:13] <eagles0513875> that i do want to keep though
[19:13] <eagles0513875> so i cen see site stats etc
[19:14] <gobbe> well, then webalizer is for you
[20:56] <etcetera> I did a cp -R from a directory to /usr/local/ instead of /usr/local/foo
[20:57] <etcetera> how do I pipe all the contents from the source directory into an rm-rf
[20:58] <qman__> probably some sort of loop with a find
[20:59] <qman__> but unless you have a ton of stuff in there I'd just do it manually, probably would take less time and then you know for sure you don't accidentally delete something you weren't supposed to
[20:59] <etcetera> I'm sure it's a common occurence.
[21:00] <gobbe> etcetera: find /some/directory -name '*match*' -exec rm {} \;
[21:00] <etcetera> gobbe: where /some/directory is the source directory I used to cp?
[21:01] <gobbe> etcetera: well it's directory where do you want to delete files
[21:01] <gobbe> but it deletes the original directory
[21:01] <gobbe> i mean content
[21:01] <etcetera> ?
[21:01] <gobbe> i'm not sure what do you want to do
[21:02] <qman__> he copied recursively to the wrong location, and now he wants to undo
[21:02] <etcetera> gobbe: I have a source dir ~/foo that I did cp -R to /usr/local/ instead of /usr/local/foo
[21:02] <gobbe> and you want to do what?
[21:02] <qman__> so he wants to take the list of files in the original location, and remove them from the new location
[21:02] <gobbe> aah
[21:02] <gobbe> well that wont do it then
[21:02] <etcetera> find all *files* in /usr/local that match ~/foo
[21:02] <qman__> find is the right tool, but I don't know what sort of statements or loops you'd need to pull it off
[21:02] <etcetera> but not folders, I will handle that myself.
[21:04] <gobbe> you could find them, put output to file, change path to /new/folder and pass that to rm
[21:25] <Slyboots> Anyone here familure with NFS in windows :P
[21:26] <Slyboots> Set it up' I can connect.. but it keeps complaing that its Read-only (should have rw )
[21:28] <subrosian> i seem to be having issues with installing openssh-server through apt-get
[21:28] <giovani> subrosian: can you be specific?
[21:28] <giovani> (what issues)
[21:29] <subrosian> package "openssh-server" has no installation candiadate
[21:29] <giovani> do an apt-get update
[21:29] <giovani> your package lists are likely out-of-date
[21:29] <subrosian> very possible, thanks :)
[21:32] <subrosian> ah, my DNS wasn't working properly which was causing apt-get upgrade issues
[21:32] <subrosian> seems to be good now, thanks a bunch
[21:33] <subrosian> apt-get update*
[21:33] <giovani> subrosian: no problem
[21:38] <etcetera> wouldnt it be better to do an ls of all the files in the source dir recursively...
[21:38] <etcetera> and then pipe that to a find which matches those in the /usr/local and issues the -exec rm?
[21:39] <etcetera> again, my situation is i acidentally did a cp -R ~/foo /usr/local instead of /usr/local/foo
[21:40] <etcetera> and I want to delete all the *files* in /usr/local that correspond to those found in ~/foo
[21:40] <etcetera> I will handle deleting the folders myself.
[22:02] <etcetera> sorry about that, anyone with some insight?
[22:03] <giovani> etcetera: I don't know what you're asking -- you seemed to have begun talking in the middle of an explanation?
[22:04] <etcetera> giovani: I asked the question earlier.
[22:04] <etcetera> I have a directory ~/foo which I accidentally copied to /usr/local instead of /usr/local/foo
[22:04] <etcetera> I need to figure out a way to delete all the -files- out of /usr/local/ that are in ~/foo
[22:06] <giovani> you can do an ls ~/foo and then use any kind of stream editor like sed to prepend /usr/local/ to the filenames, then pipe that output to rm
[22:06] <giovani> that's how I'd do it
[22:07] <etcetera> ok, obviously my command line fu is lacking.
[22:08] <etcetera> I cannot for 1 figure out how to get all the files as a list but still recurse the directories.
[22:08] <giovani> oh, foo is multi-level?
[22:08] <etcetera> yar.
[22:08] <giovani> that's a bit more complex, let me think for a sec the best way
[22:08] <etcetera> I plan on manually rm-ing the dirs.
[22:09] <giovani> no need
[22:09] <Pici> find /path/to/stuff/ -type f
[22:09] <giovani> yeah, that's not enough though
[22:09] <etcetera> giovani: well there is a need.
[22:09] <etcetera> I have a ~/foo/bin
[22:09] <etcetera> and I don't want to delete /usr/local/bin
[22:09] <giovani> yeah
[22:09] <giovani> I was saying, you won't delete the dirs
[22:09] <giovani> just the files that were copied
[22:10] <etcetera> right.
[22:13] <giovani> etcetera: find . -type f | sed -e "s/^./\/usr\/local/" | xargs rm
[22:13] <giovani> you run that in ~/foo
[22:13] <giovani> or specify ~/foo instead of "." in find
[22:13] <giovani> I'd run it once without "rm" and instead with "echo" to get a list of all files it's about to delete
[22:21] <etcetera> giovani: awesome. thanks.
[22:22] <etcetera> after a really long time in the windows world, I am still to this day glad I never had to learn set.
[22:22] <etcetera> sed*
[22:22] <etcetera> that being said…after all this time it's a damn shame there isnt a more semantic api for filtering.
[22:23] <RoyK> been entraped on windoze_
[22:23] <RoyK> ?
[22:25] <etcetera> entrapped, no.
[22:41] <giovani> glad he never had to learn sed?
[22:41] <giovani> that's unfortunate
[22:41] <giovani> there's nothing illogical about sed's syntax
[23:35] <chrowe> anyone here use the Landscape service and have issues with the landscape-package-reporter using 99.9% of the CPU?
[23:57] <pmatulis> chrowe: sounds odd
[23:58] <chrowe> pmatulis: it looks like this https://bugs.launchpad.net/landscape-client/+bug/675577