can we use copy and paste function in Qwiklab lab - copy-paste

Can we use copy and paste function in Qwiklab window virtual machine lab in doing coursera course assignment?
I am studying in Google IT Support Certificate and I find it hard to type the command in powershell lab as the letter in display is too small. I cannot see clearly.

I found a workaround. In the upper left corner, there are three dots. Clicking will open a menu. Look for "Text". If you paste in that editor and click "Send" then it will paste.

The three dots on the top left corner is correct for qwiklabs windows VM,
but what about the linux ones?
Google IT Support Coursera modules has many of linux VMs with no option to paste in bash.
Edit: Shift+Insert for Linux VMs

Related

Straightforward way of copying text from byobu to system clipboard?

I frequently want to copy snippets of command outputs to the web browser. Doing so is nice and simple in gnome-terminal (mouse-select, right-click, copy) but seems to be not so straightforwardly possible in byobu.
The procedure for copying outlined in the docs is:
Enter scrollback using alt-pgup or alt-pgdn, press the spacebar to start highlighting text, use up/down/left/right/pgup/pgdn to select the text, and press enter to copy the
text. You can then paste the text using alt-insert or ctrl-a-].
However, this doesn't copy to system clipboard (and seems to involve quite a few keystrokes)
This source suggests using xsel
https://askubuntu.com/questions/33789/how-do-i-integrate-byobus-copy-buffer-with-the-x-clipboard
which doesn't work for me and would be rather less convenient anyway(what if I want to scroll up to several commands earlier that ran in a different context?)
What I would like is, ideally, a way to copy to the system clipboard that works in the same as gnome-terminal eg. highlight -> ctrl+shift+c or right-click copy or some way to integrate the byobu copy buffer with the system copy buffer.
I'm using Ubuntu 16.04 with Gnome and byobu 5.106-0ubuntu1
As pointed out in this comment, holding the shift key seems to be the solution to your problem. So:
Shift+F11 to zoom in on the split that you want to copy from
Shift+select what you want to copy
Shift+right click, copy (or by the way, Shift+Ctrl+C that also works in gnome-terminal)
I had some issues when selecting command outputs bigger than an entire screen, mouse select may be harder on these cases. My preferred method is to use <shift+F7> to capture output from desired split to a new PRINTSCREEN.
After that I select the desired portion of output at PRINTSCREEN using editor shortcuts and then getting it into system clipboard (e.g. using vim select then "+gy).

Move Windows default installation path by using shortcut, stupid or smart?

I'm running low on memory on my C:\ but I have plenty on D:\
My goal is to make it so all programs installs to D:/Programs even those dumb programs where you don't get an option to choose where they will be installed.
I have been looking into different ways to move the default installation path & register edits & things, but most of them are kind of dangerous, really annoying to do &/or might bring unexpected side effects; like the programs cant be found & such.
But then I found a suggestion to use the windows cmd (commandpromts) mklink command to basically make a shortcut from C:\Programs to D:\Programs
But I'm thinking: What happens if I simply Drag & drop the C:\Programs to D:\ then right click on it & chooses make shortcut & move that shortcut back to C:/
Is this a really stupid or smart solution? (I'm leaning to dumb, because it's just too simple, but I don't know why it would be dumb?)
& does anyone knows what can go wrong with this solution?
I'm using Windows 7
I think I found why this would be stupid, a shortcut done in windows is apparently a file that points to the target & not all programs use it correctly, while using cmd to make a symbolic link is "registered to the hard drive" & it should work better.
Quote from this page:
"Shortcuts, symbolic links, hard links & junctions?!
A shortcut is a file that points to another file. It is an antiquated pointing system from the Windows 95 era that many programs do not recognise. Shortcuts do not only use up space on the hard drive, but they also break and linger behind after the deletion, renaming or moving of the target.
A symbolic link is similar to a shortcut, but instead of being saved as a file it is registered to the hard drive partition. It does not use any disk space, and all programs recognise both the link and the target. A symbolic link can point to any file or folder either locally on the computer or over a network using an SMB path.
A file hard link is a little different and can not be used over multiple partitions meaning you can not have a link on drive C: pointing to a file on drive D:. A file hard link points to and duplicates a target as a mirrored copy, but the duplicate does not use any additional space on the hard drive partition. So two hard links that mirror a 1 GB file would in total only use 1 GB on the partition rather than 3 GB. Importantly if either the hard links or the target were to delete, the other links retain the data. Changes to the content of either the target or the links automatically propagate to all other items.
A junction behaves like a hard link for directories, but unlike file hard links you can create junctions that span multiple partitions. Again a directory junction and its content are stored on the hard drive partition, but they do not use any additional space. Any changes to the content within either the target or the links will automatically propagate except where the target directory is deleted or renamed. In that case, all links that point to the target will break and linger on the partition."

luaedit 3..0.10 will not show output from simple script

I am trying to get output from my first script in luaedit 3.0.10 and not having much success. I'm using the sample script from the online tutorial at http://lua.gts-stolberg.de/en/Mathe.php to wit:
a = 2 + 1
print (a)
I'm running luaedit under windows vista, and have unpacked the lua binaries but can find no way to link luaedit to them, and thus assume that luaedit includes a lua runtime as part of itself.
There is a similar question already posted in these forums, but the answer does not work for my version of luaedit. The answer refers to a pane in the "show output from" window that does not appear in my version of luaedit. My version only has an "output" window that is accessible off of the "debug" drop-down menu. Though it does say show output from, there does not appear to be any way to change where it shows its output from. The answer also refers to a green button to start debugging that is also not available in my version of the editor. Instead, there are three buttons on the left side of the toolbar: a triangular "start debugging" button, a double horizontal line "break now" button" and a square "stop debugging" button, all of which are blue.
So...how is the problem to be solved for THIS version of this editor? Or is it a bug that the developers introduced because they had to fix an interface that wasn't broken?

Running just the matlab editor

Is there a way to just run the matlab (7.9.0) editor and not the rest of the "desktop" on linux?
This can't be done directly, because the editor stopped being a stand-alone executable many releases ago. It is now launched as a separate Java window from the Matlab desktop. However, you could try hiding the desktop once the editor is displayed, using the following simple code snippet:
com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.hide % to hide desktop
com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.show % to show desktop
Note that if your editor is docked to the desktop, it will be hidden together with the desktop, so be careful...
No, this is no longer possible since r2007a.
You can get Matlab syntax highlighting for emacs and vi, though.
On my windows machine, I can start MATLAB with the -nodesktop option, then once in the command prompt, I start only the editor with edit.
Im not sure if this is different in terms of memory space used, but this way you only get the editor and the command prompt (no auto-completion though)
You can add Matlab syntax highlighting to Kate via a plugin. I don't know about gedit, but there's probably an addon for that as well.

Configure native vi to emit spaces instead of tabs and not convert autoindent spaces to tabs?

I would like to use spaces instead of tabs when editing Perl scripts with the native vi found on Solaris systems.
I know this can be done with the vim clone, but I don't have access to install vim on these systems as they are vendor locked.
Firstly, is there a way to configure vi to emit spaces when I press TAB?
And secondly, I am also using the auto-indent feature of vi:
:set ai
The problem is, when I manually enter spaces for indenting vi converts groups of 8 spaces into tabs automatically when it does auto-indenting. I guess if I can find a way to turn this functionality off it will be a start.
For an outside-the-box option, could you export the Solaris filesystem using NFS and edit the files you need on another system with a more capable editor?
I believe you want
:set et
(short for expandtabs). I think vi classic supports it.
I realize this is well beyond the best-by date, but I just ran into this issue and was looking for an answer myself. A real pain when editing yaml on a FreeNAS box.
Anyhow, I successfully dealt with the issue by setting the value of tabstop to a large value.
':set tabstop=1000'

Resources