Ubuntu Linux tips and tricks for using it on the desktop.
The main thing about using Linux is getting it installed is one thing, but getting various hardware working and configured is another.
Nvidia drivers are one major stumbling block for willing Ubuntu users.
Here is a nice tutorial that explains how to install Nvidia drivers in Ubuntu 12.10 Quantal Quetzal: http://www.dedoimedo.com/computers/ubuntu-quetzal-nvidia.html.
To install updates after the initial installation of the Ubuntu distribution; type these commands.
sudo apt update |
sudo apt upgrade |
This will update the repositories information and then download and install any pending updates for the Ubuntu Linux distribution. You may also combine these commands into one string like this.
┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5] └─$ sudo apt update; sudo apt upgrade |
This will perform both tasks in one command.
To install a nice Winamp styled music player; type this command.
sudo apt install audacious |
This music player is very stable and useful music playing application that supports many music formats.
To list all pending package updates on a Debian based Linux system, use this command.
┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5] └─$ apt list --upgradable 2>/dev/null | awk '{if (NR!=1) {print}}' |
To print a listing of news headlines in the terminal, use this one-liner. This is a very neat trick indeed. A good way to read the 📰 in the morning.
┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5] └─$ curl -s http://feeds.bbci.co.uk/news/rss.xml | grep "<title>" | sed "s/ <title><\!\[CDATA\[//g;s/\]\]><\/title>//;" | grep -v "BBC News" Texas synagogue hostage-taker was British Pacific volcano: New Zealand sends flight to assess Tonga damage Nadine Dorries: BBC licence fee announcement will be the last Starmer accuses PM of breaking law over No 10 parties Novak Djokovic: Tennis star deported after losing Australia visa battle Pundits despair at England's capitulation Cladding crisis: Norwegian wealth fund urged to pressure firms and builders Former city minister Lord Myners of Truro dies age 73 Rafael Benitez: Sacked manager did not realise magnitude of Everton task Millions under weather alerts as major winter storm hits US and Canada Woman, 86, killed and husband seriously injured in home attack Peter Seabrook: Gardening writer and broadcaster dies aged 86 Piel Island: Search for licensee to run 300-year-old pub Novak Djokovic: The visa drama in 90 seconds Crocodile found under Rhondda school floor on display The inventor inspired by a near-death experience Blind woodturner: I don't want my eyesight back Beadnell: The coastal idyll with a lack of affordable housing Your pictures on the theme of 'view from a window' Week in pictures: 8 - 14 January 2022 Covid: 'We're so proud of how Bertie bounced back' Kazakhstan: Who sparked deadly violence? Rutland sea dragon: How remarkable ichthyosaur fossil was protected |
To get a weather report in the terminal for your area, use this simple command, which prints the weather forecast in the terminal.
┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5] └─$ curl wttr.in/"Sydney" Weather report: Sydney \ / Partly cloudy _ /"".-. +22(25) °C \_( ). ↓ 0 km/h /(___(__) 10 km 0.0 mm ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Mon 17 Jan ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Sunny │ \ / Sunny │ \ / Partly cloudy │ _`/"".-. Patchy rain po…│ │ .-. +26(27) °C │ .-. +24(26) °C │ _ /"".-. +25(27) °C │ ,\_( ). +24(26) °C │ │ ― ( ) ― ↙ 5-6 km/h │ ― ( ) ― ↙ 18-30 km/h │ \_( ). ↙ 19-28 km/h │ /(___(__) ↖ 10-17 km/h │ │ `-’ 10 km │ `-’ 10 km │ /(___(__) 10 km │ ‘ ‘ ‘ ‘ 9 km │ │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.2 mm | 75% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Tue 18 Jan ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ _`/"".-. Patchy rain po…│ Cloudy │ Overcast │ _`/"".-. Light rain sho…│ │ ,\_( ). +23(25) °C │ .--. +22(25) °C │ .--. 21 °C │ ,\_( ). 21 °C │ │ /(___(__) ↑ 11-15 km/h │ .-( ). ↑ 13-18 km/h │ .-( ). ↑ 31-44 km/h │ /(___(__) ↖ 28-40 km/h │ │ ‘ ‘ ‘ ‘ 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │ ‘ ‘ ‘ ‘ 10 km │ │ ‘ ‘ ‘ ‘ 0.1 mm | 78% │ 0.0 mm | 0% │ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.8 mm | 82% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Wed 19 Jan ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ _`/"".-. Light rain sho…│ Cloudy │ Overcast │ _`/"".-. Patchy rain po…│ │ ,\_( ). 21 °C │ .--. 22 °C │ .--. 21 °C │ ,\_( ). 21 °C │ │ /(___(__) ↖ 39-55 km/h │ .-( ). ↖ 38-49 km/h │ .-( ). ↖ 35-50 km/h │ /(___(__) ↖ 34-48 km/h │ │ ‘ ‘ ‘ ‘ 10 km │ (___.__)__) 10 km │ (___.__)__) 10 km │ ‘ ‘ ‘ ‘ 10 km │ │ ‘ ‘ ‘ ‘ 0.4 mm | 77% │ 0.0 mm | 0% │ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.1 mm | 73% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ Location: Sydney, NSW, Australia [-33.8548156,151.2164539] Follow @igor_chubin for wttr.in updates |
Print the headlines from Slashdot.org easily in the terminal, this is made easy when using curl.
┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5] └─$ curl -s http://rss.slashdot.org/Slashdot/slashdotMain | grep "<title>" | sed "s/ <title><\!\[CDATA\[//g;s/\]\]><\/title>//;" | awk -v RS='<[^>]+>' -v ORS= '1' | awk 'NR>3 {print last} {last=$0}' Microsoft Detects Lurking Malware On Ukrainian Computers When a Decades-Old Email Provider Used by Millions Suddenly Goes Down 1.7 Million People Live for a Week on 100% Renewable Energy Decades of Research: the Story of How mRNA Vaccines Were Developed Do CS Teachers Need To Know CS? Law Enforcement Agencies Recruit Rare People Who are 'Super-Recognizers' of Faces |
This would be very useful to have in your .bashrc file, this will print the news headlines every time the terminal is opened.