Hi folks,
Questions re: Raspbian Lite; is it possible to launch Apps with GUIs from the command line with the default build or would the user need to install a full desktop environment to enable this i.e. RPD, LXDE etc.
Thanks in advance,
Re: Raspbian Lite questions
Im pretty sure the best UI your going to get from commandline is going to be
this menu is about as good as your going to get maybe other than
Either way I would recommend downloading the desktop IP and only turn it on if you need a UI
Code: Select all
sudo raspi-config
Code: Select all
top
Ask Me About:
Plex Media Server (PMS)
RasPlex
Plex Media Server (PMS)
RasPlex
Re: Raspbian Lite questions
Code: Select all
sudo apt-get install xserver-xorg-core xserver-xorg-input-all xserver-xorg-video-fbdev libx11-6 x11-common x11-utils x11-xkb-utils x11-xserver-utils xterm lightdm openbox
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Re: Raspbian Lite questions
Thanks, I think this was the answer I was looking for. I'll give it a shot.
Is it standard practice to install a full desktop and then disable it as opposed to installing only the components needed to run X11 apps?
Thanks,
Is it standard practice to install a full desktop and then disable it as opposed to installing only the components needed to run X11 apps?
Thanks,
Re: Raspbian Lite questions
Nope, this is just a kludge because fat images are so popular with Raspberry Pi users.
ghans
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Re: Raspbian Lite questions
If you have the space on your SD card Im not sure I see the problem, It is nice to have every once and a while.
Ask Me About:
Plex Media Server (PMS)
RasPlex
Plex Media Server (PMS)
RasPlex
Re: Raspbian Lite questions
I think I understand where you're coming from. I had the idea to install Raspbian Stretch Lite on a Pi Zero W, and thereafter live in the CLI, only installing programs that were relevant to that environment (e.g., cmus, ELinks, rtv, mc, etc.). I'm new to GNU/Linux, and wanted to totally immerse myself in the CLI, only touching a GUI when absolutely necessary. Since I'm still learning the command line, I experiment with commands like "cat" and "see", but find certain problems along the way: opening .pdf's, mounting a usb drive to transfer files, etc. As mentioned above, "raspi-config" is a great tool for the basic set-up. My short term solution, until I get a better handle on the CLI and Bash shell scripting, is to install the full Raspbian," sudo apt-get remove --purge" all of the educational programs and games, and then adjust the settings to boot to the command line, upon starting. In the meantime, I'll peruse the "man", "info", and "apropos" pages, learning as I go.
This approach reminds me of a mechanic, popping the hood, and revving the engine from the other side of the accelerator.
This approach reminds me of a mechanic, popping the hood, and revving the engine from the other side of the accelerator.

Re: Raspbian Lite questions
I see, I think a compromise between the two would be to install Raspbian Lite and then add RPD as per GhostRaiders guide This way any apps I use would have the necessary dependencies already rather than having to install them as I go.
Re: Raspbian Lite questions
as a mechanic by day I feel this statement!
Ask Me About:
Plex Media Server (PMS)
RasPlex
Plex Media Server (PMS)
RasPlex
-
- Posts: 196
- Joined: Sat Dec 27, 2014 2:41 pm
- Location: Staffordshire, UK.
Re: Raspbian Lite questions
i have tried this approach in the past and found it difficult to remove all the "not wanted on voyage" stuff. I now find it is much simpler with a RPI 3B+ and the latest version of Stretch-Lite to just doSOCSBC wrote: ↑Thu May 31, 2018 4:30 pm. My short term solution, until I get a better handle on the CLI and Bash shell scripting, is to install the full Raspbian," sudo apt-get remove --purge" all of the educational programs and games,
This approach reminds me of a mechanic, popping the hood, and revving the engine from the other side of the accelerator.![]()
Code: Select all
sudo apt install raspberrypi-ui-mods
Ronnie
Re: Raspbian Lite questions
Piclone is really brilliant, isn't it? I can now keep copies of my copies, and backups of my backups!

-
- Posts: 196
- Joined: Sat Dec 27, 2014 2:41 pm
- Location: Staffordshire, UK.
Re: Raspbian Lite questions
@SOCSBC
Piclone has certainly proved usefu,l but my top ten tip is pishrink
Ronnie
Piclone has certainly proved usefu,l but my top ten tip is pishrink

Ronnie
Re: Raspbian Lite questions
Man in a van wrote: ↑Fri Jun 01, 2018 4:22 pm
Piclone has certainly proved usefu,l but my top ten tip is pishrink![]()
Ronnie

*Bookmarked*
Thanks!
- DougieLawson
- Posts: 40469
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: Raspbian Lite questions
Where's the URL for PiShrink?Man in a van wrote: ↑Fri Jun 01, 2018 4:22 pm@SOCSBC
Piclone has certainly proved usefu,l but my top ten tip is pishrink![]()
Ronnie
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
-
- Posts: 196
- Joined: Sat Dec 27, 2014 2:41 pm
- Location: Staffordshire, UK.
Re: Raspbian Lite questions
Hi Dougie
I got it from here,
https://github.com/Drewsif/PiShrink
I have a rpi 3B+ with a 64Gb card and mostly use it to reduce the file size on any OS images I make for different media servers (mostly for LMS).
I just make a new directory on the pi, do the install and chmod and then add which ever file I want to shrink.
Then run
The shrink time is not so long as the time to transfer the file in and out of the pi but as I don't do it very often it's no real problem.
I think it will run on a Linux set-up (inside a VM as well) but I haven't tried that yet, also, on the pi, it might be able to run on a file on an external USB stick, but again, I have not tried.
I have found it very useful, hence the more detailed answer, as that might help others.
Regards
Ronnie
Edit: Ashamed by displaying my laziness I copied a file to a usb stick, popped it into the pi and, indeed, it does work.
I got it from here,
https://github.com/Drewsif/PiShrink
I have a rpi 3B+ with a 64Gb card and mostly use it to reduce the file size on any OS images I make for different media servers (mostly for LMS).
I just make a new directory on the pi, do the install and chmod and then add which ever file I want to shrink.
Then run
Code: Select all
sudo ./pishrink.sh name of file.img
I think it will run on a Linux set-up (inside a VM as well) but I haven't tried that yet, also, on the pi, it might be able to run on a file on an external USB stick, but again, I have not tried.
I have found it very useful, hence the more detailed answer, as that might help others.
Regards
Ronnie
Edit: Ashamed by displaying my laziness I copied a file to a usb stick, popped it into the pi and, indeed, it does work.

Last edited by Man in a van on Sat Jun 02, 2018 2:30 pm, edited 1 time in total.
-
- Posts: 369
- Joined: Thu Mar 28, 2013 9:19 am
- Location: Nottingham, UK
Re: Raspbian Lite questions
Steve S
No, I can't think of anything funny that won't offend someone if they want it to...
No, I can't think of anything funny that won't offend someone if they want it to...
Re: Raspbian Lite questions
The obvious answer to this question is: OF COURSE, it is possible to run X applications (i.e., X clients) on a CLI-only machine without installing an X server. I do it all the time.
Have people forgotten how the X computing model is defined?
Have people forgotten how the X computing model is defined?
"L'enfer, c'est les autres"
G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:
Epmu Sn!
J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!
G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:
Epmu Sn!
J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!
Re: Raspbian Lite questions
Could you expand on this? The kind of X apps I'd be running would be GUI driven office apps
Re: Raspbian Lite questions
I believe he is talking about X forwarding. You install an X server on Windows (XMing).
Then you SSH into your Raspberry Pi. You start an X client on the Raspberry (almost all graphical programs on Raspbian are X clients by definition). With X forwarding, the graphical output (window) will pop up on your Windows machine, since the X server provides a surface for X clients to draw on. This terminology is the opposite of what people used to VNC or RDP expect.
This should of course also work without any X server running on the Pi itself.
ghans
Then you SSH into your Raspberry Pi. You start an X client on the Raspberry (almost all graphical programs on Raspbian are X clients by definition). With X forwarding, the graphical output (window) will pop up on your Windows machine, since the X server provides a surface for X clients to draw on. This terminology is the opposite of what people used to VNC or RDP expect.
This should of course also work without any X server running on the Pi itself.
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Re: Raspbian Lite questions
Not necessarily.
But, yes, that is one way to do it.
But, yes, that is one way to do it.
"L'enfer, c'est les autres"
G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:
Epmu Sn!
J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!
G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:
Epmu Sn!
J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!
Re: Raspbian Lite questions
Here is a simple guide for X forwarding (with screenshots !).
https://www.cpdforteachers.com/resource ... spberry-pi
ghans
https://www.cpdforteachers.com/resource ... spberry-pi
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org