Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to install gitlab on my server but when I run this command:

sudo -u git -H editor config/gitlab.yml

then I get:

sudo: editor: command not found

cn you guys tell me what is the wrong with this command, I am following this instruction for installing GitLab:

https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md

I am not much familiar to Linux and SSH commands, so be gentle with me. Thanks

share|improve this question
1  
Newcomers often use the nano editor. Does sudo -u git -H nano config/gitlab.yml work for you? –  John1024 Apr 23 at 7:47

1 Answer 1

up vote 3 down vote accepted

The editor command doesn't exist by default. In the tutorial you are using they are making editor as an alias for vim earlier.

You can just use vim (advanced) or nano (easy) instead of editor.

share|improve this answer
    
Doesn't it? which editor shows me /usr/bin/editor... That should exist for all users. –  Oli Apr 23 at 7:48
    
@Oli I agree. /usr/bin/editor links to /etc/alternatives/editor, which links to /bin/nano on both of my systems. –  Jos Apr 23 at 7:51
    
@Oli Yeah you're right, my bad. But it is a symlink which he may have accidentally removed (if he just executed all commands in the tutorial). –  Louis Matthijssen Apr 23 at 7:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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