/srv/irclogs.ubuntu.com/2009/05/10/#ubuntu-server.txt

slestakany zenoss users here?  i'm tinkering with the vmdk version00:04
somnolenceis it possible that qemu-dm doesn't utilize proper drivers to boot from my cd-drive, it seems to crash every time it tries to boot the windows xp disk.00:12
Iceman_B|SSHclose01:03
afiefI've got an old Gusty machine I'd like to upgrade, could someone tell me what the best thing to do would be?01:08
panfisthi, i have LAMP running and I have three folders in /var/www ... i can go to two of them and it starts serving me PHP, but if i go to the third folder it says forbidden. the permissions are all the same for all files and folders02:14
Kamping_Kaiserpanfist, are the permissions the same on the directory itself?02:14
panfistyes02:15
Kamping_Kaiserpanfist, other then that, check /var/log/apache2/{access,error}.log for clues02:15
panfistall directories are drwxr-xr-x02:15
panfisterror.log shows Directory index forbidden by Options directive: /usr/share/ampache/www02:16
panfistoh02:16
panfisti had to restart apache because i moved ampache files to /var/www02:17
jetoledoes anyone know where I can ask questions about tc filters and queues and routing? I have asked a few places where no one seems to know the answer, especially the official spot lartc on oftc.net which I am one of two people to say something in 5 days02:54
mrhoden2009Does anyone know how to set up RAID configurations?03:42
mrhoden2009Anyone here?03:57
poningrumrhoden2009, whatsup?03:59
poningruraid?03:59
beornlakehello - I'm looking for help with setting up a virtual interface for hosting a PPTPd VPN - anyone available to answer some questions by any chance?04:03
beornlakeI'll just toss this out there to see what sticks: I'm looking to set up a PPTPd server on my 9.04 VPS, but the VPS is configured at the host to have only one network interface (the global-facing en0). I'm looking for some guidance to help set up a virtual interface (or VLAN?) that I can hook the PPTP daemon to (for itself and the clients to use) - feel free to PM me if you like04:09
mrhoden2009Does anyone know how to migrate a folder from an old drive to a new RAID 0 configuration?04:22
mrhoden2009The old drive would be basically my server now.04:22
twbmrhoden2009: RAID 0 is striping.  If *either* disk fails, you lose everything.04:52
twbSo RAID0 *doubles* your failure rate, rather than halving it.04:53
twbRAID0 is only useful in certain limited applications, such as holding temporary copies of data while it is being crunched.04:53
mrhoden2009I'm looking for speed which is why I was looking to do that, I already have pretty fast hardware, is there a way to use RAID 0 and RAID 1?04:54
twbmrhoden2009: the right question is: do you care about your data?04:54
twbIf so, you do not want RAID0.04:54
mrhoden2009I see your point.04:54
twbSometimes people use RAID0 on top of RAID1 (four disks), but IMO you'd be better off using RAID5 or RAID5 with two parity disks (sometimes called RAID6).04:55
mrhoden2009let me see something real quick04:55
twbAlso, you will want md RAID (software RAID) unless you paid a couple of hundred dollars for your RAID controller.  Cheaper controllers are called "fakeraid", which you can read about on Wikipedia.04:56
twbRegarding migration from a single-disk to a RAID system, the easiest way to go about this is to have a spare disk -- you set up the array, then copy the data across from the original disk.04:56
TimReichhartcould anybody help me out I can send out emails ok on my mail server but I cant receive any emails04:58
mrhoden2009Two things: The reason I would do hardware is to speed things up. and Is it possible to set up the RAID config with some HDD's then copy the stuff from the original one that also has the OS on it04:59
ScottKTimReichhart: What mail server program are you using?04:59
TimReichhartim using dovecot/postfix04:59
ScottKTimReichhart: OK.  What does /var/log/mail.log tell you about delivery attemps?05:00
twbScottK: fakeraid will not be significantly faster than md raid.05:00
twbSorry, bad completion.05:00
TimReichhartwell see im using mysql also that is been setup for the mail server05:00
ScottKTimReichhart: Look in the logs.05:01
TimReichhartok05:01
TimReichhartlet me take a look here05:01
mrhoden2009Do I need to word that better or do you know what I'm talking about?05:03
twbmrhoden2009: I think I already answered your question: 14:01 *** TimReichhart JOIN05:04
twbGah.05:04
twbmrhoden2009: I think I already answered your question: 14:01 <twb> Regarding migration from a single-disk to a RAID system, the easiest way to go about this is to have a spare disk -- you set up the array, then copy the data across from the original disk.05:04
mrhoden2009Okay, thank you05:05
TimReichhartwhat are you talking about twb?05:06
ScottKTimReichhart: He just over copy/pasted.05:07
twbMy IRC client suppresses display of some messages, but they still exist in the buffer.  So I can inadvertently select them if the cursor is at their boundary.05:08
beornlakeanyone here happen to have experience with OpenVPN and/or setting up virtual network interfaces for a VPN server? I'd love to ask a few questions. :)05:09
lwizardlhey06:40
lwizardlI was wondering generally what does a traditional server (in a rack server case like 1U or 2U) cost to run in electricity ?06:41
T-KILLERHello there! I've just installed Ubuntu Server 9 and am looking to set it up for local and remote administration.  I want it to be a fully working web, mail and video server for a youtube type site using a CMS.  I have selected all the installed packages such as LAMP Java server, mail server, DNS server and so on but ommited the installation of virtual machine.  Just looking for general help...07:46
T-KILLERsetting up a control panel of some sort for remote administration and accessing ftp etc to install the cms once the web server is working to my liking...07:47
T-KILLERbut i really dont know where to start, I'm presented with te command line on the local server and don't really know where to go from there, a real newbie here!  Someone offer some guidelines and some directions what to do next ?07:48
infinityT-KILLER: You may find some things at https://help.ubuntu.com/9.04/serverguide/C/index.html helpful.07:50
T-KILLERthanks, ill go take a look now...07:50
T-KILLERi need to install ffmpeg to this server but i cant find any apt get type install procedures on the ffmpeg site, it there an easy way to fully install the entire ffmpeg package to Ubuntu Server 9 using the command line ?07:53
T-KILLERand reading a little bout ebox, would it be worth my while installing it on the server so i have a web gui to administrer the system ?07:55
T-KILLERor are there better alternatives ?07:55
jetoledoes anyone know if there is a copy of the 7.10/gutsy repo anywhere?08:11
jetoleT-KILLER: apt-get install ffmpeg08:13
jetoleyou can either use "apt-cache search" or "apt-file search" although you will have to install apt-file and do an apt-file update or you can take a look at packages.ubuntu.com08:14
jetoleT-KILLER: I don't know about ebox but I know a lot of people ask about webmin which has a habit to break systems since it's an ambigious management tool for many versions of the same program but the best way to maintain your software is _KNOW_ how to maintain your software08:16
jetoleweb based gui are there for people who don't want to bother learning how to properly manage a server / desktop08:16
jetolealbeit desktop users should not have to be as well informed but then again you are in the ubuntu-server room08:16
jetoleand yeah, running a server means knowing how to run a server essentially, I would not trust any general purpose all server management solution no matter what it's called unless it comes with and provides updates for all packages it manages i.e. a distro which includes the management software08:18
jetoleonly one I know of that is close to being complete is called windows server08:19
jetoleemphasis on close08:19
a|wenjetole: old-releases.ubuntu.com iirc08:22
jetolea|wen: thanks, will check in a minute, just doing some tweaks on tc / routing08:27
=== gaveen__ is now known as gaveen
Chipzzjetole: while I agree with your sentiment, there are ways around that08:32
Chipzzlike use a database to store configuration, ie ldap08:32
Chipzzftp daemons support ldap, there's an apache plugin to read your whole apache config from ldap, dhcpd supports ldap, ...08:33
Chipzzpostfix supports ldap08:35
DarKnesS_WolFhey fast question, any tools " other than FAI " to do auto / mass installation for ubuntu servers ?08:52
T-KILLERok, thanks for the advice09:00
XiXaQis there any reason why joomla isn't packaged for ubuntu?09:28
jetoleChipzz: I have no idea what I said that you responded to you agreed with my sentiment09:41
jetoleChipzz: I run postfix and dovecot both over ldap09:41
jetoleChipzz: with details stored in MySQL09:42
* jetole shrugs09:42
jetoleXiXaQ: yes. because no one has packaged it but you are more then welcome to09:43
XiXaQit is packaged?09:44
XiXaQhttp://developer.joomla.org/section-blog/17-developer-team-blog/86-joomla-debian-package.html09:44
jetolea|wen: I just changed the sources.list to use old.releases (after looking over the site first) and it worked like a charm, thanks09:46
jetolebtw, does anyone know how long and LTS release lasts for?09:46
a|wenyour hopefully temporary solution09:46
a|wenjetole: the server-part lasts 5 years09:47
XiXaQjetole, 3 years on the desktop and 5 years on the server.09:47
jetolea|wen: well when I have a chance to upgrade this machine I may but it is a firewall at a remote data center which means I won't be doing it remotely and will have to route around it when I do09:47
jetolea|wen: thanks, do you know how often the server parts are released?09:48
jetolehmmm, you know thats actually kinda depressing? the LTS have lower shelf life windows on updates09:48
a|wenjetole: it is released around every 2 years for what i know09:49
jetoleso 10.4 should be another one I guess09:49
a|wenit might ... not announced yet, so no guarantees09:49
jetolecool09:49
jetolewell I was able to install a package I needed on 7.10 just now so I am happy09:50
a|wenit can keep you going at least09:50
jetoleyou know, I have spent the last week reading over tc and lartc and traffic shapping and queing disciplines and I find it odd that I don't see an automated way to limit bandwidth per connection09:51
jetoleor per IP09:51
jetoleyou know, say no single IP in this network can go over this limit without specifying each IP09:52
a|wenthat might be right ... haven't played much with it09:53
jetolewell I am guessing I could go with a for loop in bash and set them all up09:53
a|wennormally my challenge have been supporting dynamic IP lists09:54
jetoleI am really killing time right now too, have a project that needs to be done this weekend but I am half way through a 4 hour copy that I have to wait on atm09:54
jetoledynamic IP on routing?09:54
a|wendynamically open/close IPs in the firewall09:55
jetolei.e. tc filters?09:55
jetoleoh09:55
jetolewell there are a few ways around that09:55
jetolethere is a nmap sniffer / iptables rule tool, trying to remember what it is called09:55
jetolealso inline snort09:55
jetoleNAC such as openfire with compatible smart switch is good09:56
a|weni got it working with 100% iptables09:56
jetoleour firm uses two hp procurve 2650 btw, I love those switches09:56
jetoleoh you mean with the recent module?09:57
a|wenyeah ... took some time finding that one though09:57
jetoleI used recent a couple years ago09:57
jetolehavn't had much of a use for it lately09:57
jetolepsad is a cool tool09:58
jetoleit's the anti-Nmap09:58
jetolewhich it also claims to be but it does work09:58
a|wenthere are so many tools in this area10:00
jetoleyeah10:00
jetoleI'm going for a smoke, bbiab10:00
BioGuyverHi10:16
BioGuyverTrying to get some clarification of a problem while installing Server 9.0410:16
GargoyleWassup?10:17
BioGuyverThis is my first time installing Server so I just went ahead and did a default install and everything worked fine10:17
BioGuyverI then went back and started the install process again to setup ths time on raided disks10:18
BioGuyverI have used software raid plenty of times before but never at install time10:18
BioGuyverI followed a couple of online guides but at the part where you create the raid disks in software it fails10:18
BioGuyverThe error on console 4 is mdcfg: mdadm: /dev/mdmd0 is not valid10:19
BioGuyverThat looks like a typo or error in the scripting to me?10:19
BioGuyverI would expect that to be /dev/md010:20
GargoyleShould just be /dev/md0?10:20
Gargoyle:)10:20
BioGuyverok well that is kinda out of my hands as it is done during the install10:20
BioGuyverso is there a proper way to log this as a bug then?10:20
BioGuyvernot sure how i move on from here10:20
GargoyleI'll have a quick check and see if the same happens here. Did you get any specific iso or just the standard one?10:21
BioGuyverI am using server 9.04 but I got the same error trying alt 9.04 as well both on amd6410:21
BioGuyverThanks Gargoyle10:21
GargoyleJust two disks with a mirror?10:22
BioGuyveryes a pair of 320 ide disks10:23
BioGuyverI created 2 partitions on each as I plan to raid / and Swap10:23
GargoyleJust downloading the ISO, hang around in here for a bit and I'll let you know how I get on.10:28
BioGuyverok thanks. I am afk a bit but will keep checking here10:28
BioGuyverThanks again10:28
Gargoylenp, been planning to have a poke around with 9.04 anyways! :D10:28
BioGuyverbtw just fyi I checked the hash on all the isos I have downloaded just to be sure10:28
GargoyleSeems OK so far. Only difference I can think of is that my VM is setup with virtual discs that showup as SCSI not IDE11:02
GargoyleBioGuyver: I followed this guide (https://help.ubuntu.com/community/Installation/SoftwareRAID) using the normal server CD11:06
BioGuyverthat is the exact guide i followed and my disks althou IDE show up constantly as scsi and as /dev/sda and /dev/sdb11:09
BioGuyverat point 9 of the configuring raid bit if I take a look over at console 4 I get the error there where there is a prob creating /dev/mdmd011:10
BioGuyverfor the record I just installed ubuntu desktop 9.04 and 8.10 on the box just clicking next next next and both installs are fine although they default to a single partition on the disks11:12
GargoyleIs that when you try to create the first raid partition?11:13
BioGuyverthe error on console 4 shows up as I create the first raid partition and I get the same error if I try and create a second too.11:14
BioGuyverThen back on the partioner page after using finish I still only have my 2 raw devices listed. I don't have an MD) or MD1 to set mount points on etc11:15
BioGuyvermd0 even11:15
LMJHi11:25
LMJGot to 2 ips on my server, how to tell him by default, use the IP eth0:0 not the one from eth0?11:25
GargoyleI think that is something to do with the metric11:27
TeLLuSLMJ: Routing or HideNAT maybe.. Why do it matter when they are on the same subnetwork..11:28
BarbarellaLMJ:lok for 70-persistent-net.rules11:29
BarbarellaLMJ:it is in /etc/udev/rules.d11:29
LMJone ip is the administration, would like to hide it instead of spread it on each emails ;)11:30
LMJgreat Barbarella, thanks11:30
LMJthanks Gargoyle & TeLLuS too11:30
BioGuyverGargoyle: Just started the install with 8.04 alternate and I get the same problem but with a different error message11:30
LMJBarbarella  : that's udev rules, sound more insteresting to play with metric or route, no ?11:31
GargoyleBioGuyver: Just recording you a vid incase your missing something from the instructions.11:31
BioGuyverthis time it tells me an array by that name is already running but no indication of what array it is refering to. This is at point 9 again11:31
BioGuyverthanks Gargoyle11:31
BarbarellaLMJ:you can tell which driver to load on which eth11:34
celephais_Hi, when i transfer files with scp using gigabit ethernet i get Corrupted MAC on input. If i use a different NIC 10/100 i get no error. I red that it can due to NIC buffer corruption. Is there a way to chack this?11:34
celephais_*check11:35
Gargoylecelephais_: Do you have CAT5e cable?11:35
LMJBarbarella : ha yes, I could use /etc/iftab too but this ip is a failover IP, it could be used on several server and I only have one ethernet card11:35
celephais_Gargoyle, let me check....11:35
celephais_Gargoyle, yes 5e11:36
BarbarellaLMJ:than you can use ifconfig for it, if it is a static ip11:39
LMJBarbarella : ifconfig eth0 ip.ip.. netmask etc.. ?11:39
Barbarellayes11:39
Barbarellaand route your default gateway11:40
GargoyleBioGuyver: Can you play quicktime .mov's?11:41
GargoyleBioGuyver: http://ga.rgoyle.com/irc/Ubuntu-9.04_Server_Install.mov11:45
BioGuyverGargoyle: Thanks, I am just gonna watch it now. I have put a couple of pictures of the screen I am getting here: http://www.miracles.co.uk/Temp11:47
BioGuyverGargoyle: watching your video and we are both the same right up until you choose automatic partition on the new disks. I did mine manually11:52
GargoyleBioGuyver: You could try automatic. Not sure if there is something extra it does - I just knew it was a quick way to crate a main partition + swap partition.11:53
BioGuyverGargoyle: then when you create the first raid device itremoves sda1 and sdb1 from your options for creating the second raid device but for me it still shows both pairs as it has failed to create any raid devices at this point11:53
BioGuyverGargoyle. Going to go and try that now :)11:53
BioGuyverGargoyle: Used the auto partition tool and still get 'mdadm: another array by this name is already running' :(11:58
GargoyleBioGuyver, Strange!11:58
BioGuyververy11:59
GargoyleBioGuyver: Have you tried completely removing the partitions from the disk with fdisk and then restarting the install ** OBVIOUSLY THIS WILL DELETE ALL THE DATA ON YOUR DISK **11:59
BioGuyverthat is the same error for both 8.04.2 and 9.0411:59
BioGuyveryes tried that while using the LIVECD12:00
BioGuyverwill try again now thou and then use the auto partition as per your video12:00
BioGuyverThanks for the help thou Gargoyle12:01
GargoyleNo probs12:01
incorrectI am thinking about using zimbra for my email system, are they any other alternatives?12:01
uvirtbotNew bug: #374427 in openssh (main) "doesn't accept multiple keys in id_rsa" [Undecided,New] https://launchpad.net/bugs/37442712:02
BioGuyverGargoyle: Used fdisk to delete the partion tables from the disks and it made no difference. At this point I think I will do a single disk install and convert to raid once the machine is up and running :(12:09
BioGuyverGargoyle: Thanks for all the help thou12:09
GargoyleBioGuyver: OK, Hope you get it sorted.12:09
BioGuyverGargoyle: yep I have no idea why it is failing on my system. I am gonna run up another hardware box during the week and try again just to find out if it is the hardware in this server12:10
uvirtbotNew bug: #297576 in samba (main) "cifs mounts become inaccessible when another user fails to mount cifs share" [Undecided,Invalid] https://launchpad.net/bugs/29757613:21
philsturgeoni've done it again... my mysql is locked out.in virtualmin it listed root as having 3 different permission entries. the permissions were the same but the hosts were different. one saying localhost, one saying server host name and one saying 127.0.0.1. i changed localhost to Any (%) and now i get there error DBI connect failed : Access denied for user 'root'@'localhost' (using password: YES)14:09
philsturgeoni have another mysql user with all privileges, could i perhaps change this back somehow?14:10
philsturgeonvia command linevia SSH14:10
Hecatephilsturgeon, did you run mysql_secure_installation? it should take care of all those users, etc.14:11
philsturgeoni do not know what that is14:11
Hecateman mysql_secure_installation14:11
philsturgeonok14:12
Hecatehowever i dont know, if it will work, if your mysqld is already fubar.14:12
philsturgeonwell it asks for a password then says access denied again14:13
philsturgeonas i said i have another user that can do anything to any db. can i simply edit a field in mysql or information_schema14:14
philsturgeonahh i can leave it blank and set a new one :)14:14
philsturgeonno joy. its blocked with the error http://pastie.org/47363814:17
Hecatehmmm. i have had a similar problem some time ago.14:18
Hecatethis might help: http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html14:18
HecateUPDATE mysql.user SET Host='localhost' WHERE User='root';14:23
philsturgeonwhoop, my plan worked. logged in via command line and ran update user set host = "localhost" where host = "";14:23
Hecatethat should help you.14:23
philsturgeonthank god for having that extra user with rights. last time this happened i rebuilt the server :$14:23
Hecatewell, i've just given you all you need to reset it.14:24
Hecatei've committed that "fatal mistake" before and was that >< close to purging mysql, but i figured it out, how to resolve it.14:25
=== asac_ is now known as asac
incorrectdamn it, jaunty ldap-auth-config doesn't generate working config15:49
ChipzzHecate: easiest solution is: cp /etc/mysql/debian.cnf ~/.my.cnf ; editor ~/.my.cnf15:49
Chipzz(as root)15:49
HecateChipzz, for doing what? resetting the authorized host/password of a suer?15:50
leOnhey .. any chance to get a xen kernel running on jaunty ?15:54
uvirtbotNew bug: #374501 in likewise-open5 (universe) "Likewise-open5 login gives error code 0x0000200c" [Undecided,New] https://launchpad.net/bugs/37450115:55
sorenleOn: dom0 or domU?16:01
leOndom016:07
leOnwell .. both actually16:07
leOni read somewhere that kvm was the official virtualization platform in ubuntu16:11
sorenleOn: -server works as a domU.16:12
sorenleOn: That's also true.16:12
leOnbut i was hoping to get it working with xen too16:12
leOnhmmm16:12
leOnok .. i use xen all the time, and this is my first serious ubuntu try out16:12
sorenYou can use the dom0 from Hardy.16:13
sorenand user the -server kernel as domU.16:13
leOnis there any nice gui tool to manage kvm platform in ubuntu?16:13
leOnthe problem is that for hardware support reasons i need a kernel >= 2.6.27 ..16:14
sorenleOn: As your dom0?16:16
leOnyep16:17
sorenvirt-manager is the preferred gui tool to manage kvm VM's.16:17
sorenI don't think we have a dom0 more recent than 2.6.24.16:17
leOni may be wrong .. but i'm not so convinced that kvm is a more serious virtualization platform than xen ... but that's only MHO16:18
leOneither way it's a shame that ubuntu doesn't provide dom0 kernels in recent versions16:19
slestakis libvirt and kvm usable for a production server?  I have been tinkering with vmware-server for a couple of weeks.  would rather stick with foss stack16:21
sorenslestak: They are, yes.16:21
slestaksoren: thx.16:23
leOnsoren: can i use the -generic kernel instead of the -server with the kvm solution ?16:24
sorenleOn: Yes.16:25
leOnguess i'll give kvm a try ...16:27
leOncan you pont me any ubuntu related docs for kvm ?16:28
sorenleOn: https://help.ubuntu.com/community/KVM16:35
leOnthanks16:41
leOnfor windows the only choice is full virtualization, right?16:42
sorenYes.16:43
NobleIs there any way to remove the ubuntu-desktop dependencies?16:45
celephaisHi, do you know any issues with module sky2 on hardy?16:45
NobleI installed ubuntu-desktop on my server, and now I want it gone ^^16:45
celephaisIt give me data corruption with scp16:45
leOncelephais: are you sure it's the NIC?16:54
celephaisusing the secondary NIC ( 10/100 ) no data corruption with scp16:54
celephaisthat is 3Com Corporation 3c905B 100BaseTX16:55
celephaisthe one that give data corruption is Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller16:55
leOnhave you tried with a different kernel version?16:56
celephaisnow i use 8.04 but some month ago i tried 8.10, same problem16:56
celephaisbetter to buy a different NIC?16:57
saylarhey guys. I'm stuck with my mail server setup and I could need some help. Right now I'm sending my mail through the local exim server which then uses my isp smarthost to send the mail. Furthermore I'm polling 4 different pop3 server with getmail and deliver the mails to the local imap server. all this is working well. what I wanna do now is, send and receive my mails through local ssh tunnels. any suggestions or hints are very welcome 17:58
uvirtbotNew bug: #374537 in munin (universe) "Munin-node have a empty /etc/munin/plugins folder" [Undecided,New] https://launchpad.net/bugs/37453718:00
FFForeverAnyone around?18:05
ivoksno18:05
FFForeverntpdate "fixes" my time =\18:06
FFForeveronly problem is it says my time is tmw...18:06
FFForeverchris@chr1831:~$ sudo ntpdate pool.ntp.org18:07
FFForever11 May 01:06:45 ntpdate[10827]: step time server 64.62.228.129 offset 54000.686280 sec18:07
ivoksis the time correct?18:07
ivoksis 01:06?18:07
FFForeverno lol18:07
ivoksis it...18:07
ivoksthen you have misconfigured system18:07
ivoksset to a wrong timezone18:08
FFForeverhow do i reconfigure it, i ran dpkg --reconfigure tzconfig, i set it to etc -> gmt -8 (california)18:08
ivokstzconfig18:08
FFForevertzconfig is outdated :P18:08
ivokstzselect :)18:08
ivokscheck /etc/timezone18:09
FFForeverivoks, =(18:10
ivokswhat's in /etc/timezone?18:10
FFForeverhow do i set this system wide?, TZ='America/Los_Angeles';18:10
FFForeverit just says i can put that in my .profile...18:10
ivokswhat's in /etc/timezone?18:11
FFForeverEtc/GMT-818:11
FFForeverchange it to America/Los_Angeles?18:11
ivoksyes18:11
ivoksbut i guess that's the same timezone18:11
FFForeverivoks, so i need to reboot after the change?, or can i do it without a reboot it is a server after all...18:12
FFForeverroot@chr1831:~# ntpdate pool.ntp.org18:12
FFForever11 May 01:11:58 ntpdate[10875]: adjust time server 64.62.228.129 offset -0.000370 sec18:12
FFForeverroot@chr1831:~# date18:12
FFForeverMon May 11 01:12:02 GMT-8 200918:12
ivoksdon't paste here18:13
FFForeversorry18:13
FFForeverit says its giving me the gmt -8...18:13
ivokshm, i don't know where ntpdate checks the timezone :/18:14
FFForevercan i disable ntp?18:15
ivoksyou should really use it18:15
ivokslet's fix the problem, not override it18:15
ivoksgive me a minute or two18:15
FFForeverok18:15
ivoksah...18:16
ivoks /etc/localtime18:16
ivokscp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime18:17
FFForeverok now?18:17
ivoksntpdate18:17
FFForeverthat fixed it :D18:17
FFForeverinstantly...18:18
ivoksi'd suggest runing ntp server, instead of ntpdate18:19
ivoksntpdate shifts time, if diff is > than 0.5 seconds18:20
ivoksthat could cause problems for some programs18:20
FFForeverkk18:20
ivoksntp server makes time slower or faster if there's a diff18:20
ivoksdovecot, for example, will die when time shifts18:21
FFForeverwhy do we count up in seconds from a date?18:21
FFForever(when using linux)18:21
ivokssince 1.1.1970.?18:21
FFForeverthat sounds about right :D18:22
FFForeveryeah18:22
ivoksthat's the begining of time for unix18:22
ivokshttp://en.wikipedia.org/wiki/Unix_time18:22
FFForeverbut why?18:22
gourgiwhy not :-P18:22
ivokshahaha18:22
ivokswhy is now 2009.?18:22
FFForeverlol18:22
ivoksread the link18:23
FFForeverand because... isn't storing a long string like that a waste of mem?18:23
ivoksit's an integer, not a string :)18:24
ivokssince it's a signed 32bit integer, having it 0 or 1234567890 takes the same amount of memory18:25
ivoksand as we as shifting to 64bit that amount will even get bigger :)18:25
ivokshttp://en.wikipedia.org/wiki/Year_2038_problem18:25
FFForeverivoks, my cpu is 64bit but i still use 32...18:27
Hecate64bits ftw ;)18:27
FFForevernot everything (damn flash...) works in 64bit...18:27
HecateFFForever, it does.18:27
ivoksflash works in 54bit18:28
ivoks64 even :D18:28
FFForeversince when... last time i tried flash it didn't work in 64bit..18:28
FFForeverthat was like 2 years ago though...18:28
ivoks2 years in posix time is... a lot18:28
Hecatehttp://labs.adobe.com/downloads/flashplayer10.html18:28
FFForeverXD18:28
FFForeveris ti as stable as 32bit?18:28
Hecateprobably the first time linux was favoured.18:29
Hecateit is.18:29
FFForeverperfect :D18:29
FFForeverill make the change next time i have to redo my system...18:29
* ivoks doesn't have 64bit cpu in laptop :/18:30
Hecatewant some pity?18:30
Hecate;)18:31
ivoks:)18:31
ivokstake care18:32
FFForeverhas anyone gotten suphp to work with ubuntu?18:34
FFForeverwhen i try it i get could not execute "/path/to/index.php"18:34
andolFFForever: I use suPHP on a couple of servers.18:39
FFForeverandol, could u help me get it working?18:40
andolFFForever: Well, if nothing else I should be able to give you a few pointers18:40
FFForeverany idea why i get the could not execute error?18:41
FFForevernothing happens in the error.log or suphp.log (says it changed the uid/guid) and access.log shows it was a 500 error18:41
andolFFForever: First of all you should make sure you configure /etc/suphp/suphp.conf the way you want it. The default is not neccesary what you might expect.18:41
andolFFForever: Have you looked in syslog?18:41
* Nafallo uses andol on a few servers18:42
FFForeverno, i got pissed and removed all suphp config lol18:42
FFForeverandol, i had to set the docroot to / or else it would error script not in doc root (even with the check set to false...)18:42
andolFFForever: Well, just did a simple tests myself. At least I got my error in /var/log/apache2/error.log18:43
FFForevernope =(18:43
FFForeveronly error i got was from restarting apache...18:43
andolFFForever: Well, feel free to give me a paste.ubuntu.com of your suphp.conf as well as a "ls -la" of the script directory18:44
* andol is running Ubuntu 8.04 on his servers by the way18:44
FFForeveri compiled myself, brb resetting up suphp gimmie 5mins :D18:44
FFForeveri am on 8.10 only ubuntu the vps provider offered18:44
FFForeverandol, http://vps.chr1831.com/ and lemme install pastebinit18:47
FFForeverandol, http://pastebin.com/f4a8d971b i know the permissions should not be enabled for group/world writeable but i need it for a few scripts :D18:48
FFForeverand i added this to my vhost http://pastebin.com/df81559018:49
andolFFForever: A "ls -la" of your DocRoot wouldn't hurt either.18:50
FFForeverandol, http://pastebin.com/d41ae3da318:50
FFForeverthe .htaccess is blank18:51
andolFFForever: Well, can't see any major errors upfront. Sure everything is installed/compiled correctly? php5-cgi installed?18:52
andolFFForever: Tried using the version from the repositoires?18:52
FFForeveryeah php5-cgi is installed18:52
FFForeverandol, the version is so outdated...18:52
FFForever0.6.218:52
andolFFForever: Anything you need in newer versions?18:52
FFForeverandol, no but the i already tried 0.6.2 :D18:53
FFForeverandol, anyways this is the only real error in the error log =\, File does not exist: /home/chris/public_html/favicon.ico18:53
andolThat error shouldn't matter18:53
andolHave you tried keeping it none-world-writable, just for debuging (no matter what the conf says)18:54
FFForeverandol, yeah =\18:54
leOnhmm.. trying out kvm. there's something wrong with the keyboard mapping18:55
FFForeverandol, http://pastebin.ca/141842418:55
FFForeverthats from the suphp.conf...18:55
FFForeveri mean suphp.log18:55
jussi01hi all - anyone know how to fix this?18:56
jussi01Your account has expired; please contact your system administrator18:56
jussi01chfn: PAM authentication failed18:56
jussi01adduser: `/usr/bin/chfn phon' returned error code 1. Exiting.18:56
FFForeverandol, can i see what you added to your vhost?18:56
jussi01that was after an adduser18:57
leOnFFForever: did you enable chroot in suphp.conf ?18:57
FFForeverleOn, no18:57
FFForeverits commented out18:57
FFForeverleOn, http://pastebin.com/f4a8d971b should be my suphp.conf18:57
* andol wishes the channel wouldn't scroll when he is trying to copy and paste :-)18:58
andolFFForever: You don't have any other PHP directives in your apache conf? Have you tried simply moving the .htaccess away?18:58
leOnman .. are you sure you want all those allow_file_* and allow_directory_* writable = true?18:59
FFForeverandol, i have tried =\, and there is no other php directives... i disabled php518:59
FFForeverleOn, yeah :D19:00
leOnwhat version of suphp are you using ?19:00
andolFFForever: This is the suphp-conf I add to apache, by modes-enabled/suphp.conf http://paste.ubuntu.com/168940/19:00
andolFFForever: Perhaps a stupid question, but since you've done this yourself, I'm sure you'r loading the module as well?19:00
FFForeverandol, yeah look @ vps.chr1831.com it says suphp  0.7.1 :D19:01
FFForeverit surely has to mean its loaded right no?19:01
andolshould meen that yes19:01
andolFFForever: Nothing fishy about your index.php then? Have you tried something really simple like a script only doing an echo statement or so?19:01
FFForeverive spent exactly 1 week on this...19:02
FFForeverandol, LOL!!!, its just using the .php extension and the only thing in that in BLAH!!! - this is a test19:02
FFForeverno wait i am wrong.. i changed it to phpinfo();19:02
andolFFForever: How about if you just give us a pastebin of your index.php, just for the sake of it?19:03
leOnFFForever: what should be the docroot?19:03
FFForeverleOn, i have it set to / since ${HOME}/public_html/ does not work for me...19:04
FFForeverand one moment ill pastebin it19:04
FFForeverandol, leOn, index.php http://pastebin.com/f5afa204c19:04
leOnthat file is in a users public_html folder already ?19:05
FFForeverleOn, nothing i made it manually19:05
FFForeverand i already deleted .htaccess19:06
leOnwhat does exactly happen when you try to access it?19:06
andolFFForever: Sure you don't have any userdir settings confusing apache, how about using a folder not named public_html?19:06
FFForeverandol, i am sure thats not the problem, i already moved it to /home/chris/blah once :D19:07
FFForeveralso i get the same error when using ~chris at the end of the url19:07
andolFFForever: Another option, instead of putting docroot to /, how about just "commenting it out" using a ;19:08
FFForeverandol, one moment19:08
FFForeverandol, same thing =\19:08
andolFFForever: Wait, now I think I have it :)19:09
FFForeverwhat?19:09
andolreplace x-httpd-php="php:/usr/bin/php5" with application/x-httpd-php=php:/usr/bin/php-cgi19:10
FFForevernope19:10
FFForeverwon't change anything... =(19:10
andolFFForever: /usr/bin/php is the CLI version, while php-cgi is the cgi version19:10
FFForeversince php5 is a symlink for php5-cgi19:10
andolOhh, bummer19:10
FFForeveri don't have the cli version19:10
FFForeverive had it set to php5-cgi, php5, php, php-cgi lol19:11
leOnsorry but i didn't "hear" the problem from start .. what is exactly the problem?19:11
FFForever...19:11
FFForeverandol, changing it to php5-cgi works :D19:11
FFForever...19:11
FFForever...19:11
FFForeveri guess after installing the php5 module for apache it fixed something =\19:12
FFForeverand disabling it19:12
andolFFForever: Another stupid question :) You've been restarting apache between changes, right?19:13
FFForeverandol, ofc :D19:13
FFForeverwoot my week long problem has been fixed :D19:13
andolWell, glad it worked out, for whatever reason it did :)19:14
billybigrigger_good day all19:14
FFForeveri am an idiot....19:14
FFForeverroot@chr1831:/etc/apache2# ls /usr/bin | grep php19:14
FFForeverphp-cgi19:14
FFForeverphp5-cgi19:14
FFForeverwhoops sorry didn't mean to paste that in this room....19:14
billybigrigger_im new to raid, and have 2 identical seagate 500gb 7200.11 sata disks, and i want to run them in raid, they are both ext4, what is my best option for raid? and should i do software? or configure raid through my asus bios?19:14
leOnbillybigrigger_: you want to mirror the disks or concatenate them ?19:15
billybigrigger_probably mirror19:15
leOni.e. .. use the 2 disks to have 500gb and in the case on fails you don't loose the data19:16
billybigrigger_as then if one goes down i can rma the drive or buy a new one as they're $70 and still have my data right?19:16
billybigrigger_ya mirror19:16
FFForeverhow can i add a user quota of 500mb?19:16
leOnor use the 2 disks and concatenate them in 1TB logical drive and risk loosing everything in case of them dies ..?19:16
FFForeverleOn, raid is not a backup solution :D19:16
FFForeverif someone hacks ur server and deletes the files ur screwed...19:17
billybigrigger_leOn::: no, i don't need 1TB, i'd rather have 500gb mirrored19:17
leOnbillybigrigger_: you want raid1 then19:17
billybigrigger_k19:17
billybigrigger_leOn::: and hardware raid though my bios is the best option correct?19:17
FFForeverleOn, do u know how i can give a user a quota?, for /home/username19:17
leOnFFForever: i never said that raid was a backup solution19:17
leOnbillybigrigger_: my personal opinion would be software raid19:18
FFForeverleOn, just making sure :D, i know someone who ran a pretty big website using raid as a backup...19:18
leOnhw raid only really matters for raid519:18
billybigrigger_and raid5 is?19:18
leOnraid5 will make you more space available than raid1 and still get data integrity in the case of a disk failure19:19
leOnbut mininum of disks for raid5 is 3 disks19:19
billybigrigger_raid 5 is striping no?19:20
leOnand you loose 1/3 of disk capacity19:20
leOnraid0 is stripping19:20
leOnthe thing about hw raid is that if your controler dies, you need to get another similar controler19:21
billybigrigger_ahh19:22
leOnand it doesn't really pay off unless it's for raid5, in terms of performance19:22
billybigrigger_onboard controller = no good19:22
billybigrigger_ok, so i setup raid in the ubuntu install?19:22
leOni would say yes19:22
billybigrigger_or after ubuntu's installed? i've never really paid attention so im new to this19:22
leOnFFForever: mount the /home filesystem with the usrquota option19:23
leOnand enforce disk quotas19:23
FFForeverleOn, /home is part of /, its a vps19:23
billybigrigger_next question, filesystems, am i going to gain/lose performance by going with a certain fs for raid? ie will my two ext4 disks perform better than using reiser or ext3? or does raid configuration have no effect on performace?19:23
leOnFFForever: that kinda sucks then19:24
leOn=)19:24
leOnbillybigrigger_: i would advise you ext3 or xfs19:25
billybigrigger_not ext4?19:25
billybigrigger_is that becuase of the early ext4 problems?19:25
billybigrigger_with data loss and such?19:25
billybigrigger_or do ext4 and raid not play nice or why?19:25
leOnand i would advise you also to read some benchmarks comparisons and think what type of files and folder arrangement you're going to have on that fs19:26
billybigrigger_i have a mix19:26
FFForeverapt-clean just cleared my system of 500mb... =\19:26
billybigrigger_i have small mp3's, to my large HD camera videos19:26
leOnbig files vs small files, etc19:26
leOnimho ext4 is still a baby19:26
leOni wouldn't use it for anything important19:27
billybigrigger_but having raid1 will have a copy of my files if the ext4 fs gets corrupted? or does it corrupt both since its a mirror?19:27
Nafallobillybigrigger_: both19:27
billybigrigger_thought so19:28
Nafallobillybigrigger_: you confuse disks with file systems I think19:28
Nafallobillybigrigger_: two disks, one file system19:28
billybigrigger_hehe no i dont19:28
billybigrigger_both disks have to run the same fs no?19:28
billybigrigger_or can i have 2 disks with ext3 and ext4 on each disk?19:28
Nafallono. both disks are seen as ONE disk.19:28
billybigrigger_im just new to raid, i know the difference between a disk and a fs :P19:28
Nafalloon top of that ONE disk you put ONE file system19:28
billybigrigger_k19:29
leOnraid means that you build a logical drive19:29
leOnand it's in that drive (like it was a new disk) that you're going to make the fs19:29
billybigrigger_ahh19:29
leOnso the system actually only sees 1 harddrive19:29
Nafallosee. you were confused about disks and file systems ;-)19:29
leOnwhich is logical and is composed by the two physical drives19:29
billybigrigger_no, confused how raid worked :P19:30
Nafallowell. that's not really relevant.19:30
Nafallowhat's relevant is that you will have ONE file system :-D19:30
billybigrigger_yeah, i thought raid would still see 2 disks, both with the same fs, and both disk 2 would be a copy of disk 1, i didnt realise raid created 1 disk out of both disks19:31
billybigrigger_k19:31
billybigrigger_off to reinstall i guess then19:32
billybigrigger_any tips? :P19:32
billybigrigger_raid 1 with ext3 should suit my needs then?19:32
leOni would say it's the safe bet19:32
billybigrigger_roger19:33
billybigrigger_thanks a bunch, ill let ya know how it went19:33
billybigrigger_also19:35
billybigrigger_what dir can i backup to my /home for my apt packages? like i've already downloaded them once, can i copy them to home and back after the reinstall and then just sudo apt-get update && sudo apt-get upgrade and it just updates without downloading?19:36
billybigrigger_or is that looking to get some broken packages?19:36
uvirtbotNew bug: #374567 in tomcat6 (main) "tomcat6 with spring throws org/springframework/core/NestedExceptionUtils" [Undecided,New] https://launchpad.net/bugs/37456719:41
wizardslovaki need help of someone to guide me true installing and configuring email server19:57
incorrectwhat websvn tool do people like?20:00
=== PhotoJim is now known as PhotoJim_
leOnvirt-manager is calling kvm with -k en-us20:44
leOnhow can i change that?20:44
uvirtbotNew bug: #374589 in samba (main) "samba server fails to start on boot time when laptop is not connected to any network." [Undecided,New] https://launchpad.net/bugs/37458920:51
leOnok .. i managed to change the -k parameter .. but deadkeys don't work21:00
leOnany ideas?21:00
FFForeveris there any useless packages i can remove?21:03
FFForeverto slim down ubuntu-server21:03
andolFFForever: Generally useless, probably not, but perhapse useless for you. If nothing else you can always do a "dpkg --list" and see if you find something you know you won't need.21:18
andolFFForever: On the other hand, not sure how much you'd actually gain.21:19
FFForeveri have a 6gb vps..., ubuntu takes about 1gb =\21:20
Noah0504Can anyone help me force the www in my domain name?21:22
andolFFForever: You could probobly save a couple of hundred MBs by keeping your apt-cache empty21:22
FFForeverhow do i do that?21:22
FFForeveri don't use apt-cache search....21:23
andolFFForever: apt-cache search will work anyway. I'm talking about the saved deb-files apt likes to keep around21:23
FFForeverohhh i already cleaned them...21:23
andolFFForever: Should some setting somewhere allowing you to tell apt how much of those to keep around. Otherwise apt-get clean is the easiest way.21:24
FFForeveri clean it after all installs :D21:24
=== edsoncanto is now known as edson
andolFFForever: How about you install some kind of virtuell ubuntu server, running from your desktop computer or so. Then you can try removing packages and picking it apart until it breaks :)21:26
FFForeverlol :)21:26
=== edson is now known as edsoncanto
=== edsoncanto is now known as edson
=== edson is now known as edsoncanto
=== ecanto is now known as edson
=== edson is now known as ecanto
quizmehow do i install a ppa file ?22:03
andolquizme: Adding a ppa file? Downloading a specific .deb from a ppa or adding a ppa as a repository?22:09
quizmeandol i figured it out.  basically, i didn't need to do anything with the ppa.  I was just confused by the website.  i just needed to add a repository source then do apt-get update then apt-get install keepassx.22:57
quizmei still don't know what a ppa is22:57
ajmitcha PPA is a repository22:59
ajmitchspecifically one that's available on launchpad where everyone can upload source packages to their personal archive & they get built22:59
andolquizme: Well, glad it worked out anyway :) If you want to read more about PPAs, feel free to take a look at https://help.launchpad.net/Packaging/PPA23:02
quizmeandol is launchpad a famous company or something?23:07
andolquizme: Heard about Canonical? :)23:17
quizmeandol: no23:18
andolquizme: Well, it might just be a good company to be at least somewhat familiar with if you run Ubuntu...23:20
andolhttp://en.wikipedia.org/wiki/Canonical_Ltd.23:20
=== hggdh_ is now known as hggdh
quizmeandol: very interesting.  i just read about him23:30
quizmemark shuttleworth23:31
quizmewow cool23:44
quizmei think ubuntu will win23:44
quizme$30M/yr23:48
wizardslovak30mil a year for what?23:56

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