Using Ubuntu to install the graphical interface

Source: Internet
Author: User

Confirm that SourceList is new, command line:
sudo apt-get update

Install Picture interface:

1, sudo apt-get install Xinit

2. sudo apt-get install GDM

3, sudo apt-get install Ubuntu-desktop

------------------------

Ps:

To cancel the GUI auto-start:

    1. #update-RC.D-FGDM Remove

The desktop is not automatically entered after a reboot, and you can start the desktop with StartX.

Restore GUI auto-start:

    1. #update-RC.DGDM Defaults

===============

Common commands

If you want to keep the current user logged in and use the root user to execute the command, you can enter: Su root! Input honey code, can run, shutdown command

Restart command: 1, reboot

2. shutdown-r now reboot (root user)

3, Shutdown-r 10 over 10 minutes automatic restart (root user use)

4, Shutdown-r 20:35 restart at 20:35 time (root user) if the restart is set by Shutdown command,

You can cancel the restart with the SHUTDOWN-C command

Shutdown command: 1, halt immediately shut down the machine

2, Poweroff immediately shut down the machine

3, Shutdown-h now immediately shut down (root user use)

4, shutdown-h 10 10 minutes after the automatic shutdown if it is set by the shutdown command to shut down the computer,

You can cancel the restart with the SHUTDOWN-C command

====================

Remote

sudo apt-get install XRDP

sudo apt-get install vnc4server tightvncserver

echo "Gnome-session--session=ubuntu-2d" >. xsession

SUDO/ETC/INIT.D/XRDP restart

Then windows can remote Ubuntu system up

=======================

Ubuntu installation Configuration Ftp ubuntu 12.04 Install FTP software of course choose the famous vsftpd (very secure FTP daemon), Ubuntu installed vsftpd is simple, a command line:  sudo Apt-get install vsftpd  When the command is executed, the installer will create a user group named "FTP" locally, and the FTP service will start automatically after the command is executed.   can use the "netstat-tl" command to check whether the FTP port has been opened, or directly in the browser input "ftp://your server IP" (the newly installed VSFTPD can be anonymous without direct access to the password), if you can directly connect to the FTP server, The installation of VSFTPD is accomplished.   Start, stop, restart VSFTPD service is also simple:  service vsftpd Start | Stop | restart  the newly installed vsftpd is anonymously accessible by default, and if you only want to give a specific user access to a directory, you need to modify the configuration of the vsftpd.   First, create a user specifically for access, such as "test":  mkdir-p/home/testsudo useradd-g ftp-d/home/test-m test ps: Delete the user with the following command: & Nbsp;sudo Userdel test   Set Password:  passwd test  Modify VSFTPD configuration File "vi/etc/vsftpd.conf":  # Prohibit anonymous access anonymous_enable=no# accept local user local_enable=yes# can upload write_enable=yeslocal_umask=022# enabled in Chroot_list_ File users can only access the root directory chroot_list_enable=yeschroot_list_file=/etc/vsftpd.chroot_list  in/etc/vsftpd.chroot_ List add users who are restricted by Access directory:  echo "test" >> vi/etc/vsftpd.chroot_list   "OOPS:vsftpd:refusing to run witH writable root inside Chroot () "  If Chroot is enabled, the root directory is set to not writable, which is the vsftp protection mechanism.  chmod a-w/home/test  Then the user accesses the FTP to access the object under test, but cannot upload the file. If the test folder is set to 777 permissions, then FTP will not log on.   So the solution is. In the test folder and then create a folder "/home/test/wwwroot", the wwwroot set to 777, then upload something later uploaded to Wwwroot.  ok, after restarting VSFTPD, you can use the newly created account access above.

Install the graphical interface using Ubuntu

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.