Questions tagged [alpine-linux]

Alpine Linux is a distribution for small, secure systems, based on busybox and musl

48 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
3k views

Why is crond failing to run a non-root crontab on alpine linux?

I am having a nasty time running a non-root crontab file on Alpine Linux. I've been through two other cron related posts and I don't have an answer: https://askubuntu.com/questions/23009/why-crontab-...
2
votes
1answer
134 views

Missing c++ headers under alpine clang

I'm trying to build a small alpine-based docker container to build c++ app using clang++. Dockerfile looks like this: FROM alpine:3.10 RUN apk add --no-cache clang But when I'm trying to compile a ...
2
votes
1answer
57 views

How to prevent apk from overriding config files

So I've stumbled upon issue after issue every time I upgrade using apk upgrade that apk keeps on adding default config files without my consent, is there any way to have apk either never override/...
2
votes
0answers
358 views

Alpine Linux Hangs During Boot at: “ successfully initialized wpa_supplicant”

I installed Alpine Linux on Intel Compute Stick with 32 Bit Atom Processor. After installation I followed the procedure laid out here for connecting to internet via wlan0 port: Connecting to a ...
2
votes
1answer
218 views

Search for Emacs when using Alpine Linux

I am trying to test some software on Alpine Linux. I need to make some configuration changes so I need Emacs. emacs is the name of the package per Alpine Linux | Emacs. apk add emacs is failing due to ...
2
votes
1answer
985 views

init script for alpine not working

I am trying to write an init script for gitea in alpine. The first code I tried was #!/sbin/openrc-run command=/usr/bin/gitea command_args="web" pidfile=/var/run/git.pid name="Gitea Daemon" ...
2
votes
0answers
457 views

tlp stops working after suspend and resume

I use tlp for power management on my Asus UX305FA, and it improves battery time from ~7h to about ~11h. However, apparently it stops working after I close and open lid, which causes acpi to perform ...
2
votes
0answers
951 views

Docker with Alpine Linux with Ioncube Loader and PHP 5.6 / 7

I tried two different Docker images alpine:edge with PHP7.0.10 (ionCube Loader Beta8) and alpine:3.4 with PHP 5.6.25 (ionCube 5.1.2, ioncube_loader_lin_5.6.so). I figured so far that PHP7 needs to be ...
2
votes
2answers
837 views

How to determine apk package name from search results

On Alpine Linux, given the results of an apk search, how do I determine the package name to give to apk add? For example, suppose I forgot the how to spell "lighttpd", or I forgot exactly what the ...
1
vote
0answers
66 views

Cron jobs not running on Kubernetes + Alpine linux

I am trying to run a cron job on Alpine Linux docker image which is then pushed in Kubernetes container. The Cron job is that I want the container to restart itself after every 15 mins. So my command ...
1
vote
0answers
31 views

python3 not installed from /etc/apk/world

I have created my own lbu for a customized USB bootable installation. The apkovl file contains the apk cache. Everything works as expected. All packages, but python3, from /etc/apk/world are ...
1
vote
0answers
72 views

Installing Java 6 on Alpine

I need to install Java 6 (preferably OpenJDK vs Oracle) in Alpine docker (latest) and I can't find an Alpine repository containing it. Any ideas?
1
vote
0answers
50 views

Alpine Linux apk continues to install despite pre-install failure

The documentation for the Alpine package says the following of the pre-install script: Note the exit 0 at the end. If the script exits with failure (if the user already exist), the package will not ...
1
vote
1answer
45 views

Trouble creating Alpine package

I'm trying to create an .apk file. I read a number of tutorials about it, and tried to follow them as best as I could, I have APKBUILD file, I have the sample-version.tar.gz, have the checksum. But ...
1
vote
1answer
56 views

~ in $PATH variable ignores root folder

I'm using Alpine Linux in a container. I have ENV PATH="~/.local/bin:$PATH" \ in my Dockerfile When logging into the shell I can successfully ls ~/.local/bin which is the same as ls /root/.local/bin, ...
1
vote
1answer
120 views

Compile clang-tidy under Alpine Linux

I'm trying to make a Docker image for a CI pipeline, that needs to contain clang-tidy among other tools. The problem is that I can't find any package containing clang-tidy on the Alpine repos, which ...
1
vote
0answers
269 views

Cannot mix incompatible Qt library (version 0x50c03) with this library (version 0x50c00)

I use alpine-php fpm docker container for developing and deploying a php application. I want to use wkhtmltopdf for generating pdfs. I installed by using apk add wkhtmltopdf But when I run it I ...
1
vote
0answers
232 views

alpine linux sys mode install on raspberry pi

I'm working with the armhf release of alpinelinux from https://www.alpinelinux.org/downloads/ on a raspberry pi 3b. I've installed a desktop extension card from https://www.newark.com/element14/pi-...
1
vote
2answers
559 views

How to install AppArmor on alpine

I have a container with alpine image (docker:dind) and I want to install ApparMor inside it to see how it works before I put it on the host. I found ApparMor package in alpine repostiroy but I don'...
1
vote
0answers
253 views

Alpine/OpenRC networking fails to start (boot toofast?)

I am using alpine, my primary distro for servers is Arch with NetworkManager or the built-in "netctl". I installed Alpine onto a server. It boots up OK, but the networking never comes up on its own. ...
1
vote
0answers
86 views

Why my newly created user is not inheriting $PATH variable

I added a new user dev on my Alpine based image. After switching to the new user I see env variables are different in case of both root and dev user. Specially $PATH variable is different. But I think ...
1
vote
0answers
735 views

Creating a service in Alpine Linux to run Java application

I would like to deploy a spring boot application into a docker container. I had created the base image using Alpine Linux. My old configuration runs a service on Red Hat under this path /etc/systemd/...
1
vote
1answer
71 views

Is it possible to alternate between from addresses on alpine?

I added a few from addresses in Customized headers in Alpine's configuration, that allows me to edit the From field when composing email. Now I'm just writing them myself and I wonder whether there ...
1
vote
0answers
416 views

How to use Chinese/English keyboard in Alpine Linux

I recently replaced the US keyboard on my Thinkpad X200, with one that is a mixed English / Chinese keyboard (An example image of it can be seen here). Currently it is functioning as an impeccable ...
1
vote
1answer
8k views

ERROR: unsatisfiable constraints: tor (missing)

I'm trying to add alpine package tor and getting a following error: root@linode:~/# docker run -it alpine /bin/sh / # apk update fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX....
1
vote
1answer
58 views

sg: not found - Alpine Linux

I am trying to execute a command with a specific user group as described in the linked question (How to run a process with a specific group?) on Alpine Linux, but the system says "not found" ~/work $ ...
0
votes
0answers
5 views

Metasploit error on Alpine

When I trying to run ./msfconsole I got this error: Traceback (most recent call last): 9: from ./msfconsole:48:in `<main>' 8: from ./msfconsole:48:in `require' 7: from /...
0
votes
0answers
20 views

Fish shell error

When I type command in fish shell, after command it returns: Could not send own process 401, 'sed' in job 3, 'commandline | sed 's|\s\+|\x1e|g'' from group 400 to group 400 setpgid: unknown error (...
0
votes
1answer
102 views

-bash: ifconfig: command not found when using `su - redbox -c 'ifconfig'`

I am logged in as root user and need to execute a single command from redbox user without switching. For this, I am using following command: # su - redbox -c 'CMD'. When I try to execute "ifconfig" (...
0
votes
0answers
597 views

How to install Java 8 on Alpine Linux?

When I look at package lists they suggest that all sorts of Java 8 packages exist for Alpine, but when I try to install them I always get: apk add openjdk8 ERROR: unsatisfiable constraints: ...
0
votes
0answers
98 views

How to install Alpine Linux on disk on a VPS?

I successfully mounted an ISO image of Alpine Linux on my Hetzner VPS. I conveniently run setup-interface to get internet access, and setup-sshd to configure my ssh access. All running smoothly ! ...
0
votes
0answers
20 views

Alpine package for specific processor

I have an embedded project where I use an alpine based docker image to build binaries for micro controllers. These micro controllers have different architectures as well as processors. E.g. armhf ...
0
votes
0answers
13 views

Identifying native package architecture post installation

I'm working on a project trying to identify components installed on a linux distribution (for instance Alpine) using built in package managers. bash-5.0# apk list usl-1.1.22-r3 x86_64 {musl} (MIT) ...
0
votes
0answers
103 views

How to list all the dependencies inside an apk virtual package name?

deps added to a virtual package: apk add --no-cache --virtual .build-deps gcc make libc-dev How can I list them? apk list gives garbage. apk list .build-deps WARNING: Ignoring APKINDEX.00740ba1....
0
votes
0answers
49 views

prepare aarch64 alpine image on x86-64 linux

My goal is to run a simple script on my linux x86-64 to create an pre configured alpine image for aarch64 (rpi3b+). I managed to do it quite successfully for a raspbian, using system-nspawn and qemu-...
0
votes
1answer
356 views

does “Ignoring APKINDEX” mean the image does not install apk search command tool?

I am trying to use this docker image big-data-europe/docker-spark, based on "Alpine Linux v3.8" when I try to search sbt apk search sbt I got WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such ...
0
votes
1answer
350 views

Alpine Linux--Wifi Not Working

I am running Alpine Linux from a custom ISO that I created using the extended profile as a base (following instructions Install packages into a custom Alpine Linux ISO? and https://wiki.alpinelinux....
0
votes
1answer
617 views

How to know the Bluetooth MAC address in Alpine Linux

I am deploying a docker in Raspberry Pi 3. Inside docker I need to know the MAC of Bluetooth device. Normally I would find that using hciconfig | grep "BD Address" | awk '{ print $3}' hciconfig ...
0
votes
1answer
608 views

How to persist iproute2 routes and rules in Alpine Linux?

I'm trying to persist (between reboots) routes and rules from iproute2 in Alpine Linux, so far without success. Here are the commands: ip route add default via 192.168.200.1 dev eth1 table net2 ip ...
0
votes
0answers
317 views

Disable commands in Alpine Linux

I want to attempt to increase the security of some Alpine Linux Docker containers which run Nginx and other servers. I would like to disable commands like ls, cat, ed or sed, so that they are ...
0
votes
1answer
299 views

Alpine Linux - restrict su -l to wheel group

What's the best way to restrict su -l only to people who are in a specific group? I'm on Alpine Linux. I've already added linux-pam package but I'm not able to make it run. That's my current /etc/pam....
0
votes
1answer
271 views

How can I boot alpine-linux from CF card (in Soekris net4801)?

I've installed according to https://wiki.alpinelinux.org/wiki/Create_a_Bootable_Compact_Flash#Automated and successfully activated serial console as outlined in https://wiki.alpinelinux.org/wiki/...
0
votes
1answer
192 views

Alpine clear screen before login page s

On Linux alpine is it possible to clear the screen before the login prompt is shown. I cant run commands from inside /etc/issue, so i am stuck in how to do it
0
votes
1answer
213 views

Alpine Linux 3.4.6 x86 Standard qemu boot failed

I've been following the direction on their wiki. However, I get the following: sudo qemu-system-i386 -cdrom ../alpine-3.4.6-x86.iso -hda alpine.qcow -boot d -net nic -net user -m 256 -localtime ...
0
votes
1answer
1k views

Alpine Linux - how do I define packages to load on boot?

It seems that Alpine Linux loads packages up when it boots. How do I add openssh to the packages that are loaded at boot time? When I am logged in I do "apk info" which lists 16 packages as follows: ...
0
votes
0answers
1k views

Testing OpenSSH logging

I'm attempting to turn on logging inside OpenSSH running in an Alpine Docker container. I made sure to install rsyslog and start the daemon with /usr/sbin/rsyslogd. My sshd logging settings are as ...
0
votes
3answers
2k views

Alpine Linux VirtualBox VM With xfce4 Desktop Not Able to Use Full Screen Resolution

I have an installation of alpine linux running in a virtualbox vm with slim + xfce4 for the desktop engine. Kernel Version: I have tried with both the latest (3.6.2) Standard and Virtual Kernel from ...
-3
votes
1answer
48 views

Run ./configure script as user under Alpine Linux

I’m trying to compile a program from source under Alpine Linux. When I run ./configure under root everything goes well, but when I do the same as a normal user I get: ./configure: This script ...