You could consider steroids.
Anyway, you'll get bogged down in too much information ... here's what you need to know.
First ... you can't out train a bad diet. Meat. Plants. Water. End of story, that is always your goal. Sure you won't be able to do it all the time. Sure you'll be out with friends at a pizza place, sure work will buy you bagels but your over arching goal is meat, plants and water. So at that pizza place ask for a salad, no cheese and no dressing. I know that takes the fun out of eating out but only at first. If you are constantly working towards eating really well then the few times you are on a date or at a special dinner won't really matter.
Eat more fruit. Drink more water. No matter what you think, you are not drinking enough water or eating enough fruit. There are plenty of days where I'll eat 20 pieces of fruit. Again, you'll have a hard time doing that at first, but it's just a goal, something to work towards.
Don't eat processed carbs. Processed sugar, rice, wheat, cereals, all that shit is straight bad for you. So don't eat it ever. Again, that's the goal so you might find you switch from white bread to brown bread, from white pasta to brown pasta and then you reduce the portion and increase your intake of meat or fruit.
Training. Depending on your goals you'll train in different ways but for you, as a skinny guy right now you need two things.
1. To be able to lift safely.
2. To build mass.
So, start learning to squat. Start learning to deadlift. In fact, just start doing starting strength. (
http://startingstrength.wikia.com/wiki/FAQ:Introduction) There are no tricks, not tips, no special ways to do a bench press or any of that shit. Ignore pretty much everything but what is outlined in starting strenght for at least a year. Just do that. All of the gains you get happen under the bar and at the table .. not talking to curl bros, not flexing in the mirror, not eating a cookie because you're bulking. Forget all that. yeah 'De Franco's Westside for Skinny bastards' is a better programme, but it's for athletes and you are way off being an athlete and you'll just ruin all the great gains you'll make in the short time (you're newbie gains).
So in summary.
Eat meat, fruit and vegetables and drink water. That's your goal. Start into it and do your best. Don't be put off when you fuck up and eat a hamburger just keep trying.
You're going to go to the gym 3 times a week. you are going to do starting strength (some people will call that 5 x 5). Any dude at the gym who hasn't heard of it or doesn't rate it, or hasn't done it, doesn't know shit about fitness and should be ignored.
Now I could tell you about how the squat and deadlift are the most anabolic of exercises. I could tell you about how squating low (ATG or ass to grass) stimulates a stretch response that will increase your bodies ability to adapt, etc, etc, et fucking c, but you've enough to worry about ... you've gotta hit the gym and eat clean ... which is hard work.
We could all offer you advice and you could evaluate it but what is your evaulation worth? You're not in a possition to judge what's best for you or what you like.
Hard truth....
Meat. Plants. Water.
Gym, 3 times a week, 5 reps of 5 sets, deadlift, squat, row, press (depending on the day).
Finally. Best of luck. Don't be put off by people seeming gruff or almost aggressive with their advice .. training is an area so completely full of shit with idiots who know nothing teaching people who know less than nothing and that leads to failure. Those of us who have succeeded are frustrated and if you're not going to get on the path and stick on the path why are you even here? And why should we waste our time helping.
So what I'm saying is .. we all want you here, we all want you to succeed ... but if you're not hard enough to listen and then do, you're not hard enough to get under the arm small and come out from it big.
And in closing. What matters is consistency ... consistency in terms of diet and training means one thing ... getting back to it. What I mean is, you'll fuck up, you'll go out partying and drink 10 pints and the next day you'll think 'fuck it, I fucked up so fuck it' and you'll help yourself to a hang over meal of pizza. Well that's not how it works. You wake up the next day and you remember the good work you have done ... even if it was one meal that week, you remember it and remember that you did get some benefit from it. You remember that you did a good workout and you're not going to ruin that good work. Every good thing you do is in the bank back there, don't go wasting it. If you fuck up and eat shit or miss a work out, that's okay. Get back on the wagon and work out next time, eat good next time ... well, not next time, THIS time.