![]() ![]() Whenever you run a command with sudo, it spits out an error saying “sudo: unable to resolve host”. Note: cntrl c is the linux command for ‘kill process’ - if you’re running a program and accidentally cntrl c, you’ll force the program to stop. To paste, just right click into the terminal window. To copy text from the terminal, just highlight it and right-click. Note: you can always use external sharing tools via the web, which is probably a better option in most cases (sftp works, you can use gitHub, probably dropBox works too etc.) Other funny/annoying ‘features’ and fixes:Ĭopy/paste First, make sure ‘quick edit’ is turned on (it is by default): right click on the task bar > properties/defaults > Edit Options > QuickEdit Mode. I’d avoid doing this as much as possible. Note: this is actually listed as a “not supported” feature, which means it is not particularly safe. Obviously, don’t mess with the other files in the \lxss\ directory if you don’t want to break things. Where WinUSERNAME is your windows username, and UbUSERNAME is your ubuntu username. For example, you can instead install and use a ‘normal’ text editor like gedit:Ĭ:\Users\WinUSERNAME\AppData\Local\lxss\home\UbUSERNAME This might be useful if don’t like using vim. Now, we need to tell bash to forward graphical display with the command: ![]() That’s all we need from the windows side. This is the same as if you were diplay forwarding using ssh (with putty, for example). exe, you should see the icon in the task bar. To do this, you need an X server that runs on windows, the common choice is Xming: It doesn’t seem like it’s technically supported, but you can actually use display forwarding to let you use graphical interface for certain programs. To fix this, edit the hidden vimrc file (which may not already exist):Ĭredit to palmsugar, to whom I now owe my sanity: Display forwarding (using GUI programs): Edit the inputrc file:Ģ) Even after that, vim still beeps every time you press ‘esc’… yeah. Share files between windows/ubuntu (see below)Įven use graphical programs with screen forwarding (see below)Įdit As of August 2017, no longer beta! (see here)įor an updated post, including info on compiling and running c from windows, see:īecause whoever designed this is a beeping sadist, it comes with an in-built “everything’s OK” alarm, and beeps at you every time you do anything.ġ) Turn off bell for terminal. Use apt-get to install/manage programs and update the system The Windows Subsystem for Linux is still a beta*, and they warn that many things may not work, however, everything I can think of for normal applications seem to work perfectly well, including:Ĭompile c, c , fortran, python etc. The official site and installation guide can be found here: The first time you do this follow the prompts to create a new user account. Follow the prompts to download and install ubuntu bash You may then need to restart the computer.Įnable the Windows Subsystem for Linux feature (Turn Windows features on or off > Windows Subsystem for Linux (beta)). Windows will now download some updates, wait for it to finish. Turn-on “Developer Mode” (Settings> Update
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |