Which one will work perfectly with Ubuntu?.It is for college use.

One is from Samsung, model number is NP-RV509-SO1IN

http://www.samsung.com/in/consumer/p...ail&returnurl=

Another One is from Lenovo. Model number is IdeaPad Z560
59-068618.
http://www.flipkart.com/computers/la...mczbsgya3ephb9

Waiting for replies.