=== security is now known as megha [04:14] i have problens to register key-gpg in lauchpad [05:58] Hello [05:58] Is it impossible to install ubuntu 12.10 to a raid1? [05:59] It won't install grub [05:59] I even left an empty partition for grub === lolcat is now known as Aphasia === Aphasia is now known as lolcat [07:27] hi here [07:27] anyone around running kvm ? [07:27] or doing virtualisation ? === JanC_test_ is now known as JanC_test === billy_ is now known as wickedpuppy [09:36] hi here [09:36] anyone around using xen ? === security is now known as megha === VD is now known as Guest3815 [10:56] Anyone got guides on securing a ubuntu 12.04 server? [11:16] Hi, I'm having some trouble figuring out whats wrong with my sftp server: http://paste.pm/688.js , as you can see I checked to see if sshd was running, and it is.. but only one ssh user, why wont it let any other in?:/ I just get the "unexpectedly closed" message in filezilla [13:34] k so its been a bit since i set up a server and i just set up a new vps with vilayer. i can ssh in but it cannot ping out to any ip or url if you can give me an idea of where to start i would be grateful [13:49] jgdovin: if you can ssh in, the routing works, if you then cannot access anything outside, some firewall may be involved [14:39] hi guys! I need some help. I am trying to write my .htaccess on my server root /var/www/ . I want http://www.test.co.uk/ to redirect to http://www.test.co.uk/vhosts/test/ .How do i need to do?? [14:42] depends [14:42] exactly what do you want to change/enforce? [14:42] patdk-lap: why? [14:43] your example isn't specific enough [14:43] I want to redirect requests [14:43] are you sure? [14:43] http://www.test.co.uk/ I want to redirect to http://www.test.co.uk/vhosts/test/ but I dont want the user to see that [14:43] you want to redirect? or rewrite? [14:44] rewrite sorry [14:44] and do you want to enforce the domain? or any domain? [14:44] my english, my bad [14:44] what's the difference? [14:44] well, a redirect will jsut change / to /vhosts/test/ [14:44] it doesn't care about the name [14:44] do YOU care about the name? [14:45] yes I care [14:45] i dont want anybody to see the destination [14:45] heh? [14:45] everyone knows the destination [14:45] /vhosts/test/ i want / [14:45] hmm, I didn't ask about that [14:45] I asked about the www.test.co.uk part [14:46] yes sorry [14:46] do you care about that? must that match EXACTLY [14:46] what do u guys use to monitor server load? [14:46] i want that when the user goes to www.test.co.uk sees the content in www.test.co.uk/vhost/test [14:46] ddsss1, uptime? [14:46] ddsss1, but what do you mean by server load? [14:47] patdk-lap: is it clear? [14:47] patdk-lap: server hosts php app. I want to see cpu usage graph overtime, network traffic, hdd usage etc. [14:47] rewritecond %{HTTP_HOST} ^www\.test\.co\.uk$ [14:48] rewriterule ^/$ /vhosts/test/ [14:49] ddsss1, anything you want sysstat, cacti, munin, ... [14:49] patdk-lap: which ones do peopel most use? [14:50] patdk-lap: which ones do people use most? [14:50] !poll [14:50] Usually, there is no single "best" application to perform a given task. It's up to you to choose, depending on your preferences, features you require, and other factors. Do NOT take polls in the channel. If you insist on getting people's opinions, ask BestBot in #ubuntu-bots. [14:50] patdk-lap: so RewriteEngine on rewritecond %{HTTP_HOST} ^www\.test\.co\.uk$ rewriterule ^/$ /vhosts/test/ in a file in /var/www. Is it right? [14:51] no [14:51] if your using .htaccess, you will also need a rewritebase too [14:51] likely rewritebase / [14:52] patdk-lap: where ? [14:52] before rewritecond/rewriterule [14:53] its not working, im doing something wrote [14:55] patdk-lap: so RewriteEngine on rewritebase / rewritecond %{HTTP_HOST} ^www\.test\.co\.uk$ rewriterule ^/$ /vhosts/test/ in a file in /var/www. Is it right? [14:56] for the infomation you provided, yes [14:56] that also assumes you have the rewrite module loaded, and allowoverrides on [14:57] but that is all outside the scope of the question [15:13] hi guys :) [15:14] can I use grep to search databases? [15:14] Koheleth: what database? [15:14] Koheleth: only if the string you are looking for has it in cleartext. your best bet is to query the database properly [15:14] i'm trying to ssh into my server, but ssh is just sittnig at 'Using username "[usernamehere]".' [15:14] is there anything i can do from my end? [15:15] or does the vps need to be restarted at the virtual client end? [15:15] snufft: throw on -vvv to the client and see if there's any clues in the debug output [15:15] Fieldy: no joke, i've been trying to do something about this for the last hour or so, just as I posted that, it logged me in -_- [15:15] -vv might be enough [15:16] figures :) [15:16] Fieldy: but thank you for your help :) what does -vvv do anyway? [15:16] sometimes reverse DNS lookups slow down connections (but not THAT much)... add UseDNS no to /etc/ssh/sshd_config and restart sshd [15:16] I think mine is MySQL eating all the resources :( [15:17] snufft: -v is verbose output, vv is more, vvv is isnanity [15:17] hahahahaha, ok. thanks heaps :) [15:17] often you'll get a clue as to what's going on with the output [15:18] ahhh fair enough :) top is taking ages to return anything now, so it's probably mysql again.... [15:18] sounds like a heavily loaded system. i get that on one of my IDS sensors, takes forever to SSH in no matter what [15:19] it's just really weak hardware in that case [15:19] actually getting a shell prompt takes maybe 30 seconds or more [15:19] mine's taking a bit longer than that :P updwards of 10 mins maybe :( [15:20] yeah that's not normal. and generally a TCP connection will time out after 5 minutes [15:21] it might be time to move whatever's causing all that load off to its own instance, or if the vps is just low on ram and deep in swap, upgrade its plan for more ram [15:23] is there a default file for ubuntu where iptables rules are saved? [15:24] it's starting to look like apache... [15:28] snufft: yeah i had a lot of endless pains with apache especially with VPS where lots of ram wasn't always available. one day I tried lighttpd which gets it done with much, much less resources, and that's all I use anymore [15:29] apache can be tuned to use a lot less, but it's not straightforward, and it begins to perform very poorly as you start clamping it down [15:29] Fieldy: I feel you. I normally run Nginx, but the admin for this server only knows apache, so that's what i use. It's curently has 17 threads going, all with virt of 277mb... [15:29] well, if he wants to stick with it, he'll be faced with paying for a RAM upgrade on the VPS most likely [15:29] or moving other things like sql to another instance [15:30] bang. apache restarted, site works... is there anything I can do to stop things locking me out of being able to ssh in? [15:30] not really, if the system is getting hammered, that will continue to be a problem [15:30] that's a shame :( [15:30] btw, is your nick from Fieldy of Korn, or somewhere else? :P [15:31] yeah, don't tell them what it means :P [15:31] hahahahahahahaha [15:31] i couldn't get a gentoo cloak with the longer nick heh [15:31] is there a default file for ubuntu where iptables rules are saved? [15:31] i wish they'd let David come back :( head's kind-of back, but it's not the same without David... [15:32] Cippalippa: not that i know of, are you simply looking to have some rules applied at boot or when networking comes up? [15:34] at the boot [15:35] ok, let me look at my setup, because that's what I do [15:36] i think i just confused myself. that's what i get for having so bloody many different distros / servers. even my notes aren't clear [15:38] Cippalippa: first I created an upstart script, a url describing what that is is at the top of this http://pastebin.ca/raw/2358274 [15:39] it calls /root/bin/iptables-and-forwarding.sh which is the raw iptables commands building the ruleset I want. there's probably a better way to do this but it works for me [15:40] noting that I am wiping out any existing rules at the start of that === security is now known as megha [17:57] Hello, can someone please help me with an apt-get remove problem? :/ http://pastebin.com/YfCV94HU [17:59] GTAXL: Do you have any packages in hold status, discouraging apt from removing them? [17:59] not sure [17:59] how could I check? [17:59] dpkg -l | grep ^h [17:59] that outputs nothing [17:59] Hm [18:00] Check your package manager state for potential anomalies with 'dpkg --audit' [18:01] And run dpkg and apt's "clean up after partial installations" routines: 'dpkg --configure -a' and 'apt-get install -f' [18:03] And then the other thing you could try to attempt to localise the problem would be to attempt removal of fewer packages in one command - e.g. you could try asking for just apache2.2-common to be removed and let apt remove pretty much anything else that depends on apache\ [18:05] Any gitlab alternatives? Gitorious maybe? === Jikan is now known as Jikai [19:27] Hey there! Does anyone have experience with xdebug? === Jikai is now known as Jikan