Installing ThinkCode on Linux
This guide provides detailed instructions for installing ThinkCode on various Linux distributions. ThinkCode supports multiple installation methods to accommodate different Linux environments and user preferences.
Prerequisites
Before installing ThinkCode, ensure your system meets the following requirements:
- Operating System: Linux distribution with GLIBC 2.28+ (Ubuntu 20.04+, Fedora 34+, Debian 11+, etc.)
- Processor: Multi-core processor (Intel Core i5 8th generation / AMD Ryzen 5 3000 series or equivalent)
- Memory: 8GB RAM (16GB+ recommended)
- Storage: 2GB available space (SSD recommended)
- Display: 1280 x 720 resolution
- Internet: Connection required for installation, updates, and cloud-based AI features
For a complete list of requirements, see the System Requirements page.
Installation Methods
ThinkCode can be installed on Linux using several methods:
Package Manager Installation
Ubuntu/Debian-based Distributions
Install ThinkCode using APT:
- Add the ThinkCode repository:
- Update package lists and install ThinkCode:
Fedora/RHEL-based Distributions
Install ThinkCode using DNF:
- Add the ThinkCode repository:
- Install ThinkCode:
Arch Linux (AUR)
Install ThinkCode from the Arch User Repository:
or
AppImage
The AppImage format allows you to run ThinkCode without installation:
- Download the ThinkCode AppImage from the official website
- Make the AppImage executable:
- Run the AppImage:
- (Optional) Integrate with your desktop environment:
Snap Package
Install ThinkCode using Snap:
The --classic
flag is required to allow ThinkCode full access to your system.
Flatpak
Install ThinkCode using Flatpak:
- Make sure Flatpak is installed on your system
- Add the Flathub repository if you haven't already:
- Install ThinkCode:
- Run ThinkCode:
Direct Download
You can download and install ThinkCode manually:
-
Visit the ThinkCode download page
-
Download the appropriate package for your distribution (
.deb
for Debian/Ubuntu,.rpm
for Fedora/RHEL) -
Install the package:
For Debian/Ubuntu:
For Fedora/RHEL:
Command Line Installation
For quick installation via command line:
This script will detect your distribution and install ThinkCode using the appropriate method.
Build from Source
Advanced users can build ThinkCode from source:
-
Install build dependencies:
For Debian/Ubuntu:
For Fedora/RHEL:
-
Clone the repository:
- Install dependencies and build:
- Run the application:
First Launch Configuration
When you first launch ThinkCode, you'll need to complete the setup process:
- The setup wizard will guide you through initial configuration
- Sign in with your ThinkCode account or create a new one
- Configure AI features and other settings
- (Optional) Import settings from VS Code if you have it installed
Linux-specific Features
ThinkCode integrates with Linux in several ways:
Desktop Integration
- Application menu entry
- File associations for code files
- Custom URI handler for
thinkcode://
links - MIME type registration
Terminal Integration
- Command-line interface for opening files and folders:
- Remote development over SSH
- Integration with common Linux terminal emulators
Extensions for Linux Development
- Container development with Docker and Podman
- WSL integration for dual-boot systems
- Language servers optimized for Linux
System Configuration
Adding to PATH
ThinkCode should be automatically added to your PATH. If not, add the following to your shell configuration file (.bashrc
, .zshrc
, etc.):
File Associations
To associate file types with ThinkCode:
Custom Icon Themes
ThinkCode supports custom icon themes through the XDG icon theme specification. Place custom icons in:
Performance Optimization
For optimal performance on Linux:
- Enable GPU acceleration when available
- Configure memory limits based on your system
- Use local AI models on systems with limited resources
- Enable file system watching limits:
Updating ThinkCode
ThinkCode can be updated using the same method you used for installation:
-
Package Manager:
-
Snap:
-
Flatpak:
-
AppImage: Download the latest AppImage and replace the old one
Uninstalling ThinkCode
To uninstall ThinkCode:
-
Package Manager:
-
Snap:
-
Flatpak:
-
AppImage: Delete the AppImage file and remove desktop integration:
To completely remove configuration files:
Troubleshooting
Common Issues
Missing Dependencies
If you encounter missing dependency errors:
Display Issues
For graphics-related problems:
- Try launching with software rendering:
- Check your graphics drivers are up to date
- Ensure you have appropriate libraries installed:
Permission Issues
For permission-related errors:
- Check file ownership:
- Verify you have write permissions to the installation directory
Advanced Troubleshooting
For detailed diagnostics:
- Launch ThinkCode with verbose logging:
- Check the log file at
~/.config/ThinkCode/logs
- Run with debug information:
Distribution-specific Notes
Ubuntu
- Works best with the official .deb package
- Wayland support is available but experimental
- For LTS releases older than 20.04, consider using the AppImage
Fedora
- GNOME integration is fully supported
- SELinux policies are included in the package
- Fedora Silverblue users should use Flatpak installation
Arch Linux
- AUR package is maintained by the community
- Rolling release may occasionally have compatibility issues with internal dependencies
- Consider using the AppImage for maximum stability
Next Steps
Now that you've installed ThinkCode on Linux, check out:
- Initial Setup: Configure ThinkCode for optimal performance
- Quick Start Tutorial: Get up and running in minutes
- Linux Keyboard Shortcuts: Learn the Linux-specific keyboard shortcuts