Autologin for ubuntu (Yocto image) - autologin

Can anyone please help me in finding out how to setup auto login for ubuntu having yocto image?
Do I need to make any change in any of the recipes or any of the file in /etc/init.d/.. or similar file?
By auto login I mean avoiding logging prompt after booting up.

Just looking at image.bbclass I see a function called set_image_autologin() which looks in /etc/sysconfig/gpelogin for a variable AUTOLOGIN. I haven't tried this, but try setting AUTOLOGIN=true.

Related

Autoinstall custom Linux image

We are facing now a new challenge, how can we autoinstall a Linux image I created.
I am installing my custom Linux image on a Windows 10 Mini pc. I would like the auto install to run on boot for a security and automation reasons.
I used Clonezilla in order to capture and restore a custom image. It worked with S3fs as well.
I tried to enable PXE, but it didn't work. From a screen that says PXE..... I just went again to Windows loading logo.
So the process:
I created a custom image with all the dependencies and services I need in order the application to run, I captured it with Clonezilla and restored it with the same open source application. It was great. Now we would like to automate the process as much as we can in order to deploy the image on a verity of physicals servers.
My main issue right now with Clonezilla is that in order to restore from S3 for example I need to use S3fs and I have to create a credentials file with my access key id and secret access key each time I restore an image. Repetitive and insecure.
I explored the idea of autoinstall the image with PXE over the internet, interesting but I haven't fully understand the process.
We are not cancelling an payment application, if it's stable and provide support.
If anyone know how I can create a new Clonezilla image with my AWS credentials file exist it could be helpful, if anyone can share his experience with auto install custom image over the internet with PXE it would be helpful, or even an experience with a different tool that works for you, I would love to hear about it.
Please le me know if I need to add addition information and details or if this is not the right thread for this question.
Thank you for your help

Login issue in Beaglebone Black using Linux Kernel 4.4.115 and systemd

I managed to compile with success the Uboot(U-Boot 2019.04), Linux kernel(4.4.155)and root file system(systemd 249) using the Buildroot-2021.11.1 on the Beaglebone Black. It was able to boot successfully until the login prompt. However, it seems like there is an error with the login prompt it does not want to enter, just looping around the login prompt after I have entered the login name (not showing the password prompt). Did anyone know about this issue?
Thanks.
The problem is resolved.
I have missed out 2 important settings in Buildroot menuconfig menu which is BR2_PACKAGE_SYSTEMD_LOGIND and BR2_PACKAGE_UTIL_LINUX_LOGIN.
These two (or at least one) need to be set in order to login to the system properly.
Thank you

simple server in linux

i am a new linux user and i am trying to connet to the internet via my mobile subscription (blackberry) on my previous windows installation all i do is run a simple server program which executes the contents of a .ini file and change my proxy settings to 127.0.0.1:8080
please is there any way to make such a program or script on linux.... i would really appreciate any help with that. thanks :)
i have attached a photo of it here to clarify my question.... photo
the windows executable of the program is here
I hope I understood your question well.
You need to set environment variables http_proxy and https_proxy
export http_proxy="http://proxy-server:port"
export https_proxy="https://proxy-server:port"
Here's a link where you can read more, http://www.shellhacks.com/en/HowTo-Use-a-Proxy-on-the-Linux-Command-Line , but there are lots of sites with info.

Bamboo 5.5.0 - How to delete a remote agent's capability via the bamboo-capabilities.properties file?

I am currently trying to automate the process of bamboo remote agent installation and uninstallation. I have run into a problem in regards to adding and removing capabilities.
What I am trying to automate:
(The following is what I do on the bamboo server via the GUI, I want to do this on the remote agent machine via bash script.)
I install the remote agent on a VM machine, then start it up. I go to the bamboo interface and click on the newly created agent's name.
I add a custom capability type, for the key I put 'buildserver' and for the value I put the name of the agent.
I add an 'Executable' capability of type 'Command' with Executable label 'cygwin' and path 'C:\cygwin64\bin\bash'
I navigate to the git executable, and remove it by clicking 'delete.' <--- (the problem step)
what I've done.
I have looked here and found a way to automate steps 1-3 using the following "bamboo-capabilities.properties" file:
buildserver="AGENTNAME"
system.builder.command.cygwin="C:\cygwin64\bin\bash"
However I am stuck on how I would remove the git capability (step 4.) I've tried something appending something like this to the file:
system.git.executable=""
but it does not seem to do anything. Does anyone know how I would do this? There seems to be very little documentation about this online.
Thanks very much.
I never found a way to get around this, but I found a workaround. I later learned the point of removing git in my situation was to allow a shared capability that was also called git to take precedence. My workaround was to set the non-shared capability to the value of the shared capability. I am not 100% sure that this does the same thing, and I am not in a position to test it yet, but as a capability seems to be only a key-value pair I don't see why it wouldn't.... will update if anything breaks.

How to include 'dialog' command into Linux kickstart?

I am trying to use Linux command 'dialog'(1) (/usr/bin/dialog) in my kickstart script (ks.cfg).
However the initial running system does not have it during installation.
It seems even many of the running systems don't have dialog command either.
But I have a DVD with ks.cfg which uses dialog and installs well.
Can someone please figure out how to make it available during installation?
I checked initrd of the DVD I mentioned above which has dialog included; it is not there.
And please, if someone is going to move this question to server fault, can you leave it here for a few days? I wish more people can see this question for I found kickstart related questions don't get answers soon.
Thanks!

Resources