Initiator (Computer A)-----------> remote-enabled computer (PC B)A computer that is opened remotely (Computer B):1. Reboot and go to BIOS settings2. Set Wake on Land/wake on PCI (E) to enable3. Save and Access Ubuntu screen4. sudo apt-get install Ethtool5. sudo ethtool-s eth0 wol g (eth?? Depending on the computer network card number, can be confirmed by Ifconfig)6. nano/etc/rc.localAdd the following 2 line
Native to Ubuntu system, Local System character encoding is:Echo $LANGZh_cn. UTF-8The character encoding for the remote server (121.199.42.27) is:Zh_cn. GB18030After logging on to the server via SSH, check the Catalina.out log in Tomcat and find that Chinese is garbled.The following are the solutions:
VI catalina.out: Set Termencoding=utf-8
Tail,more and other viewing files garbled way to solve
from any host.GRANT All Privileges on *. * to ' MyUser '@ '%' by'mypassword' withGRANTOPTION;If you want to allow users to connect to the MySQL server from a host myuser IP 192.168.1.3 and use MyPassword as the password grant all privileges on * . * to " myuser " @" 192.168.1.3 " identified by nbsp; Br> " MyPassword " with grant option ; I succeeded in using the first method.Reference: http://blog.csdn.net/july_2/article/details/418962954.ERROR 2003 (HY000): Can '
This article was sponsored by Xiuyi linfeng and first launched in the dark world.
I used remote NFS on Ubuntu today and found that I was unable to use it because of an error.
Check whether the NFS mounting command is correct. The command is as follows:
Mount-t nfs 192.168.1.11:/data/work/soft/ISO/home/Lianzhou/ISO
Check the relevant information. Because the NFS client is not installed in ubunutu14 by
1. Create a remote user in phpMyAdmin and grant the related database operation permissions.
2. I have to modify the MySQL configuration file in Ubuntu. this is not mentioned in many materials. I have also made many detours here, specifically:
File a/etc/MySQL/My. CNF, search for bind_address = 127.0.0.1, add # At the beginning of the line, that is, comment out
B. Restart MySQL,/etc/init. d/MySQL restart.
This article is first published onThe world. I used remote NFS on Ubuntu today and found that I was unable to use it because of an error. 650) This. width = 650; "Title =" clip_image001 "style =" border-right-width: 0px; Background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; padding-Right: 0px; border-top-width: 0px; "Border =" 0 "alt =" clip_image001 "src =" h
Objective
I built the Php+laravel development environment with Docker on the local Ubuntu machine, but configured the remote PHP interpreter (the PHP interpreter in the Docker container) and the connection docker in the local 2016.3.2 version of Phpstorm API found Unable to connect, Google for a long time found in the UNIX system Docker default to use the socket file/var/run/docker.sock, so in the Phpstorm
If you encounter the exception prompt in the client tool such as Dbeaver:At this point, you need to log in to the server and set up your MySQL and restart MySQL as follows
Vim/etc/mysql/my.cnf
Configure the bind-address inside = 127.0.0.1
This one changed to Bind-address = 0.0.0.0Cancel MySQL Server binding to the address!Save exit after (Wq)2.sudo/etc/init.d/mysql Restart (restart MySQL service)If the following error also occurs:Execute the following command in the server's MySQL dat
Input mysql-uroot-p under the shell can be logged in, so the problem should be that MySQL does not allow root users to log on remotely, so by entering the following command:
GRANT all privileges on * * to [e-mail protected] "%" identified by ' password ' with GRANT OPTION;
After restarting MySQL, the discovery is still not connected, so I think the firewall (UFW) or iptables disabled port 3306. With service iptables stop and UFW status, you can see that the discovery is not a firewall or
0. Generate the configuration file (usually by default)Jupyter Notebook--generate-config1. Open Ipython, create a ciphertext passwordIn [1]: From Notebook.auth import Passwdin [2]: passwd () Enter password:verify password:out[2]: ' sha1:ce23d945972f:347696 85a7ccd3d08c84a18c63968a41f1140274 '2. Modify the default configurationVim ~/.jupyter/jupyter_notebook_config.py3.c.notebookapp.ip= ' * ' # is to set all IP access to C. Notebookapp.password = U ' Sha:ce ... The cipher that you just copied ' c
Today, I used myeclipse's dB explorer to connect to MySQL installed on ubuntu8.04. An error is always prompted, but access to Ubuntu is normal. So I started to find the cause:
1.Port 3306 is not enabled?
Run the nestat command to view the status of port 3306:
~ # Netstat-An | grep 3306
TCP0 0 127.0.0.1: 3306 0.0.0.0: * listen
The result shows that port 3306 only listens to the IP address 127.0.0.1, so access from other IP addresses is denied.
Solutio
First, install X11vnc
In the current we have created and installed the Ubuntu release version directly with Apt-get installation X11VNC.
The code is as follows
Copy Code
Apt-get update-y
Apt-get Install X11vnc-y
Second, set VNC password
The code is as follows
Copy Code
x11vnc-storepasswd
Enter the command,
To install open SSH:sudo apt-get install Openssh-server
Change root passwordsudo passwd root
Log in with a different account and modify/etc/ssh/sshd_config with sudo nano:[Email protected]:~$ su-root #切换到root账户Password: #输入第二步修改的root密码[Email protected]:~# vi/etc/ssh/sshd_config
Find the following code, comment out #PermitRootLogin without-password, add permitrootlogin Yes# Authentication:Logingracetime 120#PermitRootLogin Prohibit-passwordPermitrootlogin YesStrictmodes Yes
Restart the SS
Preparatory workThe first thing to install is IpythonRecommended direct Anaconda (installed on the server).Anaconda helps you integrate N-Python-related environments (packages) so you don't have to manually click and installServer Startup Ipython NotebookCode:# Port own definition # IP I direct use of four 0, if there is a need to change their ownRemember to specify the IP and port, where your current path starts, and where the path is when you enter notebook.Local accessCopy the in URL to a loc
I remotely copy the/etc/hosts file to the S1 host on the S0 host, and the following error message appears:[Email protected]:~$ scp/etc/hosts [email protected]:/etc/[email protected] ' s password:Permission denied, please try again.The solution is as follows: 1. sudo gedit/etc/ssh/sshd_configComment out Permitrootlogin Without-password, add permitrootlogin Yes:# Permitrootlogin Without-passwordPermitrootlogin YesSave, exit2. Restart the SSH service sudo service ssh restartTry the SCP command
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.