unable to init server could not connect connection refused

unable to init server could not connect connection refused

unable to init server could not connect connection refused

Solved: Can't launch graphical apps from terminal (unable to init server could not connect connection refused)

Problem: when we launch graphical apps from terminal as a root user,This
problem occurs

error

Video Tutorial:

Steps for resolving the error:

 

Step 1:

First open terminal on Desktop ( click Any Where on Desktop and click on open terminal ).

terminal on Desktop

Step 2:

Then type "nano gedit.sh" (Without Quotes) To create new .sh file and open in nano editor.

nano opening

Step 3:

Then paste following lines in Terminal, "xhost +"(without Quotes) now press ctrl + O ( to save content )and ctrl + x ( to exit from nano editor )

add data to .sh

Step 4:

now check file type command "ls" and hit "enter" key, mow give execution permission to file "gedit.sh" for that type following command "sudo chmod +x ./gedit.sh" ( without Quotes ).

ls,chmod

Step 5: 

now goto Control Center, and find Startup Application and open it,

control panel

startup application

Step 6:

now click on add option,

start

  • and give name whatever you want i am giving name "gedit_start"

select app

  •  now in command field click on browse and select the file which we created "gedit.sh" and click on add .

select gedit file

now restart your machine, and try to open graphical apps from terminal as a root, your problem definitely solved

for further query comment below we try to resolve your query.  

2 thoughts on “unable to init server could not connect connection refused

  1. Hello buddy. It was hard to find this site in google.
    It’s not even in top 10. You should focus on high quality backlinks from high authority websites in your
    niche. I know of a very effective free method to get
    strong links and instant traffic. The best thing about
    this method is that you start getting clicks right away.
    For more info search in google for; masitsu’s tricks

Leave a Reply

Your email address will not be published. Required fields are marked *