[ Pobierz całość w formacie PDF ]
style" copying.
Many GUI applications (but not all) also support the Mac/MS-Windows-style "copy-paste": Select the text. Use
the menu item "edit"-"copy" (either from the pull-down menu, or a local menu activated with the
). Switch to the location where to copy to. Use the menu item "edit"-"paste". This works
fine for applications which use the same toolkit (e.g. KDE or GNOME) but does not always work across toolkits
(e.g., from a GNOME application to the KDE application).
As a keyboard shortcut for the last method, I can use for copying the highlighted text and
for pasting. Text can be highlighted without mouse using .
You may also use the cut-paste history. Try running klipper (in X-terminal, KDE).
The two copying methods are supposed to be separate; therefore, they should not mutually interfere.
To capture the content of a window or the entire screen to a graphics file, I use knapshot. Alternatively, I can
use to take a snapshot of the current window into the clipboard, and
to take a snapshot of the entire desktop into the clipboard.
To catch contents of a text console (outside of the GUI console), I could use in X terminal (probably as root):
cat /dev/vcs1
and then copy and paste whatever I need from the X terminal with a mouse. I need to adjust the number in "vcs1"
if my terminal to capture is not terminal 1.
The text-based consoles support the mouse if you run the gpm daemon. Type gpm to test it--it will run fine if
your mouse is appropriately configured. (You may want to run mouseconfig to configure your mouse.) To have
gpm start automatically on the system startup and stay running, select the gpm daemon using the ntsysv utility.
Use gpm exactly the same as the GUI cut-paste: highlight the text to be copied, move the text cursor to the "copy
to" location, and then press the middle mouse button (or both buttons at once for a two-button mouse) to paste.
4.3.11 How do I Display and Control a Remote Desktop using VNC
(VNC = Virtual Network Computing). A very useful application--don't miss it.
VNC is a cross-platform utility that allows me to display a remote graphical desktop over a standard network
connection. For example, I can use VNC on an MS Windows PC to display an X-window environment of my
mighty Linux server downstairs, or the other way around. VNC will even run over a 56k modem networking, but
probably only for fun or in emergency (too slow a connection for normal work).
Recent Mandrake or RH will have vnc on their distributions CD. The MS Windows version you have to download
yourself. See http://www.uk.research.att.com/vnc/ for download information and more details.
Part 4: Linux Newbie Administrator FAQ 78
Linux Newbie Guide by Stan, Peter and Marie Klimas 01/08/2003
On Linux, VNC consists of four commands: vncserver, vncviewer, vncpasswd, and vncconnect. I typically need
just two of them: vncserver and vncviewer. A brief description of the commands follows.
vncserver
The server that has to be running on the host (remote) computer. You start the server as the user whose desktop
will be displayed (don't run the server as root or somebody else somebody may kidnap your computer!).
vncviewer
The local application wich connects to the vncserver and displays the remote environment. You need to know the
password and ip address of the server to connect.
vncpasswd
Password selection utility for vncserver. The server won't run without password (good behaviour). Therefore, if
you don't select one, it will prompt you. Hence, I don't need to explicitly run vncpasswd.
vncconnect
Tells vncserver to connect to a listening VNC viewer on the given computer and port. This way I can avoid giving
anybody a password.
Xvnc
A "master" program that I don't really need to run directly (vncserver and vncviewer are scripts which call
Xvnc).
For a list of all available options I run:
Xvnc -help
It is not recommenced to run the VNC server as root due to potential security issues. If you need root privileges,
login as a user and then execute su
Two examples of "typical" sessions follow.
Example 1. Sitting at an MS Window computer, I can display an X environment from my Linux server, using the
following sequence:
[start a DOS terminal and type in the following command]
telnet my_linux_server_name
[log in to your user account on Linux and type in it the following command]
vncserver
[provide a really good password of your choice when prompted; mine was "357+Simon&Garfunkel"]
[re-enter the same password for confirmation]
[watch the messages and note the screen number on which the server is started; mine was ":4"]
[From the "Start" menu on the MS Windows computer, select "Programs" - "Vnc" - "Run VncViewer"
[ Pobierz całość w formacie PDF ]