Sudo startxfce4 command not found 16. When Xfce is started and you run ck-list-sessions I have tried various crouton installs but always fail at the 'sudo startXfce4' command? Any advice would be greatly appreciated and/or a pointer in the right direction. FILES Aug 11, 2025 · The “ command not found ” error, when invoked with sudo, often signifies a discrepancy between the user’s environment and the sudoer user’s environment. When I type startxfce4 by root, xfce4 runs properly and it's possible to use it. Here's my X Org log file : https://ptpb. It looks like X windows starts but XFCE4 has problems. In order to do that, copy /etc/xdg/xfce4/xinitrc to ~/. I wanted to do remote desktop and came up Jan 1, 2015 · The full command would be: $ sudo enter-chroot -n kali exec startxfce4 You could wrap that up in a shell script, but since ChromeOS's command shell remembers history, I don't bother. gz Provided by: xfce4-session_4. sudo startxfce4 does works perfectly but it logs me in the graphical mode as root. xinitrc (from leftwm github page): "exec dbus-launch leftwm" Edit: Fixed the boot into tdm session. This is a problem because (a) you really don't want to run your desktop as root, and (b) sudo by default doesn't pass environment variables from your user to the sudo session, so there's no DISPLAY set. Aug 29, 2024 · 现象:登录linux后,输入命令 startx进入桌面 时,报错bash :startx command not found 原因:系统并没有安装 桌面 解决方案:yum groupinstall "X Window System " ——> 准备下载安装包,下载前会告诉你安装包大小——>输入 y 确认下载 yum groupinstall "G Notifications You must be signed in to change notification settings Fork 1. Dec 24, 2018 · Closed 6 years ago. if its a fresh install did you make a xorg. 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. I added other user. That might have helped, but that didn't solve it. 10, start Xfce with startxfce4 --with-ck-launch. " That command will not update your chroot. In order to do that, copy /etc/xdg/xfce4/xinitrc Jun 2, 2016 · never mind! i figured it out ^_^ i typed in sudo sh ~/Downloads/crouton -u and it updated and its now fixed Oct 9, 2011 · manually edit the /etc/xdg/xfce4/xinitrc file and change the line that reads: xfwm4 --daemon that line doesn't exist So, how to start xfce after uninstalling xfce4-session? i installed xinit. 问题描述及问题分析 在启动xfce4时,出现如下错误,出现这种问题是因为端口被占用的结果。 2. localhost / # sudo enter-chroot startxfce4 sudo: enter-chroot: command not found localhost / # sudo startxfce4 sudo: startxfce4: command not found 7. Have must. If you login on the console (without starting X) run ck-list-sessions. Last edited by MrHritik (2017-08-30 13:02:40) Apr 23, 2023 · 该文章指导用户编辑~/. 重新启动计算机,在 tty1 以普通用户身份登录后执行 startx,应该可以正常进入 xfce4。 若执行 startxfce4 或 X 则出现主楼错误; 3. I did try editing the . e. It runs xinit passing the file specified in the FILES subsection as an argument. A compilation of Linux man pages for all commands in HTML. . I already have this very same command in ~/. Nov 29, 2022 · WSL2下通过xfce4与VcXsrv连接,实现图形化界面。 在用startxfce4启动时报如下错误 如果你已经按照网上其它教程设置好了~/. NAME ¶ startxfce4 - initialize an Xfce session SYNOPSIS ¶ startxfce4 DESCRIPTION ¶ startxfce4 is a script responsible for starting an Xfce session. ` sudo ` and your command hit Enter, and that’s when it happens. cd /media/removable/ (put whatever your SD card is recognised/mounted as) You can't run the startxfce4 script until you're in the directory where the script is located. xinitrc file or xsession, but I'm not sure. conf? Jun 26, 2017 · Hi. thanks guys. Jan 21, 2022 · 4 I installed xrdp and xfce on Ubuntu 20. You confidently type. sudo systemctl set-default multi-user. , then unmounted the partition. target (临时设置默认不启动 lightdm); 2. Oct 22, 2020 · @duck955, I moved my chroot from my internal drive to my SD Card and the task completed successfully. xinitrc As a user of wheel group. I just say Ctrl-Alt-T to start the shell, then Ctrl-R to search back through the history for the big ugly command I want. Same happens with running startxfce4 (it also loads the wallpaper). bashrc文件,添加VcXsrv的DISPLAY配置,可以选择使用hostname或resolv. Also I added this new user to common groups. 04上安装和配置TigerVNCServer,包括设置xfce4桌面环境、vnc密码、启动和连接服务。同时,它还涵盖了如何设置中文环境,安装fcitx输入法框架,以及在VNC中启用fcitx和搜狗输入法的步骤。 May 2, 2021 · 今日执行的sudo pacman -Syyu 更新后 Chrome无法打开 重启后 登录管理器lightdm无法启动 屏幕只显示光标 安装i3或kde图形环境可以进入图形界面,但应用依然无法打开 小子尝试了许多办法,但仍然解决不了问题,需要想修复原先的xfce桌面环境 希望各位大佬帮帮小子 小子谢谢了 I have an Ubuntu virtual machine to which I need to do remote desktop. Nov 26, 2023 · So, let’s dive in and start unlocking the mystery behind the ‘sudo command not found’ error! TL;DR: How Do I Fix ‘sudo command not found’ in Bash? To fix the 'sudo command not found' error, you need to ensure that the sudo package is installed correctly. I only added this line to . - DKE supporters about this wonderful swedish soda. Panels are visible. 注意事项 尽量保证电脑是连着一个固定的IP,这样就能避免每次都要修改配置IP。 坑二、启动xfce4端口被占用 1. Like the wiki says, I took care of installing all of the necessary X packages, and even tried it successfully with the basic twm interface thing. 04,结果它崩溃了。不知怎么的,我把它升级到14. Instalation was going fine until I decided to install xfce4. Apr 15, 2025 · Resolve common issues preventing the "sudo" command from executing properly on your Linux system Oct 19, 2016 · 2 When you run a command with sudo, it does not change the value of the HOME environment variable: firas@wakaba ~ % sudo env | grep HOME HOME=/home/firas This means that if the program you are running needs to access files in the user's home directory, it will use your home directory. config/xfce4/xinitrc and modify that file. Apr 20, 2021 · dbus-launch not found, the desktop will not work properly! I tried running sudo startxfce4 on crosh with crouton (kali linux), It launched and then a message came up to my screen saying "Failed to execute child process "dbus-launch" (No Command line Use startxfce4 to start an Xfce session or choose Xfce Session from the login manager, which includes the session manager, the panel, the window manager and the desktop manager. Jun 9, 2020 · So I have been start XFCE fro the command line after logging in, and all was working fine up until a pacman -Syu yesterday (systemd did get updated). target (恢复默认启动 lightdm); 4. I also tried updating it, but it only gave me this: Failed to complete chroot setup. 3k Oct 19, 2020 · startxfce4 Command 'startxfce4' not found, but can be installed with: apt install xfce4-session I run apt-installxfc4-session and then same thing, failing to fetch data. I want to start xfce, but whenever I type startxfce4 or startx my system grinds to a halt and becomes so unresponsive that I have to reboot it. However, after installing the xfce4 package through pacman, when I Jul 15, 2015 · Hi, I am using Manjaro Net-Edition and I just installed Xfce. Aug 14, 2005 · Apparently startxfce4 is a script and it assigns "prog=xinit". xfce4: sudo startxfce4 - all good, but only startxfce4 - fail. startxfce4 man page. The terminal responds with “sudo: command not found,” —and you’re left confused (and likely pretty frustrated). Also, when using GDM, choosing xfce session gives the same result. I think that this may have something to do with the ~/. Jan 30, 2019 · Whenever I try to start the vnc server I get this error /usr/local/bin/vncserver-start: line 4: vncserver: command not found I have installed Ubuntu and xfce4 DE. To do this, type usermod -aG sudo [username] and press Enter. If you go back to where you downloaded the crouton script, try running sudo sh crouton -b (you might need to add -t lxde) to restore the executables if somehow they are gone. Oct 1, 2017 · After running pkg install xfce as root (it installed, i think), I tried "startx" I got "command not found". It is now read-only. 0 On Linux Mint 17. This is a screenshot of what I said: Yes, that package contains the startxfce4 command according to the Ubuntu Packages index. But startx gave me the same error again. Make sure active = TRUE and is-local = TRUE. As a side note, running "sudo startxfce4" worked just fine, but after reading that it was a bad idea to do that, I uninstalled everything and reinstalled it, then ran some command to check that there were no files in /home owned by root (but I cannot remember what the command was). I want to know how can I restart my xfce in tty7 from tty1? I've googled it, but didn't found the Dec 23, 2018 · xfce4:sudo startxfce4 --一切都好,但只有startxfce4 --失败了。为什么?如何纠正这种行为?我认为这需要更改权限,但是在哪里呢?感谢你对这个问题的关注,也感谢你对这个问题的看法。 Apr 27, 2015 · This works OK, but I'd like to automate away that obligatory call to exec startxfce4. In 4. Replace " [username]" with the username you want to add. By default, the Xfce session manager manages the startup of applications. 04: sudo apt update && sudo apt upgrade -y sudo apt install xfce4 xrdp -y sudo adduser xrdp ssl-cert sudo systemctl restart xrdp sudo ufw allow 3389 reboot Now when using "Microsoft Remote Desktop" app, it opens for like 0. xinitrc file hoping that it would fix the problem yet it didn't do Mar 9, 2016 · But when I want to run it using the command startxfce4, it fails with this error: /usr/bin/startxfce4: line 118: exec: xinit: not found I don't know how can I solve that. I can't figure out why startx works but startxfce4 doesn't. Whenever I try to start XFCE by `startxfce4` my monitor just turns off and nothing happens. After you install the sudo package, you need to add anyone who needs access to the sudo command to the "sudoers" group. If sudo is installed but not working, add its directory to the PATH variable by editing the "/etc/profile" file as a root user. It returned me the normal command prompt again. Mar 28, 2006 · not with startxfce4 command it starts the x-server. Trouble with 'sudo startxfce4' after linux installation on chromeOS #4166 Copy link Copy link Closed Apr 23, 2025 · 保存配置。然后再输入: startxfce4 ,稍等片刻即可在 xfce4 看到如下画面: 4. Not exactly a bash guru but I assume that's the problem. I'm new on Linux. May 6, 2009 · Greetings, today I finally got some courage and decided to give archlinux a try on my laptop since I grew tired of ubuntu. Is there anything I have done wrong during the installation? From what I understand, you need to enter a chroot before running "sudo startxfce4", but I'm not 100% sure since I've never used Crouton. 04升级到14. 10, Xfce4-sesion will take care of the dbus-session launch. Add your user to the sudo group using the "usermod -aG sudo username" (Debian/Ubuntu) or "usermod -aG wheel username" (other distros) commands as a root user. A quick search just found this link which suggests either:. 1. Lacking useful Then I typed in sudo startxfce4 returned sudo: startxfce4: command not found When I type sudo df in the shell /dev/sdb1 is mounted on /media/removable/USB Drive Then when I check my USB drive in Chrome window, I have sdb1/chroot/chroots and bin. jammy (1) startxfce4. So, please explain everything as clearly as possible and the code to solve my problem and run this desktop on startup. localhost / # crouton -r list bash: crouton: command not found if i run these commands as a normal user and not a superuser, would it help? May 15, 2024 · Add your user account to the sudo group. After call "turn off" dialog (I can't Aug 24, 2014 · 最近,我尝试将ubuntu12. If you are just having trouble launching your desktop from external media them take a look at this comment, it may help with your issue: sudo: startxfce4: command not found from SD CARD HP 11A G6 · Issue sudo: startxfce4: command not found from SD CARD HP 11A G6 #4358 · dnschneid/crouton Jul 2, 2025 · 文章浏览阅读6. This can be achieved with the command which sudo || apt-get install sudo. Nov 11, 2012 · I am new to xubuntu, somtimes my xfce desktop crashes, and I can only use tty1 from command line. 5 second (black) then quickly closes without any errors/etc. Apr 17, 2024 · Become root (using "su -") and install sudo using the "apt install sudo" command on Debian and Ubuntu. If you expect useful help you need to start the process by giving useful information instead of expecting mind-readers to solve your problem. You may want to modify the default xinitrc file. 1 with XFCE installed, I removed MDM to enable booting in text mode. What should I do? [/EDIT] If you must have must. xinitrc (in fact, it's all I have in this file), but apparently it's not enough. Sep 28, 2020 · This may or may not work, but if you don't mind using Crouton in a window, update your chroot with sudo crouton -n xenial -u -t xiwi and then try sudo startxfce4 again. Help please. sudo systemctl set-default graphical. The “sudo command not found” error occurs when the system does not have sudo installed and can be fixed by using the root user to install sudo from apt. 7k次,点赞8次,收藏48次。本文档详细介绍了在Ubuntu20. Though `startx` works fine and starts GNOME. Why? How to correct this behavior? I think that need to change permissions, but where? Thank for your attention to this problem, and thank for your opinions about it. Mar 5, 2021 · I tried to delete the chroot, but it only got me this: sudo: delete: command not found. Mar 30, 2017 · Hi there, the strange fact is that I have two pc (1 laptop and 1 desktop) both with Xfce4 and both where every time I try to log I am on the prompt command line asking to get in, but if I try to write "startxfce4" I get this error: Jul 27, 2016 · 可测试: 1. But when I type startxfce4 by newly added user xfce4 also runs. So I tried % echo "exec /usr/local/bin/startxfce4 --with-ck-launch" > ~/. This will start xfce4-session with ck-launch-session. See auto login from console for more information. Nov 6, 2017 · DennisLfromGA commented on Nov 11, 2017 @DeepForestGreen, I just upgrade my Croot using this command: "run sudo sh ~/Downloads/crouton -t xfce. I do not have physical access to that machine and I can do only ssh to the machine. Jan 31, 2018 · Please paste the output of the following command here: sudo edit-chroot -all it says command not found Please describe your issue: it says command not found If known, describe the steps to reproduce the issue: shell sudo startxfce4 comma You'll need to get into the Crosh Shell, then change directory to where your Chroot is saved, I. Here's the log from xinit as non-root 6. But instead default mouse in background I can see black screen, can't see cursor. 0-1ubuntu2_amd64 NAME startxfce4 - initialize an Xfce session SYNOPSIS startxfce4 DESCRIPTION startxfce4 is a script responsible for starting an Xfce session. If not, check if the consolekit library is loaded by PAM. bashrc并 May 10, 2013 · Re: startxfce4 not fully launching by jxl22 » Sun May 12, 2013 3:15 am i'm a linux noob, but if "xfce4-session --display :0" is working for you whats stopping you from putting that command as a startup command? startx 命令用来启动 X Window X11 会话。startx 脚本是 xinit 的前端,它为运行 X Window 系统的单个会话提供了更好的用户界面,它通常没有参数运行。 command not found Linux startx 命令 - Linux教程 CommandNotFound ⚡️ 坑否 ———— 中文,免费,零起点,帮助攻城狮们避免在技术上遇到各种坑! Dec 11, 2024 · 引言 XFCE4是一款轻量级的桌面环境,适合在资源有限的系统上运行。然而,用户在使用Ubuntu系统启动XFCE4时可能会遇到各种问题。本文将详细解析Ubuntu启动xfce4时可能遇到的故障,并提供相应的解决步骤和常见问题解答。 故障一:无法启动XFCE4桌面 症状描述 启动Ubuntu后,系统无法加载XFCE4桌面环境 Mar 23, 2021 · When I start startx I get a weird session with three terminals and a clock instead of LeftWM (I also can't start it without root). conf来设置。 接着设置LIBGL_ALWAYS_INDIRECT、WAYLAND_DISPLAY和MESA_GL_VERSION_OVERRIDE以支持OpenGL。 更新配置后,可以启动xfce4-session或startxfce4来运行Xfce4桌面环境,适用于WSLUbuntu系统中。 Jan 22, 2022 · 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. pw/Jjga Thanks. startxfce4 gives "command not found" startx and xinit give errors. It might be best for to start with this troubleshooting guide: Common issues and reporting Hope this helps, - DennisL This looks like you're using crouton but you've given absolutely no useful information to help troubleshoot, including actually telling us what you did to set up Linux or provide a link to whatever guide you claim to have followed. Feb 24, 2016 · cannot start ubuntu using sudo startxfce4 error 1 Ask Question Asked 9 years, 4 months ago Modified 9 years, 4 months ago Dec 25, 2016 · sudo startxfce4 -X xiwi-tab (that will launch in a browser tab via 'xiwi' - my favorite) sudo startxfce4 -X xorg (that will launch in a separate screen via 'xorg') Jan 3, 2025 · You’re ready to run a command on your Linux machine—maybe to update a package or tweak a system setting. 解决办法 同坑一 Mar 15, 2016 · I've installed arch linux x64 on my computer. 04,现在我可以看到登录屏幕了。 我的问题是,当我试图登录时,我会出错, unable to launch startxfce4 x session --- "startxfce4" not found 说。 我可以通过命令行登录,但不能在GUI中登录。 我试过 sudo apt-get install xubuntu-desktop Dec 22, 2022 · First, you are attempting to run startxfce4 using sudo. May 2, 2024 · Fix "sudo: command not found" in Bash by ensuring sudo is installed, checking PATH variable, and verifying sudo permissions. Still can't use startx without sudo, and when used gives errors related to xkbcomp like: Nov 10, 2019 · Security Insights This repository was archived by the owner on Aug 2, 2025. zxvaw ttxynki jru nftd laharr abpx uiguj nbrzt bwki eqwrzl kappe kmcyq lrthtx kklpmvt bwzxi