eopen-ecd icon indicating copy to clipboard operation
eopen-ecd copied to clipboard

Install into Ubuntu 18.04

Open DaleKramer opened this issue 5 years ago • 19 comments

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

DaleKramer avatar Feb 15 '20 22:02 DaleKramer

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.

ko1nksm avatar Feb 16 '20 13:02 ko1nksm

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

DaleKramer avatar Feb 16 '20 13:02 DaleKramer

Sorry, I am back

Here is 1000 words ;) image

DaleKramer avatar Feb 16 '20 16:02 DaleKramer

Try to Pull requests?

ko1nksm avatar Feb 16 '20 17:02 ko1nksm

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...

DaleKramer avatar Feb 16 '20 18:02 DaleKramer

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?

ko1nksm avatar Feb 17 '20 15:02 ko1nksm

image

DaleKramer avatar Feb 17 '20 16:02 DaleKramer

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/

ko1nksm avatar Feb 17 '20 16:02 ko1nksm

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.

DaleKramer avatar Feb 17 '20 16:02 DaleKramer

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 avatar Feb 17 '20 16:02 ko1nksm

It might work under /mnt directory.

ko1nksm avatar Feb 17 '20 16:02 ko1nksm

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

DaleKramer avatar Feb 17 '20 17:02 DaleKramer

Sorry, What I wanted to say is

$ cd /mnt/c/User/dale
$ eopen .

ko1nksm avatar Feb 17 '20 17:02 ko1nksm

image

DaleKramer avatar Feb 17 '20 17:02 DaleKramer

My $HOME dir is at:

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

DaleKramer avatar Feb 17 '20 17:02 DaleKramer

Sorry, again

$ cd /mnt/c/User/kci
$ eopen .

ko1nksm avatar Feb 17 '20 17:02 ko1nksm

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

DaleKramer avatar Feb 17 '20 17:02 DaleKramer

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.

ko1nksm avatar Feb 17 '20 18:02 ko1nksm

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...

DaleKramer avatar Feb 17 '20 18:02 DaleKramer