Remote access to the Slackware desktop operating platform

Source: Internet
Author: User
Tags ssh access tightvnc

We recommend the Slackware desktop system which is very useful to everyone, for example, to let everyone know about the Slackware desktop system, and then to give a comprehensive introduction to the Slackware desktop system, hoping to help everyone start the Slackware desktop, xen virtual Slackware desktop officially started;

After creating the/etc/xen/slack configuration file, we will use it to start the Slackware desktop operating system. The Xen virtual Slackware desktop is officially started;
[Root @ localhost ~] # Xm create-c slack
Start the process... and the logon screen is displayed;
Welcome to Linux 2.6.16-1.2080 _ FC5xenU (tty1)

Slack: login:
Enter root behind login, press enter, prompt the password, enter the password, and then press Enter. In this way, log on to the Slackware desktop;
Waking a person unnecessarily shoshould not be considered
A capital crime. For a first offense, that is.

Root @ slack ::~ # Root
Success, now we can use the Slackware desktop; In this output, Walking a person ...... and so on, is the famous saying from Slackware desktop login; each login has. First, check whether the network is accessible;
Root @ slack :~ # Ifconfig eth0
Eth0 Link encap: Ethernet HWaddr AA: 00: 00: 00: 11: 11
Inet addr: 192.168.1.11 Bcast: 192.168.1.255 Mask: 255.255.255.0
Inet6 addr: fe80: a800: ff: fe00: 11/64 Scope: Link
Up broadcast notrailers running multicast mtu: 1500 Metric: 1
RX packets: 12 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 14 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 2120 (2.0 Kb) TX bytes: 1974 (1.9 Kb)
Root @ slack :~ # Ping linuxsir.org
PING linuxsir.org (218.61.34.138) 56 (84) bytes of data.
64 bytes from cncln.online.ln.cn (218.61.34.138): icmp_seq = 1 ttl = 59 time = 7.20 MS
64 bytes from cncln.online.ln.cn (218.61.34.138): icmp_seq = 2 ttl = 59 time = 7.56 MS
It seems that we can use the Slackware desktop now. At this time, the Slackware desktop we applied should be considered as local access. We should learn how to use Fedora Core 5.0 for remote access. Please refer to the next section;

Remote access to the Xen virtual Slackware Desktop;

A Virtual Machine virtualizes another Slackware desktop operating platform on a server Load balancer desktop operating system platform based on its own needs. The virtual Slackware desktop operating system is independent of the actual operating system. The Virtual Operating System should be regarded as a running machine. Because the real operating system Fedora Core 5.0 and virtual Slackware desktop 10.2 are regarded as independent machines, we should think of two ways to remotely access the Slackware desktop, one is ssh and the other is vnc. ssh access is text, while vnc access is desktop access;

1. Remote Access through ssh;
Ssh remote access is relatively simple. First, check whether the sshd server is installed on the Slackware desktop. This process is performed on the Slackware desktop, boot The Slackware desktop to log on;

1. commands for guiding the Slackware desktop;
[Root @ localhost ~] # Xm create-c slack
2. Check that the sshd server is running;
Log on to the Slackware desktop and check that the sshd server is running. If the following message is displayed, the sshd server is running. Otherwise, the sshd server is not installed;
Root @ slack :~ # Pgrep sshd
400
3. Determine whether the sshd server is installed;
Check whether the sshd server is installed. Check/var/adm/packages. If there is an openssh file in it, it indicates it has been installed;

Root @ slack :~ # Ls/var/adm/packages/openssh *
/Var/adm/packages/openssh-4.2p1-i486-1.
If not, find the openssh software package in the first installation disk and use the following command to install it;
Root @ slack :~ # Installpkg openssh *
4. How can I open the sshd server?
Root @ slack :~ #/Etc/rc. d/rc. sshd
5. Check if the sshd server is running?
Root @ slack :~ # Pgrep sshd
6. view the IP address of the NIC;
Root @ slack :~ # Ifconfig
Eth0 Link encap: Ethernet HWaddr AA: 00: 00: 00: 00: 11
Inet addr: 192.168.1.11 Bcast: 192.168.1.255 Mask: 255.255.255.0
Inet6 addr: fe80: a800: ff: fe00: 11/64 Scope: Link
Up broadcast notrailers running multicast mtu: 1500 Metric: 1
RX packets: 165 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 15 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 10538 (10.2 Kb) TX bytes: 2011 (1.9 Kb)
Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
Up loopback running mtu: 16436 Metric: 1
RX packets: 8 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 8 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 784 (784.0 B) TX bytes: 784 (784.0 B)
The above indicates that the network address is 192.168.1.11; the physical address is AA: 00: 00: 00: 11. Where is the physical address set ?? Is in the/etc/xen/slack configuration file of Fedora Core 5.0;
7. Access the Slackware desktop through ssh in Fedora;
[Root @ localhost ~] # Ssh root@192.168.1.11
The authenticity of host' 192. 168.1.11 (192.168.1.11) 'can't be established.
RSA key fingerprint is 81: 0f: fc: ff: a9: e2: d0: e0: 27: 89: 00: db: f0: 33: f0: 48.
Are you sure you want to continue connecting (yes/no )? Yes Note: Enter yes here;
Warning: Permanently added '192. 168.1.11 '(RSA) to the list of known hosts.
Root@192.168.1.11's password: Note: enter the password here;
Last login: Wed Apr 5 10:02:47 2006 from 192.168.1.3
Linux 2.6.16-1.2080 _ FC5xenU.
It's not Camelot, but it's not Cleveland, either.
-- Kevin White, Mayor of Boston
Root @ slack :~ # Note: the logon is successful;

2. Access through vnc in Fedora;
In Fedora, you can connect to a remote Slackware desktop through vnc. This is a convenient tool and one of the most commonly used tools in the OpenSource operating system. In Fedora, we need to use the vnc client vncviewer, in the remote Slackware desktop, we need to mount the vnc Server vncserver;

1. Install vnc in Fedora;
[Root @ localhost ~] # Yum install vnc
2. Install vnc on the Slackware desktop;
We can install TightVNC in the Slackware desktop, I download the version is tightvnc-1.3dev7-i486-1kjz.tgz you can go to the http://www.linuxpackages.net to find the download, TightVNC please visit the following address, select an image to use wget download; http://www.linuxpackages.net/download.php? Id = 8599 download via wget on the Slackware desktop, for example;
# Wget http://linuxpackages.Slackware desktop support.com /\
Slackware desktop-10.2/ken/tightvnc-1.3dev7-i486-1kjz.tgz
Use installpkg to install TightVNC;
Root @ slack :~ # Installpkg tightvnc-1.3dev7-i486-1kjz.tgz
3. Configure and run vncserver on the Slackware desktop;

Step 1: Run vncserver to generate the logon password and configuration file;

Run vncserver to generate a file in the home directory of the current user. vnc Directory, which has a file that is important to the configuration file xstartup. Next we will introduce how to change this file;
Root @ slack :~ # Vncserver
You will require a password to access your tops.
Password: Enter the vncserver Password here;
Warning: password truncated to the length of 8.
Verify: Note: enter the password again;
Wocould you like to enter a view-only password (y/n )? Y
<B> Note: </B> enter a password that can only be visited. After logging on with this password, you can only view the password and cannot perform any operations. For example, the previous password, you can set the password to 123456 and only view the password on the desktop. You can set the password to 654321. You can try to see what the permissions for the two passwords are different;

Step 2: Disable vncserver;

Root @ slack :~ # Pkill vnc


Step 3: Configure vncserver;

In fact, the configuration of vncserver is mainly to allow the client to view the Slackware desktop, what desktop environment can be seen, such as GNOME, KDE, or Wmaker? The server Load balancer desktop must be installed on any desktop. The Slackware desktop system is relatively small, and there are only two disks in total. you can install and install it with installpkg or pkgtool. Do not mention how to install the desktop environment, we have already talked about how to install the Slackware desktop software package many times. For example, we want the client to browse the Wmaker desktop through vncview; I have to do the following;
Root @ slack :~ # Cd ~ /. Vnc Note: switch to the. vnc directory in the current user's home directory. I use the root user;
Root @ slack :~ /. Vnc # pwd Note: view the current directory of the user;
/Root/. vnc note: we can see that we are located in the. vnc directory under the root user;

Root @ slack :~ /. Vnc # cp/etc/X11/xinit/xinitrc.wma ker xstartup note: this allows the client to operate on the Wmaker desktop;
Root @ slack :~ /. Vnc # cp/etc/X11/xinit/xinitrc. gnome xstartup note: this allows the client to operate on the GNOME Desktop;
Root @ slack :~ /. Vnc # cp/etc/X11/xinit/xinitrc. kde xstartup Note: This allows the client to operate on the kde Desktop;
Root @ slack :~ /. Vnc # cp/etc/X11/xinit/xinitrc. xfce xstartup Note: This allows the client to operate the xfce desktop;
Choose one of the above desktops. Only after you have installed the corresponding desktop can you see the Startup file of the corresponding desktop in the/etc/X11/xinit directory. Note: each time you change xstartup, to restart the vncserver, otherwise it will not take effect;

Step 4: Start vncserver;

Root @ slack :~ /. Vnc # vncserver-depth 24-geometry 800x600-pixelformat RGB888
We use a x Resolution, and the color depth is 24 ...... for specific parameters, see vncserver -- help
Root @ slack :~ /. Vnc # vncserver-depth 24-geometry 800x600-pixelformat RGB888
New 'X' desktop is slack: 1 Note: Remember the following slack: 1. This is the IP address of the client to view the Slackware desktop through vncview;
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/slack: 1.log

Access the Slackware desktop through vncview in Fedora;

First, we run vncview in Fedora Core. vncview is a tool used to connect to the Remote Desktop;
[Root @ localhost ~] $ Vncviewer
A connection screen is displayed, with the following line: VNC server: Note: Enter the address of the vncserver on the Slackware desktop in the input box, you can view the network address on the Slackware desktop through ifconfig. For example, my Slackware desktop address is 192.168.1.11. After running vncserver, we can see the vncserver address slack: 1, if your machine has passed DNS resolution, you can enter slack: 1 after the VNC Server. If your machine does not provide DNS, you can directly access it by using an IP address, that is, replacing slack in slack: 1 with your IP address, which is similar to 192.168.1.11: 1. Therefore, we should enter 192.168.1.11: 1 in the VNC server input box. Please refer to your vncserver address and IP address. Here is just an example;
VNC server: 192.168.1.11: 1
After entering the password, you will be able to see the Slackware desktop .......

  1. Use Fedora Core 5 to install the Slackware 10.2 System
  2. Development version: Slackware Linux 13.0 RC1 released
  3. Slackware Linux 12.1 released
  4. Linux Xen platform selection and running
  5. Slackware linux Chinese Environment Settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.