date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,582,051,348,000 |
There was a "kernel panic" - at least sort of.
errpt | head
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
A6DF45AA 1205044411 I O RMCdaemon The daemon is started.
67145A39 1205044111 U S SYSDUMP SYSTEM DUMP
F48137AC 1205043911 U O minidump COMPRESSED MINIMAL DUMP
0975DD6C 1205043911 P ... |
Your dump space is too small. It could not store a full dump.
sysdumpdev -e will give you an estimate of how much dump space you'll need to capture a full dump. I would suggest you provide a dump LV with at least 1.5x or 2x the estimated size.
sysdumpdev -l will show you the current dump device configuration.
You c... | What to do after a kernel panic on AIX? |
1,582,051,348,000 |
I'm running Linux Mint 21.1 Xfce and it was all good up to and including 5.15.0-60-generic but after updating to -67 I started getting an "out of memory" error at boot (hit any key) followed by "kernel panic, not syncing, VFS unable to mount rootfs on unknown block".
Booting trusty old version -60 via advanced options... |
I found a related answer: https://unix.stackexchange.com/a/717710
It says to modify MODULES and COMPRESS in initramfs.conf
Using an editor of your choice (you will need to do this with sudo privilege)-
Set MODULES=dep
Set COMPRESS=xz
Execute sudo update-initramfs -u
| Kernel panic when booting new kernels |
1,582,051,348,000 |
I'm trying to get my TAS2505 audio chip working with my arm64 linux system (IMX8MM).
It gets detected as an audio device however when I try to play any kind of audio I get a kernel panic.
dmesg:
[ 0.594275] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/soc@0/bus@30800000/i2c@30a50000/tlv320aic32... |
Turns out there were multiple issues, but only one causing the panic.
I was missing an IMX SDMA driver that needs to be included in the rootfs. So I had to bitbake a reference yocto build, mount the rootfs, rip out the driver from /lib/firmware/imx/sdma, and put it in my custom rootfs.
After putting that in the kerne... | kernel panic when trying to play audio |
1,582,051,348,000 |
I have an Ubuntu 20.04 VM hosted in Azure, deployed from the prevailing image at the time. It runs a couple of docker containers, and shuts down every day at 17h00, and starts up at 06h30 every morning.
When I checked today, the VM was inaccessible. Eventually found that the machine kept rebooting itself. From the Ser... |
Does the /var/log/unattended-upgrades directory exist? If it does, read the logs within.
If the unattended-upgrades package has been installed (which may be the default on most Debian-based distributions unless you choose a minimal installation), then the systemd service apt-daily-upgrade.service (or /etc/cron.daily/a... | How to determine why the kernel updated |
1,582,051,348,000 |
I'm on a 32 bit CentOS 7 machine.
I just do these commands and a kernel panic is observed:
cd repos/
git clone https://github.com/SergioBenitez/Rocket
cd Rocket/
cd examples/hello_world/
cargo run -v
kernel BUG at kernel/auditsc.c:1532!
invalid opcode: 0000 [#1] SMP
What should I do? Where to report? I have no idea... |
Solution
Dumped 32 bit CentOS 7 and installed 32 bit Ubuntu 16.04 LTS which seems to be the last 32 bit Ubuntu LTS.
No kernel panic is observed with 32 bit Ubuntu 16.04 LTS while installing Rust or building/running Rust applications.
History
This 32 bit machine previously had Ubuntu 12.04 LTS and 14.04 LTS and the exp... | kernel bug at kernel/auditsc.c:1532 |
1,582,051,348,000 |
We got a few new machines: x3850 x6.
All could pxe boot fine, except one machine, that gives the following kernel panic, looks like an exciting issue:
We cannot even scroll up after the kernel panic occurs, after 30-40 seconds. It hungs so bad, that I cannot even type anything.
Anybody have any clue, what could t... |
After an emulex card driver upgrade, it doesn't kernel panic any more.
Version 11.0.270.24 to 11.4.1186.3
| Fixing recursive fault but reboot is needed on x3850 x6 SLES12 [closed] |
1,582,051,348,000 |
I'm trying to install Kali Linux (2017.3 32-bit) on my VirtualBox (5.2.2) but when I select 'Install' from the menu, I get an error saying Kernel panic and bad EIP value. After that nothing happens. Please see the attached photo.
Other specs:
VM version: Linux 2.6 / 3.x / 4.x (32-bit)
PAE/NX enabled
1024 MB RAM
I h... |
You're running a 64bit host OS (Windows 7). But you say that you can run only 32bit guests. The reason for this is that you need to enable virtualisation settings in the BIOS.
| Kali Linux installation - Kernel panic |
1,582,051,348,000 |
I have my Linux root on an F2FS USB flash drive. The kernel is on another device accessible by the bootloader. I'm trying to start it with the parameters root=/dev/sda1 rootwait rootfstype=f2fs, but I always end up with a kernel panic:
VFS: Cannot open root device "sda1" or unknown-block(8,1): error -19
Please append ... |
As @derobert pointed out, you have to build the kernel with the F2FS module. In my case it wasn't even included as a loadable module.
To build the kernel yourself, grab it from kernel.org. Get the default kernel config for your platform. (I got mine from here for the TI-Nspire calculator series.) Modify it to include ... | Linux root on F2FS |
1,582,051,348,000 |
I have a Gateway GM5474 which is running XBMCbuntu on a 500GB Hard drive (the originial I believe or maybe slightly newer hard drive). Little background: The system is still stock, and I was having issues getting any linux kernel to install and I considered it a miracle that it installed at all. I tried all three hard... |
First, try to run memtest86 to establish whether CPU/mainboard/RAM/power supply are working properly. If you get errors, it could be any one of those - I'd say a 80% likelihood it's a RAM issue, 19% likelihood it's a mainboard issue, and a 1% likelihood that it's power supply issue. It's most probably not a CPU issue.... | XBMCbuntu freezes at random intervals |
1,582,051,348,000 |
I'm using a Red Hat 4 Enterprise Linux. But, when I upgrade the kernel, an error occurred. And after, when computer is booting with new kernel (red hat enterprıse 2.6.9-100.el), I receive the following the error.
mkrootdev: label /1 not found
mount: error 2 mountıng ext 3
mount: error 2 mountıng none
switchroot : moun... |
Get your machine running with the good kernel and then edit /etc/grub.conf so it defauts to your good kernel , check the line in grub which says "default=0". Changing that will fix your manual intervention boot issue. In your case default would need to be "default=3" to boot your old good smp kernel
Then look at remo... | Red Hat Kernel Upgrade problem |
1,582,051,348,000 |
I had a Linux mint system which was working fine until it froze and the "safe restart" of alt+Sysreq+REISUB didn't work, so I had to hard shutdown.
After this the bootable SSD stopped getting detected at boot, even as a storage device.
I bought a new SSD - it was detected the first time as storage, but the second time... |
In the recent years, there seems to have been a fairly large batch of bad SATA data cables on the market.
Initially they seem fine, but something (an error in chemical composition?) causes them to age and degrade rapidly. Once aged, moving or bending the cables may make the failure happen quicker.
Because of this, I w... | Internal SSD not detected in boot or lsblk |
1,538,243,897,000 |
I've been trying to configure a kernel that will not require an initrd to boot. I haven't succeeded. The filesystem I'm attempting to boot from is ext4, and I have all the extended filesystems compiled in my kernel (not as a module, in the kernel itself). I'm using an Early-2011 MacBook Pro with a 2.5" 1TB WD hard dri... |
I was able to get it running by compiling my SATA controller (libata) into my kernel, which was originally being compiled as a module (and which was why it would run fine with an initial ram disk).
| Trying to get my system running without an initrd |
1,538,243,897,000 |
I have just installed FreeBSD 10.1 Release i386 on a new computer. I pretty much used the standard installer defaults, except I chose ZFS, RAID-Z1, encryption, and encrypted swap, and I did not install ports (it would consistently freeze when installing them). Installation seemed to go fine. When I rebooted, it pro... |
Answering my own question:
Switching from i386 to amd64 seems to have resolved the issue (and also the issue of the ports installation freezing). I originally did not use amd64 because I don't have an AMD processor, but I now see from the documentation that amd64 can be used with certain Intel processors as well, in... | FreeBSD "Fatal double fault" upon entering ZFS encryption password |
1,538,243,897,000 |
since our production server not startup ( very important server - Rhel 7.2 )
we try to access as single user mode according to the link - https://www.tecmint.com/boot-into-single-user-mode-in-centos-7/
after entering the single user mode details using VMconsole , Linux stop on the following
what we can do from this s... |
If the GRUB boot menu includes multiple kernel versions, try booting with an older version. (There should always be at least the current kernel and the kernel used by the OS installer: the latter has a version number like 0-rescue-<numbers>.
If the boot is successful with an older kernel, then the problem might be a d... | Cant access as single user mode - what can we do to recover Linux machine |
1,538,243,897,000 |
I am developing a node.js application --- which frequently crashes my Debian Linux kernel: The computer becomes unresponsive and doesn't even respond to 'ping'.
At this stage, I don't even ask to analyze or fix the cause of the crashes. I don't have any information that could point to anything specific. The compute... |
Typically a linux kernel crash would be visible on the system's console. However, just in case it is indeed a kernel crash but in your case it's not visible for whatever reason you may want to confirm it is indeed a kernel crash. For that you could configure your system to auto-reboot after a kernel crash like this: C... | Linux kernel crash: How to gather information? |
1,538,243,897,000 |
Since the last upgrade to Android Studio (Android Studio Arctic Fox | 2020.3.1 Patch 2 Build #AI-203.7717.56.2031.7678000), I am experiencing frequent global system freezes in Fedora 33. Nothing responding, even the SSH server, so the only solution is a hard reboot. It always freezes while typing.
In there anyone here... |
Please install NVIDIA proprietary drivers. The crash is in nouveau (an open source driver for NVIDIA GPUs) which is not known to be stable enough.
Please consider filing a bug report: https://gitlab.freedesktop.org/drm/nouveau/-/issues/
| Android studio freezing Fedora (nouveau and kernel crash) |
1,538,243,897,000 |
I'm running on a minimal Ubuntu server 12.04.3 install and I installed a d-link DWA-160 usb wifi adapter as per the instructions shown in this page.
After successfully connecting using these instructions (I basically ping google to confirm that I'm connected), I try to run apt-get update but end up getting what appear... |
Given the symptoms (crashes when there's a lot of network traffic, and you happen to be using a custom network driver), it's a bug in the network driver.
From the page you link:
DWA 160 is also know to freeze under heavy network load. When this happens, the only solution is to unplug and replug the key. Till date thi... | Kernel panic on "apt-get upgrade" with DWA-160 |
1,538,243,897,000 |
Since kernel 3.3.x there are frequent kernel panics during the boot process. It seems to be a kernel problem since I downgraded to 3.0 and the problems are gone.
The kernel panics happen almost at every boot attempt. After 4 or 5 restarts the system boots normally. It also seems to affect only Sandy Bridge systems, an... |
So it seems to be TLP causing the issues, in detail the part where radio devices are turned off during the boot sequence.
I changed this line
DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wwan"
to
DEVICES_TO_DISABLE_ON_STARTUP=""
until now all boot attemps ran successfully.
There is a new version of TLP out (0.3.7) and i... | Occasionally kernel panics during boot since 3.3.x with Sandy Bridge |
1,538,243,897,000 |
On my embedded device, I have this error showing up after kernel boot:
init.exe: Caught segmentation fault, core dumped
But I cannot understand why is this happening? If I do battery cut( i.e. reboot my device foricbly) then the device boots and comes up fine.
Any pointers will be extremely helpful. Is this some tran... |
The output mentions it dumped core. Try doing:
gdb -c [corefile]
Then at the (gdb) prompt, do:
(gdb) bt
To get a backtrace. If the binary was not stripped, you might be in luck and at least have something to google for :-)
PS: The core file might be core.PID, where PID was the PID of init.exe when it died.
sc.
| init.exe: Caught segmentation fault, core dumped - what is the source of this error |
1,506,378,771,000 |
I see with kubernetes it's possible to set node affinity for certain workloads. I'm wondering if there are any facilities in the various container technologies, such as docker, rocket etc that allow you to pin processes to cores? or if this is even possible in multitenant environments? Perhaps it would imply a bare me... |
If your system supports SMP (Symmetric multiprocessing) with some combination of multiple physical CPUs, CPU cores, and logical CPUs, you can assign Docker Containers to specific CPU resources.
Example Commands for CPU affinity with Docker Containers
The examples shown here cover the assignment of the mycontainer Dock... | How to achieve processor affinity in containers? |
1,506,378,771,000 |
I am following this guide of installing kubernetes with kubeadm, and as part of the installation process, I need to set the following kernel parameters in sysctl.d/99-kuvernetes-cni.conf:
net.bridge.bridge-nf-call-iptables=1
net.bridge.bridge-nf-call-ip6tables=1
I know that these belong to the br_netfilter module, si... |
These parameters determine whether packets crossing a bridge are sent to iptables for processing. Most Kubernetes CNIs rely on iptables, so this is usually necessary for Kubernetes.
The in-kernel default is to enable these settings, but many distributions disable them (see the previous link for details).
| What is the net.bridge.bridge-nf-call-iptables kernel parameter? |
1,506,378,771,000 |
I'm trying to add a kubernetes repo to my Amazon Linux 2 instance and struggle with automatically adding GPG keys.
This is my /etc/yum.repos.d/kubernetes.repo...
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://pa... |
This is a known issue (see https://github.com/kubernetes/kubernetes/issues/60134).
Work around it by disabling GPG checks: set repo_gpgcheck=0 in /etc/yum.repos.d/kubernetes.repo.
Credits to drakedevel, who writes:
I think this is due to Amazon Linux 2 shipping an old version of GnuPG, and something about the repomd.... | Yum in Amazon Linux 2 still asks for GPG key even after "rpm --import" when adding Kubernetes repo |
1,506,378,771,000 |
I have a Kubernetes cluster running applications (currently on a set of Vagrant CoreOS VMs on a local server)
I want to be able to debug a particular application locally on my laptop, so I worked on setting up VPN into the cluster: a client/server VPN based on kylemanna/docker-openvpn, deployed as a regular Pod
I crea... |
finally my config looks like this:
docker run -v /etc/openvpn:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig \
-u udp://192.168.10.152:1194 \
-n 10.3.0.10 \
-n 192.168.10.1 \
-n 8.8.8.8 \
-n 75.75.75.75 \
-n 75.75.75.76 \
-s 10.8.0.0/24 \
-N \
-p "route 10.2.0.0 255.255.0.0" \
-p "route 10.3.0.0 255.255.0.0" \
-p ... | OpenVPN server on Kubernetes cluster / DNS and Service resolution |
1,506,378,771,000 |
As the docker daemon gets deprecated in the future Kubernetes version 1.20, I just wanted to start a test installation of a kubernetes cluster with containerd.
I am trying to install a new cluster running on a debian (buster) using containerd as the container runtime.
But it looks to me like containerd is supported fo... |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" |sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install containerd
Docker use containerd that's why the package is available on its reposit... | How to install containerd on Debian? |
1,506,378,771,000 |
How can I pass environment variables from sshd's environment to new SSH sessions?
I'm running sshd in Kubernetes pods. Kubernetes sets various variables in the containers environment, including the API server: KUBERNETES_PORT=tcp://100.64.0.1:443
Now, my problem is that this environment variable is not passed to new S... |
There may be better ways to do that, but a quick way is to use the SetEnv directive from the command line of sshd:
export FOO=bar
sshd ... -o "SetEnv=FOO=$FOO" ...
export FOO=foo BAR='baz quux'
sshd ... -o "SetEnv=FOO=$FOO BAR=\"$BAR\"" ...
The SetEnv directive is supported since OpenSSH 7.8 (check with sshd -V). ... | How can I pass environment variables from sshd's environment to new SSH sessions? |
1,506,378,771,000 |
While investigating sharing the PID namespace with containers, I noticed something interesting that I don't understand. When a container shares the PID namespace with the host, some processes have their environmental variables protected while others do not.
Let's take, for example, mysql. I'll start a container with a... |
What mechanism is preventing me from reading the mysqld environmental variables and not the tail -f process?
The fact that you're running with a different user ID in the first case. If we start up your two examples:
docker run --name mysql -it -d --env MYSQL_ROOT_PASSWORD=SuperSecret mysql:latest
docker run --name t... | What mechanism prevents me from reading /proc/<PID>/environ in containers with a PID namespace shared with the host? |
1,506,378,771,000 |
I was looking for ways to tcpdump a Kubernetes pod. Each pod creates a virtual interface and it is hard to know which interface belongs to the actual pod. I found a method that helps identify the system-wide interface index. Basically, it is possible to cat /sys/class/net/eth0/iflink inside a container running in the ... |
The iflink value isn't a system-wide value. It's a value valid in the peer network nsid, as displayed for example with all ip link show dev eth0 (since it's a veth interface with its peer in an other network namespace). For the little details, the peer network nsid isn't either a system-wide value but a value valid on... | How can "/sys/class/net/eth0/iflink" have system wide information in a container |
1,506,378,771,000 |
I have a CSV file that looks like:
keyuat,carsim,logs-keyuat-carsim
lowuat,carsimserver,logs-lowuat-carsimserver
utils,dash,logs-utils-dash
utils,lifecycle,logs-utils-lifecycle
utils,lifecycle-nodejs,logs-utils-lifecycle-nodejs
workshop,cashier,logs-workshop-cashier
workshop,jfrog-dotnet,logs-workshop-jfrog-dotnet
wor... |
In awk, you can easily print a singlequote with: \047
You could try (I just type it here, I can't test it right now... I hope it is correct!)
# if needed: take out "^M" from the input file
tr -d '\015' <inputfile.csv >inputfile_sanitized.csv
# then parse it with:
awk -F',' '
{ cmd1="oc project " $1
cmd2="oc pa... | AWK to launch OS commands from items in a CSV file with a jump line |
1,506,378,771,000 |
minikube has a dashboard that I can view easily with
minikube dashboard
However, that only works if I run it on my own machine because it only answers on localhost,
* Verifying dashboard health ...
* Launching proxy ...
* Verifying proxy health ...
* Opening http://127.0.0.1:35781/api/v1/namespaces/kubernetes-dashboa... |
One method is to background the dashboard,
$ minikube dashboard --url &
[1] 356972
And then use kubectl proxy to listen to all addresses,
kubectl proxy --address=0.0.0.0 --accept-hosts='.*'
| How can I make the minikube dashboard answer on all ips 0.0.0.0? |
1,506,378,771,000 |
when I mount a nas in kubernetes pod, shows this error:
MountVolume.SetUp failed for volume "nfs-hades-mysql-pv1" : mount failed: exit status 32 Mounting command: systemd-run Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/19995168-e921-4b1e-abbd-01df68518f85/volumes/kubernetes.i... |
I tweak the PVC like this fix it:
kind: PersistentVolume
apiVersion: v1
metadata:
name: nfs-hades-mysql-pv1
selfLink: /api/v1/persistentvolumes/nfs-hades-mysql-pv1
uid: 71a4f185-b5a9-45c8-bd93-8a8e80ff1f0f
resourceVersion: '64010004'
creationTimestamp: '2021-05-19T10:46:03Z'
... | Output: Running scope as unit run-2863.scope. mount.nfs: access denied by server while mounting |
1,506,378,771,000 |
I have a simple secret.yaml file:
env:
USERNAME: user
PASSWORD: pass
i'm trying to use yq / jq to encode the values for creating k8s secret, so my final result should be:
apiVersion: v1
kind: Secret
metadata:
name: my-service
type: Opaque
data:
USERNAME: <base64 encoded>
PASSWORD: <base64 encoded>
i was ... |
The jq expression you'd want to apply to the data is
.env |= map_values(@base64) | { data: .env }
This updates all values of the top-level env structure so that they are base64-encoded. It then "renames" the env key to data.
With the particular yq utility that you seem to be using in the question, this is done throug... | using yq to base64 encode k8s secret values |
1,506,378,771,000 |
i have setup a private registry in docker accessible thru a domain “makdom.ddns.net”, i can login push and pull images locally, no problem even from slave kubes node i can do this thing,
but when i write a kubes deployment file, it is unable to pull images from the private registry and fails.
apiVersion: extensions/v1... |
Known issue https://github.com/kubernetes/kubernetes/issues/57427, resolved in master in https://github.com/kubernetes/kubernetes/pull/57463
Targeted fix for 1.9.1 in https://github.com/kubernetes/kubernetes/pull/57472
Workarounds until then:
If you have a .dockerconfigjson for your private registry already, you can m... | unable to pull images in kubernetes from private registry |
1,506,378,771,000 |
From
kubectl get pods -o wide
The output looks similar to
some-pod-name-with-numbers-123 1/1 Running 0 6d4h 192.168.0.23 node-name-abcdeft-host.domain <none> <none>
some-pod-name-with-numbers-1234 1/1 Running 0 4h38m 192.168.0.24 node-name... |
You don't need to fork an external process just to get the kubernetes elapsed time in seconds. The below GNU awk code has a user defined function fx() which shall do that conversion and from there on you can use it for your comparison purposes.
kubectl get pods -o wide |
awk '
BEGIN {
a["d"] = 24*(\
a["h"] = ... | How to convert a kubernetes style time elapsed into seconds so I can do some comparisons |
1,506,378,771,000 |
When reading this Kubernetes blog post about Intel's CPU manager it mentions that you can avoid cross-socket traffic by having CPUs allocated on the socket near to the bus which connects to an external device.
What does cross-socket traffic mean and what problems can it cause? These are my guesses:
A CPU from one soc... |
The authors of the Kubernetes blog post just speak gibberish trying to reinvent the wheel - one more PBS (portable batch system), which they call "CPU manager".
Answering question: "What does cross-socket traffic mean and what problems can it cause?" - it's necessary to say first, that this is about Multiprocessor Com... | What does cross-socket traffic mean? |
1,506,378,771,000 |
I need to map a word "foo" to a domain name "foobar.com"
So it should be able to run ping foo or curl it.
alias foo='foobar.com'
giving below issue.
curl -k foo
curl: (6) Could not resolve host: foo
this is run on kubernetes and domain name IP address is dynamic.
Basically I want to map K8s service name to a int... |
What you are trying to do is a server alias here.
Option A (dirty ugly)
You need to edit the /etc/hosts file for this
e.g.
${IP} foo foo.com
then you will be able to
curl foo -H 'Host: foo.com'
The host header is necessary as the vhost alias is foo.com
Option B (clean and nice)
Create a server alias, depending on y... | Mapping a word "foo" to a domain name "foobar.com" |
1,506,378,771,000 |
I try:
# task
- name: Add ldap oauth query password
k8s:
state: present
definition: "{{ lookup('file', 'openshift-config/secrets/ldap-bind-pw.yaml.j2') }}"
kubeconfig: "{{ install_directory }}/auth/kubeconfig"
# openshift-config/secrets/ldap-bind-pw.yaml.j2
---
kind: Secret
apiVersion: v1
metadata:
n... |
You are using
lookup('file', '/path/to/template.j2')
which is used to retrieve the raw contents of the file specified. Instead, you have to use
lookup('template', '/path/to/template.j2')
if you want jinja2 to fill your template.
Source
| Ansible with Kubernetes: create k8s secret with ansible |
1,506,378,771,000 |
I think about installing an as small as possible kubernetes setup on scaleway. The idea is to prepare myself with a kind of MVP that is able to run my applications components and turn it into a full blown redundant setup when usage grows.
The tutorial at https://www.tauceti.blog/post/kubernetes-the-not-so-hard-way-wit... |
etcd needs at least three nodes
This is true of any distributed system that has a leader/master to maintain consistency if you require it to be fault tolerant. In fact, you need an odd number of nodes to ensure that if the cluster cannot get evenly split in two (due to network outage for example) as when this happen... | Minimal amount of etcd instances |
1,602,273,208,000 |
I have the following yaml file:
---
apiVersion: v1
kind: pod
metadata:
name: Tesing_for_Image_pull -----------> 1
spec:
containers:
- name: mysql ------------------------> 2
image: mysql ----------> 3
imagePullPolicy: Always ------------->4
command: ["echo", "SUCCE... |
The simple pod example YAML for Kubernetes shows that the 'metadata' and 'spec' elements required are at the top level of the definition. The kubectl command is most likely failing because it cannot find the 'spec' element, which defines the specification of the pod.
You seem to be testing the image pull configuration... | error converting YAML to JSON: yaml: line 10: did not find expected key |
1,602,273,208,000 |
In my kubernetes (v1.28.7), docker uses containerd as underlying container management engine.
(I guess I can call it Container Runtime Interface - CRI? ).
This is how I assume that (look at the last line and scroll all the way to the right):
lab@worker01:~$ sudo systemctl status docker
● docker.service - Docker Applic... |
Containerd allows clients to set a "namespace" in order to manage different sets of resources. For example, on my local system, running Docker 26.0.0, Docker uses containerd as the container runtime.
There are a couple of running Docker containers:
$ docker ps
CONTAINER ID IMAGE COMMAND ... | kubernetes cluster - only crictl can actually see containers (containers assets) |
1,602,273,208,000 |
I've been granted access to a k8s cluster in k8s, and I'd like to see what privileges I have in the cluster, like creating/deleting pods and other such kind of actions. So far I know a command to check a particular action like:
kubectl auth can-i get pods
But could be good to see all the other commands, thus if someo... |
You can simply run:
kubectl auth can-i --list
According to the help:
kubectl auth can-i --help
--list=false:
If true, prints all allowed actions.
| How to list all allowed actions I can perform in kubernetes? |
1,602,273,208,000 |
Debugging a tcp: out of memory error, I found that a process (from a container) has a lot of connection on CLOSE_WAIT status aka 08 when I cat /proc/XXX/net/tcp
But neither netstat or ss were showing those leaked connections.
133: 0E03540A:9D9C 804CC2AD:01BB 08 00000000:00059D7A 00:00000000 00000000 0 0 3... |
If you are looking at this from the host, you're in the initial network namespace rather than in the container's network namespace: these connections or states are not seen because they are not handled by the initial network namespace's network stack. When following an entry in the process directory in /proc, this ent... | CLOSE_WAIT not visible on the kubernetes node |
1,602,273,208,000 |
I've installed k3s on Debian Bullseye (on M1 Pro through qemu/UTM).
k3s recommend to disable the swap. After reading the answers of the following questions:
How to safely turn off swap permanently and reclaim the space? (on Debian Jessie)
Disabling Swap on Debian Permanently
I've :
Disabled systemd swap service s... |
The swap activation probably happens early in the boot process while the system is still running on initramfs, so after removing the swap configuration items, you should have done a update-initramfs -u.
I also don't see a systemctl stop "dev-*.swap" or swapoff -a anywhere: those would have been the commands to actuall... | Why k3s is still seeing swap on Debian Bullseye? |
1,602,273,208,000 |
I installed kubernetes on Ubuntu server 20.04 .
Master configured with flannel network without any problem .
Initialize command:
kubeadm init --pod-network-cidr=10.10.10.0/24 --apiserver-advertise-address=172.16.200.10
Network interfaces on master:
cni0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1450 ... |
That --pod-network-cidr 10.10.10.0/24 sounds wrong.
If you do a kubectl describe node <your-master-node-name>, I would bet there is something like a PodCIDR: 10.10.10.0/24. Your first node is already eating up the whole pod network CIDR, as you planned one that is too small.
Once flannel first starts on a Kubernetes n... | Kubernetes node error sync pod |
1,602,273,208,000 |
On an Amazon Linux 2 instance, the command line is throwing the following connection refused error every time a command is run that references a file path. The same error is thrown when an https url is used in place of the file path.
Why is this happening, and how can this problem be remediated so that the file can... |
This looks like you can't connect to the Kubernetes API server. This could be for many reasons
The kubernetes API server is not running
The API server is not listening on TCP/8080
The API server is not listening on the loopback address of 127.0.0.1
The API server is not listening with HTTP (but with HTTPS)
A local fi... | unable to recognize file. connection refused |
1,602,273,208,000 |
I would like to bind my service on all nodes to ports 80 and 443, so that I will be redirected via a DNS name (kubernetes) to any node that redirects me directly to the service via HTTP/S and then to the deployment (nginx). However, I don't know exactly how this works, because the range of the NodePorts only goes from... |
You have two options:
simple port forwarding
externalIPs
keepalived
Simple port forwarding
Run the following on all servers
sudo iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports <nodeport>
sudo iptables -t nat -I OUTPUT -p tcp -o lo --dport 443 -j REDIRECT --to-ports <nodeport>
replace <nodep... | kubernetes export ports |
1,602,273,208,000 |
Here is the shell script I want to execute.
for example, I have 100 kubernetes pods with 100 different vehicles.
I want a list to be generated of cars and choose 10 particular cars from the list.
My goal is to deploy a new image into the selected car's pod.
I am able to generate a list of cars through the array and... |
You could use select:
select car in "${array[@]}" exit; do
case $car in
exit) break;;
*)
printf 'Choosing car: %s\n' "$car"
kubectl edit pod -n ns "$car" -o yaml
;;
esac
done
of course this would depend on you properly setting the array first by using the array=... | How to Get user input from the stdout of for loop index |
1,602,273,208,000 |
I have just come across an article describing process of installing containerD runtime and I'm a little dubious about the command mentioned, maybe a typo but I want to get clarity on it. The command is as follows
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -echo "deb https://apt.ku... |
That's a typo. The correct commands are:
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg |
sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" |
sudo tee /etc/apt/sources.list.d/kubernetes.list
The first command downloads a gpg signature from https://packages.cloud.goo... | multiple commands in linux shell |
1,602,273,208,000 |
I am European
export BOOTSTRAP_TIMEZONE="UTC +2"
I can not check, something is wrong with Github right now.
If that is not right what should I change?
|
It's quite common for servers to be set to UTC in Europe. But not wholly ubiquitous. Only you can decide if using something other than UTC is a good idea.
Timezones are a rabbit hole of utter madness where the more you know the more you realise you have to learn.
Unless you have a very specific reason why you know y... | How time zone variable for Kubernetes should look like? |
1,602,273,208,000 |
I am trying to install a package using apt-get on Debian. However, for some reason, it also wants to upgrade ca-certificates. Can I force apt-get install to skip upgrading ca-certificates as the upgrade is failing due to a read-only file system? I am looking for a workaround as I don't to mess up with the certificates... |
The upgrade is failing because the file system is read-only, which means you won’t be able to install procps either.
The general answer to prevent upgrades is to put a hold on the package:
apt-mark hold ca-certificates
but in your case you might need to rebuild the container image instead.
| Can I force apt-get install to skip upgrading ca-certificates as the upgrade is failing on Debian GNU/Linux 9? |
1,712,303,986,000 |
I want to know what resources: {} in pod.spec.containers.resources in Kubernetes means?
|
You can get documentation using kubectl for the fields of Kubernetes resources. For example:
$ kubectl explain pod.spec.containers.resources
KIND: Pod
VERSION: v1
FIELD: resources <ResourceRequirements>
DESCRIPTION:
Compute Resources required by this container. Cannot be updated. More info:
https:/... | what does {} in containers section in kubernetes mean? |
1,712,303,986,000 |
I'm running Kubernetes Jobs in which I set limits and requests both to the same number of CPUs. In some of these jobs I'm occasionally seeing OutOfcpu errors
When I kubectl describe pods PODNAME I see the following message:
Pod Node didn't have enough resource: cpu, requested: 8000, used: 11453, capacity: 16000
That ... |
There is an open issue with a long thread about this bug.
It is introduced in k8s v 1.22 and seems a race condition which can occur when pods get scheduled on a node where another pod is terminated. The terminated pod isn't seen by the scheduler anymore, but still uses resources of the node (cpu, memory).
https://gith... | Kubernetes OutOfcpu error when Requests.cpu == Limits.cpu |
1,712,303,986,000 |
When I want to use kubeadm kubeadm version: &version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T21:03:28Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"} to upload a config file like this:
kubeadm co... |
I do it like this in new version:
kubeadm init phase upload-config kubeadm --config kubeadm-config.yaml
more info:https://github.com/kubernetes/kubeadm/issues/988
| invalid subcommand: "upload" when using kubeadm to upload config |
1,712,303,986,000 |
I am following a lab on Kubernetes and Mongodb but all the Pods are always in 0/1 state what does it mean? how do i make them READY 1/1
[root@master-node ~]# kubectl get pod
NAME READY STATUS RESTARTS AGE
mongo-express-78fcf796b8-wzgvx 0/1 Pending 0 3m41s
mon... |
You seem to have only one server for the K8s cluster. In a typical K8s cluster, the master, or the control plane, is usually kept separate from the servers running workloads. To this effect, it has a 'taint', which is basically a property that repels pods. With the taint in place, pods cannot be scheduled on the maste... | kubectl get pod READY 0/1 state |
1,712,303,986,000 |
I use Microk8s kubectl. I tried to record events inside a pod (named e.g., mypod) using sysdig by setting a filter k8s.pod.name=mypod (specifically through $sysdig k8s.pod.name=mypod). But sysdig does not show any logged event. For example, it doesn't show any system call when I attempt to $cat /etc/passwd of the cont... |
Hello you need to connect to the k8s api server, here is a description from the man page:
-k, --k8s-api
Enable Kubernetes support by connecting to the API server
specified as argument. E.g.
"http://admin:[email protected]:8080". The API server can
also be specified via the environment variable SYSDIG_K8S_API.
Once y... | Sysdig doesn’t record events inside Kubernetes pods |
1,712,303,986,000 |
Kubernetes use TERM signal on count down replicaSet .
this is so dangerous for my application .
I use Tomcat application server and this application server has own shutdown mechanism for terminating application server.
when i send operating system (Linux) signals (9,15,...) to jvm , JVM does not know what do with thre... |
Kubernetes lifecycle is good solution for problems like this :
Container Lifecycle Hooks
| kubernetes replicaSet shutdown policy |
1,712,303,986,000 |
As you know current CentOS Atomic Host Docker version is 1.13.1 ... Do you recommend using this version in production environment? If not, should i update it or find another Docker Linux host?
Note: I plan to build a K8s PaaS.
|
Atomic is reaching its End Of Life.
RedHat would recommend you to consider using RedHat-CoreOS (base on the former CoreOS). Or in your case, Fedora CoreOS.
Both of which may be used deploying OpenShift. For a vanilla Kubernetes, it might be complicated, little documented, but not impossible in theory.
Meanwhile, note ... | RHEL/CentOS Atomic Host Docker version is old |
1,712,303,986,000 |
I have a containerized unimrcp server and it is running as kubernetes pod. When I go inside container and do ps -ef its output is like this:
[root@unimrcp-0 fd]# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 99 13:13 ? 01:07:38 ./unimrcpserver
root 75 1 0 13:13 ? ... |
Issue was because of process not having TTY attached to it. TTY is the device used by the process to interact for the purpose of input and output. Since there was no TTY, Unimrcp process used its fd 1 (stdout) for its one of the thread communications (fd 1 was attached the process's pipe). Hence there were some junk c... | Linux process is sending some junk characters to the STDOUT. No Controlling terminal attached to it |
1,712,303,986,000 |
After deploying all kubernetes ressources I wanna open port 443. I added it to my whitelist table but it is still closed. Same already happened to me for port 80. After flushing all tables, deleting all kubernetes ressources and setup the firewall from scratch (including whitelisted port 80) before deploying kubernete... |
Edit 2
The port was closed because nothing was listening to it :)
Edit 1
The list order is important, but the KUBE-FIREWALL only drops marked packages. I missed the mark match 0x8000/0x8000 at the end of the rule. Therefore it should work. My guess is that one of the cali rules (or fail2ban?) claims port 443. There is... | iptables priority |
1,712,303,986,000 |
I have two OpenSUSE Micro Leap 5.5 VMs in the same network called m0.k8b.intranet.domain and m1.k8b.intranet.domain. Both are clean Preconfigured images from https://get.opensuse.org/leapmicro/5.5/.
The two virtual machines have installed containerd, kubeadm, kubelet, but kubectl only in m0 like in https://kubernetes... |
After cheeking https://stackoverflow.com/questions/68387634/the-cluster-info-configmap-does-not-yet-contain-a-jws-signature-for-token-id-cj and https://serverfault.com/questions/728727/kubernetes-stuck-on-containercreating results that in the creation of ...-controller-manager-... pod is failing because is trying to c... | Kubernetes cannot join server cluster |
1,712,303,986,000 |
I have a K8S deployment loading a volume as raw block (through volumeDevices):
apiVersion: apps/v1
kind: Deployment
...
spec:
replicas: 1
...
containers:
- name: somepod
image: ubuntu:latest
command: ["sh","-c", "--"]
args: ["mount /dev/block /data && while true; do sleep 1000000; done"]
security... |
What ended up being a solution for me is using an AWS EC2 function (exported by Karpenter) that allows to provision a node with a copy of a given volume snapshot.
My Karpenter's ec2 NodeClass looks something like:
apiVersion: karpenter.k8s.aws/v1beta1
kind: EC2NodeClass
metadata:
name: test
spec:
amiFamily: AL2
... | Mount a filesystem in a K8S pod without privileged |
1,712,303,986,000 |
I'm encountering an issue where a Kubernetes namespace is stuck in the 'Terminating' state. Running kubectl get ns cattle-monitoring-system -o json|jq produces error messages related to custom.metrics.k8s.io/v1beta1 and shows a DiscoveryFailed condition in the namespace status:
E1213 08:02:39.979034 953148 memcache.g... |
The issue you're encountering is related to the Kubernetes API server's inability to discover the custom.metrics.k8s.io/v1beta1 API, which is blocking the namespace from terminating. Here are the steps to troubleshoot and resolve this:
Check for Associated APIService
Investigate if there's an APIService for custom.met... | Kubernetes Namespace Stuck in 'Terminating' |
1,455,898,365,000 |
I have a remote machine running Debian 8 (Jessie) with lightdm installed. I want it to start in no-GUI mode, but I don't want to remove all X-related stuff to still be able to run it though SSH with the -X parameter. So how to disable X server autostart without removing it?
I tried systemctl stop lightdm, it stops the... |
The disable didn't work because the Debian /etc/X11/default-display-manager logic is winding up overriding it.
In order to make text boot the default under systemd (regardless of which distro, really):
systemctl set-default multi-user.target
To change back to booting to the GUI,
systemctl set-default graphical.target... | How to disable X server autostart in Debian Jessie? |
1,455,898,365,000 |
What is LightDM and GDM? In Linux operating system I heard both but I don't know about them and what is called? Where they are used? Are they related to display?
|
LightDM is an x display manager that aims to be lightweight, fast, extensible and multi-desktop. It uses various front-ends to draw login interfaces, so-called Greeters.
Key features are:
A well-defined greeter API allowing multiple GUIs
Support for all display manager use cases, with plugins where appropriate
Low co... | What is LightDM and GDM |
1,455,898,365,000 |
When I log in with LightDM on my laptop running Debian Unstable, it recently started to hang for around 2 minutes until journalctl shows the message kernel: random: crng init done. When I press random keys on my keyboard while it hangs, it logs in faster (around 10 seconds). Before I didn't have this issue, is there a... |
Looks like some component of your system blocks while trying to obtain random data from the kernel (i. e. reading from /dev/urandom or calling getrandom()) due to insufficient entropy (randomness) available.
I do not have a ready explanation for why the problem depends on a particular kernel version, or which componen... | When I log in, it hangs until crng init done |
1,455,898,365,000 |
I have started running Jessie (Debian 8) with a LightDM/Xfce desktop on my HTPC after it grinding to a near-halt on W7. One of the things that I cannot get past is having to type the password -- not a normal thing to do for watching TV.
Following the instructions on the Debian Wiki I got as far as my login being autom... |
I solved it using the Debian wiki page and this page on LinuxServe -- especially the comment!
when I do /usr/sbin/lightdm --show-config I get two files: /etc/lightdm/lightdm.conf and /usr/share/lightdm/lightdm.conf.d/01_debian.conf
These I edited so that in /usr/share/lightdm/lightdm.conf.d/01_debian.conf it says:
gre... | auto login on xfce in jessie |
1,455,898,365,000 |
Is there any way that I can lock the screen CLI-style? I'm trying to target as many desktop managers as possible (mostly LightDM, but GDM, KDM, SLiM, XScreensaver, etc. would be great too), but I can only dig things up for GDM and XScreensaver.
For GDM, it would be:
gnome-screensaver-command -l
For XScreensaver:
xscr... |
I Googled/emailed around a bit and got these two commands.
To lock the screen:
xflock4
To activate user switching:
gdmflexiserver
For Lightdm, this file resides in a strange spot (at least on Arch Linux):
/usr/lib/lightdm/lightdm/gdmflexiserver
I merged these two into XFCE's logout button dialog, in case anyone's i... | Locking the screen via CLI? |
1,455,898,365,000 |
How do I change the default session I get when I log in? I'm on Debian jessie. I tried changing settings on gdm3, tried installing lightdm and following this but it's just not working.
For more specificity, I'm trying to default to gnome-classic instead of gnome. I want to turn on the computer, log in as any arbitrary... |
On Debian, you should set the x-session-manager default command to choose your default session manager:
# update-alternatives --config x-session-manager
There, you can select the session manager you want GDM3 to use by default.
If gnome-session-classic does not appear in the listing, try creating the link on your own... | How do I change my default session? |
1,455,898,365,000 |
That's a question I've seen several time for several Linux flavours, so let's try to be exhaustive.
What is the method to execute script/command/program before and after user login into its desktop session ?
|
Introduction
To run a program in graphical environement before a user logged in a graphical environment depend on your display manager. A display manager is in charge to provide you a login interface and setup your graphical environment once logged in.
the most important are the following:
GDM is the GNOME display... | How to execute command before user login on linux |
1,455,898,365,000 |
My setup is:
Debian testing (stretch), up to date
LightDM with autologin enabled
Awesome window manager
bash, in ROXTerm or XTerm
I don't seem to be able to set own environment variables and get it sourced at X session startup. Here's what I tried:
using ~/.bash_profile worked on my previous OS, but I learned from ... |
~/.xinitrc is only read when you start a GUI session with startx (or otherwise calling xinit) after logging in in text mode. So that won't help you.
Whether ~/.bash_profile, ~/.profile, ~/.xprofile and ~/.xsessionrc are read when logging in with a display manager depends on how the display manager is configured and wh... | Can't export environment variables on X session start |
1,455,898,365,000 |
I've looked at the man pages and the configuration files but found nothing (but maybe I'm missing something). I see only many options for autologin.
From a few googles I've read that the KDE version does work this way, but I would like to continue using the GTK version.
update
I still haven't found a solution and some... |
Update: (after comments)
Try to modify in /etc/lightdm/lightdm.conf:
greeter-hide-users=true
in
greeter-hide-users=false
It's seems it's needed in all lightdm .conf files.
It's possible you need to use
lightdm-set-defaults [OPTION...] to fix it.
The full options available are in the file:
/usr/share/doc/light... | Configure Lightdm (GTK) for last saved or a default user and focus on password? |
1,455,898,365,000 |
How can I set user pictures on Debian with lightdm?
Xfce does not seem to have a GUI facility for user management at all. I have tried installing gnome-system tools that contains user management dialog (users-admin) but I can't find where to set picture there.
I remember Gnome had "About me" dialog but that was GNOME... |
I don't know if there is a way to do it with a GUI, but you could place a icon.face file in your user directory. That may cause issues, however.
An alternative is to use the AccountsService. Edit/create the file /var/lib/AccountsService/users/<username>, and add the following lines:
[User]
Icon=/somewhere/pathToIcon.... | Set lightdm user picture |
1,455,898,365,000 |
I configured a media-center server running Debian with LightDM, Leapcast and Plex. What I want to accomplish is the following. There should be three LightDM seats, one default seat on which I can login; one seat that runs Leapcast (Chromecast emulator); and one seat that runs Plex Media Center. The last seat should sh... |
For question #1: LightDM doesn't have that functionality builtin, but you can hack it. In /etc/lightdm/lightdm.conf, add a greeter-setup-script. The script can then use sleep (to wait for things to settle) and chvt to switch to whatever virtual terminal you like. (In your case, you'd want chvt 7).
For question #2: I t... | Autostart all LightDM seats and show one as default |
1,455,898,365,000 |
I am running Xubuntu 18.04. When I lock the session, the screen gets turned off instantly. I am using stock lightdm as display manager and lightlocker for locking the session.
From my viewpoint the following sequence of events happens.
I initiate locking by running xflock4 via keyboard shortcut or clicking "Lock Scre... |
As of Ubuntu 20.04 (LTS) Xfce comes with a native screensaver. When I lock the session, the screensaver kicks in. If I lock the session in any way (lock icon click in Whisker, timeout, xflock4 command), the screensaver starts. If I move the mouse or press a mouse/keyboard button, the unlock dialog appears. The monitor... | Prevent lightdm from turning off screen when locking session |
1,455,898,365,000 |
If I restart the Display Manager, e.g lightdm, will X be restarted as well ?
|
It depends on your configuration: you can have X-window Server started by itself and then the Display Manager process or Display Manager could start the X-window server.
I have X server started by kdm in OpenSuse 12.1:
kdm(4655)─┬─Xorg(4671)
└─kdm(4698)───startkde(4800)─┬─gpg-agent(4877)
... | Does restarting of Display Manager (e.g lightdm) restart X server as well? |
1,455,898,365,000 |
Every time I boot my PC Ubuntu keeps dropping me to TTY 1 where I have to log in and then do
sudo lightdm start
just to log in again, which is very annoying
I have already tried removing and re-adding it to update-rc.d
update-rc.d lightdm defaults
but it just does not work.
Anyone got an idea which logfiles to chec... |
This is how I fixed this problem:
first you need to stop lightdm if it's running
sudo service lightdm stop
then you need to x server to create a fresh xorg.conf, I did this by renaming my old one
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.old
then I deleted my current drivers
sudo aptitude remove --purge nvidia-cu... | Lightdm won't start automatically on boot |
1,455,898,365,000 |
When I run in my gnome-terminal:
service lightdm status
everything looks OK and it is as expected:
lightdm start/running, process 1221
But when I run:
service --status-all 2>&1 | grep lightdm
the output is:
[ ? ] lightdm
which, because of ?, AFAIK means that the lightdm service doesn't have a status command.
No... |
This just seems to be a bug in the service script. The behaviour is different for --status-all than for a single process. For a single process, service just uses exec to hand over to the init script itself (in this case /etc/init.d/lightdm). Here is the relevant snippet:
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
e... | Lightdm service - contradictory results for `status` command |
1,455,898,365,000 |
I am using LightDM with the Slick Greeter. In my system, I have two user accounts for myself. They have the same name, but different user names. I want to separate private and professional work.
Problem: in the greeter, there is no visual difference between them. I only see the name (not the user name).
Hacky solution... |
Change your avatar:
create the image file as /home/username/.face
from: https://wiki.archlinux.org/index.php/LightDM#Changing_your_avatar
| LightDM: how to distinguish users with the same name? |
1,455,898,365,000 |
OS: Linux Mint 18.3 Cinnamon 64-bit.
I almost got a heart attack, after reboot preceding this; in an important VM:
sudo apt-get install lightdm
... I chose LightDM as the default DM ...
sudo apt-get purge mdm
I underestimated it as after reboot the LightDM failed to start. What's more I could not get to Virtual Cons... |
Following the official statement:
sudo apt-get install slick-greeter lightdm lightdm-settings apparmor
Did not yet get me to the result.
I had to create a file:
/etc/lightdm/lightdm.conf
with contents:
[Seat:*]
allow-guest=false
| What is the correct procedure to replace MDM with LightDM on Linux Mint? |
1,455,898,365,000 |
I am setting up Debian computers for my high school and I would like to somehow customize LightDM to display system and network information at the login screen.
The big picture is the following : people log into the computers thanks to LDAP authentication. But we have a non-optimal network situation.
First, the comput... |
Probably the proper way to do this is to write your own greeter (the thing that shows the "login:" prompt etc). If you are familiar with web technologies you might write your own webkit greeter as in this example.
Or you might try running an X11 application from the hook provided by lightdm. In the file /etc/lightdm/l... | Displaying system information at graphical login prompt |
1,455,898,365,000 |
I'm installing Arch Linux, but I have a problem with the installation of my display manager, lightdm.
When I install and enable lightdm, I think the keyboard layout changes from Portuguese to US.
Changing the keymapping with:
# localectl set-locale LANG=pt_PT.UTF-8
only works until lightdm launches, then the keymap... |
Ok, I have found the answer to my question, I believe that it can be applied to other languages than Portuguese.
The LightDM keyboard layout to Portuguese is done with this command:
localectl set-x11-keymap pt
I did this as root, and I think it is the right way, but you can do it has a normal user too, I believe.
I'v... | Change lightdm keyboard layout US to Portuguese Arch Linux |
1,455,898,365,000 |
I upgraded my OS to the latest version - Linux Mint 18.2 Sarah. After upgrading my NumLock is off. I changed my display manager from mdm to lightdm. this method is not working.
|
Jaleks' answer was only almost right for me, but this finally worked (Linux Mint 18.2 Cinnamon, manually updated to LightDM (from LM 18.1)):
Install sudo apt install numlockx, after that, edit /usr/share/lightdm/lightdm.conf.d/90-slick-greeter.conf file and add the following line at the end:
greeter-setup-script=/usr/... | NumLock is off on start-up on Linux Mint 18.2 |
1,455,898,365,000 |
At some point, in the past, I must have disabled lightdm service with:
systemctl disable lightdm.service
or something similar on my Debian with Cinnamon desktop.
Unfortunately, I will now need it, but running:
systemctl start lightdm.service
every time the computer boots up does not make me happy, so...
How do I re-... |
It looks like your service is masked.
To unmask it, run:
systemctl unmask lightdm.service
and afterwards, run:
systemctl daemon-reload
| How do I re-enable the lightdm.service? |
1,455,898,365,000 |
I changed my graphic cards from nvidia to a radeon R200 and now LightDM won't start even though I installed the new drivers.
I'm using Arch.
Can anyone please help me?
EDIT:
I can't copy the logs because I can't open my browser on my computer, for the lightdm logs I have "greeter display server failed to start" (I hav... |
The most likely cause is a missing or wrong driver. The arch wiki is a great source for how to solve these problems:
https://wiki.archlinux.org/title/ATI#Selecting_the_right_driver
| LightDM won't boot after changing graphics card |
1,455,898,365,000 |
I am using Linux Mint 19.2 Cinnamon, with ZSH as login shell for my user.
When I login, I see that my $PATH includes $HOME/.local/bin two times, even though it is specified only once across all my ZSH startup scripts (in $HOME/.zshenv).
I looked at the other dotfiles of my $HOME, and found the offending modification o... |
From the Arch-Linux Wiki page for lightdm (which I imagine may be valid for your situation in Linux Mint too):
If you are migrating from xinit, you will notice that the display is not launched by your shell. This is because, as opposed to your shell starting the display (and the display inheriting the environment of ... | Why does lightdm source my .profile even though my login shell is zsh? |
1,455,898,365,000 |
I just installed Mint 16 and I see that root user is not available at login screen. I log in from normal user and went to "Login Window" option and there I set "Allow root login". Then I restarted the PC and still I don't see root user in login window.
I also did the below but it also didn't work.
sudo passwd root
sud... |
Linux Mint 16 uses the Mint-X theme by default which only displays the password box for chosen non-root users. In order to enable the User entry field (from which you will be able to specify root) do this. From Menu ==> Administration ==> Login Window ==> Theme choose Clouds and logout.
| Enable root login from GUI |
1,455,898,365,000 |
I have Manjaro/XFCE/LightDM and a GeForce GT 710 and I followed this guide to get rid of tearing. I added those three lines to my X-configuration. After I log in in the greeter the screen only shows the background image and the mouse cursor. After I press Ctrl+Alt+F2 and Ctrl+Alt+F7 I can see the desktop and the appli... |
Update: I found another possible solution on the Nvidia forums: Delete the file ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml.
I have the same issue and narrowed it down to the Composition Pipeline setting. When it is enabled, the XFCE desktop does not become visible, but instead the LightDM background stay... | XFCE/LightDM: Tearing-Fix vs. No Desktop After Logging in |
1,455,898,365,000 |
I have stripped my full desktop debian 7 x64 to the bare, leaving just xorg and lightdm for a kiosk application.
I have changed the lighdm configuration to auto-login a user. When I boot, this works fine, xorg starts up and without prompt the user is logged in.
However upon login an xterm window starts in the upper l... |
In Debian xterm is automatically started if no window manager is selected.
Even if you have no slightest idea about who started xterm easiest way to find this out: as root rename /usr/bin/xterm to /usr/bin/xterm_. Create /usr/bin/xterm script:
#!/bin/bash
( echo $$; ps -f --forest ) >/tmp/xterm.txt
Than take a look i... | Who started xterm in my debian xterm+lightdm kiosk system? |
1,455,898,365,000 |
I have just installed archlinux on a virtual machine and I managed to install lightdm by following the instructions given in
https://wiki.archlinux.org/index.php/LightDM
https://wiki.archlinux.org/index.php/Display_Manager
but lightdm looks like this
But I want it to look like the default one in ubuntu
How can th... |
[The ArchWiki looks dead currently, so I don't know what is contained in the instructions you linked to.]
To change the looks of LightDM, you need to install a theme and configure it. This page suggests that the relevant Arch packages might be lightdm-unity-greeter or lightdm-webkit-greeter.
| ubuntu like lightdm in arch linux |
1,562,851,255,000 |
When typing backspace in an empty password box in lightdm, noisy beep sound comes out. Is there a way to mute this beeping?
|
One solution is to turn off the beep with xset b off.
This can be made to take effect for the lightdm greeter by adding it to the greeter-setup-script line of the lightdm.conf file at /etc/lightdm/lightdm.conf.
Edit your /etc/lightdm/lightdm.conf config file to look like the following:
[Seat:*]
# ...
greeter-setup-scr... | Disable beeping in lightdm |
1,562,851,255,000 |
I'm suspending my laptop very often, by manually calling pm-suspend command. Most of the times it works without problems.
However, sometimes it resumes with a blank screen. Either a reboot or issuing sudo /etc/init.d/lightdm restart on TTY1 (Ctrl+ALT+F1) makes it work, but I loose all of my unsaved documents and work... |
Root of the problem
It turns out that the exact problem was issuing a screen lock command while the laptop's lid is closed:
sleep 5s; physlock -d
Run above command and immediately close the laptop lid. Wait like 10 seconds, then open the lid. A password prompt will wait for your password input. When the correct passw... | LightDM sometimes resumes with a blank display after suspend |
1,562,851,255,000 |
As you can see in the image below, on login lightdm has a certain desktop environment pre-selected, and also has the option to switch over to others.
Where in the file system is this information stored? I do not see it in the /etc/lightdm folder, nor in /usr/share/lightdm, and from a cursory glance /etc/X11 doesn't ... |
On Debian and derivatives, display managers are supposed to offer to the user the session types described in .desktop files in /usr/share/xsessions and /usr/share/wayland-sessions. (Source: empirical observation and this thread, I can't find the authoritative document.) Each session manager or window manager package i... | Where does lightdm store its desktop environment settings? |
1,562,851,255,000 |
I have an Ubuntu 19.10-based distro with LightDM installed. I changed the username recently, but lightdm keeps displaying the old username. Is there a way I can fix this?
I have tried fiddling with /etc/lightdm/lightdm.conf with no success.
Attached are pictures demonstrating what I am talking about.
Is this a lightdm... |
It looks like the name batcastle is the username, while live is the so-called fingername. Both are stored in the file /etc/passwd. The username (that is the login name) is somewhat more complicated to change, because most likely you want to have the home directory called /home/$(whoami).
To change the username, use us... | Lightdm displaying wrong username |
1,562,851,255,000 |
Problem
I'm transitioning the configuration of my multihead monitors from using some rather ugly scripts to /etc/X11/xorg.conf.d/10-monitor.conf. My layout has two monitors of 1920x1200, one rotated left. The scripts were able to configure this just fine using the following command:
xrandr \
--output "DP-1" \
... |
What worked in the end was to explicitly set the virtual screen size and the preferred mode for both of the screens:
Section "Monitor"
Identifier "DP-1"
Option "Primary" "true"
Option "Position" "1200 360"
Option "PreferredMode" "1920x1200"
EndSection
Section "Monitor"
Identifier "DP-2"
Option... | X11 ignores preferred mode |
1,562,851,255,000 |
I'm using pam_exec to do some root tasks. They take some time, and I'd like to tell the user to wait a moment.
I'm doing the tasks there, and not later, because I need:
Root permissions
To rsync the home files from a server BEFORE anything gets loaded on the desktop
My problem is: I can't show a window displaying an... |
Instead of having the notifications occur in pam_exec, you could have pam_exec write to a file (like you are, with /tmp/pam_output), and have a separate daemon executed by lightdm before the user logs in, which monitors /tmp/pam_output and pops up a note when it sees new output. The background process run by lightdm ... | Display dialog from pam_exec environment at login? |
1,562,851,255,000 |
I've been using Awesome+LightDM with the GTK greeter on Arch Linux for some years, and I'm in the process of moving to NixOS. One issue with this has been the screen locker. I've mapped Windows-l to light-locker-command --lock. When activating that the screen goes black, then turns off. To get back to LightDM I have t... |
Set up a locker:
services.xserver.xautolock.enable = true;
, install xlockmore, then use it:
awful.key({ modkey }, "l", function () awful.spawn("xautolock -locknow") end,
{description = "lock the screen", group = "client"}),
| How to configure a useable screen locker in Awesome+LightDM+NixOS? |
1,562,851,255,000 |
Seen similar question many times on AskUbuntu, but most answers was bout unity-helpers or gconf ...canonical... etc, so this actually doesn't seem to work.
The problem is that I decided to move to lightdm from gdm.
Yep, it works,but I can't setup background image to it - always getting black bg color in exchange of p... |
Thanks all.
Seems, that it was some bug - in lightdm itself (meening package-specific or some libraries) or, possibly, it was simply installed with some errors/bugs. I'm now trying to install many different things, like compiz, awesome, enlightenment, lightdm and others, so can't be sure.
The fact is today both lightd... | Change lightdm background |
1,562,851,255,000 |
I'm trying to get LightDM to work but for some reason it just shows up a black screen when I get to the user selection screen, GDM works fine though.
I followed the ArchWiki doc and it's strange since it didn't involve any complex configuration:
Installed lightdm from yaourt (no errors)
On /etc/inittap changed d:3:in... |
>&/dev/null is bash syntax. If you have ash and not bash as /bin/sh (I don't know which is the default on Arch), you need to write it the portable way: >/dev/null 2>/dev/null or 2>&1 >/dev/null.
Check the system logs (ls -ltr /var/log, look at the recently modified files after you modify /etc/inittab). I might have gu... | LightDM shows a black screen in my Arch Guest VM |
1,562,851,255,000 |
I run XFCE on Debian with two monitors next to eachother.
The default positioning of the monitors is mixed up. I.e., when the mouse leaves the left edge of the physically left monitor it isn't blocked, but instead the mouse appears at the right edge of the physically right monitor.
Of course I want it the other way ar... |
Generating the command for the adequate configuration
Install the graphical tool arandr: beside allowing to change the current users's layout easily, it can save this current layout in the form of a shell script that runs the xrandr command with all the required parameters to recreate the same layout.
Example of gener... | Lightdm multi screen arrangement |
1,562,851,255,000 |
I'm using Debian Buster where I have Kerberos, LDAP and SSSD working. I was mounting my home directory on the client using NFS however I realized it was insecure. So I implemented Kerberos mounting.
However when trying to login through lightdm on boot it goes black and boots me back to the lightdm login screen with no... |
So I never found an error pointing me in the right direction. However I suspected id mapping was at fault due my user showing uid 1000 and the uid on the home directory showing 1000 too. After messing with config files and rebooting the server and client several times I solved the issue.
The Solution
Add the followin... | Can't read ~/.Xauthority after implementing NFS Kerberos mount |
1,562,851,255,000 |
I'm trying to start awesome windows manager as a subprocess of ssh-agent. It worked when I used startx (ssh-agent startx). But now I'm trying to make it work under lightdm.
lightdm starts /usr/bin/xinitrcsession-helper:
#!/bin/bash
exec $HOME/.xinitrc
~/.xinitrc:
ssh-agent awesome
And what I get is:
509 1 li... |
In your update you mentioned that you start xterm from xbindkeys and since you run
xbindkeys && ssh-agent awesome
bindkeys will not have the SSH-related environment, and as a consequence of that, xterm won't either.
To solve this, I would suggest
eval "$(ssh-agent)"
xbindkeys && awesome
Now, this would set the varia... | How do I use ssh-agent as a wrapper program? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.