[01:20] Hi, I'm a total newbie so this is a very elementary question, I have a fresh install of server on a box sitting not two feet from me. It's set up as a web server, but I'm just using it to teach myself php. Anyway, I can SSH into it, and I can SCP into my user directory, but I can't SCP files into /var/www what am I doing wrong? [01:23] lcarsos: does your user have write access to /var/www? usually /var/www is owned by root [01:23] I don't believe so, and I can't figure out how to give it write access [01:24] you could change the owner and group to the www-data user (the user apache runs as) then add yourself to the www-data group [01:24] sudo chown www-data.www-data /var/www; sudo adduser $USER www-data [01:25] How can I scan for network interfaces in ubuntu server? [01:25] lcarsos: the chown command changes file/directory ownership, and the chmod command will change permissions [01:27] It says it added me to the group, but /var/www is still owned by root and won't let me copy in [01:29] lcarsos: Then the sudo chown www-data.www-data /var/www did not work. Did you get an error from running that command? [01:31] were they supposed to be typed in seperately? [01:31] I'll try that [01:31] The ; should have separated the two commands, but go ahead and try the sudo chown www-data.www-data /var/www [01:33] I just refreshed WinSCP and it says now that /var/www/ is owned by www-data [01:33] It still says permission denied [01:38] What does ls -ld /var/www/ display? And did you close and reopen winscp -- an old connection from it will not realize you are now a member of the www-data group. [01:39] I closed it down and reopened from the start menu [01:40] ls -ld /var/www says: drwxr-xr-x 2 www-data www-data 4096 2009-05-17 15:12 /var/www [01:46] Ah. sudo chmod g+w /var/www/ so that the group can write to it. [01:46] Cool, thanks so much! [01:47] just for my reference does this impact the security of the server? [01:47] No problem. In a "real" server, you'd not have a single end user be able to write there, you'd give them a virtual web server underneath there, say /var/www/someuser and make that dir owned by and so writeable by someuser... [01:48] Well, it means that the current user who can now write to /var/www has the power to wipe out all of the web data on it... [01:48] This isn't what I'd suggest on a production web server, but you are just doing this for learning PHP locally, so it's fine. [01:50] So, if this were a production box I would create a subdirectory and give myself ownership of that? [01:50] Yes, and then set up a virtual host under /etc/apache/sites-available to use that subdir for "your" www domain... [01:51] perhaps www.someuser.org :) [01:51] if you were doing this larger scale you'd use another app to manage all of the virtual hosts, creating a web control panel so users could manage their own web site but not mess with other people's... [01:52] Alright, thanks again. [01:53] If you want to start down that road, check out ebox . No problem. [01:54] i want to open a log [01:55] but log is just tooo long thousands of lines [01:56] is there command which will show me just the end of log? [01:58] yes trying to think abou tit [01:58] tail is the command to show the last 1 lines [02:12] You can also use less to view a file and then move to the end with the G command, search for strings with /somestring, and so forth... [02:26] damn [02:26] "telnet localhost imap" connection refused [02:26] does anyone knows what could be problem [02:28] sudo netstat -l | fgrep imap ? [02:29] nothing happens [02:30] sudo netstat -l | fgrep 143 ? [02:31] nothing [02:31] are you sure the server is running? [02:31] wizardslovak: Sounds like imap is not running on your server, or if it is you forgot to open a hole in the firewall to make it visible? [02:31] ufw firewall has 143 port open [02:32] but for localhost it shouldnt make difference [02:32] and which imap server do you have installed? [02:32] dovecot [02:32] I haven't played with its configuration lately, but have you set it to listen for imap connections? [02:34] whats the command [02:34] the configuration file is /etc/dovecot/dovecot.conf [02:35] you may want to look up info about it on the wiki, I'm not using a standard ubuntu configuration of it, so I can't recall what's on by default [02:35] i got listen = *:143 [02:36] wizardslovak: check the protocols= line; default in Jaunty is none... did you change that? [02:36] and protocols? [02:36] no [02:36] i didnt chanGE no protocols [02:37] If you want some protocols, you need to :) [02:37] ok so what line am i looking for? [02:37] The one that starts with protocols= :) [02:39] ok i see imap protocol [02:40] i see login_executable, mail_executable [02:41] In the default /etc/dovecot/dovecot.conf file, there is a line protocols=none you can comment that out and replace it with the line above it instead (remove the # from that one) [02:43] i have protocols=imap [02:44] should i change it to none? [02:48] pastebin from dovecot -n http://pastebin.com/d2ee23ce3 [02:57] line 4 of that pastebin says you do not really have protocols=imap :) [02:58] jmarsden: http://pastebin.com/m511ebec6 [02:58] it does [03:00] That looks better. Now restart dovecot and see what is listening on port 143 and 993 [03:00] whats command for liten those ports/.' [03:01] sudo netstat -ntlp # will list all listeners on TCP ports [03:02] nope [03:02] i dont see 143 nor 993 [03:04] Hmmm. Can you do egrep -v "^ *#|^$" /etc/dovecot/dovecot.conf >/tmp/dovecot-no-comments.conf # and then post the /tmp/dovecot-no-comments.conf file to pastebin ? [03:04] did you restart dovecot? [03:04] yes '/etc/init.d/dovecot restart" [03:05] Wait... do you have a file called /etc/dovecot/dovecot-postfix.conf ? It overides dovecot.conf ... [03:05] yes i do have postfix [03:06] Then look in that one not in dovecont.conf... set the protocols= line in there and restart dovecot. [03:06] This is a new thing in Jaunty... [03:08] yes [03:08] it works!!!!!!!!!!!!!! [03:10] Good. [03:12] thanksss [03:12] people on dovecot caht couldnt help me for last couple days cause they didnt know [03:12] ubuntu is the best [03:12] heheh [03:13] one more think [03:13] squirrelmail [03:13] it works but i cant connect/login [03:16] How did you configure it? (It's been a while since I configured squirrelmail...) [03:18] well i installed it and set it for dovecot imap [03:18] and apache [03:18] domain.com/squirrelmail works [03:18] but i cant log in [03:21] i am getting this error " [03:21] Error connecting to IMAP server: tls://localhost. [03:21] 0 : [03:22] The tls: looks odd... [03:24] Just tried it here, sudo apt-get install squirrelmail ; sudo ln -s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf ; sudo service apache2 restart [03:24] and then I can browse to localhost/squirrelmail and log in as me just fine. [03:25] (Oh, I did configure it as using dovecot with sudo /usr/sbin/squirrelmail-configure ) [03:25] you login with your username? [03:25] Yes. Is your dovecot listening on 993 as well as 143 ? [03:27] how can i check it? [03:28] no 993 doesnt conenct [03:28] By default squirrelmail uses 993 (for security)... so that's your issue. [03:29] i still can change it in postfix-dovecot.conf right? [03:29] Yes. Try setting that protocols line to protocols = imap pop3 imaps pop3s managesieve and restart dovecot. [03:30] BTW that is the default when I installed dovecot-postfix... so I'm not sure why you are needing to edit that... [03:32] jmarsden: you are genius [03:32] it works!!!! [03:32] :) No, I have just been doing this for a long time :) [03:33] ok now i got other error [03:33] i tried to send message [03:34] "error message not sent ,server replied" [03:36] That sounds like you have a messed up postfix configuration, too... but I need to do some other things for the next 2 hours or so... if I am back here (and you are also here) in about 2 hours, ask about it then. [03:36] ok [03:36] just for that i will be here [03:37] :) [03:45] can i ban all people not from russia [03:47] I need some help updating my internet connection info in ubuntu server [03:48] on the install it automatically configured [03:48] I have recently changed and need to update it [03:48] can anyone assist [03:49] ifconfig? [03:50] steelcityjim: I can't stick around and help right now, but did you read the Server Guide? See https://help.ubuntu.com/9.04/serverguide/C/network-configuration.html [03:53] yea thats not really helping [03:57] steelcityjim: What exactly are you trying to change that is not documented in there? [04:04] well im going from pppoe to dhcp [04:04] and changing int providers [04:07] steelcityjim: And you hook the server directly to the public Internet -- no router/firewall ? Should be fine, the server guide has sample configs for DHCP and static IPs ... [04:08] not a static [04:08] OK, so use the DHCP example right on the page I pointed you to... ? [04:09] Two lines in /etc/network/interfaces -- did you try that? [04:10] ok so is it sudo /etc/network/interfaces [04:11] then I enter this into the file? [04:11] auto eth0 [04:11] iface eth0 inet dhcp [04:12] You need to use an editor to edit a file... recheck your sudo command :) [04:13] ok so i need to edit the /etc/network/interfaces file? [04:13] Yes. [04:13] to include the two lines [04:13] Yes. That is what the server guide said, right? [04:13] ok i can probably get through that [04:14] now I was using no-ip to host my server and my isp blocked it [04:14] so I recently switched to comcast [04:14] does comcast use the 80 port ? [04:16] No idea. Read your ISP's acceptable use policy to find out what they permit. [04:17] I don't believe they care just not sure how to set it up [04:18] If they don't block it and they truly don't mind servers on their home customers setups (most ISPs *do* mind this), then there is nothing to set up... port 80 will "just work". [04:19] Just set up whaetver web server you want to run on port 80. [04:23] Would that be enabling my personal web page [04:24] no thats not it [04:26] You had a web server running on port 80 before, right? So leave it running :) [04:26] I can save you some time: Comcast's AUP does not allow running servers on residential plans, but does on business plans (which are way more expensive). Qwest does allow servers on residential plans. Verizon FiOS currently does not. [04:26] well my no ip acct terminated because the isp was blocking it [04:27] mobi-sheep: although re: the "just work" comment, you will usually need port forwarding on your router at least. [04:28] errr, jmarsden rather - tab-complete fail. [04:28] tonyyarusso: And you pinged me. I was watching the anime. :) [04:28] so tonyyarusso if I foward the port will it work on comcast? [04:28] sowwies [04:29] steelcityjim: It might work (I don't think they actually block it), but it would violate their terms. [04:29] im just using it to do some basic file sharing and a basic web page [04:30] my old provider blocked it [04:31] re port forwarding... that means you have a router, so you do not need to change the /etc/network/interfaces ... I though I asked if if you connected the server directly to the public Internet earlier...?? [04:32] yes I have a router [04:32] so If i just enable a new no-ip account it should work with the new isp as previously configured [04:33] tonyyarusso: It's a good Failz. :) --- steelcityjim: And I do use occasional server for basic file sharing. I also have Comcast. As expected, the hosting is awful slow but nevertheless it still work. Assuming you did the port forward and use no-ip. That's about it. Right. no-ip account can be updated at interval of your choice. [04:34] cool [04:35] so as far as the isp change do I need to update anything on my server? [04:38] steelcityjim: No. Just in the router. [04:40] ok i updated thr router to dhcp an its working [04:42] but i cant ssem to acess my server via the web [04:47] I can access the server via my network [04:48] did you open port 22? [04:50] steelcityjim: Does the router have an appropriate port forward from port 80 to the server's IP address? [04:51] wizardslovak: port 22 is ssh port 80 is web... :) [04:51] it should it was previously working [04:53] 22 and 80 are both enabled in the router [04:53] jmarsden: so youre here [04:53] I was across the room... working on some hardware stuff (paid consulting...) I'm half here... [04:54] hehe [04:54] i found what could be problem [04:54] but i still cant find whats wrong with it [04:54] its "SASL suthentication mechanisms" [04:57] installing the dovecot-postfix package *should* set that up for you... [04:57] it worked before [04:58] do i have to reinstall it? [05:02] hi guys I am haivng problems with this code "mysqli_stmt_execute"" [05:04] yea won't connect via the web [05:05] wizardslovak: I doubt it... I'm still kind of busy... give me a bit more time ... my client just called me wanting it "done"... :) [05:05] ok [05:05] take your time [05:06] steelcityjim: Are you sure you have the port forwarding correct in the router? ... [05:07] external port 80 to internal port 75 [05:07] no-ip acct set up as port 80 redirect [05:07] ip address is correct on no-ip acct [05:08] is there anyway to remove the Suhosin patch? [05:08] TimReichhart: what is reason to remove it? [05:09] does anyone know how to make crontab -e with vim use syntax highlighting in ubuntu server 9.04? [05:09] well I am having a problem with a code that somebody wrote for me and I am getting this error: Fatal error: Call to a member function execute() on a non-object and I spoke to the person who wrote it and he told me he thinks its that patch is causing that error because the code works fine on his server [05:12] do I possibly need to reboot the server after the ip change? [05:12] TimReichhart: it looks like execute is part of a library that was not linked in to the compile [05:12] steelcityjim: no [05:12] steelcityjim: wait, how did you change the IP? [05:12] I got a new provider [05:12] so could you tell me how I can fix this library? [05:13] I have not changed anything on the server [05:13] steelcityjim: no I mean how did you change the IP on the server? [05:13] only the router [05:13] I did not [05:13] ok... [05:13] thats what I think the problem is [05:13] steelcityjim: how do you access the server? [05:13] steelcityjim: OK, so check the IP of the server PC and the IP you told the router to forward port 80 to... are they the same? [05:14] actually jmarsden has a point, if you are using NAT then you don't need to change anything [05:14] If not then correct the port forward in your router... :) [05:14] is it possible for vmbuilder to create a thin vmdk file? [05:15] oh_noes: that doesn't really have anything to do with ubuntu server [05:15] oh_noes: try #vmware [05:16] or #ubuntu-virt [05:16] vmbuilder is ubuntu server, nothing to do with vmware [05:16] well definitely not in relation to how vmbuilder creates the vmdk, but thanks yeah already asked in virt [05:16] server ip is correct in router [05:17] forwarding port 80 to port 50 [05:17] hey jetole how can I get that library to get install or upgraded [05:17] steelcityjim: OK. and there is a running web server on the server PC, listening on port 75 (since that is what you redirected to, for some reason) [05:18] oh_noes: vmdk file are vmware virtual disks [05:18] how do I know if its listening? [05:18] TimReichhart: ask the developer [05:18] TimReichhart: I have no idea what library it is [05:19] TimReichhart: execute() is not a function I have ever heard of [05:19] steelcityjim: Point a browser at it, or telnet to it, or sudo netstat -ntlp and look for it in the output... [05:19] TimReichhart: exec(), execve(), system() etc are normal C execute functions and part of posix, never heard of execute() [05:19] like I said I already asked the person who wrote the code and he thinks its that patch because he gots the same mysql and apache [05:20] but he is using FC9 [05:20] TimReichhart: ask him where he got the execute function from [05:20] I don't care if he us using BSD 4.4 [05:21] ask him where the function came from [05:21] or look for it in the header files since the name of the header file might help [05:21] TimReichhart: or just google it [05:21] ok did the sudo netstat -ntlp [05:21] he is a Zend PHP5 Certified Engineer [05:21] TimReichhart: and? [05:22] got 6 different lines [05:22] steelcityjim: So... is there an httpd listening on port 75...? [05:22] all in the listen state [05:22] TimReichhart: if he is barack obama or linux torvalds that doesn't solve your problem [05:22] *linus [05:22] no 80 and 22 [05:22] Then why did you redirect port 80 on the router to port 75 on the server?? [05:23] he is the one who created the code and here is the code what it looks like here is his site:http://white-box.us/manage/index.php this is what it post to do this guy wrote the code just for me [05:23] TimReichhart: is he dead? why are you not asking him? [05:23] well I had it at 80 originally and was not working so thought I would try another [05:23] I been asking him asking about this all day along [05:24] TimReichhart: thats not code, thats a php page, you posted a C or C++ error [05:24] so im assuming thats not the problem [05:24] and only thing he can think of is that dam patch [05:24] steelcityjim: fix the port forward to it forwards port 80 on the outide to port 80 on your server... [05:25] Do not guess and port numbers or change them randomly! [05:25] s/and/at/ [05:25] i really dont know what happened [05:25] TimReichhart: I hate to sound cruel but you have no idea what caused it so now that we have that clearified stop making that assumption [05:25] i checked everything and it seems fime [05:25] ok fixed in router [05:25] still cant sent mail out nor receive [05:25] makes it harder to solve when you guess what the problem already is [05:25] external 80 [05:25] internal 80 [05:26] OK. Now test it from the outside... any better? [05:26] dude its working on FC9 with same mysql and apache as I am using its something to do with that patch [05:26] no still not finding my page [05:26] What do you see? a 404? Or what? [05:26] TimReichhart: if it's the same mysql and apache you are using then that means you compiled it yourself or he compiled it himself on the same server and all libraries that it links to [05:27] no page not found taking me to some lame-delegation domain .com [05:27] I mean I got one page is working great [05:27] TimReichhart: I doubt it's even the same versions, I mean so essentially just made a comparison of Windows ME and Windows server 2008 being the same [05:27] but the others is not [05:28] TimReichhart: which program is crashing specifically? [05:28] its my index page and edit page [05:28] but my add page works alright [05:28] TimReichhart: no. you posted a C or C++ error [05:29] I recognize the error, it means a function that was properly coded in but relies on an object that was not linked [05:29] steelcityjim: if you browse using your public Ip instead of a domain name does it work? [05:30] ok go to this site: http://white-box.us/manage/index.php you see its working great on his server but I get the error message of:Call to a member function execute() on a non-object in [05:30] on my server [05:31] jmarsden: http://pastebin.com/m62907dff i think sasl is problem [05:31] on second though that's not quite the error I thought it was [05:31] TimReichhart: what is your site? [05:31] alright hold on I have to change something then you will get to see it [05:32] on second though, and I may have been a little too overzealous, that sounds like a php error [05:32] yes if I type in the ip address in the browser it comes up [05:33] but won't come up by the name [05:33] dns [05:33] wizardslovak: Yes, I agree, looks like postfix is not configure correctly for SASL auth (which squirrelmail is trying to use.). [05:33] TimReichhart: also say my handle before every comment, it highlights the line and makes it easier for me to follow your posts [05:33] steelcityjim: OK, so go to the no-ip.org web site and manually associate your current public Ip with your domain name :) [05:34] Thatr is not an issue with your server or your router! [05:34] steelcityjim: i had same problem , in your domain name reg you gotta change IP for your domain [05:35] it is correct on my no-ip acct [05:36] http://pastebin.com/m34fb3e8b this is my postfix conf sasl [05:36] steelcityjim: you gotta wait for dns server 20min to 6 hours if i am not mistaken [05:37] oh change don't take effect right away [05:38] that had the account flagged for termination because of inactivity [05:38] I re-activated it earlier [05:38] steelcityjim: what is your domain name? [05:39] 6burgh.no-ip.org [05:39] ok jetole go to 206.51.163.236:8080 [05:39] steelcityjim: Then if your public IP is 98.227.145.211 you should be fine now. [05:39] thats what the ip is now [05:40] and thats what shows on my acct [05:40] Then try browsing from the outside to http://6burgh.no-ip.org now [05:40] TimReichhart: can you post the code on pastebin.com? [05:41] there jetole http://pastebin.com/m44b3280b [05:43] ok appears to be working now [05:43] steelcityjim: Yes. Looks like you are all set, I can see your site at http://6burgh.no-ip.org [05:43] maybe it just took some time at no-ip to update [05:44] TimReichhart: perhaps checking to see what the error is after line 121 would help [05:45] alright I will post it again on pastebin [05:45] thanks jmarsden [05:45] wizardslovak: does postconf -a output two lines that say cyrus and dovecot ? [05:45] steelcityjim: no problem. [05:45] what I mean is that the $db->prepare() is failing somehow, and it's not checking for what the error is at that point [05:45] jmarsden: no only cyrus [05:46] this is the part here it gets the error jetrole http://pastebin.com/m86cd3b [05:46] jetole* [05:46] yes, I could see that, there's no error checking [05:47] jmarsden: in conf i had dovecot so i change it into cyrus , not when i try to send email ill get " [05:47] Requested action not taken: mailbox unavailable [05:47] 550 5.1.1 : Recipient address rejected: User unknown in local recipient table [05:47] and i am sending test main to my gmail abount [05:48] wizardslovak: No, don't make random changes...! You are running dovecot, so setting it to cyrus is by definition incorrect. [05:48] wizardslovak: Do postconf -n and pastebin the output please? [05:48] so any ideas there jetole [05:49] TimReichhart: follow the suggestion of ajmitch -- add some error checking so you can see what the code is doing :) [05:50] how would I do that jmarsden [05:50] http://pastebin.com/m612c9b8a [05:50] Either learn PHP or ask your programmer to add error checking to his code. [05:51] alright I will ask about it [05:51] TimReichhart: I can't teach you PHP programming here on IRC :) [05:52] alright I will see what the guy will do [05:53] but like he told me its that patch [05:53] jmarsden: i think problem might be in smtpd_sasl_path [05:55] wizardslovak: Yes... who put that there? Try smtpd_sasl_path = private/dovecot-auth [05:55] There are a couple of other things different from the default setup, but I think those are fairly harmless... [05:56] TimReichhart: I was busy doing something else, let me look now [05:56] k [05:56] jmarsden: ok so i changed and restarted postfix but still [05:56] cant send mail [05:57] wizardslovak: Is the error in the maillog the same as before? [05:57] yes [05:58] same think [05:58] "no sasl authentication mechanism" [05:59] Hmmm... OK, I'll try it here in a bit.. need to get back to my hardware stuff for a short while first... [05:59] ok [06:02] TimReichhart: this code sucks [06:02] TimReichhart: I see no real error checking within the code so far [06:03] althoug I did miss one, there is one error check that I didn't see [06:04] what is that jetole [06:04] well no, I saw a part at the top where I thought he didn't check the mysqli connect for errors but he used a different method then I use and I was only skimming at first so I missed it [06:05] let me keep reading [06:08] TimReichhart: I just changed the code, try running this (backup the original) and see what happens => http://pastebin.com/m77aa15d9 [06:09] TimReichhart: That might give you a new which if it does then good however I have other stuff I do have to do now and PHP is not my strong point [06:14] damn this is making me nuts [06:15] now I get this jetole Parse error: syntax error, unexpected $end in /var/www/index.php on line 139 [06:25] wizardslovak: Hmmm, postfix and dovecot and squirrelmail "just work" for me here on Ubuntu Jaunty 9.04... [06:26] hmmm [06:26] i wodder why myne doesnt work [06:26] wizardslovak: See http://pastebin.com/m216396f1 and put that into your /etc/dovecot/dovecot-postfix.conf file (copy the one you have now to some other filename first, just in case!) [06:27] alright jetole I tried it on my other server same error [06:31] TimReichhart: actually that last error was a mistake on my part, forgot a closing } [06:31] TimReichhart: http://pastebin.com/m2dfb1f2e [06:34] well now I got a text saying: Prepare error jetole [06:36] TimReichhart: thats what I thought you would get and he never did a check of prepare so when calling execute based on the prepare statement you get your previous error so execute isn't the problem, prepare is [06:36] so what should I tell him [06:37] or how can i fix that [06:38] there jetole [06:38] TimReichhart: try this => http://pastebin.com/m6f969623 [06:39] wizardslovak: Any progress when you use my dovecot-postfix.conf file from the pastebin? [06:39] jmarsden: i dont have dovecot-auth [06:39] delete all my and replace with yours [06:40] tired it jetole still same message as before [06:40] Well, renane yours to dovecot-postfix.conf.wizzy and then use mine... that way you still have yours if you need it! [06:41] TimReichhart: not sure why prepare is failing [06:41] i did backup but trying to put yours [06:41] let me look into it [06:41] give me a minute [06:49] TimReichhart: http://pastebin.com/m6dbac8fa [06:49] nah it wont work [06:50] Hi, All, [06:51] still getting same error message jetole [06:51] wizardslovak: Same error, or a different one? [06:51] M main server just went down. I can't figure out why I can't SSH into it. I get "Connection to: 192.168.0.1 port 22: Connection Refused" [06:51] it didnt want to read conf file at all [06:52] Please help [06:52] wizardslovak: Are permissions on it the same as the perms on the original one? [06:52] yes [06:52] TimReichhart: don't know what to tell you then, prepare is failing and I don't know why and unlike decent programming prepare has no way to tell you what error it is so perhaps uninstall the suhosin patch [06:52] I lost my DHCP, Media server, AFP Server, ... ETC. [06:53] wizardslovak: but you got an error that it can't read the config file? [06:53] how do i unstall that jetole? [06:53] TimReichhart: http://www.ambitonline.com/nextrelease/archives/113-How-to-Ubuntu-PHP-Remove-Suhosin.html [06:53] give me sec [06:54] again, thats all the help I can give, I do have other stuff to do so I hope that helps [06:54] Does anyone have an idea? [06:54] Please [06:54] Alex_21: Can you log into your server at its console (from its own keyboard and screen)? [06:54] Nope [06:54] Alex_21: SSH isn't running [06:54] That is the problem [06:54] Alex_21: Connection refused means the server is up and the port is closed [06:55] Neither is HTTP it seems [06:55] so log on to the console and see why [06:55] maybe it's fdsk [06:55] What do you see on its screen... not over the network, but on a screen connected to the server itself... [06:55] *fsck [06:55] FSCK? [06:55] There is no monitor connected to it physicaly [06:56] Alex_21: it's a disk checking program that runs every so often on boot and delays the start time while it scans your disks [06:56] Alex_21: Then add one :) [06:56] Alex_21: Then add one :) [06:56] sorry, had to be said twice :P [06:56] I'm blind :( [06:56] Alex_21: is that a joke? [06:57] I don't see what difference it is if I have a screen plugged in [06:57] Can you attach a screen reader widget to it? or to its serial port and redirect the console to the serial port? [06:57] Alex_21: fsck will probably run before brltty is fully initialized [06:57] Alex_21: the difference is you cannot connect to it remotely [06:57] I can't run a screen reader because serial widgets were out of date in the early nineties [06:58] and if you really are blind then you have my sympathy since I am deaf but without being able to see the console and without being able to connect then you may be blind in more ways then one [06:58] Alex_21: You can't get at it over the network, and we don't know why and can't tell you why. And yes, it's been a while since I helped out a blind friend with his setup... [06:58] Alex_21: are you using a braille display, a screen reader, or what? [06:58] Yeah. I have a screen reader on this machine but not on my servers [06:58] Alex_21: can you move it to the server? [06:58] I use SSH for all of them [06:59] No, it is a software program not hardware [06:59] Alex_21: well you can't ssh so unless you find a way to "see" the screen then there really is no solution [06:59] I'm back in [06:59] I guess it was FSCK [06:59] * jetole thinks fsck then [06:59] Alex_21: OK. Things you can do are: 1) wait, and hope that fsck finishes and booting continues normally; 2) find a sighted person to connect an LCD to the server and see what's happening; and finally 3) get a braille reader, and set up brltty on all your servers so you can read what's happening next time, by connecting it. [07:00] Note that braille readers usually support USB as well as the serial port. [07:00] I know that but I didn't know about BRLTTY [07:00] Thanks [07:00] I hope I never lose my sight, no offense but I am already deaf so if I went blind I would be fscked [07:00] If you're permanently blind, setting up all your machines for braille (and buying a braille display) is definitely worth it. [07:01] Assuming you can read braille, of course... [07:01] $800 for one display just so you know [07:01] Yeah, I know [07:02] Alex_21: how do you know whats on the screen without some sort of device? [07:02] So luckily I have one but options are limited. I'll for sure look into it [07:02] There's some cool recent research that will eventually make them cheaper, by using a rotating drum [07:02] jetole: he uses ssh and a screen reader on the ssh client end, e.g. JAWS [07:02] what is a screen reader? [07:02] Not JAWS. Ick, ... No. Voiceover [07:02] jetole: it's a program that turns text on your screen into speech. [07:02] ah [07:03] Voiceover is a software application that runs on My Mac and allows me to read what is on-screen [07:03] GNOME has one, too, but I forget its name. [07:03] JAWS is the ridiculously expensive one that all the Windows people use [07:03] Orca. It is ok for most things except administration under Ubuntu [07:03] Alex_21: yeah [07:04] TWB: JAWS and Window-Eyes are the expensive ones. Voiceover is free, built into OSX and actually works the way that sighted see the screen. [07:04] Alex_21: granted. [07:04] Voiceover allows me and my sighted coligues work in the same way [07:05] I Wish ORCA worked that way or some Linux one worked like Voiceover [07:05] Alex_21: patches welcome! [07:05] I'm forced to use Orca in my Lab [07:06] TWB: Lol. I am developing my own for ICEWM because ICEWM is light weight [07:06] But if there is a patch I can make be sure I will be the first to submit one [07:06] TWB: ARe you blind yourself? [07:06] when i use touch to create a new file it's always, i want it to be group writable... what that umask thing again? === benkant_ is now known as benkant [07:07] sorry that made no sense [07:07] Alex_21: no, but I am an ornery bastard and I usually use visual impairment as an excuse to yell at stupid web devs [07:07] "Your site doesn't work in w3m! If I was visually impaired, I wouldn't be able to use it!" [07:07] I do that all the time [07:07] Web Devs can be stupid [07:08] Flash is inaccessible in all but JAWS and Window-eyes [07:08] I tried to learn emacspeak, but its code is horrible and I couldn't make it use festival/mbrola instead of flite. [07:08] benkant: Maybe you want to do umask 2 [07:08] Because Adobe is rediculous [07:08] And I haven't gotten around to buying a hardware synth and braille reader (because they're expensive). [07:09] Get a software Synth [07:09] Alex_21: I'm using software synths. [07:09] Cepstral or something make a High-Quality one for Linux for $30 [07:09] Alex_21: but I won't use a proprietary synth. [07:10] I worked on eSpeak and actually still head one of the projects at eSpeak [07:10] I can't say it is the best voice, but it is what we use for Kurdish in our Planned Labs [07:10] It is better than Microsoft Sam though :) [07:11] I wouldn't know, I don't use Microsoft stuff. [07:11] Ubuntu/Edubuntu is what we use in our Planned Labs [07:11] I remember the days of Microsoft Sam *Alex Shudders* [07:11] wizardslovak: What exact error are you seeing when you try to use my dovecot-postfix.conf file? [07:11] Mac OSX is by far the best for accessibility [07:12] TWM: Good on you for hounding Web Devs [07:12] TWM: You should join my team of people who do the same thing and make the changes on many sites [07:12] Or at least try to [07:13] Lol :) [07:20] Alex_21: what do you do for a living? [07:20] how do i make any new file i touch be owned by a group other than my own user's ? [07:21] benkant: change the group after you touch it [07:21] chgrp command [07:21] is that the only way? [07:22] I work with an advocacy organization I cofounded and I also am a student [07:22] benkant: why do you need another way? [07:22] Lol: And I am involved with a lot of Open-Source [07:22] Alex_21: Ah. I was hoping you were gonna say programmer and I was gonna say why don't you write a program like voiceover but guess not [07:23] jetole: just that everytime i create a new file i need other users in my group to be able to write to it... and i create a lot of files, and don't want to have to chgrp every time [07:23] Write a script maybe? [07:23] it's created with your primary group so change your primary group or create a cronjob to keep them all up to date [07:23] yeah primary group is what i was thinking [07:24] Well, I am, but it is going to be written for the Android PHones [07:24] Alex_21: well you were just saying you wish there was something like that for windows and linux and I was thinking if all the blind people wanted it then it would be a good way to make money or you could just do it open source if you prefered but if you don't program then not much you can do about it [07:24] Alex_21: cool [07:26] Only thing I can think of to make being deaf better is under testing in two universities right now and 2 - 4 years from hitting the market so unless I get an MD and a doctorate in ICs then I can't think of anything else [07:26] * jetole shrugs [07:26] Well, I plan to move into the desktop soon [07:26] Alex_21: how did you lose your sight anyways [07:26] Desktop market [07:26] Genetic condition [07:27] Ah [07:27] I have less than 5% and it is progressive though it has been stabel for some years now [07:27] I got t-boned by a drunk driver and wound up in a 3 week coma and lost my hearing [07:27] Oh, ... No! [07:28] That sucks [07:28] I lost all hearing but got a cochlear implant which allows me to hear when I wear the hearing aid looking peice but it's muffled at best [07:28] usually I understand 1/10 sentances the first time I hear it and 3/10 I just can't understand no matter how many times it's said or how slow [07:29] well I am at the office so stepping outside for a smoke, bbiab [07:29] Ok [07:29] Bye [07:37] actually, closing IRC [07:37] need to focus on work [07:37] ttyl [07:37] Lol [07:37] Good idea [07:38] Thanks for your help [07:38] Good night [07:41] Fuuuuuck [07:41] http://www.humanware.com/en-australia/products/blindness/braille_displays/_details/id_71/brailleconnect__12.html [07:41] The smallest resolution braille display; they want nearly four grand for. [07:41] New bug: #370464 in samba (main) "package samba 2:3.3.2-1ubuntu3 failed to install/upgrade: subprocess post-installation script returned error exit status 139" [Undecided,Invalid] https://launchpad.net/bugs/370464 [08:31] does anyone know why I would suddenly start getting an error of "no route to host" for all hosts on my network however the gateway seems to be working fine on this same subnet and I can connect to the rest of the net fine [08:32] this host is also a ids/firewall that uses eth0/eth1 as a bridge and continues to work for accessing all hosts on that network from computers outside of the net and has been setup like this for about 18 moths now [08:45] Ah screw it. I'm driving to the data center to route a wire around the machine and then rebooting it and hoping that helps [09:11] that helped :D [09:12] jetole: :D [09:12] isaac: :D [09:13] on another note I switched from mutt back to thunderbird after using mutt for 6 months and I am still used to :x at the end of each e-mail message [09:14] What does :x do? [09:14] ever used vim? [09:14] No, only ed and vi. [09:14] jetole: why did you downgrade to thunderbird? [09:14] vi = vim... sorta [09:14] vim is for little girls [09:14] henkjan: html, mark folders as read, etc [09:15] ed is a MAN'S editor [09:15] I did an html wrapper for mutt but for some messages it just wasn't the same [09:15] jetole: you need to fix your customers so they don't send you HTML email [09:15] twb: guess you don't use ubuntu then since you can't install vi, only a symlink to vim :P [09:15] indeed, no trouble with htmlmail overhere :) [09:15] jetole: you can install nvi and busybox vi. [09:15] anyways, :x on vi(m) is close message and save if you made changes [09:16] twb: didn't know that [09:16] jetole: vi is only a symlink to vim on YOUR system because you have vim installed. [09:16] :x on vi is the same as :w :q [09:16] twb: vim comes installed [09:16] jetole: depending on how you install Ubuntu, sure. [09:16] how do you install ubuntu? [09:16] via netinst. [09:18] * jetole shrugs [09:19] is that part of an IPX setup? [09:19] er, not ipx [09:19] or is it, the protocol that allows you to netboot from POST? [09:19] post POST [09:20] You can netboot from the PXE ROM stored on your NIC, if your NIC has one. [09:21] PXE, thats the protocol I was thinking of [09:21] so do you use netinst as part of some PXE install system you have setup [09:21] ? [09:22] netinst is just a kernel and ramdisk that you load via a PXE bootloader. [09:22] ok [09:22] That ramdisk contains d-i and network drivers. The rest of the installer is anna-installed. [09:22] ok [09:22] It's basically the same code as on mini.iso [09:23] mini.iso? [09:23] haven't heard of it [09:23] just found the page for it [09:24] e.g. http://mirror.internode.on.net/pub/ubuntu/ubuntu/dists/karmic/main/installer-amd64/current/images/netboot/ [09:25] I was looking at https://help.ubuntu.com/community/Installation/MinimalCD [10:19] Hello there [10:21] Yesterday I couldn't see mydomain.net/phpmyadmin, I did restart /etc/init.d/apache2 restart just to see what's going on, maybe apache2 doesn't allow something: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName httpd (pid 11643?) not running [10:21] ...done. [10:22] Is this cosing the phpmyadmin not to show when I go to mydomain.net/phpmyadmin? [11:25] lamont, are you the bind9 maintainer? [11:46] 9 [11:46] Whoops, sorry about that. [11:46] :) [11:50] Hi, I've got problems connecting to my mail accounts using squirrelmail and receiving e-mails. [11:54] http://paste.ubuntu.com/174853/ [11:55] sluimers: which imap server do you use? [11:55] courier [11:57] sluimers: do you have also pop enable? [11:59] SquirrelMail version 1.4.15, postfix 2.5.5, courier 0.60, ermm... I wouldn't know, I'm a newbie at this. How can I see if it is enabled? [11:59] enabled where? [11:59] I installed courier-pop [11:59] slide: telnet localhost 110 [12:01] slide: sorry sluimers: telnet localhost 110 [12:03] Hello there [12:04] :) [12:04] that works :) [12:04] +OK Hello there. [12:05] sluimers: ok, now try to login via pop to see the mailbox [12:06] how would I login via pop? [12:09] sluimers: http://paste.ubuntu.com/174860/ [12:13] logins fail [12:18] -ERR Login failed. [12:31] Kamping_Kaiser: yes [12:31] lamont, wow... i didnt realise :/ [12:36] New bug: #377913 in bacula (universe) "package bacula-director-mysql 2.4.4-1ubuntu5 failed to install/upgrade: subprocess post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/377913 [12:45] guys, i just installed a LTS but the server has no window manager, but i want gnome in clients. What i have to do? chroot to /opt/ltsp/ and install gnome ? [12:56] <_dthacker_> tadeu_: yes you will need to pull in gnome. No x-windows managers by default. [12:58] _dthacker_, well, any idea how to install a "minimal" gnome environment ? [12:58] "apt-get install x-window-system-core xserver-xorg gnome-desktop-environment" will download 238MB =s [12:58] <_dthacker_> no, sorry. don't run x-windows on servers in my environment. [13:11] _dthacker_ > installing it doesnt mean it is actually running. [13:12] <_dthacker_> agreed. I do not install x windows on servers in my environment. === scfh is now known as scfh_ === scfh_ is now known as scfh [13:43] hi all. I recently acquired a VPS running Ubuntu 8.04. When I ssh into the server, the very first thing I noticed is that I cannot use the tab key very well to auto-complete things...for example, 'apt-g'+tab will complete 'apt-get', then followed by 'in'+tab would usually fill in the command 'install' but it isn't and if i just type it in , whats worse is not being able to then use tab completion to find packages... [13:45] j0nr, apt-cache search [13:45] you sure it's not a Debian VPS? [13:46] dguitar: shouldn't be, I have just rebuilt it again definately selecting ubuntu [13:46] #:q [13:46] Hi, I've got problems trying to setup a mail server. I'm trying to look at my mail accounts using squirrelmail, but instead I get an error -> http://paste.ubuntu.com/174853/. My e-mails seem to end up in /var/mail/vmail. I don't know if that's good thing. I use SquirrelMail 1.4.15, postfix 2.5.5, courier 0.60, mysql, phpmyadmin and ispconfig 3. [13:47] I can't recall if 8.04 did the package completion. But if its a VPS the person may have installed JeOS and you may not have the bash-completion package [13:48] VPS owners tend to do funky things also... [13:48] Apt-cache is the best way around this. [13:49] It's often for VPS's not to be the "real deal".. if you check out #centos, they won't support people on VPS's for this reason. [13:49] Except they are just unhelpful :( [13:49] lol [13:49] is it because i am root [13:50] j0nr, I believe you are correct. [13:50] su - gives me no tab completion in apt-get [13:52] aha i have it sorted [13:53] via: http://forums.debian.net/viewtopic.php?t=26648 [13:53] thats better :) === asac_ is now known as asac [14:28] what is the difference between -386 and -generic kernel? (besides that -generic boots and -386 does not) [14:29] hello a_ok [14:29] hi [14:42] is there anyone at all who can possibly help me to get preseeding partman-auto-raid to work in 8.04 LTS? i'm not a noob, but I can't for the life of me get this to work. it's been months of trying and putting it away and going back and now i really kinda need it. [14:52] anybody? http://www.pastie.org/481529 thjere is my preseed. funny thing is debconf-set-selections -c on it fails at line 66 and 67 (the partman-auto-raid recipe), however if i put it all on one line it parses. then when i get to thei nstall debian-installer complains my preseed is corrupt === `6og is now known as Kamping_Kaiser [15:05] hello [15:06] my syslogd restarted at 7:21 brazillian time... how can I check logs before syslogd restarted? [15:07] found it [15:07] ssyslog.o [15:07] o/0 [15:14] please assist. My google-fu is weak. Looking on how to format a new disk. (ext3, mount, etc) [15:17] mkfs? [15:18] godsyn: http://www.skullbox.net/newsda.php [15:18] "adding a new hard disk to linux" has 9 million results [15:18] i find it hard to belive you googled at all [15:18] ok.. how can I tell what drive is what? I'd hate to format /dev/hdc and later realize it is my root partition. [15:19] godsyn: ah, now that's a better question, type fdisk -ls to list all your drives [15:20] you should be able to deduce which is the drive you want to format, if not, take a look at the output of 'mount' which will tell you waht current drives you have mounted. from there, you can rule out that drive as a contender for getting formatted [15:20] exactly what I needed. Thank you joe-mac. [15:20] np [15:23] yay, question after question.. I'll try googleing 1st.. (partition) [15:32] one more question.. your opinion on ext4. Is it too new? or stable enough for a home server.. [15:32] I'm running it. [15:33] It's not given me any grief, but ymmv [15:33] i will probably migrate to it in a few motnhs, since performance on my crappy consumer pc at home is god awful and i'm hoping i can get some better io with ext4 [15:34] reformatting to ext4, then :) [15:36] well... after the 1tb format of ext3 finishes.. Thanks again for the hand holding. [15:36] np, i would be careful to backup my data though sicne ext4 is pretty new [15:37] noted. ciao. [15:37] joe-mac: you might boost your performance by adding a second hard disk. [15:37] ...or just buying a single faster one. [15:38] ball: my speeds are even low going to an external raid5 volume through sata. the machine just sucks. [15:38] i'm ditching it for an ultra 45 once i am caught up on some bills [15:41] joe-mac: RAID5 may be slower than RAID1 [15:41] uhhhh [15:41] joe-mac: how is it connected? [15:41] sata. and how would raid5 ever be slower than raid1 [15:42] ? [15:43] joe-mac: Perhaps I should have said RAID 1+0 [15:43] well, barring hardware differences i meant. yea. [15:43] can someone recommend a web based project management software ? [15:43] oruwork: a lot of people use trac. [15:44] idk if i'd 'recommend' it though lol [15:44] heh [15:44] i need a task management tool for our small organization [15:44] to assign to tech and sales guys. [15:45] tghere's also jira, the devs here use that [15:50] you still can use launchpad, there is also redmine === LyonJT___ is now known as LyonJT === benkant_ is now known as benkant === benkant_ is now known as benkant === Fumohh is now known as Fumoh|Work [17:55] i have a quick Ubuntu Server 9.04 install question if someone has a sec [17:57] when the install hits CD Drive detection phase, it can not detect the cd drive, yet it's loading the setup from the cd drive. Any ideas as to what the mishap is here? [18:03] hi folks -- on last friday i had a hard drive that is part of a lvm fail. One of the members of the room helped me make a copy of the data from the lvm group using dd the command was (i think) dd if=/dev/sda conv=noerror,sync |gzip -9 >/media/photos/sda.dd i did that, then repaired the server (new drive) rebuilt it -- installed a raid this time, and configured... [18:03] now im moving the data back, i tried just unzipping the file, but it doesent seem to be working as i expected [18:03] can someone recommend a web based project management software ? [18:03] so what should i be doing [18:03] for a small organization to assign tasks and their priority and dead lines to our tech and sales guys [18:05] oruwork: 3 things. 1. trac is python, good community, lots of plugins http://trac-edgewall.org [18:05] oruwork: 2. redmine, is rails, multiproject, looks pretty complete though, but .. rails .. http://redmine.org [18:06] oruwork: 3. drproject is a 'fork' of trac+tracforge, just got moved to django, might be worth a look http://drproject.org [18:06] all those have tickets, sourcecode viewer for different repository types, gantt charts, timelines, roadmaps, milestones .. [18:07] .. if that was what you were looking for .. [18:07] phaidros-> i apreciate your advice [18:07] oruwork: I was just researching alot about all three, which to choose :) [18:07] any advice on cdrom not being detected during ubuntu server isntall? [18:08] from a cd [18:08] is track a wiki like software ? [18:08] oruwork: trac has also a wiki part. but it is *lot* more [18:08] i need to set up a easy to use task management tool to use within my 9 people organization, easy to use meaning none-tech guys should be able to use it with ease [18:09] tasks can be anything, tickets for example. tickets are usually parts of milestones & components, so you can see how many open and such .. [18:10] so, trac would be a do-it-yourself thing, brilliant lot of plugins, just take what you need. the basic trac is very useful for start, though [18:11] there are webbased groupwares out there, never used one which I liked. [18:11] there might be some thing out there, what one can call project management software. but that's a broad term, and I for myself like the trac thing (or alike). [18:12] I'm reading the LDAP section on the ubuntu 8.04 server guide. It talks about Push and Pull LDAP configurations. Can this be done over SSH without a manually run SSH tunnel? [18:15] I've got machines inside of networks I don't run myself, so I can't get 389 (or more likley the SSL ldap port 636) open. It was hard enough just getting the ports we have now. [18:17] hi folks -- on last friday i had a hard drive that is part of a lvm fail. One of the members of the room helped me make a copy of the data from the lvm group using dd the command was (i think) dd if=/dev/sda conv=noerror,sync |gzip -9 >/media/photos/sda.dd i did that, then repaired the server (new drive) rebuilt it -- installed a raid this time, and configured... [18:17] now im moving the data back, i tried just unzipping the file, but it doesent seem to be working as i expected [18:17] so what should i be doing [18:18] phaidros-> trac looks a little too much and too complicated of what i'm looking for [18:18] where can i find error code listings for ubuntu server? [18:19] also, any advice on cdrom not being detected during ubuntu server isntall? [18:19] W8TAH: you should unzip the data and pipe that into dd, which is writing it onto a partition or lvm .. [18:20] OHHHH -- ok - -im currently unzipping -- so its gonna be in a dd file of some sort? [18:20] so id use dd of=/sda.dd [18:20] of some sort? [18:22] phaidros-> looking for something like this http://www.workzone.com/images/PT-advanced-1005.gif [18:23] any advice on cdrom not being detected during ubuntu server isntall? === hessml|away is now known as hessml|away|away [18:37] question... what do you guys use/recommend for an irc server. I tried ircd-hybrid which worked, but I'm wondering if there's anything better? [18:39] yeason: im using charybis and atheme -- works great -- good support - [18:40] W8TAH: cool, I'll look into those, thanks [18:41] yeason: I use ircd-ircu because that's what the other servers on my network use, but it has some issues right now on Debian and Ubuntu. [18:41] I filed a bug report, which is being ignored :) [18:43] W8TAH, is charybdis in the repos...? I'm not finding it [18:50] yeason: I always liked ngircd [18:54] I'm basically looking for something fairly simple and easy to setup, this irc server will probably not be under much load, and thanks to those of you who have already given some ideas [18:55] yeason: I'm using unrealircd [18:58] yeason: no - -you have to set it up from source (its easy) [18:58] any advice on cdrom not being detected during ubuntu server isntall? [18:58] check and make sure its plugged in, connected etc [18:59] try a diff cdrom drive in case the one you have is bad [18:59] drive not detected, or media not detected? [19:00] drive no detected, but it's loading the setup from the drive it's not able to detect [19:00] ive got the contents of a drive that i backed up using dd and gzip -- need some help with the command syntax to get it back [19:00] bios is detecting the drive fine, just the ubuntu instal that can't detect it or load correct modules for it [19:07] W8TAH: I kind of thought that... after some googling, but the home page is not loading [19:08] What do you guys think about running a firewall distro inside a VirtualBox machine on a fileserver? I'd like to get rid of the old boxes running endian and consider setting up ebox and put the firewall/gateway/proxy into a virtual machine instead of a separate box. Insecure? Broken thinking? Or green IT (by having 2 boxes less to run) ? [19:09] http://www.stack.nl/~jilles/irc [19:09] check that out [19:09] i copied a drive with dd piping it to gzip -- im having problems reversing the process -- can someone please help [19:10] stefg: I run firewall/router inside virtualmachine usin Xen [19:10] I think it is the same in vbox [19:12] jmedina: i was looking at that, too. But xen ruled itself out by the 'old-kernel-issue' and (more important) by having a co-admin which is quite clueless on the cli ... a Gui would come in handy [19:12] W8TAH: that is the page that wont load for me... I'm not sure why [19:12] try #charybdis on irc.staticbox.org [19:14] thanks, I'm trying out a few of the other suggestions, if they don't pan out I'll give that a look [19:25] i copied a drive with dd piping it to gzip -- im having problems reversing the process -- can someone please help [19:25] zcat file | dd [19:26] thanks [19:28] ivoks: that sent it to the console window -- i need to write the files to my hdd [19:28] i tried zcat file |dd of=/dev/md1 and it says permission denied [19:28] zcat cat gziped file [19:28] are you root? [19:28] yes [19:29] i tried zcat file |dd /data and it complained that that was a directory [19:29] zcat file | dd of=device should work [19:30] hummmmmm [19:30] thats what i would have thought too -- [19:30] is it possibly a problem that the gzipped file is on that partition already? [19:30] lol [19:31] yes [19:31] oh -- ok -- i'll put it back on a portable then [19:31] you can dd only too unmounted device [19:31] to [19:31] ohhhhh - so i'll need to boot to a live cd to take care of this then? [19:31] since the os is also on that raid [19:31] well, think for a minute [19:31] dd is a raw copy of device [19:32] ohh -- ok - -i didnt know that [19:32] it will replace everything on your disk [19:32] even the partition sizes [19:32] and types [19:32] ugh [19:32] not at all what i wanted to have happen [19:32] eh [19:33] you can do something else [19:33] you could gunzip the file [19:33] * W8TAH is all ears [19:33] ok [19:33] and mount it [19:33] mount the file? [19:33] and then copy files to partition [19:33] yes [19:33] mount -o loop file /mnt/dir [19:33] cool [19:33] and can it be on the raid or should it be on a portable drive to do that? [19:34] it can be on raid [19:34] did you dd partition or the disk? [19:34] at the time it was a disk (part of a lvm that corrupted itself) [19:34] ive replaced the bad disk [19:34] and built it in a raid 1 this time [19:35] and im trying to restore the data [19:35] (i had a backup system failure at the same time) [19:35] so you dd if=/dev/sda [19:35] not if=/dev/sdaX [19:36] dd isn't for backup [19:36] dd is raw copy [19:36] that's not backup [19:36] dd if=/dev/sda conv=noerror,sync |gzip -9 >/media/photos/sda.dd [19:36] why not tar contents of the disk? cccc [19:36] ya -- i know its not - -my backup (tape drive) failed at the same time -- thats why im not just restoringing from tape [19:36] dd is for bare metal recovery [19:37] someone here pointed me in that direction [19:37] the drive was failing badly with read errors all over the place [19:38] ok [19:38] did you gunzip it? [19:38] just getting ready to start now -- its 40 gb [19:39] you'll have to find partitions in the image first [19:39] fdisk -u -l dd_image [19:39] before i mount it? [19:39] you can't mount disk, only partitions [19:39] ok [19:40] when you get to that part, ping me [19:40] ok [19:43] its a machine full of our students home directories -- i just sent out a message to see if any teachers have students with anything critical on that drive -- ive spent 2 full days and parts of 2 more working on this -- and im beginning to wonder about the expendature of time [19:43] don't worry [19:43] ok [19:44] if data is safe in that image, you'll recover it [19:44] ok - -cool [19:52] anybody around who has actually got partman-auto-raid going with 8.04? i have a preseed that looks like it should work, but it doesn't [19:56] W8TAH: how's it going? [19:59] bout half done unpacking [20:14] does ngircd have a nickserv or is that what atheme-services is for? [20:14] that would be what services are for [20:14] hmm... fun times... *looks for man page...* [20:15] thanks again [20:15] funny how a simple idea of starting your own server turns into a full time project [20:15] ya -- it took quite a bit of work, but mine is up -- [20:17] brb [20:21] ivoks: ive gotta go do bus dismissal duty back in 15 mins or so [20:21] well, it's 9:20pm here [20:21] so, don't expect me to be here for long :) [20:21] if in a firewall rule I don't specify a a port, will it grant that rule to all the ports (iptables) [20:24] ivoks, heya master how's it going...? [20:24] RoAkSoAx: good, how about you? [20:24] RoAkSoAx: did you solve ftbs? [20:24] ivoks, busy as hell... when do you a little time to work on FTBS? [20:25] not today :/ [20:25] ivoks, nah I've been busy with work, some paperwork, and other personal stuff [20:25] sorry, i have lots of work to do [20:25] ivoks, yeah, me too, that's why i was asking when do you have a little time? [20:26] tomorrow? [20:26] at this time [20:26] ivoks, ok, awesome [20:26] or later [20:27] ivoks, ok i'll be around :) [20:35] jmarsden: well i didnt install clean 9.04 i upgraded to it , so it might not work lol [20:52] ivoks: still around? [20:55] W8TAH: yes [20:55] cool - ok its done extracting - -im getting ready to mount it [20:55] i did the fdisk thing and i see the partitions [20:56] nice, paste the output on paste.ubuntu.com [20:56] ok -- hang on -- im working between 3 computers here -- [20:57] http://paste.ubuntu.com/175157 [20:57] there ya go [20:58] urgh.. [20:58] uh oh [20:58] hard to read [20:59] oh -- want me to try another pastebin? [20:59] so, which partition do you want to mount? [20:59] sda.dd3 [20:59] the lvm partition [20:59] ok [20:59] do this: [21:00] mount -o loop,offset=21494970 -t auto image_filename /mnt/dir [21:00] ok [21:01] if it's really LVM, wouldn't it make sense to activate the volume in it? [21:02] says i need to specify the filesystem time [21:02] errr type [21:02] ajmitch: :) [21:02] right [21:02] but... how? [21:03] hm hm [21:03] create a loop device from it, pvscan, vgscan, etc? [21:03] it's been too long since I did it though :) [21:03] loop device from part of the image [21:03] creating a loop device would be done with losetup --offset (I think) [21:03] or... I could be completely wrong [21:04] there's kpartx [21:04] I only did this a couple of years ago with an image from a dying drive [21:04] * ajmitch is also horribly lagged on IRC trying to dput a package [21:04] W8TAH: apt-get install kpartx [21:05] ok [21:05] done [21:06] losetup -f dd_image [21:06] done [21:06] losetup -a [21:06] /dev/loopX - X is ...? [21:07] //dev/loop0 [21:07] one slash -- sorry [21:07] kpartx -a -v /dev/loop0 [21:08] tholmes@srvfs-02:/data$ sudo kpartx -a -v /dev/loop0 [21:08] /proc/misc: No entry for device-mapper found [21:08] Is device-mapper driver missing from kernel? [21:08] Failure to communicate with kernel device-mapper driver. [21:08] /proc/misc: No entry for device-mapper found [21:08] Is device-mapper driver missing from kernel? [21:08] Failure to communicate with kernel device-mapper driver. [21:08] don't paste here [21:08] Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and kernel driver [21:08] device mapper prerequisites not met [21:08] [21:08] sorry [21:08] you should load device-mapper module [21:08] modprobe? [21:09] dm-mod [21:09] modprobe dm-mode [21:09] modprobe dm-mod [21:10] ok - got some adds [21:10] kpartx finished? [21:10] yup [21:10] go to /dev/mapper [21:10] ther should be loop0p1 p2 and p3 [21:11] control loop0p1 and loop0p2 [21:11] right, two [21:11] hm... [21:11] device-mapper: reload ioctl failed: Invalid argument [21:11] showed up during the kpartx run [21:11] vgchange -a -y [21:12] not installed -- do i want to install lvm2? [21:12] (im guessing yes) [21:12] yes [21:12] I'm playing with ngircd, does somebody know of an irc services package that works with it...? [21:13] the vgchange command choked -- invalid arguement -y [21:13] error during parsing end of command line [21:13] -ay [21:13] no volume groups found [21:14] or... [21:14] vgchange a y [21:14] -ay [21:14] bah... [21:14] :) [21:14] run kpartx again [21:14] same command? [21:14] yes [21:15] done -- still got the reload ioctl failed result [21:15] could you paste the output of kpartx on paste.ubuntu.com? [21:16] http://paste.ubuntu.com/175167/ [21:16] there ya go [21:17] then, there are three, not two [21:17] ya --but only 2 show up in /dev/mapper [21:17] ok [21:18] the unzip option gave an unexpected end of file -- might that be the issue? [21:18] hopefully not [21:18] vgchange -a y [21:19] no volume group found [21:19] bah... [21:19] ive another file but its 120gb so i was messing with this one first -- as its smaller [21:19] far as i know that one is ok [21:19] 120gb of gziped data? [21:20] yes [21:20] is your new disk bigger than the old one? [21:20] no [21:20] uh [21:21] in the old system, there were 2 250 gb hdd in a lvm configuration -- in the new system, there are 2 250gb disks in a raid 1 [21:21] since dd is a disk image, extractd it's size is size of the disk [21:21] oh gag [21:21] how come you managed to reduce it to 40GB? [21:22] thats the other disk -- we are working on the image of sda the large one is sdb [21:22] ok [21:22] im guessing wondering / guessing that either it was so corrupted that it didnt get it all -- or possibly the portable i was extracting to filled up [21:22] find /dev -name loop0p3 [21:22] ok [21:23] nothing [21:23] so, it knows about partitions, but can't access them [21:23] hm [21:23] im starting to get the feeling that that image is hozed [21:23] could be [21:24] dd could be used as a linux equivalent of ghost couldnt it [21:24] that's the disk with bad sectors? [21:24] b had the bad sectors yes [21:24] dd is exactly that [21:24] ok [21:25] i'm out of ideas [21:25] anyone? [21:25] hi eveeryone [21:25] i didnt realize that dd was making a copy of the entire disk -- id have handled things differenty :( [21:26] anyone playing with vmbuilder those days ? [21:27] W8TAH: eh... [21:27] well.... from what the faculty has told me -- only one student has a critical project on it -- i talked to that teacher and she can grade it another way if necessary [21:28] im beginning to think that just scrapping and picking up with life might be the best way to go [21:28] :) [21:28] and making darn sure the backup system is working right :D [21:28] (which it is now) [21:28] sorry, but kernel can't read that partition [21:29] ya - i understnad [21:29] its ok -- i appreciate all the help [21:29] ive learned a lot [21:30] too bad you can't use new knowledge for this problem :/ [21:30] ya -- however i am using some to prevent it from happening again -- my new servers will be getting raids across the board - -then i'll be going back and where possible installing raids on existing ones [21:31] note: raid is not backup [21:31] i know this [21:31] but in this case -- it would have saved my butt [21:31] raid saves the day for most hardware disk failures [21:31] yup - [21:31] a combination of that and a valid backup would have made a huge difference [21:31] good cheap domain registrar? my domain name is available again [21:32] godaddy.com [21:33] 'night all [21:33] night -- thanks again [21:36] ok -- for all you admins out there -- im this week receiving a server with 5 150gb disks -- initially i was going to combine them under LVM and make one monster (3/4tb) file server -- the events of the last week have changed my mind -- how would you configure the system? im thinking a raid 5 (3 disks (critical data)) and a raid 1 (2 disks (os and not as critical data)) [21:37] comments or suggestions? [21:37] is there any good documentation for the dovecot-postfix meta package? [21:49] anyone has managed to use vmbuilder with lvm without having to convert the image ? [22:11] is there any good documentation for the dovecot-postfix meta package? does the username&passwords match dose of the real users? [22:20] hey jetole I finally got my problem fix [22:22] but now I cant login to my roundcube [23:10] sooo [23:10] anyone is here? [23:12] yes, but some of us are working [23:13] ok [23:14] +1 [23:26] is it possible to install ubuntu server from a live cd using ssh? [23:27] No. [23:27] You would need sshd installed and running in order to even get a session, right? [23:29] well is it possible to install ubuntu server from an ubuntu desktop live cd if you download some additional files? [23:30] possible, in a sense... not recommended though [23:30] so install from CD is really the only supported method? [23:30] the only easy supported method [23:31] you'd need to be very familiar with Ubuntu to easily change a desktop install to a server install [23:31] besides, you probably don't want a GUI on a server [23:31] better to keep the horsepower and RAM for serving instead of eye candy [23:32] well i noted that you can install ubuntu desktop from the live cd (booted into the live cd environment, there's an install shortcut on the desktop) just wondering if other installs are possible from that environment [23:32] not really. you install a desktop system. and then you can add and remove packages to make it whatever you want. [23:32] on the other hand, you can use the alternate install CD to readily easily install whatever sort of system you need. [23:33] but the server install CD is optimized to create a server. it's definitely the best way. and the only way I'd recommend to someone without deep Linux knowledge. [23:33] well i'm used to doing gentoo installs... boot up the livecd and ssh in and you can do the whole install from ssh. i'm sure it can be done in ubuntu as well but probably more of a pain. [23:35] just do a really minimal install off the alternate CD, then ssh in and actually set up your system. not quite the same, but similar. [23:40] ericjoseph: Well, if you want something really similiar to just booting up and connecting by ssh you can always boot up any live cd and do a manual install using debootsrap. [23:40] ericjoseph: Just not sure if it is worth the effort :) [23:40] thx andol. i'll look into that [23:41] well i don't have a CD drive in the system i want to install ubuntu on. i do have a persistent ubuntu 8.1 live CD on an external usb drive though that i can boot off of [23:42] s/debootsrap/debootstrap/ [23:53] hmm. we didn't release any Ubuntu in January 2008. [23:53] I wonder if it might be 8.10 that's meant...