Monday, February 02, 2015

Safe browsing using browser in VM

We often searching something desperately clicking to all kinds of links that a search engine brings up. And who knows what scripts or worms are going to be executed in our browser. To make this surfing process safer I've decided to run browser executable in a VM (virtual machine) and enjoy only "picture and sound" here on my workstation. VM can be easily restored from a snapshot if something bad happen and it got corrupted by something evil from The Net.
I use my local browser for browsing safe sites (email, banking etc). For other potentially unsafe browsing I use browser in VM.
How I've made the thing?
I use Linux and I've installed KVM on it so it can run VMs.
I've created a VM with like 2GB RAM and 2 core CPU, it should be enough.
Then some little Linux has been installed - Lubuntu. In that Lubuntu I've installed SSH and Firefox. Done. I can run Firefox in X window via ssh with the command:
ssh -X lubuntu firefox 

It works well, but there is no sound. :(

In Linux, sound can be streamed from one machine to another different ways, but the most convenient one is to use PulseAudio because it is already here. However it does not communicate via TCP by default. It has to be configured. Following modules should be included into your local ~/.pulse/default.pa file at host machine to allow PulseAudio listen on TCP port (4713):

load-module module-native-protocol-tcp
load-module module-x11-publish


then restart your pulseaudio by killing it it will restart automatically then

killall pulseaudio

Check if pulseaudio listens on TCP port 4713

xprop -root | grep PULSE_SERVER

PULSE_SERVER(STRING) = "{32615b6567257d71581bac8751245653}unix:/run/user/1000/pulse/native tcp:ustudio.localhost:4713 tcp6:ustudio.localhost:4713"




Copy file ~/.pulse-cookie to the VM to user's home.

scp ~/.pulse-cookie user@lubuntu:~/

Note that starting from version 1.6  pulseaudio stores cookie in
~/.config/pulse/cookie



Check now if you can hear file played in VM

ssh -Y user@lubuntu -R 4713:localhost:4713 "PULSE_SERVER=localhost paplay /usr/share/sounds/alsa/Front_Center.wav"

You should hear it, if everything is OK.
Check same way ALSA. (By default ALSA is streamed to PulseAudio. Flash and other programs may use ALSA not PulseAudio).

ssh -Y user@lubuntu -R 4713:localhost:4713 "PULSE_SERVER=localhost aplay /usr/share/sounds/alsa/Front_Center.wav"

If both work, there should not be problems with running a browser.
Lets test.

ssh -Y user@lubuntu -R 4713:localhost:4713 "PULSE_SERVER=localhost firefox http://www.youtube.com"

Play some video there. You should hear its sound.

Please note - the browser works in VM (as X client). Here, on your host machine, it is only its visualization and sound. Well, also the window where it is visualized (X server) gets your mouse and keyboard and sends it to X client - the actual browser that runs in VM. (Please read about X basics if my explanation is not clear :) )
But it looks seamless! The only difference you see - is addition "Mozilla Firefox (on lubuntu)" in header of the window.

You can create little script MySafeBrowser.sh that starts the VM (if it is not yet started) and starts the browser in it.

virsh start Lubuntu
ssh -Y user@lubuntu -R 4713:localhost:4713 "PULSE_SERVER=localhost firefox" 

Done!
Do not forget to take snapshot of the VM.

77 Comments:

Blogger Harini R said...

thanks for sharing wonderful article with u. its more useful keep sharing.
Software Testing Training in Chennai

5:29 AM  
Blogger Nainika Joseph said...


Great Article I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because it becomes more and more interesting from the starting lines until the end. So Thank you for sharing a COOL Meaningful stuff with us Keep it up..!

SAP training in Chennai

11:39 PM  
Blogger Nainika Joseph said...


All are saying the same thing repeatedly, but in your blog I had a chance to get some useful and unique information, I love your writing style very much, I would like to suggest your blog in my dude circle, so keep on updates.

SAP training in Chennai

12:17 AM  
Blogger Maani kamili said...

A nice article here, i think that people who have grown up with the idea of using computers are showing more responsibility towards writing posts that are thoughtful, do not have grammar mistakes and pertinent to the post..

Digital marketing company in Chennai

5:59 AM  
Blogger Maani kamili said...

This idea is mind blowing. I think everyone should know such information like you have described on this post. Thank you for sharing this explanation.Your final conclusion was good. We are sowing seeds and need to be patiently wait till it blossoms.

Digital marketing company in Chennai

12:15 AM  
Blogger Suseela Susiee said...



Great and useful article. Creating content regularly is very tough. Your points are motivated me to move on.


SEO Company in Chennai

4:22 AM  
Blogger Keerthi said...

Hi there, You have done an incredible job. I’ll definitely digg it and personally recommend to my friends. I’m sure they’ll be benefited from this site..Keep update more excellent posts..

Corporate Training in Chennai

3:39 AM  
Blogger Aashi siva said...


This idea is mind blowing. I think everyone should know such information like you have described on this post. Thank you for sharing this explanation.Your final conclusion was good. We are sowing seeds and need to be patiently wait till it blossoms.

Corporate Training in Chennai

2:31 AM  
Blogger Thanu Abi said...

You did a great job.. Thanks a lot for sharing this useful informative post with us.. Keep on blogging like this informative post with us, to develop my career in the right way.

Branding Services in Chennai

2:02 AM  
Blogger Sathya G said...

the site contains a very great article. the information present in this site will be very useful for us. thank you for sharing the blog with us.
ROI Services in Chennai

2:35 AM  
Blogger Sowmiya said...


Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.


Online Reputation Management

3:15 AM  
Blogger Abiya Carol said...

Wonderful bloggers like yourself who would positively reply encouraged me to be more open and engaging in commenting.So know it's helpful.

Branding Services in Chennai

5:45 AM  
Blogger Sathya G said...

the site contains a very great article. the information present in this site will be very useful for us. thank you for sharing the blog with us.
ROI Services in Chennai

5:48 AM  
Blogger Girija Manikandan said...

Thanks for this blog. provided great information. All the details are explained clearly with the great explanation. Thanks for this wonderful blog. Step by step processes execution are given clearly.Know the details about different thing.
PPC Services Chennai

6:08 AM  
Blogger Sathya G said...

the site contains a very great article. the information present in this site will be very useful for us. thank you for sharing the blog with us.
ROI Services in Chennai

6:12 AM  
Blogger Aasha said...

Hi I read your post very carefully and I think you are right that a well written post should be at least a 100 words and should capture the essence of your blog, book or article.

Email Marketing Chennai

12:30 AM  
Blogger Abiya Carol said...

Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

PPC Services in Chennai

4:01 AM  
Blogger Suseela Susiee said...



What an awesome post, I just read it from start to end. Learned something new after a long time.


SAP SD training in Chennai

7:44 AM  
Blogger Giri Mani 2 said...

Thank you for this brief explanation and ver nice information. well, got a good knowledge. Have a nice idea, this is more helpful to me. This can gives the better performance.
Digital Marketing Company in Chennai

5:21 AM  
Blogger Giri Mani 2 said...

Great... Excellent sharing.. This is very helpful for beginers. Read that provide me more enthusiastic. This helps me get a more knowledge about this topic. Thanks for this.
Digital Marketing Company in Chennai

11:21 PM  
Blogger Sowmiya said...

I come to know many more solutions about this concept it is really good and thanks for providing this valuable information which is really good and awesome.

Best Informatica Training Institute in Chennai

12:31 AM  
Blogger deeksha said...

I come to know many more solutions about this concept it is really good and thanks for providing this valuable information which is really good and awesome.



Informatica Training in Chennai

4:43 AM  
Blogger Sathya G said...

It’s really amazing that we can record what our visitors do on our site. Thanks for sharing this awesome guide. I’m happy that I came across with your site this article is on point,thanks again and have a great day.
Software Testing Training

2:06 AM  
Blogger Sathya G said...

Very Nice Blog. I really enjoyed very much with this article here. Really its a amazing article that I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your updation.
Hadoop Training in chennai

11:34 PM  
Blogger deeksha said...

I think this is interesting articles and Business ethics for new information's, and i like that kind of information.So the i like that post,because all of given information was very excellent.

Best Android Training Institute in Chennai

12:04 AM  
Blogger deeksha said...

i like this latest version which is very much amazing and these features are really lovable and thus i got more information which is very much attractive and beautiful.


Best Informatica Training Institute in Chennai

3:16 AM  
Blogger for IT the said...

I like it your blog. I have read your blog its very attractive and impressive.
corporate training in chennai corporate training companies in chennai corporate training companies in india corporate training companies in india corporate training in chennai corporate training companies in chennai corporate training in chennai | Angular 2 Corporate Training Angular 2 Corporate Training

8:16 PM  
Blogger Shalini said...

Such a great articles in my carrier, It's wonderful commands like easiest understand words of knowledge in information's.

digital marketing company in chennai
seo company in chennai

3:28 AM  
Blogger Pricilla Prasanth said...

wow amazing post.The key points you mentioned here related to maintenance of car is really awesome.Checking all fluid levels,changing oil and of course the regular service of the car which is necessary to maintain our vehicle.Thank you for the information.

home spa services in mumbai

7:02 AM  
Blogger Padhma said...

I am expecting more interesting topics from you. And this was nice content and definitely it will be useful for many people.
Back to original

2:21 AM  
Blogger Jeffy said...

Thank you for sharing such a nice and interesting blog with us. Hope it might be much useful for us. keep on updating...!!
seo company in india
digital marketing company in india
seo company in chennai
digital marketing company in chennai

7:53 PM  
Blogger Shalini said...

Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.

seo company in india

9:05 PM  
Blogger Shalini said...

Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.

seo company in india

9:11 PM  
Blogger Vignesh PV said...

This post is really nice and informative. The explanation given is really comprehensive and informative..
android Training in Chennai

4:41 AM  
Blogger vinu priya said...

This blog is having the general information. Got a creative work and this is very different one.We have to develop our creativity mind.This blog helps for this. Thank you for this blog. This is very interesting and useful.
Android app development company in Chennai

1:48 AM  
Blogger dhivya priya said...

Finding the time and actual effort to create a superb article like this is great thing. I’ll learn many new stuff right here! Good luck for the next post buddy..
Isoft Innovation
Isoft Innovations Facebook

3:48 AM  
Blogger Akshaysri said...

Great post! I am see the great contents and step by step read really nice information.I am gather this concepts and more information. It's helpful for me my friend. Also great blog here with all of the valuable information you have.
Germany Education Consultants in Chennai

10:51 PM  
Blogger sathya said...

I’m not sure where you’re getting your information, but good topic. I need to spend some time learning more or understanding more. Thanks for fantastic info I was looking for this information for my mission.

Informatica Training in Chennai

1:13 AM  
Blogger Evangeline Mitul said...

There are lots of information about latest technology and how to get trained in them, like this have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies. By the way you are running a great blog. Thanks for sharing this.

Best Laser Clinic In Chennai

Best Implant Clinic In Chennai

2:53 AM  
Blogger Thamizharasi J said...


Great site for these post and i am seeing the most of contents have useful for my Carrier.Thanks to such a useful information.Any information are commands like to share him.

Fresher Jobs in Mumbai
Fresher Jobs in Pune
Fresher Jobs in Noida
Fresher Jobs in Hyderabad

3:54 AM  
Blogger tessa tessa said...

Truely a very good article on how to handle the future technology. After reading your post,thanks for taking the time to discuss this, I feel happy about and I love learning more about this topic.keep sharing your information regularly for my future reference

Digital Marketing Company in India|SEO Company in India

11:25 PM  
Blogger tessa tessa said...

I read this content really awesome.You provided another one great article.I hope this information may change my business carrier.I can remember these things whenever taking the decision.

Digital Marketing Company in India|SEO Company in India

11:26 PM  
Blogger sathya said...

Superb explanation & it's too clear to understand the concept as well, keep sharing admin with some updated information with right examples.Keep update more posts.

Hadoop Training in Chennai

Base SAS Training in Chennai

11:36 PM  
Blogger Evangeline Mitul said...

This is a great post. I like this topic.This site has lots of advantage. It helps me in many ways.Thanks for posting this again.

Best Dental Clinic In Vellore

Best Dental Clinic In OMR

5:05 AM  
Blogger Alvina sarah said...

Usually I do not read post on blogs, but I would like to say that this write-up very forced me to try and do it! Your writing style has been surprised me. Thanks, very nice article.
Financial Planner Melbourne
Financial Planning Melbourne
Financial Planners Melbourne

3:01 AM  
Blogger for IT the said...

I have read your blog its very attractive and impressive. I like it your blog.


SEO Services in India SEO Company in India SEO Company in India SEO Services in India

SEO Company in India SEO Services in India

12:06 PM  
Blogger Philips Huges said...



That is very interesting; you are a very skilled blogger. I have shared your website in my social networks..!

Payday loans in Alabama
Title loans in South Carolina

4:36 AM  
Blogger Smith said...

Very informative article. I liked it.
corporate training in chennai corporate training in chennai corporate training companies in india corporate training companies in india corporate training companies in chennai corporate training companies in chennai Angular 2 Corporate Training Angular 2 Corporate Training

10:48 PM  
Blogger Lunameadow said...


This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.

Oracle Training in Chennai

11:47 PM  
Blogger Philips Huges said...


Its very useful to me. Wonderful blog.. Thanks for sharing informative Post.

Installment loans
Payday loans
Title loans

11:18 AM  
Blogger john stany said...


I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

Android App Development Company

11:56 PM  
Blogger john stany said...

These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
iOS App Development Company
iOS App Development Company

12:16 AM  
Blogger louis philip said...

Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
Fitness SMS
Fitness Text
Salon SMS
Salon Text
Investor Relation SMS
Investor Relation Text
Mobile Marketing Services
mobile marketing companies
Sms API

3:37 AM  
Blogger Sharon Sandy said...

great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
web design Company
web development Company
web design Company in chennai
web development Company in chennai
web design Company in India
web development Company in India

11:12 PM  
Blogger Philips Huges said...

Its a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way.Thank you so much

Personal Installment Loans
Title Car loan
Cash Advance Loan

10:59 AM  
Blogger sandhosh said...

Interesting blog about safe browsing in browser using VM which attracted me more.Spend a worthful time.keep updating more.
SEO Company in India

11:51 PM  
Blogger Isabella Olivia said...

This information is impressive; I am inspired with your post writing style & how continuously you describe this topic.


Pawn Shop

Pawn Loans

Pawn Shops

Pawn Loan

Pawn Shop near me

10:37 AM  
Blogger sandhosh said...

Good blog post which provided a interesting information.keep updating...
SEO Company in India
SEO Services in India
SEO Companies in India
SEO Company India
SEO Services India

10:55 PM  
Blogger Mahalya sree said...

A nice article here, i think that people who have grown up with the idea of using computers are showing more responsibility towards writing posts that are thoughtful, do not have grammar mistakes and pertinent to the post..
Office Interior Designers in Coimbatore
Office Interior Designers in Bangalore
Office Interior Designers in Hyderabad

7:43 AM  
Blogger saravanan said...

I am inspired with your post writing style & how continuously you describe this topic.
Web Design Company in Chennai

11:16 PM  
Blogger lakshmi deepa said...

Thank you for your sharing information..waiting for more information.. very happy to visit your post..
SAP Training in Chennai
SAP ABAP Training in Chennai
SAP FICO Training in Chennai

12:29 AM  
Blogger bava mahe said...

Very Nice Blog. I really enjoyed very much with this article here. Really its a amazing article that I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your updation.

Digital Marketing Company in Chennai

11:15 PM  
Blogger merin mary said...

There are lots of information about latest technology and how to get trained in them, like this have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies. By the way you are running a great blog. Thanks for sharing this.
Java Training in Chennai

4:37 AM  
Blogger sindhu said...

Thank you for sharing such a nice and interesting blog with us. But in your blog, I had a chance to get some useful and unique information. I would like to suggest your blog.
Web Development Company in India

5:28 AM  
Blogger Prudvika Ravi said...

Due to high usage of Internet we often click and got redirected to the unauthorized pages. Even though we use adblock as an extension, yet the browsing safely is not a guarantee. This post provided tips on how to browse safely through VM. Moreover i would prefer to check the website URL whether it is authenticated or not.

SEO Company in Chennai

11:56 PM  
Blogger kristina young said...

Thanks for spending your valuable time in delivering the most valuable content here.I loved the way you write and suggest my friends too for getting aware of your blogs.

Pawn Shops in Montgomery

Pawn Shops in Birmingham

Pawn Shops in Mobile

8:41 AM  
Blogger dazzling said...

very informative blog and very useful for readers. making us to learn more from your blog.
java training in chennai
dotnet training in chennai
cloudcomputing training in chennai
digital marketing training in chennai

5:08 AM  
Blogger Nishabablu said...

i really like this blog.And i got more information's from this blog.thanks for sharing!!!! Best Interior Designers in Chennai

6:23 AM  
Blogger Nishabablu said...

This comment has been removed by the author.

6:32 AM  
Blogger Dharshini Priya said...

I do believe all of the concepts you’ve introduced in your post. They’re very convincing and will definitely work. Nonetheless, the posts are too short for novices. May you please extend them a bit from subsequent time? Thank you for the post.
Digital Marketing Company in Chennai
SEO Company in Chennai

4:24 AM  
Blogger PREETHA said...

Truly a very good article on how to handle the future technology. After reading your post,thanks for taking the time to discuss this, I feel happy about and I love learning more about this topic
Digital Marketing Company in Chennai
Digital Marketing Company in India

12:15 AM  
Blogger geetha lakshmi said...

It's a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way.Thank you so much.

Selenium Training in Chennai

2:33 AM  
Blogger joselin mary said...

There are lots of information about latest technology and how to get trained in them, like this have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies. By the way you are running a great blog. Thanks for sharing this.
Seoindiarank
Web development Company in Chennai

3:39 AM  
Blogger swathi said...

Really i like this blog and i got lot of information's from your blog.And thanks for sharing!!!!
Logistics Software provider in Chennai
ERP software companies
Oil and gas ERP

4:01 AM  
Blogger jabashree said...

I have really enjoyed reading your blog..very interesting and unique informative post..your writing is good..keep on updates.Thanks for sharing for this information.

SAP Training Chennai
SAP ABAP Training in Chennai
SAP FICO Training in Chennai
SAP MM Training in Chennai
SAP HR Training in Chennai
SAP SD Training in Chennai
BEST SAP BASIS Training in Chennai

11:27 PM  
Blogger Sita said...

This is extremely helpful info!! Very good work. Everything is very interesting to learn and easy to understood.
Allergy Medicines
Ayurvedic Medicine For Immunity

1:02 AM  
Blogger simmensromario said...

There are lots of information about latest technology and how to get trained in them, like this have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies. By the way you are running a great blog. Thanks for sharing this.
peridotsystems
Hadoop Training in Chennai

4:22 AM  

Post a Comment

<< Home