ko1nksm / eopen-ecd

Open from WSL + Change Terminal and Explorer directory at once
MIT License
24 stars 2 forks source link

Install into Ubuntu 18.04 #3

Open DaleKramer opened 4 years ago

DaleKramer commented 4 years ago

I really NEED to install this on Ubuntu 18.04 under WSL.

But I can not figure out how to do that by your Installation instructions.

There is no mention of Ubuntu and it appears that the instructions for WSL does not include 'the following line' to edit in the 'shell's profile': image

Sorry if this is a bother but I am such an newbie to OS's that end in 'x' ;)

If you have any interest, I made this image which if you post it where needed, might help you have fewer questions here: image

ko1nksm commented 4 years ago

Thank you for your feedback and sorry for lack of explanation.

If you are using Ubuntu 18.04 under WSL without any customize, you are using bash as shell. Therefore, your shell's profile is .bashrc. (bash is one of the POSIX compliant shells)

The .bashrc is located under your home directory (/home/YOUR-NAME) of Ubuntu 18.04 under WSL. Open .bashrc with text editor (e.g. notepad.exe .bashrc). And add eval "$(sh "/path/to/eopen-ecd/init.sh")" to .bashrc. (Please change /path/to/eopen-ecd/init.sh to your extracted path)

If you're still having trouble, feel free to post here. regards.

DaleKramer commented 4 years ago

WOW, great response, I will do that very well explained procedure. :)

DaleKramer commented 4 years ago

Sorry, I am back

Here is 1000 words ;) image

ko1nksm commented 4 years ago

Try to Pull requests?

DaleKramer commented 4 years ago

I had to look that up:

"Pull requests let you tell others about changes you've pushed to a branch in a repository on GitHub."

Sorry but I do not think I have any changes that I have pushed to a branch. I do not even know what that means...

ko1nksm commented 4 years ago

Sorry, I hadn't checked thoroughly. It seems wslpath command incompatible. Which Windows version are you using? The Windows version is displayed with winver.exe. What is displayed when running wslpath with no arguments on WSL?

DaleKramer commented 4 years ago

image

ko1nksm commented 4 years ago

I don't know if it has anything to do with this issue,

https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/

DaleKramer commented 4 years ago

I do not see any permissions/owner etc issues that could have been created by the way I created my $HOME/eopen-ecd directory in the WSL subsystem, do you see any from these listings: image

But perhaps I should do a recursive chmod 777 on the eopen-ecd dir...

Besides, eopen does seem to run but only to show the -h help listing.

ko1nksm commented 4 years ago

Probably, related this issue. https://github.com/microsoft/WSL/issues/3599

The easiest way is to update to the latest Windows. I'll try to find out workaround, but it will take a little longer because you have to install an older Windows.

ko1nksm commented 4 years ago

It might work under /mnt directory.

DaleKramer commented 4 years ago

I used cp to copy eopen-ecd dir to C root dir.

Then I nanoed $HOME/.bashrc like this: image

Then I resourced .bashrc with => source ~/.bashrc

But still same issue: image

ko1nksm commented 4 years ago

Sorry, What I wanted to say is

$ cd /mnt/c/User/dale
$ eopen .
DaleKramer commented 4 years ago

image

DaleKramer commented 4 years ago

My $HOME dir is at:

C:\Users\kci\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\home\dale

ko1nksm commented 4 years ago

Sorry, again

$ cd /mnt/c/User/kci
$ eopen .
DaleKramer commented 4 years ago

Great, that worked, but I want to edit files in my Ubuntu subsytem tree structure with NotePad++... like in my $HOME directory...

How do i achieve that now?

image

ko1nksm commented 4 years ago

As posted above, You cannot edit files on WSL in Windows 1809 (except under /mnt directory). This is a limitation of WSL on before Windows 1903. The best way is upgrade to Windows 1903 or later.

I used to create symlink at "$HOME" directory to access under the /mnt easily.

DaleKramer commented 4 years ago

I guess I will bite the bullet and update (I hate updating automatically so I am a little behind).

Thanks, for all the help, you were GREAT...