Linux: Difference between revisions
m add Ollama stuff |
|||
| (6 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
[[Fedora]] | [[Fedora]] | ||
[[CentOS | CentOS & Red Hat Enterprise Linux]] | [[CentOS| CentOS & Red Hat Enterprise Linux]] | ||
[[Shell Commands]] | [[Shell Commands]] | ||
| Line 18: | Line 18: | ||
[http://www.virtualbox.org/ Virtual Box] | [http://www.virtualbox.org/ Virtual Box] | ||
[[Linux Sound]] | [[Linux Sound]] | ||
[[Linux + Notes]] | [[Linux Notes|Linux + Notes]] | ||
== SSH == | == SSH == | ||
| Line 50: | Line 48: | ||
[http://kb.mozillazine.org/Determining_plugin_directory_on_Linux Determine Firefox plugin directory on Linux] | [http://kb.mozillazine.org/Determining_plugin_directory_on_Linux Determine Firefox plugin directory on Linux] | ||
== Linux Networking == | |||
[https://developers.redhat.com/blog/2019/05/17/an-introduction-to-linux-virtual-interfaces-tunnels Intro to Linux virtual interface tunnels] | |||
[https://developers.redhat.com/blog/2018/10/22/introduction-to-linux-interfaces-for-virtual-networking Introduction to Linux interfaces for virtual networking] | |||
[http://vger.kernel.org/lpc_net2018_talks/erspan-linux-presentation.pdf ERSPAN on Linux] presentation | |||
== AI on Ubuntu at home == | |||
I have a headless Linux box with 32 CPUs, 64 GB RAM, and 1.8 TB of drive space so I am playing around with AI at home using non-GPU setup as my headless Linux doesn't have GPU. Below are the basic steps I used. | |||
=== Install Ollama === | |||
Download and install Ollama via official install script<pre>curl -fsSL https://ollama.com/install.sh | sh</pre>Pull the 7B coding model (lightweight / fast completion)<pre> | |||
ollama pull qwen2.5-coder:7b | |||
</pre>Pull the 14B coding model (higher precision chat & reasoning)<pre> | |||
ollama pull qwen2.5-coder:14b | |||
</pre>Bind Ollama to your specific LAN IP Address, mine is 192.168.1.x where x is the last octet. This ensures that Ollama only listens on your LAN IP address<pre> | |||
sudo vi /etc/systemd/system/ollama.service.d/override.conf | |||
</pre>Insert line into override.conf where x is the last octet:<pre> | |||
[Service] | |||
Environment="OLLAMA_HOST=192.168.1.x:11434" | |||
</pre>Reload and restart<pre> | |||
sudo systemctl daemon-reload | |||
sudo systemctl restart ollama | |||
</pre> | |||
=== Commands to start, stop, disable ollama === | |||
Starting ollama<pre> | |||
sudo systemctl start ollama | |||
</pre>Stopping ollama<pre> | |||
sudo systemctl stop ollama | |||
</pre>Status of ollama<pre> | |||
sudo systemctl status ollama | |||
</pre>Disable ollama on start up<pre> | |||
sudo systemctl disable ollama | |||
</pre> | |||
== Steam on Linux == | |||
[https://developer.valvesoftware.com/wiki/SteamCMD#Linux Steam Console Client or SteamCMD is a command-line version of the Steam client]. | |||
Start SteamCMD | |||
<pre>cd ~ | |||
steamcmd</pre> | |||
=== Setup 7 Days to Die dedicated server on Linux === | |||
[[My 7 Days to Die notes]] | |||
== Linux Utilities == | == Linux Utilities == | ||
Latest revision as of 12:33, 27 September 2026
Linux
CentOS & Red Hat Enterprise Linux
Linux user & group administration
Linux software management systems
SSH
Xming is the leading X Window Server for Microsoft XP/2008/Windows7. It is a fully featured X Server and is lean, fast, current, simple to install and because it is standalone native Microsoft Windows®, easily made portable (not needing a machine-specific installation).
SELinux
SELinux Project Wiki is the official Security Enhanced Linux (SELinux) project page. Here you will find resources for users, administrators, vendors and developers.
Fedora SELinux Project pages
SELinux on Wikipedia
Linux links
Compiz for desktop effects
Determine Firefox plugin directory on Linux
Linux Networking
Intro to Linux virtual interface tunnels
Introduction to Linux interfaces for virtual networking
ERSPAN on Linux presentation
AI on Ubuntu at home
I have a headless Linux box with 32 CPUs, 64 GB RAM, and 1.8 TB of drive space so I am playing around with AI at home using non-GPU setup as my headless Linux doesn't have GPU. Below are the basic steps I used.
Install Ollama
Download and install Ollama via official install script
curl -fsSL https://ollama.com/install.sh | sh
Pull the 7B coding model (lightweight / fast completion)
ollama pull qwen2.5-coder:7b
Pull the 14B coding model (higher precision chat & reasoning)
ollama pull qwen2.5-coder:14b
Bind Ollama to your specific LAN IP Address, mine is 192.168.1.x where x is the last octet. This ensures that Ollama only listens on your LAN IP address
sudo vi /etc/systemd/system/ollama.service.d/override.conf
Insert line into override.conf where x is the last octet:
[Service] Environment="OLLAMA_HOST=192.168.1.x:11434"
Reload and restart
sudo systemctl daemon-reload sudo systemctl restart ollama
Commands to start, stop, disable ollama
Starting ollama
sudo systemctl start ollama
Stopping ollama
sudo systemctl stop ollama
Status of ollama
sudo systemctl status ollama
Disable ollama on start up
sudo systemctl disable ollama
Steam on Linux
Steam Console Client or SteamCMD is a command-line version of the Steam client.
Start SteamCMD
cd ~ steamcmd
Setup 7 Days to Die dedicated server on Linux
Linux Utilities
Byobu is a GPLv3 open source text-based window manager and terminal multiplexer.