Code Monkey home page Code Monkey logo

shell-server's Introduction

#! Shell Server

https://github.com/hashbang/shell-server

About

This repo represents the basic setup for a #! multi-user shell server.

Files in the /etc path are managed via etckeeper.

Our etckeeper repo can be found here: shell-etc

The default configuration for new users can be found here: dotfiles

Setup

Local Docker

docker run -d hashbang/shell-server

Bare-metal

To set this up on a live server, perform the following:

  1. Adjust partitions to match fstab.sample

    To do this on a VPS (Super hacky but works):

    1. Go to the "Virtual Console" feature in your provider.
    2. Reboot to Grub bootloader screen
    3. Hit on first boot option
    4. Add break=premount to the end of the kernel line
    5. to boot
    6. Copy rootfs files into ram
    mkdir /mnt
    modprobe ext4
    mount /dev/sda1 /mnt
    cp -R /mnt/* /
    umount /dev/sda1
    
    1. Shrink rootfs and create /home partition
    e2fsck -f /dev/sda1
    resize2fs /dev/sda1 20G
    echo "d
    1
    n
    p
    1
    
    +20G
    w
    n
    p
    2
    
    
    " | fdisk /dev/sda1
    
    1. Reboot

    2. Adjust fstab to match: fstab.sample

    3. Reboot

  2. Run setup script

    ssh $INSTANCE_IP
    wget https://raw.githubusercontent.com/hashbang/hashbang/master/shellbox/setup.sh
    bash setup.sh

Building

Docker Image

docker build -t hashbang/shell-server .

Amazon AMI

TODO

shell-server's People

Contributors

lrvick avatar

Watchers

Lauri Peltomäki 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.