DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558
Rep:
Start X will not start the GUI
Greetings, I downloaded a bare bones copy of Debian, Looks like its Debian GNU/Linux 10 (buster) and all it does on start up is it brings me to a prompt in a bash shell.
I downloaded all the suggested packages suggested by a web post I found which took over an hour, like about 1,200 packages. But when I keyed in 'start x' or just 'startx' the gui doesn't come up. The GUI was supposed to be KDE. Command startx returns 'command not found'.
A further post suggested keying in XINIT first then the Start X command. This returns same results. After trying a number of things, one time I got '$DISPLAY' not found or not configured.
I'm hoping some one out there can help resolve this problem. Thanks.
~$ startkde
drwxr-xr-x 1 root root 512 Mar 31 12:18 .
drwxr-xr-x 1 root root 512 Mar 31 12:40 ..
-rw-r--r-- 1 root root 2353 Feb 13 2019 plasma.desktop
root@win10-64bit:/usr/share/xsessions#
$DISPLAY is not set or cannot connect to the X server. Where would I find the '$DISPLAY' file?
In /usr/shr/xsessions is an entry 'plasma.desktop'
I also created a file in my home Directory .dmrc with the following entry
[Desktop]
Session-kde.plasma
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558
Original Poster
Rep:
I did read the doc suggested in the last post but it still isn't working. System comes up at a user prompt for Bash.
After checking I have posted the version of Debian which is V10.
Based on the information which I provided, and I hope this is enough, I need to know which files need to be fixed to be able to use the startx command to start kde. All the KDE components appear to be installed.
". Command startx returns 'command not found'."
as ondoho asked,
xorg, and xorg-init, xinit installed?
did you create a .xinitrc file and chmod +x .xinitrc?
in that file did you add something like this?
Code:
#!/bin/sh
# xinitrc.xfce - modified to work around xfce4session bug
# https://bugzilla.xfce.org/show_bug.cgi?id=8841
########################################################################
## Merge in defaults and keymaps ##
########################################################################
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
/usr/bin/xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
/usr/bin/xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
/usr/bin/xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
/usr/bin/xmodmap $usermodmap
fi
########################################################################
## Start xfce Desktop Environment ##
########################################################################
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
else
exec dbus-launch --exit-with-session /usr/bin/startxfce4
fi
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.