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