where is file .bashrc?

Asked by sun_tzu

Hi although completely ignorant about computers I am very enthusiastic about ubuntu. I would like to sign the code of conduct. To do this I need to get a public key. I have been readying all the procedure in order to complete this step but it seems that I have to insert somehow my public key into the file .bashcr. I don't know where this file is neither I know hot do I modify it. Could anybody help me?
Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Solved by:
sun_tzu
Solved:
Last query:
Last reply:
Revision history for this message
Andrea Corbellini (andrea.corbellini) said :
#1

It's in your home directory. By default the file browser hide it so you have to press Ctrl+H or click on "View→Show Hidden FIles".

Revision history for this message
Wrwrwr (wrwrwr) said :
#2

Yes, .bashrc is in your home folder, just hidden. But it's not really necessary to add anything to it, since probably you have just one key, it will be automatically selected for most operations by gpg.

Moreover I would recommend installing one of the front-ends, like seahorse or gpa, it should be much easier that way (unless you're a cryptography expert of course ;)

First install seahorse through Synaptic or Adept (or type in a terminal: sudo apt-get install seahorse), then generate a key, make a full export and save it somewhere safe (external media), and publish your key. All this can be done through the application (after installing you can find it in Applications-->Accessories-->Passwords and Encryption Keys). An optional, but a proper step, would be to also generate a revocation certificate, but lets skip this for now.

Then run gedit (the default text editor) and enable 'Text encryption' plugin (Edit-->Preferences-->Plugins). Now you can just open the code in gedit, add some whitespaces, and click Edit-->Sign.

Revision history for this message
Wrwrwr (wrwrwr) said :
#3

I forgot to mention that to install seahorse you need to have universe repository enabled, check 'Community-maintained open source software' in Administration-->Software Sources. You can of course install it through Add/Remove... menu too.

Revision history for this message
sun_tzu (marcoapuleiomiglia) said :
#4

I think I made it. Guys your are wonderful. I love you all. Thanks