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.

  • 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. – abu-ahmed al-khatiri Sep 5 '18 at 12:36
  • 1
    or try using another text editor and add pgadmin4 configuration you want sir – abu-ahmed al-khatiri Sep 5 '18 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 '18 at 14:52
  • see on vimtutor how to write and save file using vim sir – abu-ahmed al-khatiri Sep 5 '18 at 14:54
  • 1
    did you try with :w <filename> sir? – abu-ahmed al-khatiri Sep 5 '18 at 15:31
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.

  • 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 '18 at 12:08
  • just use CTRL+C or CTRL+z sir. – abu-ahmed al-khatiri Sep 6 '18 at 12:11
  • <kbd>CTRL</kbd>+<kbd>C</kbd> worked ! – XCeptable Sep 6 '18 at 12:12
  • sorry mistakenly written, see above sir – abu-ahmed al-khatiri Sep 6 '18 at 12:13
  • Let us continue this discussion in chat. – XCeptable Sep 6 '18 at 12:17

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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