Giter Site home page Giter Site logo

ubuntu-scripts's Introduction

๐Ÿ“œ ubuntu-scripts readme

A few simple scripts to setup a basic dev environment on Ubuntu.

status - stable

Tested on Ubuntu 18.04, 22.04 LTS

License: MIT

Donate

features

Installs the following:

  • docker and docker-compose
  • git and git lfs
  • git aliases and credential caching
  • graphviz
  • network tools like: curl, ifconfig
  • npm, yarn
  • nvm, node 8 (latest)
  • Visual Code

Extras can also be installed:

  • ftp server to easily transfer files (SCP port 22 - needs ssh login to be setup)
  • xrdp (for remote desktop)
  • chrome, chrome driver
  • useful user scripts

note: probably NOT suitable for a production box!

usage

The 'clever' way:

sudo apt install curl

curl -o- https://raw.githubusercontent.com/mrseanryan/ubuntu-scripts/master/install.sh | bash

note: if you also want docker installed, instead use install-with-docker.sh

OR if that fails:

sudo apt-get update

sudo apt install git

git clone https://github.com/mrseanryan/ubuntu-scripts.git

cd ubuntu-scripts

./go.sh

note: if you also want docker installed, instead use go.sh --docker

extras

To install XRDP to allow Remote Desktop from Windows:

cd ubuntu-scripts
./extra-install-xrdp.sh

setting up ssh login (needed for ftp over scp)

./extra-install-ssh-server.sh

sudo ./extra-configure-ssh-server.sh (only run this once!)

  • then setup client side, and test from the client:

https://help.ubuntu.com/community/SSH/OpenSSH/Configuring https://help.ubuntu.com/community/SSH/OpenSSH/Keys

tips about ssh

  • test login:

ssh -v user@hostname

  • to use a hostname for a VM: for VM hosted on Windows, edit Windows hosts file to map IP to host

  • this line or similar may need to be disabled in /etc/ssh/sshd_config

Subsystem sftp /usr/lib/openssh/sftp-server

  • client side can specify identity file, if more than one key on client:

ssh user@host -i path-to-rsa

setting up ftp (scp)

./extra-install-ftp-server-NOT-secure.sh

extra-install-ftp-secure-the-ftp-server.sh

Anonymous and plain ftp are disabled, since they are not secure.

FTP over SCP (using ssh) is enabled for local users.

This requires setting up login via ssh (previous section).

Unless you add user name to /etc/vsftpd.chroot_list (not recommended)

references about ssh, ftp

https://help.ubuntu.com/community/SSH/OpenSSH/Configuring http://xmodulo.com/secure-ftp-service-vsftpd-linux.html https://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14-04-vsftpd/ https://www.linode.com/community/questions/485/ssh-service-is-failing-to-start

Visual Code - remote development

With ssh set up, it is possible to use Visual Code remotely:

https://code.visualstudio.com/docs/remote/remote-overview

known issues

Visual Code is not installed

The Visual Code install script involves some prompts which fail to show when installed via curl.

To fix, run the script:

cd ubuntu-scripts
./install-visual-code.sh

docker-compose version is hard-coded in script

The scripts will install the latest docker but not the latest docker-compose.

You may need to edit the version of docker-compose in this script, and then run it again:

install-docker-compose.sh

authors

Original work by Sean Ryan - mr.sean.ryan(at gmail.com)

licence = MIT

This project is licensed under the MIT License - see the LICENSE file for details

ubuntu-scripts's People

Contributors

mrseanryan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ubuntu-scripts's Issues

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.