ubuntu 16.04 server config

参考:https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04

  1. apache2:

    sudo apt-get install apache2
    
  2. Install MySQL

    sudo apt-get install mysql-server
    
  3. Install PHP

    sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql  
    sudo systemctl restart apache2
    
  4. Installing Webmin

    sudo nano /etc/apt/sources.list  
    Then add this line to the bottom of the file to add the new repository:  
    deb http://download.webmin.com/download/repository sarge contrib  
    
    wget http://www.webmin.com/jcameron-key.asc  
    sudo apt-key add jcameron-key.asc  
    sudo apt-get update  
    sudo apt-get install webmin  
    
  5. jre

    sudo apt install default-jre
    
  6. 32bit

    sudo dpkg --add-architecture i386  
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
    
  7. ctags

    sudo apt-get install ctags  
    sudo apt install cscope  
    
  8. samba

    sudo apt-get install samba  
    vim /etc/samba/smb.conf  
    

    把已有的账户添加到samba里并设置新密码,例如账户是“ycyubuntu”,在root账户下输入命令:smbpasswd -a ycyubuntu