Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If the above statement is true, then everything you wrote in post #9 never happened. Here is the information from post #9 just to clarify:
Code:
alias mmc ='macchanger-gtk'
output bash: No command 'mmc' found, did you mean:
No command 'mmc' found, did you mean:
Command 'mc' from package 'mc' (universe)
Command 'mzc' from package 'racket' (universe)
Command 'qmc' from package 'qmc' (universe)
Command 'mic' from package 'mic2' (universe)
Command 'moc' from package 'qtchooser' (main)
Command 'mm' from package 'multimail' (universe)
Command 'mpc' from package 'mpc' (universe)
Command 'mmv' from package 'mmv' (universe)
Command 'mmg' from package 'mkvtoolnix-gui' (universe)
Command 'imc' from package 'italc-management-console' (universe)
Command 'zmc' from package 'zoneminder' (universe)
Command 'mmd' from package 'mtools' (main)
Command 'wmc' from package 'wine1.6' (universe)
Command 'smc' from package 'smc' (universe)
mmc: command not found
ALL the information in red indicates you typed the alias in incorrectly.
So if the above did not happen, again, please supply what steps you have followed?
As for gedit, ~/.bashrc is a shortened version of /home/<username>/.bashrc .... this is the path you need to follow
You need to run the command from the same terminal as you created the alias. Like with previous explanation of not working for another user, when the alias command is run at the command line it is only effective on that terminal (this is why others have been advising you to update .bashrc file to make it permanently available to all your environments).
So the first step is to confirm it works as desired in your current terminal. Once you can run it at will and are happy with outcome, you will need to edit the .bashrc file found in your home directory.
By the way, this also assumes you are running under a bash shell and not dash (you can check with echo $SHELL for result)
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
If you are using this under Ubuntu why not just use the menu command? I assume that you can select macchanger-gtk from the menu? I ask because I think you'll likely use something like gtksu to run a GUI command as root and if macchanger-gtk does what it seems to say it does then you will need to run it with root permissions.
So, why are you trying to run macchanger-gtk from a terminal?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
If you can work out how to add something to the Ubuntu menu system you might want to add "gksu macchanger-gtk" so that you're asked for a password in the GUI.
Otherwise see above for answers to the alias issues. The main one I see being that you need to run the application as root.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by actinide
If macchanger-gtk can be added to the mint menu it sounds alot easier than the the terminal.
How can be done.
Right-click the menu and select "Edit Menu" then add an entry for "gksu macchanger-gtk", perhaps? Sorry, I'm not running either of the common Mint DEs to confirm that it will work just like that but it ought to be similar.
Mint really ought to add it to the menu like that with an "as root" comment or something but it seems that Debian doesn't so, perhaps, they want you to think about things before you use it regularly (there's an automatic option when you install though, that I notice).
It's probably worth just typing sudo macchanger-gtk looking at what this does.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.