[00:49] afternoon all [00:49] what is the simplest way of rsyncing ONLY the changes to a webserver's directories to a remote host? [05:00] how do I set up apache to redirect somthing that comes onto a domain (witch is set up to redirect to somthing out of my www folder to a differen folder: mysite.com > /var/website/ mysite.com/desktop > /var/eyeos/ (hypotheticaly, you do not need to click the links:) ) [05:04] macd: do you know about apache (you might still be looking at this page) [05:48] is there a standard system of deploying websites via debian packages? [05:48] munin just installed to /var/www, but i see a sites-available, sites-enabled setup [06:09] sites-enabled and sites-available are for the site configuration files [06:10] you can set them up individually in sites-available and enable them with a2ensite [06:10] you define where the site's actual files are in that configuration file [06:11] a simpler classic configuration will also work, but I rather like the way it's set up in ubuntu [06:14] i was just wondering if there's a policy suggesting where to put files [06:14] that might be a bit more flexible than subdirs of /var/www [06:15] that's what I usually do [06:15] not sure if there's a standard [06:16] i see some draft debian policies [06:23] hi [06:24] anyone have experience running hudson on ubuntu server? [06:25] I have a small nettop machine that I installed ubuntu server on [06:25] and set up subversion [06:29] mkay [06:29] what is hudson? [06:30] it's a continuous integration server [06:30] when you check in changes to source code on your project, it runs the build [06:31] my googling has found other people using it, but I've no experience with it. [06:31] If you have a specific question, ask it here or in the forums. [06:32] cool...I was just wondering if there are any ubunty specific issues others have had [06:32] *ubuntu [06:32] http://www.sonatype.com/people/2009/02/the-hudson-build-farm-experience-volume-ii/ looks interesting [06:35] nice [07:13] I plan on using ant instead of maven as a build system though [07:14] mostly because my company uses it and I'm trying to test everything at home before pitching it to the company === pod_ is now known as Guest8286 [08:45] qman__: http://webapps-common.alioth.debian.org/draft/html/ch-issues.html [09:15] hi guys - I'm running a server that I want to update to using ubuntu intrepid, instead of gutsy [09:15] why might aptitude update error on me like this? [09:15] http://gist.github.com/140877 [09:19] chris_d_adams: hmm [09:20] chris_d_adams: have feisty/gutsy been EOLd? [09:20] mattt: ah, after a bit more googling, i think that might be it [09:20] this person had a similar problem [09:20] http://forum.linuxmce.org/index.php?topic=8107.0 [09:20] sorry to sound dense [09:21] but is it really just a case of changing all instances of http://gb.archive.ubuntu.com/ubuntu [09:21] to http://old-releases.ubuntu.com/ubuntu instead? [09:22] i don't think so [09:22] i think the idea of old-releases is to allow you to install packages when still running an EOL'd version [09:22] for you, you wish to upgrade ... right? [09:23] Just curious -- In "sudo tasksel" -- There are Basic Ubuntu Server. What does that do? [09:23] mattt: yeah - i have a couple of boxes running intrpeid [09:24] and I totally forgot this one was running gutsy [09:24] chris_d_adams: i'm not sure what the upgrade path is, if you can go straight from gutsy to intrepid ... i guess that's what you should be looking at [09:25] chris_d_adams: perhaps you want to get rid of the references to feisty in your sources.list, and then replace the references to gusty w/ intrepid ... but if it's a live server please research first, as i have no experience doing that :) [09:25] mattt: duly noted, thanks :) [09:25] chris_d_adams: I think I heard this before. You switch to the old-releases to ensure that all packages are fully updated/upgraded before you upgrade over to the next version. I heard it many times on #ubuntu [09:26] mobi-sheep: would make sense :) [09:26] ah, this looks like it [09:26] https://help.ubuntu.com/community/EOLUpgrades [09:28] What is Basic Ubuntu Server? Should I toggle it on? I only want to run XBMCbuntu. [09:28] And other servers such as print server. Basic Ubuntu Server is too generic. [09:29] chris_d_adams: awesome, i love step-by-step instructions :) [09:29] indeed [09:29] thanks for the help btw [09:30] chris_d_adams: np, good luck! [11:05] New bug: #394385 in php5 (main) "[karmic] php packages need update to 5.3" [Wishlist,New] https://launchpad.net/bugs/394385 === erichammond1 is now known as erichammond [12:02] Does anybody knows why apache suexec is compiled to execute scripts in /var/www and not in /home? [12:45] Hey guys [12:46] i am trying to install the latest nightly of transmission through apt [12:47] I have the correct repo, but apt-get wont get transmission-common from that repo. Instead, it gets it from the default ubuntu repo [12:47] Is it possible to 'reorder' the priority of the repos? [13:51] http://117.194.228.242/vhosts/ehcp/sysinfo/index.php?disp=dynamic Is dedicated RAM of 256 mb enough for me ? [14:08] Anirban1987: that depends what you're going to do [14:09] Anirban1987: what sort of load? [14:12] http://img17.imageshack.us/img17/5854/serveryab.jpg . This is a screen shot of my home server. Now I want to shift to a VPS with the same set of apps installed. How much dedicated RAM should I get ? [14:16] what is the load? [14:16] is it a webserver? [14:16] a file server? [14:17] video streaming? [14:17] database? [14:17] RoyK : webserver... LAMP [14:17] 256 may suffice [14:17] depending on the database size [14:18] RoyK : Hav u seen the screenshot ? [14:18] the screen shot doesn't say much about the actual load [14:18] only that the system is quite idle and that it doesn't use all its memory [14:19] what is the price diff between the two? [14:19] RoyK : The memory is crossing 256 MB . Thats why I am asking... [14:19] on the console, type 'free' [14:19] pastebin the output [14:20] more memory means better caching [14:20] how much data is there to cache? [14:22] How do you install sun-java6-jre? [14:23] Eviltechie: FGFI http://ubuntuforums.org/showthread.php?t=455137 [14:23] RoyK : http://pastebin.ca/1484696 [14:25] see the buffers/cache line [14:25] E: Package sun-java6-jre has no installation candidate [14:25] it seems your box is only using ~130MB for processes/data [14:26] Eviltechie: which version? [14:26] 6 [14:26] ubuntu version? [14:26] 9.04 [14:26] hm. i thought it should be in there [14:27] There is one called sun-java6-jre-headless [14:27] RoyK : So can I settle for 256 MB of dedicated RAM and 0 MB of burstable RAM. [14:27] Anirban1987: should work - just set vm.swappiness = 100 [14:28] Anirban1987: in /etc/sysctl.conf [14:29] Anirban1987: that makes the kernel swap out earlier, so that processes that aren't actually doing anything, in time, may be swapped out so that memory can be used for something useful [14:30] Eviltechie: from my ubuntu 8.04.2: [14:30] sun-java6-jre - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files) [14:30] I'm on a vps [14:30] And the headless one is not working either [14:31] it shouldn't matter if you're on a vps or not [14:31] Apt-get is complaining about some language issue with pearl, and wget was missing [14:32] Eviltechie: which repositories are you using? [14:35] RoyK: Not sure [14:35] pastebin /etc/apt/sources.list [14:36] RoyK: Looks like my universe repos are commented out [14:36] try enabling them, apt-get update and retry installing the package [14:38] RoyK: Still no instalation candiate [14:38] which ones are you using now? [14:38] RoyK : There is no such entry like vm.swappiness (http://pastebin.ca/1484703) . Where shld I add it ? [14:38] Anirban1987: somewhere [14:39] just add it to the end [14:39] vm.swappiness = 100 [14:39] also, these might be nice [14:39] kernel.panic = 60 [14:39] kernel.panic_on_oops = 1 [14:39] the former automatically reboots after 60 seconds in case of a kernel panic [14:39] the latter calls panic() in case of OOPS() [14:42] a kernel panic will stop the machine, so better reboot it if that happens. an OOPS _may_ stop the machine or certain services, so treating those as a panic is just as well [14:42] RoyK : If my VPS provider offers 0 MB burstable RAM , is that means that I have no swap file ? [14:43] the swapping is handled by the guest OS, not the host OS, so no difference there [14:43] that is, swapping is handled individually by both [14:44] RoyK : SO is that means that I have no swap file on the host OS ? [14:44] Anirban1987: are you the administrator of this system? [14:44] the host OS is the one running one or more VPSes [14:45] the VPSes are the 'guest' OSes [14:45] RoyK : Ya , I am the admin of a VPS. No access to host OS [14:45] then you don't have to care for the host OS [14:46] the guest OS should be treated like linux installed on bare iron [14:46] Eviltechie: are you using multiverse? [14:46] actually very look iron is used in making a computer [14:47] look = little [14:47] * RoyK bitchslaps bogeyd6 [14:48] I don't think so http://pastebin.com/m1460ed9 [14:48] bare metal would be a more accurate descriptor [14:48] Eviltechie: try adding it [14:48] bogeyd6: pedantic today, are we? [14:49] your big words anger and confuse me [14:49] :รพ [14:49] i do appluad your vast understanding of vm [14:51] bogeyd6: if you're here to fuck around and just that, perhaps there's a better place elsewhere? [15:00] Do the amount of RAM eaten up depends upon the web hosting panel used ? [15:00] yes [15:00] but not a lot [15:02] RoyK : I am amazed why my home server with only LAMP and EHCP panel installed taking so much RAM !! [15:03] 130 megs isn't really a lot [15:09] Anirban1987: do a "ps axfv" to see how much memory each process is using [15:10] Anirban1987: the RSS column shows how much memory is really in use. DRS shows the memory the process has requested [15:18] RoyK : Check it out http://pastebin.ca/1484714 [15:20] Anirban1987: try ps axfvwwwwww [15:23] RoyK : http://pastebin.ca/1484715 [15:23] hm... summing up those processes makes them use 280MB or so [15:24] but then, I guess most of the apache processes share a lot [15:24] ps can't show shared (CoW) memory after forks - it just shows what the process can address, not if it's dedup'ed by the fork [15:25] RoyK : hmm... So how much dedicated and burstable RAM should I settle for ? [15:26] what is the price diff? [15:26] LAMP likes memory. even if it can run on 128MB or perhaps even less, it won't hurt to give it more [15:27] but again, it depends on your workload [15:27] RoyK : http://ideastack.com/vps.html Stuck btw Gold and Platinum ... [15:28] RoyK : And I must admit my budget is severely limited. Need to do as much optimization as possible [15:28] As long as an upgrade is possible/affordable, I'd start at silver and see if that works well [15:28] install sysstat and so on to monitor the system [15:28] if it's too slow, upgrade [15:29] 10GB of disk space is hilarious [15:31] RoyK : Ya, upgrade is possible . Giv me necessary web links for "sysstat" to install . [15:32] apt-get install sysstat [15:33] edit /etc/default/sysstat to enable it [15:33] start it with /etc/init.d/sysstat start [15:33] use the 'sar' command to view system activity [15:33] but then I'm off - catch you later [16:07] How to use the "sar" command to view the amount of RAM consumed ? === erichammond1 is now known as erichammond === gaveen_ is now known as gaveen === bc_ is now known as bc [17:12] how do i set up my network manually? Automatic didnt work in installation? only lo now [17:14] actually thats weird, but it doesnt even show eth0?! [17:17] n0gear, use ifconfig -a [17:17] you can configure your network in /etc/network/interfaces [17:26] hmmm it doesnt get ip addr from dhcp? i dont have a router and all other comps get an ip straight from ISP ... anything i could edit manaually? [17:36] n0gear, /etc/network/interfaces is where you configure it to use DHCP or a static IP [17:36] but, just for testing [17:36] you can use ifconfig to set a manual ip, or you can use dhclient to try and pick up a DHCP lease [17:37] first, use ifconfig -a to see if your interface shows up or not [17:37] the default 'ifconfig' hides unconfigured interfaces, but -a shows all of them [17:37] if it doesn't show up with -a, you need drivers [17:39] qman__: yes eth0 now shows. i put all the auto eth0 things to /interfaces [17:40] but for somereason it doesnt get ip from isp? [17:43] because i dont have router i dont think i can invent an ip address for the server??? need to get assigned from my ISP right? [17:44] n0gear, how many IPs can you get from your ISP? [17:45] 5. Only 2 in use at the moment ... unless i've got 'visitors' on my WLAN. Whats the reason the autoconf didnt work on install [17:47] hay, after I use useradd to create a user what default password do they have? [17:50] DormantOden, you type in a password when you add the user, https://help.ubuntu.com/9.04/serverguide/C/user-management.html for more info [17:51] lies [17:59] DormantOden, then you can change it with "sudo passwd ", then you will be prompted to type a new password [18:00] =P cheers [18:01] np [18:01] now i just have to remember what file I have to change bin/bash -> bin/false in =/ [18:01] any idea? [18:01] and I think the recommended way to add users are in that link I gave you [18:01] no [18:01] idea [18:01] =/ [18:01] its to stop people login in [18:01] ...or getting to bash [18:02] unless theres a new fangled way =P [18:13] DormantOden, /etc/passwd [18:13] you can also use usermod [18:14] n0gear, you either need to configure the IP statically, or inform your ISP of the MAC address, they can't just know what box is yours ;) [18:15] DormantOden, if you didn't set the password during creation, there is no password set [18:15] and the user cannot log on [18:17] ah, that explains why I couldnt login then :P [18:17] kl, its all working nicley now [18:17] = [18:17] * =D [18:21] qman__: might i use dyndns address as a ip address? [18:22] no, you need an IP [18:22] DNS is just a convenience [18:23] DNS can be used to host multiple websites on one IP, or other similar tasks, but every node needs an IP address, either on the net, routed, or NATed [18:23] damn, i think im screwed unless i get a NAT router [18:25] n0gear, have you checked so you don't have any unwanted w-lan visitors using up all your IPs? [18:26] n0gear, you can also use a linux box with iptables as a NAT router [18:26] though that gets complicated [18:27] okay i disconnected wlan now. lets see if that helps [18:29] it can be quite power consuming too [18:29] no luck [18:29] :| [18:30] in order to receive a DHCP address, the ISP has to identify you in some way, usually that means giving them your MAC addresses [18:30] it depends on your ISP and connection type [18:30] you should call and find out [18:31] yep. unfortunately customer service not open today :( [18:31] ah [18:32] How do you setup subdomains with apache? [18:33] by subodmains, do you mean dynamic subdomains or just a couple? [18:33] qman__: What's the difference? [18:33] what I mean by that is [18:33] do you want to have it automatically create subdomains for you, or do you just want to create a few sites manually? [18:34] qman__: Just a few [18:34] for that, you configure your sites using a virtualhost configuration [18:34] fortunately, ubuntu defaults to this kind of setup [18:34] in the configuration file for the website, in /etc/apache2/sites-available [18:34] you set each site's file like this [18:35] [18:35] instead of using an IP or just * [18:35] set up multiple configurations, one for each site [18:35] you can use the default one as a template [18:35] then enable them with the a2ensite command [18:36] for that to work, you need a working DNS setup, and you can't have any sites listening based on IP [18:37] can I make ubuntu as a boot from lan server? [18:37] to boot systems from the network? [18:38] sseiersen, yes, look up LTSP [18:38] ok [18:38] IIRC the alternate install disc has this capability as an install feature [18:41] qman__: Like this? http://pastebin.com/m5a9f670e [18:41] yes [18:41] you create each of your subdomains that way, and enable them [18:41] qman__: Ok [18:41] and if DNS works correctly, the sites will work correctly [18:45] qman__: The subdomain works, but the regular one doesn't. It mirrors the subdomain. [18:46] did you make sure to point the two sites to different file paths? [18:47] DocumentRoot [18:47] qman__: [18:47] DocumentRoot /var/home [18:48] each site should point to a different root [18:48] to the files for each site [18:48] qman__: They do. I was having this problem before when I tried this another way. [18:50] hmm [18:50] looks like there is another approach [18:50] http://httpd.apache.org/docs/1.3/vhosts/name-based.html [18:51] using ServerName instead of the virtualhost directive to define which site is which [18:51] so [18:51] in the main apache configuration, you set [18:51] NameVirtualHost * [18:51] then each site will contain [18:51] [18:51] First, how do I undo the sites avalaible thing? [18:51] ServerName domain.tld [18:51] oh [18:51] a2dissite [18:52] Ok [18:53] Like that? http://pastebin.com/m3f727758 [18:53] yes [18:54] and make sure NameVirtualHost * is used, but only once, not in each site [18:54] That did the exact same thing, mirrored the main domain off the sub domain [18:54] preferrably in the main configuration, /etc/apache2/apache2.conf [18:54] I put this in httpd.conf, right/ [18:55] well [18:55] preferrably the sites would be defined in individual site files [18:55] and the NameVirtualHost * would be in the main configuration, either httpd.conf or apache2.conf [18:55] but, if it's all in one file it'll still work [18:56] the separation is only for organization and convenience [18:56] What is this namevirtualhost thing you speak of? [18:56] NameVirtualHost * [18:56] Where does it go? [18:56] literally, should be in the configuration somewhere [18:56] but only once [18:56] and not within a virtualhost section [18:57] I would put it in apache2.conf [18:57] I just put it in httpd.conf [18:57] that's fine [18:57] apache must be restarted afterward, or at least have the configuration reloaded [18:58] Now the subdomain is mirroring off the main one [18:59] try changing the main site to www.site.tld [18:59] but place it first [19:00] How do I do that? [19:00] like [19:00] in the ServerName directive, change the name from domain.tld to www.domain.tld [19:00] on the main site [19:00] and leave the subdomain as sub.domain.tld [19:01] and as long as the main site comes first in the configuration, it'll be the default [19:01] so one who does not define www. will still get to the main site [19:01] Where is this directive? [19:01] in the virtualhost configuration [19:01] And where is that? [19:01] for the main site [19:01] Yeah [19:02] inside the [19:02] Oh [19:02] you should have two of those, one for each site [19:02] Oh === ejat is now known as e-jat [19:04] Here is what httpd.conf looks like now http://pastebin.com/m46601263 [19:04] are all sites in /etc/apache2/sites-available/ disabled? [19:05] I don't know [19:05] I disabled the one I made [19:05] you need to disable the default site too [19:05] But the default and default-ssl are in there [19:05] a2dissite default [19:05] yeah, you need to disable them both to do it that way [19:06] if all sites are disabled, /etc/apache2/sites-enabled/ should be empty [19:07] I think it works now [19:10] Ok, all good. Thanks [19:10] yep [19:10] Just one thing [19:10] [Sun Jul 05 18:06:13 2009] [warn] NameVirtualHost *:80 has no VirtualHosts ... waiting [Sun Jul 05 18:06:14 2009] [warn] NameVirtualHost *:80 has no VirtualHosts [19:10] That happened when I restarted the server [19:11] ah [19:11] somewhere in the configuration "NameVirtualHost *:80' exists [19:11] probably in apache2.conf [19:11] look for it and remove it, should be all set [19:11] NameVirtualHost * <--Remove that? [19:12] no [19:12] you need that, but one that says *:80 should be removed [19:12] a remnant from the default configuration [19:12] anyone know how I can stop my server getting stuck on "Checking battery..." when shutting down? [19:12] or even why it does? [19:13] qman__: The only instance is NameVirtualHost * in my httpd.conf [19:14] hi there i'm trying to understand why the deadline schedule is in use in the 9.04 kernel vs the cfq one [19:14] can someone explain why this is picked? [19:15] Eviltechie, the error means it's in there somewhere, hang on a sec [19:16] for FILE in `find /etc/apache2`; do echo $FILE; grep NameVirtualHost $FILE; done [19:17] run that in a terminal, it'll help you find it [19:20] qman__: what are you doing that for ? [19:21] qman__: That chucked out a bunch of files [19:21] you can just run grep -R .... [19:23] qman__: It's in ports.conf [19:25] qman__: Should I just take it out? [19:25] yes, you can comment it if you're unsure [19:27] qman__: Ok, no errors on restart [19:40] I tried to install a dhcp server, but encountered this error message instead "dhcp3-server: Depends: dhcp3-common (= 3.1.1-5ubuntu8) but 3.1.1-6 is to be installed" - what can i do to resolve this? [19:40] what method did you go about to install the dhcp package [19:41] sudo apt-get install dhcp3-server [19:41] then you need to check your repositories [19:41] somehow you installed a newer version of dhcp3-common than is available from your current set [19:42] so either you need to update your repositories, or you previously used incorrect ones [19:42] Actually, I "upgraded" my system from Debian 5 just by changing the repositories and do aptitude dist-upgrade... [19:42] ouch [19:42] that's the problem [19:42] you're pretty much screwed now [19:42] you've got major version conflicts [19:42] But removing and reinstalling dhcp3-common did the trick actually, so thank you for pointing me in the right direction. :) [19:43] danlii: you _should_ probably backup, reinstall, and restore your data and configs [19:43] yeah, that's likely not the only version conflict you have [19:43] and some of them can be rather nasty [19:43] ssm: Nah, too much trouble. I'd rather fix problems as i encounter them. ;) [19:43] or at least, keep good backups :) [19:43] Everything else seems to work. [19:44] It's just my firewall, so there's not much to backup. [19:44] danlii: good. Now, make sure you have backups of your config and data :) [19:44] ah [19:51] so why should i be using deadline vs cfq on my server? [20:31] What's the group you add a user to make them an admin? [20:32] Is it sudo? [20:42] Eviltechie: admin [20:43] pmatulis: It says that group dosen't exist. [20:43] useradd: unknown group admin [20:43] Eviltechie: what was your full command? [20:43] # useradd -G admin ivan [20:44] Eviltechie: try '$ sudo useradd ivan admin' [20:44] adduser rather [20:45] ivan is not in the sudoers file. This incident will be reported. [20:45] Eviltechie: the user issuing the command *must* have access to root privileges [20:45] There is no admin group. I checked /etc/group [20:46] then you erased it [20:46] pmatulis: The only user that has those privlidges is root [20:46] Eviltechie: by default, the user created during install is a member of admin group [20:47] I'm in a vps, the only user that was created was root [20:47] this is the user you should be using to have access to root privileges [20:47] and what is a vps? [20:47] Virtual Private Server [20:48] Eviltechie: how did you install it? [20:49] I set how much disc space, the root password, and clicked the install button. Then I waited 30 seconds, and sshed into the root account. [20:51] i'm not familiar with VPS. all i can say is that i don't think you have Ubuntu there [20:52] It's ubuntu, just not how I'm used to it. [20:52] output to: '$ lsb_release -a' [20:53] No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 9.04 Release: 9.04 Codename: jaunty [20:53] you could just add the admin group & add the %admin line back into /etc/sudoers [20:56] Ok, now for a silly question, where do yo type your password in evolution? [20:57] no idea, I haven't used it for years :) [20:58] Eviltechie: evolution is not a valid topic for this channel [21:07] qman__: DUDE guess what was wrong with nor getting IP!? [21:41] how do i update manually from cli? [21:42] change your IP? ifconfig eth0 12.34.56.78 netmask 255.0.0.0 [21:43] change the IP and mask with the ones you're supposed to have [21:46] qman__: ip problem is now ok! didnt realise i had 2 network cards on my comp :) [21:47] but now i need to install updates manually. how do i do that? [23:04] hi, dose anyone here know how to get the kernel source to compile (or install I guess) the vmware server (2.0.0) on jaunty, the kernel-source-devel appears to be gone [23:07] helloooo [23:15] then you pro0bably need linux-headers-generic or linux-headers-server, depending on which kernel you're using [23:16] ajmitch, thanks, I will see if it was what I needed [23:40] hi all [23:41] I'm telnetting to may postfix smtp server on ubuntu 9.04, and when i run the starttls command i get this error 502 5.5.1 Error: command not implemented [23:41] anyone know why this may be