How to run application in separate terminal window on Ubuntu?

Step 1 – install lxterminal

$ sudo apt install lxterminal

Step 2 – run application by lxterminal

$ lxterminal -e application_name &

How to pass password for sudo command via command line?


  1. sudo should be executed with -S flag.
  2. Password should be passed by echo command.


$ echo 'password' | sudo -S mv $(PROGNAME) /usr/lib

Send string to stdin

How to fix ‘sudo: no tty present and no askpass program specified’ error?

dbus_bus_request_name (): Connections are not allowed to own the service

Error on starting RIL daemon using dbus: “dbus_bus_request_name() failed (“Connection “connection_name” is not allowed to own the service “service_id” due to security policies in the configuration file”)”.


Make sure that access is granted in configuration file for user and group running the application

<!DOCTYPE busconfig PUBLIC 
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"

<policy user="user">
<allow own="service_id"/>

<policy group="group">
<allow own="service_id"/>

<policy context="default">
<allow send_destination="service_id"/>
<allow receive_sender="service_id"/>


Copy configuration file into /etc/dbus-1/system.d.

Read more

How to set up iperf for network performance testing?

IPv4 testing

Start server

$ iperf3 --server

Start client (UDP)

$ iperf3 --client ipv4_address --bandwidth 0 -n 32768M --length 8KB  
  --udp --port 5201 --parallel 8 --title 'test'

IPv6 testing

Start server

$ iperf3 --server -6

Start client (TCP)

$  iperf3 --client -6 ipv6_address --bandwidth 0 -n 32768M --length 8KB 
   --port 5201 --parallel 8 --title 'test'

How to install iperf under Linux?