Environment: ubunut14 x64
Objective: To write QT programs on Ubuntu via VNC Remote Desktop
1. Install Remote Desktop
Apt-get Install xrdp vnc4server xbase-clients dconf-editor #安装xrdp, Vnc4server
Apt-get Install Gnome-panel Gnome-settings-daemon metacity Nautilus gnome-terminal #安装桌面
2. Modify/root/.vnc/xstartup to the following content
#!/bin/sh
# Uncomment the following-lines for normal desktop:
# unset Session_manager
# Exec/etc/x11/xini T/XINITRC
export xkl_xmodmap_disable=1
unset session_manager
unset dbus_session_bus_address
Gnome-panel &
Gnome-settings-daemon &
metacity &
Nautilus &
Gnome-terminal &
root@# Vnc4server
The first run will require a login password (for VNC connection)
Apt-get Install Lsb-core
1. Install some libraries to avoid the strange problems behind
Apt-get Install build-essential debian-keyring Freeglut3-dev
2. Installation of qt5.7 and Qtcreator
Download Address HTTP://DOWNLOAD.QT.IO/OFFICIAL_RELEASES/QT/5.7/5.7.1/
Select Qt-opensource-linux-x64-5.7.1.run
Edit permissions after uploading to Ubuntu
chmod 777 Qt-opensource-linux-x64-5.7.1.run
Then install qt5.7
Download Qtcreator
Download Address: http://download.qt.io/official_releases/qtcreator/4.1/4.1.0/
Select Qt-creator-opensource-linux-x86_64-4.1.0.run
Install with qt5.7 to install package permissions
Note: If you create a project prompt after starting Qtcreator, no build kit is
manually specified qmake