Code Monkey home page Code Monkey logo

code-server-freebsd-port's Introduction

platform FreeBSD GitHub release (latest SemVer)

FreeBSD Port for code-server

https://github.com/cdr/code-server

Run VS Code on any machine anywhere and access it in the browser


Submitted to be added to the FreeBSD Ports Tree on 5/25/2021: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256144

www/code-server

Install

Using packages:

pkg install code-server

Or using ports:

cd /usr/ports/www/code-server
make install clean

Run

/usr/local/bin/code-serve

Or run as a service via the rc.d script that gets installed:

service code_server enable  # Enable at start up
service code_server start   # Start service
service code_server stop    # Stop service
service code_server restart # Restart service
service code_server status  # Status of service

NOTE: The file permissions one has when using vscode from a web browser is dependant on the user/group you choose to run this service. It defaults to nobody for security reasons but you will probably want to specify a different user with the appropriate permissions for your use case in /etc/rc.conf like:

code_server_user="myuser"  # default is "nobody"
code_server_group="myuser" # default is "nobody"

Other available variables to use in in /etc/rc.conf when using as a service:

  • code_server_config_file (filepath): Set to /var/code-server/nobody/config.yaml by default. Set to the full filepath of the config file.
  • code_server_user_data_dir (path): Set to /var/code-server/nobody/user-data by default. Set to the directory path to use for user data.
  • code_server_extensions_dir (path): Set to /var/code-server/nobody/extensions by default. Set to the directory path to use for extensions.
  • code_server_service_url (url): Set to https://open-vsx.org/vscode/gallery by default. Set to the service url of an extensions marketplace.
  • code_server_item_url (url): Set to https://open-vsx.org/vscode/item by default. Set to the item url of an extensions marketplace.

Access vscode from browser

http://localhost:8080

IP address, port, and more can be set in config.yaml

See cdr/code-server repo for docs: https://github.com/cdr/code-server

code-server-freebsd-port's People

Contributors

rob4226 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.