Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I've installed bash linux subsys on w10, but for whatever reason my bash is rooted in a directory I cannot find on my pc.
root#DESKTOP-MLRVSAC instead of localhost.
How do I fix this issue?
DESKTOP-MLRVSAC sounds like the weird PC names Windows assigns automatically to the PC when being installed.
So I would look how that PC is named on the Windows level (sorry, I don't know Windows 10, but on Windows 7 Pro you would first right-click "Computer", then choose "Properties" from the context menu; the screen which then appears shows the computer name).
If you find out that DESKTOP-MLRVSAC is indeed the computer name on Windows level, just use the usual Windows mechanisms / dialogs to change it (in Windows 7 Pro: Open Control Panel, choose "System", then click the link "Change Settings" at the right side in the lower half of the dialog which appears. This will open a new dialog with caption "System Properties". On the tab "Computer name" which is activated by default, there is a button "Change"; clicking it will finally open another dialog where you can input the new computer name).
You might have to logout and login again, or even to restart the PC, before Microsoft bash reflects that change. But I am not sure about that; just try.
That’s not the current directory - that’s the “user#host” bit that tells you what user you’re logged in as (root from the Linux subsystem’s point of view) and which machine you’re logged into (DESKTOP-MLRVSAC, the automatically-generated hostname for your machine). The current directory should follow that, in the format “user#host:cwd# ”. For a new shell, cwd will probably be ~, indicating your home directory.
You may edit the PS1 definition in .bashrc or .profile to change how this prompt appears, or edit your computer name in your system control panel to something a bit more familiar.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 months ago.
Improve this question
I've ran into a problem when trying to use an installed Linux bash shell instead of my Windows command prompt. I can't get my computer files to show on my Ubuntu terminal, even though when I repeat the same actions on my windows command prompt they seem to work.
I'm thinking there must be an issue with my installation, possibly I need to do a few more steps to get it to work like my regular command prompt terminal, but I'm not sure how to do this currently. I've added some screenshots above for additional context of me not finding my files in Ubuntu but being able to find them through windows command prompt.
It's because your linux home directory is most likely located outside of your windows user's home directory.
Use windows search to look for one of your ubuntu files (for example git_101) to determine where is your ubuntu home directory in relation to windows file system.
This can vary depending on how you installed ubuntu, but you might be able to access your windows filesystem via the /mnt directory as well. You can check that by running ls -lah /mnt.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'd like to access a file that needs specific rights to open and write it. I tried:
to convert it into a .exe file: found no working program for that
run in elevated cmd: still no admin privileges
WSL - Sudo command: don't work
For any suggestions about how to open a protected file please help me. (I have full access to the computer)
Windows, right?
Grant access permission for the file to the Windows user under which your nodejs program runs.
Use an account with Administrator privilege.
Right-click on the file or, better, its containing folder in the file explorer.
Open the Properties box (bottom of the right-click popup).
Open the Security tab and click the Edit button.
Then, if the user you want is in the list, grant the extra privilege needed. If not, use the Add button.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am using a X2GO client on a Windows 7 (64-bit) laptop in order to login to a remote machine running Fedora 20. However, when I try to connect choosing KDE as a session type, I get a "cannot execute startkde" error.
Is there something I need to configure on my laptop or Fedora machine?
This worked for an ubuntu server but may work for fedora/centos. In the session preferences tab of the x2go client, change the "session type" to XFCE
At this point I'm almost sure the OP has already fixed the issue or just tried another DE. Anyways, just for the record, for other people that may come across this error, this is my experience and how I solved it.
In my case the problem was that the version of KDE I was using didn't have a startkde command, at all. Apparently, newer versions of KDE use startplasma-x11 (or startplasma-wayland) instead.
In X2GO, I selected "Custom desktop environment" (or something like that, I'm using another language), then pasted the startplasma-x11 command in the field. It worked after that.
To check if that's also your problem, try to SSH to the machine, write which startkde and, if it fails, then try which startplasma-x11 and it should return a path. If it does, then you just follow the steps above and it should work.
Running sudo yum install #kde on the remote machine resolved the issue. I was now able to login to the remote machine using X2GO client.
If the command is not setup up properly in the available PATH,:
then the error like
"Cannot run 'startkde' occours
Please check that the requested application is in the system PATH and that you have the rights to execute it."
you need to login to the super user mode by pressing
ctrl + alt + f1
Whether the PATH is set or not can be checked by executing
which startkde
or more generally, 'echo $PATH'
The correct path must be set in /etc/profile or /etc/csh.login, depending on the shell the user is using.
And now when you try to log in from windows desktop after doing all this if error again appears Cannot run ‘startkde’. …
make sure you have the appropriate credentials to access .
on ubuntu I had to install XFCE, then select that in the windows client and then it worked.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Whenever I press Super+L (or Win+L) on my Ubuntu 14.04 Desktop, the screen gets locked. I would like to disable this behaviour. In System Settings->Keyboard->Shortcuts->System there is a shortcut configured for Lock screen: Ctrl+Alt+L. It works. But I couldn't find where the shortcut for Super+L is configured.
Background: I run Ubuntu in a virtual machine on Windows and use Super+L to lock the Windows desktop, making it superfluous to lock the Ubuntu Desktop. Once I unlock the screen I have to type my password twice: Once for Windows and again for Ubuntu.
Unity also has a shortcut to lock the screen, so you need to disable that one too.
Install and run CompizConfig Settings Manager
Click "Ubuntu Unity Plugin"
Click the button next to "Key to lock the screen."
Disable
While this is an old question, it still comes up as the top result for searches like "ubuntu disable win+L locking". For future reference, this answer covers a method without CompizConfig Settings Manager.
https://askubuntu.com/questions/531835/how-do-i-disable-lock-screen-keyboard-shortcut-under-unity
In short:
Run gsettings set org.gnome.desktop.lockdown disable-lock-screen true to disable the lock screen.
However, this will still turn your screen black for a few seconds. This is still especially useful if you are running Ubuntu in a VM, and don't want it to lock when you lock your outer system.
I searched for search lock in the search bar (Ctrl+Space) and found screen locking window. That did the trick.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm using VMware workstation 8 on windows 7 and having some Linux hosts such as Centos, Backtrack and ... on it.
The problem is the screen of the virtual machines is not fixed with my screen.
here is the picture from my screen: https://s15.postimg.cc/7carokj4r/Capture.png
Change the resolution of your operating system running in VMware and hope it will stretch the screen when chosen the correct values
Go to view and press "Switch to scale mode" which will adjust the virtual screen when you adjust the application.
It sounds to me as if you actually mean "linux guests" and not "linux hosts".
But in any case, I suspect you did not install the VMWare Tools: doubleclick on that icon on the Desktop that can be seen on your screenshot. It will install some drivers that communicate with VMWare that, among other things, allow to adjust the screen resolution dynamically.
When the installation process is finished, you'll most likely have to reboot the VM.
From you main machine, start -> search -> "remote desktop connection" -> click on "remote desktop connection" -> Click "Options" Beside to "Connect Button" -> Display Tab - > Then increase Display Configuriton Size. If this will not work, try the same thing by closing remote desktop. But this will give you solution.