forked from github-starred/komodo
* Add iproute2 to debian-debs * feat: Add manual network interface configuration for multi-NIC support Complete implementation of manual interface configuration: - Add internet_interface config option - Implement manual gateway routing - Add NET_ADMIN capability requirement - Clean up codebase changes * fix: Update internet interface handling for multi-NIC support * refactor: Enhance error messages and logging in networking module * refactor: Simplify interface argument handling and improve logging in network configuration and cleanup * refactor(network): simplify startup integration and improve error handling - Move config access and error handling into network::configure_internet_gateway() - Simplify startup.rs to single function call without parameters - Remove redundant check_network_privileges() function - Improve error handling by checking actual command output instead of pre-validation - Better separation of concerns between startup and network modules Addresses feedback from PR discussion: https://github.com/moghtech/komodo/pull/719#discussion_r2261542921 * fix(config): update default internet interface setting Addresses feedback from PR discussion: https://github.com/moghtech/komodo/pull/719#discussion_r2261552279 * fix(config): remove custom default for internet interface in CoreConfig * move mod.rs -> network.rs Addresses feedback from PR discussion: https://github.com/moghtech/komodo/pull/719#discussion_r2261558332
15 lines
351 B
Bash
15 lines
351 B
Bash
#!/bin/bash
|
|
|
|
## Core deps installer
|
|
|
|
apt-get update
|
|
apt-get install -y git curl ca-certificates iproute2
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Starship prompt
|
|
curl -sS https://starship.rs/install.sh | sh -s -- --yes --bin-dir /usr/local/bin
|
|
echo 'export STARSHIP_CONFIG=/starship.toml' >> /root/.bashrc
|
|
echo 'eval "$(starship init bash)"' >> /root/.bashrc
|
|
|