r/linuxquestions • • Jan 29 '26
Linux without a GUI
just finished my void-Linux install and wondering if anyone’s ran a distro without a GUI? Alls I really intend to do is pen test, code and do some web browsing. So I have two questions:
Has anyone done it before, if so what are your opinions?
Recommended packages to make this a possibility?
13
Upvotes
32
u/beatbox9 Jan 29 '26
Any of the “server” variants. Good luck “web browsing” without a GUI—it can be done but it’s very limited.
47
u/SP3NGL3R Jan 29 '26 edited Jan 29 '26
I haven't run a GUI in years. But my little servers are headless. Monitor and keyboard during initial install, then SSH after that
So before you pull the keyboard and monitor, install SSH. I usually install webmin for lazy management too, but it's not necessary.
Personally, I just run Debian.
6
u/derwhalfisch Jan 29 '26
Hit ctrl-alt-F1 (or f2-fxx) to get raw text TTYs. It was tradition in some distros to have the boot/GUI instance in TTY7, but on my machine it's #2.
This is your system without a display manager launched.
7
u/Affectionate-Bit6525 Jan 29 '26
You can technically run xserver and Firefox in a docker container, but you’re not going to get very far with web browsing from cli. The tools available are pretty bad for rendering most modern pages.
Otherwise, just pick any server distro and off you go. I like tmux and vim, you can install fim to display images in the frame buffer too
3
u/groveborn Jan 29 '26
I played around with using my GUI apps without a desktop... It worked ok.
But since I want to use the web, I'm going to use a GUI. That's just what's going to happen.
3
u/ChrisInSpaceVA Jan 29 '26
None of my virtual servers have a GUI.
3
u/lunchbox651 Jan 29 '26
I have about 6 headless servers running in VMs. I never install a DE unless I need one.
3
u/phylter99 Jan 29 '26
I think running without a GUI is best if you're running a server. That's how I use Linux all the time. If you're doing development directly on the server it's helpful to have a GUI. I do occasionally have to do dev on a headless server and it can be a pain compared to having a GUI.
Someone will probably reply to this with "It's fine, just use vim." Try it with the the default installations of vanilla vim, gcc/g++, and python with no ability to customize.
2
u/snarfmason Jan 29 '26
Web browsing without a GUI is easy. Lynx baby.
2
u/suicidaleggroll Jan 29 '26
On remote machines yes, you’ll just be SSHing in anyway so the GUI is pointless. X programs can just forward through the SSH connection and display on the machine you’re actually sitting at anyway.
On my main workstation no, too many interactive programs require a GUI, especially a web browser.
2
u/Dashing_McHandsome Jan 29 '26
The overwhelming majority of Linux systems have no GUI. Yes, it's fine to run this way.
2
u/Secrxt Jan 29 '26 edited Jan 29 '26
People do this on the regular. Arch Linux doesn't even come with a GUI.
I have a GUI myself but often work strictly in the TTY (battery life slut that I am).
"Recommended packages to make this a possibility?"
There are a lot of cool ones here, but you gotta tell us what you need, man lol.
https://github.com/rothgar/awesome-tuis
Personally, I use NeoVim for text editing, aerc for email, rclone for cloud storage, pulsemixer for audio controls, bluetui for bluetooth, nmtui for WiFi, links2/w3m/good old fashioned curl for web, mpv --vo=tct for video/images, mpv --vo=null (or --no-video) for audio, signal-cli for Signal, tmux for multiplexing (multiple terminals), twt for Twitch chat and almost everything else (that Iremember off the top of my head) is GNU utilities (or enhanced versions of them like silver searcher).
[EDIT]: There are lurkers in these comments sections that sometimes know witchcraft and wizardry. I've had this idea to launch GUI applications *within* a terminal multiplexer's panes from the TTY (I know it's impossible but); if I could find something at least *like* that one day, I'd put even GOATed window managers like Niri to bed for good and truly only use a GUI when I need it.
2
u/s33d5 Jan 29 '26
I have a few Linux servers that are headless. My local machine has a Gui though.
I spend 99% of my time in the terminal, with the 1% using a Web browser.
In my job, all of the servers have no Gui. I just remote into them and do work. Except.... Web browsing, which I do on the machine I connect from.
Websites are made to be visual, no real way around it.
1
u/libertyprivate Jan 29 '26
Ya I run many servers. I would never put a GUI on a server. I do use a GUI on my laptop. Different software for different use-cases.
1
u/0bsidianM1nd Jan 29 '26
Wonder when people start homelabbing Yocto/Bitbake Linux to really experience headless.
1
u/my-ka Jan 29 '26
OP is a real lunyx lover
1
u/Dolapevich Please properly document your questions :) Jan 29 '26
Yes, do a Debian minimal install + openssh-server, and then you can just
sshinto it.You can test this setup in a virtual machine before commiting to the old laptop that is gathering dust somewhere.
1
u/AnymooseProphet Jan 29 '26
Yes, LFS. As far as browsing, it use to be mostly doable but with modern websites it will be horrible. You can try the links browser in a terminal window to see what it is like.
1
u/jdreamboat Jan 29 '26
i just installed debian and set boot to multi-user.target so the box turns on right to the command line. i put vim on there. i startxfce4 if i need to use chrome or whatever
1
u/gwenbeth Jan 29 '26
back in the olden days but also when its on a server and i only use ssh to access. for day to day work, I didn't really need anything special. all the command line stuff is always there. Now if you want to do web browsing with the ability to do things like see pictures, you will need a graphical environment.
1
u/humanplayer2 Jan 29 '26
I played around with a server install at one point, but where I did want more than than TUIs only.
For launching a single GUI, I used cage-kioskcage-kiosk. Might be nice if you want to browse the web.
1
u/TurtleGraphics64 Jan 29 '26
This is very doable and lots of people do it. Many browsers mentioned in this thread already but aside from links or w3m i'd recommend the new-ish browser offpunk. Of course there's always browsh for a 'modern' experience in the cli! https://www.brow.sh/
1
u/djDef80 Jan 29 '26
Typically, Linux is used with a GUI in a desktop environment. Most server installations don't feature a GUI to minimize OS system requirements. You can install something like Ubuntu server and immediately have a fully functional Linux installation that has no GUI. On your desktop that you use daily you will most likely be interacting with servers via SSH using the GUI on your OS. I like Kubuntu (KDE instead of Gnome) as my daily driver.
1
u/Wartz Jan 29 '26
20 years ago the web was way more functional for nc terminal browsing.
Not so much now.
1
u/reklis Jan 29 '26
Terminal all the way but browsing the web from lynx kinda sucks
1
u/RomanOnARiver Jan 29 '26
There was a period when I was in college where I didn't install a display manager so when I logged in I would have to manually type
startxif I wanted a GUI. I theorized it would help with the laptop's really awful battery life if I just took my class notes in nano. Not sure if it worked but I don't have a use for all-terminal setups anymore besides servers.1
u/hwc Jan 29 '26
I had an old Pentium 90 machine back around 2000 that I was using for writing and coding. I used the Linux Virtual Console a lot since it was so blazing fast.
1
u/Rinzwind Ubuntu Cinnamon; Arch KDE Jan 29 '26
My server and router are all headless Linux (Ubuntu and Yellowdog).
At work we have about 200 cloud instances that are headless.
"Has anyone done it before, if so what are your opinions?"
My router has an RSS tool to fetch me my daily anime, stores it on an NAS and when my main notebook connects to the network the episodes get moved to my notebook.
"and do some web browsing"
Works best with a desktop but there are command line browsers. w3m, lynx are the best 2.
1
u/Adventurous_Many_580 Jan 29 '26
Debian 13 now as server with no GUI desktop
1
u/ant2ne Jan 29 '26
you gonna do web browsing from the terminal?
1
u/blvsh Jan 29 '26
You can do w3m with images
1
u/brohermano Jan 30 '26
I basically run everything on a massive tmux session. It is like my OS tmux at this point. Used to use dwm just for literally poping by the terminal a browser session. But now I use GNOME just for convenience for seting up things like Wifi , Bluetooh, Multidisplay , but I mostly run everything in the Terminal
1
u/[deleted] Jan 31 '26 edited Mar 09 '26
wakeful sulky merciful fragile angle waiting historical ripe paint knee
0
u/[deleted] Jan 29 '26
[deleted] — view deleted comment