• How To compile ollama from source to use unsupported AMD GPU with rocm in Ubuntu Debian


    compiling ollama from source by using a docker container with a prebuilt rocm 6.1 dev environment: rocm/dev-ubuntu-22.04:6.1-complete Install these packages first apt install cmake git apt install software-properties-common add-apt-repository ppa:longsleep/golang-backports apt install golang-go Clone the repo git clone https://github.com/ollama/ollama /rtt/o........
  • Docker how to find real container child process ID


    If you do a top on your Docker host, you may find a process for apache2 is PID 1234 but that is not the same as ID as in your container due to separation of processes and memory from the main host. Here is how you find the real PID within the docker container. On your host do this where 1234 is your PID. cat /proc/1234/status|grep NSpid NSpid: 1234 125172 ........
  • How To Deploy Your Own Mastodon Server in Docker


    This is based off the LinuxServer Mastodon Image and Ibelieve this simplifies the bare basics of get things going because Mastodon is fairly complex but well worth the effort. WhyMastodon? For me, it's about having social freedom, when you use big tech there are MANYnegative things that happen. 1.) They tap and mine all of your data for profit. 2.) You have 0 privacy and 0 benefits (no possible profi........
  • VMWare ESXi/VSphere Disable Balloon Segfault in Services Solution


    After looking at several deployments of VMWare, we had one deployment where the company enabled balloon mode which is essentially a way to overcommit memory the hostnode(s) don't have. Let's say you have put your database into memory or use a cached service in Apache or haproxy/nginx. VMWare will start taking some portions of these and at some point it corrupts things and the application running will either crash, malfunction or segfault. Another factor is that OOMwill be........
  • Apache Linux Debian Ubuntu Container how to manually restart without killing


    If you are in an environment where you cannot use systemctl or otherwise kill apache, just do a manual graceful restart which does the same thing essentially without killing the process which may impact the service or container (eg. in Docker). apache2ctl graceful........
  • Docker enable UTF8 in Container to stop seeing gibberish ? characters


    A lot of special characters and non-English will display as gibberish if you don't enable UTF-8 locale which is not done by default. An example of things you may see withoutUTF-8 ??~N?~[? You can do it this way when connecting to the console. docker exec -it -e LANG=C.UTF-8 If you are already on the console you can do this: export LANG=C.UTF-8........
  • Debian 8 How To Use Apt Update Archive sources.list


    We know it is deprecated but there are still systems that are running Debian 8, or at least applications that used old packages such as PHP5 that you may need an environment to stage testing/updates for it. Here is a working sources.list for Debian 8 Jessie: deb http://archive.debian.org/debian/ jessie main contrib non-free deb http://archive.debian.org/debian-security jessie/updates main contrib non-free If you are in Docker there i........
  • Asterisk RTP/audio not working in either direction in Docker NAT with a NAT client


    Normally the first thing you would think is that you should use the host network in Docker but this loses the isolation, in that case I'd rather use LXC and a public IP or a full VM with public IP to avoid these issues. Before you Start I assume you have also ruled out any firewall issues on either end, that RTP or SIP signaling is not being blocked by either side. 1.) Key Settings in Docker/Ports Before starting, I assume you have forwarded........
  • How to install sysbox alternative runtime in Docker for Debian Ubuntu Linux


    nestybox is an alternative runc instead of the default containerd which is more hardened, efficient and secure. It even allows you to do a lot of things you normally couldn't without having privileged mode which is great for development and many other functions. However, the only drawback is that you must not have any docker containers already, if so you have to back them up / delete them before proceeding. Step 1.) Get the latest .deb / package:........
  • pyinstaller 10210 INFO: TclTkInfo: initializing cached Tcl/Tk info... 10608 WARNING: tkinter installation is broken. It will be excluded from the application solution Python Wine


    I doubt many people are doing this, but if you want an all Linux dev environment for Windows apps that you have made in Python, then you're probably using Wine, Python and maybe pyinstaller. The below error happened with pyinstaller and it has a lot to do with how Wine identifies paths/drives vs where you execute python.exe from Long-story short solution Never execute python commands from /root because that maps to Wine's default Z:, so any operations performed in /r........
  • Docker how to run GUI applications


    Yes, even though Docker has no devices, we can still fool it well enough by passing through our X server info as a bind mount and setting our DISPLAY environment variable. Step 1.) Add Permission Grant permission to docker to use the xhost/xserver xhost +local:docker non-network local connections being added to access control list If you didn't do the above you will get an error like this when trying to launch a G........
  • Getting started with AI (Artificial Intelligence) in Linux / Ubuntu using by deploying LLM (Language Learing Models) using Ollama LLMA


    In this quick tutorial we will deploy various AI models and compare the differences. We will be using smaller models so that most users should be able to follow this guide as long as they have at least 16G of memory and no other applications using much memory. In this tutorial we recommend that you use Docker to deploy ollama.........
  • Docker Container Onboot Policy - How to make sure a container is always running


    Generally most containers are by default set not to start automatically. Ther eare 3 settings for the "RestartPolicy" of containers: no: Do not automatically restart the container (default). always: Always restart the container regardless of the exit status. unless-stopped: Always restart the container unless it is explicitly stopped. on-failure: Restart the container........
  • pptp / pptpd not working in DD-WRT iptables / router


    Although it is well-known that pptp is not secure and is subject to many forms of attacks, the reality is that a lot of legacy and embedded devices use pptp. I argue that if it is being used for routing or remote access or over an already secure connection (eg. another VPN like ikev2) then this is still acceptable. Or in a LANor in a public environment where no private data is exchanged. However, if the nature of the data is extremely sensitive, you should do whatever........
  • How to kill a docker swarm


    Assign way more replicas than you have of memory on all nodes and watch the Swarm crash which can easily reproduce in a small VMfor testing. root@Deb11Docker01:~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAM........
  • docker swarm silly issues


    The error below can be caused by a gateway that is unpingable: docker swarm join --token SWMTKN-1-1kogg8da68gtb1j7ezaddowyy9s0an5s9tue758o20k18liskw-5h3f61hrrmv3u6agshvbtcklf 172.16.1.80:2377 Error response from daemon: manager stopped: can't initialize raft node: rpc error: code = Unknown desc = could not connect to prospective new cluster member using its advertised address: rpc error: code = DeadlineExceeded desc = context deadline exceeded........
  • docker error not supported as upperdir failed to start daemon: error initializing graphdriver: driver not supported


    Nov 15 17:00:49 rttbox kernel: overlayfs: filesystem on '/var/lib/docker/overlay2/check-overlayfs-support450709549/upper' not supported as upperdir Nov 15 17:00:49 rttbox dockerd[93755]: failed to start daemon: error initializing graphdriver: driver not supported The above error is often/normally caused because you are trying to run docker out of an unsuitable directory/filesystem. For example if you try to place docker's data inside an existing overl........
  • Docker Swarm vs Kubernetes Comparison Guide


    A lot of companies are unsure which solution to choose and many may not be aware of Docker Swarm as an alternative to Kubernetes. One thing that many Sysadmins find is that Docker Swarm is simply easier, quicker to setup and maintain by far than Kubernetes.........
  • Docker dockerd swarm high CPU usage cause solution


    If you have swarm services and dockerd is creating a high load even with the containers just being idle, the easiest solution is to upgrade to a newer docker version. For example an identical config of 3 nodes, with Redis 5 with 30 replicas produces a load of about 1.45 in Debian 10 with Docker18.09.1 If I create the same setup on Debian 11, with Docker 20.10.5+dfsg1 then the CPU usage is low. One other difference I wondered is the kernel. In my test setup........
  • Docker Minimum Requirements/How Efficient is Docker? How Much Memory Does Dockerd Use?


    We used a simple Debian 10 VM and showed the memory before starting docker and with no docker containers being started. The goal is to show much much memory dockerd actually uses. Before docker was started The VMwas using 58M of RAM. After docker was started it was using 99MB of RAM. How much RAM does docker use? It's not scientific but fair to say dockerd itself uses about 41MB of RAM (99-58).........
  • How To Setup Python3 in Ubuntu Docker Image for AI Deep Learning


    The issue is that Docker images are stripped down, so many tools and even python3 is missing, so you'll have to build or update the actual image yourself. I assume you have started an image with something like this and that you have the Nvidia Toolkit installed (assuming you are using GPUs). If you're not using nvidia just remove --runtime=nvidia --gpus all. docker run -it --runtime=nvidia --gpus all ubuntu bash These works for most images li........
  • How to Configure NVIDIA GPUs with Docker on Ubuntu: A Comprehensive Guide for AI Deep Learning CUDA Solution


    Welcome to our in-depth guide on configuring NVIDIA GPUs with Docker on Ubuntu. This post is tailored for developers, data scientists, and IT professionals who are looking to leverage the power of NVIDIA's GPU acceleration within Docker containers. Whether you're working on machine lea........
  • Docker cannot work on other overlayfs filesystems such as ecryptfs won't start overlayfs: filesystem on '/home/docker/overlay2/check-overlayfs-support130645871/upper' not supported as upperdir


    This does not seem to be officially documented but makes sense that an overlay on an overlay does not work and is considered an unsupported filesystem as is even NTFS . Some admins/organizations try to use ecyptfs as a simple solution to encrypt the contents of Docker. Instead, you could probably........
  • docker / kubernetes breaks Proxmox QEMU KVM Bridge VMs


    Docker adds iptables rules that break a lot of things including MASQUERADE or anything that needs the FORWARD table. If NAT is not working after Docker installation, it is probably because it set the iptables FORWARD policy to DROP. This may also make you think that your br0 or bridge is not working, but it's likely just due to what we'll mention later on below, that, Docker probably set your FORWARD chain to default DROP all packets, so nothing on your bridge ever makes it out........
  • How To Change Storage Location in Docker.io


    It sounds intuitive that you may just move the /var/lib/docker dir to another location and symlink it back but it won't work and you'll get an error. How to move Docker Storage the Correct Way This assumes that you want to use /mnt/raid as the new location. 1.) Stop Docker systemctl stop docker 2.) Move /var/lib/docker mv /var/lib/docker /mnt/raid/ 3.) Edit the Docker daemon file Specify the path you want........
  • GlusterFS HowTo Tutorial For Distributed Storage in Docker, Kubernetes, LXC, KVM, Proxmox


    This can be used on almost anything, since Gluster is a userspace tool, based on FUSE. This means that all Gluster appears as to any application is just a directory. Applications don't need specific support for Gluster, so long as you can tell the application to use a certain directory for storage. One application can be for redundant and scaled storage, including for within Docker and Kubernetes, LXC, Proxmox, OpenStack, etc or just your image/web/video files or even da........
  • Docker Tutorial HowTo Install Docker, Use and Create Docker Container Images Clustering Swarm Mode Monitoring Service Hosting Provider


    The Best Docker Tutorial for Beginners We quickly explain the basic Docker concepts and show you how to do the most common tasks from starting your first container, to making custom images, a Docker Swarm Cluster Tutorial, docker compose and Docker buildfiles.........
  • How To Get Started on Ubuntu with gpt-2 OpenAI Text Prediction


    apt install software-properties-common add-apt-repository ppa:deadsnakes/ppa apt update apt install python3-pip apt install python3.7 curl gnupg python3.7-dev git ln -s /usr/bin/python3.7 /usr/bin/python3 pip3 install numpy keras_preprocessing curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel........
  • Debian Mint Ubuntu compiling xmr-stak


    sudo apt-get install libcurl4-openssl-dev git build-essential autotools-dev autoconf libcurl3 sudo apt-get install libcurl4-gnutls-dev git clone https://github.com/wolf9466/cpuminer-multi sudo apt-get install cmake libpthread-* libmicrohttpd-dev libssl-dev libhwloc-dev git clone https://github.com/fireice-uk/xmr-stak-cpu.git make install cd bin chmod +x xmr-stak-cpu ./xmr-stak -O xmr........
  • Latest Articles

  • How To Force Flash an AMD Instinct GPU To Another Model Using Debian Ubuntu Mint Linux
  • How To compile ollama from source to use unsupported AMD GPU with rocm in Ubuntu Debian
  • QEMU KVM Virtio GPU Windows Cannot Select 1080P
  • Linux Gnome Desktop Ubuntu Mint Debian Gets Slower After Weeks
  • Firefox How to Save Full Page As Screenshot/PDF
  • Nvidia Datacenter Driver Tesla Slow nvidia-smi response and high utilization with 0 usage
  • ffmpeg how to normalize / increase the volume of your audio
  • kdenlive audio blips pops cracks artifacts solution fix
  • haproxy / nginx certbot SSL issues
  • nginx how to see the real IP when behind a CDN
  • Docker how to find real container child process ID
  • Alibaba Aliyun how to reset password solution 'Setup does not meet the requirements, please resetting'
  • RTL88X Series 80Mhz hostapd mode for Linux Debian Kali
  • How To Deploy Your Own Mastodon Server in Docker
  • ffmpeg burning subtitles in non-English errors [Parsed_subtitles_0 @ 0x561d3a0b3b80] Glyph 0x6709 not found, selecting one more font for (Sans, 700, 0)
  • rsyslog in container config
  • Interesting Whisper AI CPU vs GPU Test
  • How to install pytorch with cuda capability for AI acceleration with Nvidia Tesla etc.. GPUs
  • How to Spider the web archive.org to recover your old website/webpage
  • Debian 10 /etc/apt/sources.list