To select text in nano, move the cursor to the start of the text you want to select, press the Alt-A key combination to mark the start, then move the cursor to the end of the section you want to select. press Ctrl+K to cut your selection and Ctrl+U to paste it.
Assuming you have a version of linix which supports apt-get, you can make
sure everything is up to date with:
sudo apt-get update
sudo apt-get upgrade
From the shell, if you want to let a program continue to run in the background, just hit Ctrl+Z. Or you can start the command with a "&" at the end. E.g. node httpd.js & to start your node.js web server. To see the jobs you have in the background, type jobs and to bring one back to the foreground, use fg jobno which defaults to job number 1.
Linux Command line Serial Communications +
...before moving the cat5 cable, I used winipcfg and released my lease on my ip, and moved the cable. I then ran dchpcd -h <cox account here>. when going back the other way I ran dchpcd -<don't remember the switch, but it's on the man page or by using the --help switch> to release the lease on the linux box, moved the cable, ran winipcfg on the 98 box and clicked on renew lease...
Let's say you fire up a (totally free forever, as long as you don't use too many resources) f1 google compute engine (easy, lots of docs online) and you want to edit your files on that drive. You can do it with nano, vi, whatever after you log in, but wow that gets old. Be nice to have a real editor like VSCode, or Atom, or emacs or whatever. So you can copy files back and forth to your local machine... or... on your local Linux box,
sudo apt-get install sshfs
ssh-keygen -t rsa -f ~/.ssh/
Note that is your username on the /remote/ system, not local. Enter a passphrase. This will make
In the compute engine, search for "metadata", switch to the SSH tab, Edit, add, copy in the contents of the .pub file, then save.
To test, and make sure it worked:
ssh -i ~/.ssh/keyfile username@externalip
then exit or open another terminal window, and:
sshfs -o allow_other,reconnect,ServerAliveInterval=120 -o IdentityFile=~/.ssh/keyfile username@externalip:start-folder-on-remote start-folder-on-local
It will ask you for the pass phrase the first time.
sudo fusermount -u start-folder-on-local
if it says the device is busy, try
sudo fusermount -zu start-folder-on-local
The start-folder-on-local has to be a place you own. You can't use /mnt because then you have to run sshfs as sudo and then you can't write to the files. Just make a mnt folder under /home and use that.
Amazingly enough, making a desktop shortcut icon is NOT included in the GUI on Ubuntu 18 and 20. Make a file called something.desktop, open it in gedit and type:
Exec=Command to Execute
Icon=Path to Icon
sudo cp your file to /usr/share/applications and when you run it right click the app in the Unity Launcher and tick "Keep in launcher" (if you want it in the Unity Launcher), or just put it on your desktop if you want a Desktop launcher. Put this file in ~/.local/share/applications if you want to only apply this to your user.
|file: /Techref/os/linux/docs.htm, 11KB, , updated: 2021/8/30 14:11, local time: 2021/11/30 20:15,
|©2021 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://massmind.org/Techref/os/linux/docs.htm"> Linux Documentation</A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to massmind.org!