/srv/irclogs.ubuntu.com/2011/04/23/#ubuntu-server.txt

econCan 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:10
jMCgecon: why do you have an usb wifi in your server?00:14
econits 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:16
jMCgecon: you'll need wpasupplicant, which from what I remember is pain to configure without the fancy GUI stuff.00:20
jMCgSays the guy whoi is entirely GUI-capped.00:20
econOk, I'll check it out. Thanks00:23
jMCgIIRC, there's some CLI client, but that's quite.. shit.00:24
jMCg/sbin/wpa_cli00:24
=== jjohansen is now known as jj-afk
uvirtbotNew bug: #769191 in krb5 (main) "Incorrect configuration at installation" [Undecided,New] https://launchpad.net/bugs/76919100:46
=== david5345 is now known as dlublink
=== cole is now known as Guest90229
HazRPGright, 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 bit01:41
HazRPGI'm trying to run a minecraft server on my ubuntu server01:42
HazRPGnow since its java, I have to run this inside of a screen to get this to work01:42
HazRPGI've got a user pointed straight towards doing just this job, and I've locked out the password01:43
jMCgOr you could.. use upstart, which will take care of restarting it when it dies!01:43
HazRPGnow my problem is, that user can't issue a screen, esp since I can only really use him as "sudo su - user"01:43
HazRPGjMCg: 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 backups01:44
HazRPGwhile announcing to the user such tasks01:45
qman__IIRC, in order to launch screen, it must be run by a user who has a password01:45
qman__you can work around this problem by launching screen as another user01:45
qman__and run sudo -u username $command01:46
qman__inside of that screen01:46
qman__not having a password means no interactive logon01:47
HazRPGyeah01:47
HazRPGsee the reason I did this was because I just wanted it to be self contained01:48
HazRPGbut not being able to start this as service is a pain01:48
qman__well, like I said, you could just launch screen as a different user and then run the command inside it01:49
qman__so, instead of 'sudo -u username screen $command', 'screen sudo -u username $command'01:49
qman__you could even run that screen as root if you're so inclined01:50
qman__the server is still running as the other user01:50
HazRPGrunning minecraft as root doesn't sound like a good plan though lol01:51
qman__you're not01:51
qman__you're running screen as root01:51
qman__you're still running minecraft as your limited user01:51
HazRPGright01:53
qman__don't know what it is with game server programmers, but they just refuse to write them as daemons for some reason01:53
qman__srcds and unreal are the same way, interactive consoles01:53
morbsudo su -c command interactiveuser01:54
morbheh01:54
morbversus screen01:54
morbor sudo -u01:54
morbshrug01:54
qman__that doesn't work01:55
morbwriteawrapperscript(tm)01:55
qman__the server doesn't run if it doesn't have an interactive console01:55
qman__it just hangs or quits01:55
qman__hence screen01:55
HazRPGthis whole thing has melted my mind01:55
morbOH01:55
HazRPGbeen trying to get this sorted since this afternoon >_<01:55
morbOIC01:55
morbokay so smp requires interactive console01:56
qman__yeah, it's pretty stupid on the programmer's part, but nothing we can do about that01:56
morbI ran it inside a screen window in the past and never thought anything of it01:56
morbhm01:56
qman__I did this exact thing with srds01:56
qman__srcds*01:56
morbI'm sure it could be tricked otherwise, but there's nothing wrong with wrapping it inside screen or other form of multiplexer01:57
qman__just a script that runs a screen as me, and the server inside the screen as the dedicated user01:57
qman__it's not that hard01:57
HazRPGhow would I script this to fit on the cron job for rendering then?01:57
qman__that, I couldn't tell you01:57
qman__I don't know how to interact with screens in an automated manner01:58
qman__it's probably documented if it's possible01:58
morbyou want to periodically type text on console?01:58
morbe.g. pipe commands via cronjob?01:58
HazRPGah 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... technically01:59
HazRPGhowever isn't this just bad practice doing it this way?01:59
qman__it's the best way as things stand01:59
qman__the problem is bad programming01:59
morbI've never set up a renderer beyond that livemap deal before bukkit became main01:59
qman__it's the best workaround I've found01:59
qman__security wise it's not too bad, no worse than just running it normally02:00
qman__and it's contained02:00
qman__the mess never leaves screen02:00
HazRPGwell 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__no02:01
morbscreen -dmS sessionname command02:01
qman__screen will exit and they will be kicked off02:01
morbbtw02:01
qman__because if you do it right, screen is not launched from an interactive shell02:01
morbwould be a way to manipulate that from scripts02:01
qman__it's launched as an upstart job or rc.local or whathaveyou02:01
morbor cron02:01
qman__but here's the key02: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 place02:02
qman__which basically means they'd own you either way02:02
HazRPGright02:03
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 shell02:04
qman__it just dies off02:04
HazRPGso, 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__yes02:04
qman__unless you double sudo02:04
qman__root runs screen as a third user02:04
qman__then screen runs the command as your minecraft user02:05
=== ng_ is now known as NG_
qman__said third user needs a password though02:05
qman__well, the way things are set up by default anyway02:05
qman__root has some magic going on, he's allowed to log in interactively without a password02:06
qman__nobody else is02:06
HazRPGright, would you mind helping me through this?02:07
qman__I can give you the scripts I made for srcds02:08
HazRPGbecause 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 script02:08
HazRPGsure02:08
qman__eh, looks like I made a real hash of it02:10
qman__http://pastebin.com/uP1zxNpp02:11
qman__but really, you should be able to just 'screen sudo -u username $command' inside a start script02:12
qman__seriously though, I was in exactly your position when I made this02:13
qman__the stupid thing refused to run02:13
qman__this does work, though, all else failing02:14
HazRPGright well here's what I did for my cron: http://paste.ubuntu.com/597660/02:16
HazRPGI don't think that would work in this sense though would it :(02:16
HazRPGonly just finally merged my windows box to a ubuntu-server box, and didn't realise how much hassle this could be lol02:17
qman__heh02:19
qman__could be worse, some game servers require X02:19
qman__and there was one person asking how to start up one in wine headless02:19
qman__that's a whole mess I want none of ;)02:20
HazRPGheh same!02:20
HazRPGI thought java was bad enough!02:20
HazRPGso 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 out02:21
qman__I use /etc/cron.d and friends02:21
qman__and it would probably be the same user that screen is run by02:21
qman__I was just running mine manually though02:22
HazRPGah so /etc/init.d/ and /etc/cron.d/ would be essentially the two I'm using02:22
qman__makes you appreciate a properly written daemon02:23
qman__ /etc/init.d for sysvinit scripts, if you're using that02:23
qman__it's technically deprecated in ubuntu but they still work02:23
qman__and I don't see it going away any time soon02:23
qman__lots of stuff needs to be converted to upstart first02:23
qman__I wrote that before upstart existed02:24
HazRPGsee I've done nothing as far as upstart is concerned02:25
qman__I'm not a fan02:25
HazRPGin fact I've done nothing with sysvinit either, other than using them02:25
qman__too much work and it's still not all that great02:25
HazRPGso this is all new (and news) to me02:25
HazRPGsounds like unity :/02:26
HazRPGbut that's a rant for a totally different channel lol02:26
qman__I'd either stick with sysv or go all-in with systemd02:26
qman__upstart is kind of in the middle02:26
qman__but yeah, just my opinino02:26
DatzSc02:26
HazRPGright, lets see if I can do an /etc/init.d/ script :P02:30
HazRPGhmm just found this: http://www.minecraftwiki.net/wiki/Server_startup_script02:36
HazRPGhow I'd make a cron for that, is beyond me though02:36
HazRPGthe only bit I don't get really is the "Default-Start" and "Default-Stop" stuff02:40
=== asac_ is now known as asac
goddardautomatic backups ... how do i do it?03:11
qman__goddard, cron + tar03:23
HazRPGI really need to change my bios settings on my server T_T03:39
HazRPGreboot takes forever due to all the bios check crud03:39
HazRPGin fact I think most of it is netboot and cdrom stuff03:40
goddardqman__ know of any scripts?03:40
patdk-nbautomatic backups of what?03:41
HazRPGtoo vague03:42
patdk-nbof what would you like automatic backup of with your server?03:42
goddardi want to backup everything that would be important for a web server03:42
goddardapache configuration php mysql web data03:43
patdk-nbsounds like atleast 3 things then03:43
patdk-nbmysql, /etc and /var/www03:43
goddardyep03:44
goddardwait not etc...well maybe03:44
patdk-nbif you want to save your apache/php/... settings03:44
patdk-nbso many admins have issues and wipe out stuff in etc by accident03:44
goddardeach 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 binaries03:45
goddard?03:45
patdk-nbbasically saving /etc does that also, cause it saves apt settings for package sources03:45
goddardisnt that pretty large?03:45
patdk-nbfor like if you some ppa's or something03:46
patdk-nbsure, mine is like 20megs or so03:46
goddard20megs thats nothing :D03:46
patdk-nbback it up offsite each night03:46
goddardyeah thats what i wanna setup03:46
patdk-nbI'm actually doing mysqldumps and backing up etc03:48
patdk-nbthen backing up those backups03:48
patdk-nbso mysqldump and etc both are 22megs combined for me03:48
goddardpretty lite03:48
patdk-nbI'm also backing up /usr/local, cause I put my custom stuff there03:48
patdk-nb210megs03:48
patdk-nbwell, I don't run any mysql websites on that :) so it's small03:49
patdk-nbthe mysql website I do handle has 8gigs of data03:49
patdk-nbbut in mysqldump | gz is about 1gig03:49
qman__ /etc is not binaries03:50
qman__it is configuration files only03:50
qman__binaries go in /bin, /sbin, /usr/bin, /usr/sbin, etc03:50
patdk-nbqman, yep, and apt config helps get all the extra binaries :)03:50
qman__etc as in etc... not /etc03:50
goddard:D03:50
goddardthanks for clearing that up03:50
patdk-nbmy /etc compresses to 1.4megs03:50
qman__yep03:51
qman__mostly text, compresses well03:51
patdk-nbsame with mysql if you dump it03:51
qman__there are complete backup systems, but unless you have some infrastructure going on, it's not really worth it03:53
qman__a three to five line bash script will do03:53
qman__drop it in cron.d03:53
goddardalriht good to know just add that to the list of 30 thngs i gotta do :D03:54
patdk-nbdon't worry03:55
patdk-nbafter your first big dataloss03:55
patdk-nbyou will make a good backup solution03:55
qman__heh03:56
qman__my solution at home is to just keep a copy of everything important on several computers03:56
qman__can't really afford a backup system03:56
qman__but yeah03:56
patdk-nbmy home is generally my backup :)03:56
patdk-nbnightly rsync to home03:56
qman__production servers, gotta have it03:56
patdk-nbthen backup system does incrementals of that rsync03:57
HazRPGqman__: oh btw, thanks for your help earlier :)03:57
qman__ironically, my file server, where I store most backups, has been the least reliable system03:57
goddardi actually had a horrible setup using Dreamweaver and a production  and test server03:57
qman__single disk budget systems outlasting my raid 503:58
patdk-nbbackup drive consists of 8 1tb re4 drives, raid6 of 6 drives, and 2 spare03:58
qman__running raid 6 with hot spare now03:58
goddarddidnt have a backup and had to some how fix it03:58
goddardit was amazing i was able to fix it03:58
goddardextremely lucky03:58
qman__I lost three disks in one day on my last array03:58
goddardouch03:59
patdk-nbya, I had a raid50, 6 drives, with spare03:59
patdk-nblose 4 drives03:59
qman__it's only paranoid until it happens to you03:59
patdk-nbspare was probably lost before it was needed03:59
patdk-nbhmm, something isn't right here04:01
patdk-nboh :) wasn't comparing the correct paths :)04:01
patdk-nbwas wondering why mail on one was 700megs and the other was 8gigs04:02
qman__they don't make hard drives like they used to04:03
qman__the system drive on that file server is a 4GB Quantum Fireball, still running strong04:04
patdk-nbna, they are using ecc correction for more than failsafe04:04
patdk-nbthey depend on it04:04
qman__and it'll probably outlast the second array04:04
patdk-nbwhy I'm alittle paranoid about these 4k sector drives04:04
patdk-nbbesides the fact mine have only lasted 2 months before needing replacement04:05
HazRPGscore!04:05
HazRPGmanaged to get the cron to work :D04:06
HazRPGand now I have a cool script to go with my minecraft server too04:06
goddardhaha minecraft :D04:06
HazRPGthis is done a lot better than I was originally going to do before I asked for help04:07
HazRPGagain much thanks :)04:07
qman__glad it's working out04:07
darkmarblecan't seem to get wget to log onto a site with the whole --save-cookie and --post-data scheme... any ideas?04:08
patdk-nbdarkmarble, if it's a ms .net thing, you have to save and pass the forms cookie stuff, it's lots of fun :)04:10
darkmarbletried using --load-cookie on the 2nd wget run, no dice :(04:11
darkmarbleeven went through the --save-session-cookies bit, tried a lot of approaches so now I'm just at a loss as to what to do04:12
AphisOneIs there a best practice or common way of handling CVE compliance with Ubuntu Server?04:13
AphisOneI'm looking more or less for some documentation that I can reference.04:14
HazRPGqman__: 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:14
patdk-nbdarkmarble, ya, cookies are cookies, but did you save and resubmit all the form variables?04:15
qman__nice04:15
HazRPGqman__: 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 working04:15
HazRPGjust-works™04:16
darkmarblepatdk-nb: well considering it's a short form, i just used --post-data='username=user&password=pass'  not the right approach?04:17
HazRPGalso means if I want to do more work inside that screen, I can04:17
centHOGGhi, any tips on CLI lm-sensors config, I have it working but can it be more selective?04:17
centHOGG<ubuntuNAS04:21
trimetaSomething'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
trimetaOr at the very least, there's an old copy of the text that's still there and won't go away.04:46
uvirtbotNew bug: #769354 in elinks (universe) "elinks accepts self-signed ssl certificates without warning" [Undecided,New] https://launchpad.net/bugs/76935406:32
pehdenmysql server wont start after moron installed module in drupal07:31
pehdenUrgent matter07:32
kthomas_vh_#drupal-consultants :) ?07:33
pehdenill clear that data base if i have to07:33
pehdenit just has to start07:33
pehdeni have several other databases07:34
kthomas_vh_you'd probably do better to check your logs for the error07:34
pehdenhmm07:34
kthomas_vh_installing a drupal module does not normally stop mysql from starting up :P07:34
pehdenthats what i thought but from what it sounded like was thats when it happened07:35
pehdenwhere is the log for mysql07:35
pehdenmy list doesnt show that one07:36
kthomas_vh_google?07:36
pehdenok found the log but it looks empty07:41
pehden/var/log/mysql.err and /mysql.log07:41
kthomas_vh_so maybe change your logging level,  and/or read up on logging options?07:42
pehdenis there a way to start it with only selective databases07:44
pehdenmysqld_safe --skip-grant-tables07:44
pehdenlike that07:44
kthomas_vh_try it and see?07:44
pehdenit starts but none of the sites connect07:44
kthomas_vh_because you don't have any table grants,  no doubt :)07:50
goddardhow do i know what libraries i can use if my project isn't open source? im not lawyer07:52
pehdenwth steven08:01
goddardhow do i get one of those08:06
pehdengoddard you can use open source libraries and put them in a closed source prodject08:08
goddardwont it be illegal?08:09
pehdenlook up GNU license08:15
reisihmm 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 enough08:53
reisiyou cannot link to gpl [library] from closed source application, that would be a violation of the license ...08:53
ShapeshifterHi. How do I add another daemon to be automatically started upon booting?09:25
joyceI am on 10.04, but my kernel is still 2.6.18. How can I upgrade my kernel?09:54
pehdenhmm fixed issue09:58
pehdensome how the log folder filled the hardrive to max removed all that then reinstalled mysql no purge and it worked09:59
aliveriusi need mono-1 but it is not available :(11:01
=== NG_ is now known as ng_
=== ng_ is now known as NG_
storrgieDoes anyone know of a guide to help me understand how to block websites if I'm running a linux machine as a gateway?13:45
Zeu5hi there, my motd keeps showing 43 packages can be updated.13:47
Zeu522 updates are security updates.13:47
Zeu5but i have already done sudo apt-get update, sudo apt-get upgrade and sudo apt-get dist-upgrade and then restarted my instance13:47
Zeu5please advise abt my motd thank you13:47
ArisVernfs4 server, how do i, create a partition and export a partition on my disk?13:49
=== joyce_ is now known as joyce
cerneulahello 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 has13:55
cerneulait says 267 people in this room, but I can't see a single line, why?14:00
oCeancerneula: it's quiet, people are just idling14:01
cerneulathanks14: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? Many14:01
oCeancerneula: anything useful in /var/log/auth.log?14:04
=== joyce_ is now known as joyce
ArisVerHi, i get a 403 error for my localhost page. How do i fix this?14:50
qman__ArisVer, chmod o+r /path/to/website14:50
RoyK+x too14:51
ArisVerI get a, no such file or directory.14:53
ArisVerwait14:53
ArisVerNothing happened , still get 403.14:55
ArisVerI get a, no such file or directory. (this is okay now, it was typing mistake).14:56
ArisVerchmod did nothing. I had permission access from before.14:59
=== NG_ is now known as ng_
ArisVerWhen 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:03
=== ng_ is now known as NG_
=== NG_ is now known as ng_
cerneulahello 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 ha15:30
cerneulasorry, it had expired, here is the new link15:32
cerneulahttp://pastebin.com/ytH6nqw215:32
uvirtbotNew bug: #769514 in postfix (main) "Mail not sent unless relayhost has a port number" [Undecided,New] https://launchpad.net/bugs/76951415:36
=== ng_ is now known as NG_
kellnolaArisVer, apparmor, perhaps?15:48
kellnolaor perhaps the server is not listening on localhost?15:49
kellnolawait no it isn't that15:50
ArisVerkellnola ,  what is apparmor?16:08
ArisVerkellnola, i found out, my knowledge is very limited for that.16:13
Zeu5hi there,16:30
Zeu5ever since i updated my ubuntu server instance and restarted it, my apache is no longer working16:30
Zeu5please advise.16:30
kellnolaArisVer, 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 teardown16:31
kellnolaZeu5, look in your apache logs16:32
kellnolaZeu5, try to start it manually16:32
Zeu5kellnola: which  folder is that?16:32
kellnolaZeu5, /var/log/apache16:32
Zeu5kellnola: i tried sudo sudo /etc/init.d/apache2 start but still get same rror message16:32
kellnolaZeu5, try sudo /usr/sbin/apache2 -X16:33
Zeu5kellnola:  okie i am in as root16:33
Zeu5i can view a lot of files in side /var/log/apache216:33
kellnolaZeu5, error.log is the one your're looking for16:34
kellnolaZeu5, try the command I printed there16:34
kellnolaZeu5, and see what it says16:34
Zeu5the command gave me this16:35
Zeu5apache2: bad user name ${APACHE_RUN_USER}16:35
kellnolaZeu5, sorry, sudo su www-data -c /usr/sbin/apache2 -X16:36
Zeu5kellnola: i did a sudo -i16:36
Zeu5so i am now root16:37
Zeu5shd i still use the command in full that u gave me?16:37
kellnolayes16:37
kellnoladoesn't matter16:37
TheEvilPhoenixi think we need to find what's binding to port 80 already, Zeu5.16:37
TheEvilPhoenix*reads the info from #httpd*16:37
Zeu5guys, i accidentally rm my error.log16:37
TheEvilPhoenixZeu5:  you're in trouble then16:37
kellnolaZeu5, just run the command and apache will log to STDOUT16:37
TheEvilPhoenixin any case, i iforget the command(s) to list what's listening on what ports16:38
Zeu5the command did not work16:38
TheEvilPhoenixi could use that myself16:38
TheEvilPhoenix:p16:38
Zeu5su: invalid option -- 'X'16:38
Zeu5Usage: su [options] [LOGIN]16:38
TheEvilPhoenixkellnola:  any idea what command you can use to show what's listening on what port(s)?16:38
ArisVerkellnola, 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
kellnolaTheEvilPhoenix, sudo lsof -i | grep LISTEN16:38
kellnolaArisVer, yes, that's how you turn it off. (for troubleshooting)16:39
Zeu5TheEvilPhoenix: kellnola this is mine http://bin.cakephp.org/view/136700044016:39
kellnolaZeu5, the -X is an argument to apache2, not su16:39
Zeu5no port 80 as far as i can see16:39
TheEvilPhoenixstrange, I can't find port 80 being bound to on mine either :P16:40
kellnolaZeu5, and no "*:www"16:40
kellnola?16:40
TheEvilPhoenixwell that's odd...16:40
Zeu5kellnola: i dun understand16:40
kellnolait's something else then16:40
TheEvilPhoenixkellnola:  nothing's bound to port 8016:40
Zeu5can you give me the command that you want me to run again?16:40
TheEvilPhoenixkellnola:  might be a new bug in Ubuntu systems16:40
Zeu5guys?16:42
TheEvilPhoenixkellnola:  Zeu5 and I are in the same boat, something's blocking binding to port 8016:42
kellnolahold on Im tripped up by the ubuntu way here ... let me look at it a minute16:42
TheEvilPhoenixnot sure what16:42
kellnolaTheEvilPhoenix, where do you see that? in the error log?16:42
TheEvilPhoenixkellnola:  in the output from `s service apache2 start`16:43
TheEvilPhoenixwhere that first "s" is an alias for sudo16:43
kellnolaok try sudo lsof -i16:43
TheEvilPhoenixsec16:43
kellnolapipe to egrep "(www|80)"16:44
TheEvilPhoenixoop16:44
TheEvilPhoenixwait a sec16:44
* TheEvilPhoenix thinks there was some random glitch in his system16:44
Zeu5kellnola: what command would you like me to try?16:44
kellnolamight be something established and not listening16:44
TheEvilPhoenixended up having to drop into a root prompt16:44
kellnolaZeu5, hold on16:44
Zeu5kellnola: thanks16:44
TheEvilPhoenixkellnola:  i ended up dropping myself into a root prompt where I had to do 'service apache2 stop; service apache2 start'16:45
TheEvilPhoenixit loaded correctly16:45
TheEvilPhoenixlemme test this again16:45
TheEvilPhoenixZeu5:  you wouldn't happen to not be prepending "sudo" to the /etc/init.d/apache2 start command would ya?16:46
Zeu5i am now root16:46
Zeu5sudo -i16:46
TheEvilPhoenixZeu5:  run this, with the semicolon: service apache2 stop; service apache2 start16:46
Zeu5/etc/init.d/apache2 start i get the could not bind to address error16:47
TheEvilPhoenixdid you stop it first?16:47
Zeu5yesi stopped it16:47
TheEvilPhoenixthen in your system, your system must have something else binding to it16:47
Zeu5TheEvilPhoenix: okie so what do i do  next?16:48
TheEvilPhoenixsec,  need to configure something on my root prompt16:48
Zeu5okie thanks for helping16:49
Zeu5i really appreciate this16:49
kellnolawait are you using ubuntu or zentyal or something?16:50
TheEvilPhoenixkellnola:  you realize this is the ubuntu channel right?  Zeu5 already stated its an ubuntu system16:51
Zeu5ubuntu 10.04 server16:51
kellnolahave to make sure. Zentyal IS ubuntu, but it puts its paws into everything16:51
TheEvilPhoenixZeu5:  as root: netstat -nutap | grep :8016:51
TheEvilPhoenixZeu5:  pastebin the output16:51
Zeu5i have never heard of Zentyal16:52
TheEvilPhoenixif you can :P16:52
kellnolaZeu5, it's a popular ubuntu knockoff16:52
TheEvilPhoenixheh16:52
TheEvilPhoenixknockoffs are crap16:52
kellnolafor servers16:52
Zeu5http://bin.cakephp.org/view/136700044016:52
Zeu5my paste16:52
TheEvilPhoenixoh lookie:16:52
TheEvilPhoenixtcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      443/apache216:53
kellnolaZeu5, you have to make sure all those apache procs are killed16:53
kellnolathere are several in SYN_RECV16:53
Zeu5kellnola: advice on this16:53
TheEvilPhoenixZeu5:  killall -9 apache216:53
TheEvilPhoenixas root16:53
kellnolathat will do it16:53
Zeu5TheEvilPhoenix: thanks16:53
TheEvilPhoenixmhm16:54
Zeu5now netstat -nutap | grep :80 shows nothing16:54
TheEvilPhoenixZeu5:  after the killall, do 'service apache2 restart'16:54
TheEvilPhoenixgood16:54
kellnolaok good. try to start apache16:54
TheEvilPhoenixdo service apache2 restart16:54
Zeu5can someone explain to me? i am writing all this into my google docs to teach myself16:54
kellnolayou 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
Zeu5kellnola: i see16:55
Zeu5so netstat -nutap |grep :80 means?16:55
TheEvilPhoenixnetstat is a program16:56
TheEvilPhoenixnetstat -nutap is as follows:16:56
jMCgZeu5: man netstat, man grep...16:56
kellnolalist everything without any name resolution piped to grep for port 8016:56
TheEvilPhoenixindeed16:56
TheEvilPhoenixi.e.16:56
kellnolalsof will show that as well. I like lsof better myself16:56
TheEvilPhoenix*shrugs*16:56
kellnolanetstat is ancient16:56
Zeu5i see16:56
TheEvilPhoenixlsof wasnt workin for me :P16:56
jMCg-a everything, -n nameresolution, -t tcp, -p program, -uI have no idea.16:57
kellnolaprob we were grepping for the wrong thing16:57
Zeu5great16:57
Zeu5everything now is working16:57
Zeu5thanks guys16:57
Zeu5thank you kellnola and TheEvilPhoenix16:58
kellnolaZeu5, ps ax would also have shown you running apache procs16:58
Zeu5its okay16:58
Zeu5i have saved the netstat command and the killall16:58
Zeu5into my google docs with some comments16:58
Zeu5it sucks to be a ubuntu noob like me :(16:58
jMCgs/ubuntu/Unix/16:59
TheEvilPhoenixjMCg:  -u is udp for netstat16:59
kellnolajMCg, :). I am somewhat a noob to the ubuntu way of doing tings on server, but not to linux.16:59
kellnolaZeu5, I might suggest learning the core admin commands17:00
kellnolavery well17:00
jMCgTheEvilPhoenix: I have consulted netstat(8) since and found that out myself!17:00
TheEvilPhoenix;P17:00
* TheEvilPhoenix goes back to fiddling with iptables rules17:01
Zeu5kellnola: where is this core admin commands?17:01
kellnolaZeu5, well there are a few dozen indispensable ones17:01
Zeu5is there a webpage dedicated to it?17:02
kellnolaand you need to know how to at least pipe to other commands to sort and limit to what you want17:02
Zeu5i need something really noob-friendly the apache2 manual for eg, i find it hard to digest17:02
kellnolaZeu5, tackle learning unix first17:03
kellnolathen the apache manual will make sense17:03
Zeu5kellnola: well, i am now using ubuntu for all my working purposes on my laptop so as to familiarise myself with ubuntu17:03
jMCgZeu5: the "apache2" or, as I prefer to call it Apache HTTP Server manual is easy, once you understand how it works.17:03
Zeu5however, the moment i find myself not using those sudo /etc/watever restart17:03
jMCghttp://blag.esotericsystems.at/2011/02/systematic-high-intensity-training-202/ <<<17:03
Zeu5for a while, i forget all abt them17:03
kellnolaZeu5, well, ubuntu tries to make everything easy, but on the server all bets are off, you need unix skills17:03
jMCgI really like: http://www.freebsd.org/doc/en/books/handbook/basics.html -- but I don't know of an equivalent for Linux.17:04
Zeu5thanks jMCg17:04
Zeu5kellnola: any books or ebooks u recommend fro server admin?17:04
kellnolajMCg, do they even use GNU utils in BSD?17:04
Zeu5i am using ubuntu server17:04
jMCgkellnola: who cares? They are POSIXy enough.17:05
kellnolaI guess. The switches are different, no biggie to me, but to a newbie that can be confusing17:05
jMCgIf 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:05
jMCgYes, unfortunately, some switches are a little different. :-/17:06
jMCgI linked that in my article: http://people.freebsd.org/~schweikh/posix-utilities.html17:06
kellnolaSolaris admins also bring their habits to linux17:07
Zeu5kellnola: so.. books?17:07
jMCgMost importantly: killall doesn't do the same on Solaris as it does on Linux :)17:07
kellnolaNOPE17:07
jMCgAnd memory works differently. Entirely differently.17:07
jMCgZeu5: I've had a couple of recommendations back in the day, but never really read any of them.17:08
Zeu5kellnola: okay. but any case, thank you very myuch17:08
Zeu5jMCg: the books must be really noob friendly17:08
kellnolathe sysadmin guide that is installable via apt is pretty good17:08
Zeu5jMCg: i am a very very slow learner17:08
kellnolaO'Reilly internet core protocols and bind books are great17:09
Zeu5kellnola: i got anaccount in oreilly i go check out17:09
maswanjMCg: that's why it is a good habit to use pkill instead of killall17:09
Zeu5thanks17:09
kellnolaZeu5, I hate to reccomend, the the "for dummies" series is actually good for people just starting out from scratch17:10
Zeu5kellnola: well personally i dun ve very good opinions of the for dummies17:10
Zeu5but i guess i am really left with no choice17:10
jMCgmaswan: I don't use pkill.17:10
jMCgs/pkill/killall/17:10
kellnolaI remember unix being quite bewildering when I first started way back when17:10
kellnolait's too bad open solaris didn't take off. I really like solaris17:11
jMCgkellnola: Open Solaris did take off, and then it was shot down.17:11
kellnolacorrected. I know. A solaris with debian style package management would be wonderful. that is solaris' only weak point17:12
kellnolaas it stands it's relegated to the commercial nix world17:12
jMCgnexenta?17:13
kellnolawhat's that?17:13
jMCgA Solaris with debian style package management17:14
jMCghttp://www.nexenta.org/17:14
kellnolaoh hell yes17:14
maswankellnola: there are some other annoying weak points too, like the tcp stack17:17
kellnolamaswan, I find the most annoying thing about solaris isn't the OS, but the admin and dev "culture", which seems to be stuck in 199217:18
kellnolamaswan, but as for the TCP stack, what do you mean specifically?17:19
maswankellnola: 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 it17:19
maswankellnola: no tcp window size autotuning17:19
kellnolafuck oracle17:19
kellnolaoracle will ruin everything17:19
kellnolaI think they're poised to gobble up red hat now17:20
maswannow we're back to requiring lucid in our procurements :)17:20
kellnolalinux might not be the most ingenious unix, but the engineering in the deb based distros is clearly above everyone else17:21
kellnolathey are so meticulous17:21
kellnolain my last nix job, it was RHEL and solaris only17:21
kellnolaand I HATE RHEL17:22
maswanI'm not very fond of rhel derivatives either, but luckily i don't have to deal with them much17:22
kellnolahad about 300 RHEL desktops to manage17:22
maswanquite a bit of that comes from the very careful debian packaging policy17:22
kellnolamaswan, it does. Debian devs are great engineers. It truly is an admins dream17:23
kellnolabut working in the commercial unix world, I found that commercial nix app developers are even worse than windows developers17:24
kellnolamaswan, 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 manager17:25
maswankellnola: yeah, it does have downsides though, like release schedule17:26
kellnolamaswan, I don't really care about that myself. I prefer a slow release policy, though it's painful on desktops17:27
maswankellnola: it sucks for servers when the drivers are only in newer kernels, with enough changes to make backporting painful17:28
kellnolaI 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 NOT17:29
kellnolamaswan, that happens with RHEL all the time. With DELL servers too, and they are supposed to have this great relationship with Red Hat17:30
kellnolaUbuntu is a little more realistic than debian about that ... LTS does have point releases that have newer drivers17:31
kellnolaI 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 over17:33
uvirtbotNew bug: #769580 in php5 (main) "PHP script executed twice on each request" [Undecided,New] https://launchpad.net/bugs/76958019:22
rocheHello 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 package19:27
rocheI tried to remove mysql-client but is a dependency of mysql-cluster-client19:28
rocheCan you help me to overcome these problem?19:30
rynopI 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)21:08
dassoukiis there a dropbox type app that i can install on my server?22:00
dassoukior what would you recommend as a source code repos, but for engineering / cad projects?22:00
webactivexhi 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
guntbertwebactivex: do you have experience running mail servers?22:06
webactivexno this is my first time22:07
webactivexI have a book on post fix I have been trying to go through22:07
webactivexpostfix the definitive guide22:08
guntbertwebactivex: 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
webactivexguntbert: that is really not a option at this time22:08
webactivexthese are not play servers these are work servers22:08
guntbertwebactivex: care to tell me why?22:08
webactivexits something that has to be setup22:09
webactivexI have the DNS pointing correctly I am pretty sude22:09
webactivexsure, with the MX records all setup22:09
guntbertwebactivex: thats what I was hinting at: someone without experience is bound to make serious mistakes22:09
webactivexprobably, but that doesn't change the situation22:10
guntbertand I'm not talking about DNS records22:10
webactivexare you able to help diagnosing?22:10
guntbertwebactivex: are you able to connect from terminal?22:10
webactivexyes22:11
webactivexI am getting a relay access denied22:11
guntbertthen where is the problem?22:12
webactivexon RCPT TO:22:12
webactivexI am trying to hook up thunderbird and its not working22:12
guntbertforget 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 anywhere22:14
webactivexalright, do you have something I can search on to read up on this? or some sort of command?22:18
guntbertwebactivex: 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
kthomasinstalled 10.10,  every time I hit 'd' in a window,  the window minimized.  (gnome-desktop)22:22
webactivex*sigh*\22:23
webactivexguntbert: I wouldn't have bought a book on postfix if I wasn't expecting to do it myself22:23
guntbertwebactivex: 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
webactivexto send mail through me@mydomain.com22:26
webactivexand like I said, I can recieve just fine... I cannot send22:27
webactivexI am a programmer by trade dude, so I am no fool... I just need the correct documentation.22:28
guntbertsorry, 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
guntbertand don't "dude" me please22:28
webactivexits a vps where a bunch of stuff is running22:29
webactivexpretty much the story22:29
guntbertwebactivex: so no real reason at all -  why do you need your own mail server? you still didn't answer that question22:30
webactivexme@mydomain.com.. I told u22:30
guntbertok, you wanna be cagey - fine with me, bedtime anyway here - have a nice time (and please heed my warnings about open mail relays)22:32
webactivexI 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:34
webactivexto steer me away from a direction that I have already bought a book for seems I dunno...22:35
webactivexI am looking for ways of figuring out my problem.. not hearing what I do not know and what could go wrong22:36
webactivexI am sorry if how I say it is offensive, but that is the fact of the matter, plain and simple22:36
webactivexThank 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 about22:38
alan23424can you connect with thunderbird and pull down your existing mail?22:43
webactivexalan23424: yes22:43
alan23424And you want to use your server as an outbound relay?22:44
webactivexright now I am using gmail.com as a outbound relay22:44
webactivexsince it is setup through there22:45
webactivexI would like to change that over to SMTP22:45
alan23424alright22:46
alan23424but why not config your mail agent just to send relay ourbound through your isp upstream smtp server22:47
webactivexwould it work on a vps22:49
alan23424if your hosting company provide a mail relay. mine does22:51
webactivexWhen you send mail as julieprokes28@designsweetener.com, the mail can either be sent through Gmail or through designsweetener.com SMTP servers.22:51
webactivexthat is the message that I am getting22:51
alan23424but normally if i am connecting to my server from home, my client would just use smtp.$isp.co.uk for outbound mails22:52
alan23424why is it so important to relay outbound back through the server22:53
alan23424if you log in and send a mail from the command line, does that work and send out?22:53
webactivexso when the config is setup to run gmail SMTP, the22:53
webactivexSender: dsjulieprokes@gmail.com I do not want that.. I want Sender: julie@designsweetener.com22:53
webactivexthat is my primary reason for this22:54
alan23424got it22:54
webactivexgmail just happens to be my mail client22:54
webactivexlike thunderbird22:54
webactivexif you can make that happen, then that is all I care about22:54
alan23424from 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
alan23424and dont worry about relaying back through your mail server22:55
alan23424it will work22:55
webactivexI am fine with using someone elses SMTP server22:55
webactivexI would like to run my own really22:56
webactivexbecause it is something I would like to know22:56
webactivexbut right now we cannot send email in the right format... and that is a problem.. which is the reason for my slight tude22:56
alan23424for 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.org22:56
alan23424just dont use gmailk22:56
alan23424in your office your isp will have smtp settings and they will allow you to send from whatever address you want22:57
alan23424gmail wont22:58
webactivexgmail can do SMTP, lol.. I just need to have it route somewhere!22:58
webactivexlol22:58
webactivexyou can do custom smtp on gmail22:58
alan23424if you want gmail headers on your emails22:58
webactivexgmail 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 server22:59
webactivexlet me look at my VPS quick23:00
webactivexI use swvps23:00
alan23424then route it through your isp upstream smtp. it doesn't go through your vps, and don't route through gmail simples23:00
alan23424i say this because your server is not on same site as you23:01
alan23424if it was i would say use that as outbound23:01
webactivexyou are talking like comcast?>23:02
alan23424smtp.comcast.net23:04
alan23424and yeah23:04
webactivexalright... so how does this make the sender change to Sender: julie@designsweetener.com23:07
webactivexlets say I use smtp.comcast.net23:07
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:08
alan23424just try it23:09
webactivexok23:12
webactivexthanks, I will23:12
alan23424whatever email address is in the 'email address' field in Account Settings in thunderbird, that's the address that stuff will look like in came from23:12
alan23424quick and easy23:12
Delerium_Hi guys, is there anyone who can test my website if available from the outside world (www.elezium.com)23:23
alan23424it is23:24
Delerium_alan23424, Thanks very much .. that's 2 wire modem/route is a pain in the ...23:24
alan23424lol23:25
alan23424the one my isp sent me ended up in the bin23:25
Delerium_alan23424, I surely will ... I plug in an old DSL modem and use my time capsule as my router / port forwarding23:26
uvirtbotNew bug: #769649 in samba (main) "package smbclient 2:3.4.7~dfsg-1ubuntu3.6 failed to install/upgrade: ile tar rovinato - l'archivio del pacchetto è danneggiato" [Undecided,New] https://launchpad.net/bugs/76964923:26
alan23424same23:26
Delerium_alan23424, that dumb 2wire didnd't see my VM guest, and I could not specify any IP.. .crap23:27
alan23424i use an ancient netgear one, just becuase static dhcp and dmz is so easy23:28
Delerium_yep, old speedstream here... so far so good .. I did a speed test and it's all good .. Thanks for the test alan2342423:29

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