#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2012-05-07

Timestamps are in GMT/BST.

00:01:02IAmBeard Quit (Read error: Connection reset by peer)
00:12:29zoomber_ has joined
00:12:35zoomber_hi
00:12:40zoomber_hey raptor
00:12:51zoomber_i bet you know a lot about VMs
00:12:53raptorhi
00:13:05raptortoo much - i wish i didn't have to spend my time in them...
00:13:09zoomber_do you know how to port forward them? like say i wanted to run bitifghter off one
00:13:20raptoryes
00:13:24raptorbut it depends on the system
00:13:34zoomber_centos 6 for me
00:13:41raptorwhat is the host system, and what is the VM framework (e.g. vmware, etc..)
00:14:11zoomber_my computer is an iMac lion, running virtual box, and the virtual machine is cents 6 x86_64
00:16:57raptorok, you have to have 3 things set up:
00:17:02raptor1. the port open on the host
00:17:20raptor2. the open port on the host forwarded to the guest (Centos)
00:17:28raptor3. the port open on the guest
00:17:49zoomber_i think the second one is the one Ill be having trouble with
00:17:52raptorprobably centos has all ports open
00:18:03zoomber_i'm sure cents has port 22 open..
00:19:08zoomber_not sure how to port forward to it's port though
00:20:35raptorwhat is the host port going to be?
00:22:44raptorfrom here: http://www.virtualbox.org/manual/ch06.html#natforward
00:23:08raptoryou use the command-line tool 'VBoxManage'
00:23:12raptorexample: VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,2222,,22"
00:23:46raptoryou would change "VM name" to your VM name, and change 2222 to be whatever port you want open on the host
00:24:56zoomber_right
00:24:58zoomber_i tried that
00:25:25zoomber_ok
00:25:31zoomber_so not sure if it worked
00:25:50zoomber_i can't seem to sftp to it, and i can't specify ports without a complicated argument on mac
00:26:08zoomber_rator, does ssh root@home.maxhushahn.com:2222 prompt you at all?
00:26:30zoomber_i feel like it would work, as the web page shows up blank for me when i type it in
00:27:16raptorok, port 2222 is open on home.maxhushahn.com
00:27:57zoomber_oh good, so it is connectable then
00:28:35zoomber_i believe my iMac is in DMZ right now, which i keep forgetting to take off, but i made a port 2222 opening for it too
00:29:22raptorso, now you need to make sure ssh is running on your guest at port 22
00:29:33raptoryou may need to restart the machine after adding the forward rule
00:29:39raptorthe guest machine
00:30:58sam686when i try to telnet home.maxhushahn.com [75.83.122.144] port 2222 looks like it connects, but when i press any buttons it disconnects...
00:31:14zoomber_oh
00:31:30zoomber_what should i do, maybe i can try some ssh install package to make sure its up to date
00:31:53raptorhave you restart the guest centos?
00:32:28zoomber_ill do that right after this yum finishes
00:32:53sam686port 22 is also open saying "SSH-2.0-OpenSSH_5.6" then "protocol mismatch" when using telnet (i should use SSH instead for port 22)
00:33:07zoomber_ok
00:33:08zoomber_try now
00:33:41sam686port 2222 now says SSH-2.0-OpenSSH_5.3
00:33:44raptorworks
00:33:49zoomber_super
00:33:55zoomber_i needed to start the service too
00:34:09raptorha!
00:43:03zoomber_hey sam, how did you get mono working on that VPS?
00:43:29zoomber_I added a repo that would let me yum download it, and am getting bad signature errors wherever i go
00:43:45zoomber_rpmReadSignature: failed: bad load
00:43:54zoomber_wait no
00:43:59zoomber_failed: sign load: bad
00:47:10sam686not sure, i don't exaclty remember which web page i used for instruction of manual compiling (instead of packages)
00:47:29zoomber_oh you manually compiled
00:47:30zoomber_hmm
00:47:47zoomber_idea: could I transfer the built version of mono from that VPS to mine do you think?
00:47:58zoomber_oh wait no, different os number, different bit
00:48:13zoomber_ Quit (Quit: Page closed)
00:48:56sam686i don't know, it may depends on many things, i think, also that means having to have all the required binary packages, that may be needed by mono binary itself
00:50:30sam686found it, i remembered seeing almost the same as this: http://wiki.phonicuk.com/Installing-Mono-in-CentOS-5-x.ashx
00:50:33sam686for compiling
00:51:39sam686for the most part, all i did is copy and paste the commands (the last command is make && make install, be sure to be root, or sudo make install)
00:58:17sam686as for virtual machines, you can give the linux (or any guest system) more or less memory, and with more then one CPU (if your computer CPU have some hardware virtualization, mine doesn't) with some comfiguration (though need to shutdown first to make changes)
01:02:24zoomber_mbp has joined
01:02:53zoomber_mbphi
01:02:55zoomber_mbpagain
01:03:16sam686doube-z-zoomber?
01:03:36sam686you might have not read this, zoomber: http://bitfighter.org/irclogs/index.php?date=2012-05-07
01:03:41sam686at the bottom
01:04:41zoomber_mbpyeah i see it
01:04:56zoomber_mbpok
01:05:01zoomber_mbpactually
01:05:03zoomber_mbpwait wtf
01:05:13zoomber_mbpi could have just download THIS repository and compiled it on the mac
01:05:24zoomber_mbpeeeaeeahahrrrraaaaaagggggghhhhhh
01:05:47sam686i don't know about that.... there is some operating-system-spesific code that might not compile for 64-bit mac?
01:06:27sam686such as, there is some operating-system spesific code on Bitfighter for some parts, such as bf updater..
01:07:39zoomber_mbpits downloading the mono tar ball from source directly
01:07:50zoomber_mbpi could have compiled that source instead of whatever i compiled
01:08:16sam686you could try, but i don't know is it might or might not work on mac...
01:10:09sam686besides, i think virtual machine only uses about 100 MB ram with basic server..
01:10:36zoomber_mbpright. about that too
01:10:54zoomber_mbpit i use a VM instead, and allow it to use two processors, does it preallocate all that processor?
01:11:16sam686it can automatically use 2 CPU at the same time
01:11:24sam686CPU don't have such pre-allocating
01:11:40sam686the CPU is shared with host then the virtual is not using that CPU
01:12:38sam686just like any programs, it is free to use all the CPU cores, and the host operating system can multi tack to other programs needing CPU
01:13:46sam686as in, virtual CPU settings can adjust the MAX cpu cores.
01:14:17zoomber_mbpah kk
01:21:10sam686|2 has joined
01:21:11sam686 Quit (Disconnected by services)
01:21:12sam686|2sam686
01:21:16sam686|2 is now known as sam686
01:21:16ChanServ sets mode +v sam686
01:25:48sam686i will be back in about 29 minutes..
01:43:28sam686im back (i meant 20 minutes, not 29, just noticed that now)
01:46:02raptorhi again
01:51:11zoomber_ has joined
01:51:18zoomber_bah raptor, again its doing it
01:51:34zoomber_i try binding a simple port 8080 to port 8080 and it doesn't fall through
01:52:40raptormake sure those 3 things are working that i listed
01:53:34zoomber_ok, tested the port using lynx locally
01:53:47zoomber_airport reports that port (as well as all ports) going through
01:53:53raptorwell, i see no open 8080 from my end
01:54:12zoomber_yeah, well i can't see it either
01:54:15zoomber_so i know it can't be #1
01:54:24zoomber_else wouldn't i be able to see it on my iMac?
01:54:30zoomber_since that's before the router
01:55:39raptorwell, is your firewall on or off?
01:55:41raptorfor the host?
01:56:32zoomber_no, firewall is off
01:56:41raptorok, then the service isn't set up
01:56:42zoomber_but the panel doesn't show up for me either
01:56:59zoomber_well, i know the service is up, i type in "lynx http://localhost:8080/ and it connects
01:57:09zoomber_that's on the cents server ^
01:57:15raptorVBoxManage modifyvm "VM name" --natpf1 "guest8080,tcp,,8080,,8080"
01:57:38raptorsorry, i mean, now #2, the vm forwarding service isn't up
01:58:56zoomber_ok i tried it
01:58:58zoomber_lets see how it works
01:59:03raptorok, it's up
01:59:38raptoror at least 8080 is open
02:00:14raptoryou may need to restart the vm after the forward was set up
02:00:15zoomber_ok lets see
02:00:20zoomber_i did
02:00:21zoomber_well
02:00:28zoomber_you have to keep the VM off when you change that setting
02:00:33raptorwell, i can hit 8080 on home.maxhushahn.com
02:00:35zoomber_or at least they advise
02:00:36zoomber_it
02:00:40raptoroh ok
02:00:46zoomber_still not loading, but it's doing something..
02:01:02raptorok, good, so #1 aned #2 are done
02:01:06raptornow #3...
02:01:12zoomber_wait though
02:01:15raptorservice may be up but not working?
02:01:18zoomber_#3 should be working
02:01:25zoomber_it's using a web service, and that should be ok
02:01:43raptorwell it isn't... maybe a firewall on the centos server is preventing it?
02:02:03zoomber_would they just put up a firewall that blocks random ports after clean install?
02:02:11zoomber_not sure who to disable one
02:02:47zoomber_Psssssssh
02:02:59zoomber_httpd wasn't even on in the first place!
02:03:13zoomber_dammit, still doesn't work
02:04:30zoomber_what does port 800 show for you?
02:05:31raptorstill waiting at 800
02:05:41raptorbut at 80, i see a directory index
02:05:46raptorIndex of /
02:06:05zoomber_thats my imac
02:06:39zoomber_port 800 should go to port 80 of the server, and port 8080 should go to port 8080 (web server uses httpd too)
02:08:45raptorthe only one that responds with http is 80
02:09:00zoomber_unfortonatley
02:09:06raptormayeb you should check the logs on the centos machine
02:09:34zoomber_I'm more curious as to how i got the ssh port through
02:09:41zoomber_and if there's an easier way to do this
02:09:47zoomber_like, bridging
02:10:19raptorif you bridge the vm's ethernet, then you don't need to do #2
02:10:43zoomber_what does that do, give my VM it's own private ip?
02:11:10raptoryes, if 'private ip' means from your router
02:11:18zoomber_yes
02:11:22raptorthen yes
02:11:43zoomber_then it shall be
02:13:51zoomber_oh common this is so much easier..
02:15:29zoomber_brb
02:17:17zoomber_ok well this should help
02:17:22zoomber_i get the ip 192.168.2.73 bound to it
02:17:35zoomber_but when i type that in a browser, on my local network, no response
02:17:47zoomber_ssh works
02:18:12raptoryeah, so there may be a firewall on the centos server
02:18:17raptorblocking everything but ssh
02:18:20raptorwhich is common
02:18:31zoomber_promiscous mode: ?
02:18:39raptoruh..
02:18:52zoomber_thats an option, and it's set on "deny" right now
02:18:55raptori don't think that has anything to do with what we are doing... unless it is network packet sniffing
02:19:10zoomber_so leave it on deny then?
02:19:12raptorwhere is that set?
02:19:15raptorwhat system?
02:19:25zoomber_under adapter type, above mac address / port forwarding
02:19:31zoomber_it's on the settings tab for the VM
02:19:32raptorwhat system
02:19:47raptoron the mac system for the VM?
02:19:54zoomber_Vm = centos 6
02:20:44raptorbut is that set inside the vm/
02:20:45raptor?
02:21:25zoomber_Inside Oracle Vm VirtualBox Manager
02:21:30raptorah so on the mac
02:21:35zoomber_oh yes
02:21:50zoomber_i tried /sbin/iptables and tried unblocking port 8080 but that did nothing
02:22:15zoomber_what's that command, you can do that command | grep 8 to scan for open ports with 8s in them
02:22:26raptornmap?
02:22:33raptornetstat?
02:23:00zoomber_hmm
02:23:11raptori'd just turn off iptables completely to see if it is the problem
02:24:07zoomber_FINALLY
02:24:16zoomber_port 80 works on it now
02:24:32raptorwas iptables the problem?
02:25:16zoomber_yes
02:25:17zoomber_there we go
02:42:57zoomber_closing this window but am on MBP right now (using vnc)
02:43:00zoomber_ Quit (Quit: Page closed)
02:54:21zoomber_mbpim out
02:54:25zoomber_mbpjoin to other comp (zoomber)
02:54:27zoomber_mbp Quit (Quit: zoomber_mbp)
04:53:52raptor Quit ()
05:05:06Zoomber Quit (Quit: Zoomber)
06:08:04sam686 Quit (Ping timeout: 245 seconds)
06:08:34sam686 has joined
06:08:35ChanServ sets mode +v sam686
06:50:37sam686 has left
07:33:38watusimoto has joined
07:33:39ChanServ sets mode +o watusimoto
07:59:44kodax has joined
13:13:00kodax Quit (Remote host closed the connection)
13:59:17kodax has joined
14:10:54IAmBeard has joined
15:03:28raptor has joined
15:03:28ChanServ sets mode +o raptor
15:06:08raptorgood morning!
15:06:20raptorwatusimoto: linux compiles again with my latest check-in
15:12:53raptoralso very good e-mail to the LuaW dev
15:14:29watusimotohi
15:14:30watusimotothanks
15:14:34raptorgood day
15:14:49watusimotoMaybe that will be the basis of some documentation
15:15:14watusimotoI had a few minutes this morning (due to an extra-early conference with kids' teacher :-( )
15:15:30watusimotoand I think I was able to move all the code we've been working on into the header
15:16:10watusimotoRenderwahn's idea about how to initialize the static vectors was just the ticket
15:16:29raptoroh yay
15:17:29raptorwhat was the idea again?
15:18:13watusimotowrap a static delaration inside a getter method
15:18:20raptoroh yeah
15:18:22watusimotoso the first get forces initialization
15:18:33watusimotoand the member is kept completely private
15:18:45raptorit's the simple things...
15:18:51watusimotomuch nicer than the typical lazy initialization we did in java land
15:18:55raptorthat are always hardest to figure out
15:19:12watusimotothere are a few other places we could use that in the code, though we don;t rely on lazy init too much
15:19:35watusimotoanyway, a little more cleaning tonight, and we'll do a final test compile
15:19:43raptorok
15:19:51watusimotomostly renaming and clearing out unneeded classes and other consolidations
15:31:29IAmBeardwatusimoto, so for my cleanup, I'm adding exceptions, which will ONLY be used for constructors (since they can't always return a value, but may need validation)
15:32:37IAmBeardwhich i think is how exceptions should be handled considering our other validations in place
15:34:01watusimotook, sounds good. I told you before that I don't mind exceptions for purposes like what you are proposing; i.e. things going wrong that are hard to handle otherwise.
15:38:32IAmBeardyup, i just wanted to make a note of it
15:51:38watusimotogood
15:55:56kodax Quit (Remote host closed the connection)
16:57:41watusimoto Quit (Ping timeout: 276 seconds)
17:28:18Watusimoto has joined
17:39:48Watusimotook, things look like they're working, just committed my changes
17:40:37BFLogBot - Commit 4eea12db96ce | Author: watusim...@bitfighter.org | Log: Lua class registration system basically complete.
17:40:39BFLogBot - Commit 1f1c4284c634 | Author: watusim...@bitfighter.org | Log: Merge
17:41:21raptorok, i test
17:41:46WatusimotoI was able to get things to be pretty clean in the end
17:44:12Renderwahnpffft, testing! you should write perfect code from the start *trollface*
17:44:32raptorcompiled - no extra warnings...
17:46:19raptorand it runs!
17:47:31Watusimotoexcellent
17:47:50Watusimototo test it you'll need a bot that interacts with a test item or resource item or asteroid
17:48:29raptoroh, i used sentinel.bot
17:48:33raptori use orbit now
17:50:08raptorworks
17:50:23raptorhe is orbiting my moving testitem
17:56:25Watusimoto Quit (Ping timeout: 256 seconds)
18:02:27raptorand your new class looks much nicer 'LuaW_Registrar'
20:12:31sam686 has joined
20:12:31ChanServ sets mode +v sam686
21:49:16raptor Quit ()
22:55:14Watusimoto has joined
23:22:59raptor has joined
23:22:59ChanServ sets mode +o raptor
23:30:12Ninjaman has joined
23:30:17Ninjamanhi
23:30:18NinjamanYAY
23:30:22IAmBeardhello
23:30:23Ninjamanpoop
23:30:30IAmBeardi enjoy your excitement
23:30:31Ninjamanlet's play bitfigher
23:30:52IAmBeardI'm actually in the middle of something, but I'm sure you could coax some people on here
23:30:58raptorlittle_apple?
23:31:41IAmBeardNinjaman ^
23:34:37Ninjaman Quit (Ping timeout: 245 seconds)

Index Search ←Prev date Next date→

These logs were automatically created by BFLogBot on irc.freenode.net.