Wednesday, July 13, 2016

Ubuntu Commands and Tips #1

Memo - commands and tips in ubuntu


1. Check protocol / ip / port/ program id
$ sudo netstat -tnlp
*options : -t(connected TCP protocol) -n(numeric address) -l(port, state : 'LISTEN') -p(program id)


2. Process Termination
$ sudo kill PID


ref : http://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%EA%B2%8C%EC%9D%B4%ED%8A%B8%EC%9B%A8%EC%9D%B4_%ED%99%95%EC%9D%B8
ref : http://kjvvv.kr/14174
ref : http://linuxism.tistory.com/48


3. Change the command-line prompt color
$ sudo gedit ~/.bashrc
and find this line
#force_color_prompt=yes
remove hash -> 'force_color_prompt=yes'

want to further changes.
ref : https://ubuntugenius.wordpress.com/2011/07/11/how-to-change-the-command-line-prompt-colour-in-the-ubuntulinux-terminal/


4. Back-up application : TimeShift
- installation
$ sudo apt-add-repository -y ppa:teejee2008/ppa
$ sudo aptitude update
$ sudo aptitude install timeshift
ref : https://launchpad.net/timeshift


5. Error : " Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry ‘main/binary-i386/Packages’ in Release file (Wrong sources.list entry or malformed file) "
- sol
$ sudo gedit /etc/apt/sources.list.d/google-chrome.list
and find the line add [amd64] like follows, Do not edit or replace any other text in this file
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
$ sudo apt-get update
ref : http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu


6. Error : " W: There is no public key available for the following key IDs: 1397BC53640DB551 "
- sol
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1397BC53640DB551
$ sudo apt-get update
ref : http://askubuntu.com/questions/520718/no-public-key-available-while-upgrading-using-update-manager


7. Error : " W: GPG error: http://http.debian.net wheezy-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 "
- sol.1
do same as above process
- sol.2
do as follows(reference)
ref : http://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey





No comments:

Post a Comment