Ubuntu Server Setup: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (10 intermediate revisions by the same user not shown) | |||
| Line 22: | Line 22: | ||
How to clean up(purge) uninstalled packages | How to clean up(purge) uninstalled packages | ||
dpkg --purge $(dpkg --list | grep ^rc | awk '{ print $2; }') | dpkg --purge $(dpkg --list | grep ^rc | awk '{ print $2; }') | ||
Find best apt repos | |||
pip install apt-select | |||
apt-select -t 3 | |||
<h4>Pin Kernel</h4> | <h4>Pin Kernel</h4> | ||
| Line 72: | Line 77: | ||
alias sudo='sudo env PATH=$PATH XBMC_HOME="/opt/plexhometheater/share/XBMC" ' | alias sudo='sudo env PATH=$PATH XBMC_HOME="/opt/plexhometheater/share/XBMC" ' | ||
== Artificial Intelligence A.I.== | |||
Ubuntu 24.04 LTS headless server<br> | |||
NVIDIA Tesla P4<br> | |||
Issues with an Ubuntu 24.04 server VM "downtraining" PCI-E 3.0 Gen3 to PCI-E 3.0 Gen1 after the driver loads. | |||
<pre> | |||
systemctl disable snapd.apparmor.service | |||
</pre> | |||
<pre> | |||
echo "options nvidia NVreg_EnablePCIeGen3=3" > /etc/modprobe.d/nvidia-pci-fix.conf | |||
echo "blacklist nouveau" > /etc/modprobe.d/blacklist-nouveau.conf | |||
update-initramfs -u | |||
</pre> | |||
<pre> | |||
apt-get install nvidia-utils-580-server nvidia-headless-580-server nvtop -y | |||
</pre> | |||
<pre> | |||
reboot | |||
</pre> | |||
* Status Script | |||
<pre> | |||
cat /usr/local/sbin/nvidia-status.sh | |||
#!/bin/bash | |||
nvidia-smi -q | grep -A4 "PCIe Gener" | |||
lspci -vvv -s $(lspci | grep -i 'NVIDIA' | awk '{print $1}') | |||
</pre> | |||
<pre> | |||
nvidia-status.sh | grep -A5 LnkCap | |||
</pre> | |||
[[Category:Linux]] | [[Category:Linux]] | ||
Latest revision as of 06:10, 23 January 2026
This page defines all the services that I run on my home server. This is mainly a recovery guide in the case that it poops itself.
- APACHE
- HDDTEMP
- DNSMASQ
- SQUID
- MBMON
- IETD
- SMBD
- MEDIATOMB
- PULSEAUDIO
- MT-DAAPD <-- iTunes 10 incompatible
PROFTPD<-- replaced by using sftp- INTERMAPPER
- MPD
- TFTPD
- NTPD
- SYSLOGD
- SNMPD
- IPLIST
How to clean up(purge) uninstalled packages
dpkg --purge $(dpkg --list | grep ^rc | awk '{ print $2; }')
Find best apt repos
pip install apt-select
apt-select -t 3
Pin Kernel
This is allow apt-get upgrades without upgrading kernel versions
- /etc/apt/preferences
Package: linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-generic Pin: version 3.2.0.29.31 Pin-Priority: 1001
- apt-cache policy linux-generic
How to set default kernel using GRUB2
#grep menuentry /boot/grub/grub.cfg
menuentry 'Ubuntu, with Linux 2.6.38-12-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.38-12-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.38-11-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.38-11-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.38-8-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.38-8-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
- If the following command outputs a submenu, then you have to prepend "Previous Linux versions>" ahead of your kernel name
#grep submenu /boot/grub/grub.cfg
submenu "Previous Linux versions" {
- /etc/default/grub
GRUB_DEFAULT="Previous Linux versions>Ubuntu, with Linux 2.6.38-11-generic-pae"
if you don't set the Previous Linux versions, it doesn't go through the menu to find it..
# update-grub
Network Performance fix
# echo 'net.core.wmem_max=12582912' >> /etc/sysctl.conf # echo 'net.core.rmem_max=12582912' >> /etc/sysctl.conf # sysctl -p
- PathTest download links
http://www.appneta.com/resources/pathtest-files/Windows_32-bit.zip
http://www.appneta.com/resources/pathtest-files/Linux_64-bit.zip
http://www.appneta.com/resources/pathtest-files/Linux_32-bit.zip
Speed testing
wget https://www.dropbox.com/s/afsvduxtyi5emth/bench.sh -O - -o /dev/null|bash
Network Performance Test
http://netalyzr.icsi.berkeley.edu/
Bash aliases
alias apt-get='apt-get -o Acquire::ForceIPv4=true' alias dmesg='dmesg -T' alias wget='wget -4' alias curl='curl -4' alias sudo='sudo env PATH=$PATH XBMC_HOME="/opt/plexhometheater/share/XBMC" '
Artificial Intelligence A.I.
Ubuntu 24.04 LTS headless server
NVIDIA Tesla P4
Issues with an Ubuntu 24.04 server VM "downtraining" PCI-E 3.0 Gen3 to PCI-E 3.0 Gen1 after the driver loads.
systemctl disable snapd.apparmor.service
echo "options nvidia NVreg_EnablePCIeGen3=3" > /etc/modprobe.d/nvidia-pci-fix.conf echo "blacklist nouveau" > /etc/modprobe.d/blacklist-nouveau.conf update-initramfs -u
apt-get install nvidia-utils-580-server nvidia-headless-580-server nvtop -y
reboot
- Status Script
cat /usr/local/sbin/nvidia-status.sh
#!/bin/bash
nvidia-smi -q | grep -A4 "PCIe Gener"
lspci -vvv -s $(lspci | grep -i 'NVIDIA' | awk '{print $1}')
nvidia-status.sh | grep -A5 LnkCap