1

I am using an ubuntu 18.04 server through putty on windows 10. I am trying to install PgAdmin4 on it.

I am using this tutorial for that: How to install PgAdmin4 on Ubuntu 18.04 Server mode

When I reach the step Configure PgAdmin4 using config_local.py and run the command:

vim ~/.pgadmin4/lib/python2.7/site-packages/pgadmin4/config_local.py

The terminal shows few blue dots on left side of the screen vertically, each line having one of left side corner and at the bottom right of screen it writes 1,1 All and terminal is halted. Nothing happens.

I am not able to understand what to do. I am a novice to ubuntu.

14
  • 1
    i think this fine, at the bottom right of screen writes 1,1 ALL mean your cursor at 1 line 1 column on all text file. Sep 5, 2018 at 12:36
  • 1
    or try using another text editor and add pgadmin4 configuration you want sir Sep 5, 2018 at 13:14
  • thank you very much @abu-ahmedal-khatiri: though when I try to save file, it raises error: "~/.pgadmin4/lib/python2.7/site-packages/pgadmin4/config_local.py" E212: Can't open file for writing
    – XCeptable
    Sep 5, 2018 at 14:52
  • see on vimtutor how to write and save file using vim sir Sep 5, 2018 at 14:54
  • 1
    did you try with :w <filename> sir? Sep 5, 2018 at 15:31

1 Answer 1

1

When you type

vim ~/.pgadmin4/lib/python2.7/site-packages/pgadmin4/config_local.py

You said The terminal shows few blue dots on left side of the screen vertically, each line having one of left side corner and at the bottom right of screen it writes 1,1 All and terminal is halted.

I think this fine, at the bottom right of screen writes 1,1 ALL mean your cursor at 1 line 1 column on all text file.

When you try to save file, it raises error: "~/.pgadmin4/lib/python2.7/site-packages/pgadmin4/config_local.py" E212: Can't open file for writing. for save file using VIM try with type :w <filename> and exit with :quit.

After it's written and saved. execute your python file with sudo python config_local.py. see below.

enter image description here

And then when you run pgAdmin4.py the command, it raises error python: can't open file '/root/.pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py': [Error 2] No such file or directory. you get it error cause you doesn't know where pgAdmin4 data stored. check it with locate pgadmin4 and you can found it at /usr/local/bin/.. path. after that you can execute pgAdmin4.py see below.

enter image description here

If the output can showed like on your link. Congrats Sir, you can try the next steps on your link.

Hope this helps Sir.

5
  • one issue is that the terminal halted after showing msg to open pgadmin in browser window. How to return back to command prompt ?I tried cltr+D, escap key but no effect.
    – XCeptable
    Sep 6, 2018 at 12:08
  • just use CTRL+C or CTRL+z sir. Sep 6, 2018 at 12:11
  • <kbd>CTRL</kbd>+<kbd>C</kbd> worked !
    – XCeptable
    Sep 6, 2018 at 12:12
  • sorry mistakenly written, see above sir Sep 6, 2018 at 12:13
  • Let us continue this discussion in chat.
    – XCeptable
    Sep 6, 2018 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.