Coder Social home page Coder Social logo

joeyburzynski / swap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chetanbothra/swap

1.0 2.0 0.0 6 KB

Too lazy to setup swap? Forgot to create a swap partition but still need some? This can help you...

License: MIT License

Shell 100.00%

swap's Introduction

Swap

Simple swap setup script for Linux

Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM.

Disclamer: This script may not work on every GNU/Linux distro. Sorry.

Usage

First of all, download the main script:

wget http://git.io/vs4UH -O swap

Then simply run the file with this format:

sh swap {size}

Example (with 4G):

sh swap 4G

The default path for the swap file is /swapfile. If you wish to change this, simple the file location (file must not exist) add it to the command:

sh swap 4G /mynewswapfile

Ansible

Ansible Playbook collection to make things easier and faster

Run Playbook

ansible-playbook -i '0.0.0.0' ansible-swap/server.yml

With the server's IP.

Changes to be made as required

ansible-swap/tasks/main.yml

  1. Change location - location on your server/instance
  2. Change Memory to be allocated

swap's People

Contributors

chetanbothra avatar cretezy avatar

Stargazers

Harsh Panchal avatar

Watchers

James Cloos avatar Joey Burzynski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.