Linux::debian

From www.deloptes.org
Revision as of 23:56, 6 March 2013 by Admin (talk | contribs)
Jump to navigation Jump to search

Configurations

Alternatives

Configure default browser to custom firefox installation

  • list:
update-alternatives --list www-browser
/usr/bin/lynx.cur
/usr/bin/w3m
  • install:
sudo update-alternatives --install /etc/alternatives/x-www-browser www-browser /opt/custom/firefox/firefox 1
[sudo] password for <user>:
update-alternatives: renaming www-browser link from /usr/bin/www-browser to /etc/alternatives/x-www-browser.
<user>@<host>:/home-lisa/emanoil$ update-alternatives --list www-browser
/opt/custom/firefox/firefox
/usr/bin/lynx.cur
/usr/bin/w3m
  • set:
sudo update-alternatives --set www-browser /opt/custom/firefox/firefox

Terminal

Size

For anyone that would like to find the terminal window size, which can also be important can use these commands:

Code:

 WIDTH=`tput cols`
 HEIGHT=`tput lines`