/srv/irclogs.ubuntu.com/2010/12/29/#ubuntu-server.txt

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 work00:54
=== Steve[cug] is now known as Steve[mba]
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:58
patdk-wkhmm, more logs would help00:59
patdk-wkall you showed is it quiting, not anything before the quit message00:59
Frenk_patdk-wk: http://paste.ubuntu.com/548402/ This is all I got01:04
patdk-wk101229 01:45:11 mysqld_safe A mysqld process already exists01:05
patdk-wkyou can't run mysql, if mysql is ready running :)01:06
Frenk_patdk-wk: okay I got it =) But now I have just mysqld running01:10
patdk-wkI only have mysqld running also01:10
Frenk_and the website gets the connection - i see the data on the website | PHPmyadmin refuses to log me in01:11
Frenk_another application on the same server says: Lost connection to MySQL server at 'reading initial communication packet', system error: 001:11
patdk-wkare you sure phpmyadmin is connecting the same way?01:11
patdk-wksame ip address, or using socket?01:12
Frenk_actually i dont know. where can i check it?01:12
patdk-wkI dunno, in your programs, phpmyadmin and website stuff, and whatever else uses mysql01:13
Frenk_looks like the same way - both use php and dbhost=localhost and port 330601:15
patdk-wksame or different users?01:16
patdk-wkis phpmyadmin attempting to use root login?01:16
patdk-wkroot login might not be allowed via ip by default, not sure01:17
Frenk_im using another login = not root but the same as for the webiste01:17
Frenk_let me check the config - one sec01:17
Frenk_patdk-wk: the config looks like this> http://paste.ubuntu.com/548406/ so i assume thats okay01:20
patdk-wkI have no idea, I would never use phpmyadmin myself01:24
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 refused01:26
Frenk_Should I try to bind mysql to 0.0.0.0?01:27
patdk-wknetstat -atnp | grep mysql01:27
patdk-wkdoes 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/mysqld01:27
patdk-wkso it's bound to localhost01:28
patdk-wkif you did tell those programs to use localhost, it should work01:28
patdk-wkwhen you login with phpmyadmin, it asks you for the database hostname/ip?01:28
patdk-wkuse 127.0.0.101:28
patdk-wkdoes it work?01:28
Frenk_mh trying01:30
Frenk_nope =( Will try to bound it to 0.0.0.001:31
patdk-wkdoubt that will fix it, but will open up mysql to the world though, unless you have firewall rules to block it01:33
patdk-wkand 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/mysqld01:33
Frenk_If i try to telnet: Escape character is '^]'. Connection closed by foreign host.01:33
Frenk_And this still doesnt work >S01:34
=== stalcup is now known as vorian
Frenk_patdk-wk: haha solved that one01:43
Frenk_patdk-wk: now everything works01:44
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.allowed01:51
Frenk_(Quite paranoic security rules on the server obviously)01:52
patdk-wkodd :)01:53
Frenk_gn8!01:55
Frenk_thx!01:55
ne7workhow to check file exist ?02:14
ne7workwhich is the command for that for directory is ls -na02:14
ne7workplease tell me02:14
The_Tickhttp://www.google.com/search?sourceid=chrome&ie=UTF-8&q=linux,+check+file+exists02:16
The_TickI don't know or I'd just tell you02:16
The_Tickbut google knows all02:16
ne7workplease tell me02:16
ne7workthe command02:17
The_Tickclick on that link02:17
ne7workls what?02:17
ne7workI click and I can't understand02:17
The_Tickand go read the search results02:17
The_TickI'm sorry I cannot help you02:17
ne7workThe_Tick02:18
ne7work-e: Returns true value if file exists02:18
ne7workand how to use that02:18
ne7workhow to change default directory on proftpd02:35
ne7workne7work DefaultRoot / ?02:35
ne7workor how?02:35
Spirits-Sightwhat does LVM do?  I am new to this stuff and trying to setup a server using Ubuntu server 10.0402:55
Spirits-Sightanyone here?03:33
Delerium_I am03:33
Delerium_But I'm a noob ;)03:33
Spirits-Sightdunn I am too :-)03:34
Delerium_Doh! Any question that I might try to help you out?03:35
Spirits-SightI am trying to figure out what selections I should pick for what I want to do03:40
Spirits-SightI am programing (trying) in python and will also host asterisks and want to be able to host two other small sites but one main site03:41
Delerium_Hum... Python come with the basic installation, website need Apache, do you need php/ mysql ?!03:44
Spirits-Sightdoing mysql for the database03:47
Spirits-Sightdon't think will need php03:47
Spirits-Sightit appears if I use a webframe work then it will come with a server called paste I think03:48
Spirits-Sightdon't know if it is really good or not as I am new to all this03:48
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-server03:49
Spirits-Sightthats 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:50
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 required03:52
Delerium_to install openSSH : apt-get install openssh-serverr03:52
Spirits-Sightwhat the virtual machine host be the thing I use to host the other two sites?03:54
Spirits-SightI have my site web app and then two small organization websites03:54
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:55
Spirits-SightOK 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 that03:56
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:57
Spirits-Sightdo 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 information03:59
Spirits-Sightwow that was a mouth full03:59
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 called04:01
Spirits-SightOK, I have installed the server and now need to setup so I can access the system using my desktop system also Ubuntu Desktop04:02
Spirits-SightDynDNS 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 year04:03
Spirits-SightOK do you know how to get me to be able to log into the system now using my desktop?04:06
Spirits-SightI have openshh installed on both system I believe I kow its on the server as I just did it04:07
Delerium_ssh user@hostname (or IP)04:07
Spirits-Sightsweet I am in OK04:08
Spirits-Sightnow here is a dum one, how can I disable the monitor on the other system04:09
Delerium_Just close it?! :)04:15
Spirits-Sightits a laptop and screen stays on when the lid is closed04:16
Delerium_Don't know about this one :(04:23
kaushalhi04:35
kaushalI am running Ubuntu 10.04 LTS on HP DL 360 G6 server04:36
kaushalCan someone please recommend good Hardware Raid Controller card ?04:36
uvirtbotNew bug: #695256 in samba (main) "samba refuses to show shares" [Undecided,New] https://launchpad.net/bugs/69525605:21
billybigriggerhow can i setup a git repo in my webroot?05:35
billybigriggerwebroot=/var/www05:35
billybigriggerie /var/www/billy.git05:35
kaushalhi05:45
joschibillybigrigger: http://progit.org/2010/03/04/smart-http.html05:50
gobbekaushal: 3ware05:52
kaushalgobbe: for HP DL 360 G6 ?05:53
Spirits-Sighthow do u save changes in VIM05:53
gobbekaushal: well, it's good for every server05:53
kaushalok05:53
gobbekaushal: HP's own raid controller is usable, but not very good05:54
kaushalgobbe: is there a wiki for Ubuntu ?05:54
kaushalgobbe: so HP's is onboard ?05:54
gobbeno, HP's raid is also card, i haven't seen any onboard05:54
gobbekaushal: wiki.ubuntu.com?05:54
kaushalok05:54
kaushalgobbe: for Hard Disk Raid Controller card05:55
gobbewhat kind of wiki?05:55
=== RudyValencia- is now known as RudyValencia
kaushalgobbe: is it http://ubuntuforums.org/showthread.php?t=1224849 ?06:04
gobbei'm not sure what you are looking for06:06
gobbebut those 3wares mentioned there are well suitable06:07
kaushalgobbe: Thanks06:08
Slybootsintresting06:11
SlybootsCan SMB not handle files of 6gb or above?06:11
SlybootsOr.. some weirdness like that?06:11
gobbewhat do you mean handle?06:13
billybigriggerjoschi, thanks06:18
airtonixwhen installing apache2, the user www-data created : << is this given a password ?07:35
airtonixi 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 useraccount07:36
joschiairtonix: no, www-data won't have a valid password07:39
joschiairtonix: it's not meant to login with07:39
airtonixso something like : sudo adduser desired-daemon-name -r -p -s=/dev/null07:43
airtonixi am not entirely sure how to specify "no password"07:44
airtonixand i am aware that /dev/null as the shell would prevent login abilities07:45
airtonixor at least thats what i assume07:45
joschiairtonix: use /bin/false or /usr/sbin/nologin as shell, not /dev/null08:00
_rubenairtonix: check the manpage of adduser, there's a parameter for "disabled password"08:44
sabat-laptopI 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 works09:05
_rubensabat-laptop: well, technically speaking you turned your -server into a -desktop, and thus making your questions offtopic for this channel09:13
_rubenserver != gui09:13
sabat-laptop_ruben: my "server" is a virtualbox devel server, for creating operating systems...09:14
sabat-laptopI need virtualbox, via vnc, as part of the server.09:14
sabat-laptopit's kindof hard to install an os in a virtual machine without having visual access to it09:14
sabat-laptopso virtualbox server := server09:15
_rubennot when it comes to ubuntu support09:15
_rubenyou're having an X/GUI/Gnome related question, which is offtopic for this channel09:16
sabat-laptopsigh... I'm running ubuntu server, with stuff installed via apt... so it's not supported.09:16
sabat-laptophow quaint.09:16
sabat-laptopYou can buy a car, but if you put a cd in it, that we gave you access to, you're unsupported.09:17
sabat-laptopseriously?09:17
sabat-laptopthat's asenine.09:18
_rubenno, it means the car mechanic at the dealer wont help you with a scratched cd09:18
_rubenor just leave :)09:19
shanglol09:19
_ruben!gui09:19
ubottuThe graphical user interface (GUI) in Ubuntu is composed of many elements, including the !X server, a window manager, and a desktop environment such as !GNOME or !KDE (which themselves use the !GTK and !Qt toolkits respectively)09:19
_rubenhm, no channel specific info09:20
wayscan anyone help me try to get ubuntu on an ancient laptop?09:39
lieuwei need to run a java program as a daemon on my server, but  i have no idea how to get it to start on startup10:44
joschilieuwe: write an init script for it10:51
joschilieuwe: or if you use vixie-cron, you could write a crontab entry running on @reboot10:51
lieuwejoschi: is there an example init script somewhere that i can modify, and where do i place it?10:56
joschilieuwe: normally you'll place it in /etc/init.d/.10:57
joschilieuwe: if it should just run on ubuntu, you can as well write an upstart job. see http://upstart.ubuntu.com/getting-started.html10:57
lieuwejoschi: thanks, got it to work with the upstart job11:08
gobbe:)11:10
xamparthmph....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 fine11:13
gobbexampart: >/dev/null 2>&111:16
gobbeif you mean that you dont want email?11:16
xampartgobbe: that's just for the arping_duplicate error message "WARNING: interface is ignored: Operation not permitted" to not be shown11:17
gobbeok, anyway my line should do it11:54
macnoHi, I have 2 identical servers (lucid) and on one of them one service doesn't start at boot11:57
joschimacno: then they aren't identical by definition11:57
macnojoschi, you're right11:57
macnoI tried to configure both at the same way11:58
joschimacno: maybe you want to share the error message(s)11:58
macnono error11:58
macnojust don't start11:58
macnoit's cman11:58
macnoif is run service cman start , it starts correctly11:59
macnos/is/I11:59
macnoand I see it joining the cluster11:59
joschimacno: runlevel for the init script is correct?12:00
macnogood question, but I don't see any link in /etc/rc2.d12:00
macnoneither on the node where it starts12:00
joschimacno: is it an init script in /etc/init.d/ or an upstart job in /etc/init12:00
macnothe script is in /etc/init.d12:01
joschimacno: /etc/rc2.d is only one runlevel12:02
joschithere are more ;)12:02
joschimacno: maybe you want to read http://manpages.ubuntu.com/manpages/lucid/en/man8/update-rc.d.8.html12:03
macnojoschi, is there something like chkconfig in ubuntu? to show me in which runlevel the script is enabled?12:04
macnojoschi, http://paste.ubuntu.com/548506/12:05
macnothis is on the node where cman starts at boot12:05
joschimacno: and now add the init script on the other node to runlevels 0, 6, and S12:05
macnojoschi, hum, on the other node I already have them , but only in 0,612:08
macnojoschi, well, I manually added the link in rcS.d,  rebooting now12:11
macnojoshi , thanks it worked. I'm gonna read what rcS.d is12:18
=== deegee_1 is now known as deegee
alkisgI want to "limit rate of outgoing traffic to 100Mbps per *destination*, not source IP". What qdisc should I be looking at?13:33
Spirits-Sighthow do I enable ability to use sftp or other protocal to upload and download stuff to my server 10.0414:02
patdk-wkinstall opensshd14:03
patdk-wkopenssh-server I guess :)14:04
=== KurtKraut2 is now known as KurtKraut
pmatulisSpirits-Sight: installing openssh-server will allow clients to upload & download via sftp.  the ssh/sftp *client* is installed by default on any ubuntu machine14:05
patdk-wkya, but normally, to my server, means he is running the client not at the server :)14:06
pmatulisya, but 'download to my server' is also nonsensical.  i gave a generic answer14:14
patdk-wk:)14:15
=== consumerism is now known as rw
=== rw is now known as ryanw
=== ryanw is now known as ryanwilliams
=== ryanwilliams is now known as consumerism
Psi-JackDoes Ubuntu have an rsync'able repo so I can archive a local mirror?15:45
maswanhttps://wiki.ubuntu.com/Mirrors15:46
maswanbasically, 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 one15:48
patdk-wkit will do all current versions though, if you don't want to, that method won't work (600gigs about currently?)15:49
skorvcan bind9 work with 2 subnets (3 ethernet adapters(1wan;2lan)15:49
Psi-JackI 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.0415:49
* patdk-wk would go for probably an apt-cacher-ng or squid method for that15:50
Psi-JackNah. Rsync is fine, even if I have to script it to get just what portions I need. ;)15:50
patdk-wkI dunno how you would script rsync to do that15:50
Psi-JackSame way I do it with CentOS, likely. :)15:50
patdk-wkyou would have to download and parse the package list, and have rsync sync once per package15:51
patdk-wkno, completely different from centos, it won't work :)15:51
Psi-JackHmmm. That's right.. They have the whole pool thing, don't they?15:51
patdk-wkyep15:51
Psi-JackUbuntu that is.15:51
Psi-JackFrack! What an annoying method that can be. LOL15:51
patdk-wkthere are ones that do it, I think apt-mirror does it15:52
patdk-wkbut apt-mirror annoyed me15:52
popeydebmirror is also good15:52
Psi-Jackyeah, and I wanted to have my storage server download it directly, which is OpenSUSE, so debmirror, and apt-* isn't available.15:52
Psi-Jackheh15:52
patdk-wknever heard of installing via tar.gz?15:53
Psi-JackAnything else, I'd have to fricken setup an NFS export or something, and bleh, Just bleh. ;)15:53
patdk-wkwhat have people come to these days when they can only use binary packages :)15:53
Psi-Jackpatdk-wk: Say whaaaaa? Are you cwazy? Don't answer, I already know.15:53
maswanskorv: yes15:53
Psi-Jack:)15:53
maswanskorv: If you want to serve up different views to different networks, that is also possible, but takes some trickery.15:54
patdk-wkheh, I'm liking apt-cacher-ng though, works, clean enough, no need to mirror everything like I used to15:55
patdk-wkuse it for my clusters, and just use squid for my home lan15:56
Psi-JackHeh.15:56
patdk-wkI 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 use15:57
Psi-JackWell, 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-wkthey shouldn't care at all :)15:57
Psi-JackAnd I prefered it to be as transparent as possible. heh15:58
patdk-wkya, apt-cacher/apt-mirror I don't think are transparent15:58
Psi-JackLike, able to be performed during installation? ;)15:58
patdk-wkbut just set a proxy setting in apt and it's good15:58
patdk-wkduring install, yes, just use the proxy setting during install, it always asks :)15:58
Psi-JackSo, apt-cacher-ng could be transparent by using a proxy setting?15:59
patdk-wkyep15:59
patdk-wksquid is already transparent, or using proxy15:59
patdk-wkI haven't done an install yet with apt-cacher-ng, I could try one now just to test :)16:00
Psi-JackHehe.16:00
Psi-JackYeah, 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:01
Psi-Jackpatdk-wk: Thanks for the idea of apt-cacher-ng. Looks like it's probably the best route for me, so far. ;)16:06
patdk-wkdon't use apt-cacher, I tried it, it took 5min to do an apt-get update with it16:07
FrenkHey. 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:08
patdk-wkyep apt-cacher-ng works fine for install time, mini-iso tested :)16:10
patdk-wkfrenk, you need to define a virualhost _default_:3000 and have it reject all16:13
patdk-wkand then have that virtual host seperate16:13
Frenki have it as a seperate file in sites-enabled... what do you mean?16:14
Italian_Plumbergreetings... anyone subscribe to the Ubuntu Security Updates RSS feed?  there hasn't been any update for about 2 weeks now.16:23
pmatulisItalian_Plumber: guess that's a good thing16:24
patdk-wknot really :(16:24
giovaniItalian_Plumber: mailing lists are typically the prefered notification method for security updates in any community16:24
giovaniI don't know anything about the RSS feed16:24
Italian_Plumberwhat's the ubuntu mailing list?16:25
patdk-wkI have gotten a one email, that didn't popup on the security rss feed16:25
patdk-wkbut ya, nothing has happened for awhile16:25
giovanihttps://lists.ubuntu.com/mailman/listinfo/ubuntu-security-announce16:25
Italian_Plumberaccording to this page http://www.ubuntu.com/usn the mailing list and the RSS feed are the same...?16:26
giovaniDec 16 was the last post16:26
Italian_Plumberjust kinda wierd to have gone for more than 2 weeks with no notices.16:26
giovaniItalian_Plumber: you appear to be correct, like I said, I don't know anything about the RSS feed16:26
giovanimany people are on vacation, etc, it's not terribly surprising16:27
Italian_Plumbertrue16:27
Italian_PlumberThe last kernel update was 12/15 ... loooks like I didn't install it... my uptime is ~28 days16:29
giovaniItalian_Plumber: you might've installed it, but not rebooted16:30
giovaniksplice ftw16:30
uvirtbotNew bug: #695138 in clamav (main) "Ubuntu 10.10 screensaver does not work when ClamTK is installed." [Undecided,New] https://launchpad.net/bugs/69513816:35
_rubenif only it were free16:39
=== sam-_-_ is now known as sam-_-
=== vorian is now known as bzip
jdstrandgiovani, Italian_Plumber: yes, people are on vacation which is why there haven't been USNs. we are monitoring for high priority issues though17:27
Yizianyone can help me with iptables?17:30
kim0Yizi: just ask17:30
Yiziok i have a ubuntu machine with 3 network cards17:30
ish10hey guys how do u use nagios plugins?17:30
Yizieth0, 1, 217:30
Yizieth1 is connected to net using a gateway17:31
Yizion eth0 i have intranet where i need them to be able to access the internet17:31
Yizii need to setup the iptables on my ubuntu machine being the middle computer17:31
kim0Yizi: so u just want to setup natting ?17:32
Yiziso allow intranet users to access the web17:32
Yiziwhat i'm doing is im writting a shell script17:32
Yizican i NAT in that too?17:32
kim0Yizi: iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE17:33
kim0Yizi: this would enable intranet outgoing access to internet17:33
Yizithats amazing17:33
Yizione more question, how will i be able to prevent packets which logically originated from the internet?17:34
kim0Yizi: for more details .. might wanna read this https://help.ubuntu.com/10.04/serverguide/C/firewall.html (masquerade section)17:34
pmatulisi 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:40
ish10does anyone here use nagios?17:45
eagles0513875hey guys stupid question probably is it possible to setup quotas on a folder18:08
pmatuliseagles0513875: i think it's just per filesystem18:11
pmatuliseagles0513875: not 100% sure18:11
eagles0513875ok18:14
eagles0513875tried googling but not turning up much18:14
gobbeyep18:17
gobbei18:17
gobbequotas are per set per filesystem18:17
eagles0513875gobbe: is it possible to do per folder?18:18
eagles0513875i need that to restrict websites that i have in /var/www18:18
patdk-wkeagles0513875, if you mount a filesystem per folder, yep18:18
patdk-wkeagles0513875, your thinking about it wrong :)18:19
eagles0513875what should i do18:19
patdk-wkdepends, what is the goal?18:19
=== bzip is now known as vorian
eagles0513875basically im going to be setting up packages18:21
patdk-wkno, explain how you want the quotas to work18:21
eagles0513875on a per folder basis18:21
eagles0513875depending on the package18:21
patdk-wkthat makes no sense to me18:22
eagles0513875what would oy recommend18:22
patdk-wkI can't recommend anything, as I have no clue what you want, except the impossible18:22
eagles0513875:-/ ok18:22
sacarlsoneagles0513875: quotas as Identified by what?18:23
sacarlsonip?18:23
sacarlsonname and user?18:23
eagles0513875not ip just size18:23
eagles0513875site size18:23
sacarlsonsize to all users18:23
sacarlsonas measured bytes from a folder18:24
eagles0513875each client will have a folder for their site which is setup as a vhost18:24
eagles0513875lets say for a site you have 2gb of space have a hard limit on space18:25
sacarlsonwell webalizer tracks that18:25
sacarlsonso interface to that and you should have it18:25
eagles0513875ok but then how does one restrict site size18:25
sacarlsonrename the dir so they can't get in?18:26
eagles0513875for a particulare folder then lets say 2gb for site218:26
sacarlsonor redirect to a page that says sorry can't come in18:26
eagles0513875ok18:26
sacarlsonso first look at the code of webalizer and see how they do it18:27
sacarlsonthe rest is easy18:27
eagles0513875ok18:27
eagles0513875thanks sacarlson18:27
gobbeeagles0513875: you could do lvm-volume for www and add it there18:28
eagles0513875ya only have 1 hdd not setup as lvm18:28
gobbeeagles0513875: and mount it, then you have it per folder18:28
patdk-wk:) as long as you have enough diskspace for fullcapacity of all sites18:29
gobbeyep18:29
eagles0513875right now only 3 clients18:29
eagles0513875my site18:29
eagles0513875crm18:29
eagles0513875and 2 clients18:29
patdk-wkuse spares file backed lvm?18:29
eagles0513875?18:29
gobbewhat do you want to achieve?18:29
gobbei dont really get your point18:30
eagles0513875im considering renting an offsite server as a roll over if my connection goes down or something18:30
patdk-wkhe wants quotas, but not via user/group :(18:30
patdk-wkor did you mean me, with the sparse file?18:30
gobbeok18:31
patdk-wkhmm, 4Tb sparse file, formated lvm, and split into 200mb sections and mounted, should be fun :)18:33
patdk-wkhmm, asx works fine for me18:38
eagles0513875im strapped for cash atm18:38
patdk-wkoh opps :)18:38
eagles0513875i woudl buy 2x2tb hdds18:38
eagles0513875and mirror them18:38
patdk-wkeagles0513875,  the only way to do it without wasting craploads of diskspace is with a sparse file18:38
eagles0513875which means18:39
patdk-wkgoogle:sparse file18:39
eagles0513875ok18:41
eagles0513875question webalizer how does one view the information18:41
sacarlsonI think I still have 3 or 4 still on my server I just link this one18:41
sacarlsonopps sorry wrong page18:42
patdk-wknice, 100gig sparse file, created lvm with 6 volumes is only 28k :)18:45
SpamapSsparse files.. or "how to completely fragment your hard drive twice in under 1 second" ;)18:47
patdk-wkSpamapS, that too :)18:51
gobbe:D19:01
gobbesparsefiles are quite deadend19:01
gobbe:D19:01
patdk-wkit fixs a problem, while creating another one down the road19:02
gobbeyes19:03
eagles0513875!webalizer | eagles051387519:08
eagles0513875how does webalizer   work19:08
eagles0513875do i just then configure it?19:08
gobbeeagles0513875: www.webalizer.org?19:08
eagles0513875there isnt much there19:10
gobbeso what are you looking for?19:11
patdk-wka way to use du -s /var/www/*, and disable a folder that has gone over quota :)19:12
eagles0513875patdk-wk: in a nutshell yes19:12
patdk-wkseems pretty simple :)19:12
eagles0513875is webalizer what i want19:13
gobbeno19:13
gobbewebalizer is just analysis19:13
eagles0513875that i do want to keep though19:13
eagles0513875so i cen see site stats etc19:13
gobbewell, then webalizer is for you19:14
=== doko__ is now known as doko
etceteraI did a cp -R from a directory to /usr/local/ instead of /usr/local/foo20:56
etceterahow do I pipe all the contents from the source directory into an rm-rf20:57
qman__probably some sort of loop with a find20:58
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 to20:59
etceteraI'm sure it's a common occurence.20:59
gobbeetcetera: find /some/directory -name '*match*' -exec rm {} \;21:00
etceteragobbe: where /some/directory is the source directory I used to cp?21:00
gobbeetcetera: well it's directory where do you want to delete files21:01
gobbebut it deletes the original directory21:01
gobbei mean content21:01
etcetera?21:01
gobbei'm not sure what do you want to do21:01
qman__he copied recursively to the wrong location, and now he wants to undo21:02
etceteragobbe: I have a source dir ~/foo that I did cp -R to /usr/local/ instead of /usr/local/foo21:02
gobbeand 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 location21:02
gobbeaah21:02
gobbewell that wont do it then21:02
etceterafind all *files* in /usr/local that match ~/foo21:02
qman__find is the right tool, but I don't know what sort of statements or loops you'd need to pull it off21:02
etceterabut not folders, I will handle that myself.21:02
gobbeyou could find them, put output to file, change path to /new/folder and pass that to rm21:04
SlybootsAnyone here familure with NFS in windows :P21:25
SlybootsSet it up' I can connect.. but it keeps complaing that its Read-only (should have rw )21:26
subrosiani seem to be having issues with installing openssh-server through apt-get21:28
giovanisubrosian: can you be specific?21:28
giovani(what issues)21:28
subrosianpackage "openssh-server" has no installation candiadate21:29
giovanido an apt-get update21:29
giovaniyour package lists are likely out-of-date21:29
subrosianvery possible, thanks :)21:29
subrosianah, my DNS wasn't working properly which was causing apt-get upgrade issues21:32
subrosianseems to be good now, thanks a bunch21:32
subrosianapt-get update*21:33
giovanisubrosian: no problem21:33
etceterawouldnt it be better to do an ls of all the files in the source dir recursively...21:38
etceteraand then pipe that to a find which matches those in the /usr/local and issues the -exec rm?21:38
etceteraagain, my situation is i acidentally did a cp -R ~/foo /usr/local instead of /usr/local/foo21:39
etceteraand I want to delete all the *files* in /usr/local that correspond to those found in ~/foo21:40
etceteraI will handle deleting the folders myself.21:40
etceterasorry about that, anyone with some insight?22:02
giovanietcetera: I don't know what you're asking -- you seemed to have begun talking in the middle of an explanation?22:03
etceteragiovani: I asked the question earlier.22:04
etceteraI have a directory ~/foo which I accidentally copied to /usr/local instead of /usr/local/foo22:04
etceteraI need to figure out a way to delete all the -files- out of /usr/local/ that are in ~/foo22:04
giovaniyou 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 rm22:06
giovanithat's how I'd do it22:06
etceteraok, obviously my command line fu is lacking.22:07
etceteraI cannot for 1 figure out how to get all the files as a list but still recurse the directories.22:08
giovanioh, foo is multi-level?22:08
etceterayar.22:08
giovanithat's a bit more complex, let me think for a sec the best way22:08
etceteraI plan on manually rm-ing the dirs.22:08
giovanino need22:09
Picifind /path/to/stuff/ -type f22:09
giovaniyeah, that's not enough though22:09
etceteragiovani: well there is a need.22:09
etceteraI have a ~/foo/bin22:09
etceteraand I don't want to delete /usr/local/bin22:09
giovaniyeah22:09
giovaniI was saying, you won't delete the dirs22:09
giovanijust the files that were copied22:09
etceteraright.22:10
giovanietcetera: find . -type f | sed -e "s/^./\/usr\/local/" | xargs rm22:13
giovaniyou run that in ~/foo22:13
giovanior specify ~/foo instead of "." in find22:13
giovaniI'd run it once without "rm" and instead with "echo" to get a list of all files it's about to delete22:13
etceteragiovani: awesome. thanks.22:21
etceteraafter a really long time in the windows world, I am still to this day glad I never had to learn set.22:22
etceterased*22:22
etceterathat being said…after all this time it's a damn shame there isnt a more semantic api for filtering.22:22
RoyKbeen entraped on windoze_22:23
RoyK?22:23
etceteraentrapped, no.22:25
giovaniglad he never had to learn sed?22:41
giovanithat's unfortunate22:41
giovanithere's nothing illogical about sed's syntax22:41
chroweanyone here use the Landscape service and have issues with the landscape-package-reporter using 99.9% of the CPU?23:35
pmatulischrowe: sounds odd23:57
chrowepmatulis: it looks like this https://bugs.launchpad.net/landscape-client/+bug/67557723:58
uvirtbotLaunchpad bug 675577 in landscape-client "landsape package reporter takes up too much cpu and memory resources" [Undecided,Incomplete]23:58

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