Downloading and using shell scripts

Having posted a bunch of installation and other shell scripts over at my Gist repo, I wanted to be sure I explained how to use them. So here’s a video covering that.

The details

Very simply, to use shell scripts like the one in the video, you just download the script, adjust the permissions so it can be executed, then execute it (run it).

Making this a step easier than in the video, you can right-click the ‘view raw‘ link at the bottom of this gist snippet, then select ‘Copy link address‘:

That will copy a link to the file’s raw content, to your system’s clipboard.

To the terminal

You can then open a terminal on your system (Ctrl Alt T on Ubuntu, Meta T on Elementary OS, see here for Mac OSX).

Once in your terminal, type wget, then paste the link in so it looks something like so:

wget https://gist.github.com/Ugotsta/44dec487cd832f381743/raw/e9af9b76312f408257ea602a7a6afe4aa1b10cb5/install_gedit_color_schemes.sh

If you don’t already have wget installed on your system, no worries. Just enter this:

sudo apt-get install wget

Or on Mac OSX, just use Curl instead:

curl https://gist.github.com/Ugotsta/44dec487cd832f381743/raw/e9af9b76312f408257ea602a7a6afe4aa1b10cb5/install_gedit_color_schemes.sh

Pressing enter will begin the process of downloading the file. It should just take a second to complete and you’ll then have a install_gedit_color_schemes.sh file on your system.

Make it executable

Now, you’ll just need to chmod the downloaded file like so:

chmod +x install_gedit_color_schemes.sh

That will give it the permissions necessary to execute it.

Execute it

Once done, you should then be able to execute the file like so:

./install_gedit_color_schemes.sh

Hope that helps, cheers! 🙂

Advertisements
Downloading and using shell scripts

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s