Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

How to create terminal command shortcut for desktop

Help for Current Versions of MX
User avatar
Yellowhoney
Forum Novice
Forum  Novice
Posts: 59
Joined: Sat Apr 20, 2019 5:36 am

How to create terminal command shortcut for desktop

#1

Post by Yellowhoney » Thu Aug 08, 2019 7:11 am

Could someone please guide me to make a desktop shortcut that a family member can leave on the desktop

I need

Code: Select all

gnome-control-center online-accounts
2007 20* Imac running 3gb MX18.3
i5 4670k 16gb ram

User avatar
fehlix
Developer
Posts: 4639
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to create terminal command shortcut for desktop

#2

Post by fehlix » Thu Aug 08, 2019 7:34 am

Yellowhoney wrote:
Thu Aug 08, 2019 7:11 am
Could someone please guide me to make a desktop shortcut that a family member can leave on the desktop

I need

Code: Select all

gnome-control-center online-accounts
Right click on Desktop -> Create Launcher
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Yellowhoney
Forum Novice
Forum  Novice
Posts: 59
Joined: Sat Apr 20, 2019 5:36 am

Re: How to create terminal command shortcut for desktop

#3

Post by Yellowhoney » Sun Aug 11, 2019 7:18 am

How do you also create a terminal base shortcut for the desktop

I don't know if the launcher is the right way to do it , or should i make a script

I want to create a shortcut for my mum with
if I wanted a "sudo apt update && apt upgrade"
2007 20* Imac running 3gb MX18.3
i5 4670k 16gb ram

User avatar
JayM
Qualified MX Guide
Posts: 1873
Joined: Tue Jan 08, 2019 4:47 am

Re: How to create terminal command shortcut for desktop

#4

Post by JayM » Sun Aug 11, 2019 7:47 am

Why not just let the MX Updater take care of that?

But if you need something she can click on and run herself, first do this then make a shell script on her desktop that does what you want. Something like

Code: Select all

#!/bin/sh
sudo apt update && apt dist-upgrade
then right-click on it and make it executable. You can also select a different icon for it if you like.
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.

User avatar
Richard
Posts: 2804
Joined: Fri Dec 12, 2008 10:31 am

Re: How to create terminal command shortcut for desktop

#5

Post by Richard » Sun Aug 11, 2019 7:56 am

Code: Select all

#!/bin/sh 
sudo apt update && sudo apt dist-upgrade 
Forgot the second sudo.
[And I fat fingered the dist...]
Corrected. :}
Last edited by Richard on Sun Aug 11, 2019 8:11 am, edited 1 time in total.
LT: MX18.3: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge; 8GB RAM; 4.19.0-5-amd64; 119GB SSD 840PRO, Intel Graphics-Audio-Network

NB: antiX19b2full-xfce; MX18.3: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

User avatar
JayM
Qualified MX Guide
Posts: 1873
Joined: Tue Jan 08, 2019 4:47 am

Re: How to create terminal command shortcut for desktop

#6

Post by JayM » Sun Aug 11, 2019 8:10 am

Richard wrote:
Sun Aug 11, 2019 7:56 am

Code: Select all

#!/bin/sh 
sudo apt update && sudo apt upgrade 
Forgot the second sudo.
Thanks!
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.

User avatar
Richard
Posts: 2804
Joined: Fri Dec 12, 2008 10:31 am

Re: How to create terminal command shortcut for desktop

#7

Post by Richard » Sun Aug 11, 2019 8:15 am

...and now corrected my correction, above... :)
Lost internet for a few minutes.
LT: MX18.3: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge; 8GB RAM; 4.19.0-5-amd64; 119GB SSD 840PRO, Intel Graphics-Audio-Network

NB: antiX19b2full-xfce; MX18.3: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

User avatar
Yellowhoney
Forum Novice
Forum  Novice
Posts: 59
Joined: Sat Apr 20, 2019 5:36 am

Re: How to create terminal command shortcut for desktop

#8

Post by Yellowhoney » Sun Aug 11, 2019 9:10 am

thanks for the reply

so one thing I need to use all the time is teamspeak 3
to install - https://youtu.be/OKvnaQ49SNA
to run it , you need to drag the sh file into terminal to run it , ( or type it in )

but i didnt know how to create a desktop
2007 20* Imac running 3gb MX18.3
i5 4670k 16gb ram

User avatar
JayM
Qualified MX Guide
Posts: 1873
Joined: Tue Jan 08, 2019 4:47 am

Re: How to create terminal command shortcut for desktop

#9

Post by JayM » Sun Aug 11, 2019 9:22 am

The easiest way to create a desktop file that I know of is to use Settings/Session and Startup and create one in its GUI on the Application Autostart tab. This will create a file called foo.desktop (or whatever you've named it) in your ~/.config/autostart/ directory. Just cut it and paste it on the desktop afterward.

Edit: actually, as fehlix already said in post #2, right-clicking on the desktop and choosing Create Launcher brings up the same GUI that the Application Autostart tab in Sessions and Settings does with no cutting and pasting required, so never mind. :smile:
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.

User avatar
Yellowhoney
Forum Novice
Forum  Novice
Posts: 59
Joined: Sat Apr 20, 2019 5:36 am

Re: How to create terminal command shortcut for desktop

#10

Post by Yellowhoney » Sun Aug 11, 2019 9:37 am

JayM wrote:
Sun Aug 11, 2019 9:22 am
The easiest way to create a desktop file that I know of is to use Settings/Session and Startup and create one in its GUI on the Application Autostart tab. This will create a file called foo.desktop (or whatever you've named it) in your ~/.config/autostart/ directory. Just cut it and paste it on the desktop afterward.

Edit: actually, as fehlix already said in post #2, right-clicking on the desktop and choosing Create Launcher brings up the same GUI that the Application Autostart tab in Sessions and Settings does with no cutting and pasting required, so never mind. :smile:
I need to run a ts3client_runscript.sh via terminal ?

the only way i can google - https://askubuntu.com/questions/527783/ ... r-shortcut
but doesnt work when i try to create a file
2007 20* Imac running 3gb MX18.3
i5 4670k 16gb ram

Post Reply

Return to “MX Help”