Skip to main content

Ubuntu Development Tools

Select a Package Mirror​

Ubuntu package downloads may be slow on some networks. Use “Software & Updates” to select a suitable mirror.

Ubuntu software update prompt

Ubuntu application list

Open the download-server selector from the Ubuntu Software page.

Ubuntu software source settings

Opening the download-server menu

Select a stable mirror under China and confirm.

Selecting a China mirror

Selected package mirror

Refresh the package index:

sudo apt-get update

A full system upgrade is not required just to prepare an SDK build environment. Run it only when appropriate:

sudo apt-get upgrade

Repair dependencies when needed:

sudo apt-get -f install

Normal User and Root​

Perform daily builds as a normal user and use sudo for administrative actions. Enabling root login is normally unnecessary.

To set a root password explicitly:

sudo passwd root

Root password example

Basic Utilities​

Install ifconfig:

sudo apt-get install -y net-tools

Install Vim:

sudo apt-get install -y vim

APT package installation example

File Transfer Between Windows and Ubuntu​

Install the SSH Server​

sudo apt-get install -y openssh-server
sudo systemctl enable --now ssh
sudo systemctl status ssh

Use the normal Ubuntu account for SFTP. Root SSH login should remain disabled:

PermitRootLogin no

SSH configuration example

Restart SSH when required:

sudo service ssh restart

Restarting SSH

Display the VM IPv4 address:

ip -4 addr

After installing net-tools, ifconfig may also be used.

Displaying the VM IP address

Use FileZilla​

Install FileZilla Client on Windows.

Installing FileZilla

Create an SFTP site:

ItemValue
ProtocolSFTP - SSH File Transfer Protocol
HostUbuntu VM IP address
Port22
Logon typeNormal
UserNormal Ubuntu user
PasswordPassword for that user

FileZilla Site Manager

FileZilla SFTP settings

After connecting, transfer files by dragging or double-clicking.

FileZilla connected to Ubuntu