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