/srv/irclogs.ubuntu.com/2009/02/14/#ubuntu-server.txt

erichammondIf a DNS name in sources.list resolves to a round robin IP list, and one of those IP addresses does not respond, would apt-get try a different IP address?00:07
LHChello01:22
ScottKerichammond: No.  DNS doesn't work that way.  Round robin is for load sharing, not failover.01:25
LHChey01:25
LHCim just wondering from one dedicated server, how many individual sites can be run of it. like a webhost01:26
rdw200169LHC, many, using virtual servers01:27
LHCoh what software does that01:28
rdw200169LHC, well, the ubuntu community prefers apache webserver01:28
LHCim interested in using a dedi i have as a webhost for a few sites01:28
LHCits an ubuntu server :D01:28
rdw200169LHC, well, it's easy to install a working webserver, just use the command: tasksel01:28
rdw200169LHC, it's the option "LAMP Server"01:29
rdw200169LHC, and that will install the appropriate packages01:29
LHCI have a counter strike server on it, would it delete any of its feiles? haha please no01:29
LHCfiles*01:29
rdw200169LHC, it shouldn't01:30
LHCcool01:30
rdw200169LHC, they are completely separate apps01:30
rdw200169LHC, you can run all kinds of stuff on a single server if you want01:30
LHCwhere will it install to? I mean the directory for puttin the index.html web stuff01:30
rdw200169LHC, for example, one server can be a: mail server, web server, ftp server, etc...01:30
rdw200169LHC, well, aside from the apache binaries and configuration files, it sets the webroot as /var/www01:30
rdw200169LHC, but that can be changed if you want it to be01:31
LHCrdw200169, I had it for amonth, i bought it for a buddy and I to practise, so we used it as a gaming server, I still havent got the full idea what I can do with it haha01:31
LHCthanks alot rdw200169 ill try it now01:31
rdw200169LHC, well, you should research setting up an apache webserver, there's a lot out there on the internet about it01:31
LHCso I can use it as a mail server? and have my own email from it? like lhc@mysite.com01:31
rdw200169LHC, and there's more to it than i could ever explain here; rest assured that apache is the industry standard01:32
LHCyeah Im just looking what I can do atm with it hehe Ill definitley look it up01:32
rdw200169LHC, yes, you may also want to research what you can do w/DNS...01:32
LHCok, i guess I have to get a domain name xD01:32
rdw200169LHC, for example, if you received a static IP from your dedicated webserver, having your own domain is as simple as setting up the IP on godaddy.com's DNS server01:32
rdw200169LHC, you don01:33
rdw200169LHC, you don't have to run your own DNS server, just let godaddy do it for you; much easier and more reliable01:33
LHCyeah It is static thanksfully01:33
LHCok :D01:33
rdw200169LHC, same thing w/running a mail server, i find it is much easier just to use google apps w/a domain name from godaddy01:33
rdw200169LHC, b/c google provided "Gmail" for your own domain01:33
rdw200169LHC, *provides01:34
LHCso itll show up as rdw200169@whatever.com, but will use the gmail service?01:34
rdw200169LHC, yes, it all has to do w/DNS records; for example, my domain is has it's mail server records pointed to what google suggested, so my mail gets routed to them01:35
LHCthats fantastic!!01:35
LHCim really impressed xD01:35
rdw200169LHC, yeah, it works really well too, and they still provide imap/pop3 access01:35
LHChttp://www.google.com/apps/01:35
rdw200169LHC, so you can have user@LHC.com routed through google01:35
LHCcause I love gmail01:36
rdw200169LHC, it01:36
LHCdo I click business it mangaer01:36
rdw200169LHC, it's the same exact thing; it just *looks* like it's on your domain... allows you to have the power of gmail with the professionalism of a good domain name01:36
LHCrdw200169, thank fuck for you xD I really wanted to know stuff like this, really helpful!01:37
LHCplus I think people who have person@gmail.com on their site just looks bad01:37
rdw200169LHC, yeah, just set up 'business' they have a 'free' version type thing that everyone uses01:37
LHChaha, how come google is great for this stuff01:38
LHC50$ a year for a webserver not bad xD01:38
rdw200169LHC, who knows... i like it.  i won't buy a dedicated server so i run one out of my home.  consequentially, it's on the same desktop i'm using to talk to you right now on01:39
LHCthe web server?01:39
rdw200169LHC, yeah, greamin.com01:39
LHChehe01:39
LHCwhats your connection like?01:39
LHCim reading your guide atm :D01:40
rdw200169garbage, there's some old equipment where i live so i have to reset the connections every few hours to keep the caches (somewhere) from getting stale01:40
LHCits relevant to me cause I have an old pc01:40
LHCone problem on the server guide01:41
rdw200169i still haven't figured out what is causing it, i think it's our old WRT54G, but that's doubtful.  then again, it can't be the cable modem, i tested that01:41
rdw200169LHC, there are lots of them ;)01:41
LHCthe pic of the open case is massive, takes ages to load. you want me to resize it?01:41
rdw200169LHC, my internet is slow :(  time warner only allows a small upload < 512 kbps01:42
LHC2 secs I forgot I dont have hardly any software on this pc haha01:42
LHCwow same upload here buddy01:42
rdw200169LHC, i should go through and resize the pictures smaller, i'm pretty lazy01:42
LHCill do i for you01:42
LHCit01:42
LHCsince you helped me with that gmail suggestion hehe01:42
rdw200169LHC, nah, that's ok ;)  i know *how* to do it, i just haven't01:42
LHCi have to reinstall my programs bahhh01:44
erichammondScottK: Thanks for the response. I understand that round robin failover would have to be implemented at the application level.01:44
erichammondScottK: I understand that some browsers might do this and was hoping that apt-get might, too.01:44
ScottKYou can't really do this without ignoring TTL in DNS records and that's not a great idea overall.01:45
LHCrdw200169, since i cant open firefox and research stuff cause im installing something. Any other interesting things01:51
LHCi got really excited at that gmail thing for some reason xD01:51
LHCoh ill set up lamp01:51
rdw200169LHC, what do you want to know?  i've done lots of interesting things with servers01:56
LHCanything, maybe basic things like virtual servers?01:58
LHCis that wmware?01:58
LHCcause I have a server with unlimited transfer and I dont use it as much as I should01:58
LHClack of knowledge haha01:58
erichammondScottK: Not sure how TTL applies.  If the client asks for all IP addresses for a given name and then tries them one by one, seems like it should work.01:59
rdw200169i'm talking about apache virtual servers; apache can, all by itself, provide services for a multitude of domain naims02:00
ScottKThat's not how round robin generally works.02:00
rdw200169*names02:00
ScottKGenerally you ask for a DNS name and it hands you an IP.02:00
erichammondScottK: "dig +short us.archive.ubuntu.com" returns (91.189.88.46, 91.189.88.40, 91.189.88.45, 91.189.88.31)02:00
LHCso if I designed alot of sites for local businesses I can run it off them one dedi and charge them little for hosting?02:00
ScottKYes, it doesn't usually return all of them.  It gives you one.  If it gives you all of them it's not round robin.02:01
ScottKSo once you get the answer, your resolver should cache that for the TTL.02:01
maxbDoesn't it give you all of them in a round-robined order?02:01
maxbAnd then if your resolver / API is naive, you just use the first02:01
LHCwow rdw200169 i installed tasksel02:03
LHChas alot of options hehe02:03
ScottKIf it's giving you all of them that's not really round robin as I understand it.02:03
LHCI think ill leave it for the mean time until I learn more02:03
erichammondSo I guess I'll repeat my original question: Does anybody know (for sure) if apt-get will or will not try multiple IP addresses for a DNS name if one of them fails?02:07
LHCi ll give you feedback to show we are listening, sorry I dont hav a clue xD02:08
erichammondI'm working with some folks who are creating an Ubuntu mirror inside Amazon EC2 and I'd like to make sure that we have failover.02:08
LHCI remember I seeded ubuntu up to a ratio of 30 or so02:09
erichammondTheir current proposal for sources.list is to list the same source with each of the host names: mirror-roundrobin, mirror1, mirror2, mirror302:09
erichammond"mirror-roundrobin" gets the load balancing, but if the random IP fails, it would get sources from one of the remaining explicitly listed hosts.02:10
LHCamm someone should really help you right now cause your doing good mirroring ubuntu02:11
ScottKerichammond: That would probably work.02:12
LHCbrb02:17
dinsdale07how can I temporarily open ports with iptables? I tried on the commandline sudo iptables -I INPUT -p tcp --dport 6984 -j accept02:21
dinsdale07but it doesn't show up in iptables -L02:21
LHCrdw200169,02:30
jmarsdendinsdale07: ACCEPT needs to be UPPER CASE in your rule: sudo iptables -I INPUT -p tcp --dport 6984 -j ACCEPT02:36
dinsdale07jmarsden, thank you I found out. I think it's also not possible just from the commandline since my last iptables comment is DROP ALL. It seems to override all unless I put it in a file and load it.02:37
jmarsdenYou just need to insert the new rule ahead of that one.02:37
jmarsdenIt has nothing to do with being in a file or not :)02:38
dinsdale07jmarsden, I don't understand well. How can I specify where in the list my rule will appear? As I said iptables -L didn't even show my rule.02:46
dinsdale07I for sure must give a line number or so.02:47
jmarsdenYou can specify a rule number in the insert command02:47
jmarsdensudo iptables -I INPUT 63 -p tcp --dport 6984 -j ACCEPT02:47
jmarsdenwhere 63 is the line number02:47
jmarsdenRead the man page for iptables more carefully :)02:47
dinsdale07ah - that makes sense now. And yes you are right - I will.02:48
LHCis it unix time yet?02:48
dinsdale07I'm just stranded on the road in a hotel after a snow storm and I just wanted to get my torrent working :-)02:48
dinsdale07Best time and place to study man pages actually.02:48
LHChaha02:48
jmarsdendinsdale07: You carry a *server* around on the road and into a hotel???  This is #ubuntu-server02:49
dinsdale07I know - I'm abusing my webserver with rtorrent, that's why I have to do all cmd style.02:51
LHCwtf, im banned from #apache and I never went there before02:54
ScottKvorian: Soundtracker failed again on hppa due to deps not being built, but it has a retry button now so you can retry it again when you think it'll work.02:54
vorianScottK: great! thanks for the heads up02:55
LHCcan someone help me with a little problem02:56
LHCi have a dedi that my mate and I share, im wondering how to check if there is apache installed, how do I check this02:57
Nat_RHLHC: whereis apache203:03
LHCapache2:03:05
LHCsays that03:05
ScottKwhich apache203:05
Nat_RHapache2 not installed...03:06
LHCty03:06
Nat_RHwhich version of ubunut?03:06
ScottKHow about which apache03:06
ScottKWe didn't support apache 1 for a very long time.03:06
LHCI wanted to find out if he had apache installed, he doesnt03:06
LHChe has an htdocs folder that allows me to put files there that can be accessed03:07
Nat_RHMaybe using another server...lighttpd, nginx?03:09
jmarsdenLHC: Maybe the output from sudo netstat -ntlp | grep :80   # will tell you what is listening on port 80...03:10
LHC3109/httpd03:12
LHCthat is the output03:12
LHCIm just wondering can I install apache without causing any problems03:12
jmarsdenNot without making it run on a different port, that's for sure.03:13
jmarsdenThere is already a web server (program named httpd) running and bound to port 80.03:13
LHCshould I delete that or is it perfectly fine03:14
jmarsdenIt seems to be working, so I'd say it is fine... don't delete it unless you know what it is and that your buddy does not want it :)03:14
jmarsdenIf you have libwww-perl installed, try  HEAD http://myserver  and see what the output says, especially the Server: line03:15
LHCServer: Apache/2.2.1103:16
jmarsdenHmmm, then that is what is already installed, in some fashion.03:16
LHCthats strange I thought eariler it said it wasnt03:16
jmarsdenMaybe your buddy installed it from source not from the Ubuntu package?03:16
jmarsdenSounds like it is time for the two of you to communicate? :)03:17
LHClol yeah03:18
LHCI think ill just leave it for the mean time03:18
LHCI wanted to know how to use it like a webhost. lots of domains - one server03:18
LHCvirtualize?03:18
jmarsdenYes, I think that's wise.  If you want to poke around you could try locate httpd.conf03:18
jmarsdenIt's trivial, just lost of <VirtualHost> entries in your config file.03:19
jmarsdenVirtual hosts in the web serving sense, not in the more general "virtual machine" or "virtual server" sense.03:19
LHCahh :D03:20
LHCcause I wanted to use multiple domains from this one dedi03:20
LHCthats good03:20
jmarsdenYes, it's been easy to do that for well over a decade using Apache :)03:20
LHClol03:21
LHCim new to this03:21
LHCi found the lamp folder03:21
LHCis there any command I can use to search for that file03:22
jmarsdenOh ugh, your friend used some strange "LAMP" tarball maybe, instead of the Ubuntu packages?03:22
jmarsdenYes, the command is locate03:22
jmarsdenlocate httpd.conf03:22
LHCcheers03:23
jmarsdenNo problem.03:23
LHCworked like a charm :D03:24
LHCi like using linux but im slowy learning03:24
jmarsdenIt takes a while.  I started in late 1992... so I have a few years head-start :)03:25
LHCwow lol03:25
LHCdo new commands get added all the time?03:25
jmarsdenWell, yes, but all the important ones have been there for a while now :)  In 1992 the "distro" fit onto two 720kbyte floppy disks!03:27
LHChaha03:27
LHChow much has it changed xD03:27
jmarsdenwell, it has got a lot more graphical, and multimedia, and works with more (and faster) hardware... but the basics of a Unix shell to manage a server have not really changed that much.03:28
jmarsdenNor have the Emacs editing commands... fortunately for my fingers :)03:29
LHChehe03:29
LHCdoes anyone run window servers?03:29
jmarsdenSure, lots of people do.  But not many will admit that here on #ubuntu-server :)03:30
LHChaha03:31
LHCI think all the big bandwidth guys use freebsd?03:32
steelcityjimcan anyone help with a samba drive share set up03:33
steelcityjimcan see the share on windows network but won't allow me to move files to it03:34
steelcityjimI think its a password permission issue03:34
steelcityjimI have the desktop gui installed03:34
LHCjmarsden, should this Options FollowSymLinks be on?03:35
jmarsdenif you want the web server to follow them, yes.  Otherwise, no, for slightly improved security.03:36
jmarsdensteelcityjim: pastebin your samba config file somewhere for me?03:36
LHCkk :D03:38
LHCjust remove it?03:39
jmarsdenLHC: if you do nto need it, maybe commetn out that line in the file, or you could just delete the line.03:39
LHCkk thanks03:39
steelcityjimjmarsden not sure how to do that03:40
LHCbtw I found that httpd-vhosts.conf file03:40
LHCI see what you mean03:40
LHCsteelcityjim, haha I see your pastebin thing 01010103:41
jmarsdensteelcityjim: Visit http://pastebin.ubuntu.com and paste the contents of your /etc/sa,ba/smb.conf file there, then hit the go button and tell me what the URL of the resulting pastebin page is.03:41
LHCone thing jmarsden03:41
LHChttp://pastebin.com/d261154e403:41
LHCso thats two websites?03:42
jmarsdenLHC: yes.  The DocumentRoot lines are a bit odd, but yes.03:42
steelcityjimhow do I find that file guys?03:42
LHCIll change them to my root which is /home/htdocs03:43
LHCso /home/htdocs/firstsite  + /home/htdocs/2ndsite03:43
LHCthat would be two sites?03:43
jmarsdenLHC: Sure, that could work.03:43
LHCcool03:43
LHCthen I point the domain name to that directory?03:44
jmarsdenYou make the DocumentRoot for that VirtualHost be that directory.03:44
jmarsdenIf you end up doing a couple of hundred sites, you'll want to automate all of this... I think ebox will do it for you03:45
LHCyeah, btw what happens if I dont make a virtualhost but try to do the same thing? will it break03:45
LHCil google ebox03:45
jmarsden!ebox03:45
ubottuebox is a web-based GUI interface for administering a server. It is designed to work with Ubuntu/Debian style configuration management. See https://help.ubuntu.com/community/eBox03:45
LHClooks good03:46
LHCbtw if someone got the server password, are I doomed03:46
jmarsdenWithout any virtualhost entries in your httpd.conf (and the files it includes) you just have one web site.03:46
jmarsdenThe server password as in the root account password?03:46
jmarsdenProbably, unless you trust that person a lot :)03:46
jmarsden(Well, to be specific... *you* are not doomed, but your server might be!)03:47
LHChaha03:47
LHCI guess all the popular sites passwords are 100 characters long03:47
steelcityjimjmarsden  ok i think i pasted what you need pastebin 11791303:48
LHCI can imagine loggin onto youtube and being redirected to a trojan site xD03:48
steelcityjimis that what you need jmarsden?03:49
jmarsdenYes.  So... which share has the issue?  public?03:49
steelcityjimyes03:50
steelcityjimthis is my first config03:50
steelcityjimso I probably screwed something up03:50
jmarsdenAnd the symptom is that windows client machines can see the share just fine, and read files there, but not write files there... what are the (Linux) permissions on your /home/jim/Public/ directory ?03:52
steelcityjimwell i don't know about read since I don't have any file in it yet03:52
steelcityjimbut I cant write for sure03:52
infomomohey guys03:52
jmarsdenOK.  Do       ls -ld /home/jim/Public/      # and tell me what it says03:52
infomomoubutnu server here, and i would like to swicth the repositories to my country's specific03:53
infomomoit's possible ?03:53
steelcityjimwhere do I do that?03:53
jmarsdeninfomomo: edit /etc/apt/sources.list03:53
steelcityjimin the browser?03:53
jmarsdensteelcityjim: At a shell command prompt... this is a server, right?03:53
steelcityjimim in the desktop gui03:53
infomomojmardsen: i must edit  by hand03:54
infomomo?03:54
infomomoi am in canada you see03:54
steelcityjimno desktop trying to convert to server03:54
infomomousually iweb's or sherbrooker are the fastest ones03:54
jmarsdeninfomomo: I don't know of an automated tool for that... I would edit it by hand., but then I am used to editing files :)03:54
infomomome too :D but it seems like ubuntu desktop has the tool to choose the fastest server03:54
infomomowhy wouldnt it be available for server03:55
jmarsdenBecause it is GUI-based and server does not come with a GUI?03:55
infomomomaybe :D03:55
LHCbtw jmarsden sorry to interupt, after I set those. How do I access the second one?03:56
jmarsdenSo you *could* install ubuntu-desktop on the server and then use that tool... but it seems easier to just edit the file :)03:56
infomomoright03:56
jmarsdenLHC: http://www.seconddomain.com03:56
infomomoi dont need a desktop on the server03:56
LHCI donthave any domains for it yet03:56
LHCits just using the server ip03:56
steelcityjimI could not get the desktop to work from the server03:56
steelcityjimso installed the desktop03:56
jmarsdenLHC: Then you can't access it.  Apache virtual hosting depends on domain names.  Well, you could test by setting up your own DNS server for the fake domaons if you want to.03:57
jmarsdensteelcityjim: So you are in #ubuntu-server asking for support for a ubuntu desktop machine... this is not really a good idea...03:58
steelcityjimdoh03:58
jmarsdensteelcityjim: Anyway, what does ls -l /home/jim/Public/ say ?03:58
LHCoh03:58
steelcityjimwhere do i put that in?03:58
steelcityjimim in the gui03:59
LHCjmarsden, I saw an option on tasksel about that03:59
jmarsdensteelcityjim: You type a command at a shell prompt.  Open up a terminal window and type it.03:59
jmarsdenLHC: Sure you can ... but I03:59
jmarsdenam not going to teach you how to configure DNS servers tonight too :)04:00
LHClol yeah04:00
LHCwhat will the end result be? allowing me to type in any url and itll work?04:00
jmarsdenAny url that resolves to the IP of your server and which matches one of the ServerName or ServerAlias lines, yes.04:01
steelcityjimno such file or directory jmarssden04:01
steelcityjimis that the number 104:01
steelcityjimor L04:01
LHCnice04:01
LHCill give that a go another night lol04:01
jmarsdensteelcityjim: Lima Sierra  ls "ell" "ess"04:02
steelcityjimno such file or directory04:02
steelcityjimdid I bone the file creation up?04:02
jmarsdensteelcityjim: You did create a directory called /home/jim/Public, right?  Before you tried to share it?04:02
steelcityjimi thought i did04:03
jmarsdenI would check on that if I were you :)04:03
jmarsdenRemember that public and Public are two different directories in Linux...04:04
steelcityjimoh man04:04
steelcityjimwait maybe i jacked that search up04:04
steelcityjimhow do I create the directory in the gui?04:05
jmarsdenI forget.  In the shell, do    mkdir /home/jim/Public04:05
jmarsdenYou want help on the GUI, ask in #ubuntu, not here :)04:05
steelcityjimok did the mkdir /home/jim/public04:07
steelcityjimthen did the ls -l command and it gave total 804:08
jmarsdenNo... Public not public.. Your config file used Public so that is what you need to use04:08
steelcityjimmfer04:08
LHCjmarsden04:09
jmarsdenYou need to be really accurate about typing in the Lunux/Unix world04:09
LHCim going to buy thelhc.info xD04:09
jmarsdenLHC: Have fun :)04:09
LHCyes its like 99p04:09
LHCitll be good practise :P04:09
infomomohow to update ubuntu-server ?04:09
steelcityjimok says can't creat directory home/jim/Public file exists04:09
infomomoapt-get update?04:09
infomomoapt-get upgrade?04:09
jmarsdeninfomomo: sudo apt-get update && sudo apt-get upgrade04:10
infomomoi did04:10
infomomo:D04:10
infomomothanks04:10
infomomoi am at kernel 2.6.27-704:10
infomomorunning LAMP04:10
LHCanyone buy from godaddy before?04:10
infomomodomain yes04:10
infomomowhy?04:10
LHCare the prices for a year04:11
LHCor one month04:11
jmarsdenThere is also a package called unattended-upgrades that will do security updates automatically for you04:11
infomomo1 year for domains brother04:11
LHCahh nice04:11
LHCWOW infos are cheap04:11
infomomothats whats i need :D04:11
LHC82 pense04:11
infomomohun ?04:11
infomomolet me check04:11
LHC82p04:11
infomomoshow us link please04:11
LHCwww.godaddy.com04:11
LHCtry your name04:12
steelcityjimjmarsden  cannot creat directory /home/jim/Public file exists04:12
infomomojmarsden: it's allready installed :D guess i did during the install :D04:13
jmarsdensteelcityjim: OK, so we are back to ... what does  ls -ld /home/jim/Public    output ?04:13
LHCinfomomo, check your name?04:13
infomomohun ?04:14
steelcityjimdrwxr-xr-x 2 jim jim 4096 2009-02-13-15:2804:14
LHCdid you check godaddy about a domain04:14
steelcityjimthen in light blue after /home/jim/Public04:15
infomomothe price you see is only for the first year04:15
infomomothen its regilar price04:15
infomomo10$/year04:15
jmarsdensteelcityjim: OK.  That's a start.  So now put a file in there and check if a windows machine can see/read it.  perhaps just do     echo junk >/home/jim/Public/junk.txt04:15
LHCahh so I can quit then come back? xD04:15
jmarsdenLHC: Nope, then GoDaddy will steal your domain and ask you even more money for it...04:16
LHCill probably change my name then xD04:16
LHCLHC2!!04:16
LHCone more thing should all the information be correct cause I dont want my address be floating around the net04:17
steelcityjimdamn now the folder is gone on the linux machine04:17
jmarsdenOfficially it should be correct.  There are privacy services you can use to hide that info for extra $$$04:17
jmarsdensteelcityjim: I doubt it... unless you deleted the folder it should stick around...04:18
LHCmeh Ill just modify it, im not expecting high traffic anyways04:18
steelcityjimok I got it back04:18
jmarsdensteelcityjim: OK.  So... did you do   echo junk >/home/jim/Public/junk.txt04:19
steelcityjimbut i tried to move a folder into it and get "the folder cannot be copied because you do not have permissions to create it in the destination04:19
jmarsdenStop playing around ... one thing at once: did you do   echo junk >/home/jim/Public/junk.txt04:20
steelcityjimyes just did that at terminal04:20
jmarsdenOK.  So now go to a windows PC and look at that shared directory... can you see the file?04:21
steelcityjimno04:21
steelcityjimgiving me contact network admin you don't have rights to access04:22
steelcityjimhave access permissions or no logon servers available04:23
steelcityjimnow im able to access my shared folders on the windows pcs with the linux04:24
jmarsdenFor a quick test, try   chown 777 /home/jim/Public/    and then see if the windows PCs can see that share04:24
steelcityjimat termnal right04:24
jmarsdenOF course :)04:25
steelcityjimoperation not permitted04:25
ScottKSo where do I find CA.pl on Fedora?  Why /etc/pki/tls/misc/CA.pl.  Who wouldn't haved guessed that.04:25
jmarsdenHmmm.  You are logged in as jim right?04:26
steelcityjimyea04:26
ScottKEqually obvious was the package I needed is called openssl-perl.04:26
jmarsdenScottK: locate is a handy command :)04:26
ScottKjmarsden: Google found me where it was located before it found me which package I had to install.  Locate doesn't help if it's not installed.04:26
ScottKInstalling I'm fine on because I do know yum install apt.04:27
jmarsdenThat's true.  I think you can do something like rpm --whatprovides something   # but it's been a while since I knew RPM04:27
steelcityjimjmarsden actually it says changing owership of /home/jim/Public/ operation not permitted04:28
jmarsdensteelcityjim: My bad... chmod 777 /home/jim/Public04:28
steelcityjimok did that04:29
steelcityjimstill can't see it on windows machine04:29
steelcityjimbut I also don't see anything else in the folder04:29
steelcityjimon the linux04:29
jmarsdensteelcityjim: The file junk.txt should be in there...04:31
LHCjmarsden, what does chmod 777 do04:31
jmarsdenSets permissions so any unix suer can read, modify or view that directory04:31
steelcityjimyes that file is there jmarsden04:31
steelcityjimI thought the chmod would put something else in there04:32
steelcityjimok quick questions04:32
jmarsdenso... I'm not sure... reboot the windows PC and reconnect to the share?04:32
steelcityjimserver settings04:33
steelcityjimauthentication mode Domain04:33
steelcityjimis that what I should have?04:33
jmarsdenWait... what?  You are running an Active Directory Domain?  Do you now what those are?04:33
steelcityjimno04:33
steelcityjimlol04:33
jmarsdens/now/know/04:33
jmarsdenThen don't do that.  Was that the default??04:34
steelcityjim4 options04:34
steelcityjimads04:34
steelcityjimserver04:34
steelcityjimshare04:34
steelcityjimuser04:34
steelcityjimand domain 5 sorry04:34
steelcityjimoh hang on04:35
steelcityjimchanged it to user04:35
steelcityjimand i can now see the file on the windows pc.....great success04:35
LHCjmarsden instead of buying .info I got a free.us.to one04:37
LHC:D04:37
jmarsdenFor a small home network you probably want user... yes.  OK, we got there!04:37
steelcityjimok now i know your gonna love this04:38
jmarsdenLHC: OK... now have fun with virtual domains on your web server :)04:38
steelcityjimhow do I set this up for remote access04:38
LHChaha yeah04:39
jmarsdenSet up what for remote access?  remote file sharing over the Internet?04:39
steelcityjimyes04:39
LHCdo when I add them do I point it to /htdocs/2nd ?04:39
LHCif so im doing it :D04:39
steelcityjimand I don't have a static ip?04:40
jmarsdensteelcityjim: You'd be mad to try that!  SMB file sharing is basically 100% insecure for Internet use.  You'd need to tunnel it inside a VPN for security, and I have other things to do tonight that teach you that...!04:40
steelcityjimlol04:41
steelcityjimok answer a few ?'s real qick04:41
jmarsdenWhy not use use something simple like FileZilla on the remote PC and SSH to your Linux box?04:41
steelcityjimis filezilla linux or windows?04:41
jmarsdenBoth, but I was thinking use it on remote Windows client PCs04:42
steelcityjimi was going to ask about ssh04:42
steelcityjimnow ssh is a server application linux correct?04:42
jmarsdenThere is an ssh client and an ssh server, yes04:42
jmarsdenThey exist for both Linux and Windows...04:42
steelcityjimi did not see that in the standard apps04:43
steelcityjimI would want to set up as ssh server right04:43
jmarsdenwhat is a standard app?   sudo apt-get install openssh-server04:43
steelcityjimthe list in the desktop gui04:43
jmarsdenQuit thinking about and using a GUI, learn to use a server :)04:44
steelcityjimyea thats what people keep telling me04:44
steelcityjimI tried for 3 nights to get the server working via the command line04:44
steelcityjimdid not go well04:45
steelcityjimhowever don't think i was getting the best direction04:45
steelcityjimnot like you04:45
jmarsdenSo: sudo apt-get install openssh-server  # on the Linux box04:45
steelcityjimok04:46
steelcityjimthen im assuming i have to configure a sing on and password04:46
jmarsdenThen open port 22 in your router and point it to the IP of the Linux box04:46
jmarsdenYou already did, you configured the user called jim04:46
jmarsdenYou can add more users, if you want, but jim will do for now04:47
steelcityjimnow from the remote04:47
jmarsdenremote like not on your local LAN?04:47
steelcityjimi type in the ip address of my internet connection at the time04:47
steelcityjimyes04:47
steelcityjimobviously that changes everytime i sign in and out?04:48
steelcityjimsince its dynamic04:48
jmarsdenOnce you have that router configured right, yes.  You set up FileZilla to talk SFTP on port 22 to your public IP.04:48
jmarsdenYou can use something like no-ip.com to get a dynamic DNS entry if you want to avoid that hassle.04:48
steelcityjimnow I have read some ip providers have an issue with this04:49
jmarsdenWell, for occasional SSH use to manage your home server, I doubt it.04:49
jmarsdenIf you start firing masses of big files back and forth, sure...04:49
steelcityjimlike movies?  lol04:49
jmarsdenThey want you to sign up for a business grade Internet connection.  Yes, like any large files.04:50
steelcityjimand im assuming for hosting a personal web site also04:50
jmarsdenYes.  Read the Terms of Service agreement from your ISP to check what their rules are.04:50
steelcityjimim guessing they want more $$04:51
jmarsdenCorrect.04:51
steelcityjimthey want $10 more a month for a static ip04:51
steelcityjimso how does the no-ip.com work?04:51
jmarsdenYou create a free hostna,me such as steelcityjim.no-ip.com and then run a program on your linux box that updates that account with your current Ip address every time it changes.04:52
steelcityjimdo they charge for that?04:53
jmarsdenThen from the outside you connect to steelcityjim.no-ip.com and you get to the right linux box even if its Ip has changed.04:53
steelcityjimoh thats sweet04:53
jmarsdenNo, it is free but you have to keep clicking on an email every 60 days to keep it.04:53
jmarsdenYou can pay for upgraded services but I have not done that.04:53
jmarsdenThere are many such services.  dyndns is another one.04:54
steelcityjimexcellent i'll check into it04:54
LHCis there a way to check what ports are open?04:54
jmarsdenSee http://www.no-ip.com/services/managed_dns/free_dynamic_dns.html for info on their free service.  Works for me.04:54
steelcityjimyou have been very helpful04:55
LHCwow jmarsden you really do like to help haha I just came back and theres a whole page xD04:55
LHCwell done04:55
jmarsdenLHC: checking for what services are listening from the server itself?  or from a remote client PC?04:55
jmarsden(I should get back to other things...)04:55
LHCahh checking what ports are open on my dedi04:56
LHCvia putty04:56
jmarsdenOn the server if you do    sudo netstat -ntlp   # you will see what TCP services are listening on what ports there04:56
jmarsdenOn a PC at home you could run nmap to portscan the dedicated server and check it that way too...04:57
LHChehe it worked perfectly again thanks04:57
jmarsdenNo problem.04:57
LHChttp://pastebin.com/db97b1a904:58
LHCso is that perfect?04:59
jmarsdenLooks like it should work.  I would put stuff in so that each domain logs to a differnt log file, and maybe add ServerAlias lines for www.domain...05:00
jmarsdenBut as it is it will work.05:00
LHCoh I suppose your way is better practise :D thanks alot man05:00
jmarsdenSee http://pastebin.com/d389ecc90 for an example that shows what I ended up doing on a production server...05:03
jmarsdenIt hosts maybe 150 domains...05:03
LHCWOW05:04
LHC150?05:04
LHCwhy so much05:04
jmarsdenSure, that's small potatoes for todays world.  Small businesses that are clients of the company I work for...05:04
LHConce I get this all good I think ill maybe sell webspace for cheap05:04
LHCcool05:05
jmarsdenYou can do 1000 web sites per server if they are all small static sites :)05:05
LHCthe whole reason I was looking for this is because Im going to go around to local businesses and get them an online presence05:05
LHCso I wanted to know how to do it xD its very interesting i like it05:06
jmarsdenIf you know enough to provide reliable hosting, and fix it fast when it breaks, go for it.  Small business owners get really upset when their website (or email) goes down!05:06
LHClol yeah05:08
LHCitll most likely be static as said, maybe their menu or services and a contact form05:08
LHCdammit forbidden xD05:10
ScottKOK, so $CLIENT now is their very own CA and their postfix box is using the self signed certs.05:15
ScottKTime for Scotch after logging out of the Fedora box.05:15
LHCfor apache does it matter where you place the htdocs file? I got it in /home/htdocs whilst apache is in /opt/lampp/05:20
jmarsdenLHC: It can be anywhere you want, even a CDROM :)  Just be sure that the apache server can read the files there05:22
LHChaha cool05:22
LHChow do I make sure?05:22
jmarsdenDirectory permissions all the way down the tree... so if you use /home/htdocs then check using ls -ld /home and ls -ld /home/htdocs05:23
jmarsdenYou need the user and group apache runs as (often www-data but check your httpd.conf) to be able to read and traverse all the dirs from / down to the one you specify.05:24
LHCdrwxr-xr-x 8 root root 4096 2009-02-03 00:23 /home05:25
LHC 05:25
LHCdrwxr-xr-x 9 root root 4096 2009-02-14 05:53 /home/htdocs05:25
LHCso that is fine05:25
jmarsdenShould be fine, you have x permissions for everyone all the way down, and read for everyone too.05:25
LHCnice05:26
steelcityjimjmarsden you said your using this no-ip.com05:32
jmarsdenYes...05:32
steelcityjimwhat router you got?05:32
steelcityjimseems this won't work with some routers05:33
jmarsdenI'm using it a several client sites, so it works over all kinds of things from Linksys and DLink home stuff to small Cisco and SonicWall and MonoWall routers... what is your real question...?05:33
steelcityjimthats it05:33
jmarsdenWhy would it not work with some routers...05:33
steelcityjimi got lynksys05:33
steelcityjimthats what is say on their site05:33
jmarsdenIt just uses HTTP (web access)... hmm, I've never seen it fail, will check...05:34
steelcityjimthey only list 4 or 5 that it works with05:34
LHCjmarsden I got an idea, I may reinstall apache so I know everything will work cause what is on atm doesnt seem to work05:34
steelcityjimguranteed05:34
steelcityjimI signed up05:34
steelcityjimgonna give it a shot05:34
jmarsdenLHC: Well, it was working before you started editing things, right?05:34
jmarsdenSo either you broke it or it is still working :)05:34
LHCyeah when index.html was in the htdocs dir05:35
LHCI dont think this multiple domains thing isnt working for me Ill just put it back05:35
jmarsdenWhat exactly is "not working" now?05:35
LHChttp://thelhc.us.to/05:36
LHCits forbidden05:36
jmarsdenYou mean you are getting an error 403?05:36
LHCyep05:36
LHCbut when I add the folder http://thelhc.us.to/thelhc/ it works05:36
LHCbtw thats just a test page lol has a curse word on it05:37
jmarsdenSo it is working fine... you can either set the document root to /home/whatever/thelhc/  or you can move your content up one level.05:37
LHC<VirtualHost *:80>05:38
LHCServerName thelhc.us.to05:38
LHCServerAlias thelhc.us.to05:38
LHCDocumentRoot /home/htdocs/thelhc05:38
LHC</VirtualHost>05:38
jmarsdenOK.  Seems reasonable.  And the file is in /home/htdocs/thelhc/ ?05:39
steelcityjimhow difficult is makeing a web page?05:39
jmarsdenLHC: Did you restart the web server after the domain name became active and pointed to your IP?05:40
LHCahh no05:40
jmarsdensteelcityjim: Trivial... for a trivial page :)05:40
LHCthat might be the problem?05:40
jmarsdenYesm it might well.05:40
LHCwould that reboot the whole server?05:40
jmarsdenNo.05:40
LHCthank god haha05:41
steelcityjimand thats apache I use for that correct05:41
jmarsdensteelcityjim: For creating the page you use a text editor, or a web page creation tool if you prefer.  For serving up that page so others can see ityou could use Apache.05:41
steelcityjimany text editors better than others?05:42
jmarsdenLHC : If you can find a command called apachectl try   sudo apachectl restart05:42
LHCbash not found haha, i think i have to use kill command05:43
jmarsdensteelcityjim: Yes.  But there's a bit of a "religion" thing about which ones people prefer... use one you already know well.05:43
jmarsdenLHC Try not to do that...05:43
LHCit sounded cool though xD05:43
steelcityjimwell I have not used any which do you prefer05:43
jmarsdenLHC: Do you know how the httpd was started?05:43
LHCnope the other fella does that, he installed it05:44
LHCI have a right mind of wiping it05:44
LHCbackup the files I need the clean install05:44
jmarsdensteelcityjim: I use Emacs but it takes a while to get comfortable with.  Try nano for something quick and simple.05:44
steelcityjimok apt-get install nano/05:44
steelcityjim?05:45
jmarsdenLHC; Your call.  So locate apachectl  does not find it at all?05:45
jmarsdensteelcityjim: sudo apt-get install nano   # but it may already be installed?05:45
LHCoh it did,  /opt/lampp/bin/apachectl05:45
steelcityjimjmarsden you ever see a captive works 3000hd?05:45
LHChttp://www.captiveworks.com/cw3000hd.php05:46
LHChe did now haha05:46
steelcityjimyou familiar lhc?05:46
jmarsdenLHC: so do   sudo /opt/lampp/bin/apachectl restart05:46
LHCwow jmarsden you know everything haha05:47
jmarsdensteelcityjim: No, I don't think so.  I used to be involved in setting up satellite comms at one point, but not recently...05:47
LHCI think its working05:48
LHCill check05:48
jmarsdenLHC: No, I just know a fair bit about network and system admin stuff, because I have done it for years...05:48
steelcityjimlinux based media satellite reciever05:48
steelcityjimpretty neat device05:48
LHChaha fair enough05:49
LHCso far its working I just have to point it to thelhc folder05:49
jmarsdenInteresting idea... much will depend on how good the software it uses is...05:49
steelcityjimIve had it for almost a year now05:50
steelcityjimworks pretty well05:50
steelcityjimdecodes hd satellite, dvr, web browser, cd/dvd burner05:51
steelcityjimim sure you could fine tune it05:52
jmarsdenProbably needs a Bluray burner if you want to keep many HD movies around, I would think?  And yes, if I had one I'd probably hack on it :)05:53
steelcityjimthey claim they can't put blu ray in because of the driver or something05:53
steelcityjimsony will sue05:54
LHCsucky sony05:54
steelcityjimthats the only thing its missing05:54
jmarsdenHmmm, maybe there is no open source BluRay recording support in Linux yet... could be.05:54
steelcityjimis there open support for hdmi?05:55
steelcityjimfrom my understanding that has encryption also05:55
jmarsdenSome interest comments and suggestions for HD playback stuff at https://help.ubuntu.com/community/RestrictedFormats/BluRayAndHDDVD05:58
jmarsdenBut nothing there directly says anything about *recording* to Bluray... so I'm guessing it isn't (yet?) doable.05:58
LHCdecrypt?05:58
jmarsdenI suppose you could just put a 2TB hard drive in there instead, that should be good to store quite a few movies :)06:00
LHChaha06:00
LHCdo you know what hdbits.org is06:00
jmarsdenSounds liek a place to get HD movie keys from?06:00
LHCits a hdtorrent tracker06:01
LHCit is pro for all hd stuff, the most popular hd tracker. If i get an invite ill pass it onto you?06:01
jmarsdenIf you want, sure.06:02
LHCdo you know what, what.cd is06:02
LHCthe best music tracker xD06:02
steelcityjimlhc what.cd what is it?06:05
LHCfor music06:05
steelcityjimhow do you register?06:05
LHCits private06:06
LHCyou have to get an invite etc06:06
LHCit counts your downloads and uploads so if you download loads, itll say stop or itll ban you06:06
steelcityjimkinda like your own personal itunes06:07
LHCsorta but better quality haha06:08
LHCWOHOOOOOOOOOooooooooooooooooooooo07:05
=== erichammond1 is now known as erichammond
LHChey anyone here08:08
=== LHC is now known as RandySchwartz
LHChey09:02
LHCanyone know anything about permissions09:02
Kamping_Kaiser!anyone09:02
ubottuA large amount of the first questions asked in this channel start with "Does anyone/anybody..."  Why not ask your next question (the real one) and find out?09:02
LHChaha09:03
LHC!coolshitbro09:03
ubottuSorry, I don't know anything about coolshitbro09:03
LHCwho knows about permissions09:03
LHCbeat that kaiser09:03
Kamping_Kaiser!ask09:04
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line, so others can read and follow it easily). If anyone knows the answer they will most likely reply. :-)09:04
LHCi want to set up a ftp account so the person can upload html and css to their webspace09:04
LHCbut not go outside of that directory09:05
LHChttp://ubuntuforums.org/showthread.php?t=105765709:05
LHCI tried this so far09:05
Kamping_KaiserI dont do ftp, so i cant help with that sorry. hang around, someone else might know how09:07
LHCk09:08
LHCwhat do you do?09:12
Kamping_Kaiserssh/scp09:13
LHCahh09:13
LHCbasically I have a whole dedi to use and I hardly use it09:13
=== ReAn` is now known as ReAn
LHChey10:11
LHCdo you know How set up an account so a user can upload to a web directory, but cannot go outside that dir10:12
HellsheepHey11:08
HellsheepI have a question about something i can't seem to find a good answer to on the net, i am installing noip DUC for Linux, and there is a few different binaries i can use such as: noip2-x86_64 or noip-i686 and i dont know the differece and what one i should use for my server11:10
HellsheepI know it's not a 64-bit server, but i see x86 and im not sure whether to use it or i68611:10
Kamping_Kaiser"x86_64" is one string11:12
Kamping_Kaisereg, 64bit x8611:12
HellsheepYeah, but is it used for 32bit CPU's?11:16
HellsheepI understand x86 to be 32bit11:17
Hellsheepso to see x86 and 64 in both confuses me11:17
Kamping_Kaiserx86 is the architecture, not related to the number of bits :)11:18
Kamping_Kaiser686 is the 32bit version (just for the logs)11:18
Hellsheepoh, i see.11:19
maswanyes, amd made a rather big mistake early on in naming it x86_64, IMHO. had they chosen x64 instead, I think things would be much clearer.11:19
HellsheepAgreed11:20
HellsheepBecause i understand x64 to be 64-bit11:20
maswanthey renamed it amd64 later, but that has only partial uptake11:20
Hellsheepand x86_64 to me is like11:20
HellsheepA mixture11:20
HellsheepWell11:20
Hellsheep686 it is then11:20
maswanx86_64 is just another name for amd64/x64/em64t11:21
Kamping_Kaiserisnt x64 used for itaniums? (IA64)11:22
maswanno, it isn't11:22
maswanx64 is what sun and microsoft call it11:22
maswanand it being amd64/em64t/x86_6411:23
Kamping_Kaiseraah, of course.11:23
maswansince em64t/x86_64 are crap names and amd64 sounds a bit confusingly vendor-specific though it really isn't.11:24
Kamping_Kaiserno much more specific then IA32 or IA64 (imo)11:25
maswanyeah, I agree11:25
maswanah, intel now call it "intel 64", not to be confused with "intel architecture 64" which is itanium. ugh.11:25
Kamping_Kaiseryep. loved that.11:27
=== tuxlinux_ is now known as tuxlinux
uvirtbotNew bug: #329170 in dovecot (main) "Authentication failing intermittently" [Undecided,Incomplete] https://launchpad.net/bugs/32917012:45
Kartagishow can i get dhcp to log in it's own file?12:47
Kamping_Kaisergive syslogd a poke so it stops logging into syslog and starts into $otherfile12:49
=== ScottK2 is now known as ScottK
=== jussio1 is now known as jussi01
maDChoPRcan anyone help me with bacula and win32 client?16:30
roy_hobbsWhat are some ways to maintain /home/$USER on a centralized (redundant) server, but have it cached to a client machine when the user logs in, while not letting the client fill up to capacity if many users have logged in?16:58
tewmtennfs perhaps?17:04
tewmteni think you can do stuff like that with samba also17:05
tewmtenbut personally ive only did those setups with nfs17:05
roy_hobbsI was looking into AFS and DRBD.  I was interested in how enterprise networks handle such things.17:06
tewmtenok i dont know about that17:06
tewmtenafs is the apple thing, right? i have a faint memory i used it a bit with my powerbook, but that was years ago17:07
roy_hobbsno afs is a distributed network file system17:07
tewmtenah ok17:08
tewmteni was thinking afs, apple file share17:09
tewmtenhttp://en.wikipedia.org/wiki/Andrew_File_System17:09
tewmtenthats the óne you mean, right?17:09
roy_hobbsyes17:09
tewmtenseems cool17:10
domashi!17:39
domashttp://p.defau.lt/?ILkL1opB2Tcs4iaRCW50pQ <-- do high Slab/SUnreclaim values mean I have memory leak in kernel somewhere?17:39
cart2mananyone have any ideas where to go from here in terms of recovering my RAID10 array? http://pastebin.com/m3989012117:47
Mal3koanyone famiiar with pure-ftpd here?17:52
ZipmaOHi, I'm having a problem getting php mail function to work on my ubuntu web server. Someone's got a hunch?17:54
ZipmaONeed help configuring the mail server to send emails through ISP:s smtp server and set the correct [mail function] setting in php.ini18:02
domasARGHHHH, I kept working tree of hour's work in /tmp, then rebooted18:12
axisysi have a second network card.. do I just add this to the interfaced file `iface eth1 inet dhcp' ?18:57
axisyssudo ifconfig eth1 dynamic did not help18:57
ivoksopen the file and write18:57
axisysthis is how the interfaces file currently looks like18:58
axisyshttp://pastebin.com/f3e716c6318:58
axisysso when I add .. do I have to run anything to activate short of rebooting?18:59
ivoksyou don't have to reboot18:59
ivoksjust ifup eth118:59
ivoksyou know what 'auto eth0' stands for?18:59
axisysivoks: no19:00
ivoksauto eth0 = when starting networking, start eth0 interface19:00
ivoksautomaticaly19:00
ivoksthat's why there's auto eth019:00
ivoksso if you want that for eth1...19:00
domasis there a way to use canonical support without using landscape? :)19:02
axisyshow do I make sure my default gw interface is eth0 ?19:02
ivoksaxisys: good question19:02
ivokshm...19:02
axisysright now route shows this19:03
axisysdefault         192.168.1.1     0.0.0.0         UG    100    0        0 eth119:03
axisysdefault         192.168.1.1     0.0.0.0         UG    100    0        0 eth019:03
axisyslol19:03
ivoksaxisys: to be honest, i don't know :D19:04
ivoksi don't think that's possible with dhcp19:05
ivoksyou can't flush routes and set your own19:06
axisysi could have a line in interfaces to del the default route to eth119:06
axisyslooking for the syntax19:06
ivokssince dhcp server will resend everything19:06
ivoksyou could, yes19:06
ivokspost-up 'route del default gw dev eth1'19:06
axisys sudo route del -net 0.0.0.0 gw 192.168.1.1 dev eth119:07
ivoksbut, i'm not sure that will work once dhcp client asks for lease again19:07
ivoksbut...19:07
ivoksyou don't need sudo19:07
ivoksyou should look at /etc/dhcp/dhclient.conf19:07
axisysivoks: so add this line exactly? post-up 'route del default gw dev eth1'19:08
ivoksso that client doesn't accept routes for eth119:08
ivoksaxisys: yes, but as i said, i'm not sure that will work19:08
ivokssince dhcp client asks for routes every couple of minutes19:08
ivoksand you only bring interface up once19:09
ivoksthat's why i think /etc/dhcp3/dhclient.conf should provide some solutions19:09
axisysi have to run for a min.. but i think u r right.. i just should not request for the routers in the dhcpclient file19:11
axisysand just add the default route as a script for eth019:11
ivoksright19:11
* axisys will be back in few hrs19:11
=== axisys is now known as axisys_away
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
domaskees: that was fast! :)20:22
keesdomas: caught me just as I was sitting down at the computer.  :)20:23
domaskees: I think I can try producing a C-based small testcase that wouldn't need apache20:23
domaskees: (and leak doesn't go away until you reboot)20:23
keesdomas: oh! that would be very useful, yeah20:23
keesdomas: yeah, though I guess what I meant was, if you disable apparmor, the leak stays away?20:24
domasyup, /etc/init.d/apparmor stop doesn't release memory20:24
keesif it's limited to just one action, it should be (hopefully) easy to track down and fix.20:24
domasit is still unreclaimable20:24
* kees nods20:24
domaskees: thats the only thing I changed20:24
keesright, but if you boot, turn off apparmor, and then run the test-case, it's okay?20:24
domasI switched locking mode for a process that was apparmor-audited20:24
domaskees: yup20:24
domasno apparmor, nothing bad happens20:25
domasI have 200 servers doing the job, few with apparmor20:25
domasthose few caused troubles :)20:25
keesdang, sucky bug.  but like I said, with a test-case, it should be easy to find.20:25
keesyeegh20:25
domaswe have canonical contract, but we didn't manage to find out how to open issues without installing landscape :)))20:25
keesi'm honestly not sure how to either; I think you can just call the support phone #20:26
domascd /tmp20:26
domasergh20:26
domasdamn, today I rebooted one box and it wiped out working tree with few hours of diffs20:26
domasI should avoid putting stuff into /tmp :)20:26
keeseek20:27
LHCdoes anyone have this in their home? or work. Like have a sound system that people can add sounds to a playlist20:34
domaskees: hahaha, http://p.defau.lt/?HxHScO_HJyFcgLVE2Fp8qw20:51
domaskees: this is what I hit with my testcase ;-D20:52
domaskees: and immediate leak too20:52
domaskees: I guess next step for me would be fixing it, but I really really don't want to go into kernel hacking land ;-)20:54
keesdomas: heh, okay, just attach the testcase to the bug, and I'll start getting the people we need to get it fixed.21:00
domaskees: done21:00
keesgreat, thanks!21:00
domasit is all in the bug now21:00
domasthanks for attention, immediately spotted you on subscribers :)21:00
domasthe kernel message buffer problem looks scary :)21:01
keesyeah21:02
domashehe, I was solving other issue today21:13
domasdefault php5-apc uses pthread futexes on shared memory21:13
domasso if some apache kid segfaults, it leaves a deadlock21:13
domasdamn I hate computers :)21:15
domashaha, kees, sorry to kill your vm! :)21:21
domaskees: one could treat this as direct DoS vector21:22
domasas fcntl kills apparmor in confined environments (I guess one could manage to do same with PHP and such)21:24
vikramAnyone have any clever ideas for identifying a hard drive? I have a big raid6 that needs a drive to be replaced, but i cant tell what sdg is physically in the chassis21:26
domaslook for one that doesn't blink21:26
domas=)21:26
vikramSadly they dont have individual lights21:27
domaswell, then you can try guessing21:27
domasif you don't have visual IDs, the only remaining thing is shutting system down, and checking serial numbers21:27
vikramThe drives are split across multiple controllers, can i at least tell which driver owns which device nodes?21:29
domasghm, dmesg tells you some of that21:29
vikramI had a look at that, but it didnt say which driver, it all appears like it comes from scsi21:31
vikramx:0:0:021:31
domashehehe, it is quite strange not to have individual LEDs ;-)21:31
vikrami'm hunting through /sys at the moment21:32
domasI'm spoiled by good hardware :)21:33
vikramEquilibrium21:34
vikramOk i can tell which drives are on the same controller, but which controller is another question21:34
vikramthere must be a vendor/model/id label somewhere here...21:35
vikramah, here is a thought, i can put the drive to sleep with the scsi id21:40
vikramthen just listen for which drive switches off21:40
domas=))21:41
domasmight work!21:41
domasmake sure others do lots of seeks then21:41
vikramThe needle lands when the drive goes to sleep, so it should be fairly easy to catch21:41
mrcoodleshow do i start mysql server?21:52
domasmrcoodles: depends how you installed it, but usually /etc/init.d/mysql start21:54
mrcoodlesdomas: tried that , says Access denied for user @ localhost21:55
domasthen you already started it ;))21:56
domasI hate debian/ubuntu mysql package21:56
domas=)21:56
mrcoodlesno, /etc/init.d/mysql status says its stopped.21:56
mrcoodlesany clue where the config file is ?21:56
domasheh, /etc/mysql/my.cnf21:57
=== kraut_ is now known as kraut
ha1331Having problems with hp proliant ML110 G5. I have system installed on single disk and additionaly have 2xdisks on raid array. Would like to partition and format the array, but cannot find the array. /dev/sdb and /dev/sdc are present but no /dev/md* .22:03
vikramcat /proc/mdstat22:13
ha1331cat: /proc/mdstat: No such file or directory22:14
jmarsdenha1331: Have you installed and used mdadm?  Maybe http://ubuntuforums.org/showthread.php?t=408461 will help?22:23
ha1331jmarsden I need those even if I have raid "controller"22:25
ha1331?22:25
jmarsdenYou were looking for /dev/md* which is for software raid devices... ?22:25
jmarsdenif you want to use a hardware raid controller you need to load the driver for that controller22:26
ha1331jmarsden sorry about that... I tried to figure out if the array should appear as /dev/md. It isn't real raid controller, it is software raid, atlest I think so, after all /dev/sdb and sdc are present22:28
ha1331lspci -v tell's me this:22:29
ha133100:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02)22:29
jmarsdenIf you can see the drives and are OK with using software RAID, then use mdadm and you'll get software RAID.  You might be "wasting" the capabilities of your disk controller, but it will still work.22:29
jmarsdenThat doesn't sound like a "real" serious RAID controller. so I'd say go for software RAID.22:29
ha1331well, I already created the array during boot, and it was present on install, but now I cant find it anywhere22:30
jmarsdenHow exactly did you "create the array during boot"?  Using what tool did you do that?22:31
ha1331pressed during boot, and created it, just like one would with real controller22:31
ha1331pressed f822:31
ha1331more from lspci -v:22:32
jmarsdenI think you just created some sort of fakeraid array that is not understood by Ubuntu ?  I know nothing about fakeraid stuff... I'd suggest avoiding that approach22:32
ha1331        Kernel driver in use: ahci22:32
ha1331        Kernel modules: ahci22:32
ha1331During the install, I had the option of installing the system on that array22:33
ha1331so one would think it should be present on the installed system22:33
jmarsdenNo idea.  Right now you can see the two drives as sdb and sdc, so you can go ahead and use them for software RAID... or you can try and figure out whatever you did before... your choice.22:35
ha1331thanks for your help anyways :)22:35
jmarsdenOK :)22:35
vikrampvmove is so horribly slow22:39
vikram1Tb takes about 24hrs22:42
LHCanyone have 1 1tb hdd22:43
vikram?22:47
jmarsdenLHC: Even if someone does, they aren't likely to give one to you over IRC :)  640GB drive here, BTW...22:47
ha1331jmarsden https://help.ubuntu.com/community/FakeRaidHowto#In%20Long%20without%20detail%20as%20above%20(2008-10-26%20update)22:48
vikram1Tb is the cheapest $/gb drive22:48
ha1331this helped22:48
vikramyou can find OEM Western Digitals for $90 on ebay22:48
ha1331now I'm fdisking plenty22:48
jmarsdenha1331: OK, if you like fakeraid, go for it.  As the link I provided earlier says, you seem to end up with the worst of both hardware and software RAID that way, but I know some people like it...22:49
ha1331jmarsden like the way you think, atleast you managed to present it positively :)22:50
vikramThe only thing I can think of that makes fakeraid practical is if you are going to share the disk with windows22:52
jmarsdenvikram: BTW you can get a 1.5TB drive from newegg for $130 which is cheaper per TB than your suggested $90 for 1TB on ebay :)  http://www.newegg.com/Product/Product.aspx?Item=N82E1682214833722:58
vikramOh not bad22:58
vikrami have 6x500GBs in RAID6 at the moment. Very slow (10mb/s) but very reliable23:00
jmarsdenThat really does sound slow for a multi-drive array... do you know where the speed bottleneck is?23:01
vikramprocessor and controllers (old AMD x2, and old nvidia)23:02
hadsThat is slow23:02
LHCvikram, nice23:02
LHCI may get a samsung 1tb spinpoint23:03
LHCwhat do you use that for? hd video23:03
vikramNo, nothing fancy just /home /music /movies23:03
vikramit started off as 1 500gb disk in 2003 and just sorta got bigger23:03
vikramburst write still kicks ass though, near 150mb/s, but sustained writes to the array tape off at 30mb/s, controller to controller is around 10mb/s23:04
LHCcool :D23:04
LHCis it just a standard biege pc case23:04
vikramyes, the cheapest case i could find23:05
vikramluckily it has nice removable disk racks inside23:05
LHCI may use my first pc as a server23:05
LHCits an old compaq persario23:05
LHCwhat specs are needed? for simple ftp downloader and music server23:05
vikramAnything over p3 is overkill23:06
LHCits an amd 500mhz something xD23:07
vikrammy jack server is a 200mhz cyrix running off 256mb of flash23:07
LHCwow haha23:07
vikrambut it has a $700 dsp in it :)23:07
LHCwhats the most elaborate home system youve heard of23:07
LHCI love the hardware side and im learning loads about scripts and software side23:08
vikrami dont really follow the trends, i just sorta build something and put it behind a table until it dies23:09
LHChaha23:10
LHCoh btw what psu, I cant find any low power ones23:10
LHCefficent and low watts i want23:10
vikramyou can buy small PSUs from ebay23:10
vikramlittle ITX ones or even the laptop kind23:10
LHCi reckon having your own wee server is the best way to learn haha23:13
=== LHC is now known as LH[
ha1331jmarsden: got fed up with it... going with the softraid on linux :D23:19
jmarsden:)23:19
ha1331those crappy-raids got to be the stupidest thing ever23:19
ha1331totally invented by moron23:20
vikramlinux raid has really become quite capable these days23:20
ha1331vikram hope so :D23:20
domaskees: _any_ operation on unlinked files causes the issue23:20
domaskees: just reproduced with write(fd,"a",1);23:21
vikramI've been using it for the last 4yrs now anyways23:21
ha1331new to ubuntu, used to go with gentoo, this is quite an experience23:21
vikramin any distro switch the only pain is learning the package management commands23:22
LH[hey jmarsden !23:23
jmarsdenLH[: Hi23:23
LH[you know the way when you learn php or whatever you do a project at the end to test yourself? I thought of a cool one and it may use my server hehe23:25
LH[since its underused, if anyone wants anything hosted tell me cause I got 200gigs free23:25
mrcoodlesim running a mysql server on ubuntu server as a guest on vmware which is on vista. any clue what else i have to do besides port forwarding 3306 so i can access sql from vista ?23:26
LH[mrcoodles, you can run ubuntu on windows via wmware?23:26
mrcoodleswell, yes.23:28
mrcoodlesits sort of the point of vmware.23:28
LH[I only heard of vmware on a mac I never knew it could be used on windwso23:28
LH[can you send a screenshot?23:29
mrcoodlesi would but i also have loads of porn open and i cant share that.23:29
LH[sharing is caring23:30
mrcoodlesmeow.23:30
LH[Moooooooo23:30
mrcoodlesnot into that.23:31
LH[VMware Workstation23:31
LH[is that it23:31
mrcoodlesmyeaps.23:31
LH[awesomee23:32
jmarsdenmrcoodles: If you have the vmware networking stuff all set up so your Ubuntu VM has a known IP address reachable from the Vista, you should be all set?  But this is not really a #ubuntu-server question, if your host OS is Vista!23:32
LH[ha23:33
LH[can you run mac osx through vmware23:33
mrcoodlesjmarsden: vmware networking stuff confuse me.23:35
LH[why you using it23:36
jmarsdenmrcoodles: Try using virtualbox or something else instead of VMware, maybe?23:36
LH[mrcoodles, does ubuntu work perfectly fine with it23:37
LH[I may test a few distros using it23:37
Mal3kocan anyone help me with firewall issue?23:37
jmarsdenLH[: Yes, Ubuntu works fine with VMware, and KVM, and virtualbox... :)23:37
jmarsdenMal3ko: as the /TOPIC says: Don't ask to ask, just ask.23:38
LH[yaya23:38
LH[theres no nonsence in here, just straight to it :D23:38
Mal3koi've set ufw to block most ports but when i scan with nmap, there are still hundred of ports opened23:39
jmarsdenMal3ko: ufw should be doing default deny anyway... what does   sudo ufw status    # say?  (use pastebin if output is long)23:42
Mal3kopastebin url23:43
jmarsdenif you do    sudo ufw status verbose   you get a bit more info... including what the default is.  http://pastebin.ubuntu.com will work.23:43
mrcoodlesLH[: it works great. im just new to both of them.23:45
Mal3kohttp://pastebin.ubuntu.com/118208/23:46
LH[mralphabet, whats this now23:47
LH[mrcoodles, whats this now23:47
LH[FAIL lol23:47
mrcoodlesehm ?23:47
jmarsdenMal3ko: Looks fine to me, so if you nmap scan the machine from another box on your local LAN nmap reports plenty of open ports??  Maybe you can pastebin the nmap output?23:47
LH[both of what23:48
jmarsdenMal3ko: Is the Ubuntu server connected directly to the public Internet or is there a router that you control in the way?23:48
jmarsdenLH[: Ubuntu and VMware... I would think!?23:49
LH[oh I thought ubuntu and macosx23:49
Mal3kojmarsden: i dont know. maybe you want to scan the server yourself?23:56
Mal3kookey?23:56
jmarsdenMal3ko: OK.  You seem to have most ports filtered (I just very gently nmap scanned your IP on a few common ports)... (got your IP from /whois)23:56
Mal3kono..that's not it23:57

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