How to setup CLI + browser only? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Mr.Panda
Posts: 16
Joined: Tue Oct 19, 2021 11:11 am

How to setup CLI + browser only?

Post by Mr.Panda »

Hi,

My project is based on Node-RED. So, I only need CLI and web browser, as I am trying to optimize power usage.

Currently, I am running Pi with minimal DietPi image. How can I set such a system?
Last edited by Mr.Panda on Thu Nov 25, 2021 12:40 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 6458
Joined: Sat Nov 16, 2019 12:49 am

Re: How to setup kernel + browser only?

Post by Joulinar »

Not sure what you mean by setting up kernel. Each and every system has a kernel, otherwise it would not work? There is no need to do anything on this.

For the browser you could instal Chromium only. This should allow to run on kiosk mode.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Panda
Posts: 16
Joined: Tue Oct 19, 2021 11:11 am

Re: How to setup kernel + browser only?

Post by Mr.Panda »

I meant CLI.

So even if there is only CLI, browser will open?
User avatar
Joulinar
Posts: 6458
Joined: Sat Nov 16, 2019 12:49 am

Re: How to setup kernel + browser only?

Post by Joulinar »

installing Chromium only, will automatically pull/install all required components to open the browser on CLI as well. Even without being on a full desktop. That's the so called kiosk mode for Chromium.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mr.Panda
Posts: 16
Joined: Tue Oct 19, 2021 11:11 am

Re: How to setup kernel + browser only?

Post by Mr.Panda »

Thanks for the clarification.
Mr.Panda
Posts: 16
Joined: Tue Oct 19, 2021 11:11 am

Re: How to setup CLI + browser only?

Post by Mr.Panda »

When I try to run the browser I am getting the following errors:

Code: Select all

root@DietPi:~# chromium-browser
/usr/bin/chromium-browser: line 134: lsb_release: command not found
/usr/bin/chromium-browser: line 135: lsb_release: command not found
dpkg-query: no packages found matching bluealsa
Trace/breakpoint trap
I have found some lead in Pi forums, will update here If I can fix.
User avatar
Joulinar
Posts: 6458
Joined: Sat Nov 16, 2019 12:49 am

Re: How to setup CLI + browser only?

Post by Joulinar »

pls share some more details on your system

Required Information
  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Joulinar
Posts: 6458
Joined: Sat Nov 16, 2019 12:49 am

Re: How to setup CLI + browser only?

Post by Joulinar »

OP opened a duplicate issue on GitHub https://github.com/MichaIng/DietPi/issues/4990
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply