• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoQuick StartBasic Ubuntu for pcDuino
Previous Next

Basic Ubuntu for pcDuino

Posted by: admin , November 28, 2014

What is the version of Ubuntu?

The ubuntu version is LUbuntu v12.04 of Linaro.

How to install the software?

$ sudo apt-get update

$ sudo apt-get install [your software name]

For more help, you can read the help of the apt-get command.

You can also install software by Synaptic package manager. The password is “ubuntu”.

FAQ_ubuntu_1

 

 

FAQ_ubuntu_2

 

 

 

How to switch to command line mode?

 

In the latest image, there is a simple utility called board-config.sh that can be used to for this purpose.

 

Press CTRL+ALT+F1 ~ CTRL+ALT+F6 to switch to the command line mode.

Press CTRL+ALT+F7 to switch back to ubuntu session.

 

Stop or Start GUI?

You can switch to command line or use the debug serial cable to stop or start GUI.

 

To stop GUI:

 

$ sudo stop lightdm

To start GUI:

 

$ sudo start lightdm

To restart GUI:

$ sudo restart 1lightdm

When the lightdm GUI start, the configure file /etc/X11/xorg.conf will be applied.

 

How to change/disable screensaver timeout?

 

FAQ_ubuntu_3

 

 

FAQ_ubuntu_4

 

FAQ_ubuntu_5

 

Here are more settings that can be made here; see this link for details.

 

 

How to start a  a program at boot?

Say you want to always have an LXTerminal window open when the GUI loads. How do you go about doing this?

All you need to do is add the command to the end of the autostart file located here:

 

FAQ_ubuntu_6

 

For instance, to launch LXTerminal at boot, add the line “lxterm” to the end of the file.

 

Stopping the GUI from automatically loading on boot

If you’re using a pcDuino in an embedded application, it may be helpful to prevent the GUI from loading, to conserve processor resources. To log in only as root, with access only via the debugging serial port, open this file:

 

FAQ_ubuntu_7

 

Delete all of the content after [SeatDefaults]. This will stop it from launching the window manager and logging you in.

 

If you only want to stop the automatic login, just remove the last line (“autologin-user=ubuntu”) from the file, and you’ll be presented with a login screen at reboot.

 

 

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors