When you are not using Linux everyday, and some how your linux system crashed and have to rebuilt the whole system along with all those tools you used, you will find yourself all over the internet trying to find solutions. That's exactly happened to me this week. So, thought to document some of those trouble shootings so that I can resolve quick in future:
xclip for copying into clipboard
To install: sudo apt-get install xclip
xclip id_rsa.pub should copy the content into primary selection. To copy into clipboard, follow the command with xclip -o | xclip -sel clipusing apt-get
Search packages
apt-cache policy More useful commands using apt-get
Installing package
Using apt-get
sudo apt-get install package-name
Using .deb file
- download .deb file.
- run command
sudo dpkg i - if errors outs due to dependencies, run command
sudo apt-get install -fand rerun step 2.
Install package with specific version
sudo apt-get install packagename=2.3.5Installing Eclipse
- Download eclipse(*.tar.gz) from its website
- Make sure you have java installed]()
- Extract eclipse.tar.gz into /opt ```cd /opt && tar -zxvfw ~/Downloads/eclipse.tar.gz```
- Create launcher shortcut for eclipse, create eclipse.desktop file in /usr/share/applications or ~/.local/share/applications and add following contents.
[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
- create symbolic link to open an eclipse from command line
sudo ln -s /opt/eclipse/eclipse /usr/bin
or use update-alternatives
sudo update-alternatives --install /usr/bin/eclipse eclipse /opt/eclipse/eclipse

No comments:
Post a Comment