/srv/irclogs.ubuntu.com/2011/12/29/#ubuntu-server.txt

Lcawtehmm, next problem00:02
RoyKLcawte: why didn't you just start it without grant tables?00:03
LcawteRoyK: because that just hung00:03
RoyKno, it did't, it just didn't fork into the background00:05
* RoyK labels Lcawte NOOB00:05
* Lcawte takes off the duplicate label00:05
LcawteHmm, now, I can't seem to mount my other disk thats attached to the server (its my 80GB desktop 11.10 disk) but I can't take it out because its needed for grub... I need to grab my sql databases from that one, but I can't seem to mount it...00:06
RoyKLcawte: grub isn't needed to mount anything00:07
RoyKLcawte: pastebin your /proc/partitions, please00:08
RoyK!pastebin00:08
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.00:08
LcawteRoyK: I know that... and I know about pastebining :P  But I meant, I can't take the disk out and put it in another machine to get the stuff because if I do, I break booting on the server, and have to spend another week fixing it00:08
Lcawtehmm, whats the output of /proc/partitions supposed to look like?00:09
Lcawteor, what command do I run to get the inteded output00:09
RoyKyou may want to dump the db on that machine, then00:10
RoyKmysqldump etc00:10
Lcawteok, but I still can't mount that disk00:11
Lcawte"mount: can't find /dev/sdb1 in /etc/fstab or /etc/mtab" (it shows up in fdisk -l though)00:11
RoyKLcawte: man mount00:13
LcawteRoyK: ah, thanks ... mount -t ext4 is the command :D00:15
LcawteRoyK: I probably want to dump all the databases with all the info right? Then would it be "mysqldump -A"?00:18
RoyKmysqldump --all-databases00:19
RoyKwhich is -A, yes00:20
RoyKsame thing00:20
LcawteWhere does it get dumped to & in what format?00:22
RoyKthat dumps to standard output in SQL format00:22
RoyKjust dump every database you need00:23
RoyKmysqldump mydb > mydb.sql00:23
RoyKthe mysql database (system db) may be moved as well, but if you don't have too much grants etc, you might want to add those manually to the new system db00:23
=== sixstringsg|away is now known as sixstringsg
Lcawtev00:26
Lcawte"mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect" and "service mysql start" gives me a job failed to start message00:27
stricklywhats the job error message you get when starting the daemon?00:29
pdtpatrick1Question .. why does schroot fail to recognize that a path exists?00:35
pdtpatrick1http://paste.pocoo.org/show/0jlqgcqNoJthJxjnvYUW/00:35
Lcawteroot@lcserv:/# service mysql start00:36
Lcawtestart: Job failed to start00:36
Lcawte(chrooted into the disk right?)00:36
stricklytry this00:43
stricklycd /usr/local/00:43
stricklycd /usr/local/mysql00:43
strickly./bin/mysqld_safe --user=mysql &00:43
stricklyor /usr/local/mysql/bin/mysqld_safe --user=mysql &00:44
stricklydirectly00:44
Lcawtestrickly: hmm, theres no mysql in /usr/local00:46
stricklydid you install it manually?00:46
stricklyor via a package manager?00:46
stricklythe mysql app00:46
Lcawtetasksel or aptitude00:46
Lcawtemay of been in an earlier version of ubuntu though, can't remember00:47
stricklydid you try a00:49
stricklysudo aptitude reinstall00:49
stricklymaybe its the fastest way to get it corrected00:49
stricklyit shouldnt be such big deal to restart the daemon00:49
stricklyso maybe something wrong in the install/config process00:50
RoyKwtf is wrong with people? reinstalling things normally doesn't help - fixing things does00:50
LcawteWell I am chrooted into the disk remember00:50
Lcawtewhich, either means I don't chroot properly or..00:51
RoyKLcawte: move the db files away, copy the old ones in, start the db00:51
stricklywell it's about making things easy at times00:51
stricklynot spending hours and more hours figuring it out, when theres no need00:51
RoyKLcawte: dump the db, move the old ones away, move the originals back, start dbms, restore00:51
LcawteRoyK: problem is, can't dump the old stuff because the old db won't start in chroot :)00:52
RoyKLcawte: did you try to read what I just wrote?00:52
stricklyRoyK easy00:52
strickly:)00:52
Lcawteok, I think I've got you...00:52
LcawteOld database files... hmm...00:53
* Lcawte goes hunting00:53
MTecknologyhm... So if you have your home directory encrypted using ecryptfs, how can you ssh into that system with shared keys?... you're ~/.ssh/authorized_keys is encrypted until you log in...01:29
MTecknologyheh... that was an easy solution... sorry for not thinking through it before asking01:37
LcawteWhere exactly is the data for mysql stored, I'm trying to copy the databases from a disk, but my first attempt seems to have left me with an empty database with the correct name01:46
=== bkerensa is now known as hypodermic
=== hypodermic is now known as bkerensa
Lcawtegot it, just had to chown the files02:01
=== sixstringsg is now known as sixstringsg|away
uvirtbotNew bug: #909558 in etckeeper (main) "Default conffile change in hardy -> lucid transition silently stops etckeeper hooks" [Undecided,New] https://launchpad.net/bugs/90955802:56
=== dendrobates is now known as dendro-afk
=== sixstringsg|away is now known as sixstringsg
=== dendro-afk is now known as dendrobates
squidlyyep../wib04:12
Zanzacarexit04:21
Zanzacarexit04:21
Zanzacarwhoops04:22
koolhead17hi all04:38
=== ejat- is now known as ejat
=== dendrobates is now known as dendro-afk
=== sixstringsg is now known as sixstringsg|away
=== sixstringsg|away is now known as sixstringsg
uvirtbotNew bug: #909592 in samba (main) "package samba 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: ErrorMessage: subprocess new post-removal script returned error exit status 2" [Undecided,New] https://launchpad.net/bugs/90959207:01
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
=== erichammond1 is now known as erichammond
lalagirlhi everyone09:58
lalagirl!hi09:58
lalagirl!hello09:58
=== dendro-afk is now known as dendrobates
Guest21672hello oratedq13:08
=== koolhead11 is now known as koolhead17
codefluxstupid question: I added a rule to iptables to drop all traffic after the rules for 443, 80 and 22. If I now add a rule for port 21, will it work or does it have to be before the "drop all traffic" rule?16:06
magicblaze007I'm trying to set some headers on my webserver, and for some reason, cant get the header out to the link at all, had anyone had this problem before?16:33
patdk-wkmagicblaze007, nope16:40
=== sixstringsg is now known as sixstringsg|away
=== guampa|2 is now known as guampa
uvirtbotNew bug: #909828 in tomcat6 (main) "Tomcat needs update to prevent hash function DoS attack" [Undecided,New] https://launchpad.net/bugs/90982818:43
=== bitmonk_ is now known as bitmonk
=== alaing is now known as funkymonk
=== bitmonk_ is now known as bitmonk
=== bitmonk__ is now known as bitmonk
=== EvilResistance is now known as Resistance
=== JoshuaP is now known as A_thing
fishsceneGreetings23:08
fishsceneWe use gmail for our corporate e-mail, and as such, some applications that depend on a local e-mail server can not use our e-mail system. I would like to set up an internal e-mail server that these applications can use that ties into our gmail system. What would be the best way to do this?23:09
fishsceneI have looked in to postfix, but it is absolutely horrid to set up with many features and options I don't understand, nor do they seem necessary for what I am looking to do.23:11
matocWhat do you mean by tie-in?23:13
fishsceneEssentially, the internal e-mail server would receive messages, and forward them to gmail to the approrpiate address. For example, if I received an e-mail, it would be from "noreply@mydomain.net" going to "fishscene@mydomain.net"23:15
matocNot sure about automating this, but a postfix server with PostfixAdmin for web administration could work well for you.23:16
fishscenehmmm I haven't run across PostfixAdmin yet.23:16
matocfishscene: I believe this howto worked for me on 10.04 http://postfixmail.com/blog/index.php/postfixadmin-on-ubuntu-9-10/23:20
fishsceneThanks matoc23:20
iBaerHello23:22
fishsceneHi23:23
iBaerI want to access my Samba server from outside my home network, is that possible?23:25
fishsceneiBaer: By connecting to the samba shares directly? I normally use SSH to gain access to my home directory.23:26
matocYes. There are a few different ways. I would use OpenVPN to setup a secure VPN to you home network.23:26
matocI have found that many home ISP block port 22 for SSH which makes it a problem. If it's just me and SSH work though, that what I use too.23:27
fishsceneMy ISP blocks port 22 as well, so I changed the port :) But yea.23:27
matocI've never tried Samba directly over the internet, I'm a little curious how well this works actually.23:28
iBaerI can access the server via OpenSSH just fine from outside the home, but I can not access the samba23:28
fishsceneSounds like a DNS/IP routing issue23:29
fishsceneExposing your samba server to the Internet is not advised.23:29
iBaerWhen I'm at home, behind the router, all I have to do is open Windows explorer and the Server box is listed with the samba shares available23:29
matociBaer: I think what was meant about using SSH was that it is used instead (with SSHFS perhaps?) or SMB.23:30
fishsceneiBaer: Have you tried connecting to your samba server over OpenSSH by going to (Windows) start > run > \\(ipaddress of your samba server)23:30
matocfishscene: how are you establishing the OpenSSH session in windows first? Does Putty do this?23:31
iBaerFishscene: I've tried the \\IP thing, doesnt seem to work23:32
fishscenewait. I'm an airhead. I was reading openssh as openvpn. I'll shutup now :P23:32
iBaerI use Putty to connect through SSH23:32
matocthat's because SMB would need to be piped over SSH first, which I've never done.23:32
iBaerOpenVPN, I havent tried that, is that trouble to setup23:33
iBaerany tutorials site for it?23:33
patdk-lapthousands23:34
patdk-lappiping smb over ssh? is that possible?23:34
matocI believe the official ubuntu wiki serverguide has a tutorial23:34
iBaerYes, but are those thousands aimed towards newbies23:34
patdk-lapibear, atleast 98% of them are23:35
fishscenepatdk-lap: Only if you pipe openvpn over your SSH connection, which begs the question again, is that possible?23:35
patdk-lapI can never find ones doing strange things like I do with it23:35
patdk-lapfishscene, sure23:35
patdk-lapbut I was thinking of ppp over ssh, since poeple love that23:35
fishsceneah23:35
iBaerokay now im getting lost with all this piping, ppp, ssh, qqq stuff23:36
qman__running samba over the internet is unlikely to work and ill-advised23:36
iBaerWill OpenVPN allow me to access the samba shares?23:36
qman__most ISPs block it23:36
patdk-lapopenvpn lets you access networks23:36
patdk-lapsamba runs on networks23:36
qman__yes, openvpn will allow access to samba23:36
patdk-laptherefor, openvpn lets you access samba :)23:37
fishsceneVPN = virtual private networking (It's as if you're physically plugged in to your remote network)23:37
patdk-lapand here I thought it was virtual public networking23:37
iBaerI can access my samba shares via FTP too, but inorder to use the files, the have to be downloaded to the computer I'm accessing the server from.23:38
iBaerOpenVPN doesn work the same way does it?23:38
iBaer?23:38
matocSMB over SSH: http://www.blisstonia.com/eolson/notes/smboverssh.php23:38
matocI wonder if "ssh -D 445 myserver.com" would work...23:39
iBaerOKay, well thank you everyone for the suggestions. I'm going to go research all this now.23:39
iBaerOh, wait, one last question sorry. I have a dynamic IP, using OpenVPN require the use of ddclient to set a staticip/or domain address?23:42
patdk-lapdepends on how you do i23:44
patdk-lapit23:44
patdk-lapbut probably yes23:44
patdk-lapI personally run it at a colo, and my home system vpn's into the colo, so not needed23:45
iBaerOpenVPN is a paid service?23:46
=== A_thing is now known as JoshuaP
matocthere is a community version23:46
patdk-lapif you want to pay them, sure23:46
fishsceneok. This e-mail stuff isn't working out very well.23:55
fishsceneI need a simple email server that can bounce messages to gmail.23:57

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