this is gonna be really basic so you'll have to work most things out your self, Its would take days to write everything up in full.
You should be burning off more cals than you eat. if you dont know how much your eating then read up and work it out.
dont lift weights untill you know what your doing. Go to a gym for a day or a trial if you can and get some1 to show you. Weight lifting is not something you can just do. If you carry on you could en up with big probs such as muscle imbalences which can destroy your spine.
get 2 diarys and a book. 1 diary for writing down everything you eat, one for writing down all your training and the book if for notes on what you should be doing.
when your on the X-trainer, make sure your working up a sweat. it doesnt matter how long your on it, but how much energy your burning. try going very very fast for 5mins, then slowly for a few mins, and do its 4-5times, and build up your time every day.
you need goals, and each day you need your goals to get harder and harder. if you ran fast for 4mins today and has 2 mins rest, tomorow youlr run fast for5mins.
go to amazon or online book shop and buy a book. look at lots of them to find one you like. try serching for "mens health" fitness, weight loss, health and fitness. it will cost you some money but it may help you a lot.
you want a book on fitness that includes help with diet, not the other way round.