How to Run Programs in Linux and Add Program Shortcuts
HTML-код
- Опубликовано: 13 июл 2019
- In this video, I go over how to run programs in Linux and add program shortcuts to terminal and menu options for your desktop environment.
/bin directory is where system programs run from - DO NOT add yours here
edit PATH by adding export to ~/.bashrc
$
./ to run
sudo chmod +x to add as an executable program
double click in file explorer or right click allow program to execute
Adding programs to start menu
/usr/share/applications (All Users)
~/.local/share/applications (Local User) .
►► Digital Downloads ➜ www.cttstore.com
►► Reddit ➜ / christitustech
►► Titus Tech Talk ➜ / titustechtalk
►► Twitch ➜ / christitustech Наука
the reason "Categories=Multimedia", didn't work is, you forgot ";" at the end, so it should have said Categories=Multimedia;"
the fuckin semicolon god dangit
One of your most informative videos! Thank you!
Thanks Chris! You are a real blessing for the Linux community! I have had it with distro reviews! Lol
I love this kind of videos ... Very practical for everyone .
if you do cd without arguments it will automatically go to your home directory
So close to seeing Chris his MAC-address or whatever it was that he had in his bashrc. Next time. :p
I was dying to know what kind of junk in a .bashrc file might be to sensitive to show on camera.
2:15 did you just call /usr "user"? Isnt it for "Universal Shared Resources"?, not "User".
It's the first time that I know the real name of it.
Nah. It is “user” if I understand my Unix history correctly. “Universal Shared Resources” is a backronym that was applied in hindsight. Original Unix wasn’t that fancy. Ken Thompson pronounced it “user” and named it “usr” for short.
I’m reminded of the graybeard “creat” anecdote. Ken Thompson was once asked if he'd do anything differently if he were designing Unix today. He said "I'd spell creat with an e."
You are correct ;)
@K.D.P. Ross I've been pronouncing it as "uu es er" , like I'd be pronouncing the individual characters "u" "s" "r" one by one.
Thanks Chris great video.
Im having trouble understanding how to view any open application in the Dock to see if they are minimized to tray.... How do i activate this function in Debian 10 Buster? When i hover over these dock applications i would normally see a small window to let me know its open in the back ground.... But in this case with my new Debian install. It is not setup out of the box. please help.
Great video, keep it up and you will see 500k by the end of the year or beginning of next year.. this one is going to be saved.
I've had issues with dual displays with different refresh rates in Linux where some animations are only displayed at the lowest Hz of the two monitors.
I have a 160hz monitor and a 60hz monitor which results in lower fps when dragging windows (especially in GNOME), scrolling in chrome and in some unoptimized games. When i unplug the 60hz monitor, everything works as expected
Hi titus,
love your videos.
I would like to suggest that you use the .bash_profile file instead of your .bashrc. This way those sensitive information will not be visible.
Thank you, Chris.
I put my stuff at the global level not user,
because its my tax dollars paying the NSA spooks sneaking into my system, and I dont want them spending extra time trying to access stuff.
_Time Is Money_ , so the sooner they get done the less tax money they waste doing it
Haha, I love this comment.
You're hilarious
Lmao
Excellent video! Please consider doing a video on optimizing a vm in virtualbox, such as adding guest additions. My vms always look like thumbnails compared to demonstrations online. Thanks again.
will do!
I had this problem trying to install Nvidia MX 400 graphics driver after downloading with pkg1.run
Thank you so much! This video really help me a lot. Cheers! Have a nice Sunday.
Dude is that a part of debian10 or did you make that. I mean how the (user@hostname/folder) thingy is set
Possibly zsh. He also has a video on customizing the terminal.
Thanks for the video!
what about games that were dowladed as a zip wat do I need to do to get the game to run am am using liux on chromebook
im new to linux. i want a program to always run as sudo. how do i do this?
Can you do a work through on kodachi 6.0.and give your advice on it.......Please
What Linux distro are you running? Do you recommend Mint 19.1 for the newbie?
I do recommend Mint for a newbie. I am using Debian sid but I do not recommend it. Mint and Pop OS! are very newbie friendly.
I agree with Chris.
Linux Mint or Pop OS. I'd also throw Elementary OS in there if you're used to Mac OSX.
Thanks for this video. I just switched to linux and I really like it but I don't know the syntax to the terminal well
now i would not put stuff in /bin but what about
~/.bin
and
~/.local/bin
i put my "i" script inside of
~/.local/bin
What is your shell?
This is a good video. Good job Chris. I have problems leaving Windows. Inkscape and GIMP2 are no replacement for Adobe. Is there a way to install Adobe CC on Linux? Visual Studio is the 2nd application I have issues installing. Anyone have any luck?
Chris, I installed the new Debian 10-KDE image and for the life of me cant figure out how to get the desktop to look like yours from your videos. The icons in the lower bar and the left pop-up menu is what I'm looking for. If you already explained this in another video, could you add a link here to it? Thanks so much.
Here is the Customization Video: ruclips.net/video/nRtyFtpf5yU/видео.html
If you right click on the application launcher widget on the panel in the lower left and choose "show alternatives" you can change it to "Application Menu" which is a launcher based on cascading popup menus like Chris. Hope this helps.
How to setup the Terminal like that?
If you want to have a globally executable script, it's best practice to place it in /usr/local/bin or /usr/local/sbin instead of with the system executables. These paths are already in $PATH by default so you won't need to change any .bashrc files.
Or use a symlink in the /usr/local/bin directory to all the scripts you use in a scripts directory (not you can use version controls over like git, (no git does not require a server or a github account it works just fine stand alone)
Donynam Lee that’s a matter of taste. I use several scripts on different machines and doing it the way you suggest would be a nightmare for me.
Thank you very much for this video! :-)
A few months ago, I asked a few Linux channels how to do this, and they basically told me to Google it.
Nothing in the Google results (I actually use DDG, but that's irrelevant) explained very well how to do it, so I unsubbed from those channels.
I did figure out how to do it, by right-clicking on the Menu icon (the LM on the far left of the task bar), then click on configure...
If someone says "google it", it means they have absolutely no idea.
It's a sign you should unsub to them.
Following tech channels that have no idea what they're doing is a very bad idea.
1:43
"there's two different directories, called shi-"
that was a funny stutter haha
too pro i could not understand ...i just know i installed a program (by copy paste command) than when i tried reinstall it it told me its already installed and than i could find how to launch it ... please help .
How to create app shortcuts on desktop like windows in kde neon
I believe that ~/bin is in the $PATH variable by default, so you could just create a bin folder in your home directory for scripts without having to change the .bashrc file.
Hi, Not all Distro's have ~/bin in the PATH statement... MX does not, I had to add it to my .bashrc so ~/bin is seen in bash... There was another one but I don't remember... :D
if you have a program on your system , how do you run that program please? Lets say its gdm3, How do you run that. What is the command, Please?
Chris help me.please, how to get the themes that you use in this video?? Help me please
I use Arc Dark. Here is a customization video I did: ruclips.net/video/nRtyFtpf5yU/видео.html
@@ChrisTitusTech thank you, see your video, they are a great video
Could you maybe do an in depth rundown of linux' permission system?
You should do a tour of your custom .bashrc file and tips on customizing it.
10:18 do we really need sudo to change permissions for a file in a home directory?
No you don't
How to fix mtp in kde environment
I liked your Prompt. Could you share?
My brother I cant find etcher and I have already downloaded it or installed it via terminal but I dont know where anything is! 😢😢.
Anyone.
Please...
Chris, please make a video about Trisquel Linux (both the MATE version and Mini). It'd be great if you can make the video for laymen and noobs, explaining how the OSes endorsed by GNU are different from the ones not endorsed, even though both category comprise of Linux. If there are any limitations of Trisquel (and other GNU endorsed OSes) please talk in detail about that as well. I think that it's a great OS that doesn't get much attention (dunno why), especially for people with low spec machines, as it's lightweight and is based on Ubuntu and of course Debian.
personal scripts and binary files that should be accessed across the system on different users should be placed in /usr/local/bin
only packages that are *packaged* for your system and are installed should be placed in /usr/bin and they do so by design.
/usr/local/bin is also handy for overriding programs as it takes precedence over /usr/bin and /bin in $PATH so you can make wrappers that fixes minor issues with system programs in there ;)
Chris, how do you customize the terminal like that?
Made a video about it. Check it out: ruclips.net/video/iaXQdyHRL8M/видео.html
I am going to request you to show a (most probably very easy) tutorial. I have installed nextcloud using snap. Now nextcloud director is located on my SSD on which my OS installed. How do I move the installation directory or nextcloud save directory to a different drive. Thanks in Advance 😊.
MD Badsha Faysal this would be a Use case for such snap is NOT designed. If you need to have this level of controls either transform your nextcloud setup to a native install. Or move all of the snap mount points to a new disk. Neither of these are easy and both have there pitfalls. I would personally try to make a backup of the nextcloud and setup a new one in the location I want. (But as an experienced devop this is easy for me) of you would need help with this try asking the nextcloud community, there really helpful and probably willing to assist you when you hit problems (migrations is something they care about, at least the creator told me in person)
Is this distro independent?
The Debian team is independent, yes
Cool video, thanks. I do something different when adding to the PATH variable from .bashrc. Sometimes shells get nested (like running tmux), so you end up with a $PATH that has repetitions in it. So I check if it's been added before I add it:
if ( ! echo "$PATH" | grep -q "$HOME/bin" ); then
export PATH="$HOME/bin:$HOME/.local/bin:$PATH"
fi
Note: I'm adding $HOME/bin because I removed .profile, where it's normally set. I only want one general bash startup script.
you are setting your system potentially at risk by putting your home directories at the beginning of the PATH variable. Potential malicious software doesn't even have to elevate privileges to get access to your system.
What I like doing with the software I write, I make a ~/Prog directory. Then I make a ~/Prog/Bash ~/Prog/Python ~/Prog/C++ ~/Prog/Java and, in each language directory, I put a /bin and /src directories. Then I put an alias in my ~/.bash_aliasses to my ready programs in said bin.
Is there an easier way to do this without going through so many details?
For example, by some app which does what commands on terminal?
Mr. Tech Guy unless you use a package manager that does it for you, no not really.
It’s why package managers exist and this way of working has the most flexibility.
Yes there is a small learning curve but you will quickly find out it will make you a lot more productive to use the command line for some tasks. (This is true on any OS not just a *NIX.).
I get that it looks scary but take small steps and try and understand what each application does before you use it (the ‘man’ and ‘info’ commands should help you there. These are the manual and information tools we all use to learn about what a program does.
@@sysosmaster I understand what you mean.
I am still OK even I do all of these.
But there are people who would be afraid of doing all of these.
I encourage people and business to switch to Linux,
But in order to succeed in this, it has be simple and less detailed.
Mr. Tech Guy I also promote FOSS whenever I can. But just as it’s the case with windows (or macs), some things just require a certain level of details to understand and do. For a company I would suggest getting your it staff up to scratch with the *NIX way of working. And for users to start switching to FOSS products ASAP. Using OpenOffice for example on windows prior to the switch to Linux will make the transition go smoother.
Also this vid is for an advanced use case. When using the default package manager you do not need to do any of this stuff (it does it for you)
@@sysosmaster I know what you mean.
Hopefully, people and business will be more interested in Linux...
Unfortunately, there is a mass migration from Windows 7 and XP to Windows 10 for Business I know...
Even Business suffers connection issues between PC and Printers because of Windows 10 and its updates, they still use it...
I fix these connection issues.
Switching to Linux would be beneficial to everyone...
You have Linux,
You have the control over updates.
💯💯💯💯
Mr. Tech Guy its not just control of when you update. With most kernels you can even live update the kernel (who need reboots....)
Meaning you can keep your system save without ever having to reboot unless you want to.
Businesses usually are scared about the unfamiliar and the lack of accountability (a Microsoft product messes up your multimillion mullah deal => get the lawyers, FOSS doing the same ... it’s labeled “use at your own risk...”. )
Luckily Microsoft is getting better at doing things the FOSS way at empowering users to do things more like the NIX way.
Almost nothing in Manjaro is the same, sadly, due to that, this video proves more difficult to work alongside with. I now have a severe ache in my learningcurve tempering and sedating glands.
"DC universe" well well
if i want to be able to run a script without typing something like ~/user/script/bash/script.sh (not a real url) i simply either copy it to /home/user/bin or make a shortcut to it in /home/user/bin (EX: cd ~/bin; ln -s /path/to/script/ . ) this makes it available to the user without adding folders to the $PATH except /home/user/bin (if needed).
Hey what's with the eye roll there buddy, 0:40 i may be a noob but i still have feelings.
j/k great video
you can still execute a non-executable as long as you know the interpreter,
in the case of fixcam that would be ?bash?
so just do
bash fixcam.sh
Btw cd and cd ~ both cd to home ;)
great shortcut ;)
Hate that sensistive data! ;-)
I actually kinda hate the "./" thing to run things from the current directory. I guess there's some security reason to have it, but as long as the OS uses specified PATH locations first, if the executable doesn't exist in those locations, it should know you mean the current directory.
Yeah I think it's indeed security reasons that scripts are not executable without the './'
This can be seen when one tries to script running scripts.........
@@fuseteam Windows does it, but prefers the current directory first over PATH locations...so some older software needs to have local (to the application) DLLs disabled to allow more current system DLLs to be used. But that's Windows! ;-)
@@xnonsuchx and windows is an insecure mess that needs antivirus :p
Wish you could make a bunch of video about arch linux. From installing it with only wifi, setting up thunar file manager the way it should, improving surf web browser, installing wine(cus pacman's pretty clueless with it, maybe more), aaaand I guess there are more headaches you could encounter with this os just like I'm having. I chose arch linux cus they said it's a minimalist... Pfah! I just installed ppsspp + tekken 6 and my atomic pi's home partition is already at 900mb free space. 4.4gb at system partition. I'm already contemplating at my lubuntu which was pre-installed. Life was easier back then...
I guess Linux isn't for me, I'm used to clicking on an icon to start an app.
how to lock application in ubuntu....
What do you mean 'lock application' 👀
@@fuseteam I want to put password on Applications when it opens (just like app locker in android)
@@Praxss why would you need that if you have user accounts?
@@fuseteam I need that... if you have any idea, plz tell me
@@Praxss i would put a password on your own personal ccount and make separate account that other can use
and i would install the said program locally on your own account, thus it won't be visible under the other accounts
i do not know of another way atm
What is this? I just want to install an application in linux... now I need to learn rocket science?
here is idea for video, try Olive video editor and compare it to KDNlive
Too early alpha. Wouldn't be a fair comparison.
@@ohlookhowcute2863 it still runs better then KDNlive
I'm not sorry but the title suggests that this is a tutorial on how to run programs. I'm 6 minutes into the video and nothing yet.
/usr is not 'user', it is Unix Software Resources.
Andrew Yu That is incorrect. It’s actually both, but originally it was User (and held the user data like the /home does these days)
@@sysosmaster Oh.
Andrew Yu it’s never to late to learn more (history). And it’s not a bad thing to be wrong, provided your willing to learn. (In another comment I provided the source for why its user from the bell labs original documentation’s. And I referred to the tldp site about “Linux Filesystem Hierarchy” check them out for why it’s called like that if it want to know. ;).
Edwin Davies History disagrees with you , its original meaning was User directory (as in what home is like nowadays) see this old bell labs document (page 12,13,14) bitsavers.trailing-edge.com/pdf/bellLabs/unix/PreliminaryUnixImplementationDocument_Jun72.pdf
So calling it User is correct.
As a side note the /etc stands for etcetera. (As a catch all for anything that does not belong in one of the other locations)
It’s interesting to see how names chosen in the 70’s for a research project are still with us today.
Huh?? I just want a icon on my home page to click on to start a program?? This tutorial just confused the heck out of me???
i have no idea what is going on
And this is why linux will never dominate or have significant desktop/workstation market share, because you have to explain to new users how to install, run, a simple application, or unpack a simple compressed file with a completely unintuitive terminal commands. Mac and Windows have their own set of problems, but simplicity of basic usage is not one of them.
You don't have to do those things the way Chris does. Chris just likes to do things that way because he likes to use scripts and such.
"Normal" users can use whatever package manager/software installer their desktop environment uses. Unzipping files is as easy in Linux as it is in MAC/Windows using Ark.
@@motoryzen itvision.altervista.org/why.linux.is.not.ready.for.the.desktop.current.html
I will throw a script straight up on the desktop if I'm going to use it a lot for a short time and I don't G. A. F. what the Linux foodies think of it
😎
When you say "terminal" instead of "the terminal" it makes my eye twitch.
That may be a Mac thing... a lot of my Mac using friends refer to it as terminal ... still sounds weird because it’s almost certainly not called terminal haha
The title is, How to Run Programs, please do that. You kind of went off and did not just run a program. How do you run gdm3, please
15 min to explane how to make a shortcut....... ahhaaa what a system
sensitive data :S
I love potatos
😂😂
the first 0.34 secs sums up why Linux will never be popular as a desktop OS. The other 99% of the world desktop users don't what to be system programmers just to make a program run. Under the hood is good, but the outside is a 1985 blue Lada.
Greg Patrick “system programmer”??? This is not at all about system programming. (Unless you mean installing an os, this is also not the case but it is closer).
Programming an applications uses completely different toolkits, none are shown in this vid.
The terminal is not programming (it’s a user interface).
Bash is not a programming language. (It’s a scripting language.)
Programming (in its basic form) is easy enough to learn. (If Children as young as 5 can learn to program, so can you)
I am not talking about programming a OS, but just simple stuff to help yourself is easy to pick up.
Linux is no different than windows when it comes to user interface. When it all goes wrong the default interface is the command line. It’s simple, reliable and can be used remotely without much trouble. (Try using a GUI when your 100km away from the machine on 3G. It’s not a pleasant experience)
Also remember that in windows most of the advanced options also require either the PowerShell (command prompt) or the registry editor to do.(when not in a domain that is) Both of these tools are as hard (or even harder) to understand and use than Linux bash.
Fail fail and fail. Not a beginner video. Did not stick to subject. Still can not run the program I downloaded.
This video is not for beginners, too complicated.
First
And this is the reason why Linux isn't popular.
Bin in British means the trash
🤦♂️
In this vid over 9 minutes and still have no answer to the simple question on how to create a desktop shortcut for a program. This is not for beginners.