Sudo startxfce4 command not found

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. It only takes a minute to sign up. I tried to use su instead of sudo.

But it is strange. For example I print su apt-get update And nothing happens I just see a new line. By default sudo is not installed on Debian, but you can install it. First enable su-mode: su.

After that you would need to play around with users and permissions. Give sudo right to your own user. Make sure your sudoers file have sudo group added. Run: visudo to modify sudoers file and add following line into it if it is missing :. Since it's a commercial server you won't have access to root account nor be able to operate with root privileges. This means you won't be able to run sudo nor install packages. What you can try to do is:.

Check if you have access to a compiler and compile what you want for yourself and in your home space. Check if you can run a virtual machine.

Subscribe to RSS

This might let you run your private instance of an OS, on which you would install packages. It is unusual for sudo not to be installed, but it may simply not be in your Path. If indeed sudo is not available, you need as you surmised to use subut it does not work in the same way as sudo. The simplest way to use it is to simply run:. This will ask you for the root user's password, at which point you should probably apt install sudolog out of the root shell, and then proceed as normal.

sudo startxfce4 command not found

Mind that unlike sudowhich asks you for your password, su will ask you for root 's password. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered.Instalation was going fine until I decided to install xfce4. However, after installing the xfce4 package through pacman, when I try to run execute startxfce4 it just gives me a "command not found" error. Any ideas what might be wrong? I updated on the second install and when I executed xfce4 all the conflicts dissapeared.

That did the trick! Thanks karol.

Apparently the package had already been downloaded but not installed, because pacman said the download size was 0. Pacman will ask you to select the packages to install, but you probably want to get them all by simply pressing Enter. Don't know why it wasn't installed in your case. I have just noticed that most if not all of those packages were not installed! Even though startxfce4 now runs because I installed xfce-utils, none of the others are avaliable I get a black screen with a cursor, nothing else I hit Enter but apparently it didn't select all of them!

I guess I should go ahead and install them all one by one, even though I do not understand why it didn't happened in the first case Edit: Apparently I had a bunch of conflicting files, I forced pacman to install xfce though the "pacman -Sf xfce4" but not sure if that won't cause problems I might have to re-install arch all over. It should only be done when directed on the Home page of this forum OR if you are explicitly aware of something you have done to your particular system which would require it.

If it's neither of those two conditions then it's always bad form. Learned the hard way hehe. Gotta make mistakes to learn I guess. Even though I forced xfce4 still did not work, so I just re-installed a clean arch. If the conflict persists I guess I should see what package is conflicting with xfce.

Either way since the initial problem is "solved" I will tag the thread to avoid confusions. And lesson learned, no pacman forcing. Atom topic feed. Arch Linux. Index Rules Search Register Login.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time.

sudo startxfce4 command not found

Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. In order to fully understand Linux file permissions you can study the documentation for the chmod command. To read the chmod documentation for your local systemrun man chmod or info chmod from the command line. Once read and understood you should be able to understand the output of running Here's a summary of how to troubleshoot the Permission Denied error in your case.

The chmod command fixes that. Group and other only have read permission set on the file, they cannot write to it or execute it. When you run a command using sudo you are effectively running it as the superuser or root.

The reason that the root user is not finding your command is likely that the PATH environment variable for root does not include the directory where foo. Hence the command is not found. The PATH environment variable contains a list of directories which are searched for commands.

Each user sets their own PATH variable according to their needs. To see what it is set to run. Here's some sample output of running the above env command first as an ordinary user and then as the root user using sudo.

Note that, although similar, in this case the directories contained in the PATH the non-privileged user rkielty and the super user are not the same. The directory where foo. It's also possible to name the alias itself sudoreplacing the original sudo. It'll then be available to the sudo. Have a look at this answer to have an idea of which directory to put soft link in. It seems that linux will say "command not found" even if you explicitly give the path to the file.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. Asked 5 years, 7 months ago. Active 5 years, 7 months ago. Viewed 8k times. Thanks in advance. Kalpit Kalpit 1 1 gold badge 3 3 silver badges 9 9 bronze badges. What does sudo apt-get install xfce4-session say? Yes, that package contains the startxfce4 command according to the Ubuntu Packages index.

Just a black screen?

Mac 10.6 Tutorial Using the Sudo Command in Terminal

Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.

Podcast Programming tutorials can be a real drag. Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap. Related 0. Hot Network Questions.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

It only takes a minute to sign up. It doesn't appear to be recognizing the sudo command. Every time I try to sudo something I get an error saying:. What username are you using to SSH in? If it's rootthen you don't need to use sudoas everything you do when SSHed in to the Redmine system is done as root.

If it's something else, like adminthen you could try using the su command to get a root shell in which to run commands as root. Maybe it isn't installed? Open your package manager and install the sudo package. The error happens because the binary you are trying to call from command line is only part of the current user's PATH variable, but not a part of root user's PATH. You can verify this by locating the path of the binary you are trying to access.

In my case I was trying to call "bettercap-ng". So I ran. So sudo cannot find the binary that I am trying to call from commandline.

sudo startxfce4 command not found

Hence returns the error command not found. Please refer to this video for step by step solution. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered.

Asked 8 years, 5 months ago. Active 6 months ago. Viewed k times. Every time I try to sudo something I get an error saying: -bash: sudo: command not found I read somewhere else to type 'whereis sudo' and the output was: sudo:.

Rui F Ribeiro Adam Adam. Active Oldest Votes. Eliah Kagan Eliah Kagan 3, 2 2 gold badges 18 18 silver badges 35 35 bronze badges. What to do when script has commands sudo. Happens to me with mkusb. Its better to install sudo for future convenience. Timo Timo.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Have a question about this project?

Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Either delete it, specify a different name -nor specify -u to update it. Type help' to see this list. Type help name' to find out more about the function name'. Use info bash' to find out more about the shell in general. Use man -k' or info' to find out more about commands not in this list. FYI -n is to specify the chroot name.

Preparing chroot environment Installing brightness into the chroot Installing croutonpowerd into the chroot Installing croutonversion into the chroot Installing host-dbus into the chroot Installing host-x11 into the chroot Installing pulseaudio-default.

Installing croutoncycle into the chroot Installing croutontriggerd into the chroot Installing croutonxinitrc-wrapper into the chroot Installing setres into the chroot Installing xinit into the chroot Installing xbindkeysrc. Installing xorg-intel-sna. Installing xserverrc into the chroot Installing xserverrc-xorg into the chroot Installing xserverrc-local.

Installing startxfce4 into the host Installing crouton-noroot into the chroot Installing startxfce4 into the chroot Installing enter-chroot into the host Installing delete-chroot into the host Installing edit-chroot into the host Installing mount-chroot into the host Installing unmount-chroot into the host Installing target core Preparing environment Preparing software sources E: Some index files failed to download.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub?

Sign in to your account. Sorry about the output formatting, to me, it displays better recognizes carriage returns when using 'insert a quote' instead of 'insert code' I am very new to Linux and Unix and GH, but am very excited to be tinkering around with a Chromebook and Linux. Here is what I get for the initial output of the sudo startxfce4 command. Later on, i see the same messages that Alex posted above. You'll have to enter your password to unlock your chroot before we can see what crouton version you're using.

Another way is to get into your chroot and then show us the output of croutonversion. Dennis, thank you for the quick reply, and sorry for my ignorance. I hope I'm running this the way you have asked, but I feel like I am still doing something wrong. I did enter my password to run the sudo cmd the first time, then ran it again in a few other directories.

Downloading latest crouton installer Password: Verifying - Password: Choose an encryption passphrase for precise: Please confirm your passphrase: Generating keys move the mouse to generate entropy Download from Debian gitweb failed.

Trying latest release Downloading bootstrap files After about 10 retries, it looks like it determined it was a corrupted file and moved on with the install. I: Resolving dependencies of base packages AlexObliv.

Don't use the 'sudo' prefix inside your chroot for crouton stuff, that'll get you into trouble with permissions, just use 'sudo' outside your chroot for crouton stuff in your crosh shell. Then instead of 'precise', we'll install a newer release but we won't encrypt it to make it simpler, if you really want to encrypt it you can do that later, use this. Then install the 'crouton integration' extension from the Chrome Webstore. Please note, the last option using 'xorg' is having some temporary difficulties blackscreens so it may not work for you without some extra effort.

DennisL, I'm having the identical issue. I will try your suggestion and let you know how I make out.


comments

Leave a Reply

Your email address will not be published. Required fields are marked *