Results 1 to 3 of 3

Thread: Basic Bash Script?

  1. #1
    Join Date
    Apr 2008
    Location
    Arizona
    Beans
    398
    Distro
    Ubuntu

    Basic Bash Script?

    I want to be able to run one command or scrip that I can make executable to be able to open a
    X server (Xephyr) and than open my chroot and open a program into that X

    Under Using Xephyr at this tutorial:
    http://wiki.mandriva.com/en/Developm...ide_the_chroot

    There are three commands I have to run
    Outside of Chroot
    Code:
    $ Xephyr -ac -fullscreen :1
    (I added -fullscreen)

    This causes a black screen to open up

    Normally I would then open a separate terminal and do the next two commands
    Code:
    $  export DISPLAY=localhost:1
    $ ./home/phillipguy/Downloads/pcsx2
    and Viola pcsx2 opens up in Xephyr... but I just want a do it all script

    Anyone?

  2. #2
    Join Date
    May 2010
    Beans
    626
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Basic Bash Script?

    The code:

    Code:
    #!/bin/bash
    
    Xephyr -ac -fullscreen :1 &
    sleep 5
    export DISPLAY=localhost:1 &
    /home/phillipguy/Downloads/pcsx2 &
    
    exit 0

  3. #3
    Join Date
    Apr 2008
    Location
    Arizona
    Beans
    398
    Distro
    Ubuntu

    Re: Basic Bash Script?

    Great Try but it's only opening the X

    I'm sorry I left out one command

    To get into chroot
    Code:
    sudo chroot /var/chroot
    now once I'm in chroot is when I run the next two commands export.....

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •