Showing posts with label mozilla. Show all posts
Showing posts with label mozilla. Show all posts

Sunday, October 30, 2016

Installing Rust On Ubuntu 16.04 and 14.04

Installing Rust On Ubuntu 16.04 and 14.04


Rust Programming Logo

Rust, also known as Rust-Lang, is a new programming language which aims safety, speed and concurrency... It's designed to create highly concurrent and secure Applications/Systems by having more a number of compile-time safety checks that produce no runtime overhead, while eliminating all data races.... According to documentation, Rust also aims to achieve ‘zero-cost abstractions’ even though some of these abstractions feel like those of a high-level language.

Here.. We are going to see how to install and getting start with rust on Ubuntu Linux 16.04 & 14.04

Step 1: Update Source(Package) List

Open terminal and run the following commands to ensure that package source list is upto date and also install curl...

For Ubuntu 16.04

sudo apt update && sudo apt -y install curl

For Ubuntu 14.04

sudo apt-get update && sudo apt-get -y install curl

Step 2: Install Rust

Now run the following command which download and runs a script that will install rust on your Linux box..

wget -O - https://static.rust-lang.org/rustup.sh | sh

Or If you have curl installed..

curl -sSf https://static.rust-lang.org/rustup.sh | sh

Rust packages are available in three different release channels namely stable, beta and nightly... The above command will install current stable version of rust on your system..

If you want to install beta version(A preview of the upcoming stable release, intended for testing) of rust, run the following command..

wget -O - https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta

Or

curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta

If you want to enjoy features that are not available in stable and beta channels, install rust from nightly release channel.. (Be aware, Features which are available in nightly channel are unstable may change anytime before they get into beta channel)

wget -O - https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly

Or

curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly

Step 3: Verify The Installation

You can verify the successful installation of rust in your System by running rustc -V . You will get output similar to output shown below..

shivaraj@shivaraj-A14RM0E:~$ rustc -V rustc 1.12.1 (d4f39402a 2016-10-19)

Get start with rust..

If you see output similar to above.. that means your installation was successful.. So now here i am going to show how to write a hello world program in rust and run it..

Create file named main.rs, open it with your favorite text-editor, then copy and paste the following code in that file and save it...

fn main() { println!("Hello, World"); }

Now compile it with rustc main.rs, you will get executable file named main .... execute it by running ./main .. You will see.. "Hello, World" text on your screen..

shivaraj@shivaraj-A14RM0E:~$ ./main Hello, World shivaraj@shivaraj-A14RM0E:~$

Here, You Can Learn Rust Programming..


Here is the video for above tutorial...



Happy Coding !!

Thursday, February 25, 2016

Can you spread the word? Privacy Awerness Video By Mozilla - Episode 1

mozilla


Can you spread the word? Privacy Awerness Video By Mozilla - Episode 1

mozilla Hello,

I wanted to share a new video created by Mozilla that's already been viewed more than 350,000 times(on mozilla website ) since it released .

The video is designed for people who are new to the privacy discussion and helps explain why we should all care about our right to privacy. The more people we can reach, the greater our power to create change. Can you share it with your friends and family?


This is the first video in a multi-part series about encryption - you can read more about that below.
More soon --
------------------------------

Hello,
We can move more people from simply consuming the Web to becoming its active citizens, but we need your help.
People like you and I know how fundamental privacy is to the open Web. There are many more who share our values and would join this movement. That's why we made something to spotlight the importance of online privacy. We're creating videos for you to watch and then share with friends, family, and colleagues. The videos are designed to be an introduction to the issues we care about - a way for each of us to start important conversations.

This is where you come in: will you watch this first video and then share it? It's a great tool to start a conversation about privacy with people you know.
This new video series starts simple: it explores why privacy is so important in our everyday lives. In follow up videos we'll send over the next few weeks, we'll talk about encryption, and tell the story of how encryption can help enable and protect privacy.  

Why do this now? We expect there are a number of significant political battles on surveillance and encryption coming down the pipe. We're going to need to ask people like you and your friends to take a stand. Before we do this, we want to provide a solid grounding on why encryption matters.  

Will you watch the video now and help spread the word?

P.S. This is a new campaign strategy for us and we will learn a lot as the weeks go on. We'd love to hear your feedback - after watching the video, you can reply to this email and let us know what you think. Or send an email to askjoin@mozilla.org.

Thursday, February 11, 2016

Updates Make Us All Stronger


mozilla

Updates Make Us All Stronger

You have the power to make the Internet safer.


mozilla

     Updating to the latest security software, browser, and operating system provides an important defence against viruses, malware, and other online threats.

     You could drive around with old, burned-out brake lights on your car, but it makes driving more dangerous than it should be. And if we all did that, it would get really dangerous, fast!

Letting your systems get out of date can encourage malicious actors online, which makes everyone vulnerable in the end.

     Mozilla cares about your privacy and security everywhere, not just on Firefox, because the safer the Internet is, the easier it is to create and keep it open. So please take a minute to update your software. The Web will thank you.
Read more @ Mozilla