/srv/irclogs.ubuntu.com/2009/04/19/#ubuntu-server.txt

MiddleOfNowhereAnyone in here familiar with Windows Server 2003?00:16
=== mathiaz_ is now known as mathiaz
Justin___Wouldn't that dump all their home files to /var/www and change the user/guid to their login then another person's login etc etc .. there are going to be 5 or 6 people ftp'ing this server ..00:24
=== Bambi_BOFH is now known as Kamping_Kaiser
reidHi.. If I wanted to set up my network in such a way as WAN---->ubuntu-server---->router---->      how would I accomplish this on the server, given that I have 2 NIC cards in it02:30
giovanireid: you want your server to act as a router, or a bridge, or what?02:30
reidwell, my server is currently a torrentbox/fileserver,  but it has SERIOUS trouble working from behind the router02:30
reidso that is my incentive,  im not sure how to execute it properly =P02:31
giovaniok, well, I can't design your network for you02:31
giovanido you have multiple IPs from your ISP, or just one?02:31
reidjust one02:31
giovanithen you can't really do what you want to do02:31
reid=(02:31
giovaniwithout making everything more messy02:31
reidlol, looks like I have to find out why my torrents are moving so ridiculously slow on my server then when its behind the router02:32
giovaniyour ports probably aren't properly configured and forwarded02:32
reidI literally get a difference of 900 k/s in front, but only 100 k/s behind02:32
giovaniand therefore, you're only getting local peers02:32
giovaniand not remote peers02:32
reidwell, afaik they are configured02:33
giovaniwell I'm telling you that they probably aren't02:33
reidon the router I'm forwarding 30000-30100 to the server, and those are the ports that bittornado is listening on02:33
giovaniit accounts for 95-99% of the time there's a speed issue02:33
giovaniwell it's possible that bittornado is listening on other ports, I don't know02:34
giovaniit's not a very good torrent client02:34
reidwell, I'm using it for torrentflux02:34
giovaniyeah02:34
giovanithat doesn't make it a better torrent client :)02:34
reidlol02:35
reiddo you know of a similar solution as torrentflux, that uses a different client?02:35
giovaniyou could try rtorrent02:35
giovaniand a web-based frontend for it02:35
reid*drool* rtorrent02:36
giovaniunlike bittornado, it's actively developed02:36
giovanido you need a web frontend?02:37
giovanior would a console interface work ok?02:37
reidwell, a web frontend would be nice.  but then again the only reason I want this server would be to output the movies and stuff remotely to my HDTV02:38
reidmost likely via rdesktop =P02:38
reidand a web frontend doesn't really help me do that02:38
giovaniwell there are web-based frontends for libtorrent (rtorrent's base code)02:39
giovanior you can use rtorrent, which is a console interface02:39
giovanithere are even desktop apps that can connect to rtorrent/libtorrent remotely02:39
giovaniplenty of options02:39
giovanihttp://libtorrent.rakshasa.no/wiki/UtilsList02:39
reidawesome, thanks a lot man..  opened my eyes hah.  maybe Torrentflux just sucks02:40
reidbeen pullin out my hair trying to get it to work properly lol02:40
giovanitorrentflux doesn't suck ... it just doesn't support decent torrent clients02:40
reidyeah02:40
giovaniapt-get install rtorrent and you're done :)02:43
reidlol02:47
reidimma ssh to my server right now and do just that, and see if its something I could handle long-term02:47
giovanithe console interface takes some getting used to02:48
giovaniif you don't like it -- just use a web interface02:48
reidyeah torrentflux is in the repos though lol02:48
reidim so lazy02:48
giovanirtpg-www is in the repos too02:50
giovani(one of the web frontends for rtorrent)02:50
reidoh, its only in jaunty repo though huh02:55
giovaniguess so02:59
giovaniit's really not hard to install a web frontend though02:59
giovaniyou should learn02:59
LapLanderMay I ask a question?03:00
giovani!ask03:00
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line, so others can read and follow it easily). If anyone knows the answer they will most likely reply. :-)03:00
LapLanderI have a new Ubuntu server - I installed SNMP client, was told it was installed, but no /etc/snmp. I tried removing and reinstaling, same result - I am new to Ubuntu and not sure where to start looking to see what went wrong03:01
giovaniLapLander: what package did you install?03:02
LapLanderused apt-get install snmp scli tkmib03:02
giovaniwell why are you looking in /etc/?03:03
giovaniwhat are you looking for, exactly?03:03
LapLanderWhere else should I find /etc/snmp/snmp.conf - according to the man I was reading, that is where it gets configured after install03:03
giovaniwhat manpage?03:04
LapLanderI am a few days away - will have to retrace my steps to find that03:04
giovaniok ... well are you not using the apps you just installed?03:05
giovaniI'm not sure what function snmp.conf might serve -- but surely if you don't even know why you want it ... you don't need it03:05
giovanithe 'snmp' package provides a wealth of snmp client utilities03:05
giovaniI presume they're what you're looking for -- why not run them?03:06
LapLanderThe ones I have tried act like SNMP is not installed - no response is what I get to the snmp queries I try03:08
giovaniok wait03:08
giovaniwhat do mean they "act like SNMP is not installed"?03:08
giovanithe utilities are only there, and can be run because you installed the snmp package03:08
giovaniare you confusing the server with clients?03:09
LapLanderIsn't snmp.conf where the community string is set03:09
giovaniI think you're confusing roles here03:09
LapLanderI don't think so03:09
giovaniheh03:09
giovanisnmp is a set of query utilities, nothing more03:09
giovaniit's not the agent itself03:10
giovanimaybe you're looking for 'snmpd'03:11
giovaniwhich is the agent03:11
giovaniwhich you configure in /etc/snmp/snmpd.conf03:12
LapLanderOk, I guess I misunderstood - thanks for clarifying it03:13
giovanino problem03:13
SockPantshello all06:07
SockPantsis there a way to use ubuntu server to broadcast internet radio?06:08
=== pquarles is now known as p_quarles
=== pquarles is now known as p_quarles
=== pquarles is now known as p_quarles
SockPantshi08:53
SockPantsdoes ubuntu server 8.04 use alsa or oss or how do i find out on my system?08:53
SockPantsis there a way to see what process is using a sound device is ALSA?09:13
isaacsmSockPants: lsof /dev/snd09:39
eagles0513875i have shoutcast configured on my linuxbox but for some reason i cant start the server i keep getting bash: ./sc_serv: no such file or directory and i am in the directory where i have shoutcast13:20
beawesomeinsteadis it possible to mount (non-block) disk image via fstab? getting error that says it tries to mount disk image before parent partition...13:50
LyonJTHey,14:43
LyonJTi have a squid proxy server running14:43
LyonJTbut when i try to use it from another network i get a access denied message shown14:44
LyonJTwhy is thi14:44
uvirtbotNew bug: #363729 in openvpn (universe) "openvpn crashes under high load" [Undecided,New] https://launchpad.net/bugs/36372914:50
LyonJTMiddleOfNowhere: Check out #windows14:53
matt1211Hi, does anyone know how I can configure the netatalk package on my server to mount a directory other than the home directory by default to my finder?15:45
giovani!weekend | matt121115:50
ubottumatt1211: It's a weekend.  Often on weekends, the paid developers, and a lot of the community, may not be around to answer your question.  Please be patient, wait longer than you normally would, or try again during the working week.15:50
giovanimatt1211: also, netatalk ... is not the most common package ... you'd be better off reading their documentation, or finding their support channel15:51
=== `6og is now known as Kamping_Kaiser
giovanihmm, where did main.cf go from the postfix package in jaunty?16:52
giovaniam I missing something obvious?16:52
matt1211Is there a package for ubuntu that fixes permissions for users?16:54
infinitymatt1211: In what sense?16:54
giovanimatt1211: what do you mean by "fixes"?16:54
matt1211Well, when I try and create a user with my admin account on ubuntu, it says account expired, pam authorization failed.  I tried with root user and the same thing happens.16:56
giovanihow did you create the user? what command, exactly, was used?16:56
matt1211sudo adduser username16:57
infinityAnd when you log in to "username", it's expired?16:57
infinityThat usually indicated a clock issue.16:57
infinity(ie: your computer thinks it's 1900?)16:57
giovanicould be dead CMOS16:57
giovanimatt1211: run "date" at the command line16:57
giovanipaste the output here16:58
infinity*shrug* ... S'why I run ntpdate on boot, and ntpd during runtime.16:58
infinityHalf my machines don't know what time it is when they're off. :P16:58
giovanithat's not good16:59
infinityNah, it's just that I have a lot of machines that don't have battery-backed clocks.16:59
matt1211date16:59
matt1211Sun Apr 19 08:59:01 PDT 200916:59
matt1211that's the output17:00
infinityOkay, so it's not clock skew.   Fun.17:00
infinitymatt1211: When do you get the error?  When you create the user, or when you try to log in with it?17:00
matt1211when I create the user17:00
infinityOh, that's kinda special.17:00
giovaniit says "pam authorization failed" when you create the user?17:01
giovanireally?17:01
matt1211yes, that's the error I get.  how can I fix it? is there a way to reinstall those functions or something?17:07
infinityWhat does "passwd -S username" output?17:08
matt1211do this on a user that I have tried to create?17:09
infinityYes.17:09
matt1211Or just my admin one17:09
infinityUnless it's not actually creating them at all...?17:09
matt1211no it creates them17:10
matt1211sort of17:10
infinityKay.  Then yes, "passwd -S <name of new user>"17:10
matt1211it says test P and then a date.17:13
infinity....17:13
matt1211test is the username17:13
infinityCan't copy and paste the line?17:13
infinityLooking for something like "adconrad P 05/13/2008 0 99999 7 -1"17:13
matt1211il try17:13
matt1211test P 04/19/2009 0 99999 7 -117:14
infinityOkay, none of that looks like an expired password.  "grep test /etc/passwd" to see if the account is set expired?17:14
infinity(Should be something like "test:x:1002:1002:Test User,,,:/home/test:/bin/bash")17:15
infinityThe "x" for the second field is what I'm curious about.17:15
matt1211 test /etc/passwd17:17
matt1211test:x:1007:1007::/home/test:/bin/bash17:17
matt1211that is what I got17:18
infinityOkay, I'm at a loss.  It all looks fine.17:19
infinityWhat's exact pam error when you create a user?17:20
infinity(And it is when you run "adduser" right, not when you're running "sudo somecommand"?)17:20
matt1211can I just reinstall the part of ubuntu that deals with creating users or something?17:21
infinityYour user is being created fine.17:21
infinityThis is why I'm trying to figure out what your actual problem is.17:21
infinityWhen do you get the PAM error, exactly?  After adduser has run and asked you all the questions, or before the questions?17:22
infinityAnd do you have the exact error to copy and paste, rather than paraphrasing?17:22
matt1211chfn: PAM authentication failed17:24
matt1211adduser: `/usr/bin/chfn test' returned error code 1. Exiting.17:24
matt1211does that mean anything?17:26
infinityThat doesn't look like the "account expired" you were previously describing...17:26
matt1211that is above it, it just says your account has expired, please contact your system administrator.17:28
infinityAh-ha.17:28
infinityRight, this is due to you having unlocked and subsequently half-broken your root account.17:29
matt1211okay, is there a way to fix it?17:29
matt1211or do I have to reinstall ubuntu.17:29
infinityTry:17:30
infinitysudo passwd --unlock root17:30
infinitysudo usermod --lock root17:30
infinity(It's a sketchy workaround for how we deal with locked/unlocked root accounts)17:30
infinityBasically, I'm assuming that at one point you set a root password, then you re-locked root witn "passwd -l root", as various HOWTOs out there say you should?17:32
infinityThat completely breaks how PAM authenticates the root account.17:32
matt1211that fixed it, thanks!17:32
infinity"sudo passwd --unlock root; sudo usermod --lock root" should return yout root account to the more-or-less pristine locked state it was in when you installed the system.17:32
matt1211ssh media@fried-rice.vipbc.org17:36
matt1211woops, sorry17:36
matt1211wrong window17:36
=== genii_ is now known as genii
RoAkSoAxhey guys, what's the user that runs squid on Intrepid?18:29
Kamping_Kaiserproxy, iirc18:29
a1fahey19:29
a1fawhat files are needed for netboot?19:29
giovani!netboot | a1fa19:33
ubottua1fa: Ubuntu can be installed in lots of ways. Please see https://help.ubuntu.com/community/Installation for documentation. Problems during install? See https://wiki.ubuntu.com/CommonProblemsInstall and https://wiki.ubuntu.com/DapperReleaseNotes/UbiquityKnownIssues - Don't want to use a CD? Try http://tinyurl.com/3exghs - See also !automate19:33
giovania1fa: you want to PXE boot and do a network install?19:34
giovanihttps://help.ubuntu.com/community/Installation/Netboot19:34
a1fagot that19:38
a1fahttps://help.ubuntu.com/community/Installation/WindowsServerNetboot19:38
a1fai used this guide19:38
a1faand stupid thing is trying to load pxelinux.cfg/00..000, MACADD, IP, HOSTNAME, DOMAIN19:39
a1faeverything but linux19:39
giovaniok, well that guide looks ancient19:39
giovanihoary and breezy19:39
giovanithat's like a 4 year old guide19:40
giovaniprobably heavily out of date19:40
a1fatrue but principal is the same19:41
a1fanetboot, pxelinux.cfg, linux and initrd.gz19:41
giovaniyes, but the files may be quite different19:41
giovaniread the basic Netboot guide19:41
giovanirather than the one specific to windows19:41
a1fahm19:43
geniiIf your client is trying to load a file whic is it's mac or so, likely your dhcp server is not giving it an address19:55
theuser1i have a 24/7 dsl and kubuntu as an os. i dont know how to do something. i mean i want o make some use of it... may be a webserver... or what else.can any one comment?20:10
matt1211Hi, how can I find the password to my mysql root user? I forget what I set it as.20:15
cheleoanyone has upgraded to jaunty-server ?20:18
infinitymatt1211: You can't find it if you didn't put it anywhere, but you can reset it.20:19
matt1211okay, how do I do that?20:20
infinityhttp://www.howtoforge.com/reset-forgotten-mysql-root-password has the reasonably simple instructions.20:21
matt1211ah, just a question what is the command to stop and start mysql? I think its /etc/init but I'm not sure about the rest20:30
josspyker/etc/init.d/mysql restart20:31
a1faah this crap aint workin :(20:38
geniiMight want sudo with that init.d command20:40
theuser1what is the difference in openssh and sshd?20:42
giovanicheleo: I haven't done an upgrade, but I have a jaunty server or two, yes20:42
giovanitheuser1: the client and the server20:42
matt1211how can I reinstall mysql package? the instructions for resetting the root passwd are not working for me.20:46
giovanimatt1211: you don't need to reinstall mysql20:47
giovanithat's serious overkill20:47
matt1211?20:47
giovanihttp://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unix20:48
giovanithere is the official documentation20:48
giovaniit's going to work20:48
giovaniif you follow it20:48
matt1211how can I change password then, I forgot mine and instructions are not working.20:48
matt1211ah20:49
giovaniwhat "didn't work"?20:49
giovanibe more specific20:49
giovanithere were only 3 steps in the first set of instructions you were given -- was an error returned? what happened?20:49
matt1211instructions from this url. http://www.howtoforge.com/reset-forgotten-mysql-root-password20:50
giovaniyes ... be specific about what "didn't work"20:50
matt1211had trouble with the part just after the odd restart.20:50
giovanimatt1211: I've asked you repeatedly to be specific20:51
giovani"had trouble" is nowhere near specific enough20:51
matt1211okay, I restarted the mysql database and bypassed the tables, and went into it with the root user, but when I typed the update user command to change the password, and the flush command, it didn't give any errors, but when I restarted the password still hadn't changed.20:53
giovaniit didn't tell you to restart mysql20:53
giovaniit told you to shut it down, and then start safe mode20:53
matt1211I did start it in safe mode.20:54
giovaniyou probably typoed somewhere20:55
giovanihere's yet another guide: http://www.nixexp.com/index.php/2006/12/16/how-can-i-reset-mysql-root-password-root-password-recovery/20:55
a1fahm.. its not even trying to pull down its tftp image20:55
a1fathats whats crazy about it20:55
giovania1fa: that implies a typo in the config, or a bad setup20:55
a1faall looks good20:56
a1fatripple checked it20:56
a1fait pulls pxelinux.020:56
a1faand thats it20:57
giovaniwell clearly something isn't good :)20:57
giovaniwhere'd you get your netboot files from?20:58
a1faubuntu.com20:58
giovaniwhere specifically20:58
a1fahm20:58
a1fanot working yet again21:00
giovanican you tell me where you got your netboot files?21:00
a1fa http://mirror.anl.gov/21:00
a1fa8.10 and 9.0421:00
giovanisigh21:00
a1fado you want full url?21:01
giovaniok, well, jaunty isn't released yet21:01
a1faeither image21:01
a1fahttp://mirror.anl.gov/pub/ubuntu/dists/jaunty/main/installer-i386/current/images/netboot/netboot.tar.gz21:01
a1faboth do the same thing21:01
a1fai manually tested the tftp server and it works21:03
a1fain terms of default and images21:04
giovaniand what shows up on the pxe booted machine?21:05
giovanidoes it present an error?21:05
a1facant find pxelinux.cfg boot image21:05
a1fabut when i do it manually its there21:05
giovaniwell I'd stick a network tap around the pxe machine and watch every packet going in and out21:06
giovaniand see if it's not looking in the right place21:06
matt1211Okay, that worked, thank you for your help!21:07
giovanimatt1211: in the future, with mysql-specific stuff, that isn't ubuntu related -- check out #mysql21:08
a1fai got a tap up21:09
giovania1fa: great, do a full packet dump21:09
giovaniand I'll take a look at it21:09
matt1211okay, I'll do that.21:09
a1faError Code, Code: Not defined, Message: TFTP Aborted\00021:16
giovania1fa: that doesn't look like a packet dump to me :)21:16
giovanican you post the entire pcap file somewhere?21:16
matt1211What is the command to delete a databse in mysql?21:17
giovanimatt1211: this channel is really not for mysql-focused info21:17
a1falol21:17
giovaniyou can find that answer on google, or in #mysql, or in the wonderful mysql documentation on the website21:18
a1fagiovanio: i am actually looking into this21:18
a1fait looks like it never pulls pxelinux.021:18
a1fabut thats a whole another problem21:18
giovaniit sounds like you have fundamental config issues with DHCP21:19
geniiMake sure RUN_DAEMON="yes"           is set in /etc/default/tftpd-hpa21:23
a1fa*nstinks21:31
a1fathis really nlows21:31
a1facrazy.. the file is there manually21:34
a1fait successfully loads pxelinux.021:34
a1fabut thats about it21:34
geniia1fa: You are using the network boot kernel image, or a mounted install iso, or what?21:38
=== hatem is now known as timo
a1fanetwork boot kernel21:40
a1fai am giving up21:40
a1fai am building a ubuntu vmware21:41
a1faand about to to dd over network :)21:41
a1faits amazing how dust affects DVD rom drives21:44
a1faboth xbox and my workstation dvd drives dont want to eject dvds21:44
theuser1 i need a free vnc software for both windows xp and kubuntu. i what to make windows and kubuntu both as some times client and some times server. need ecryptiiiiionn say ssh if possible. please see http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software if you want to ?21:48
a1fatinyvnc21:50
a1faultravnc21:51
a1faeither way21:51
a1fassh it if you want21:51
a1fahm.. i dont have hardware raid controller.. i tought lvm will let you setup lvm raid in installer?21:51
giovanithefish: this channel doesn't support GUIs on ubuntu server21:53
giovaniso, VNC won't be relevant here21:53
a1faah if there was only way to make 1U server more quiet21:56
giovania1fa: there is ... there's nothing inherently loud about a 1U server21:56
giovaniobviously you can use lower-flow fans21:56
geniia1fa: Better fans? ;)21:56
giovanilower speed fans21:56
giovanihowever, typically ... yeah, due to a tight fit of components, 1Us ship with very fast fans21:57
geniiSome of those Sun 1U boxes sound like an F-18 ready to take off, when you power them onn21:57
giovanigenii: it's, unfortunately, the best way to ensure the box doesn't die when it's stacked above and below overheated boxes21:58
* Nafallo loves when DL385s turn on :-)21:58
Nafallos/turn/power/21:58
geniigiovani: Yes, it's understandable. Just when you're in the data centre the white noise kills you after a while21:58
giovanigenii: ear-plugs21:59
giovaniI always wear them at datacenters21:59
theuser1 i need a free vnc software for both windows xp and kubuntu. i what to make windows and kubuntu both as some times client and some times server. need ecryptiiiiionn say ssh if possible. please see http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software if you want to ?21:59
giovanithefish: I've already responded to you21:59
giovani<giovani> thefish: this channel doesn't support GUIs on ubuntu server21:59
giovani<giovani> so, VNC won't be relevant here21:59
giovaniso please stop asking that question21:59
NafalloNokia BH-60421:59
geniigiovani: You hit tab-complete for the wrong nick of the vnc enquirer21:59
NafalloI always wear them ;-)21:59
giovanigenii: oh, indeed I did, thank you for pointing that out22:00
geniiNafallo: Earplugs?22:00
Nafallohttp://www.nokia.co.uk/A457762422:00
giovanigenii: nah, big headphones22:00
giovaninot really gonna work in datacenters, imo22:00
geniiHehe22:00
giovaniI have some bose22:00
Nafallogiovani: really? they work quite damn well for me :-)22:00
giovanifull ear canal blockage is the only want to ensure protection for your ears22:00
a1fawow22:09
a1faserver install fail22:09
a1fait could not boot off scsi drive22:09
geniia1fa: You have the scsi host adapter bios set for the drive you also specified in the install?22:10
geniiAlso is there proper terminaltion, etc etc22:10
Nafallogiovani: hmm. any of those ear canal stuff would have bluetooth you reckon? :-)22:17
NafalloI'm addicted to my music while working :-)22:17
giovaniNafallo: yes, I've seen some of them22:18
Nafallogiovani: any idea where? I'm very interested :-)22:18
giovaniI'll google around22:18
giovanior you can22:18
giovaniwhy do you like bluetooth?22:18
giovanithe audio quality is horrible22:18
Nafallogiovani: I've had enough wires getting caught in racks in my days...22:19
giovaniNafallo: just run it under your shirt or something22:19
giovanicheaper, no battery to discharge, and higher quality22:19
giovaniand smaller22:19
Nafallostill comes out somewhere, and my shirts don't usually go over my head :-)22:19
Nafallogiovani: mobile gets usb-charged anyway. so battery isn't a worry.22:20
a1fagenii: yup22:20
giovaniNafallo: ok22:20
Nafalloquality will only be as good as the n95-2 can do anyway. ;-)22:20
geniia1fa: What adapter?22:20
genii(some Adaptec require PNP to be off or CAMI to be be off, etc)22:23
a1fadont know22:50
a1faneed to check22:50
giovania1fa: don't presume any adapter is supported23:10
giovaniespecially with something specialized (and generally being phased out) like scsi controllers23:10
=== asac_ is now known as asac

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