Code Monkey home page Code Monkey logo

rdp's Introduction

Chrome Remote Desktop Setup Script

This repository contains a bash script to automate the installation and configuration of Chrome Remote Desktop on a Linux system. The script also installs the XFCE desktop environment and Firefox browser, and creates a new user.

Features

  • Creates a new user with specified username and password
  • Installs Chrome Remote Desktop
  • Sets up the XFCE desktop environment
  • Configures Chrome Remote Desktop to use XFCE
  • Disables the LightDM service
  • Installs Firefox browser

Prerequisites

  • A Debian-based Linux distribution (e.g., Ubuntu)
  • sudo privileges to run the script

Usage

  1. Clone the Repository

    git clone https://github.com/epic-miner/RDP
    cd RDP
  2. Edit the Script (optional)

    Modify the username and password variables at the top of the install.sh script if needed.

  3. Run the Script

    sudo sh aman.sh
  4. (optional) run scrypt

    sudo sh rdp3.sh

    This script must be run with sudo to perform the necessary system changes.

Script Breakdown

  • Set Default Values

    username="user"
    password="root"
    chrome_remote_desktop_url="https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb"
  • Log Function Logs messages with timestamps for better traceability.

    log() {
        echo "$(date +'%Y-%m-%d %H:%M:%S') - $1"
    }
  • Install Package Function Downloads and installs a package from a given URL.

    install_package() {
        package_url=$1
        log "Downloading $package_url"
        if wget -q --show-progress "$package_url"; then
            log "Installing $(basename $package_url)"
            if sudo dpkg --install $(basename $package_url); then
                log "Fixing broken dependencies"
                sudo apt-get install --fix-broken -y
                rm $(basename $package_url)
            else
                log "Failed to install $(basename $package_url)"
                exit 1
            fi
        else
            log "Failed to download $package_url"
            exit 1
        fi
    }
  • Installation Steps

    • Logs the start of the installation.
    • Creates a new user with the provided username and password.
    • Installs Chrome Remote Desktop.
    • Installs the XFCE desktop environment.
    • Sets up the Chrome Remote Desktop session to use XFCE.
    • Disables the lightdm service.
    • Installs Firefox ESR.

Contributing

Contributions are welcome! Please open an issue or submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

rdp's People

Contributors

epic-miner 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.