---
summary: "One-click Linux setup for Infinibot"
---

# 🐧 Linux Quickstart

Get Infinibot running on Linux in 5 minutes.

---

## 🚀 One-Click Install

```bash
curl -fsSL https://molt.bot/install.sh | bash
```

**What happens:**
- ✅ Detects your distro (Ubuntu/Debian/Fedora/Arch)
- ✅ Installs Node.js 22+ (via NodeSource)
- ✅ Fixes npm global permissions
- ✅ Installs Infinibot globally
- ✅ Runs the onboarding wizard

---

## 📦 Alternative: Manual Install

### Ubuntu/Debian

```bash
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install -g infinibot@latest
infinibot onboard --install-daemon
```

### Fedora/RHEL

```bash
curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo bash -
sudo dnf install -y nodejs
npm install -g infinibot@latest
infinibot onboard --install-daemon
```

### Arch

```bash
sudo pacman -S nodejs npm
npm install -g infinibot@latest
infinibot onboard --install-daemon
```

---

## 📁 Where Things Live

| What | Location |
|------|----------|
| Config | `~/.infinibot/infinibot.json` |
| Credentials | `~/.infinibot/credentials/` |
| Logs | `~/.infinibot/logs/` |
| Workspace | `~/clawd/` |
| systemd | `~/.config/systemd/user/infinibot-gateway.service` |

---

## ✅ Verify Installation

```bash
infinibot --version
infinibot status
infinibot doctor
infinibot dashboard
```

---

## 🖥️ Gateway Management

```bash
# Manual
infinibot gateway --verbose

# systemd
infinibot gateway start
systemctl --user status infinibot-gateway
journalctl --user -u infinibot-gateway -f

# Enable on boot
systemctl --user enable infinibot-gateway
loginctl enable-linger $USER
```

---

## 🖥️ Headless Server

```bash
# Non-interactive install
curl -fsSL https://molt.bot/install.sh | bash -s -- --no-onboard

# Configure later
infinibot onboard
```

For remote access, set `gateway.bind: "0.0.0.0"` in config.

---

## 🛠️ Troubleshooting

### "infinibot: command not found"

```bash
echo 'export PATH="$(npm prefix -g)/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
```

### "EACCES: permission denied"

```bash
mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
npm install -g infinibot@latest
```

---

## 🐳 Docker Alternative

```bash
docker run -d --name infinibot \
  -v ~/.infinibot:/root/.infinibot \
  -p 18789:18789 \
  infinibot/infinibot:latest
```

---

## 📱 Next Steps

- [Set up WhatsApp](../channels/whatsapp-quickstart.md) (2 min)
- [Set up Telegram](../channels/telegram-quickstart.md) (3 min)
- [Set up Signal](../channels/signal-quickstart.md) (5 min)
