Complete step-by-step guide for Linux users (Ubuntu, Fedora, Arch, and other distributions).
- Ubuntu / Debian - Most popular (uses
apt) - Fedora / RHEL / CentOS - RedHat-based (uses
dnf) - Arch Linux - Rolling release (uses
pacman) - openSUSE - (uses
zypper) - Other distros - Adapt Ubuntu instructions
- 10GB free disk space
sudoaccess (for installing packages)- Internet connection
- Terminal/command line experience
Check what you have:
uname -a # Shows Linux version
git --version # Check if Git installed
node --version # Check if Node installed
cargo --version # Check if Rust installedsudo apt update
sudo apt upgrade -yOption A: Using NodeSource Repository (RECOMMENDED)
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt install -y nodejsOr for newer version:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejsOption B: Using nvm (if you need multiple Node versions)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
# or source ~/.zshrc if using zsh
nvm install 18
# or nvm install 20Verify:
node --version
npm --versioncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shWhen asked, press Enter for default option (1).
Then load Rust in current session:
source "$HOME/.cargo/env"Verify:
rustc --version
cargo --versionThese are needed for Tauri to work on Linux:
sudo apt install -y \
libgtk-3-dev \
libssl-dev \
libayatana-appindicator3-dev \
libwebkit2gtk-4.0-dev \
libappindicator3-1 \
webkit2gtk-driver \
librsvg2-dev \
patchelfsudo apt install -y gitChoose a location:
# Option A: Projects folder (recommended)
cd ~
mkdir -p Projects
cd Projects
# Option B: Desktop
cd ~/Desktop
# Option C: Documents
cd ~/DocumentsThen clone:
git clone https://github.com/yourusername/ncode.git
cd ncodenpm installcargo install tauri-clinpm run tauri devFirst time: Takes 3-5 minutes to compile
Later times: 20-30 seconds
🎉 You're done! NCode window should open!
sudo dnf update -ycurl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
sudo dnf install -y nodejsOr for Node 20:
curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo bash -
sudo dnf install -y nodejsVerify:
node --version
npm --versioncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"Verify:
rustc --version
cargo --versionsudo dnf install -y \
gtk3-devel \
openssl-devel \
libayatana-appindicator-devel \
webkit2gtk3-devel \
libappindicator-gtk3 \
librsvg2-devel \
patchelfsudo dnf install -y gitSame as Ubuntu steps 6-9:
cd ~
mkdir -p Projects
cd Projects
git clone https://github.com/yourusername/ncode.git
cd ncode
npm install
cargo install tauri-cli
npm run tauri dev🎉 Done! NCode is running!
sudo pacman -Syusudo pacman -S nodejs npmVerify:
node --version
npm --versioncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"Verify:
rustc --version
cargo --versionsudo pacman -S \
gtk3 \
openssl \
webkit2gtk \
libappindicator-gtk3 \
librsvg \
patchelfsudo pacman -S gitcd ~
mkdir -p Projects
cd Projects
git clone https://github.com/yourusername/ncode.git
cd ncode
npm install
cargo install tauri-cli
npm run tauri dev🎉 Done!
Runs AI models on your Linux machine. Best for privacy, no costs.
curl -fsSL https://ollama.ai/install.sh | shOr using package manager:
Ubuntu/Debian:
sudo apt install -y ollamaFedora:
sudo dnf install -y ollamaArch:
sudo pacman -S ollama# Start manually:
ollama serve
# Or enable as a service:
sudo systemctl enable ollama
sudo systemctl start ollamaChoose one (opens in Terminal):
# Lightweight and fast (1GB) - GOOD FOR BEGINNERS
ollama pull deepseek-coder:1.3b
# Better quality (4GB)
ollama pull codellama:7b-code-q4_0
# Even better (13GB)
ollama pull codellama:13b-code-q4_0
# Very lightweight (387MB)
ollama pull phi:2.7b- In NCode, press: Ctrl+, (comma)
- Click "AI / LLM" tab
- Select "Ollama (Local)"
- Click "Fetch"
- Select your model
- Start chatting!
Uses cloud services. Costs money, often better quality.
OpenAI:
- Go to https://platform.openai.com/api-keys
- Create new key
- Copy it (starts with
sk-)
Anthropic (Claude):
- Go to https://console.anthropic.com/
- Get API key
- Copy it
Groq (Fast, partly free):
- Go to https://console.groq.com/
- Sign up
- Get API key
- Copy it
- Open Settings (Ctrl+,)
- Click "AI / LLM" tab
- Select "API Key (Cloud)"
- Pick your provider
- Paste your API key
- Enter model name (e.g.,
gpt-4o,claude-3-sonnet) - Click "Add Key"
- Select it
- Start chatting!
-
Open a Project
- In NCode, File → Open Folder
- Select a folder with code
- Files appear on left
-
Quick Open Files
- Press Ctrl+P
- Type filename
- Press Enter
-
Use Terminal in NCode
- Press Ctrl+` (backtick)
- Terminal appears at bottom
- Run Linux commands!
-
Search Code
- Press Ctrl+H
- Search in all files
- Super fast!
-
Chat with AI
- Click AI button (top right)
- Ask programming questions
- Get instant help!
| Shortcut | What it does |
|---|---|
| Ctrl+P | Quick open files (fastest!) |
| Ctrl+H | Find & replace |
| Ctrl+F | Find in file |
| Ctrl+T | Jump to symbol/function |
| Ctrl+/ | Comment/uncomment |
| Ctrl+S | Save file |
| Ctrl+Z | Undo |
| Ctrl+Y | Redo |
| Ctrl+X | Cut line |
| Ctrl+C | Copy |
| Ctrl+V | Paste |
| Ctrl+, | Open Settings |
| Ctrl+J | Toggle Terminal |
| Ctrl+B | Toggle File Explorer |
| Ctrl+Shift+X | Extensions |
| Ctrl+` | Focus Terminal |
| Ctrl+K Ctrl+C | Line comment |
| Ctrl+K Ctrl+U | Uncomment |
Share NCode with others:
npm run tauri buildCreates:
- AppImage - Single file, runs anywhere
- deb file - For Debian/Ubuntu users
- rpm file - For Fedora/RHEL users
Find them in: target/release/
Share the AppImage - works on almost any Linux!
Solution:
# Close and reopen Terminal
# If still doesn't work:
source ~/.bashrc
# or if using zsh:
source ~/.zshrcSolution:
source "$HOME/.cargo/env"
# Then try cargo command againSolution:
For Ubuntu/Debian:
sudo apt install libgtk-3-devFor Fedora:
sudo dnf install gtk3-develFor Arch:
sudo pacman -S gtk3First build: 5-10 minutes (normal!)
Later builds: 20-30 seconds
Use npm run tauri dev for development, not tauri build
Check if it's running:
curl http://localhost:11434/api/tagsShould return JSON with your models.
If not running, start it:
ollama serveMake sure you have display:
echo $DISPLAY
# Should show something like :0 or :1If empty, you might be in a terminal-only environment.
Some packages need extra tools:
# Ubuntu/Debian:
sudo apt install build-essential
# Fedora:
sudo dnf groupinstall "Development Tools"
# Arch:
sudo pacman -S base-devel# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Reload shell
source ~/.bashrc
# Install Node versions you want
nvm install 18
nvm install 20
# Switch versions:
nvm use 18 # Use Node 18
nvm use 20 # Use Node 20# Add to ~/.profile or ~/.bashrc:
export CARGO_BUILD_JOBS=$(nproc)
# Or set Node to use more cores:
npm config set package-lock falseCreate /etc/systemd/system/ncode.service:
[Unit]
Description=NCode Editor
After=network.target
[Service]
Type=simple
User=yourusername
WorkingDirectory=/home/yourusername/Projects/ncode
ExecStart=/usr/bin/npm run tauri dev
Restart=on-failure
[Install]
WantedBy=multi-user.targetThen:
sudo systemctl daemon-reload
sudo systemctl enable ncode
sudo systemctl start ncode✅ Do this:
- Keep terminal open while running
npm run tauri dev - Learn keyboard shortcuts (Ctrl+P is your friend!)
- Make sure Ollama is running before using AI
- Check
uname -aif you're unsure what distro - Use
sudo apt/dnf/pacmanfor system-level installs
❌ Don't do this:
- Close terminal while NCode is running
- Edit huge files (>100MB) without SSD
- Try to run GUI apps in SSH (no display)
- Blame the distro if a command doesn't exist
- Use
sudofor npm installs (causes permission issues)
If you get stuck:
- Check this guide - Most issues are here
- Read README.md - Full documentation
- Check QUICK_START.md - Beginner guide
- Open GitHub Issue - Report bugs
- Open GitHub Discussion - Ask questions
- Stack Overflow - Search Tauri/Rust errors
- Arch Wiki - Excellent Linux reference
- Your distro's forum - Community help
You now have NCode installed and running on Linux!
Next steps:
- Open a project folder
- Try Ctrl+P to open files
- Set up AI in Settings
- Start coding with AI assistance!
Welcome to NCode on Linux!
| Task | Ubuntu/Debian | Fedora/RHEL | Arch |
|---|---|---|---|
| Update | apt update && apt upgrade |
dnf update |
pacman -Syu |
| Install Package | apt install -y <pkg> |
dnf install -y <pkg> |
pacman -S <pkg> |
| Search Package | apt search <pkg> |
dnf search <pkg> |
pacman -Ss <pkg> |
| Remove Package | apt remove <pkg> |
dnf remove <pkg> |
pacman -R <pkg> |
| Clean Cache | apt clean |
dnf clean all |
pacman -Sc |