I am unable to start gnome-terminal from rc.local , with the following error. ** (gnome-terminal:1304): WARNING **: Command line `dbus-launch --autolaunch=bd53fdd726adb41172f458c100000007 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n Failed to parse arguments: Cannot open display: Failed to parse arguments: Cannot open display: the command inside rc.local is cd /path/to/server gnome-terminal -e 'sudo node startserver.js'
Error starting gnome-terminal from /etc/rc.local ubuntu 12.04
3.5k Views Asked by Sujithra At
1
There are 1 best solutions below
Related Questions in UBUNTU-12.04
- copying file from local machine to Ubuntu 12.04 returning permission denied
- Linux command to retrieve desired lines
- Display every copy of duplicated stream in VLC
- Difference in terminal and PHP curl versions
- rsyslog to resend event from client after abnormal server crash
- Heroku error when trying to launch foreman
- Removing first defined function in bashrc
- find files belonging to a user with size in mb on Ubuntu
- mysql error : not accessible as a command
- contentbox integration with oracle on lucee server
- touch on Monitor with TUIO doesn't work on ubuntu
- md5sum validation for a file
- Tomcat shutsdown at load test
- Unable to use parse from my android device in Ionic App
- How to install newer imagemagick with webp support in Travis CI container?
Related Questions in RC
- How can I make a transfer function for an RC circuit in python
- How to highlight rulerformat
- Vim: last word on user specific settings?
- vi/vim - custom formatting depending on presence of special file or tag inside code
- Read RC File pyspark 2.0.0 from S3 with partitions
- Why isn't chdir happening for this rc.d script?
- rc.common not working OS X
- How to detect when networking initialized in /etc/init.d script?
- Difference between plugins and presets in .babelrc
- Git branch in the prompt
- Ubuntu 10.10 rc.local ignores half the command?
- update-rc.d vs chkconfig
- How do you mark specific text on file load with your vimrc?
- ~/.ssh/rc Auto Login to seperate shell
- Adding symlink to scripts into rc<number>.d folders to start process during system startup
Related Questions in GNOME-TERMINAL
- Unable to rename gnome terminal window after upgrading to Ubuntu 15.04
- Gnome terminal prints broken characters with packet sniffer
- Python3 Curses - Not able to set background color in gnome-terminal
- gnome-terminal - how to get the pass/fail status of the invoked command
- Ranger don't show document preview
- Ruby - Write output to new terminal window
- Clicking an empty space in gnome-terminal selects the whole line
- grabserial stops printing the log?
- How to make python script autocomplete filenames in terminal
- executing a command over ssh, and then running bash
- Get the actual geometry of a gnome-terminal
- How to use GNOME Terminal instead of XTerm here?
- Python's os.system within a for loop: how to wait for a command to finish before re-starting the loop?
- Linux (bash) find all files import first found to the next line of some code and rename and repeat
- There was an error creating the child process for this terminal
Related Questions in STARTUPSCRIPT
- LSBized Init Script stops after aprox. 4minutes
- Network Access As Local System Running Exe From Network Share
- How do I write pid to file
- Azure Startup.cmd unable to bind to localhost
- How do I add a python script to the startup registry?
- Trying to run server on http://localhost:80/ without using SSH in GCP VM
- Powershell Login Script
- working directory of a notebook run by startup script is not its real path, but '/'
- How to create a startup service of django for ubuntu server?
- Problem running a modified startup-script in GCP
- How do I ensure GCP start-script uses the correct service account?
- windows - synchronous startup script custom message
- How do I fix "Error: MONGO_URL must be set in environment" on ubuntu using forever and startup script?
- Loading Multiple JS variables up using RegisterStartupScript
- Error starting gnome-terminal from /etc/rc.local ubuntu 12.04
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There seems to be an error message trying to tell you something:
exited with non-zero exit status 1: Autolaunch error: X11 initialization failed- in other words, rc.local doesn't have an X display to start gnome-terminal from.If you're sure that an X display will be available at the time this executes (and I doubt this - rc.local finishes executing long before an X display comes up), you can try
env DISPLAY=:0 gnome-terminal -e 'sudo node startserver.js'. This may be problematic, as thegnome-terminalwill run as root (which is a Bad Idea for several reasons).If, on the other hand, you're trying to start a terminal in the logged-in user's X display (which seems to be your end goal), you may want to add the command to your autostart scripts. See this for the GUI version, see your
~/.config/autostartand/etc/xdg/autostartfor the results.