7

I want to have GitLab under domain git.blue-world.pl. I use Omnibus package downloads for GitLab CE for Debian 7.

  1. ssh -l login blue-world.pl
  2. cd domains/git.blue-world.pl/public_html
  3. wget https://downloads-packages.s3.amazonaws.com/debian-7.7/gitlab_7.6.1-omnibus.5.3.0.ci.1-1_amd64.deb
  4. but when I type sudo apt-get install openssh-server I receive that there is no command sudo.

What should I do?

slhck
  • 235,242

2 Answers2

7

sudo is not installed on Debian by default. You have to install it.

You don't need sudo to install software, but you need to become root instead:

su -

After that you can:

apt-get install openssh-server
janos
  • 3,505
5

I tried this method and it worked for me.

  1. Log in then switch to superuser using su

  2. Run the following command to install sudo

    apt-get install sudo

  3. For Debian 9 run adduser <username> sudo to add user to group sudo. Replace with your account username If you dont know, just run whoami to get your account username For Debian 10 or 11 run /sbin/adduser username sudo

Logout and login with the same user then try running

sudo echo 'Hello, world!'

The terminal should return Hello, world!

Toto
  • 19,304