Passing multiple commands to gnome-terminal from a script

Solution 1:

I've had trouble passing multiple commands to gnome-terminal before, too. Something like this is what I eventually ended up using in my case:

gnome-terminal -x bash -c "echo \"qt4-dev-tools and qt4-default are missing. Now trying to install.\" && sudo apt-get install qt4-dev-tools qt4-default"

Hope it works for you.