/srv/irclogs.ubuntu.com/2013/06/30/#ubuntu-server.txt

=== acrocity_ is now known as acrocity
codepython777does anyone have easy to use bash scripts that add/remove users and sets their passwords?07:06
greppycodepython777: beyond the supplied adduser or useradd scripts?07:32
=== e_t__ is now known as e_t_
vedicI have installed vm-builder and have setup a vm with arch = amd64, flavour = virtual, and bridge = br0 but I am getting this error when I start the machine using virsh start hostname10:19
vedicerror: Cannot get interface MTU on 'br0': No such device10:19
vedicDetails of the configuration parameters: http://pastebin.com/sCJb93wC10:22
tasslehoffWhat is the proper way to add a grub timeout after an unexpected shutdown? Editing /etc/grub.d/00_headers seems a bit too hardcore :)16:46
tasslehoffhm. setting GRUB_RECORDFAIL_TIMEOUT in /etc/default/grub, it seems16:47
tasslehoffso, nevermind. and bye.16:49
vedicHow to uninstall or delete a virtual machine created using vmbuilder? I had set br0 bridge mode but its not working properly. I want to try out freshly with usermode16:57
dmannnhey guys i installed samba 4 as AD on ubuntu 12.04  ... so logon with "administrator" works fine ... but when i try to add a user in AD  and login with the new user afterwards i get  " wrong password or user name"  ..  is there something additional i need to do to get a user acc working ?17:01
JosephDuffyI have 2 virtual sites enabled with apache. One is the "default" and another is a custom one, which is a modified version of the default one. If I enable the second one (cms), visiting cms.domain.net goes to the correct directory, but so does accessing the server directly (e.g. via its IP). Have I configured it wrong? http://paste.ubuntu.com/5814421/http://paste.ubuntu.com/5814421/17:03
dmannnno idea anyone ?17:08
vedicdmannn: Very hard to get any reply here. I have been trying for last 3 days but no luck17:12
dmannnvedic:  ok thank u dude17:13
nmollerupdmann: never tried to setup as AD, but when adding users on regular sambe you need to set passwd with smbpasswd, have you tried that ?17:30
JosephDuffyI have 2 virtual sites enabled with apache. One is the "default" and another is a custom one, which is a modified version of the default one. If I enable the second one (cms), visiting cms.domain.net goes to the correct directory, but so does accessing the server directly (e.g. via its IP). Have I configured it wrong? http://paste.ubuntu.com/5814421/18:07
RoyKJosephDuffy: using the IP address won't send the correct HTTP Host: header, so Apache is behaving correctly18:10
RoyKJosephDuffy: well, it sends the "correct" HTTP Host header, but not the one you've configured18:12
RoyKoh18:12
RoyKyou didn't use the host header, another port...18:12
RoyKthat should work18:12
RoyKno, I misread again18:13
RoyKsee first reply18:13
JosephDuffyRoyK: So you're saying it a browser issue, sending incorrect headers?18:13
RoyKno, I'm saying when you type in the IP address, that's what's sent as the host header, and apache is configured to match the host header with the FQDN you gave it18:17
JosephDuffyI also use a domain that points to the internal address, and one that points to the external IP and both point to the cms directory. Can I fix this?18:20
RoyKyou really can't. how is apache going to know which site you want to visit when you use the ip address alone?18:20
RoyKyou could create an alias in the other site, but that'll alter the url, and most CMSes are a bit touchy on that18:21
RoyKsome, at least18:21
JosephDuffyI thought it'd check for custom rules (e.g. the cms) and then go back to the default one? If I'm not visiting cms.domain.net why would it trigger that rule?18:22
RoyKnot sure, perhaps try asking on #httpd18:22
JosephDuffyRoyK: Thanks, I'll over there :)18:27
wxlso anyone familiar with raid setup with the installer?18:58
RoyKwxl: what sort of raid?19:21
wxlRoyK: raid 1. pretty simple stuff. i'm following the instructions at https://help.ubuntu.com/community/Installation/SoftwareRAID and have completed all the steps, but when i go to exit the partitioner and let it write all its changes, it complains there's no root file system, even though i set up a root automatically on both drives previous to definining the array19:22
RoyKwxl: I've setup that a number of times, just create your raid, preferably one for /boot, one for / and one for swap, and perhaps more for data if you want to separate more. Then go back and create filesystems on those raids19:23
wxlRoyK: so the normal process is not set up partitions on drives and then define the array, but instead to define the array and then set up the partitions? i don't think this works because it will complain the drive is already being used by the array19:24
RoyKI haven't done it that way19:25
wxlRoyK: i'm assuming you've done it with mdadm sort of after the fact?19:25
RoyKI've setup equal-sized partitions on each drive and then put raid-1s on top of those, then filesystem on those raids19:25
RoyKno, with the installer19:25
wxlhuh well the first part of that seems consist4ent with the docs19:25
wxlbut then putting the file system on the raids, that doesn't seem to work19:26
RoyKhas worked well for me for 10+ machines19:26
RoyKpartition, make raids, go back and create filesystems on those19:26
wxlargh i swear this server is cursed19:26
* RoyK wonders if it might be PEBKAC ;)19:27
wxlmayhap19:27
wxlbut check the docs. if i'm understanding you correctly, looking at the docs, after "configuring the RAID," i should then select the primary partitions on each drive and format the file system, rihgt?19:28
wxl…cuz if so, it says i can't because the partition is in use by md019:29
wxland that doesn't matter if i select the primary partition or the device itself19:29
Catalystici aim to serve22:12
=== root________ is now known as aarcane
hadifarnoudI get random forbidden error on one of my virtualmin sites. it's built with Wordpress. error goes away after a while. so weird23:23
sarnoldhadifarnoud: check log files23:30
hadifarnoudI did. I can't find any errors23:30
hadifarnoudsarnold: I checked error.log23:30
sarnoldhadifarnoud: how about /var/log/syslog?23:31
hadifarnoudsarnold: turns out virtualmin logs are in /home/site.com/logs23:32
sarnoldhadifarnoud: aha, anything more enlightening in there? :)23:32
hadifarnoudsarnold: [client 80.5.67.62] client denied by server configuration: /home/any1/public_html/wp-admin/media-upload.php, referer: http://any1.io/wp-admin/admin.php?page=wpzoom_options23:33
sarnoldhadifarnoud: hrm, was the client that you noticed the error going away after a while?23:33
hadifarnoudsarnold: error goes away by itself. I have no clue why23:34
hadifarnoudthat ip is mine sarnold23:34
sarnoldhadifarnoud: how strange, I wouldn't expect an error due to "denied by server configuration" to resolve itself23:37
hadifarnoudsarnold: maybe there is a limit on concurrent connections etc?23:37
hadifarnoudnot a useful error, eh?23:37
sarnoldindeed, it could be more friendly :)23:38
hadifarnoudcould it be denyhost sarnold?23:49
sarnoldhadifarnoud: hrm, I just now learning that apache can deny based on client hostname: http://httpd.apache.org/docs/current/howto/access.html#host23:50
sarnoldhadifarnoud: if DNS is spotty, some requests might not get reverse resolved and might succeed or fail, depending upon your configuration23:51
hadifarnoudthat's bad sarnold23:51
sarnoldyeah, I wouldn't use dns names in allow / deny rules myself23:52
hadifarnoudthis is my apache conf https://gist.github.com/hadifarnoud/c644a5ef8c87a1c29edb23:55
sarnoldhadifarnoud: how about .htaccess files?23:59

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