1

Newbie here. I have an 'antenna' that I plug into my computer to pick up a far-flung wifi signal and it works brilliantly. I can boot up, plug in and connect without a problem. The trouble is, now, when I bring my computer to a cafe (for example) I have to open the command line and type:

sudo service network-manager restart

this works fine and away I go. How can I set it so I don't have to type this at all? What did I change by plugging my antenna in?

I should mention I have Ubuntu Studio 16.04.

Zanna
  • 70,465
Lion
  • 21
  • Just a reminder, 16.10 is out of support. You should use 17.04 or any of the supported LTS versions (14.04 & 16.04). – pomsky Sep 25 '17 at 17:24
  • 1
    You may create a permanent short alias to avoid typing the whole thing all the time. – pomsky Sep 25 '17 at 17:38
  • Thanks Pomsky. Just for clarification and so I don't go typing random things into Gedit... So I think I should type

    export HISTCONTROL=ignoreboth:erasedups alias sudo service network-manager restart='sudo service network-manager restart'

    Is that right? Seems not quite right. but what would I be typing and what will the desired effect be? Thanks again also... how do I put coding into those nifty quotes?

    – Lion Sep 25 '17 at 18:00
  • Try something simpler. Open the .bash_aliases file in your home directory. It's hidden file, so you'll have to enable show hidden files and folders in file manager first. Then type the following line in the file: alias ntwrkrstrt='sudo service network-manager restart' and save the file. Instead of ntwrkrstrt you may use any other short memorable string, just make sure it's not same as any existing command. Then you won't have to type the whole thing in Terminal all the time, typing this short string will do the same. – pomsky Sep 25 '17 at 18:36
  • Thanks so much pomsky! That's a great short cut. Now, is there a way that I don't have to type anything and it just starts right up with the computer? – Lion Sep 25 '17 at 18:47
  • 2

0 Answers0