Ubuntu use notes

Problems and solutions encountered during the use of Ubuntu.

Encountered problems with git pull##

prompt

Agent admitted failure to sign using the key.
Permission denied(publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Solution:

ssh-add ~/.ssh/id_rsa

Graphical interface editing configuration file##

Install dconf-editor.

Configure Exchange

Install the plugin ExQuilla for ThunderBird, sometimes it is blocked.

http://mesquilla.net/exquilla-currentrelease-tb-linux.xpi

Install and configure JDK

Run in Terminal:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

sudo vim /etc/profile

export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

Configure adt

Install a compatible 32-bit adb running environment

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

Add the path to the $PATH environment variable, modify /etc/profile or ~/.profile, etc.

export ANDROID_SDK_HOME=/home/mzlogin/android/sdk
export PATH=$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools:$PATH

Install SVN graphics front end RabbitVCS

Run in Terminal:

sudo add-apt-repository ppa:rabbitvcs/ppa
sudo apt-get update
sudo apt-get install rabbitvcs-nautilus3 rabbitvcs-thunar rabbitvcs-gedit rabbitvcs-cli

Create eclipse shortcut##

Create a new Eclipse.desktop in /usr/share/applications and fill in the following content:

[ Desktop Entry]
Name=Eclipse
Comment=Launch Eclipse
Exec=/home/mzlogin/android/eclipse/eclipse
Icon=/home/mzlogin/android/eclipse/icon.xpm
StartupNotify=true
Terminal=false
Type=Application

Install XMind

Go to XMind official website to download the installation package, then:

sudo dpkg --ignore-depends=lame,libwebkitgtk-1.0-0-i xmind-linux-3.5.0.201410310637_amd64.deb

Switch input method##

Add an English, a Wubi, and set the shortcut keys to switch to the previous source and the next source to Left and Right Shift respectively, so that you can use Left and Right Shift to switch back and forth between Chinese and English.

Installing im-switch will cause the language support to be removed. Use sudo apt-get install language-selector-gnome to restore.

Eliminate the warning when starting gVim in the terminal##

After installing vim-gnome, running gVim will prompt:

GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after classwas initialised

Just install vim-gtk instead.

Solve the problem of the level display and number of ibus Wubi candidate words##

Modify the orientation (horizontal 0, vertical 1) and select_keys in the ime table of /usr/share/ibus-table/tables/wubi-jidian86.db (there are several selection keys, there are several items, which can be seen from the following code., Separated).

/usr/share/ibus-tables/engine/tabsqlitedb.py

def get_page_size(self):returnlen(self.get_select_keys().split(','))

Map Caps Lock to Ctrl

  1. Install Gnome Tweak Tool
    sudo apt-get install gnome-tweak-tool

  2. Open tweak-tool, find "typing"-"caps lock key behavior", select "CapsLock as an additional Ctrl"

Reference http://askubuntu.com/questions/462021/how-do-i-turn-caps-lock-into-an-extra-control-key

Change the folder name under the personal folder to English##

~ The "Desktop" and "Documents" folders in the directory are in Chinese. It is inconvenient to input under Terminal. How to change them to English:

  1. Open ~/.config/user-dirs.dirs and change the Chinese in it:
    XDG_DESKTOP_DIR="HOME/desktop" XDG_DOWNLOAD_DIR="HOME/downloads" XDG_TEMPLATES_DIR="HOME/templates" XDG_PUBLICSHARE_DIR="HOME/public" XDG_DOCUMENTS_DIR="HOME/documents" XDG_MUSIC_DIR="HOME/music" XDG_PICTURES_DIR="HOME/pictures" XDG_VIDEOS_DIR="HOME/videos"

  2. In the file manager, change the Chinese folder name in the HOME directory to correspond to the above configuration.

Enter "" and ""

In the state of Pole Wubi Chinese input, press [] to input "", and press {} to input "".

Ubuntu resolution cannot be adjusted in VirtualBox##

When Ubuntu 14.04 LTS is installed in VirtualBox, the resolution is only 640*480, which cannot be adjusted.

Solution:

  1. Open xdiagnose

  1. Check all options under Debug

  1. Reboot

  2. Install enhancements

then:
cd /media//VBOXADDITIONS_X.X.XX_XXXXX sudo ./VBoxLinuxAdditions.run

(Pay attention to replace username with your own, X after VBOXADDITIONS with specific version number)

Share SSH key with Win7

The following steps are suitable for using SSH keys copied from Win7 on Ubuntu, and vice versa.

Create the ~/.ssh directory, confirm that its permissions are 0700, copy the id_rsa and id_rsa.pub files under Windows %userprofile%/.ssh to the ~/.ssh directory, and change the permissions to 0600 and 0644 respectively.

mzlogin@ubuntu:~$ ll ~/.ssh
total 20
drwx------2 mzlogin mzlogin 4096 Jun 2201:03./
drwxr-xr-x 20 mzlogin mzlogin 4096 Jun 2201:02../-rw-------1 mzlogin mzlogin 1679 Jun 2105:17 id_rsa
- rw-r--r--1 mzlogin mzlogin  399 Jun 2105:17 id_rsa.pub

then

ssh-add ~/.ssh/id_rsa

Recommended Posts

Ubuntu use notes
Ubuntu20.04 configuration notes
ubuntu zip/unzip use
Ubuntu16.04 common command notes
Ubuntu uses PlayOnLinux notes
Use supervisor in ubuntu
Use iptables under ubuntu
Ubuntu Linux study notes
ubuntu 14.04 16.04 18.04 use Alibaba source
Use of Anaconda in Ubuntu
Use sublime tex under ubuntu
Use of mediawiki under ubuntu
Use virtualbox to deploy ubuntu
How to use hanlp in ubuntu
Use QQ under Ubuntu 13.10, suitable for 14.10
Use disk quota in ubuntu multi-user
Ubuntu 18.04 install Sogou input method notes
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Ubuntu 20.04 use must install tool software
Use Ubuntu 16.04 for initial server setup
Docker CE for Ubuntu installation notes
Ubuntu installation and deployment Redash operation notes (2020.08)
Use mendeley to insert references under ubuntu
Python notes
Ubuntu18.04 Server version installation and use (graphic)
How to use Samba server on Ubuntu 16.04
Ubuntu software
Installation and use of Win10 subsystem Ubuntu
Linux (ubuntu 12.04)
Use python3 to install third on ubuntu
windows use ubuntu to start linux service
How to use Prometheus to monitor your Ubuntu 14.04 server
How to configure TensorFlow use environment in Ubuntu
Summary of methods to use Evernote under Ubuntu 14.04
Use rsync to remotely backup data under Ubuntu
Install and use Git and GitHub on Ubuntu Linux
How to use Nginx's map module on Ubuntu 16.04
Use the command to solve the Ubuntu projector problem:
How to install and use Docker on Ubuntu 20.04
How to use dpkg command in Ubuntu system
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
How to use Docker data volumes on Ubuntu 14.04
Use doxygen to generate API documentation under Ubuntu 12.04
Use Ubuntu and windows system in virtual machine
How to install and use Composer on Ubuntu 20.04
How to install and use BaasBox on Ubuntu 14.04
How to use Jenkins to build automatically on Ubuntu
The use of crontab for ubuntu scheduled tasks
How to install and use PostgreSQL on Ubuntu 16.04
Introduction to the use of Hanlp in ubuntu
Install Leanote on Ubuntu18 to build cloud notes
Installation and use of SSH in Ubuntu environment
How to install and use Docker on Ubuntu 16.04