The installation of Ubuntu system is no longer recorded, there are too many introductions. The following mainly records some post-installation environment and some problems of the solution.
Installation of 1.git Tools
Because you want to use the Git tool to manage the source code, install the system first to install the Git tool. Open terminal to execute the following command.
sudo apt-get install Qgit
2. Using SSH to telnet to the server for development
Login command: SSH [-x] [email protected]_address (eg:192.18.0.12)-------here-X to support the graphical interface, Gedit Open and save in the server operation, more convenient than the command line
Copy files/folders from a remote Ubuntu machine to a local: SCP [-R] [email protected]_address:/home/username/remotefile.txt./
Copy local files to remote Ubuntu server: SCP [-R] localfile.txt [email protected]_address:/home/username/
Copy files/folders from a remote Ubuntu machine to a local: rsync-v-u-a--delete--rsh=ssh--stats [email protected]:/home/username/remotefile.txt./
Copy files/folders from local to the remote Ubuntu machine: rsync-v-u-a--delete--rsh=ssh--stats localfile.txt [email protected]:/home/username/
3. Configure shortcut Login remote server (SSH)
First copy the. SSH directory under the remote server to Local: scp-r [email protected]_address:~/.ssh./
Then create a new config file in the local. SSH directory and enter the following information: Gedit. ssh/config
Host Server---------Here the server will be the shortcut login is the remote host name, replace the previous "[Email protected]_address" This string of characters
User username---------logon to the remote host's username
hostname ip_address---------Remote host name (here is the IP address)
Port number---------Ports used
Identityfile ~/.ssh/id_rsa---------Encryption private key used
This allows you to use the SSH server command to quickly access the remote server without having to enter a long list of instructions and login passwords.
4. Use Gedit to view txt document in Chinese garbled
Because Gedit uses UTF-8 to decode Chinese, and Windows TXT uses GB2312 encoding, it is necessary to add the corresponding encoding method.
After running the gconf-editor instruction, select Apps->gedit-2->preferences->encodings, double-click auto_detected, add GB18030,GBK, GB2312 and move to the top.
After the above steps are complete, it is basic to start logging on to the remote server for development work. As for local development, there is also a need to configure the relevant environment, followed by a gradual build of the Android development environment, and start the development of Android.