Editing Xterm

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
#REDIRECT [[Terminal]]
+
==This page requires major clean-up!==
 +
 
 +
===The basics===
 +
 
 +
 
 +
 
 +
===Intermediate===
 +
 
 +
==Logged in as root from here on out. Not necessary for every command but for some of them. If you have sudoer installed you can simply prefix each command with sudo. If not you are gonna use an equivalent of sudo su - or simply login a root using another method. For easyroot users, simply type $ root and enter.==
 +
 
 +
 
 +
===This next section is Debian-based specific===
 +
 
 +
===The following is networking specific===
 +
''root@computer:~#'' '''ssh name@192.168.1.100'''
 +
 
 +
...
 +
 
 +
Are you sure you want to continue connecting (yes/no)?'''yes'''
 +
 
 +
''name@desktop:~$'' '''exit'''
 +
 
 +
:SSH example. Specify the user _at_ the IP address of the computer you want to access. Keep in mind that this works only over LAN by default (you need to forward port 22 on the router and give outside IP address or use some type of fake VPN). If you get a RSA error message, simply delete ~/.ssh/known_hosts using ''$'' '''rm ~/.ssh/known_hosts''' Type exit to leave remote session
 +
 
 +
 
 +
''root@computer:~#'' '''scp name@192.168.1.100:/home/name/randomfile /home/user/'''
 +
 
 +
''user@computer:~$'' '''ls /home/user/randomfile'''
 +
 
 +
:File is copied from remote computer to local computer to user's home directory. Root's home directory is /root
 +
 
 +
 
 +
''root@computer:~#'' '''ssh name@192.168.1.100'''
 +
 
 +
''name@desktop:~$'' '''screen'''
 +
 
 +
''name@desktop:~$'' '''hello'''
 +
 
 +
:Leaves a shared session open
 +
 
 +
''friend@laptop:~$'' '''ssh name@192.168.1.100'''
 +
 
 +
''name@desktop:~$'' '''hello world'''
 +
 
 +
:Allows you to work with a friend or simply resume a session later. Good for long tasks that need to disconnect from a machine and reconnect later.
 +
 
 +
 
 +
''root@computer:~#'' '''ssh name@192.168.1.100'''
 +
 
 +
''name@desktop:~$'' '''screen -ln nano /etc/resolv.conf'''
 +
 
 +
:[Nano instance]
 +
 
 +
'''[CTRL]+[A]+[D]'''
 +
 
 +
:Detaches from a screen leaving a process running on a remote machine
 +
 
 +
''name@desktop:~$'' '''exit'''
 +
 
 +
''root@computer:~#'' '''ssh name@192.168.1.100'''
 +
 
 +
''name@desktop:~$'' '''screen -r'''
 +
 
 +
:[Nano instance]
 +
 
 +
'''[CTRL]+[X]'''
 +
 
 +
''name@desktop:~$'' '''exit'''
 +
 
 +
:''[screen is terminating]''
 +
 
 +
''name@desktop:~$'' '''exit'''
 +
 
 +
''root@computer:~#''
 +
 
 +
:Detach a process. If you are running a process via ssh on a remote machine, the process is killed when the connection is interrupted, unless it was detached with screen.
 +
 
 +
[[Category:Power users]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)
Retrieved from "http://wiki.maemo.org/Xterm"