![]() How to install Putty ssh client on Ubuntu 16 Putty app is using to manage your server you may need to have some remote login tool and putty is most easy to use and quick to deploy remote login application. Step 1: Install putty on Ubuntu root@ubuntu:~# apt-get install putty Reading package lists Done Building dependency tree Reading state information Done The following additional packages will be installed: putty-tools Suggested packages: putty-doc The following NEW packages will be installed: putty putty-tools 0 upgraded, 2 newly installed, 0 to remove and 463 not upgraded. Need to get 662 kB of archives. After this operation, 2,713 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 xenial/universe amd64 putty-tools amd64 0.67-2 [342 kB] Get:2 xenial/universe amd64 putty amd64 0.67-2 [321 kB] Fetched 662 kB in 5s (132 kB/s) Selecting previously unselected package putty-tools. (Reading database 196361 files and directories currently installed.) Preparing to unpack /putty-tools_0.67-2_amd64.deb Unpacking putty-tools (0.67-2) Selecting previously unselected package putty. Preparing to unpack /putty_0.67-2_amd64.deb Unpacking putty (0.67-2) Processing triggers for man-db (2.7.5-1) Processing triggers for gnome-menus (3.13.3-6ubuntu3) Processing triggers for desktop-file-utils (0.22-1ubuntu4) Processing triggers for bamfdaemon (0.5.3~bzr0+0321-0ubuntu1) Rebuilding /usr/share/applications/bamf-2.index Processing triggers for mime-support (3.59ubuntu1) Setting up putty-tools (0.67-2) Setting up putty (0.67-2) root@ubuntu:~# Step 2: Start and Use putty. Introduction VNC or Virtual Network Computing is a platform-independent protocol that enables users to connect to a remote computer system and use its resources from a Graphical User Interface (GUI). It's like remote controlling an application: the client computer's keystrokes or mouse clicks are transmitted over the network to the remote computer. VNC also allows clipboard sharing between both computers. If you come from a Microsoft Windows server background, VNC is much like the Remote Desktop Service, except it's also available for OS X, Linux, and other operating systems. This article serves as an add-on to the information found at Installing GNS3 on CentOS 7 GNS3 is a popular network software emulator. It uses the Dynamips emulation software to simulate Cisco IOS. Like everything else in the networking world, VNC is based on the client server model: VNC server runs on a remote computer — your Droplet — which serves incoming client requests. Goals In this tutorial we will learn how to install and configure a VNC server on CentOS 7. We will install the TigerVNC server which is freely available from the. To demonstrate how VNC works, we will also install the GNOME desktop on your CentOS server. We will create two user accounts and configure VNC access for them. We will then test their connectivity to the remote desktop, and finally, learn how to secure the remote connection through an SSH tunnel. Prerequisites The commands, packages, and files shown in this tutorial were tested on a minimal installation of CentOS 7. SSH Keying through PuTTY on Windows or Linux| Remote Linux Centos with Putty runs on Windows. How To Install & use Putty in Ubuntu Linux by Pradeep Kumar Published July 13, 2014 Updated August 4, 2017 System Admins who had worked on Windows Operating system, surely they have used putty software to ssh UNIX like systems. How To Install Putty In Centos 7 Network ConfigWe would recommend the following: • Distro: CentOS 7, 64-bit • Resource Requirements: A Droplet with 2 GB RAM • To follow this tutorial, you should use a sudo user. To understand how sudo privileges work, you can refer to Warning: You should not run any commands, queries, or configurations from this tutorial on a production Linux server. This could result in security issues and downtime. Step 1 — Creating Two User Accounts First, we will create two user accounts. These accounts will remotely connect to our CentOS 7 server from VNC clients. • joevnc • janevnc Run the following command to add a user account for joevnc: sudo useradd -c 'User Joe Configured for VNC Access' joevnc Then run the passwd command to change joevnc's password: sudo passwd joevnc The output will ask us for new password. Once supplied, the account will be ready for login: Changing password for user joevnc. New password: Retype new password: passwd: all authentication tokens updated successfully. Next, create an account for janevnc: sudo useradd -c 'User Jane Configured for VNC Access' janevnc Set the password for janevnc: sudo passwd janevnc Step 2 — Installing GNOME Desktop Now we will install GNOME desktop. Centos 7 Installation GuideGNOME is a collaborative effort: it's a collection of free and open source software that makes up a very popular desktop environment. There are other desktop environments like KDE, but GNOME is more popular. Our VNC users will use GNOME to interact with the server from its desktop: sudo yum groupinstall -y 'GNOME Desktop' Depending on the speed of your network, this can take a few minutes. Once the package group is installed, reboot the server: sudo reboot Troubleshooting — Server Stuck at Boot Phase Depending on how your server has been set up, when the machine starts up it may remain in the boot phase showing a message like this: Initial setup of CentOS Linux 7 (core) 1) [!] License information (Licence not accepted) Please make your choice from above ['q' to quit| 'c' to continue| 'r' to refresh]: To get past this, press 1 (license read), then 2 (accept licence), and then C (to continue). You may have to press C two or more times. The image below shows this: If you don't see this error and the boot process is smooth, all the better – you can move on to the next step. Step 3 — Installing TigerVNC Server TigerVNC is the software that will allow us to make a remote desktop connection. Install the Tiger VNC server: sudo yum install -y tigervnc-server This should show output like the following: Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile... Running transaction Installing: tigervnc-server-1.2.80-0.4svn5065.el7.x86_64 1/1 Verifying: tigervnc-server-1.2.80-0.4svn5065.el7.x86_64 1/1 Installed: tigervnc-server.x86_64 0:1.2.80-0.4svn5065.el7 Complete! Now we have VNC server and the GNOME desktop installed. We have also created two user accounts for connecting through VNC. Step 4 — Configuring VNC Service for Two Clients VNC server doesn't start automatically when it's first installed. To check this, run the following command: sudo systemctl status [email protected] The output will be like this: [email protected] - Remote desktop service (VNC) Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled) Active: inactive (dead) You can also run this command: sudo systemctl is-enabled [email protected] This should show output like this: disabled So why is it disabled? That's because each user will start a separate instance of the VNC service daemon. In other words, VNC doesn't run as one single process that serves every user request. Each user connecting via VNC will have to start a new instance of the daemon (or the system administrator can automate this). CentOS 7 uses the systemd daemon to initiate other services. Each service that natively runs under systemd has a service unit file that's placed under the /lib/systemd/system directory by the yum installer. Processes that get started automatically at boot time have a link to this service unit file placed in the /etc/systemd/system/ directory. In our case, a generic service unit file was created in the /lib/systemd/system/ directory, but no link was made under /etc/systemd/system/. To test this, run the following commands: sudo ls -l /lib/systemd/system/vnc* You should see: -rw-r--r-. 1 root root 1744 Jun 10 16:15 /lib/systemd/system/[email protected] Then check under /etc/systemd/system/: sudo ls -l /etc/systemd/system/*.wants/vnc* This one doesn't exist: ls: cannot access /etc/systemd/system/*.wants/vnc*: No such file or directory So, the first step is to start two new instances of VNC server for our two users. To do this, we will need to make two copies of the generic VNC service unit file under /etc/system/system. ![]() In the code snippet below, you're making two copies with two different names: sudo cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:4.service sudo cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:5.service So why did we add two numbers (along with the colon) in the copied file names? Again, that comes back to the concept of individual VNC services. VNC by itself runs on port 5900. Since each user will run their own VNC server, each user will have to connect via a separate port. The addition of a number in the file name tells VNC to run that service as a sub-port of 5900. So in our case, joevnc's VNC service will run on port 5904 (5900 + 4) and janevnc's will run on 5905 (5900 + 5). How To Install Putty In Centos 7 Network DriveNext edit the service unit file for each client. Open the /etc/systemd/system/vncserver@:4.service file with the vi editor: sudo vi /etc/systemd/system/vncserver@:4.service A look at the 'Quick HowTo' section tells us we have already completed the first step. Now we need to go through the remaining steps. The comments also tell us that VNC is a non-trusted connection. We will talk about this later. For now, edit the [Service] section of the file, replacing instances of with joevnc. Also, add the -geometry 1280x1024 clause at the end of the ExecStart parameter. This just tells VNC the screen size it should start in. You will modify two lines in total. Centos 7 SetupHere's what the edited file should look like (note that the entire file is not shown): # The vncserver service unit file # # Quick HowTo: # 1. Copy this file to /etc/systemd/system/[email protected] # 2. Edit and vncserver parameters appropriately # ('runuser -l -c /usr/bin/vncserver%i -arg1 -arg2') # 3. Run `systemctl daemon-reload` # 4. Run `systemctl enable [email protected]` #...
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |