Add to devcontainer.json
:
{
"features": {
"github-cli": "latest",
"sshd": "latest"
}
}
-
Sudo:
apt install sudo
-
GitHub CLI: see https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt
-
OpenSSH server:
sudo apt install openssh-server && service ssh start
-
Sudo:
pacman -S sudo
-
GitHub CLI: see https://github.com/cli/cli/blob/trunk/docs/install_linux.md#arch-linux
-
SSH user group:
sudo groupadd ssh
- Sudo
dnf --disablerepo '*' --enablerepo=extras swap -y centos-linux-repos centos-stream-repos
dnf distro-sync
dnf install sudo
-
GitHub CLI: see https://github.com/cli/cli/blob/trunk/docs/install_linux.md#fedora-centos-red-hat-enterprise-linux-dnf
-
SSH user group:
sudo groupadd ssh
-
GitHub CLI: https://github.com/cli/cli/blob/trunk/docs/install_linux.md#fedora-centos-red-hat-enterprise-linux-dnf
-
OpenSSH server &
ssh
user group
sudo dnf install openssh-server
sudo systemctl enable sshd.service
sudo groupadd ssh
sudo usermod -a -G ssh_keys,sshd,ssh root
-
Sudo
apt-get install sudo
-
GitHub CLI:
pt-get install curl
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt-get update
sudo apt-get install gh
- OpenSSH server &
ssh
user group
sudo apt-get install openssh-server
sudo groupadd ssh
sudo groupadd sshd
sudo usermod -a -G ssh,sshd root
- GitHub CLI:
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh
ssh
user group
sudo groupadd ssh
sudo usermod -a -G ssh root
-
Sudo:
zypper in sudo
-
GitHub CLI: https://github.com/cli/cli/blob/trunk/docs/install_linux.md#opensusesuse-linux-zypper
-
ssh
user group:
sudo groupadd ssh
sudo groupadd sshd
sudo usermod -a -G ssh,sshd root
-
Sudo:
dnf install sudo
-
GitHub CLI: https://github.com/cli/cli/blob/trunk/docs/install_linux.md#fedora-centos-red-hat-enterprise-linux-dnf
-
OpenSSH server &
ssh
user group
sudo dnf install openssh-server
sudo systemctl enable sshd.service
sudo groupadd ssh
sudo usermod -a -G ssh_keys,sshd,ssh root