[00:07] <erichammond> If 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?
[01:22] <LHC> hello
[01:25] <ScottK> erichammond: No.  DNS doesn't work that way.  Round robin is for load sharing, not failover.
[01:25] <LHC> hey
[01:26] <LHC> im just wondering from one dedicated server, how many individual sites can be run of it. like a webhost
[01:27] <rdw200169> LHC, many, using virtual servers
[01:28] <LHC> oh what software does that
[01:28] <rdw200169> LHC, well, the ubuntu community prefers apache webserver
[01:28] <LHC> im interested in using a dedi i have as a webhost for a few sites
[01:28] <LHC> its an ubuntu server :D
[01:28] <rdw200169> LHC, well, it's easy to install a working webserver, just use the command: tasksel
[01:29] <rdw200169> LHC, it's the option "LAMP Server"
[01:29] <rdw200169> LHC, and that will install the appropriate packages
[01:29] <LHC> I have a counter strike server on it, would it delete any of its feiles? haha please no
[01:29] <LHC> files*
[01:30] <rdw200169> LHC, it shouldn't
[01:30] <LHC> cool
[01:30] <rdw200169> LHC, they are completely separate apps
[01:30] <rdw200169> LHC, you can run all kinds of stuff on a single server if you want
[01:30] <LHC> where will it install to? I mean the directory for puttin the index.html web stuff
[01:30] <rdw200169> LHC, for example, one server can be a: mail server, web server, ftp server, etc...
[01:30] <rdw200169> LHC, well, aside from the apache binaries and configuration files, it sets the webroot as /var/www
[01:31] <rdw200169> LHC, but that can be changed if you want it to be
[01:31] <LHC> rdw200169, 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 haha
[01:31] <LHC> thanks alot rdw200169 ill try it now
[01:31] <rdw200169> LHC, well, you should research setting up an apache webserver, there's a lot out there on the internet about it
[01:31] <LHC> so I can use it as a mail server? and have my own email from it? like<EMAIL_ADDRESS>[01:32] <rdw200169> LHC, and there's more to it than i could ever explain here; rest assured that apache is the industry standard
[01:32] <LHC> yeah Im just looking what I can do atm with it hehe Ill definitley look it up
[01:32] <rdw200169> LHC, yes, you may also want to research what you can do w/DNS...
[01:32] <LHC> ok, i guess I have to get a domain name xD
[01:32] <rdw200169> LHC, 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 server
[01:33] <rdw200169> LHC, you don
[01:33] <rdw200169> LHC, you don't have to run your own DNS server, just let godaddy do it for you; much easier and more reliable
[01:33] <LHC> yeah It is static thanksfully
[01:33] <LHC> ok :D
[01:33] <rdw200169> LHC, same thing w/running a mail server, i find it is much easier just to use google apps w/a domain name from godaddy
[01:33] <rdw200169> LHC, b/c google provided "Gmail" for your own domain
[01:34] <rdw200169> LHC, *provides
[01:34] <LHC> so itll show up as<EMAIL_ADDRESS>but will use the gmail service?
[01:35] <rdw200169> LHC, 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 them
[01:35] <LHC> thats fantastic!!
[01:35] <LHC> im really impressed xD
[01:35] <rdw200169> LHC, yeah, it works really well too, and they still provide imap/pop3 access
[01:35] <LHC> http://www.google.com/apps/
[01:35] <rdw200169> LHC, so you can have<EMAIL_ADDRESS>routed through google
[01:36] <LHC> cause I love gmail
[01:36] <rdw200169> LHC, it
[01:36] <LHC> do I click business it mangaer
[01:36] <rdw200169> LHC, 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 name
[01:37] <LHC> rdw200169, thank fuck for you xD I really wanted to know stuff like this, really helpful!
[01:37] <LHC> plus I think people who have<EMAIL_ADDRESS>on their site just looks bad
[01:37] <rdw200169> LHC, yeah, just set up 'business' they have a 'free' version type thing that everyone uses
[01:38] <LHC> haha, how come google is great for this stuff
[01:38] <LHC> 50$ a year for a webserver not bad xD
[01:39] <rdw200169> LHC, 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 on
[01:39] <LHC> the web server?
[01:39] <rdw200169> LHC, yeah, greamin.com
[01:39] <LHC> hehe
[01:39] <LHC> whats your connection like?
[01:40] <LHC> im reading your guide atm :D
[01:40] <rdw200169> garbage, 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 stale
[01:40] <LHC> its relevant to me cause I have an old pc
[01:41] <LHC> one problem on the server guide
[01:41] <rdw200169> i 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 that
[01:41] <rdw200169> LHC, there are lots of them ;)
[01:41] <LHC> the pic of the open case is massive, takes ages to load. you want me to resize it?
[01:42] <rdw200169> LHC, my internet is slow :(  time warner only allows a small upload < 512 kbps
[01:42] <LHC> 2 secs I forgot I dont have hardly any software on this pc haha
[01:42] <LHC> wow same upload here buddy
[01:42] <rdw200169> LHC, i should go through and resize the pictures smaller, i'm pretty lazy
[01:42] <LHC> ill do i for you
[01:42] <LHC> it
[01:42] <LHC> since you helped me with that gmail suggestion hehe
[01:42] <rdw200169> LHC, nah, that's ok ;)  i know *how* to do it, i just haven't
[01:44] <LHC> i have to reinstall my programs bahhh
[01:44] <erichammond> ScottK: Thanks for the response. I understand that round robin failover would have to be implemented at the application level.
[01:44] <erichammond> ScottK: I understand that some browsers might do this and was hoping that apt-get might, too.
[01:45] <ScottK> You can't really do this without ignoring TTL in DNS records and that's not a great idea overall.
[01:51] <LHC> rdw200169, since i cant open firefox and research stuff cause im installing something. Any other interesting things
[01:51] <LHC> i got really excited at that gmail thing for some reason xD
[01:51] <LHC> oh ill set up lamp
[01:56] <rdw200169> LHC, what do you want to know?  i've done lots of interesting things with servers
[01:58] <LHC> anything, maybe basic things like virtual servers?
[01:58] <LHC> is that wmware?
[01:58] <LHC> cause I have a server with unlimited transfer and I dont use it as much as I should
[01:58] <LHC> lack of knowledge haha
[01:59] <erichammond> ScottK: 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.
[02:00] <rdw200169> i'm talking about apache virtual servers; apache can, all by itself, provide services for a multitude of domain naims
[02:00] <ScottK> That's not how round robin generally works.
[02:00] <rdw200169> *names
[02:00] <ScottK> Generally you ask for a DNS name and it hands you an IP.
[02:00] <erichammond> ScottK: "dig +short us.archive.ubuntu.com" returns (<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>)
[02:00] <LHC> so if I designed alot of sites for local businesses I can run it off them one dedi and charge them little for hosting?
[02:01] <ScottK> Yes, 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] <ScottK> So once you get the answer, your resolver should cache that for the TTL.
[02:01] <maxb> Doesn't it give you all of them in a round-robined order?
[02:01] <maxb> And then if your resolver / API is naive, you just use the first
[02:03] <LHC> wow rdw200169 i installed tasksel
[02:03] <LHC> has alot of options hehe
[02:03] <ScottK> If it's giving you all of them that's not really round robin as I understand it.
[02:03] <LHC> I think ill leave it for the mean time until I learn more
[02:07] <erichammond> So 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:08] <LHC> i ll give you feedback to show we are listening, sorry I dont hav a clue xD
[02:08] <erichammond> I'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:09] <LHC> I remember I seeded ubuntu up to a ratio of 30 or so
[02:09] <erichammond> Their current proposal for sources.list is to list the same source with each of the host names: mirror-roundrobin, mirror1, mirror2, mirror3
[02:10] <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:11] <LHC> amm someone should really help you right now cause your doing good mirroring ubuntu
[02:12] <ScottK> erichammond: That would probably work.
[02:17] <LHC> brb
[02:21] <dinsdale07> how can I temporarily open ports with iptables? I tried on the commandline sudo iptables -I INPUT -p tcp --dport 6984 -j accept
[02:21] <dinsdale07> but it doesn't show up in iptables -L
[02:30] <LHC> rdw200169,
[02:36] <jmarsden> dinsdale07: ACCEPT needs to be UPPER CASE in your rule: sudo iptables -I INPUT -p tcp --dport 6984 -j ACCEPT
[02:37] <dinsdale07> jmarsden, 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] <jmarsden> You just need to insert the new rule ahead of that one.
[02:38] <jmarsden> It has nothing to do with being in a file or not :)
[02:46] <dinsdale07> jmarsden, 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:47] <dinsdale07> I for sure must give a line number or so.
[02:47] <jmarsden> You can specify a rule number in the insert command
[02:47] <jmarsden> sudo iptables -I INPUT 63 -p tcp --dport 6984 -j ACCEPT
[02:47] <jmarsden> where 63 is the line number
[02:47] <jmarsden> Read the man page for iptables more carefully :)
[02:48] <dinsdale07> ah - that makes sense now. And yes you are right - I will.
[02:48] <LHC> is it unix time yet?
[02:48] <dinsdale07> I'm just stranded on the road in a hotel after a snow storm and I just wanted to get my torrent working :-)
[02:48] <dinsdale07> Best time and place to study man pages actually.
[02:48] <LHC> haha
[02:49] <jmarsden> dinsdale07: You carry a *server* around on the road and into a hotel???  This is #ubuntu-server
[02:51] <dinsdale07> I know - I'm abusing my webserver with rtorrent, that's why I have to do all cmd style.
[02:54] <LHC> wtf, im banned from #apache and I never went there before
[02:54] <ScottK> vorian: 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:55] <vorian> ScottK: great! thanks for the heads up
[02:56] <LHC> can someone help me with a little problem
[02:57] <LHC> i have a dedi that my mate and I share, im wondering how to check if there is apache installed, how do I check this
[03:03] <Nat_RH> LHC: whereis apache2
[03:05] <LHC> apache2:
[03:05] <LHC> says that
[03:05] <ScottK> which apache2
[03:06] <Nat_RH> apache2 not installed...
[03:06] <LHC> ty
[03:06] <Nat_RH> which version of ubunut?
[03:06] <ScottK> How about which apache
[03:06] <ScottK> We didn't support apache 1 for a very long time.
[03:06] <LHC> I wanted to find out if he had apache installed, he doesnt
[03:07] <LHC> he has an htdocs folder that allows me to put files there that can be accessed
[03:09] <Nat_RH> Maybe using another server...lighttpd, nginx?
[03:10] <jmarsden> LHC: Maybe the output from sudo netstat -ntlp | grep :80   # will tell you what is listening on port 80...
[03:12] <LHC> 3109/httpd
[03:12] <LHC> that is the output
[03:12] <LHC> Im just wondering can I install apache without causing any problems
[03:13] <jmarsden> Not without making it run on a different port, that's for sure.
[03:13] <jmarsden> There is already a web server (program named httpd) running and bound to port 80.
[03:14] <LHC> should I delete that or is it perfectly fine
[03:14] <jmarsden> It 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:15] <jmarsden> If you have libwww-perl installed, try  HEAD http://myserver  and see what the output says, especially the Server: line
[03:16] <LHC> Server: Apache/2.2.11
[03:16] <jmarsden> Hmmm, then that is what is already installed, in some fashion.
[03:16] <LHC> thats strange I thought eariler it said it wasnt
[03:16] <jmarsden> Maybe your buddy installed it from source not from the Ubuntu package?
[03:17] <jmarsden> Sounds like it is time for the two of you to communicate? :)
[03:18] <LHC> lol yeah
[03:18] <LHC> I think ill just leave it for the mean time
[03:18] <LHC> I wanted to know how to use it like a webhost. lots of domains - one server
[03:18] <LHC> virtualize?
[03:18] <jmarsden> Yes, I think that's wise.  If you want to poke around you could try locate httpd.conf
[03:19] <jmarsden> It's trivial, just lost of <VirtualHost> entries in your config file.
[03:19] <jmarsden> Virtual hosts in the web serving sense, not in the more general "virtual machine" or "virtual server" sense.
[03:20] <LHC> ahh :D
[03:20] <LHC> cause I wanted to use multiple domains from this one dedi
[03:20] <LHC> thats good
[03:20] <jmarsden> Yes, it's been easy to do that for well over a decade using Apache :)
[03:21] <LHC> lol
[03:21] <LHC> im new to this
[03:21] <LHC> i found the lamp folder
[03:22] <LHC> is there any command I can use to search for that file
[03:22] <jmarsden> Oh ugh, your friend used some strange "LAMP" tarball maybe, instead of the Ubuntu packages?
[03:22] <jmarsden> Yes, the command is locate
[03:22] <jmarsden> locate httpd.conf
[03:23] <LHC> cheers
[03:23] <jmarsden> No problem.
[03:24] <LHC> worked like a charm :D
[03:24] <LHC> i like using linux but im slowy learning
[03:25] <jmarsden> It takes a while.  I started in late 1992... so I have a few years head-start :)
[03:25] <LHC> wow lol
[03:25] <LHC> do new commands get added all the time?
[03:27] <jmarsden> Well, 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] <LHC> haha
[03:27] <LHC> how much has it changed xD
[03:28] <jmarsden> well, 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:29] <jmarsden> Nor have the Emacs editing commands... fortunately for my fingers :)
[03:29] <LHC> hehe
[03:29] <LHC> does anyone run window servers?
[03:30] <jmarsden> Sure, lots of people do.  But not many will admit that here on #ubuntu-server :)
[03:31] <LHC> haha
[03:32] <LHC> I think all the big bandwidth guys use freebsd?
[03:33] <steelcityjim> can anyone help with a samba drive share set up
[03:34] <steelcityjim> can see the share on windows network but won't allow me to move files to it
[03:34] <steelcityjim> I think its a password permission issue
[03:34] <steelcityjim> I have the desktop gui installed
[03:35] <LHC> jmarsden, should this Options FollowSymLinks be on?
[03:36] <jmarsden> if you want the web server to follow them, yes.  Otherwise, no, for slightly improved security.
[03:36] <jmarsden> steelcityjim: pastebin your samba config file somewhere for me?
[03:38] <LHC> kk :D
[03:39] <LHC> just remove it?
[03:39] <jmarsden> LHC: if you do nto need it, maybe commetn out that line in the file, or you could just delete the line.
[03:39] <LHC> kk thanks
[03:40] <steelcityjim> jmarsden not sure how to do that
[03:40] <LHC> btw I found that httpd-vhosts.conf file
[03:40] <LHC> I see what you mean
[03:41] <LHC> steelcityjim, haha I see your pastebin thing 010101
[03:41] <jmarsden> steelcityjim: 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] <LHC> one thing jmarsden
[03:41] <LHC> http://pastebin.com/d261154e4
[03:42] <LHC> so thats two websites?
[03:42] <jmarsden> LHC: yes.  The DocumentRoot lines are a bit odd, but yes.
[03:42] <steelcityjim> how do I find that file guys?
[03:43] <LHC> Ill change them to my root which is /home/htdocs
[03:43] <LHC> so /home/htdocs/firstsite  + /home/htdocs/2ndsite
[03:43] <LHC> that would be two sites?
[03:43] <jmarsden> LHC: Sure, that could work.
[03:43] <LHC> cool
[03:44] <LHC> then I point the domain name to that directory?
[03:44] <jmarsden> You make the DocumentRoot for that VirtualHost be that directory.
[03:45] <jmarsden> If you end up doing a couple of hundred sites, you'll want to automate all of this... I think ebox will do it for you
[03:45] <LHC> yeah, btw what happens if I dont make a virtualhost but try to do the same thing? will it break
[03:45] <LHC> il google ebox
[03:45] <jmarsden> !ebox
[03:46] <LHC> looks good
[03:46] <LHC> btw if someone got the server password, are I doomed
[03:46] <jmarsden> Without any virtualhost entries in your httpd.conf (and the files it includes) you just have one web site.
[03:46] <jmarsden> The server password as in the root account password?
[03:46] <jmarsden> Probably, unless you trust that person a lot :)
[03:47] <jmarsden> (Well, to be specific... *you* are not doomed, but your server might be!)
[03:47] <LHC> haha
[03:47] <LHC> I guess all the popular sites passwords are 100 characters long
[03:48] <steelcityjim> jmarsden  ok i think i pasted what you need pastebin 117913
[03:48] <LHC> I can imagine loggin onto youtube and being redirected to a trojan site xD
[03:49] <steelcityjim> is that what you need jmarsden?
[03:49] <jmarsden> Yes.  So... which share has the issue?  public?
[03:50] <steelcityjim> yes
[03:50] <steelcityjim> this is my first config
[03:50] <steelcityjim> so I probably screwed something up
[03:52] <jmarsden> And 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] <steelcityjim> well i don't know about read since I don't have any file in it yet
[03:52] <steelcityjim> but I cant write for sure
[03:52] <infomomo> hey guys
[03:52] <jmarsden> OK.  Do       ls -ld /home/jim/Public/      # and tell me what it says
[03:53] <infomomo> ubutnu server here, and i would like to swicth the repositories to my country's specific
[03:53] <infomomo> it's possible ?
[03:53] <steelcityjim> where do I do that?
[03:53] <jmarsden> infomomo: edit /etc/apt/sources.list
[03:53] <steelcityjim> in the browser?
[03:53] <jmarsden> steelcityjim: At a shell command prompt... this is a server, right?
[03:53] <steelcityjim> im in the desktop gui
[03:54] <infomomo> jmardsen: i must edit  by hand
[03:54] <infomomo> ?
[03:54] <infomomo> i am in canada you see
[03:54] <steelcityjim> no desktop trying to convert to server
[03:54] <infomomo> usually iweb's or sherbrooker are the fastest ones
[03:54] <jmarsden> infomomo: 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] <infomomo> me too :D but it seems like ubuntu desktop has the tool to choose the fastest server
[03:55] <infomomo> why wouldnt it be available for server
[03:55] <jmarsden> Because it is GUI-based and server does not come with a GUI?
[03:55] <infomomo> maybe :D
[03:56] <LHC> btw jmarsden sorry to interupt, after I set those. How do I access the second one?
[03:56] <jmarsden> So you *could* install ubuntu-desktop on the server and then use that tool... but it seems easier to just edit the file :)
[03:56] <infomomo> right
[03:56] <jmarsden> LHC: http://www.seconddomain.com
[03:56] <infomomo> i dont need a desktop on the server
[03:56] <LHC> I donthave any domains for it yet
[03:56] <LHC> its just using the server ip
[03:56] <steelcityjim> I could not get the desktop to work from the server
[03:56] <steelcityjim> so installed the desktop
[03:57] <jmarsden> LHC: 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:58] <jmarsden> steelcityjim: So you are in #ubuntu-server asking for support for a ubuntu desktop machine... this is not really a good idea...
[03:58] <steelcityjim> doh
[03:58] <jmarsden> steelcityjim: Anyway, what does ls -l /home/jim/Public/ say ?
[03:58] <LHC> oh
[03:58] <steelcityjim> where do i put that in?
[03:59] <steelcityjim> im in the gui
[03:59] <LHC> jmarsden, I saw an option on tasksel about that
[03:59] <jmarsden> steelcityjim: You type a command at a shell prompt.  Open up a terminal window and type it.
[03:59] <jmarsden> LHC: Sure you can ... but I
[04:00] <jmarsden> am not going to teach you how to configure DNS servers tonight too :)
[04:00] <LHC> lol yeah
[04:00] <LHC> what will the end result be? allowing me to type in any url and itll work?
[04:01] <jmarsden> Any url that resolves to the IP of your server and which matches one of the ServerName or ServerAlias lines, yes.
[04:01] <steelcityjim> no such file or directory jmarssden
[04:01] <steelcityjim> is that the number 1
[04:01] <steelcityjim> or L
[04:01] <LHC> nice
[04:01] <LHC> ill give that a go another night lol
[04:02] <jmarsden> steelcityjim: Lima Sierra  ls "ell" "ess"
[04:02] <steelcityjim> no such file or directory
[04:02] <steelcityjim> did I bone the file creation up?
[04:02] <jmarsden> steelcityjim: You did create a directory called /home/jim/Public, right?  Before you tried to share it?
[04:03] <steelcityjim> i thought i did
[04:03] <jmarsden> I would check on that if I were you :)
[04:04] <jmarsden> Remember that public and Public are two different directories in Linux...
[04:04] <steelcityjim> oh man
[04:04] <steelcityjim> wait maybe i jacked that search up
[04:05] <steelcityjim> how do I create the directory in the gui?
[04:05] <jmarsden> I forget.  In the shell, do    mkdir /home/jim/Public
[04:05] <jmarsden> You want help on the GUI, ask in #ubuntu, not here :)
[04:07] <steelcityjim> ok did the mkdir /home/jim/public
[04:08] <steelcityjim> then did the ls -l command and it gave total 8
[04:08] <jmarsden> No... Public not public.. Your config file used Public so that is what you need to use
[04:08] <steelcityjim> mfer
[04:09] <LHC> jmarsden
[04:09] <jmarsden> You need to be really accurate about typing in the Lunux/Unix world
[04:09] <LHC> im going to buy thelhc.info xD
[04:09] <jmarsden> LHC: Have fun :)
[04:09] <LHC> yes its like 99p
[04:09] <LHC> itll be good practise :P
[04:09] <infomomo> how to update ubuntu-server ?
[04:09] <steelcityjim> ok says can't creat directory home/jim/Public file exists
[04:09] <infomomo> apt-get update?
[04:09] <infomomo> apt-get upgrade?
[04:10] <jmarsden> infomomo: sudo apt-get update && sudo apt-get upgrade
[04:10] <infomomo> i did
[04:10] <infomomo> :D
[04:10] <infomomo> thanks
[04:10] <infomomo> i am at kernel 2.6.27-7
[04:10] <infomomo> running LAMP
[04:10] <LHC> anyone buy from godaddy before?
[04:10] <infomomo> domain yes
[04:10] <infomomo> why?
[04:11] <LHC> are the prices for a year
[04:11] <LHC> or one month
[04:11] <jmarsden> There is also a package called unattended-upgrades that will do security updates automatically for you
[04:11] <infomomo> 1 year for domains brother
[04:11] <LHC> ahh nice
[04:11] <LHC> WOW infos are cheap
[04:11] <infomomo> thats whats i need :D
[04:11] <LHC> 82 pense
[04:11] <infomomo> hun ?
[04:11] <infomomo> let me check
[04:11] <LHC> 82p
[04:11] <infomomo> show us link please
[04:11] <LHC> www.godaddy.com
[04:12] <LHC> try your name
[04:12] <steelcityjim> jmarsden  cannot creat directory /home/jim/Public file exists
[04:13] <infomomo> jmarsden: it's allready installed :D guess i did during the install :D
[04:13] <jmarsden> steelcityjim: OK, so we are back to ... what does  ls -ld /home/jim/Public    output ?
[04:13] <LHC> infomomo, check your name?
[04:14] <infomomo> hun ?
[04:14] <steelcityjim> drwxr-xr-x 2 jim jim 4096 2009-02-13-15:28
[04:14] <LHC> did you check godaddy about a domain
[04:15] <steelcityjim> then in light blue after /home/jim/Public
[04:15] <infomomo> the price you see is only for the first year
[04:15] <infomomo> then its regilar price
[04:15] <infomomo> 10$/year
[04:15] <jmarsden> steelcityjim: 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.txt
[04:15] <LHC> ahh so I can quit then come back? xD
[04:16] <jmarsden> LHC: Nope, then GoDaddy will steal your domain and ask you even more money for it...
[04:16] <LHC> ill probably change my name then xD
[04:16] <LHC> LHC2!!
[04:17] <LHC> one more thing should all the information be correct cause I dont want my address be floating around the net
[04:17] <steelcityjim> damn now the folder is gone on the linux machine
[04:17] <jmarsden> Officially it should be correct.  There are privacy services you can use to hide that info for extra $$$
[04:18] <jmarsden> steelcityjim: I doubt it... unless you deleted the folder it should stick around...
[04:18] <LHC> meh Ill just modify it, im not expecting high traffic anyways
[04:18] <steelcityjim> ok I got it back
[04:19] <jmarsden> steelcityjim: OK.  So... did you do   echo junk >/home/jim/Public/junk.txt
[04:19] <steelcityjim> but 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 destination
[04:20] <jmarsden> Stop playing around ... one thing at once: did you do   echo junk >/home/jim/Public/junk.txt
[04:20] <steelcityjim> yes just did that at terminal
[04:21] <jmarsden> OK.  So now go to a windows PC and look at that shared directory... can you see the file?
[04:21] <steelcityjim> no
[04:22] <steelcityjim> giving me contact network admin you don't have rights to access
[04:23] <steelcityjim> have access permissions or no logon servers available
[04:24] <steelcityjim> now im able to access my shared folders on the windows pcs with the linux
[04:24] <jmarsden> For a quick test, try   chown 777 /home/jim/Public/    and then see if the windows PCs can see that share
[04:24] <steelcityjim> at termnal right
[04:25] <jmarsden> OF course :)
[04:25] <steelcityjim> operation not permitted
[04:25] <ScottK> So where do I find CA.pl on Fedora?  Why /etc/pki/tls/misc/CA.pl.  Who wouldn't haved guessed that.
[04:26] <jmarsden> Hmmm.  You are logged in as jim right?
[04:26] <steelcityjim> yea
[04:26] <ScottK> Equally obvious was the package I needed is called openssl-perl.
[04:26] <jmarsden> ScottK: locate is a handy command :)
[04:26] <ScottK> jmarsden: 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:27] <ScottK> Installing I'm fine on because I do know yum install apt.
[04:27] <jmarsden> That's true.  I think you can do something like rpm --whatprovides something   # but it's been a while since I knew RPM
[04:28] <steelcityjim> jmarsden actually it says changing owership of /home/jim/Public/ operation not permitted
[04:28] <jmarsden> steelcityjim: My bad... chmod 777 /home/jim/Public
[04:29] <steelcityjim> ok did that
[04:29] <steelcityjim> still can't see it on windows machine
[04:29] <steelcityjim> but I also don't see anything else in the folder
[04:29] <steelcityjim> on the linux
[04:31] <jmarsden> steelcityjim: The file junk.txt should be in there...
[04:31] <LHC> jmarsden, what does chmod 777 do
[04:31] <jmarsden> Sets permissions so any unix suer can read, modify or view that directory
[04:31] <steelcityjim> yes that file is there jmarsden
[04:32] <steelcityjim> I thought the chmod would put something else in there
[04:32] <steelcityjim> ok quick questions
[04:32] <jmarsden> so... I'm not sure... reboot the windows PC and reconnect to the share?
[04:33] <steelcityjim> server settings
[04:33] <steelcityjim> authentication mode Domain
[04:33] <steelcityjim> is that what I should have?
[04:33] <jmarsden> Wait... what?  You are running an Active Directory Domain?  Do you now what those are?
[04:33] <steelcityjim> no
[04:33] <steelcityjim> lol
[04:33] <jmarsden> s/now/know/
[04:34] <jmarsden> Then don't do that.  Was that the default??
[04:34] <steelcityjim> 4 options
[04:34] <steelcityjim> ads
[04:34] <steelcityjim> server
[04:34] <steelcityjim> share
[04:34] <steelcityjim> user
[04:34] <steelcityjim> and domain 5 sorry
[04:35] <steelcityjim> oh hang on
[04:35] <steelcityjim> changed it to user
[04:35] <steelcityjim> and i can now see the file on the windows pc.....great success
[04:37] <LHC> jmarsden instead of buying .info I got a free.us.to one
[04:37] <LHC> :D
[04:37] <jmarsden> For a small home network you probably want user... yes.  OK, we got there!
[04:38] <steelcityjim> ok now i know your gonna love this
[04:38] <jmarsden> LHC: OK... now have fun with virtual domains on your web server :)
[04:38] <steelcityjim> how do I set this up for remote access
[04:39] <LHC> haha yeah
[04:39] <jmarsden> Set up what for remote access?  remote file sharing over the Internet?
[04:39] <steelcityjim> yes
[04:39] <LHC> do when I add them do I point it to /htdocs/2nd ?
[04:39] <LHC> if so im doing it :D
[04:40] <steelcityjim> and I don't have a static ip?
[04:40] <jmarsden> steelcityjim: 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:41] <steelcityjim> lol
[04:41] <steelcityjim> ok answer a few ?'s real qick
[04:41] <jmarsden> Why not use use something simple like FileZilla on the remote PC and SSH to your Linux box?
[04:41] <steelcityjim> is filezilla linux or windows?
[04:42] <jmarsden> Both, but I was thinking use it on remote Windows client PCs
[04:42] <steelcityjim> i was going to ask about ssh
[04:42] <steelcityjim> now ssh is a server application linux correct?
[04:42] <jmarsden> There is an ssh client and an ssh server, yes
[04:42] <jmarsden> They exist for both Linux and Windows...
[04:43] <steelcityjim> i did not see that in the standard apps
[04:43] <steelcityjim> I would want to set up as ssh server right
[04:43] <jmarsden> what is a standard app?   sudo apt-get install openssh-server
[04:43] <steelcityjim> the list in the desktop gui
[04:44] <jmarsden> Quit thinking about and using a GUI, learn to use a server :)
[04:44] <steelcityjim> yea thats what people keep telling me
[04:44] <steelcityjim> I tried for 3 nights to get the server working via the command line
[04:45] <steelcityjim> did not go well
[04:45] <steelcityjim> however don't think i was getting the best direction
[04:45] <steelcityjim> not like you
[04:45] <jmarsden> So: sudo apt-get install openssh-server  # on the Linux box
[04:46] <steelcityjim> ok
[04:46] <steelcityjim> then im assuming i have to configure a sing on and password
[04:46] <jmarsden> Then open port 22 in your router and point it to the IP of the Linux box
[04:46] <jmarsden> You already did, you configured the user called jim
[04:47] <jmarsden> You can add more users, if you want, but jim will do for now
[04:47] <steelcityjim> now from the remote
[04:47] <jmarsden> remote like not on your local LAN?
[04:47] <steelcityjim> i type in the ip address of my internet connection at the time
[04:47] <steelcityjim> yes
[04:48] <steelcityjim> obviously that changes everytime i sign in and out?
[04:48] <steelcityjim> since its dynamic
[04:48] <jmarsden> Once you have that router configured right, yes.  You set up FileZilla to talk SFTP on port 22 to your public IP.
[04:48] <jmarsden> You can use something like no-ip.com to get a dynamic DNS entry if you want to avoid that hassle.
[04:49] <steelcityjim> now I have read some ip providers have an issue with this
[04:49] <jmarsden> Well, for occasional SSH use to manage your home server, I doubt it.
[04:49] <jmarsden> If you start firing masses of big files back and forth, sure...
[04:49] <steelcityjim> like movies?  lol
[04:50] <jmarsden> They want you to sign up for a business grade Internet connection.  Yes, like any large files.
[04:50] <steelcityjim> and im assuming for hosting a personal web site also
[04:50] <jmarsden> Yes.  Read the Terms of Service agreement from your ISP to check what their rules are.
[04:51] <steelcityjim> im guessing they want more $$
[04:51] <jmarsden> Correct.
[04:51] <steelcityjim> they want $10 more a month for a static ip
[04:51] <steelcityjim> so how does the no-ip.com work?
[04:52] <jmarsden> You 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:53] <steelcityjim> do they charge for that?
[04:53] <jmarsden> Then 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] <steelcityjim> oh thats sweet
[04:53] <jmarsden> No, it is free but you have to keep clicking on an email every 60 days to keep it.
[04:53] <jmarsden> You can pay for upgraded services but I have not done that.
[04:54] <jmarsden> There are many such services.  dyndns is another one.
[04:54] <steelcityjim> excellent i'll check into it
[04:54] <LHC> is there a way to check what ports are open?
[04:54] <jmarsden> See http://www.no-ip.com/services/managed_dns/free_dynamic_dns.html for info on their free service.  Works for me.
[04:55] <steelcityjim> you have been very helpful
[04:55] <LHC> wow jmarsden you really do like to help haha I just came back and theres a whole page xD
[04:55] <LHC> well done
[04:55] <jmarsden> LHC: 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:56] <LHC> ahh checking what ports are open on my dedi
[04:56] <LHC> via putty
[04:56] <jmarsden> On the server if you do    sudo netstat -ntlp   # you will see what TCP services are listening on what ports there
[04:57] <jmarsden> On a PC at home you could run nmap to portscan the dedicated server and check it that way too...
[04:57] <LHC> hehe it worked perfectly again thanks
[04:57] <jmarsden> No problem.
[04:58] <LHC> http://pastebin.com/db97b1a9
[04:59] <LHC> so is that perfect?
[05:00] <jmarsden> Looks 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] <jmarsden> But as it is it will work.
[05:00] <LHC> oh I suppose your way is better practise :D thanks alot man
[05:03] <jmarsden> See http://pastebin.com/d389ecc90 for an example that shows what I ended up doing on a production server...
[05:03] <jmarsden> It hosts maybe 150 domains...
[05:04] <LHC> WOW
[05:04] <LHC> 150?
[05:04] <LHC> why so much
[05:04] <jmarsden> Sure, that's small potatoes for todays world.  Small businesses that are clients of the company I work for...
[05:04] <LHC> once I get this all good I think ill maybe sell webspace for cheap
[05:05] <LHC> cool
[05:05] <jmarsden> You can do 1000 web sites per server if they are all small static sites :)
[05:05] <LHC> the whole reason I was looking for this is because Im going to go around to local businesses and get them an online presence
[05:06] <LHC> so I wanted to know how to do it xD its very interesting i like it
[05:06] <jmarsden> If 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:08] <LHC> lol yeah
[05:08] <LHC> itll most likely be static as said, maybe their menu or services and a contact form
[05:10] <LHC> dammit forbidden xD
[05:15] <ScottK> OK, so $CLIENT now is their very own CA and their postfix box is using the self signed certs.
[05:15] <ScottK> Time for Scotch after logging out of the Fedora box.
[05:20] <LHC> for apache does it matter where you place the htdocs file? I got it in /home/htdocs whilst apache is in /opt/lampp/
[05:22] <jmarsden> LHC: It can be anywhere you want, even a CDROM :)  Just be sure that the apache server can read the files there
[05:22] <LHC> haha cool
[05:22] <LHC> how do I make sure?
[05:23] <jmarsden> Directory permissions all the way down the tree... so if you use /home/htdocs then check using ls -ld /home and ls -ld /home/htdocs
[05:24] <jmarsden> You 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:25] <LHC> drwxr-xr-x 8 root root 4096 2009-02-03 00:23 /home
[05:25] <LHC>
[05:25] <LHC> drwxr-xr-x 9 root root 4096 2009-02-14 05:53 /home/htdocs
[05:25] <LHC> so that is fine
[05:25] <jmarsden> Should be fine, you have x permissions for everyone all the way down, and read for everyone too.
[05:26] <LHC> nice
[05:32] <steelcityjim> jmarsden you said your using this no-ip.com
[05:32] <jmarsden> Yes...
[05:32] <steelcityjim> what router you got?
[05:33] <steelcityjim> seems this won't work with some routers
[05:33] <jmarsden> I'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] <steelcityjim> thats it
[05:33] <jmarsden> Why would it not work with some routers...
[05:33] <steelcityjim> i got lynksys
[05:33] <steelcityjim> thats what is say on their site
[05:34] <jmarsden> It just uses HTTP (web access)... hmm, I've never seen it fail, will check...
[05:34] <steelcityjim> they only list 4 or 5 that it works with
[05:34] <LHC> jmarsden I got an idea, I may reinstall apache so I know everything will work cause what is on atm doesnt seem to work
[05:34] <steelcityjim> guranteed
[05:34] <steelcityjim> I signed up
[05:34] <steelcityjim> gonna give it a shot
[05:34] <jmarsden> LHC: Well, it was working before you started editing things, right?
[05:34] <jmarsden> So either you broke it or it is still working :)
[05:35] <LHC> yeah when index.html was in the htdocs dir
[05:35] <LHC> I dont think this multiple domains thing isnt working for me Ill just put it back
[05:35] <jmarsden> What exactly is "not working" now?
[05:36] <LHC> http://thelhc.us.to/
[05:36] <LHC> its forbidden
[05:36] <jmarsden> You mean you are getting an error 403?
[05:36] <LHC> yep
[05:36] <LHC> but when I add the folder http://thelhc.us.to/thelhc/ it works
[05:37] <LHC> btw thats just a test page lol has a curse word on it
[05:37] <jmarsden> So 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:38] <LHC> <VirtualHost *:80>
[05:38] <LHC> ServerName thelhc.us.to
[05:38] <LHC> ServerAlias thelhc.us.to
[05:38] <LHC> DocumentRoot /home/htdocs/thelhc

[05:39] <jmarsden> OK.  Seems reasonable.  And the file is in /home/htdocs/thelhc/ ?
[05:39] <steelcityjim> how difficult is makeing a web page?
[05:40] <jmarsden> LHC: Did you restart the web server after the domain name became active and pointed to your IP?
[05:40] <LHC> ahh no
[05:40] <jmarsden> steelcityjim: Trivial... for a trivial page :)
[05:40] <LHC> that might be the problem?
[05:40] <jmarsden> Yesm it might well.
[05:40] <LHC> would that reboot the whole server?
[05:40] <jmarsden> No.
[05:41] <LHC> thank god haha
[05:41] <steelcityjim> and thats apache I use for that correct
[05:41] <jmarsden> steelcityjim: 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:42] <steelcityjim> any text editors better than others?
[05:42] <jmarsden> LHC : If you can find a command called apachectl try   sudo apachectl restart
[05:43] <LHC> bash not found haha, i think i have to use kill command
[05:43] <jmarsden> steelcityjim: Yes.  But there's a bit of a "religion" thing about which ones people prefer... use one you already know well.
[05:43] <jmarsden> LHC Try not to do that...
[05:43] <LHC> it sounded cool though xD
[05:43] <steelcityjim> well I have not used any which do you prefer
[05:43] <jmarsden> LHC: Do you know how the httpd was started?
[05:44] <LHC> nope the other fella does that, he installed it
[05:44] <LHC> I have a right mind of wiping it
[05:44] <LHC> backup the files I need the clean install
[05:44] <jmarsden> steelcityjim: I use Emacs but it takes a while to get comfortable with.  Try nano for something quick and simple.
[05:44] <steelcityjim> ok apt-get install nano/
[05:45] <steelcityjim> ?
[05:45] <jmarsden> LHC; Your call.  So locate apachectl  does not find it at all?
[05:45] <jmarsden> steelcityjim: sudo apt-get install nano   # but it may already be installed?
[05:45] <LHC> oh it did,  /opt/lampp/bin/apachectl
[05:45] <steelcityjim> jmarsden you ever see a captive works 3000hd?
[05:46] <LHC> http://www.captiveworks.com/cw3000hd.php
[05:46] <LHC> he did now haha
[05:46] <steelcityjim> you familiar lhc?
[05:46] <jmarsden> LHC: so do   sudo /opt/lampp/bin/apachectl restart
[05:47] <LHC> wow jmarsden you know everything haha
[05:47] <jmarsden> steelcityjim: No, I don't think so.  I used to be involved in setting up satellite comms at one point, but not recently...
[05:48] <LHC> I think its working
[05:48] <LHC> ill check
[05:48] <jmarsden> LHC: No, I just know a fair bit about network and system admin stuff, because I have done it for years...
[05:48] <steelcityjim> linux based media satellite reciever
[05:48] <steelcityjim> pretty neat device
[05:49] <LHC> haha fair enough
[05:49] <LHC> so far its working I just have to point it to thelhc folder
[05:49] <jmarsden> Interesting idea... much will depend on how good the software it uses is...
[05:50] <steelcityjim> Ive had it for almost a year now
[05:50] <steelcityjim> works pretty well
[05:51] <steelcityjim> decodes hd satellite, dvr, web browser, cd/dvd burner
[05:52] <steelcityjim> im sure you could fine tune it
[05:53] <jmarsden> Probably 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] <steelcityjim> they claim they can't put blu ray in because of the driver or something
[05:54] <steelcityjim> sony will sue
[05:54] <LHC> sucky sony
[05:54] <steelcityjim> thats the only thing its missing
[05:54] <jmarsden> Hmmm, maybe there is no open source BluRay recording support in Linux yet... could be.
[05:55] <steelcityjim> is there open support for hdmi?
[05:55] <steelcityjim> from my understanding that has encryption also
[05:58] <jmarsden> Some interest comments and suggestions for HD playback stuff at https://help.ubuntu.com/community/RestrictedFormats/BluRayAndHDDVD
[05:58] <jmarsden> But nothing there directly says anything about *recording* to Bluray... so I'm guessing it isn't (yet?) doable.
[05:58] <LHC> decrypt?
[06:00] <jmarsden> I suppose you could just put a 2TB hard drive in there instead, that should be good to store quite a few movies :)
[06:00] <LHC> haha
[06:00] <LHC> do you know what hdbits.org is
[06:00] <jmarsden> Sounds liek a place to get HD movie keys from?
[06:01] <LHC> its a hdtorrent tracker
[06:01] <LHC> it is pro for all hd stuff, the most popular hd tracker. If i get an invite ill pass it onto you?
[06:02] <jmarsden> If you want, sure.
[06:02] <LHC> do you know what, what.cd is
[06:02] <LHC> the best music tracker xD
[06:05] <steelcityjim> lhc what.cd what is it?
[06:05] <LHC> for music
[06:05] <steelcityjim> how do you register?
[06:06] <LHC> its private
[06:06] <LHC> you have to get an invite etc
[06:06] <LHC> it counts your downloads and uploads so if you download loads, itll say stop or itll ban you
[06:07] <steelcityjim> kinda like your own personal itunes
[06:08] <LHC> sorta but better quality haha
[07:05] <LHC> WOHOOOOOOOOOooooooooooooooooooooo
[08:08] <LHC> hey anyone here
[09:02] <LHC> hey
[09:02] <LHC> anyone know anything about permissions
[09:02] <Kamping_Kaiser> !anyone
[09:03] <LHC> haha
[09:03] <LHC> !coolshitbro
[09:03] <LHC> who knows about permissions
[09:03] <LHC> beat that kaiser
[09:04] <Kamping_Kaiser> !ask
[09:04] <LHC> i want to set up a ftp account so the person can upload html and css to their webspace
[09:05] <LHC> but not go outside of that directory
[09:05] <LHC> http://ubuntuforums.org/showthread.php?t=1057657
[09:05] <LHC> I tried this so far
[09:07] <Kamping_Kaiser> I dont do ftp, so i cant help with that sorry. hang around, someone else might know how
[09:08] <LHC> k
[09:12] <LHC> what do you do?
[09:13] <Kamping_Kaiser> ssh/scp
[09:13] <LHC> ahh
[09:13] <LHC> basically I have a whole dedi to use and I hardly use it
[10:11] <LHC> hey
[10:12] <LHC> do you know How set up an account so a user can upload to a web directory, but cannot go outside that dir
[11:08] <Hellsheep> Hey
[11:10] <Hellsheep> I 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 server
[11:10] <Hellsheep> I know it's not a 64-bit server, but i see x86 and im not sure whether to use it or i686
[11:12] <Kamping_Kaiser> "x86_64" is one string
[11:12] <Kamping_Kaiser> eg, 64bit x86
[11:16] <Hellsheep> Yeah, but is it used for 32bit CPU's?
[11:17] <Hellsheep> I understand x86 to be 32bit
[11:17] <Hellsheep> so to see x86 and 64 in both confuses me
[11:18] <Kamping_Kaiser> x86 is the architecture, not related to the number of bits :)
[11:18] <Kamping_Kaiser> 686 is the 32bit version (just for the logs)
[11:19] <Hellsheep> oh, i see.
[11:19] <maswan> yes, 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:20] <Hellsheep> Agreed
[11:20] <Hellsheep> Because i understand x64 to be 64-bit
[11:20] <maswan> they renamed it amd64 later, but that has only partial uptake
[11:20] <Hellsheep> and x86_64 to me is like
[11:20] <Hellsheep> A mixture
[11:20] <Hellsheep> Well
[11:20] <Hellsheep> 686 it is then
[11:21] <maswan> x86_64 is just another name for amd64/x64/em64t
[11:22] <Kamping_Kaiser> isnt x64 used for itaniums? (IA64)
[11:22] <maswan> no, it isn't
[11:22] <maswan> x64 is what sun and microsoft call it
[11:23] <maswan> and it being amd64/em64t/x86_64
[11:23] <Kamping_Kaiser> aah, of course.
[11:24] <maswan> since em64t/x86_64 are crap names and amd64 sounds a bit confusingly vendor-specific though it really isn't.
[11:25] <Kamping_Kaiser> no much more specific then IA32 or IA64 (imo)
[11:25] <maswan> yeah, I agree
[11:25] <maswan> ah, intel now call it "intel 64", not to be confused with "intel architecture 64" which is itanium. ugh.
[11:27] <Kamping_Kaiser> yep. loved that.
[12:47] <Kartagis> how can i get dhcp to log in it's own file?
[12:49] <Kamping_Kaiser> give syslogd a poke so it stops logging into syslog and starts into $otherfile
[16:30] <maDChoPR> can anyone help me with bacula and win32 client?
[16:58] <roy_hobbs> What 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?
[17:04] <tewmten> nfs perhaps?
[17:05] <tewmten> i think you can do stuff like that with samba also
[17:05] <tewmten> but personally ive only did those setups with nfs
[17:06] <roy_hobbs> I was looking into AFS and DRBD.  I was interested in how enterprise networks handle such things.
[17:06] <tewmten> ok i dont know about that
[17:07] <tewmten> afs is the apple thing, right? i have a faint memory i used it a bit with my powerbook, but that was years ago
[17:07] <roy_hobbs> no afs is a distributed network file system
[17:08] <tewmten> ah ok
[17:09] <tewmten> i was thinking afs, apple file share
[17:09] <tewmten> http://en.wikipedia.org/wiki/Andrew_File_System
[17:09] <tewmten> thats the óne you mean, right?
[17:09] <roy_hobbs> yes
[17:10] <tewmten> seems cool
[17:39] <domas> hi!
[17:39] <domas> http://p.defau.lt/?ILkL1opB2Tcs4iaRCW50pQ <-- do high Slab/SUnreclaim values mean I have memory leak in kernel somewhere?
[17:47] <cart2man> anyone have any ideas where to go from here in terms of recovering my RAID10 array? http://pastebin.com/m39890121
[17:52] <Mal3ko> anyone famiiar with pure-ftpd here?
[17:54] <ZipmaO> Hi, I'm having a problem getting php mail function to work on my ubuntu web server. Someone's got a hunch?
[18:02] <ZipmaO> Need help configuring the mail server to send emails through ISP:s smtp server and set the correct [mail function] setting in php.ini
[18:12] <domas> ARGHHHH, I kept working tree of hour's work in /tmp, then rebooted
[18:57] <axisys> i have a second network card.. do I just add this to the interfaced file `iface eth1 inet dhcp' ?
[18:57] <axisys> sudo ifconfig eth1 dynamic did not help
[18:57] <ivoks> open the file and write
[18:58] <axisys> this is how the interfaces file currently looks like
[18:58] <axisys> http://pastebin.com/f3e716c63
[18:59] <axisys> so when I add .. do I have to run anything to activate short of rebooting?
[18:59] <ivoks> you don't have to reboot
[18:59] <ivoks> just ifup eth1
[18:59] <ivoks> you know what 'auto eth0' stands for?
[19:00] <axisys> ivoks: no
[19:00] <ivoks> auto eth0 = when starting networking, start eth0 interface
[19:00] <ivoks> automaticaly
[19:00] <ivoks> that's why there's auto eth0
[19:00] <ivoks> so if you want that for eth1...
[19:02] <domas> is there a way to use canonical support without using landscape? :)
[19:02] <axisys> how do I make sure my default gw interface is eth0 ?
[19:02] <ivoks> axisys: good question
[19:02] <ivoks> hm...
[19:03] <axisys> right now route shows this
[19:03] <axisys> default         <IP_ADDRESS>     <IP_ADDRESS>         UG    100    0        0 eth1
[19:03] <axisys> default         <IP_ADDRESS>     <IP_ADDRESS>         UG    100    0        0 eth0
[19:03] <axisys> lol
[19:04] <ivoks> axisys: to be honest, i don't know :D
[19:05] <ivoks> i don't think that's possible with dhcp
[19:06] <ivoks> you can't flush routes and set your own
[19:06] <axisys> i could have a line in interfaces to del the default route to eth1
[19:06] <axisys> looking for the syntax
[19:06] <ivoks> since dhcp server will resend everything
[19:06] <ivoks> you could, yes
[19:06] <ivoks> post-up 'route del default gw dev eth1'
[19:07] <axisys>  sudo route del -net <IP_ADDRESS> gw <IP_ADDRESS> dev eth1
[19:07] <ivoks> but, i'm not sure that will work once dhcp client asks for lease again
[19:07] <ivoks> but...
[19:07] <ivoks> you don't need sudo
[19:07] <ivoks> you should look at /etc/dhcp/dhclient.conf
[19:08] <axisys> ivoks: so add this line exactly? post-up 'route del default gw dev eth1'
[19:08] <ivoks> so that client doesn't accept routes for eth1
[19:08] <ivoks> axisys: yes, but as i said, i'm not sure that will work
[19:08] <ivoks> since dhcp client asks for routes every couple of minutes
[19:09] <ivoks> and you only bring interface up once
[19:09] <ivoks> that's why i think /etc/dhcp3/dhclient.conf should provide some solutions
[19:11] <axisys> i have to run for a min.. but i think u r right.. i just should not request for the routers in the dhcpclient file
[19:11] <axisys> and just add the default route as a script for eth0
[19:11] <ivoks> right
[19:11]  * axisys will be back in few hrs
[20:22] <domas> kees: that was fast! :)
[20:23] <kees> domas: caught me just as I was sitting down at the computer.  :)
[20:23] <domas> kees: I think I can try producing a C-based small testcase that wouldn't need apache
[20:23] <domas> kees: (and leak doesn't go away until you reboot)
[20:23] <kees> domas: oh! that would be very useful, yeah
[20:24] <kees> domas: yeah, though I guess what I meant was, if you disable apparmor, the leak stays away?
[20:24] <domas> yup, /etc/init.d/apparmor stop doesn't release memory
[20:24] <kees> if it's limited to just one action, it should be (hopefully) easy to track down and fix.
[20:24] <domas> it is still unreclaimable
[20:24]  * kees nods
[20:24] <domas> kees: thats the only thing I changed
[20:24] <kees> right, but if you boot, turn off apparmor, and then run the test-case, it's okay?
[20:24] <domas> I switched locking mode for a process that was apparmor-audited
[20:24] <domas> kees: yup
[20:25] <domas> no apparmor, nothing bad happens
[20:25] <domas> I have 200 servers doing the job, few with apparmor
[20:25] <domas> those few caused troubles :)
[20:25] <kees> dang, sucky bug.  but like I said, with a test-case, it should be easy to find.
[20:25] <kees> yeegh
[20:25] <domas> we have canonical contract, but we didn't manage to find out how to open issues without installing landscape :)))
[20:26] <kees> i'm honestly not sure how to either; I think you can just call the support phone #
[20:26] <domas> cd /tmp
[20:26] <domas> ergh
[20:26] <domas> damn, today I rebooted one box and it wiped out working tree with few hours of diffs
[20:26] <domas> I should avoid putting stuff into /tmp :)
[20:27] <kees> eek
[20:34] <LHC> does anyone have this in their home? or work. Like have a sound system that people can add sounds to a playlist
[20:51] <domas> kees: hahaha, http://p.defau.lt/?HxHScO_HJyFcgLVE2Fp8qw
[20:52] <domas> kees: this is what I hit with my testcase ;-D
[20:52] <domas> kees: and immediate leak too
[20:54] <domas> kees: I guess next step for me would be fixing it, but I really really don't want to go into kernel hacking land ;-)
[21:00] <kees> domas: heh, okay, just attach the testcase to the bug, and I'll start getting the people we need to get it fixed.
[21:00] <domas> kees: done
[21:00] <kees> great, thanks!
[21:00] <domas> it is all in the bug now
[21:00] <domas> thanks for attention, immediately spotted you on subscribers :)
[21:01] <domas> the kernel message buffer problem looks scary :)
[21:02] <kees> yeah
[21:13] <domas> hehe, I was solving other issue today
[21:13] <domas> default php5-apc uses pthread futexes on shared memory
[21:13] <domas> so if some apache kid segfaults, it leaves a deadlock
[21:15] <domas> damn I hate computers :)
[21:21] <domas> haha, kees, sorry to kill your vm! :)
[21:22] <domas> kees: one could treat this as direct DoS vector
[21:24] <domas> as fcntl kills apparmor in confined environments (I guess one could manage to do same with PHP and such)
[21:26] <vikram> Anyone 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 chassis
[21:26] <domas> look for one that doesn't blink
[21:26] <domas> =)
[21:27] <vikram> Sadly they dont have individual lights
[21:27] <domas> well, then you can try guessing
[21:27] <domas> if you don't have visual IDs, the only remaining thing is shutting system down, and checking serial numbers
[21:29] <vikram> The drives are split across multiple controllers, can i at least tell which driver owns which device nodes?
[21:29] <domas> ghm, dmesg tells you some of that
[21:31] <vikram> I had a look at that, but it didnt say which driver, it all appears like it comes from scsi
[21:31] <vikram> x:0:0:0
[21:31] <domas> hehehe, it is quite strange not to have individual LEDs ;-)
[21:32] <vikram> i'm hunting through /sys at the moment
[21:33] <domas> I'm spoiled by good hardware :)
[21:34] <vikram> Equilibrium
[21:34] <vikram> Ok i can tell which drives are on the same controller, but which controller is another question
[21:35] <vikram> there must be a vendor/model/id label somewhere here...
[21:40] <vikram> ah, here is a thought, i can put the drive to sleep with the scsi id
[21:40] <vikram> then just listen for which drive switches off
[21:41] <domas> =))
[21:41] <domas> might work!
[21:41] <domas> make sure others do lots of seeks then
[21:41] <vikram> The needle lands when the drive goes to sleep, so it should be fairly easy to catch
[21:52] <mrcoodles> how do i start mysql server?
[21:54] <domas> mrcoodles: depends how you installed it, but usually /etc/init.d/mysql start
[21:55] <mrcoodles> domas: tried that , says Access denied for user @ localhost
[21:56] <domas> then you already started it ;))
[21:56] <domas> I hate debian/ubuntu mysql package
[21:56] <domas> =)
[21:56] <mrcoodles> no, /etc/init.d/mysql status says its stopped.
[21:56] <mrcoodles> any clue where the config file is ?
[21:57] <domas> heh, /etc/mysql/my.cnf
[22:03] <ha1331> Having 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:13] <vikram> cat /proc/mdstat
[22:14] <ha1331> cat: /proc/mdstat: No such file or directory
[22:23] <jmarsden> ha1331: Have you installed and used mdadm?  Maybe http://ubuntuforums.org/showthread.php?t=408461 will help?
[22:25] <ha1331> jmarsden I need those even if I have raid "controller"
[22:25] <ha1331> ?
[22:25] <jmarsden> You were looking for /dev/md* which is for software raid devices... ?
[22:26] <jmarsden> if you want to use a hardware raid controller you need to load the driver for that controller
[22:28] <ha1331> jmarsden 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 present
[22:29] <ha1331> lspci -v tell's me this:
[22:29] <ha1331> 00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02)
[22:29] <jmarsden> If 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] <jmarsden> That doesn't sound like a "real" serious RAID controller. so I'd say go for software RAID.
[22:30] <ha1331> well, I already created the array during boot, and it was present on install, but now I cant find it anywhere
[22:31] <jmarsden> How exactly did you "create the array during boot"?  Using what tool did you do that?
[22:31] <ha1331> pressed during boot, and created it, just like one would with real controller
[22:31] <ha1331> pressed f8
[22:32] <ha1331> more from lspci -v:
[22:32] <jmarsden> I 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 approach
[22:32] <ha1331>         Kernel driver in use: ahci
[22:32] <ha1331>         Kernel modules: ahci
[22:33] <ha1331> During the install, I had the option of installing the system on that array
[22:33] <ha1331> so one would think it should be present on the installed system
[22:35] <jmarsden> No 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] <ha1331> thanks for your help anyways :)
[22:35] <jmarsden> OK :)
[22:39] <vikram> pvmove is so horribly slow
[22:42] <vikram> 1Tb takes about 24hrs
[22:43] <LHC> anyone have 1 1tb hdd
[22:47] <vikram> ?
[22:47] <jmarsden> LHC: Even if someone does, they aren't likely to give one to you over IRC :)  640GB drive here, BTW...
[22:48] <ha1331> jmarsden https://help.ubuntu.com/community/FakeRaidHowto#In%20Long%20without%20detail%20as%20above%20(2008-10-26%20update)
[22:48] <vikram> 1Tb is the cheapest $/gb drive
[22:48] <ha1331> this helped
[22:48] <vikram> you can find OEM Western Digitals for $90 on ebay
[22:48] <ha1331> now I'm fdisking plenty
[22:49] <jmarsden> ha1331: 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:50] <ha1331> jmarsden like the way you think, atleast you managed to present it positively :)
[22:52] <vikram> The only thing I can think of that makes fakeraid practical is if you are going to share the disk with windows
[22:58] <jmarsden> vikram: 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=N82E16822148337
[22:58] <vikram> Oh not bad
[23:00] <vikram> i have 6x500GBs in RAID6 at the moment. Very slow (10mb/s) but very reliable
[23:01] <jmarsden> That really does sound slow for a multi-drive array... do you know where the speed bottleneck is?
[23:02] <vikram> processor and controllers (old AMD x2, and old nvidia)
[23:02] <hads> That is slow
[23:02] <LHC> vikram, nice
[23:03] <LHC> I may get a samsung 1tb spinpoint
[23:03] <LHC> what do you use that for? hd video
[23:03] <vikram> No, nothing fancy just /home /music /movies
[23:03] <vikram> it started off as 1 500gb disk in 2003 and just sorta got bigger
[23:04] <vikram> burst 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/s
[23:04] <LHC> cool :D
[23:04] <LHC> is it just a standard biege pc case
[23:05] <vikram> yes, the cheapest case i could find
[23:05] <vikram> luckily it has nice removable disk racks inside
[23:05] <LHC> I may use my first pc as a server
[23:05] <LHC> its an old compaq persario
[23:05] <LHC> what specs are needed? for simple ftp downloader and music server
[23:06] <vikram> Anything over p3 is overkill
[23:07] <LHC> its an amd 500mhz something xD
[23:07] <vikram> my jack server is a 200mhz cyrix running off 256mb of flash
[23:07] <LHC> wow haha
[23:07] <vikram> but it has a $700 dsp in it :)
[23:07] <LHC> whats the most elaborate home system youve heard of
[23:08] <LHC> I love the hardware side and im learning loads about scripts and software side
[23:09] <vikram> i dont really follow the trends, i just sorta build something and put it behind a table until it dies
[23:10] <LHC> haha
[23:10] <LHC> oh btw what psu, I cant find any low power ones
[23:10] <LHC> efficent and low watts i want
[23:10] <vikram> you can buy small PSUs from ebay
[23:10] <vikram> little ITX ones or even the laptop kind
[23:13] <LHC> i reckon having your own wee server is the best way to learn haha
[23:19] <ha1331> jmarsden: got fed up with it... going with the softraid on linux :D
[23:19] <jmarsden> :)
[23:19] <ha1331> those crappy-raids got to be the stupidest thing ever
[23:20] <ha1331> totally invented by moron
[23:20] <vikram> linux raid has really become quite capable these days
[23:20] <ha1331> vikram hope so :D
[23:20] <domas> kees: _any_ operation on unlinked files causes the issue
[23:21] <domas> kees: just reproduced with write(fd,"a",1);
[23:21] <vikram> I've been using it for the last 4yrs now anyways
[23:21] <ha1331> new to ubuntu, used to go with gentoo, this is quite an experience
[23:22] <vikram> in any distro switch the only pain is learning the package management commands
[23:23] <LH[> hey jmarsden !
[23:23] <jmarsden> LH[: Hi
[23:25] <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 hehe
[23:25] <LH[> since its underused, if anyone wants anything hosted tell me cause I got 200gigs free
[23:26] <mrcoodles> im 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:28] <mrcoodles> well, yes.
[23:28] <mrcoodles> its 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 windwso
[23:29] <LH[> can you send a screenshot?
[23:29] <mrcoodles> i would but i also have loads of porn open and i cant share that.
[23:30] <LH[> sharing is caring
[23:30] <mrcoodles> meow.
[23:30] <LH[> Moooooooo
[23:31] <mrcoodles> not into that.
[23:31] <LH[> VMware Workstation
[23:31] <LH[> is that it
[23:31] <mrcoodles> myeaps.
[23:32] <LH[> awesomee
[23:32] <jmarsden> mrcoodles: 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:33] <LH[> ha
[23:33] <LH[> can you run mac osx through vmware
[23:35] <mrcoodles> jmarsden: vmware networking stuff confuse me.
[23:36] <LH[> why you using it
[23:36] <jmarsden> mrcoodles: Try using virtualbox or something else instead of VMware, maybe?
[23:37] <LH[> mrcoodles, does ubuntu work perfectly fine with it
[23:37] <LH[> I may test a few distros using it
[23:37] <Mal3ko> can anyone help me with firewall issue?
[23:37] <jmarsden> LH[: Yes, Ubuntu works fine with VMware, and KVM, and virtualbox... :)
[23:38] <jmarsden> Mal3ko: as the /TOPIC says: Don't ask to ask, just ask.
[23:38] <LH[> yaya
[23:38] <LH[> theres no nonsence in here, just straight to it :D
[23:39] <Mal3ko> i've set ufw to block most ports but when i scan with nmap, there are still hundred of ports opened
[23:42] <jmarsden> Mal3ko: ufw should be doing default deny anyway... what does   sudo ufw status    # say?  (use pastebin if output is long)
[23:43] <Mal3ko> pastebin url
[23:43] <jmarsden> if you do    sudo ufw status verbose   you get a bit more info... including what the default is.  http://pastebin.ubuntu.com will work.
[23:45] <mrcoodles> LH[: it works great. im just new to both of them.
[23:46] <Mal3ko> http://pastebin.ubuntu.com/118208/
[23:47] <LH[> mralphabet, whats this now
[23:47] <LH[> mrcoodles, whats this now
[23:47] <LH[> FAIL lol
[23:47] <mrcoodles> ehm ?
[23:47] <jmarsden> Mal3ko: 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:48] <LH[> both of what
[23:48] <jmarsden> Mal3ko: Is the Ubuntu server connected directly to the public Internet or is there a router that you control in the way?
[23:49] <jmarsden> LH[: Ubuntu and VMware... I would think!?
[23:49] <LH[> oh I thought ubuntu and macosx
[23:56] <Mal3ko> jmarsden: i dont know. maybe you want to scan the server yourself?
[23:56] <Mal3ko> okey?
[23:56] <jmarsden> Mal3ko: 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:57] <Mal3ko> no..that's not it