[00:10] <econ> Can anyone help me get my usb wifi up and running? Everything I've found uses the iwconfig or iwlist commands, which don't come installed. I can't install them because I can't get connected to the internet. Thanks.
[00:14] <jMCg> econ: why do you have an usb wifi in your server?
[00:16] <econ> its just a pc that i'm trying to set up as a samba file server for my house. pretty much I want to learn how to do some server type stuff but don't have a server.
[00:20] <jMCg> econ: you'll need wpasupplicant, which from what I remember is pain to configure without the fancy GUI stuff.
[00:20] <jMCg> Says the guy whoi is entirely GUI-capped.
[00:23] <econ> Ok, I'll check it out. Thanks
[00:24] <jMCg> IIRC, there's some CLI client, but that's quite.. shit.
[00:24] <jMCg> /sbin/wpa_cli
[01:41] <HazRPG> right, I seem to be having more trouble doing this than I should... and I was wondering if any of you guys could help me out a little bit
[01:42] <HazRPG> I'm trying to run a minecraft server on my ubuntu server
[01:42] <HazRPG> now since its java, I have to run this inside of a screen to get this to work
[01:43] <HazRPG> I've got a user pointed straight towards doing just this job, and I've locked out the password
[01:43] <jMCg> Or you could.. use upstart, which will take care of restarting it when it dies!
[01:43] <HazRPG> now my problem is, that user can't issue a screen, esp since I can only really use him as "sudo su - user"
[01:44] <HazRPG> jMCg: ah, not worried about that... its mainly me that uses it, but however I would like it to do a gmap render and also some backups
[01:45] <HazRPG> while announcing to the user such tasks
[01:45] <qman__> IIRC, in order to launch screen, it must be run by a user who has a password
[01:45] <qman__> you can work around this problem by launching screen as another user
[01:46] <qman__> and run sudo -u username $command
[01:46] <qman__> inside of that screen
[01:47] <qman__> not having a password means no interactive logon
[01:47] <HazRPG> yeah
[01:48] <HazRPG> see the reason I did this was because I just wanted it to be self contained
[01:48] <HazRPG> but not being able to start this as service is a pain
[01:49] <qman__> well, like I said, you could just launch screen as a different user and then run the command inside it
[01:49] <qman__> so, instead of 'sudo -u username screen $command', 'screen sudo -u username $command'
[01:50] <qman__> you could even run that screen as root if you're so inclined
[01:50] <qman__> the server is still running as the other user
[01:51] <HazRPG> running minecraft as root doesn't sound like a good plan though lol
[01:51] <qman__> you're not
[01:51] <qman__> you're running screen as root
[01:51] <qman__> you're still running minecraft as your limited user
[01:53] <HazRPG> right
[01:53] <qman__> don't know what it is with game server programmers, but they just refuse to write them as daemons for some reason
[01:53] <qman__> srcds and unreal are the same way, interactive consoles
[01:54] <morb> sudo su -c command interactiveuser
[01:54] <morb> heh
[01:54] <morb> versus screen
[01:54] <morb> or sudo -u
[01:54] <morb> shrug
[01:55] <qman__> that doesn't work
[01:55] <morb> writeawrapperscript(tm)
[01:55] <qman__> the server doesn't run if it doesn't have an interactive console
[01:55] <qman__> it just hangs or quits
[01:55] <qman__> hence screen
[01:55] <HazRPG> this whole thing has melted my mind
[01:55] <morb> OH
[01:55] <HazRPG> been trying to get this sorted since this afternoon >_<
[01:55] <morb> OIC
[01:56] <morb> okay so smp requires interactive console
[01:56] <qman__> yeah, it's pretty stupid on the programmer's part, but nothing we can do about that
[01:56] <morb> I ran it inside a screen window in the past and never thought anything of it
[01:56] <morb> hm
[01:56] <qman__> I did this exact thing with srds
[01:56] <qman__> srcds*
[01:57] <morb> I'm sure it could be tricked otherwise, but there's nothing wrong with wrapping it inside screen or other form of multiplexer
[01:57] <qman__> just a script that runs a screen as me, and the server inside the screen as the dedicated user
[01:57] <qman__> it's not that hard
[01:57] <HazRPG> how would I script this to fit on the cron job for rendering then?
[01:57] <qman__> that, I couldn't tell you
[01:58] <qman__> I don't know how to interact with screens in an automated manner
[01:58] <qman__> it's probably documented if it's possible
[01:58] <morb> you want to periodically type text on console?
[01:58] <morb> e.g. pipe commands via cronjob?
[01:59] <HazRPG> ah see I've got the code, the problem is though I need it to run... actually wait, if I have one for minecraft and one for the map render, and then just sudo -u those, it should work... technically
[01:59] <HazRPG> however isn't this just bad practice doing it this way?
[01:59] <qman__> it's the best way as things stand
[01:59] <qman__> the problem is bad programming
[01:59] <morb> I've never set up a renderer beyond that livemap deal before bukkit became main
[01:59] <qman__> it's the best workaround I've found
[02:00] <qman__> security wise it's not too bad, no worse than just running it normally
[02:00] <qman__> and it's contained
[02:00] <qman__> the mess never leaves screen
[02:01] <HazRPG> well yeah, but surely if they got into that screen, and say they closed the server and typed "exit" they'll be brought back to my user...
[02:01] <qman__> no
[02:01] <morb> screen -dmS sessionname command
[02:01] <qman__> screen will exit and they will be kicked off
[02:01] <morb> btw
[02:01] <qman__> because if you do it right, screen is not launched from an interactive shell
[02:01] <morb> would be a way to manipulate that from scripts
[02:01] <qman__> it's launched as an upstart job or rc.local or whathaveyou
[02:01] <morb> or cron
[02:02] <qman__> but here's the key
[02:02] <qman__> if you run screen as root, e.g. from rc.local, they have to break root to get into your screen in the first place
[02:02] <qman__> which basically means they'd own you either way
[02:03] <HazRPG> right
[02:04] <qman__> if you launch the server directly from screen, and screen directly from a shell script, and not an interactive shell, there is no exiting to an interactive shell
[02:04] <qman__> it just dies off
[02:04] <HazRPG> so, erm... not to feel any more stupid than I already do, if I did go down the rc.local / whatever route, I'd have to issue root to do the cron then?
[02:04] <qman__> yes
[02:04] <qman__> unless you double sudo
[02:04] <qman__> root runs screen as a third user
[02:05] <qman__> then screen runs the command as your minecraft user
[02:05] <qman__> said third user needs a password though
[02:05] <qman__> well, the way things are set up by default anyway
[02:06] <qman__> root has some magic going on, he's allowed to log in interactively without a password
[02:06] <qman__> nobody else is
[02:07] <HazRPG> right, would you mind helping me through this?
[02:08] <qman__> I can give you the scripts I made for srcds
[02:08] <HazRPG> because I think that's 3 methods you've mentioned, and I'm not sure which is best really (even though all are workarounds anyway)
[02:08] <qman__> I did a sysvinit script and a second script
[02:08] <HazRPG> sure
[02:10] <qman__> eh, looks like I made a real hash of it
[02:11] <qman__> http://pastebin.com/uP1zxNpp
[02:12] <qman__> but really, you should be able to just 'screen sudo -u username $command' inside a start script
[02:13] <qman__> seriously though, I was in exactly your position when I made this
[02:13] <qman__> the stupid thing refused to run
[02:14] <qman__> this does work, though, all else failing
[02:16] <HazRPG> right well here's what I did for my cron: http://paste.ubuntu.com/597660/
[02:16] <HazRPG> I don't think that would work in this sense though would it :(
[02:17] <HazRPG> only just finally merged my windows box to a ubuntu-server box, and didn't realise how much hassle this could be lol
[02:19] <qman__> heh
[02:19] <qman__> could be worse, some game servers require X
[02:19] <qman__> and there was one person asking how to start up one in wine headless
[02:20] <qman__> that's a whole mess I want none of ;)
[02:20] <HazRPG> heh same!
[02:20] <HazRPG> I thought java was bad enough!
[02:21] <HazRPG> so erm, hang on who would I be using to do the crontab with?
[02:21] <qman__> I was running a minecraft server for a while until that hardware crapped out
[02:21] <qman__> I use /etc/cron.d and friends
[02:21] <qman__> and it would probably be the same user that screen is run by
[02:22] <qman__> I was just running mine manually though
[02:22] <HazRPG> ah so /etc/init.d/ and /etc/cron.d/ would be essentially the two I'm using
[02:23] <qman__> makes you appreciate a properly written daemon
[02:23] <qman__>  /etc/init.d for sysvinit scripts, if you're using that
[02:23] <qman__> it's technically deprecated in ubuntu but they still work
[02:23] <qman__> and I don't see it going away any time soon
[02:23] <qman__> lots of stuff needs to be converted to upstart first
[02:24] <qman__> I wrote that before upstart existed
[02:25] <HazRPG> see I've done nothing as far as upstart is concerned
[02:25] <qman__> I'm not a fan
[02:25] <HazRPG> in fact I've done nothing with sysvinit either, other than using them
[02:25] <qman__> too much work and it's still not all that great
[02:25] <HazRPG> so this is all new (and news) to me
[02:26] <HazRPG> sounds like unity :/
[02:26] <HazRPG> but that's a rant for a totally different channel lol
[02:26] <qman__> I'd either stick with sysv or go all-in with systemd
[02:26] <qman__> upstart is kind of in the middle
[02:26] <qman__> but yeah, just my opinino
[02:26] <Datz> Sc
[02:30] <HazRPG> right, lets see if I can do an /etc/init.d/ script :P
[02:36] <HazRPG> hmm just found this: http://www.minecraftwiki.net/wiki/Server_startup_script
[02:36] <HazRPG> how I'd make a cron for that, is beyond me though
[02:40] <HazRPG> the only bit I don't get really is the "Default-Start" and "Default-Stop" stuff
[03:11] <goddard> automatic backups ... how do i do it?
[03:23] <qman__> goddard, cron + tar
[03:39] <HazRPG> I really need to change my bios settings on my server T_T
[03:39] <HazRPG> reboot takes forever due to all the bios check crud
[03:40] <HazRPG> in fact I think most of it is netboot and cdrom stuff
[03:40] <goddard> qman__ know of any scripts?
[03:41] <patdk-nb> automatic backups of what?
[03:42] <HazRPG> too vague
[03:42] <patdk-nb> of what would you like automatic backup of with your server?
[03:42] <goddard> i want to backup everything that would be important for a web server
[03:43] <goddard> apache configuration php mysql web data
[03:43] <patdk-nb> sounds like atleast 3 things then
[03:43] <patdk-nb> mysql, /etc and /var/www
[03:44] <goddard> yep
[03:44] <goddard> wait not etc...well maybe
[03:44] <patdk-nb> if you want to save your apache/php/... settings
[03:44] <patdk-nb> so many admins have issues and wipe out stuff in etc by accident
[03:45] <goddard> each version of ubuntu uses the same version of those software in the repositories so as long as i can get that version of ubuntu i shouldnt have to save the binaries
[03:45] <goddard> ?
[03:45] <patdk-nb> basically saving /etc does that also, cause it saves apt settings for package sources
[03:45] <goddard> isnt that pretty large?
[03:46] <patdk-nb> for like if you some ppa's or something
[03:46] <patdk-nb> sure, mine is like 20megs or so
[03:46] <goddard> 20megs thats nothing :D
[03:46] <patdk-nb> back it up offsite each night
[03:46] <goddard> yeah thats what i wanna setup
[03:48] <patdk-nb> I'm actually doing mysqldumps and backing up etc
[03:48] <patdk-nb> then backing up those backups
[03:48] <patdk-nb> so mysqldump and etc both are 22megs combined for me
[03:48] <goddard> pretty lite
[03:48] <patdk-nb> I'm also backing up /usr/local, cause I put my custom stuff there
[03:48] <patdk-nb> 210megs
[03:49] <patdk-nb> well, I don't run any mysql websites on that :) so it's small
[03:49] <patdk-nb> the mysql website I do handle has 8gigs of data
[03:49] <patdk-nb> but in mysqldump | gz is about 1gig
[03:50] <qman__>  /etc is not binaries
[03:50] <qman__> it is configuration files only
[03:50] <qman__> binaries go in /bin, /sbin, /usr/bin, /usr/sbin, etc
[03:50] <patdk-nb> qman, yep, and apt config helps get all the extra binaries :)
[03:50] <qman__> etc as in etc... not /etc
[03:50] <goddard> :D
[03:50] <goddard> thanks for clearing that up
[03:50] <patdk-nb> my /etc compresses to 1.4megs
[03:51] <qman__> yep
[03:51] <qman__> mostly text, compresses well
[03:51] <patdk-nb> same with mysql if you dump it
[03:53] <qman__> there are complete backup systems, but unless you have some infrastructure going on, it's not really worth it
[03:53] <qman__> a three to five line bash script will do
[03:53] <qman__> drop it in cron.d
[03:54] <goddard> alriht good to know just add that to the list of 30 thngs i gotta do :D
[03:55] <patdk-nb> don't worry
[03:55] <patdk-nb> after your first big dataloss
[03:55] <patdk-nb> you will make a good backup solution
[03:56] <qman__> heh
[03:56] <qman__> my solution at home is to just keep a copy of everything important on several computers
[03:56] <qman__> can't really afford a backup system
[03:56] <qman__> but yeah
[03:56] <patdk-nb> my home is generally my backup :)
[03:56] <patdk-nb> nightly rsync to home
[03:56] <qman__> production servers, gotta have it
[03:57] <patdk-nb> then backup system does incrementals of that rsync
[03:57] <HazRPG> qman__: oh btw, thanks for your help earlier :)
[03:57] <qman__> ironically, my file server, where I store most backups, has been the least reliable system
[03:57] <goddard> i actually had a horrible setup using Dreamweaver and a production  and test server
[03:58] <qman__> single disk budget systems outlasting my raid 5
[03:58] <patdk-nb> backup drive consists of 8 1tb re4 drives, raid6 of 6 drives, and 2 spare
[03:58] <qman__> running raid 6 with hot spare now
[03:58] <goddard> didnt have a backup and had to some how fix it
[03:58] <goddard> it was amazing i was able to fix it
[03:58] <goddard> extremely lucky
[03:58] <qman__> I lost three disks in one day on my last array
[03:59] <goddard> ouch
[03:59] <patdk-nb> ya, I had a raid50, 6 drives, with spare
[03:59] <patdk-nb> lose 4 drives
[03:59] <qman__> it's only paranoid until it happens to you
[03:59] <patdk-nb> spare was probably lost before it was needed
[04:01] <patdk-nb> hmm, something isn't right here
[04:01] <patdk-nb> oh :) wasn't comparing the correct paths :)
[04:02] <patdk-nb> was wondering why mail on one was 700megs and the other was 8gigs
[04:03] <qman__> they don't make hard drives like they used to
[04:04] <qman__> the system drive on that file server is a 4GB Quantum Fireball, still running strong
[04:04] <patdk-nb> na, they are using ecc correction for more than failsafe
[04:04] <patdk-nb> they depend on it
[04:04] <qman__> and it'll probably outlast the second array
[04:04] <patdk-nb> why I'm alittle paranoid about these 4k sector drives
[04:05] <patdk-nb> besides the fact mine have only lasted 2 months before needing replacement
[04:05] <HazRPG> score!
[04:06] <HazRPG> managed to get the cron to work :D
[04:06] <HazRPG> and now I have a cool script to go with my minecraft server too
[04:06] <goddard> haha minecraft :D
[04:07] <HazRPG> this is done a lot better than I was originally going to do before I asked for help
[04:07] <HazRPG> again much thanks :)
[04:07] <qman__> glad it's working out
[04:08] <darkmarble> can't seem to get wget to log onto a site with the whole --save-cookie and --post-data scheme... any ideas?
[04:10] <patdk-nb> darkmarble, if it's a ms .net thing, you have to save and pass the forms cookie stuff, it's lots of fun :)
[04:11] <darkmarble> tried using --load-cookie on the 2nd wget run, no dice :(
[04:12] <darkmarble> even went through the --save-session-cookies bit, tried a lot of approaches so now I'm just at a loss as to what to do
[04:13] <AphisOne> Is there a best practice or common way of handling CVE compliance with Ubuntu Server?
[04:14] <AphisOne> I'm looking more or less for some documentation that I can reference.
[04:14] <HazRPG> qman__: managed to get it to run as a screen by minecraft (user), which means that I could just put the cron as that user too and execute other things that minecraft (user) owns.
[04:15] <patdk-nb> darkmarble, ya, cookies are cookies, but did you save and resubmit all the form variables?
[04:15] <qman__> nice
[04:15] <HazRPG> qman__: considering pigmap (the thing I use to render maps) is owned by minecraft, it means it can run this flawlessly and I don't need to change my apache permissions or do other fancy tricks to get that working
[04:16] <HazRPG> just-works™
[04:17] <darkmarble> patdk-nb: well considering it's a short form, i just used --post-data='username=user&password=pass'  not the right approach?
[04:17] <HazRPG> also means if I want to do more work inside that screen, I can
[04:17] <centHOGG> hi, any tips on CLI lm-sensors config, I have it working but can it be more selective?
[04:21] <centHOGG> <ubuntuNAS
[04:46] <trimeta> Something's gone wrong with my install of Landscape...I've got three copies of its output in /etc/motd, and it seems each time it's automatically running, if the result differs from the previous time it just prepends to /etc/motd rather than replacing it.
[04:46] <trimeta> Or at the very least, there's an old copy of the text that's still there and won't go away.
[07:31] <pehden> mysql server wont start after moron installed module in drupal
[07:32] <pehden> Urgent matter
[07:33] <kthomas_vh_> #drupal-consultants :) ?
[07:33] <pehden> ill clear that data base if i have to
[07:33] <pehden> it just has to start
[07:34] <pehden> i have several other databases
[07:34] <kthomas_vh_> you'd probably do better to check your logs for the error
[07:34] <pehden> hmm
[07:34] <kthomas_vh_> installing a drupal module does not normally stop mysql from starting up :P
[07:35] <pehden> thats what i thought but from what it sounded like was thats when it happened
[07:35] <pehden> where is the log for mysql
[07:36] <pehden> my list doesnt show that one
[07:36] <kthomas_vh_> google?
[07:41] <pehden> ok found the log but it looks empty
[07:41] <pehden> /var/log/mysql.err and /mysql.log
[07:42] <kthomas_vh_> so maybe change your logging level,  and/or read up on logging options?
[07:44] <pehden> is there a way to start it with only selective databases
[07:44] <pehden> mysqld_safe --skip-grant-tables
[07:44] <pehden> like that
[07:44] <kthomas_vh_> try it and see?
[07:44] <pehden> it starts but none of the sites connect
[07:50] <kthomas_vh_> because you don't have any table grants,  no doubt :)
[07:52] <goddard> how do i know what libraries i can use if my project isn't open source? im not lawyer
[08:01] <pehden> wth steven
[08:06] <goddard> how do i get one of those
[08:08] <pehden> goddard you can use open source libraries and put them in a closed source prodject
[08:09] <goddard> wont it be illegal?
[08:15] <pehden> look up GNU license
[08:53] <reisi> hmm actually goddard pehden: you cannot link to gpl library (put them in a ...), but to pretty much any other license you can, usually reading the license faq is enough
[08:53] <reisi> you cannot link to gpl [library] from closed source application, that would be a violation of the license ...
[09:25] <Shapeshifter> Hi. How do I add another daemon to be automatically started upon booting?
[09:54] <joyce> I am on 10.04, but my kernel is still 2.6.18. How can I upgrade my kernel?
[09:58] <pehden> hmm fixed issue
[09:59] <pehden> some how the log folder filled the hardrive to max removed all that then reinstalled mysql no purge and it worked
[11:01] <aliverius> i need mono-1 but it is not available :(
[13:45] <storrgie> Does anyone know of a guide to help me understand how to block websites if I'm running a linux machine as a gateway?
[13:47] <Zeu5> hi there, my motd keeps showing 43 packages can be updated.
[13:47] <Zeu5> 22 updates are security updates.
[13:47] <Zeu5> but i have already done sudo apt-get update, sudo apt-get upgrade and sudo apt-get dist-upgrade and then restarted my instance
[13:47] <Zeu5> please advise abt my motd thank you
[13:49] <ArisVer> nfs4 server, how do i, create a partition and export a partition on my disk?
[13:55] <cerneula> hello everyone, I have a server with ubuntu 9.04. The problem I have is that I can log in via ssh, but not from TTY1. I have tried changing console, but it does not work. I have looked into /etc/securetty and the consoles are allowed to be logged in from. Also I have had a look to /etc/pam.d/login file, but I don't understand it very well. I have been looking for an answer on the internet, but no lock so far. Anybody has
[14:00] <cerneula> it says 267 people in this room, but I can't see a single line, why?
[14:01] <oCean> cerneula: it's quiet, people are just idling
[14:01] <cerneula> thanks
[14:01] <cerneula>  I have a server with ubuntu 9.04. The problem I have is that I can log in via ssh, but not from TTY1. I have tried changing console, but it does not work. I have looked into /etc/securetty and the consoles are allowed to be logged in from. Also I have had a look to /etc/pam.d/login file, but I don't understand it very well. I have been looking for an answer on the internet, but no lock so far. Anybody has any idea? Many
[14:04] <oCean> cerneula: anything useful in /var/log/auth.log?
[14:50] <ArisVer> Hi, i get a 403 error for my localhost page. How do i fix this?
[14:50] <qman__> ArisVer, chmod o+r /path/to/website
[14:51] <RoyK> +x too
[14:53] <ArisVer> I get a, no such file or directory.
[14:53] <ArisVer> wait
[14:55] <ArisVer> Nothing happened , still get 403.
[14:56] <ArisVer> I get a, no such file or directory. (this is okay now, it was typing mistake).
[14:59] <ArisVer> chmod did nothing. I had permission access from before.
[15:03] <ArisVer> When i click the html file it shows on my browser. But trying to 127.0.0.1 gives me a 403 Forbidden, you don't have permission to access / on this server.
[15:30] <cerneula> hello everyone!  I have a server with ubuntu 9.04. The problem I have is that I can log in via ssh, but not from TTY1. I have tried changing console, but it does not work. I have looked into /etc/securetty and the consoles are allowed to be logged in from. Also I have had a look to /etc/pam.d/login file, but I don't understand it very well. I have been looking for an answer on the internet, but no luck so far. Anybody ha
[15:32] <cerneula> sorry, it had expired, here is the new link
[15:32] <cerneula> http://pastebin.com/ytH6nqw2
[15:48] <kellnola> ArisVer, apparmor, perhaps?
[15:49] <kellnola> or perhaps the server is not listening on localhost?
[15:50] <kellnola> wait no it isn't that
[16:08] <ArisVer> kellnola ,  what is apparmor?
[16:13] <ArisVer> kellnola, i found out, my knowledge is very limited for that.
[16:30] <Zeu5> hi there,
[16:30] <Zeu5> ever since i updated my ubuntu server instance and restarted it, my apache is no longer working
[16:30] <Zeu5> please advise.
[16:31] <kellnola> ArisVer, better get used to it :). It has tripped me up a few times. If you get mystifying permissions problems, I'd look there. It logs to syslog or audit.log depending on your config, you can turn it off with /etc/init.d/apparmor teardown
[16:32] <kellnola> Zeu5, look in your apache logs
[16:32] <kellnola> Zeu5, try to start it manually
[16:32] <Zeu5> kellnola: which  folder is that?
[16:32] <kellnola> Zeu5, /var/log/apache
[16:32] <Zeu5> kellnola: i tried sudo sudo /etc/init.d/apache2 start but still get same rror message
[16:33] <kellnola> Zeu5, try sudo /usr/sbin/apache2 -X
[16:33] <Zeu5> kellnola:  okie i am in as root
[16:33] <Zeu5> i can view a lot of files in side /var/log/apache2
[16:34] <kellnola> Zeu5, error.log is the one your're looking for
[16:34] <kellnola> Zeu5, try the command I printed there
[16:34] <kellnola> Zeu5, and see what it says
[16:35] <Zeu5> the command gave me this
[16:35] <Zeu5> apache2: bad user name ${APACHE_RUN_USER}
[16:36] <kellnola> Zeu5, sorry, sudo su www-data -c /usr/sbin/apache2 -X
[16:36] <Zeu5> kellnola: i did a sudo -i
[16:37] <Zeu5> so i am now root
[16:37] <Zeu5> shd i still use the command in full that u gave me?
[16:37] <kellnola> yes
[16:37] <kellnola> doesn't matter
[16:37] <TheEvilPhoenix> i think we need to find what's binding to port 80 already, Zeu5.
[16:37] <TheEvilPhoenix> *reads the info from #httpd*
[16:37] <Zeu5> guys, i accidentally rm my error.log
[16:37] <TheEvilPhoenix> Zeu5:  you're in trouble then
[16:37] <kellnola> Zeu5, just run the command and apache will log to STDOUT
[16:38] <TheEvilPhoenix> in any case, i iforget the command(s) to list what's listening on what ports
[16:38] <Zeu5> the command did not work
[16:38] <TheEvilPhoenix> i could use that myself
[16:38] <TheEvilPhoenix> :p
[16:38] <Zeu5> su: invalid option -- 'X'
[16:38] <Zeu5> Usage: su [options] [LOGIN]
[16:38] <TheEvilPhoenix> kellnola:  any idea what command you can use to show what's listening on what port(s)?
[16:38] <ArisVer> kellnola, i edit the file and saw 'to really tear down all profiles run the init script with the teardown option'. Is this a command line?
[16:38] <kellnola> TheEvilPhoenix, sudo lsof -i | grep LISTEN
[16:39] <kellnola> ArisVer, yes, that's how you turn it off. (for troubleshooting)
[16:39] <Zeu5> TheEvilPhoenix: kellnola this is mine http://bin.cakephp.org/view/1367000440
[16:39] <kellnola> Zeu5, the -X is an argument to apache2, not su
[16:39] <Zeu5> no port 80 as far as i can see
[16:40] <TheEvilPhoenix> strange, I can't find port 80 being bound to on mine either :P
[16:40] <kellnola> Zeu5, and no "*:www"
[16:40] <kellnola> ?
[16:40] <TheEvilPhoenix> well that's odd...
[16:40] <Zeu5> kellnola: i dun understand
[16:40] <kellnola> it's something else then
[16:40] <TheEvilPhoenix> kellnola:  nothing's bound to port 80
[16:40] <Zeu5> can you give me the command that you want me to run again?
[16:40] <TheEvilPhoenix> kellnola:  might be a new bug in Ubuntu systems
[16:42] <Zeu5> guys?
[16:42] <TheEvilPhoenix> kellnola:  Zeu5 and I are in the same boat, something's blocking binding to port 80
[16:42] <kellnola> hold on Im tripped up by the ubuntu way here ... let me look at it a minute
[16:42] <TheEvilPhoenix> not sure what
[16:42] <kellnola> TheEvilPhoenix, where do you see that? in the error log?
[16:43] <TheEvilPhoenix> kellnola:  in the output from `s service apache2 start`
[16:43] <TheEvilPhoenix> where that first "s" is an alias for sudo
[16:43] <kellnola> ok try sudo lsof -i
[16:43] <TheEvilPhoenix> sec
[16:44] <kellnola> pipe to egrep "(www|80)"
[16:44] <TheEvilPhoenix> oop
[16:44] <TheEvilPhoenix> wait a sec
[16:44]  * TheEvilPhoenix thinks there was some random glitch in his system
[16:44] <Zeu5> kellnola: what command would you like me to try?
[16:44] <kellnola> might be something established and not listening
[16:44] <TheEvilPhoenix> ended up having to drop into a root prompt
[16:44] <kellnola> Zeu5, hold on
[16:44] <Zeu5> kellnola: thanks
[16:45] <TheEvilPhoenix> kellnola:  i ended up dropping myself into a root prompt where I had to do 'service apache2 stop; service apache2 start'
[16:45] <TheEvilPhoenix> it loaded correctly
[16:45] <TheEvilPhoenix> lemme test this again
[16:46] <TheEvilPhoenix> Zeu5:  you wouldn't happen to not be prepending "sudo" to the /etc/init.d/apache2 start command would ya?
[16:46] <Zeu5> i am now root
[16:46] <Zeu5> sudo -i
[16:46] <TheEvilPhoenix> Zeu5:  run this, with the semicolon: service apache2 stop; service apache2 start
[16:47] <Zeu5> /etc/init.d/apache2 start i get the could not bind to address error
[16:47] <TheEvilPhoenix> did you stop it first?
[16:47] <Zeu5> yesi stopped it
[16:47] <TheEvilPhoenix> then in your system, your system must have something else binding to it
[16:48] <Zeu5> TheEvilPhoenix: okie so what do i do  next?
[16:48] <TheEvilPhoenix> sec,  need to configure something on my root prompt
[16:49] <Zeu5> okie thanks for helping
[16:49] <Zeu5> i really appreciate this
[16:50] <kellnola> wait are you using ubuntu or zentyal or something?
[16:51] <TheEvilPhoenix> kellnola:  you realize this is the ubuntu channel right?  Zeu5 already stated its an ubuntu system
[16:51] <Zeu5> ubuntu 10.04 server
[16:51] <kellnola> have to make sure. Zentyal IS ubuntu, but it puts its paws into everything
[16:51] <TheEvilPhoenix> Zeu5:  as root: netstat -nutap | grep :80
[16:51] <TheEvilPhoenix> Zeu5:  pastebin the output
[16:52] <Zeu5> i have never heard of Zentyal
[16:52] <TheEvilPhoenix> if you can :P
[16:52] <kellnola> Zeu5, it's a popular ubuntu knockoff
[16:52] <TheEvilPhoenix> heh
[16:52] <TheEvilPhoenix> knockoffs are crap
[16:52] <kellnola> for servers
[16:52] <Zeu5> http://bin.cakephp.org/view/1367000440
[16:52] <Zeu5> my paste
[16:52] <TheEvilPhoenix> oh lookie:
[16:53] <TheEvilPhoenix> tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      443/apache2
[16:53] <kellnola> Zeu5, you have to make sure all those apache procs are killed
[16:53] <kellnola> there are several in SYN_RECV
[16:53] <Zeu5> kellnola: advice on this
[16:53] <TheEvilPhoenix> Zeu5:  killall -9 apache2
[16:53] <TheEvilPhoenix> as root
[16:53] <kellnola> that will do it
[16:53] <Zeu5> TheEvilPhoenix: thanks
[16:54] <TheEvilPhoenix> mhm
[16:54] <Zeu5> now netstat -nutap | grep :80 shows nothing
[16:54] <TheEvilPhoenix> Zeu5:  after the killall, do 'service apache2 restart'
[16:54] <TheEvilPhoenix> good
[16:54] <kellnola> ok good. try to start apache
[16:54] <TheEvilPhoenix> do service apache2 restart
[16:54] <Zeu5> can someone explain to me? i am writing all this into my google docs to teach myself
[16:55] <kellnola> you had an apache process in SYN_RECV (waiting for the initial TCP handshake reply) and not letting go of it will kill -TERM (what the init script does)
[16:55] <Zeu5> kellnola: i see
[16:55] <Zeu5> so netstat -nutap |grep :80 means?
[16:56] <TheEvilPhoenix> netstat is a program
[16:56] <TheEvilPhoenix> netstat -nutap is as follows:
[16:56] <jMCg> Zeu5: man netstat, man grep...
[16:56] <kellnola> list everything without any name resolution piped to grep for port 80
[16:56] <TheEvilPhoenix> indeed
[16:56] <TheEvilPhoenix> i.e.
[16:56] <kellnola> lsof will show that as well. I like lsof better myself
[16:56] <TheEvilPhoenix> *shrugs*
[16:56] <kellnola> netstat is ancient
[16:56] <Zeu5> i see
[16:56] <TheEvilPhoenix> lsof wasnt workin for me :P
[16:57] <jMCg> -a everything, -n nameresolution, -t tcp, -p program, -uI have no idea.
[16:57] <kellnola> prob we were grepping for the wrong thing
[16:57] <Zeu5> great
[16:57] <Zeu5> everything now is working
[16:57] <Zeu5> thanks guys
[16:58] <Zeu5> thank you kellnola and TheEvilPhoenix
[16:58] <kellnola> Zeu5, ps ax would also have shown you running apache procs
[16:58] <Zeu5> its okay
[16:58] <Zeu5> i have saved the netstat command and the killall
[16:58] <Zeu5> into my google docs with some comments
[16:58] <Zeu5> it sucks to be a ubuntu noob like me :(
[16:59] <jMCg> s/ubuntu/Unix/
[16:59] <TheEvilPhoenix> jMCg:  -u is udp for netstat
[16:59] <kellnola> jMCg, :). I am somewhat a noob to the ubuntu way of doing tings on server, but not to linux.
[17:00] <kellnola> Zeu5, I might suggest learning the core admin commands
[17:00] <kellnola> very well
[17:00] <jMCg> TheEvilPhoenix: I have consulted netstat(8) since and found that out myself!
[17:00] <TheEvilPhoenix> ;P
[17:01]  * TheEvilPhoenix goes back to fiddling with iptables rules
[17:01] <Zeu5> kellnola: where is this core admin commands?
[17:01] <kellnola> Zeu5, well there are a few dozen indispensable ones
[17:02] <Zeu5> is there a webpage dedicated to it?
[17:02] <kellnola> and you need to know how to at least pipe to other commands to sort and limit to what you want
[17:02] <Zeu5> i need something really noob-friendly the apache2 manual for eg, i find it hard to digest
[17:03] <kellnola> Zeu5, tackle learning unix first
[17:03] <kellnola> then the apache manual will make sense
[17:03] <Zeu5> kellnola: well, i am now using ubuntu for all my working purposes on my laptop so as to familiarise myself with ubuntu
[17:03] <jMCg> Zeu5: the "apache2" or, as I prefer to call it Apache HTTP Server manual is easy, once you understand how it works.
[17:03] <Zeu5> however, the moment i find myself not using those sudo /etc/watever restart
[17:03] <jMCg> http://blag.esotericsystems.at/2011/02/systematic-high-intensity-training-202/ <<<
[17:03] <Zeu5> for a while, i forget all abt them
[17:03] <kellnola> Zeu5, well, ubuntu tries to make everything easy, but on the server all bets are off, you need unix skills
[17:04] <jMCg> I really like: http://www.freebsd.org/doc/en/books/handbook/basics.html -- but I don't know of an equivalent for Linux.
[17:04] <Zeu5> thanks jMCg
[17:04] <Zeu5> kellnola: any books or ebooks u recommend fro server admin?
[17:04] <kellnola> jMCg, do they even use GNU utils in BSD?
[17:04] <Zeu5> i am using ubuntu server
[17:05] <jMCg> kellnola: who cares? They are POSIXy enough.
[17:05] <kellnola> I guess. The switches are different, no biggie to me, but to a newbie that can be confusing
[17:05] <jMCg> If you can do ps -e -orss on GNU, you can do that on BSD as well -- that is: You managed to read the man page and know roughly what you're looking for.
[17:06] <jMCg> Yes, unfortunately, some switches are a little different. :-/
[17:06] <jMCg> I linked that in my article: ﻿﻿﻿﻿﻿http://people.freebsd.org/~schweikh/posix-utilities.html
[17:07] <kellnola> Solaris admins also bring their habits to linux
[17:07] <Zeu5> kellnola: so.. books?
[17:07] <jMCg> Most importantly: killall doesn't do the same on Solaris as it does on Linux :)
[17:07] <kellnola> NOPE
[17:07] <jMCg> And memory works differently. Entirely differently.
[17:08] <jMCg> Zeu5: I've had a couple of recommendations back in the day, but never really read any of them.
[17:08] <Zeu5> kellnola: okay. but any case, thank you very myuch
[17:08] <Zeu5> jMCg: the books must be really noob friendly
[17:08] <kellnola> the sysadmin guide that is installable via apt is pretty good
[17:08] <Zeu5> jMCg: i am a very very slow learner
[17:09] <kellnola> O'Reilly internet core protocols and bind books are great
[17:09] <Zeu5> kellnola: i got anaccount in oreilly i go check out
[17:09] <maswan> jMCg: that's why it is a good habit to use pkill instead of killall
[17:09] <Zeu5> thanks
[17:10] <kellnola> Zeu5, I hate to reccomend, the the "for dummies" series is actually good for people just starting out from scratch
[17:10] <Zeu5> kellnola: well personally i dun ve very good opinions of the for dummies
[17:10] <Zeu5> but i guess i am really left with no choice
[17:10] <jMCg> maswan: I don't use pkill.
[17:10] <jMCg> s/pkill/killall/
[17:10] <kellnola> I remember unix being quite bewildering when I first started way back when
[17:11] <kellnola> it's too bad open solaris didn't take off. I really like solaris
[17:11] <jMCg> kellnola: Open Solaris did take off, and then it was shot down.
[17:12] <kellnola> corrected. I know. A solaris with debian style package management would be wonderful. that is solaris' only weak point
[17:12] <kellnola> as it stands it's relegated to the commercial nix world
[17:13] <jMCg> nexenta?
[17:13] <kellnola> what's that?
[17:14] <jMCg> A Solaris with debian style package management
[17:14] <jMCg> http://www.nexenta.org/
[17:14] <kellnola> oh hell yes
[17:17] <maswan> kellnola: there are some other annoying weak points too, like the tcp stack
[17:18] <kellnola> maswan, I find the most annoying thing about solaris isn't the OS, but the admin and dev "culture", which seems to be stuck in 1992
[17:19] <kellnola> maswan, but as for the TCP stack, what do you mean specifically?
[17:19] <maswan> kellnola: maybe so, I don't have that much contact with that, we were starting to move towards solaris+zfs for storage serves, before oracle ruined it
[17:19] <maswan> kellnola: no tcp window size autotuning
[17:19] <kellnola> fuck oracle
[17:19] <kellnola> oracle will ruin everything
[17:20] <kellnola> I think they're poised to gobble up red hat now
[17:20] <maswan> now we're back to requiring lucid in our procurements :)
[17:21] <kellnola> linux might not be the most ingenious unix, but the engineering in the deb based distros is clearly above everyone else
[17:21] <kellnola> they are so meticulous
[17:21] <kellnola> in my last nix job, it was RHEL and solaris only
[17:22] <kellnola> and I HATE RHEL
[17:22] <maswan> I'm not very fond of rhel derivatives either, but luckily i don't have to deal with them much
[17:22] <kellnola> had about 300 RHEL desktops to manage
[17:22] <maswan> quite a bit of that comes from the very careful debian packaging policy
[17:23] <kellnola> maswan, it does. Debian devs are great engineers. It truly is an admins dream
[17:24] <kellnola> but working in the commercial unix world, I found that commercial nix app developers are even worse than windows developers
[17:25] <kellnola> maswan, actually I find it has mostly to do with lack of hierarchical management that makes debian so good. They have to hammer out the decisions with input from all, rather than be subject to the whims of a manager
[17:26] <maswan> kellnola: yeah, it does have downsides though, like release schedule
[17:27] <kellnola> maswan, I don't really care about that myself. I prefer a slow release policy, though it's painful on desktops
[17:28] <maswan> kellnola: it sucks for servers when the drivers are only in newer kernels, with enough changes to make backporting painful
[17:29] <kellnola> I installed debian 6.0 the other day and the installer is very newbie desktop friendly. Though it will not keep up with ubuntu. HOWEVER, if I were managing linux desktops, or if I were a linux developer, I would target debian or Ubuntu LTS, they are both very stable and easy to support. RHEL, which has captured that market, is NOT
[17:30] <kellnola> maswan, that happens with RHEL all the time. With DELL servers too, and they are supposed to have this great relationship with Red Hat
[17:31] <kellnola> Ubuntu is a little more realistic than debian about that ... LTS does have point releases that have newer drivers
[17:33] <kellnola> I can't count the numer of times I had to create a new kickstart because RHEL 4.x would not work with some new Dell server (ethernet, mainly), so had to do it over
[19:27] <roche> Hello I am trying to install mysql-cluster from ubuntu package repository but apt-get return an error saying mysql-cluster client is trying to overwrite "/usr/bin/mysql" that is include in mysql-client package
[19:28] <roche> I tried to remove mysql-client but is a dependency of mysql-cluster-client
[19:30] <roche> Can you help me to overcome these problem?
[21:08] <rynop> I put a file in /etc/profile.d to add something to the path system wide. How do I get all users on the system to pick up the change w/o having to reboot system? (forcing individual users to re source is ok)
[22:00] <dassouki> is there a dropbox type app that i can install on my server?
[22:00] <dassouki> or what would you recommend as a source code repos, but for engineering / cad projects?
[22:06] <webactivex> hi guys, I need some help with SMTP, for some reason I am not able to connect to my newly setup server with thunderbird. The weird thing is that I can recieve mail, but I cannot send it. Any help in diagnosing this would be greatly appriciated. I am using postfix.
[22:06] <guntbert> webactivex: do you have experience running mail servers?
[22:07] <webactivex> no this is my first time
[22:07] <webactivex> I have a book on post fix I have been trying to go through
[22:08] <webactivex> postfix the definitive guide
[22:08] <guntbert> webactivex: then PLEASE: don't run a mail server connected to the internet, try it first in a protected network (at home, behind a firewall,...)
[22:08] <webactivex> guntbert: that is really not a option at this time
[22:08] <webactivex> these are not play servers these are work servers
[22:08] <guntbert> webactivex: care to tell me why?
[22:09] <webactivex> its something that has to be setup
[22:09] <webactivex> I have the DNS pointing correctly I am pretty sude
[22:09] <webactivex> sure, with the MX records all setup
[22:09] <guntbert> webactivex: thats what I was hinting at: someone without experience is bound to make serious mistakes
[22:10] <webactivex> probably, but that doesn't change the situation
[22:10] <guntbert> and I'm not talking about DNS records
[22:10] <webactivex> are you able to help diagnosing?
[22:10] <guntbert> webactivex: are you able to connect from terminal?
[22:11] <webactivex> yes
[22:11] <webactivex> I am getting a relay access denied
[22:12] <guntbert> then where is the problem?
[22:12] <webactivex> on RCPT TO:
[22:12] <webactivex> I am trying to hook up thunderbird and its not working
[22:14] <guntbert> forget thunderbird for the time being, the real error is in the config of postfix, you didn't set the "trusted" range correctly, but be warned, if you set it too broad your server will become an "open mail relay" and soon will not be able to connect anywhere
[22:18] <webactivex> alright, do you have something I can search on to read up on this? or some sort of command?
[22:22] <guntbert> webactivex: why must you run your own mail server? they are normally run by professionals who hopefully know what they are doing (open mail relays are responsible for propagating spam)
[22:22] <kthomas> installed 10.10,  every time I hit 'd' in a window,  the window minimized.  (gnome-desktop)
[22:23] <webactivex> *sigh*\
[22:23] <webactivex> guntbert: I wouldn't have bought a book on postfix if I wasn't expecting to do it myself
[22:26] <guntbert> webactivex: yes, yes, we all started there - with a mail server behind a firewall, with room to play and make errors (and no spam at all) - so what is the actual goal in running your own smtp server?
[22:26] <webactivex> to send mail through me@mydomain.com
[22:27] <webactivex> and like I said, I can recieve just fine... I cannot send
[22:28] <webactivex> I am a programmer by trade dude, so I am no fool... I just need the correct documentation.
[22:28] <guntbert> sorry, that doesn't make any sense - you said "production system" (or so) - what is the reason your company has decided to do it that way?
[22:28] <guntbert> and don't "dude" me please
[22:29] <webactivex> its a vps where a bunch of stuff is running
[22:29] <webactivex> pretty much the story
[22:30] <guntbert> webactivex: so no real reason at all -  why do you need your own mail server? you still didn't answer that question
[22:30] <webactivex> me@mydomain.com.. I told u
[22:32] <guntbert> ok, you wanna be cagey - fine with me, bedtime anyway here - have a nice time (and please heed my warnings about open mail relays)
[22:34] <webactivex> I am not being cagey, its just that I have already settled on what I want to do.. so may I ask you why you would question my reasoning for wanting me@mydomain.com.. something that almost every company n existance has.. Do you not feel that is a bit presumptuous  to assume I would also not want such a thing. If the answer is obvious, why ask the question.
[22:35] <webactivex> to steer me away from a direction that I have already bought a book for seems I dunno...
[22:36] <webactivex> I am looking for ways of figuring out my problem.. not hearing what I do not know and what could go wrong
[22:36] <webactivex> I am sorry if how I say it is offensive, but that is the fact of the matter, plain and simple
[22:38] <webactivex> Thank you though for letting me know what could go wrong, but thus far nothing has been provided to help me in the senario which I have specifically asked about
[22:43] <alan23424> can you connect with thunderbird and pull down your existing mail?
[22:43] <webactivex> alan23424: yes
[22:44] <alan23424> And you want to use your server as an outbound relay?
[22:44] <webactivex> right now I am using gmail.com as a outbound relay
[22:45] <webactivex> since it is setup through there
[22:45] <webactivex> I would like to change that over to SMTP
[22:46] <alan23424> alright
[22:47] <alan23424> but why not config your mail agent just to send relay ourbound through your isp upstream smtp server
[22:49] <webactivex> would it work on a vps
[22:51] <alan23424> if your hosting company provide a mail relay. mine does
[22:51] <webactivex> When you send mail as julieprokes28@designsweetener.com, the mail can either be sent through Gmail or through designsweetener.com SMTP servers.
[22:51] <webactivex> that is the message that I am getting
[22:52] <alan23424> but normally if i am connecting to my server from home, my client would just use smtp.$isp.co.uk for outbound mails
[22:53] <alan23424> why is it so important to relay outbound back through the server
[22:53] <alan23424> if you log in and send a mail from the command line, does that work and send out?
[22:53] <webactivex> so when the config is setup to run gmail SMTP, the
[22:53] <webactivex> Sender: dsjulieprokes@gmail.com I do not want that.. I want Sender: julie@designsweetener.com
[22:54] <webactivex> that is my primary reason for this
[22:54] <alan23424> got it
[22:54] <webactivex> gmail just happens to be my mail client
[22:54] <webactivex> like thunderbird
[22:54] <webactivex> if you can make that happen, then that is all I care about
[22:55] <alan23424> from where you are sending the email, ie in the office or at home, use outbound smtp server that your isp provides, not gmail.
[22:55] <alan23424> and dont worry about relaying back through your mail server
[22:55] <alan23424> it will work
[22:55] <webactivex> I am fine with using someone elses SMTP server
[22:56] <webactivex> I would like to run my own really
[22:56] <webactivex> because it is something I would like to know
[22:56] <webactivex> but right now we cannot send email in the right format... and that is a problem.. which is the reason for my slight tude
[22:56] <alan23424> for instance I use thunderbird connecting to my server 07x.org to log into and get mail, and I send outbound with thunderbird through smtp.myisp.co.uk. emails look like they came from me@07x.org
[22:56] <alan23424> just dont use gmailk
[22:57] <alan23424> in your office your isp will have smtp settings and they will allow you to send from whatever address you want
[22:58] <alan23424> gmail wont
[22:58] <webactivex> gmail can do SMTP, lol.. I just need to have it route somewhere!
[22:58] <webactivex> lol
[22:58] <webactivex> you can do custom smtp on gmail
[22:58] <alan23424> if you want gmail headers on your emails
[22:59] <webactivex> gmail only puts those headers on, because they are routing it through their servers.. I would expect that would not be the case if I was simply pushing it off to another SMTP server
[23:00] <webactivex> let me look at my VPS quick
[23:00] <webactivex> I use swvps
[23:00] <alan23424> then route it through your isp upstream smtp. it doesn't go through your vps, and don't route through gmail simples
[23:01] <alan23424> i say this because your server is not on same site as you
[23:01] <alan23424> if it was i would say use that as outbound
[23:02] <webactivex> you are talking like comcast?>
[23:04] <alan23424> smtp.comcast.net
[23:04] <alan23424> and yeah
[23:07] <webactivex> alright... so how does this make the sender change to Sender: julie@designsweetener.com
[23:07] <webactivex> lets say I use smtp.comcast.net
[23:08] <alan23424> "for instance I use thunderbird connecting to my server 07x.org to log into and get mail, and I send outbound with thunderbird through smtp.myisp.co.uk. emails look like they came from me@07x.org"
[23:09] <alan23424> just try it
[23:12] <webactivex> ok
[23:12] <webactivex> thanks, I will
[23:12] <alan23424> whatever email address is in the 'email address' field in Account Settings in thunderbird, that's the address that stuff will look like in came from
[23:12] <alan23424> quick and easy
[23:23] <Delerium_> Hi guys, is there anyone who can test my website if available from the outside world (www.elezium.com)
[23:24] <alan23424> it is
[23:24] <Delerium_> alan23424, Thanks very much .. that's 2 wire modem/route is a pain in the ...
[23:25] <alan23424> lol
[23:25] <alan23424> the one my isp sent me ended up in the bin
[23:26] <Delerium_> alan23424, I surely will ... I plug in an old DSL modem and use my time capsule as my router / port forwarding
[23:26] <alan23424> same
[23:27] <Delerium_> alan23424, that dumb 2wire didnd't see my VM guest, and I could not specify any IP.. .crap
[23:28] <alan23424> i use an ancient netgear one, just becuase static dhcp and dmz is so easy
[23:29] <Delerium_> yep, old speedstream here... so far so good .. I did a speed test and it's all good .. Thanks for the test alan23424