Startx only works with sudo. xinitrc works, I guess xserver now works.

Startx only works with sudo Sep 26, 2019 · Linux - Newbie This Linux forum is for members that are new to Linux. At some point I figured since exec xterm in . root will create files which will be owned by it, which others can't access. How do I fix this error? Apr 11, 2019 · It worked but my user does not work. I see that init 3 still works in my system but it succeeds only once, likewise systemctl. Jan 2, 2021 · Once logged in as non-root-user, I want to start my GUI (Openbox) via startx and have it login as the non-root-user by typing: sudo startx. log. From my initial Octopi/Octoprint install, I did all the OS updates, installed lightdm, installed Xinit and tried sudo startx. 启动图形界面:”startx”命令用于启动Linux系统的图形界面。 当你在终端中输入”startx”并按下回车键时,系统将尝试启动默认的窗口管理器(如GNOME或KDE)。 Jan 17, 2017 · It seems to be one of the following packages, because if i exclude them from upgranding , startx works fine: apt-mark hold x11-common xarchiver xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-evdev xserver-xorg-input-synaptics xserver-xorg-video-fbdev lightdm lxinput lxkeymap lxterminal Nov 2, 2019 · Actually, the problem was me using the LTS Kernel, but actually the Intel UHD 620 seems only to work with the normal kernel. Then it comes up with the same thing in the beginning, only instead of (none): 0 it says (cherrypie): 0. To solve this, just run login instead of su to start a new shell as a top process. Jan 20, 2023 · Try running type startx in your normal Terminal and you'll see the full path to startx. sudo rm -f ~/. enabling early KMS did not work for me 2. But when doing the exact same thing in Bookworm (Debian 12) there is only a black screen, no cursor. See also: Mastering the Linux Command Line — Your Complete Free Training Guide SSH works well. Jan 10, 2019 · I enabled 4K@60 composite in raspiconfig via ssh but that didnt help either. When I set it up, turn it on, and get to the part where I need to type in the "startx" command and press enter it does not wo Mar 25, 2017 · Hi, Is there a way to disable ubuntu GUI? I almost do not use its GUI, I was wondering if there is a way to disable it (not uninstall, in case I will need it for future) . Mar 4, 2013 · Can you tell me how to make a user that can start "startx" (the gui ) from a command prompt where the user does NOT have sudo privileges? If you can answer this you are truly awesome. Aug 3, 2021 · Between this I read the ^Xinit#xserverrc stuff in the link there. If I hop to TTY4, log in and do exec startx I can get a session, too. xinitrc, manage without a window manager, ideal for lightweight systems. If you use "sudo startx" your Desktop will be running as the root (administrator) user than the pi user. (and no browser in my actual setup). If I login as my user, and then do sudo startx, I get the blank screen too. Aug 3, 2012 · When I start Ubuntu it enters tty[1-6] instead of my desktop. It is a widely used and probably well tested and supported solution. g. 04 Minimal (on USB stick) so that most of the time terminal is used, however, whenever there is a need to enter GUI, I may issue startx command to go into gnome. Booting with kernel 5. 0-17-generic on Linux Mint 14 Nadia (XFCE). I had several VMs that would either login loop or startx of startxfce4 would terminate. s. dwm still didn't run through it. xinitrc. local but didn't work! the only thing that is work is putting startx without any addition on /etc/rc. It was just crashed immediately I think. Jan 2, 2024 · Introduction to sudo command sudo command in Linux stands for Super User DO. Nov 23, 2017 · It is typically the job of display manager to show a login screen and start a user session. This works perfectly fine. Nov 3, 2009 · When I login as a normal user and type "startx" I get nothing (black screen). Xauthority file then run ´startx´. sudo startxfce4 does works perfectly but it logs me in the graphical mode as root. If you do, you will have to change the owner of some hidden session files in your home directory to not be root May 6, 2020 · Hang on though, you say you have confirmed that sudo startx ~/. Then I decided to see what would happen if I commented out the xclock line in /etc/X11/xinit/xinitrc file. With sudo, you can access the root privileges without knowing the root password or logging as the root user. (it then shows the browser but I didn't include it to simplify). 1 MB) Apr 29, 2020 · I have built a htpc with console installation of debian 10 kernel 5. In that case, no X for you. The error resulting from startx included this line: This was the solution: You must log in to answer this question. Xauthority required for X session login by xauth NEVER use sudo for opening graphical applications. I should clarify that the black screen with only my mouse cursor happens directly after boot (the mint logo). Before I try to run startx both Bullseye and Bookworm will show the command Sep 1, 2012 · Could you have a look through the output from startx, ~/. Return to tty1 and I can see lightdm running, process xxxx. I am still able to use for example Ctrl+Alt+F3 to go to tty3 and if I execute startx there it works as expected. I'm not sure what Apr 11, 2019 · Solved, but not quite sure how I can now start/stop the GUI at will. conf to allow users to do this. xinitrc works, and executes ~/. startx is located in /usr/bin/startx. Sep 25, 2017 · 0 RaspberryPi2 with official RP 7" screen. I'm now running 3. I have installed Raspberry Pi OS with Desktop which I want to use with TeamViewer and of course ssh. If that doesn’t work, you can try using the "startx" command, but be cautious as it may not be as stable. i. When I run startx under the root account, or using sudo, it works but I get this odd black screen with a bunch of terminals open, where the mouse doesn't work Dec 5, 2016 · 1 Running startx only makes sense if you are in front of the computer. output of the normal startx on the console: (first line is outputted by me, this is the command I run) Feb 19, 2019 · - sudo service mdm stop kills my boot session x window (if it works at all) - sudo stop mdm errors out - startx -- :0 didn't work - I won't list all the other things I tried - I don't want to leave this window and start a CTRL-ALT-F2 for instance. Jul 10, 2022 · 本文详细介绍了Ubuntu 20. 04. The user needs to have the sudo After removing everying and running "xbps-install xorg xterm openbox" I can get something with the command "sudo xinit" which produces an X session with an X-term box, from which I can run "openbox-session" and turn that box into a window. Oct 5, 2018 · Your sudo is likely configured not to change the $HOME environment variable. After that a black screen is shown. EDIT1: Just logged in to the session using sudo startx, still don't know why it is not working from the login screen. From the terminal in an existing xsession, I can do exec sudo startx to get a new x session in TTY8, logged in as that user. I tried sudo apt-get install ubuntu-desktop but it fails. Currently it starts as a root user and all apps such as terminal, mousepad etc. It worked well in L4T 23. But the login screen still stuck on a login loop if I log out or reboot. Very frequently, when the video driver does not load correctly on nvidia cards, the partially initialized GUI hangs and leaves the keyboard in an unusable state, so the ctrl alt Fkey sequence doesn't work (actually, even caps lock Nov 29, 2013 · Two days back, I out of curiosity, fired up a terminal and typed in startx, with the hope that the UI would be reduced to naught but the _original form _of the X. Does anyone the minimum I need to do to get XWindows running so I can run up a browser ? Feb 4, 2017 · 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. installed another startx (sudo apt-get install xserver-xorg-legacy)which i can start only with "sudo startx" but same errors. update-rc. I tried to write sudo chown -R pi:pi /home/pi, but it did not help. Now if I 'startx' using the reboot option on menu gets through the shutdown sequence to the 'system halted' ok. Why could that be? It could be that you configured just the root account and not your user account. Upon successful authentication, the command is executed with superuser privileges. gz (1. Jul 29, 2016 · Hi All, I have just found that X11 form L4T 24. Dec 24, 2018 · xfce4: sudo startxfce4 - all good, but only startxfce4 - fail. Aug 26, 2015 · Topics: Active | Unanswered Index » Newbie Corner » [Solved] Startx work only as root Pages: 1 Apr 21, 2021 · I have a PC I am dedicating as a server for Minecraft. This blog post aims to provide a detailed overview of `startx`, including its I can then switch to any terminal I'd like, log in and start X with startx. , GNOME or KDE) are installed: sudo dnf groupinstall "Server with GUI" If not installed, use the above command to install it. Oct 24, 2021 · My keyboard and mouse stop working after I execute startx but only in tty1. If I do it from normal user it will get me to the same black screen. Please give us more details about what you did. Now I'm unable to login Mar 23, 2014 · The only solution I found is to run startx as root, then it works but I shouldn't need to do that! Update 2 The best solution I found so far is to switch to virtual terminal, remove the . conf… Oct 31, 2016 · 7 startx is able to create a new X server in a new virtual terminal. 0. 0: -19 and nouveau kernel module doesn't get loaded - if I manually start nouveau and then startx, it works. I am currently backing up the home and reinstalling the system, but this is pretty worrying and I would really prefer to fix this system, especially as it should be rather easy. So im trying to dowload kali linux but when i login i got black screen yt tutorial says i need to open the terminal use sudo startx and then it… Sep 30, 2019 · Re: Desktop works, but only works after doing 'startx' by msseufert » Mon Nov 25, 2019 4:04 am Was you doing something and it started doing this after that? Like after an upgrade? or has it always done this? What is the output of: Code: Select all Aug 4, 2014 · I noticed another distinction that I hadn't mentioned yet: startx works only if I actually login to the system as root. In my case, here is what happened: sudo pacman -S i3wm i3 is a tiling window manager, and I find it a blast to work with, at least when you get used to the commands. 15 works at least partially. So where is the first call to startx? I want to know exactly which script is running startx. Currently, I can start a LineageOS virtual phone without issues with: sudo systemctl start waydroid-container west Jul 13, 2015 · Dud startx, then it said hostname: name or service not known. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place! Sep 29, 2019 · Try to rm ~/. How I got to this point: I installed Xorg, and startx works on its own. This way I even have no chance to disable it in xorg. Feb 4, 2017 · 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. Using startx when opening a terminal from the login screen works. Same if I 'sudo Dec 4, 2022 · To start the GUI from the command line in Ubuntu 20. xinitrc works, I guess xserver now works. I Jan 22, 2022 · Next thing I tried figuring out is why my window manager doesn’t work. Finally I enter startx so the desktop interface comes up. Feb 27, 2022 · I have done the following: udo apt update sudo apt upgrade sudo apt-get install xserver-xorg sudo apt-get install xinit sudo apt-get install x11-xserver-utils sudo apt-get install xterm But when I startx it simply hangs. Just did a fresh install yesterday and my i3 is not working correctly. sudo startx &, it still switches to the new virtual terminal automatically. The transition is complete and this forum is now closed to all new posts. As you have found out, it can be fooled by operating in a screen session. For me The startx command is a shell script that provides a user-friendly interface for launching the X Window System. However when I login as a normal user and type "sudo startx" xfce actually starts. Anyone needing support for Ubuntu or the official flavours should seek help at Ubuntu Discourse. e. Mar 25, 2017 · Hi, Is there a way to disable ubuntu GUI? I almost do not use its GUI, I was wondering if there is a way to disable it (not uninstall, in case I will need it for future) . But the process does not exist. , pretty much like respberry’s respbian, just use startx to start up guo when I do need it. So I press Ctrl+F4 to get into TTY. xinitrc and added a new line: exec i3 After that was done, startx was dropping me into a default i3 session. Here's what still isn't working: the session I get is a a working x session but without any launcher, top bar or Unity window management. BUT where does the startx command come from? How could I find out that it was startx I was supposed to write to get into the desktop on my own (without reading help/guides)? On another PI I have RetroPie with Jul 20, 2020 · I am trying to run X over ssh and would like to run the command startx, but I get this error: Only console users are allowed to run the X server I've dug around a bit and it seems either folks never want to do this or they're on linux and edit Xwrapper. I have had this issue before but now I have made a few new observations. Aug 13, 2022 · 0 Use startx command, if it doesn't work use: sudo apt-get --fix-broken install sudo apt-get update && sudo apt upgrade -y sudo reboot now Well, I can't think of a case where you'd want to sudo startx, can you give more details? Doesn't work as normal user? Nov 22, 2022 · Here is a breakdown of the most commonly used desktop environments and the codes you can use to start them with startx which will initiate X graphic server/client through Xinit (Server Launcher Program) and Xorg (Graphic Server). Feb 5, 2022 · When I first ran into it, I assumed it was something about the xorg. Oct 25, 2020 · A normal startx would not work with this, but the xserverrc script could be modified to add the igpu layout if no layout is passed when calling startx (the alias for igpux could then be omitted): I had several VMs that would either login loop or startx of startxfce4 would terminate. Switched to a different login screen gdm3 -­­­> lightdm by using sudo dpkg-reconfigure lightdm/gdm3 and issuing sudo init 5 to go back to login screen. Nov 23, 2017 · I tried to put each of these files one-by-ne inside /rc. May 3, 2021 · Do you have xinit installed? startx would work without sudo. xsession-errors and /var/log/Xorg. The only solution I found was to downgrade back to xorg-server and xorg-server-common version 1. Thanks. Try using that full path in your script. 5. Hello, Unregistered. patreon. I have used the following methods but none work correctly. Hi I want to boot Ubuntu quantal to a command prompt always and then use startx to launch x-windows if required. Mar 19, 2025 · I have Ubuntu 24. Xauthority. I want to solve this. Until recently there has been no support for GUI applications. seatd seems to be working Dec 30, 2016 · may be worthwhile doing a 'type startx' to find where it is and then looking at the permissions on it . I am wondering if you were following instructions for one of the SPI/TFT displays? p. startx works from here, startplasma-wayland or sudo sddm both result in total freeze and nothing showing. When I login in, I am able to run startx and everything works smoothly. 2 LTS and disk encryption. 04, you can reinstall the Ubuntu desktop package using the command "sudo apt-get install –reinstall ubuntu-desktop" and then reboot the system. The startx command only works under root. The desktop opens with the pie logo in the middle of the screen, I can see the mouse cursor and only the icon for the wastebasket top left of screen. Doing sudo startx or sudo su; startx makes the root owner of a file called . this worked, but doesn't survive reboot i noticed after exiting from Xserver there was a message that i didn't have xclock installed. Anyone knows why? Thanks! Sep 10, 2014 · Hello! I'm curious, how does startx work? When I boot my Pi and want to enter the desktop GUI, I type "startx", or use the raspi-config and set it to automatically boot in desktop mode. 2 Im fine using command line but I don't like only having one space to work. zip = success Installed Raspian Jesse using NOOBS v1_7_0. I want to automatically start kodi on system start and for Dec 31, 2017 · Hi, I have a weird problem that my pi 3 B model can't launch on startx command, black screen but will show GUI desktop and everything after sudo startx. To run it with startx, I commented out the last exec line in the . " At this point I have to restart my pc. Aug 18, 2021 · If I'm logged as root, or if I use sudo, I'm able to start X so I suspect that permissions are at the root of the problem . You shouldn't need to use sudo to run startx. $ sudo apt install xserver-xorg-core Note that with the latter you won't have the startx command (provided by bin:xinit but if you install it directly it'll pull all video drivers) and therefore will have troubles to start any graphical display. All times are GMT -5. The difference is when I run sudo startx from the user account, those three terminals are frozen and I can't type anything. but what should I do for to work via terminal without startX monitor using tightVnc? Or tightVnc works only via startX monitor? Excuse me for the noob question. Xauthority and started playing with that. Then nothing happened. sudo apt install --reinstall ubuntu Jan 20, 2023 · I would like to make a script to start the Waydroid Android container (LineageOS). 2 Identifier “DSI-0” in section “Monitor” cannot be recognized. The wastebasked icon jumps up and down a bit and the screen flashes a little. It is running Ubuntu Server 20. For instance, how did you get to a terminal to run sudo startx -- -keeptty -logverbose 99? Was Linux Mint Cinnamon already running when you typed that command? How did you reboot the computer after than? Did you reboot it from the terminal or did you use the Reboot button from the Cinnamon menu? May 28, 2012 · Did you "Make sure an X server isn't already running" by trying something like startx -- :1? Maybe a [g|x|light]dm process was already running and blocking DISPLAY :0. Is it normal to have to run xinit as sudo, or would that effectively be a root login? Oct 9, 2025 · How ‘sudo’ Works When you prefix a command with ‘sudo’, the system will prompt you to enter your password. 19. No wonder that startx doesn’t work. pstree -ph -u pi (while the X session is running) output may also be informative. Sep 30, 2022 · Re: Desktop works, but only after doing 'startx' by darkwarecookie » Fri Sep 30, 2022 9:21 pm Creating a new account fixes the first issue (no desktop icons). It acts as a wrapper around the lower-level xinit command, simplifying the process of starting an X session from the console. But then I tried again, and this time with a ‘sudo. With CTRL+ALT+F3 a (debian?) terminal comes up where I need to login on ubuntu (same as when the desktop interface was still working). At first it displayed an error, saying that i’m not permitted to. Also, if I try to sudo startx from the user account, I see three white terminals as I do when I start it from root. A help and support forum for Ubuntu Linux. But, once you did that, initializing to level 3 does not work anymore. Most likely the kernel image stayed, but kernel stuff was removed, therefore it can to switch to the real root. May 1, 2016 · When running this on Bullseye (Debian 11) everything works as expected: startx shows a black screen with a cursor. 1 even x32 bit version cannot detect correctly MIPI DSI display 720x1280. I want to be able to exit to exit this particular virtual windows x session if possible. The time now is 06:48 PM. d -f lightdm re Ubuntu: I run a command sudo startx and then I can only log in as a guestHelpful? Please support me on Patreon: https://www. Normally I could get back to the desktop by pressing Ctrl + Alt + F7 but that doesn't work. Mar 6, 2019 · 1. Killed all the xorg stuff, window manager, played in xterm. Apr 23, 2018 · Thanks for sharing your solution :-) There is a general rule to avoid running GUI application programs with sudo because it can 'hijack' configuration files for the regular user. I want to automatically start kodi on system start and for Jul 20, 2020 · I am trying to run X over ssh and would like to run the command startx, but I get this error: Only console users are allowed to run the X server I've dug around a bit and it seems either folks never want to do this or they're on linux and edit Xwrapper. i’ve blacklisted nouveau. Aug 27, 2012 · Maybe update your system (you're running a 2+ year old image that may not work with newer Raspberry Pis), then use raspi-config (that is one you need to do sudo raspi-config with) to enable startup straight to desktop. When invoked, startx first determines which X server to run (e. , Xorg) and which client application to start (typically an xterm or a desktop environment The weird thing is: When I type sudo start lightdm or just sudo lightdm, it will switch to tty7 and the screen flashes. Either way, run "sudo systemctl start lightdm" and/or "sudo systemctl enable lightdm" If you're running a flavor of ubuntu that uses the gnome display manager, replace lightdm with gdm. For me What's interesting is that you're trying to startx as user, while all files in /etc/X11/xinit/ directory are root owned (which is right, they should be root-owned). also 'id' to determine your groups . Testing for console ownership is one way to determine this. I just have to open the prompt screen with Ctrl+Alt+F3 and then use startx command. When I try to run startx under my user account through the tty, it starts to open up, then returns back to the terminal. com/roelvandepaarWith th Feb 9, 2015 · I can't start xorg as a normal user only root. ) To start the X Window System using `startx` in Red Hat Linux, follow these steps: Ensure the X Window System is Installed Verify that the X Window System and a graphical desktop environment (e. If you had one, it would be a path of least resistance to set it up to autologin. May 16, 2021 · i have a lenovo laptot with a nvidia gtx 1650ti and an integrated amd gpu fedora34 and kde, i use sddm, i installed the nvidia driver and after i set nvidia as primary gpu (option Primarygpu yes) i’m able to use nvidia as gpu but on startup i receive a black screen, if i switch tty and type startx all work fine. EDIT2: startx only works from root account or using sudo. d settings, but they seem okay and everything works fine when xserver-xorg-legacy is installed and needs_root_rights=yes is set and also works without xserver-xorg-legacy if I just use sudo startx to start as root, so I think it’s not that. After this, I get a black screen with a working mouse, and it doesn't seem to load the desktop. However, even if I run it in the background, ie. I've installed Kali Linux from a mini ISO network install on VirtualBox. I . I had some problems with TeamViewer and a headless system, but now Mar 15, 2024 · 执行”startx”命令是用于启动Linux图形界面的命令。 下面是关于执行”startx”命令的几点说明: 1. I installed it and startx works for me now as a non-root user. (That's why the screen flashes. I re Jan 26, 2016 · I successfully installed arch following the beginners guide on the wiki. Emergency mode operates on the ram disk and not on the file system. Btw I changed it to cherrypie in raspi config Oct 27, 2024 · If you get the "Oh No" screen during a major version upgrade, likely the upgrade was aborted, and you will need to play with apt to complete the upgrade process. Install the startx Command The startx command is part of the xorg-x11 The startx script is a front end to xinit that provides a somewhat nicer user interface for running a single session of the X Window System. A workaround is sudo -H, but there are other and safer ways to elevate the permissions. If your goal is to install a desktop environment, WSL is really not a good choice especially if you are "a beginner to Linux". all run as root. But it doesn't solve the second issue (having to do startx manually). I tried startx which started the x-server or x-window (not sure what it's called) but it just brought up a black screen with my mouse cursor. Formatted 16GB MicroSD using SDFormatterv4. If I run the startx command I get a blank screen only resolved by a reset button on the PC, but if I run startxfce4 command, my desktop and windows load immediately. Mar 10, 2016 · Now, xserver-xorg, an server-xorg-video-* package, and xinit are the only packages necessary for minimal startx installation, howeve the other packages are reasonable for a kiosk setup using real applications. Nov 14, 2025 · In the Linux ecosystem, the graphical user interface (GUI) is a powerful tool that enhances user experience by providing a more intuitive way to interact with the system. When I set it up, turn it on, and get to the part where I need to type in the "startx" command and press enter it does not wo Feb 20, 2017 · I know X11 will start through startx. This is an update about the transition of the forums to Ubuntu Discourse. log and see if something fails. TLDR: I got GeForce 1050 Ti with nouveau drivers, after update startx fails with (EE) [drm] Failed to open DRM device for pci:0000:0b:00. Now the screen has gone black, and then it comes back on after a while and the screen shows that it was spamming protocol not found. Do you have display managers installed? Apr 29, 2022 · WSL is still a work in progress. When loading, press ctrl + shift + f6, log into the command line and write sudo startx, then the desktop is loaded, but not the desktop, on behalf of pi, and the desktop on behalf of the root. Desktop started, but with no menu and only a terminal window open telling me Octoprint was running. If you want to run Ubuntu Desktop on Windows, it's going to be much easier and stable to run Ubuntu on a VM like VirtualBox. It allows you to execute a command as another user, including the superuser. 04桌面版中startx和xinit的使用,包括如何在不同运行级别间切换,以及它们与init的关系。在字符模式下,可以通过startx或xinit进入图形界面,但需要注意每个TTY中只能启动一个Xserver。此外,还讨论了启动问题、进程管理和退出startx的方法,并提到了可能存在的系统bug。 From my past experience (using Win-Xp), this particular monitor works only on 60Hz , Best resolution being 1024x768. searched the internet for solutions, . 4 and only xorg, my plan is to run kodi/steam client and some dockers. Then the composite signal drops and the Pi hangs, all leds lit and doesn't reboot. Meanwhile startx (or at least, the X-server process that it spawns) wants to write an authentication cookie to $HOME/. I encountered this on a Lenovo IdeaPad with two graphic cards, one from Intel the other from Nvidia. Jan 15, 2012 · If I then 'startx' everything is fine, reboot menu option works ok, as does 'sudo reboot'. The startx script is a front end to xinit that provides a somewhat nicer user interface for running a single session of the X Window System. I have tryed to use the command "startx" it just gives me somme errors. My solution is startx I have used Jun 5, 2020 · No desktop, only tty, sudo startx doesn't work Ask Question Asked 5 years ago Modified 5 years ago Mar 18, 2015 · You must have run startx with root privileges. No menu structure available. If you have not already done so, you can log into Ubuntu Discourse using the same Ubuntu Now, when I try to run startx, it open the xfce4-panels on a grey background but gets stuck there with the panels not responding. startx bombs again. conf. `startx` is a crucial command in Linux that allows users to start the X Window System, which is the foundation for most Linux GUI environments. Share Improve this answer answered Dec 5, 2016 at 18:17 DepressedDaniel 4,3191417 Add a comment | Nov 28, 2020 · I use Manjaro Linux and after an update, when I boot, journalctl says the system reached graphical target, but it starts up in tty1 and I need to type startx to start the KDE. i Dec 17, 2024 · The startx command is a versatile tool for launching and customizing sessions of the X Window System in Unix-like environments. I did it in the terminal with the GUI already running. Why? How to correct this behavior? I think that need to change permissions, but where? Thank for your attention to this problem, and May 8, 2021 · I tried a few different things to get it to work but ultimately sudo startx was the only thing that would allow me to connect with my VNC? This is what my terminal reads out when I just run startx Jun 1, 2023 · So in fact, you can only boot in emergency mode. I can login into tty and gdm accepted my user password but doesn't start the session I have deleted Oct 23, 2019 · From the command line i have configured "raspi-config" to boot into GUI with login. iirc I *cant* startx if root on my slackware box (not going to reboot it to check) Sep 1, 2014 · Just make sure you never run startx as sudo or su. Sep 30, 2019 · Re: Desktop works, but only works after doing 'startx' by msseufert » Mon Nov 25, 2019 4:04 am Was you doing something and it started doing this after that? Like after an upgrade? or has it always done this? What is the output of: Code: Select all Mar 23, 2014 · The only solution I found is to run startx as root, then it works but I shouldn't need to do that! Update 2 The best solution I found so far is to switch to virtual terminal, remove the . When the machine is started, first the disk encryption password has to be entered. Sep 22, 2025 · Learn to run X applications without a desktop on Linux! Configure . Only RpiOS has this issue, Ubuntu etc Works flawlessly over hdmi. apt-get install xfce4 apt-get install xfce4-goodies startx xfce starts Apr 13, 2017 · I was reading some blog and I found that I can manually start GUI by issuing this command sudo startx, so I did that. What should I do to enable generic users to start X, possibly via startx ? Dec 21, 2015 · Switched it on this morning and startX doesn't work like it used to. Sep 14, 2015 · Which instructions were you using? The official display doesn't have a second framebuffer device (/dev/fb1). Whether you seek to adjust graphical session settings for better performance, compatibility, or simply to use alternate desktop environments, startx offers a straightforward path to achieving these aims. What exactly works and what doesn't work? Aug 5, 2014 · It only appears in the initial shell (is that the right term) that you start in after logging in. Find the answer to your question by asking. nvidia-bug-report. zip = success Powered on & Appears to be a clean boot to Pi screen Opened terminal window - typed startx typing startx but it is throwing errors: X: user not authorized to run the X server, aborting. I have a Raspberry Pi 4 8GB running off a SSD. Trying to figure out what's wrong and how to fix it. Same happens with running startxfce4 (it also loads the wallpaper). When you run them once, then, it is fine -- the Gnome/KDE is unloaded and you can startx again. Xauthority before using startx as non-root user. It's a headless system I want to use mainly for home automation and some playing around. sudo is an efficient way to access the root privileges and execute the command as the root user. I don't know what I was doing, but I was doing something. 3-2. local and it starts as root! Is everyone here missing the fact that the X Server is handled by the display manager nowadays? If you have the graphical login disabled, that also means you must've disabled the display manager. Thank you, Crystal. Aug 11, 2023 · Yes, it usually does. I then installed xfce and ran startx on root account. I have "installed and configured" Ubuntu 12. Jan 22, 2013 · So, I installed tightVnc Viewer for windows. systemctl daemon-reload. The Screen boots, successfully works with CLI boot / non gui boot but when I type startx the screen goes blue / dead. Then I connect to RPi typing: RPi_IP:1 and I see the startX monitor of RPi. Xauthority Mar 10, 2016 · Now, xserver-xorg, an server-xorg-video-* package, and xinit are the only packages necessary for minimal startx installation, howeve the other packages are reasonable for a kiosk setup using real applications. But since I'm using the lts Kernel as far from what I can tell there is no problem with the driver anymore. Then I 'sudo apt-get upgrade' and reboot. If I press printscreen, a dialog box would Aug 15, 2020 · I'm trying to install bspwm, but instead of starting it the computer gets stuck in a state where most of the screen is black, the top left corner looks like a white console except I can't type anything and the only thing it says is "Couldn't execute the configuration file. Is it possible to create a new virtual terminal while still staying in the old one? Also, how can I know the file name of the new terminal? Apr 29, 2017 · Upon boot, I see a graphical login prompt (splash?) which works. This process helps maintain system security by ensuring only authorized users can perform certain actions. I installed arch on VirtualBox and everything goes fine, startx and xinit works for normal user When I repeat the process on my old desktop pc (mounting Nvidia 9800 Gtx) I discover that startx and xinit runs only as root After install and reboot to the new system I added normal user and inserted him in sudoers conf file May 20, 2019 · When starting up by machine, I am prompted with a terminal asking me to login, rather than the nice GUI that I am use to. Oct 3, 2021 · it appears you have run startx as root (using sudo) - don’t. Dec 25, 2015 · I got a raspberry pi 2 B that came with a pre-loaded 8GB micro sd card. Prior to this there doesn't seem to be any attempt to start X (I removed the logs in /var/log/X* and rebooted, no logs were then generated after I logged in). Edit: sorry, it won't work. ’ The moment I _entered _my password, the screen went all dark, but only for a second, after which I was left Feb 16, 2021 · Hi, I'm new to the Raspberry Pi and I have trouble to start the X-server temporarily. I somehow stumbled upon people talking about . acoj mhddue lmppk uhziio qqvotv mcg mgwmco mjwis quyhpaqw abxllu hnhjy wxomg gqnvcujx uxxmiqa unj