.bash aliases: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Edmund (talk | contribs)
mNo edit summary
mNo edit summary
 
(39 intermediate revisions by 2 users not shown)
Line 7: Line 7:
# Some bash aliases
# Some bash aliases
###################
###################
alias u='sudo apt update && sudo apt full-upgrade'
# EndeavourOS, Arch Linux, Manjaro Linux, etc.
alias k='sudo ldconfig && sudo dpkg --configure -a && sudo apt-get clean'
alias u='yay -Syyuu && flatpak update' #update, upgrade but confirm manually, also update flatpak packages - use if using flatpak
alias i='sudo apt install'
alias k='yay -Scc --noconfirm' #clean already installed packages caches with no confirmation
alias o='sudo apt search'
alias i='yay -Sy' #install
alias n='sudo apt show'
alias oka='yay -Ss' #remote search
alias e='sudo apt purge'
alias oko='yay -Qs' #local search
alias ae='sudo apt purge --auto-remove'
alias n='yay -Si' #show information
alias p='sudo apt-cache policy'
alias e='yay -Rsn' #remove completely
alias f='sudo apt install -f'
alias ae='yay -Yc' #remove orphan dependencies
alias varamud='sudo reflector --verbose -c EE -c FI -c LV --protocol https --sort rate --latest 10 --save /etc/pacman.d/mirrorlist' # use estonian, finnish, latvian repositories and choose 10 fastest of them - especially you notice updates are taking too long time, then possibly too far repositories are in use, more reading at https://www.howtogeek.com/automating-mirror-list-updates-on-arch-linux/ and check also /etc/xdg/reflector/reflector.conf config file, which is pretty self explanatory
alias ammu='yay -Sy archlinux-keyring endeavouros-keyring' # update GPG keys packages forcibly in first place while long time ago updated and system claims packages are faulty due to keys mismatch - check your distro *-keyring packages in addition of arch linux one, here is example of EndeavourOS but according your distro you might have additional keyring packages that needs to be forcibly updated before you can continue with rest of packages update
#alias ug='sudo grub-mkconfig -o /boot/grub/grub.cfg' #update GRUB but today is already systemd-boot, etc
#alias uefi='sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS-grub' # if GRUB in use, this is how to reinstall it in EndeavourOS - nowadays UEFI is already usually in /efi and not in /boot/efi - check this before using this command with GRUB
#
# EXIF data removal from images
# https://archlinux.org/packages/extra/any/perl-image-exiftool/
# install: yay -Sy perl-image-exiftool --needed
# https://linuxhandbook.com/remove-exif-data/
alias exif='exiftool -overwrite_original -all= *.jpg'
#
# Linux Mint, Ubuntu, Debian, etc.
#alias u='sudo apt update && sudo apt full-upgrade'
#alias k='sudo ldconfig && sudo dpkg --configure -a && sudo apt-get clean'
#alias i='sudo apt install'
#alias oka='apt search'
#alias oko='dpkg -l|grep -i'
#alias n='sudo apt show'
#alias e='sudo apt purge'
#alias ae='sudo apt purge --auto-remove'
#alias p='sudo apt-cache policy'
#alias f='sudo apt install -f'
#alias ug='sudo update-grub'
###########################################################################
###########################################################################
# Transfer
# Transfer
Line 39: Line 62:
###########################################################################
###########################################################################
# weather https://askubuntu.com/questions/390329/weather-from-terminal
# weather https://askubuntu.com/questions/390329/weather-from-terminal
alias weather-tallinn='curl wttr.in/tallinn'
# help: https://wttr.in/:help (web browser default language will define language for weather)
# help: https://wttr.in/:help?lang=et
# curl wttr.in/:help , curl wttr.in/:help?lang=et
alias weather-tallinn='curl wttr.in/tallinn?lang=et'
alias weather2-tallinn='curl v2.wttr.in/tallinn?lang=et'
###########################################################################
###########################################################################
# Logging with SSH keyfile example with checking key both in text and visual mode. Replace with appropriate data
# Logging with SSH keyfile example with checking key both in text and visual mode. Replace with appropriate data
Line 47: Line 74:
###########################################################################
###########################################################################
# Power management
# Power management
alias power-lock-suspend='sudo physlock -du username; sudo systemctl suspend'
alias power-lock-suspend='sudo physlock -du $USER; sudo systemctl suspend'
# sudo apt update && sudo apt install physlock -y && sudo apt clean
# sudo apt update && sudo apt install physlock -y && sudo apt clean
# https://groups.google.com/forum/#!topic/qubes-users/4dnNv5eYgq4
# https://groups.google.com/forum/#!topic/qubes-users/4dnNv5eYgq4
Line 57: Line 84:
alias power-hibernate='systemctl hibernate'
alias power-hibernate='systemctl hibernate'
###########################################################################
###########################################################################
# RADIO STATIONS
# RADIOSTATIONS
# http://icecast.err.ee/
# http://icecast.err.ee/
# http://icecast.mmm.elion.ee:8080/
# http://icecast.mmm.elion.ee:8080/
# http://striiming.trio.ee/
# http://striiming.trio.ee/
# www.raadio.ee
# http://www.raadio.ee
# www.raadio.net
# http://www.raadio.net
# www.w3.ee
# https://www.liveradio.ie/
# et.wikipedia.org/wiki/Eesti_raadiojaamade_loend
# http://www.w3.ee
# www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/
# http://et.wikipedia.org/wiki/Eesti_raadiojaamade_loend
# www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/ON-LINE/
# http://www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/
# www.rhm.ee/raadio/raadiojaam.html
# http://www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/ON-LINE/
# www.google.com/Top/World/Eesti/Meedia/Raadio/
# http://www.rhm.ee/raadio/raadiojaam.html
# www.tvnewsradio.com/ee/raadio.htm
# http://www.google.com/Top/World/Eesti/Meedia/Raadio/
# www.di.fm
# http://www.tvnewsradio.com/ee/raadio.htm
# somafm.com
# http://www.di.fm
# www.surfmusic.de
# http://somafm.com
# www.micromusic.net
# http://www.surfmusic.de
# www.1club.fm/radioChannelGuide.htm
# http://www.micromusic.net
# www.m2radio.fr
# http://www.1club.fm/radioChannelGuide.htm
# http://www.m2radio.fr
# http://radiomap.eu/ee/
# https://www.raadio.net/
# https://levira.com/en/services/broadcasting/radio-broadcasting-fm-web/
# https://www.ttja.ee/et/valdkonnad-teenused/sideteenused/raadioside/tv-ja-raadioringhaaling - here are PDF-files from officially allowed radio stations in Estonia
# https://wiki.kuus.eu/index.php/Eesti_raadiod_onlines
#
#
# Streaming Directories:
# Streaming Directories:
Line 94: Line 127:
# https://help.ubuntu.com/community/RestrictedFormats - install codecs
# https://help.ubuntu.com/community/RestrictedFormats - install codecs
# sudo apt update && sudo apt install mplayer mplayer-fonts k|x|l|ubuntu-restricted-extras -y && sudo apt clean #choose one of the restricted extras package according used ubuntu flavour
# sudo apt update && sudo apt install mplayer mplayer-fonts k|x|l|ubuntu-restricted-extras -y && sudo apt clean #choose one of the restricted extras package according used ubuntu flavour
#
# MPV - new era mediaplayer based on MPlayer, also for smart devices
# https://mpv.io/installation/
#
#
##########################################################################
##########################################################################
Line 99: Line 135:
# http://icecast.err.ee/
# http://icecast.err.ee/
#
#
# Classic radio - http://klassikaraadio.err.ee/
# Klassikaraadio - http://klassikaraadio.err.ee/
alias radio-err-kl-128-mp3='mplayer -playlist http://icecast.err.ee/klassikaraadio.mp3.m3u'
alias radio-kl-128-mp3='mpv http://icecast.err.ee/klassikaraadio.mp3.m3u'
alias radio-err-kl-128-ogg='mplayer -playlist http://icecast.err.ee/klassikaraadio.ogg.m3u'
alias radio-kl-128-ogg='mpv http://icecast.err.ee/klassikaraadio.ogg.m3u'
alias radio-err-kl-64-mp3='mplayer -playlist http://icecast.err.ee/klassikaraadiomadal.mp3.m3u'
alias radio-kl-64-mp3='mpv http://icecast.err.ee/klassikaraadiomadal.mp3.m3u'
alias radio-err-kl-64-ogg='mplayer -playlist http://icecast.err.ee/klassikaraadiomadal.ogg.m3u'
alias radio-kl-64-ogg='mpv http://icecast.err.ee/klassikaraadiomadal.ogg.m3u'
# x-terminal-emulator -T "Klassikaraadio" -e "mplayer -playlist http://icecast.err.ee/klassikaraadio.ogg.m3u"
# x-terminal-emulator -T "Klassikaraadio" -e "mpv http://icecast.err.ee/klassikaraadio.ogg.m3u"
#
#
# Radio 2 - http://r2.err.ee/
# Raadio 2 - http://r2.err.ee/
alias radio-err-r2-128-mp3='mplayer -playlist http://icecast.err.ee/raadio2.mp3.m3u'
alias radio-r2-128-mp3='mpv http://icecast.err.ee/raadio2.mp3.m3u'
alias radio-err-r2-128-ogg='mplayer -playlist http://icecast.err.ee/raadio2.ogg.m3u'
alias radio-r2-128-ogg='mpv http://icecast.err.ee/raadio2.ogg.m3u'
alias radio-err-r2-64-mp3='mplayer -playlist http://icecast.err.ee/raadio2madal.mp3.m3u'
alias radio-r2-64-mp3='mpv http://icecast.err.ee/raadio2madal.mp3.m3u'
alias radio-err-r2-64-ogg='mplayer -playlist http://icecast.err.ee/raadio2madal.ogg.m3u'
alias radio-r2-64-ogg='mpv http://icecast.err.ee/raadio2madal.ogg.m3u'
# x-terminal-emulator -T "Raadio 2" -e "mplayer -playlist http://icecast.err.ee/raadio2.mp3.m3u"
# x-terminal-emulator -T "Raadio 2" -e "mpv http://icecast.err.ee/raadio2.mp3.m3u"
#
#
# Radio 4 - http://r4.err.ee/
# Raadio 4 - http://r4.err.ee/
alias radio-err-r4-128-mp3='mplayer -playlist http://icecast.err.ee/raadio4.mp3.m3u'
alias radio-r4-128-mp3='mpv http://icecast.err.ee/raadio4.mp3.m3u'
alias radio-err-r4-128-ogg='mplayer -playlist http://icecast.err.ee/raadio4.ogg.m3u'
alias radio-r4-128-ogg='mpv http://icecast.err.ee/raadio4.ogg.m3u'
alias radio-err-r4-64-mp3='mplayer -playlist http://icecast.err.ee/raadio4madal.mp3.m3u'
alias radio-r4-64-mp3='mpv http://icecast.err.ee/raadio4madal.mp3.m3u'
alias radio-err-r4-64-ogg='mplayer -playlist http://icecast.err.ee/raadio4madal.ogg.m3u'
alias radio-r4-64-ogg='mpv http://icecast.err.ee/raadio4madal.ogg.m3u'
#
#
# Radio Tallinn - http://raadiotallinn.err.ee/
# Raadio Tallinn - http://raadiotallinn.err.ee/
alias radio-err-rt-128-mp3='mplayer -playlist http://icecast.err.ee/raadiotallinn.mp3.m3u'
alias radio-rt-128-mp3='mpv http://icecast.err.ee/raadiotallinn.mp3.m3u'
alias radio-err-rt-128-ogg='mplayer -playlist http://icecast.err.ee/raadiotallinn.ogg.m3u'
alias radio-rt-128-ogg='mpv http://icecast.err.ee/raadiotallinn.ogg.m3u'
alias radio-err-rt-64-mp3='mplayer -playlist http://icecast.err.ee/raadiotallinnmadal.mp3.m3u'
alias radio-rt-64-mp3='mpv http://icecast.err.ee/raadiotallinnmadal.mp3.m3u'
alias radio-err-rt-64-ogg='mplayer -playlist http://icecast.err.ee/raadiotallinnmadal.ogg.m3u'
alias radio-rt-64-ogg='mpv http://icecast.err.ee/raadiotallinnmadal.ogg.m3u'
#
#
# Vikerradio - http://vikerraadio.err.ee/
# Vikerraadio - http://vikerraadio.err.ee/
alias radio-err-vr-128-mp3='mplayer -playlist http://icecast.err.ee/vikerraadio.mp3.m3u'
alias radio-vr-128-mp3='mpv http://icecast.err.ee/vikerraadio.mp3.m3u'
alias radio-err-vr-128-ogg='mplayer -playlist http://icecast.err.ee/vikerraadio.ogg.m3u'
alias radio-vr-128-ogg='mpv http://icecast.err.ee/vikerraadio.ogg.m3u'
alias radio-err-vr-64-mp3='mplayer -playlist http://icecast.err.ee/vikerraadiomadal.mp3.m3u'
alias radio-vr-64-mp3='mpv http://icecast.err.ee/vikerraadiomadal.mp3.m3u'
alias radio-err-vr-64-ogg='mplayer -playlist http://icecast.err.ee/vikerraadiomadal.ogg.m3u'
alias radio-vr-64-ogg='mpv http://icecast.err.ee/vikerraadiomadal.ogg.m3u'
# x-terminal-emulator -T "Vikerraadio" -e "mplayer -playlist http://icecast.err.ee/vikerraadio.ogg.m3u"
# x-terminal-emulator -T "Vikerraadio" -e "mpv http://icecast.err.ee/vikerraadio.ogg.m3u"
#
#
##########################################################################
##########################################################################
# Trio LSL - http://www.trio.ee/ ja ka http://striiming.trio.ee/
# https://www.eestimeedia.ee/tegevusalad/raadio/
#
#
# http://www.myhits.ee
# http://kuku.postimees.ee/
alias radio-trio-circle-k-256='mplayer -playlist http://striiming.trio.ee/circle-k.ogg.m3u'
alias radio-kuku-aac='mpv http://striiming.trio.ee/kuku.aac'
alias radio-trio-circle-k-320='mplayer -playlist http://striiming.trio.ee/circle-k.mp3.m3u'
alias radio-kuku-mp3='mpv http://striiming.trio.ee/kuku.mp3'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.mp3
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.aac
# x-terminal-emulator -T "Kuku" -e "mpv https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.mp3"
#
#
# http://www.dfm.ee
# http://myhits.postimees.ee/
alias radio-trio-dfm64='mplayer -playlist http://striiming.trio.ee/dfm64.mp3.m3u'
alias radio-myhits-aac='mpv http://striiming.trio.ee/myhits.aac'
alias radio-trio-dfm128='mplayer -playlist http://striiming.trio.ee/dfm.mp3.m3u'
alias radio-myhits-mp3='mpv http://striiming.trio.ee/myhits.mp3'
# http://striiming.trio.ee:8008/myhits_high.mp3
# http://striiming.trio.ee/myhits_low.mp3
# http://router.euddn.net/8103046e16b71d15d692b57c187875c7/myhits.mp3
# http://router.euddn.net/8103046e16b71d15d692b57c187875c7/myhits.aac
#
#
# http://www.elmar.ee
# https://elmar.elu24.ee/ , https://elmar.elu24.ee/radio
alias radio-trio-elmar64='mplayer -playlist http://striiming.trio.ee/elmar_low.mp3.m3u'
# https://www.elu24.ee/build-wu-v5/39.bundle-724da730ae1c9618e9a7.js
# x-terminal-emulator -T "Elmar" -e "mplayer -playlist http://striiming.trio.ee/elmar64.mp3.m3u"
alias radio-elmar-aac='mpv http://striiming.trio.ee/elmar.aac'
alias radio-trio-elmar128-mp3='mplayer -playlist http://striiming.trio.ee/elmar.mp3.m3u'
alias radio-elmar-mp3='mpv http://striiming.trio.ee/elmar.mp3'
alias radio-trio-elmar128-ogg='mplayer -playlist http://striiming.trio.ee/elmar.ogg.m3u'
# x-terminal-emulator -T "Elmar" -e "mpv https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.mp3"
alias radio-trio-elmar256-mp3='mplayer -playlist http://striiming.trio.ee/elmar_high.mp3.m3u'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.aac
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.mp3
#
#
# http://www.kuku.ee
# http://www.dfm.ee http://www.dfm.ee/online/play.html ./js/index.js
alias radio-trio-kuku64='mplayer -playlist http://striiming.trio.ee/kuku64.mp3.m3u'
alias radio-dfm-aac='mpv http://striiming.trio.ee/dfm.aac'
alias radio-trio-kuku-low='mplayer -playlist http://striiming.trio.ee/kuku_low.mp3.m3u'
alias radio-dfm-mp3='mpv http://striiming.trio.ee/dfm.mp3'
# x-terminal-emulator -T "Kuku" -e "mplayer -playlist http://striiming.trio.ee/kuku64.mp3.m3u"
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/dfm.mp3
alias radio-trio-kuku128-mp3='mplayer -playlist http://striiming.trio.ee/kuku.mp3.m3u'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/dfm.aac
alias radio-trio-kuku128-ogg='mplayer -playlist http://striiming.trio.ee/kuku.ogg.m3u'
alias radio-trio-kuku256-mp3='mplayer -playlist http://striiming.trio.ee/kuku_high.mp3.m3u'
#
#
# http://www.myhits.ee
# http://www.narodnoeradio.ee
alias radio-trio-myhits-256='mplayer -playlist http://striiming.trio.ee/myhits.mp3.m3u'
alias radio-narodnoe-aac='mpv http://striiming.trio.ee/narodnoe.aac'
alias radio-trio-myhits-256='mplayer -playlist http://striiming.trio.ee/myhits.ogg.m3u'
alias radio-narodnoe-mp3='mpv http://striiming.trio.ee/narodnoe.mp3'
alias radio-trio-myhits-320='mplayer -playlist http://striiming.trio.ee/myhits_high.mp3.m3u'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/narodnoe.mp3
alias radio-trio-myhits-low='mplayer -playlist http://striiming.trio.ee/myhits_low.mp3.m3u'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/narodnoe.aac
#
#
# http://www.narodnoeradio.ee
alias radio-trio-narodnoe='mplayer -playlist http://striiming.trio.ee/narodnoe.mp3.m3u'
###########################################################################
###########################################################################
#
#
Line 171: Line 211:
# http://retro.babahhcdn.com/
# http://retro.babahhcdn.com/
# http://skyplus.babahhcdn.com/
# http://skyplus.babahhcdn.com/
# http://phr.babahhcdn.com/
# http://sky.babahhcdn.com/
#
#
# http://www.retrofm.ee/
# https://sky.ee/
alias radio-babahh-retrofm-320='mplayer http://retro.babahhcdn.com/RETRO'
alias radio-retrofm='mpv http://retro.babahhcdn.com/RETRO'
#http://retro.babahhcdn.com/retro1.mp3.m3u
# http://retro.babahhcdn.com/RETROFM_boadcast.m3u
#http://retro.babahhcdn.com/retro2.mp3.m3u
# http://retro.babahhcdn.com/retro.m3u
# http://retro.babahhcdn.com/retro1.mp3.m3u
# http://retro.babahhcdn.com/retro2.mp3.m3u
alias radio-nrj='mpv http://retro.babahhcdn.com/NRJ.m3u'
alias radio-nrj-dnb='mpv http://retro.babahhcdn.com/NRJdnb.m3u'
#alias radio-nrj-house='mpv http://retro.babahhcdn.com/NRJhouse.m3u'
#
#
alias radio-babahh-nrj-320='mplayer -playlist http://retro.babahhcdn.com/NRJ.m3u'
# Russkoje Radio - http://www.russkoeradio.fm/ , https://www.russkoeradio.fm/online?station=russkoe-radio
alias radio-babahh-nrj-dnb-128='mplayer -playlist http://retro.babahhcdn.com/NRJdnb.m3u'
alias radio-rr='mpv https://skyplus.babahhcdn.com/RR'
alias radio-babahh-nrj-house-128='mplayer -playlist http://retro.babahhcdn.com/NRJhouse.m3u'
# http://retro.babahhcdn.com/RR.m3u
alias radio-babahh-rr-stream-tx-256='mplayer -playlist http://retro.babahhcdn.com/RR.m3u'
alias radio-babahh-sky='mplayer -playlist http://retro.babahhcdn.com/SKY.m3u'
#
#
#http://www.skyplus.fm/
# Russkoje Radio Rap
alias radio-babahh-skyplus-128='mplayer -playlist http://retro.babahhcdn.com/SKYPLUS.m3u'
alias radio-rrap='mpv https://skymedia.babahhcdn.com/rrap'
alias radio-babahh-skydance-128='mplayer -playlist http://retro.babahhcdn.com/SKYdance.m3u'
#http://retro.babahhcdn.com/rrap.m3u
alias radio-babahh-skygold-128='mplayer -playlist http://retro.babahhcdn.com/SKYgold.m3u'
#
alias radio-babahh-skyplus-dance-128='mplayer -playlist http://retro.babahhcdn.com/skyplus_dance.mp3.m3u'
# Russkoje Radio Rock
alias radio-babahh-skyplus-eesti-128='mplayer -playlist http://retro.babahhcdn.com/skyplus_eesti.mp3.m3u'
alias radio-rrock='mpv https://skymedia.babahhcdn.com/rrock'
alias radio-babahh-skyplus-gold-128='mplayer -playlist http://retro.babahhcdn.com/skyplus_gold.mp3.m3u'
#http://retro.babahhcdn.com/rrock.m3u
alias radio-babahh-skyplus-top40-128='mplayer -playlist http://retro.babahhcdn.com/skyplus_top40.mp3.m3u'
#
# Sky Radio - http://www.sky-radio.fm/ - venekeelne
# http://player.sky-radio.fm/PlayerContent/SkyRadio/js/settings.js
alias radio-sky='mpv http://sky.babahhcdn.com/SKY'
#http://retro.babahhcdn.com/SKY.m3u
alias radio-skyplus='mpv http://skyplus.babahhcdn.com/SKYPLUS'
#http://retro.babahhcdn.com/SKYPLUS.m3u
#http://retro.babahhcdn.com/SKYPLUS_boadcast.m3u
#http://retro.babahhcdn.com/skyplus.m3u
alias radio-skydance='mpv http://sky.babahhcdn.com/SKYdance'
# http://retro.babahhcdn.com/SKYdance.m3u
alias radio-skygold='mpv http://sky.babahhcdn.com/SKYgold'
#http://retro.babahhcdn.com/SKYgold.m3u
alias radio-rockfm='mpv http://retro.babahhcdn.com/rck.m3u'
alias radio-rockfm-metal='mpv http://retro.babahhcdn.com/rckmetal.m3u'
alias radio-skyplus-gold='mpv http://retro.babahhcdn.com/skyplus_gold.mp3.m3u'
alias radio-skyplus-top40='mpv http://retro.babahhcdn.com/skyplus_top40.mp3.m3u'
alias radio-skyplus-dance='mpv http://retro.babahhcdn.com/skyplusdance.m3u'
#
#
# Star FM - http://starfm.tv3.ee/
# Star FM - http://starfm.tv3.ee/
alias radio-starfm='mplayer -playlist http://stream.power.ee/StarFM.m3u'
alias radio-starfm='mpv https://ice.leviracloud.eu/star96-aac'
#alias babahh-starfm1='mplayer -playlist http://phr.babahhcdn.com/starfm.m3u'
#lias babahh-starfm2='mplayer -playlist http://phr.babahhcdn.com/starfm-app.m3u'
#alias babahh-starfm3='mplayer -playlist http://phr.babahhcdn.com/starxmas.m3u'
#
#
###########################################################################
###########################################################################
# PowerHit Radio - http://power.tv3.ee/
# PowerHit Radio - http://power.tv3.ee/
alias radio-babahh-powerhit='mplayer http://phr.babahhcdn.com:9000/phr'
alias radio-powerhit='mpv http://stream.power.ee/PHR.m3u'
alias radio-babahh-powerhit-partyzone='mplayer  http://mtg-radio.babahhcdn.com/ppztest'
# https://ice.leviracloud.eu/phr96-aac
alias radio-babahh-powerhit-street='mplayer  http://wr22-icecast.mtg-r.net/wr22_mp3'
#
alias radio-babahh-powerhit-powerclub='mplayer  http://wr21-icecast.mtg-r.net/wr21_mp3'
# Radio Volna https://volna.tv3.ee/
alias radio-volna='mpv https://ice.leviracloud.eu/volna96-aac'
#
###########################################################################
###########################################################################
# Christian radios in Estonia
alias radio-raadio7='mplayer http://icecast.mmm.elion.ee:8080/Raadio7' # http://www.raadio7.ee/
#
#
# Tartu Pereraadio http://www.pereraadio.ee/
# Christian radiostations in Estonia
alias radio-pereraadio-tartu='mplayer -playlist http://bee.pereraadio.ee:8000/listen.pls' # 128 kbps
#
# x-terminal-emulator -T "Tartu Pereraadio" -e "mplayer -playlist http://bee.pereraadio.ee:8000/listen.pls"
# Raadio7 http://www.raadio7.ee/
alias radio-raadio7='mpv https://edge05.cdn.bitflip.ee:8888/R7'
#
# eraldi käivitusikooni loomisel:
# sh -c "while true; do mpv --player-operation-mode=pseudo-gui --title='Raadio 7' https://edge05.cdn.bitflip.ee:8888/R7; done"
#
#
alias radio-pereraadio-kuressaare='mplayer -playlist http://mmm.elion.ee/kurpre.asx' # Kuressaare Pereraadio http://www.pereraadio.com/
# Pereraadio http://www.pereraadio.ee/
alias radio-pere-tartu='mpv http://icecast.pereraadio.ee/Tartu'
# kuna Pereraadio kipub katkema, siis saab kirjutada ka lõputu tsüklina:
# sh -c "while true; do mpv http://icecast.pereraadio.ee/Tartu; done"
# sulgemiseks: killall sh mpv
#
# eraldi käivitusikooni loomisel:
# sh -c "while true; do mpv --player-operation-mode=pseudo-gui --title='Tartu Pereraadio' http://icecast.pereraadio.ee/Tartu"
#
# http://bee.pereraadio.ee:8000/listen.pls
# x-terminal-emulator -T "Tartu Pereraadio" -e "mpv http://icecast.pereraadio.ee/Tartu"
#
alias radio-pere-tallinn='mpv http://icecast.pereraadio.ee/Tallinn'
# kuna Pereraadio kipub katkema, siis saab kirjutada ka lõputu tsüklina:
# sh -c "while true; do mpv http://icecast.pereraadio.ee/Tallinn; done"
# sulgemiseks: killall sh mpv
#
# eraldi käivitusikooni loomisel:
# sh -c "while true; do mpv --player-operation-mode=pseudo-gui --title='Tallinna Pereraadio' http://icecast.pereraadio.ee/Tallinn; done"
#
# Pereraadio in Russian
alias radio-pere-semeinoe='mpv http://icecast.pereraadio.ee/Semeinoje'
alias radio-pere-eli='mpv http://icecast.pereraadio.ee/RadioEli'
#
# Kuressaare Pereraadio http://www.pereraadio.com/
alias radio-pere-kuressaare='mpv http://icecast.pereraadio.ee/Kuressaare'
# kuna Pereraadio kipub katkema, siis saab kirjutada ka lõputu tsüklina:
# sh -c "while true; do mpv http://icecast.pereraadio.ee/Kuressaare; done"
# sulgemiseks: killall sh mpv
#
# eraldi käivitusikooni loomisel:
# sh -c "while true; do mpv --player-operation-mode=pseudo-gui --title='Kuressaare Pereraadio' http://icecast.pereraadio.ee/Kuressaare; done"
###########################################################################
###########################################################################
# http://icecast.mmm.elion.ee:8080/
#
# Ruut FM - http://www.ruutfm.ee/
# Ruut FM - http://www.ruutfm.ee/
alias radio-ruutfm='mplayer -playlist http://web.mmm.elion.ee/ruutfm.asx'
alias radio-ruutfm='mpv http://sc1.treraadio.ee:8010/tre'
# x-terminal-emulator -T "Ruut FM" -e "mpv http://sc1.treraadio.ee:8010/tre"
###########################################################################
###########################################################################
# Marta FM - http://www.martafm.ee/
# Ring FM - http://www.ringfm.ee/ , http://www.ringfm.ee/ring/kuula-otse/
alias radio-martafm='mplayer http://icecast.mmm.elion.ee:8080/MartaFM'
alias radio-ringfm='mpv http://sc2.treraadio.ee/ringfm'
###########################################################################
###########################################################################
# Raadio TRE - http://www.treraadio.ee/
# Marta FM - http://www.martafm.ee/ , live.martafm.ee
alias radio-tre='mplayer -playlist http://sc1.treraadio.ee:8002/listen.pls'
alias radio-martafm='mpv http://icecast.mmm.elion.ee:8080/MartaFM'
###########################################################################
# Raadio TRE - http://www.treraadio.ee/ , http://tre.ee/
#
alias radio-tre-rapla='mpv http://sc1.treraadio.ee:8002/tre'
#http://sc1.treraadio.ee:8002/listen.pls'
#http://151.80.180.93:8002/tre
alias radio-tre-kesk-eesti='mpv http://sc2.treraadio.ee:8004/tre'
alias radio-tre-pohja-eesti='mpv http://sc2.treraadio.ee/pohja-tre'
alias radio-tre-parnu='mplayer http://icecast.mmm.elion.ee:8080/paikeseraadio'
alias radio-tre-parnu='mplayer http://icecast.mmm.elion.ee:8080/paikeseraadio'
alias radio-tre-paide='mplayer -playlist http://kuma.fm/fileadmin/user_upload/rait/skin/kesk-eestiTRE.m3u'
# x-terminal-emulator -T "Raadio TRE" -e "mpv http://sc1.treraadio.ee:8002/tre"
###########################################################################
# Raadio Mania - http://www.mania.ee/
alias radio-mania='mplayer -playlist http://icecast.linxtelecom.com:8000/mania.mp3.m3u'
# x-terminal-emulator -T "Raadio Mania" -e "mplayer -playlist http://icecast.linxtelecom.com:8000/mania.mp3.m3u"
###########################################################################
###########################################################################
# Radio Kadi - http://www.kadi.ee/ (levitaja: http://www.eqcomputer.com)
# Tartu Noorteraadio - http://www.noorteraadio.ee/
alias radio-kadi='mplayer http://icecast.mmm.elion.ee:8080/Kadi'
# x-terminal-emulator -T "Tartu Noorteraadio" -e "mplayer http://tartunoored.ee:8010/stream"
# x-terminal-emulator -T "Raadio Kadi" -e "mplayer http://213.35.156.115/kadi"
###########################################################################
###########################################################################
# Cafe Radio - http://kohviradio.com/
# Raadio Mania - http://www.mania.ee/ - closed
alias radio-kohviraadio='mplayer -playlist http://kohviradio.com:8080/kohviradio.m3u'
# alias radio-mania='mpv http://icecast.linxtelecom.com:8000/mania.mp3.m3u'
# x-terminal-emulator -T "Raadio Mania" -e "mpv http://icecast.linxtelecom.com:8000/mania.mp3.m3u"
###########################################################################
###########################################################################
# Pärnu Radio - http://www.pfm.ee/
# Raadio Kadi - http://www.kadi.ee/ (levitaja: http://www.eqcomputer.com)
alias radio-parnu='mplayer http://raadio.pfm.ee:8000/pfm.ogg'
alias radio-kadi='mpv https://kadi.babahhcdn.com/kadi'
# x-terminal-emulator -T "Pärnu Raadio" -e "mplayer http://raadio.pfm.ee:8000/pfm.ogg"
# x-terminal-emulator -T "Raadio Kadi" -e "mpv https://kadi.babahhcdn.com/kadi"
###########################################################################
###########################################################################
# Nõmme Radio - http://www.nommeraadio.ee/
# Nõmme Raadio - http://www.nommeraadio.ee/
alias radio-nommeraadio='mplayer http://149.210.138.12:8000/nommeraadio'
alias radio-nommeraadio='mplayer http://149.210.138.12:8000/nommeraadio'
###########################################################################
###########################################################################
# Radios outside Estonia
# dance
#alias nashe96='mpv http://www.nashe.ua/radio.m3u'
#alias nashe128='mpv http://www.nashe.ua/nashe.m3u'
#alias swh-latvia='mpv http://www.radioswh.lv/swhlivee_s.m3u'
#alias radio1='mplayer http://netshow.play.cz:8000/radio1.mp3'
alias radio-t4e_main='mplayer http://out03.t4e.dj:80/main_high.mp3'
alias radio-t4e_main='mplayer http://out03.t4e.dj:80/main_high.mp3'
alias radio-t4e_hard='mplayer http://out03.t4e.dj:80/hard_high.mp3'
alias radio-t4e_hard='mplayer http://out03.t4e.dj:80/hard_high.mp3'
alias radio-t4e_club='mplayer http://out03.t4e.dj:80/club_high.mp3'
alias radio-t4e_club='mplayer http://out03.t4e.dj:80/club_high.mp3'
alias radio-t4e_lounge='mplayer http://out03.t4e.dj:80/lounge_high.mp3'
alias radio-t4e_lounge='mplayer http://out03.t4e.dj:80/lounge_high.mp3'
alias radio-iwayhigh_dub_electro_chill='mplayer -playlist http://iwayhigh.net:8000/listen.pls'
alias radio-iwayhigh_dub_electro_chill='mpv http://iwayhigh.net:8000/listen.pls'
alias radio-iwayhigh_guidance2='mplayer -playlist http://iwayhigh.net:8002/listen.pls'
alias radio-iwayhigh_guidance2='mpv http://iwayhigh.net:8002/listen.pls'
###########################################################################
###########################################################################
# Metal
# Metal
alias radio-metalradio='mplayer -playlist http://cent4.serverhostingcenter.com:2199/tunein/dzapped-stream.pls' #http://metalradio.com/
#alias chronix_aggression='mpv http://www.chronixradio.com/stations/chronixaggression/listen/listen.pls'
#alias chronix_metal='mpv http://www.chronixradio.com/cxrmetal/listen/listen.pls'
#alias chronix_grit='mpv http://www.chronixradio.com/cxrgrit/listen/listen.pls'
#alias chronix_mm='mpv http://sc1.chronixradio.com:10300/listen.pls'
#alias risingmetal='mpv http://radio1.forbidenhosting.com:2199/tunein/dgarda00.pls'
#alias radio-metalradio='mpv http://cent4.serverhostingcenter.com:2199/tunein/dzapped-stream.pls' #http://metalradio.com/
###########################################################################
###########################################################################
# ambient
# ambient
alias radio-ambient-somafm-dronezone='mplayer -playlist http://somafm.com/dronezone.pls' #ambient http://somafm.com/dronezone/
alias radio-ambient-somafm-dronezone='mpv http://somafm.com/dronezone.pls' #ambient http://somafm.com/dronezone/
alias radio-ambient-somafm-spacestation='mplayer -playlist http://somafm.com/spacestation.pls' # http://somafm.com/spacestation/
alias radio-ambient-somafm-spacestation='mpv http://somafm.com/spacestation.pls' # http://somafm.com/spacestation/
alias radio-ambient-somafm-deepspace='mplayer -playlist http://somafm.com/wma128/deepspaceone.asx' # http://somafm.com/deepspaceone/
alias radio-ambient-somafm-deepspace='mpv https://somafm.com/deepspaceone.pls' # http://somafm.com/deepspaceone/
alias radio-ambient-somafm-groovesalad='mplayer -playlist http://somafm.com/wma128/groovesalad.asx' # http://somafm.com/groovesalad/
alias radio-ambient-somafm-groovesalad='mpv https://somafm.com/groovesalad.pls' # http://somafm.com/groovesalad/
alias radio-ambient-somafm-missioncontrol='mplayer -playlist http://somafm.com/wma128/missioncontrol.asx' # http://somafm.com/missioncontrol/
alias radio-ambient-somafm-missioncontrol='mpv https://somafm.com/missioncontrol.pls' # http://somafm.com/missioncontrol/
alias radio-ambient-hbr1='mplayer -playlist http://radio.hbr1.com:19800/ambient.ogg.m3u' # http://www.hbr1.com/ Dream Factory
alias radio-ambient-hbr1='mpv http://radio.hbr1.com:19800/ambient.ogg.m3u' # http://www.hbr1.com/ Dream Factory
alias radio-ambient-sleepbot='mplayer -playlist http://www.sleepbot.com/ambience/cgi/listen.cgi/listen.pls' # http://www.sleepbot.com/ambience/broadcast/
# http://radio.hbr1.com:19800/ - media server
alias radio-ambient-bluemars='mplayer -playlist http://streams.echoesofbluemars.org:8000/bluemars.m3u' # http://echoesofbluemars.org/
alias radio-ambient-sleepbot='mpv http://www.sleepbot.com/ambience/cgi/listen.cgi/listen.pls' # http://www.sleepbot.com/ambience/broadcast/
alias radio-ambient-cryosleep='mplayer -playlist http://streams.echoesofbluemars.org:8000/cryosleep.m3u' # http://echoesofbluemars.org/cryosleep.php
alias radio-ambient-bluemars='mpv http://streams.echoesofbluemars.org:8000/bluemars.m3u' # http://echoesofbluemars.org/
alias radio-ambient-voices-from-within='mplayer -playlist http://streams.echoesofbluemars.org:8000/voicesfromwithin.m3u' # http://echoesofbluemars.org/voicesfromwithin.php
alias radio-ambient-cryosleep='mpv http://streams.echoesofbluemars.org:8000/cryosleep.m3u' # http://echoesofbluemars.org/cryosleep.php
alias radio-ambient-voices-from-within='mpv http://streams.echoesofbluemars.org:8000/voicesfromwithin.m3u' # http://echoesofbluemars.org/voicesfromwithin.php
###########################################################################
###########################################################################
# Christian outside Estonia
# Christian Metal
alias radio-christian-metal-hardrock-low='mplayer -playlist http://christianhardrock.net/CHRDN/live/low.pls'
alias radio-christian-metal-hardrock-low='mpv http://christianhardrock.net/CHRDN/live/low.pls'
alias radio-christian-metal-hardrock-high='mplayer -playlist http://christianhardrock.net/CHRDN/live/high.pls'
alias radio-christian-metal-hardrock-high='mpv http://christianhardrock.net/CHRDN/live/high.pls'
alias radio-christian-metal-rock-low='mplayer -playlist http://www.christianrock.net/CRDN/live/low.pls'
alias radio-christian-metal-rock-low='mpv http://www.christianrock.net/CRDN/live/low.pls'
alias radio-christian-metal-rock-high='mplayer -playlist http://www.christianrock.net/CRDN/live/high.pls'
alias radio-christian-metal-rock-high='mpv http://www.christianrock.net/CRDN/live/high.pls'
alias radio-christian-metal-classicrock-low='mplayer -playlist http://www.christianclassicrock.net/CCRDN/live/low.pls'
alias radio-christian-metal-classicrock-low='mpv http://www.christianclassicrock.net/CCRDN/live/low.pls'
alias radio-christian-metal-classicrock-high='mplayer -playlist http://www.christianclassicrock.net/CCRDN/live/high.pls'
alias radio-christian-metal-classicrock-high='mpv http://www.christianclassicrock.net/CCRDN/live/high.pls'
alias radio-christian-metal-sanctus-gladius='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=1624924'
alias radio-christian-metal-sanctus-gladius='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=1624924'
alias radio-christian-metal-full-armor='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=329149'
alias radio-christian-metal-full-armor='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=329149'
alias radio-christian-powerpraise-low='mplayer -playlist http://www.christianpowerpraise.net/CPPDN/live/low.pls'
alias radio-christian-powerpraise-low='mpv http://www.christianpowerpraise.net/CPPDN/live/low.pls'
alias radio-christian-powerpraise-high='mplayer -playlist http://www.christianpowerpraise.net/CPPDN/live/high.pls'
alias radio-christian-powerpraise-high='mpv http://www.christianpowerpraise.net/CPPDN/live/high.pls'
alias radio-christian-rock-I-am='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=28991'
#alias radio-christian-rock-I-am='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=28991'
#alias christian-blastfm='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=107652'
#alias christian-blastfm='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=107652'
alias radio-christian-musicforhisglory='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=99190554'
#alias radio-christian-musicforhisglory='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=99190554'
alias radio-christian-life-radio='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=155707'
#alias radio-christian-life-radio='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=155707'
###########################################################################
###########################################################################
# exotic
# Organ
alias radio-swastik-bhajan-bhakti='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=69157'
alias radio-organmagic='mpv http://www.outpostradio.com/organmagic/play.m3u'
alias radio-kripalu-bhakti-radio='mplayer -playlist http://yp.shoutcast.com/sbin/tunein-station.m3u?id=114038'
###########################################################################
###########################################################################
# Estonian National Broadcasting Company (http://www.err.ee/) TC channels:
# TV
# ETV - http://etv.err.ee/
###########################################################################
# ETV2 - http://www.err.ee/etv2/
# Estonian National Broadcasting Company (http://www.err.ee/) TV-channels
#
# Web player http://otse.err.ee/:
#
#
# In the web: http://otse.err.ee/:
alias tv-etv='mpv http://sb.err.ee/live/etv.m3u8'
# ETV  - http://otse.err.ee/etv/
alias tv-etv2='mpv http://sb.err.ee/live/etv2.m3u8'
# ETV2 - http://otse.err.ee/etv2
alias tv-etv+='mpv http://sb.err.ee/live/etvpluss.m3u8'
# mpv installation https://mpv.io/installation/
# workaround
alias tv-etv='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv.m3u8; done"'
#alias tv-etv='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv.m3u8; done"'
alias tv-etv2='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv2.m3u8; done"'
#alias tv-etv2='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv2.m3u8; done"'
alias tv-etv+='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etvpluss.m3u8; done"'
#alias tv-etv+='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etvpluss.m3u8; done"'
alias tv-sulge='sh -c "killall -9 sh mpv"'
#alias tv-kill='sh -c "killall -9 sh mpv"'
#
#
# Web cam test
# Webcam test
#
#
alias wc1='mplayer tv:// -tv driver=v4l2:device=/dev/video0'
alias wc1='mplayer tv:// -tv driver=v4l2:device=/dev/video0'
Line 310: Line 420:
</syntaxhighlight>
</syntaxhighlight>
[[Category:Operatsioonisüsteemide administreerimine ja sidumine]]
[[Category:Operatsioonisüsteemide administreerimine ja sidumine]]
[[Category:Linux]]

Latest revision as of 01:24, 1 October 2024

# Preliminary version in Estonian can be found at http://viki.pingviin.org/Alias  
#  
# Also from http://enos.itcollege.ee/~edmund/materials/bash  
#
###########################################################################
# Some bash aliases
###################
# EndeavourOS, Arch Linux, Manjaro Linux, etc.
alias u='yay -Syyuu && flatpak update' #update, upgrade but confirm manually, also update flatpak packages - use if using flatpak
alias k='yay -Scc --noconfirm' #clean already installed packages caches with no confirmation
alias i='yay -Sy' #install
alias oka='yay -Ss' #remote search
alias oko='yay -Qs' #local search
alias n='yay -Si' #show information
alias e='yay -Rsn' #remove completely
alias ae='yay -Yc' #remove orphan dependencies
alias varamud='sudo reflector --verbose -c EE -c FI -c LV --protocol https --sort rate --latest 10 --save /etc/pacman.d/mirrorlist' # use estonian, finnish, latvian repositories and choose 10 fastest of them - especially you notice updates are taking too long time, then possibly too far repositories are in use, more reading at https://www.howtogeek.com/automating-mirror-list-updates-on-arch-linux/ and check also /etc/xdg/reflector/reflector.conf config file, which is pretty self explanatory
alias ammu='yay -Sy archlinux-keyring endeavouros-keyring' # update GPG keys packages forcibly in first place while long time ago updated and system claims packages are faulty due to keys mismatch - check your distro *-keyring packages in addition of arch linux one, here is example of EndeavourOS but according your distro you might have additional keyring packages that needs to be forcibly updated before you can continue with rest of packages update
#alias ug='sudo grub-mkconfig -o /boot/grub/grub.cfg' #update GRUB but today is already systemd-boot, etc
#alias uefi='sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS-grub' # if GRUB in use, this is how to reinstall it in EndeavourOS - nowadays UEFI is already usually in /efi and not in /boot/efi - check this before using this command with GRUB
#
# EXIF data removal from images
# https://archlinux.org/packages/extra/any/perl-image-exiftool/
# install: yay -Sy perl-image-exiftool --needed
# https://linuxhandbook.com/remove-exif-data/
alias exif='exiftool -overwrite_original -all= *.jpg'
#
# Linux Mint, Ubuntu, Debian, etc.
#alias u='sudo apt update && sudo apt full-upgrade'
#alias k='sudo ldconfig && sudo dpkg --configure -a && sudo apt-get clean'
#alias i='sudo apt install'
#alias oka='apt search'
#alias oko='dpkg -l|grep -i'
#alias n='sudo apt show'
#alias e='sudo apt purge'
#alias ae='sudo apt purge --auto-remove'
#alias p='sudo apt-cache policy'
#alias f='sudo apt install -f'
#alias ug='sudo update-grub'
###########################################################################
# Transfer
# https://transfer.sh
# usage: transfer file.txt - replace "file.txt" with real one
# up to 10 GB, files stored for 14 days
transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi 
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
###########################################################################
alias clean='rm ~/.local/share/recently-used.xbel 2>/dev/null' #clean recently used files list
alias neti='ping neti.ee -c3'
#
# What is my IP address?
alias ipinfo='curl ipinfo.io'
alias ipinfo-ip='curl ipinfo.io/ip'
alias ipinfo-hostname='curl ipinfo.io/hostname'
alias ipinfo-city='curl ipinfo.io/city'
alias ipinfo-region='curl ipinfo.io/region'
alias ipinfo-country='curl ipinfo.io/country'
alias ipinfo-loc='curl ipinfo.io/loc'
alias ipinfo-org='curl ipinfo.io/org'
# sudo apt update && sudo apt install curl -y && sudo apt clean
###########################################################################
# weather https://askubuntu.com/questions/390329/weather-from-terminal
# help: https://wttr.in/:help (web browser default language will define language for weather)
# help: https://wttr.in/:help?lang=et
# curl wttr.in/:help , curl wttr.in/:help?lang=et
alias weather-tallinn='curl wttr.in/tallinn?lang=et'
alias weather2-tallinn='curl v2.wttr.in/tallinn?lang=et'
###########################################################################
# Logging with SSH keyfile example with checking key both in text and visual mode. Replace with appropriate data
#
#alias sshalias='ssh-keyscan -t ecdsa address.ee | ssh-keygen -lv -f - && ssh -X -i ~/.ssh/keyfile -o VisualHostKey=yes user@address.ee'
#
###########################################################################
# Power management
alias power-lock-suspend='sudo physlock -du $USER; sudo systemctl suspend'
# sudo apt update && sudo apt install physlock -y && sudo apt clean
# https://groups.google.com/forum/#!topic/qubes-users/4dnNv5eYgq4
# https://github.com/muennich/physlock
alias power-off='systemctl poweroff'
alias power-reboot='systemctl reboot'
alias power-halt='systemctl halt'
alias power-suspend='systemctl suspend'
alias power-hibernate='systemctl hibernate'
###########################################################################
# RADIOSTATIONS
# http://icecast.err.ee/
# http://icecast.mmm.elion.ee:8080/
# http://striiming.trio.ee/
# http://www.raadio.ee
# http://www.raadio.net
# https://www.liveradio.ie/
# http://www.w3.ee
# http://et.wikipedia.org/wiki/Eesti_raadiojaamade_loend
# http://www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/
# http://www.neti.ee/cgi-bin/teema/INFO_JA_MEEDIA/Raadio/ON-LINE/
# http://www.rhm.ee/raadio/raadiojaam.html
# http://www.google.com/Top/World/Eesti/Meedia/Raadio/
# http://www.tvnewsradio.com/ee/raadio.htm
# http://www.di.fm
# http://somafm.com
# http://www.surfmusic.de
# http://www.micromusic.net
# http://www.1club.fm/radioChannelGuide.htm
# http://www.m2radio.fr
# http://radiomap.eu/ee/
# https://www.raadio.net/
# https://levira.com/en/services/broadcasting/radio-broadcasting-fm-web/
# https://www.ttja.ee/et/valdkonnad-teenused/sideteenused/raadioside/tv-ja-raadioringhaaling - here are PDF-files from officially allowed radio stations in Estonia
# https://wiki.kuus.eu/index.php/Eesti_raadiod_onlines
#
# Streaming Directories:
# http://dir.xiph.org/ (http://www.icecast.org/)
# http://www.shoutcast.com/
# http://www.internet-radio.com/
# http://www.live365.com/
# http://www.listenlive.eu/
# http://www.radiotunes.com/
# http://radiotuna.com/
# http://tunein.com/
# http://www.977music.com/
# http://www.radioguide.fm/
# http://www.radio.de/
#
# MPlayer and codecs installation
# https://help.ubuntu.com/community/MPlayer - install mediaplayer
# https://help.ubuntu.com/community/RestrictedFormats - install codecs
# sudo apt update && sudo apt install mplayer mplayer-fonts k|x|l|ubuntu-restricted-extras -y && sudo apt clean #choose one of the restricted extras package according used ubuntu flavour
#
# MPV - new era mediaplayer based on MPlayer, also for smart devices
# https://mpv.io/installation/
#
##########################################################################
# Estonian National Broadcasting Company (ERR) - http://www.err.ee/
# http://icecast.err.ee/
#
# Klassikaraadio - http://klassikaraadio.err.ee/
alias radio-kl-128-mp3='mpv http://icecast.err.ee/klassikaraadio.mp3.m3u'
alias radio-kl-128-ogg='mpv http://icecast.err.ee/klassikaraadio.ogg.m3u'
alias radio-kl-64-mp3='mpv http://icecast.err.ee/klassikaraadiomadal.mp3.m3u'
alias radio-kl-64-ogg='mpv http://icecast.err.ee/klassikaraadiomadal.ogg.m3u'
# x-terminal-emulator -T "Klassikaraadio" -e "mpv http://icecast.err.ee/klassikaraadio.ogg.m3u"
#
# Raadio 2 - http://r2.err.ee/
alias radio-r2-128-mp3='mpv http://icecast.err.ee/raadio2.mp3.m3u'
alias radio-r2-128-ogg='mpv http://icecast.err.ee/raadio2.ogg.m3u'
alias radio-r2-64-mp3='mpv http://icecast.err.ee/raadio2madal.mp3.m3u'
alias radio-r2-64-ogg='mpv http://icecast.err.ee/raadio2madal.ogg.m3u'
# x-terminal-emulator -T "Raadio 2" -e "mpv http://icecast.err.ee/raadio2.mp3.m3u"
#
# Raadio 4 - http://r4.err.ee/
alias radio-r4-128-mp3='mpv http://icecast.err.ee/raadio4.mp3.m3u'
alias radio-r4-128-ogg='mpv http://icecast.err.ee/raadio4.ogg.m3u'
alias radio-r4-64-mp3='mpv http://icecast.err.ee/raadio4madal.mp3.m3u'
alias radio-r4-64-ogg='mpv http://icecast.err.ee/raadio4madal.ogg.m3u'
#
# Raadio Tallinn - http://raadiotallinn.err.ee/
alias radio-rt-128-mp3='mpv http://icecast.err.ee/raadiotallinn.mp3.m3u'
alias radio-rt-128-ogg='mpv http://icecast.err.ee/raadiotallinn.ogg.m3u'
alias radio-rt-64-mp3='mpv http://icecast.err.ee/raadiotallinnmadal.mp3.m3u'
alias radio-rt-64-ogg='mpv http://icecast.err.ee/raadiotallinnmadal.ogg.m3u'
#
# Vikerraadio - http://vikerraadio.err.ee/
alias radio-vr-128-mp3='mpv http://icecast.err.ee/vikerraadio.mp3.m3u'
alias radio-vr-128-ogg='mpv http://icecast.err.ee/vikerraadio.ogg.m3u'
alias radio-vr-64-mp3='mpv http://icecast.err.ee/vikerraadiomadal.mp3.m3u'
alias radio-vr-64-ogg='mpv http://icecast.err.ee/vikerraadiomadal.ogg.m3u'
# x-terminal-emulator -T "Vikerraadio" -e "mpv http://icecast.err.ee/vikerraadio.ogg.m3u"
#
##########################################################################
# https://www.eestimeedia.ee/tegevusalad/raadio/
#
# http://kuku.postimees.ee/
alias radio-kuku-aac='mpv http://striiming.trio.ee/kuku.aac'
alias radio-kuku-mp3='mpv http://striiming.trio.ee/kuku.mp3'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.mp3
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.aac
# x-terminal-emulator -T "Kuku" -e "mpv https://router.euddn.net/8103046e16b71d15d692b57c187875c7/kuku.mp3"
#
# http://myhits.postimees.ee/
alias radio-myhits-aac='mpv http://striiming.trio.ee/myhits.aac'
alias radio-myhits-mp3='mpv http://striiming.trio.ee/myhits.mp3'
# http://striiming.trio.ee:8008/myhits_high.mp3
# http://striiming.trio.ee/myhits_low.mp3
# http://router.euddn.net/8103046e16b71d15d692b57c187875c7/myhits.mp3
# http://router.euddn.net/8103046e16b71d15d692b57c187875c7/myhits.aac
#
# https://elmar.elu24.ee/ , https://elmar.elu24.ee/radio
# https://www.elu24.ee/build-wu-v5/39.bundle-724da730ae1c9618e9a7.js
alias radio-elmar-aac='mpv http://striiming.trio.ee/elmar.aac'
alias radio-elmar-mp3='mpv http://striiming.trio.ee/elmar.mp3'
# x-terminal-emulator -T "Elmar" -e "mpv https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.mp3"
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.aac
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/elmar.mp3
#
# http://www.dfm.ee http://www.dfm.ee/online/play.html ./js/index.js
alias radio-dfm-aac='mpv http://striiming.trio.ee/dfm.aac'
alias radio-dfm-mp3='mpv http://striiming.trio.ee/dfm.mp3'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/dfm.mp3
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/dfm.aac
#
# http://www.narodnoeradio.ee
alias radio-narodnoe-aac='mpv http://striiming.trio.ee/narodnoe.aac'
alias radio-narodnoe-mp3='mpv http://striiming.trio.ee/narodnoe.mp3'
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/narodnoe.mp3
# https://router.euddn.net/8103046e16b71d15d692b57c187875c7/narodnoe.aac
#
###########################################################################
#
# Babahh Media
# http://retro.babahhcdn.com/
# http://skyplus.babahhcdn.com/
# http://sky.babahhcdn.com/
#
# https://sky.ee/
alias radio-retrofm='mpv http://retro.babahhcdn.com/RETRO'
# http://retro.babahhcdn.com/RETROFM_boadcast.m3u
# http://retro.babahhcdn.com/retro.m3u
# http://retro.babahhcdn.com/retro1.mp3.m3u
# http://retro.babahhcdn.com/retro2.mp3.m3u
alias radio-nrj='mpv http://retro.babahhcdn.com/NRJ.m3u'
alias radio-nrj-dnb='mpv http://retro.babahhcdn.com/NRJdnb.m3u'
#alias radio-nrj-house='mpv http://retro.babahhcdn.com/NRJhouse.m3u'
#
# Russkoje Radio - http://www.russkoeradio.fm/ , https://www.russkoeradio.fm/online?station=russkoe-radio
alias radio-rr='mpv https://skyplus.babahhcdn.com/RR'
# http://retro.babahhcdn.com/RR.m3u
#
# Russkoje Radio Rap
alias radio-rrap='mpv https://skymedia.babahhcdn.com/rrap'
#http://retro.babahhcdn.com/rrap.m3u
#
# Russkoje Radio Rock
alias radio-rrock='mpv https://skymedia.babahhcdn.com/rrock'
#http://retro.babahhcdn.com/rrock.m3u
#
# Sky Radio - http://www.sky-radio.fm/ - venekeelne
# http://player.sky-radio.fm/PlayerContent/SkyRadio/js/settings.js
alias radio-sky='mpv http://sky.babahhcdn.com/SKY'
#http://retro.babahhcdn.com/SKY.m3u
alias radio-skyplus='mpv http://skyplus.babahhcdn.com/SKYPLUS'
#http://retro.babahhcdn.com/SKYPLUS.m3u
#http://retro.babahhcdn.com/SKYPLUS_boadcast.m3u
#http://retro.babahhcdn.com/skyplus.m3u
alias radio-skydance='mpv http://sky.babahhcdn.com/SKYdance'
# http://retro.babahhcdn.com/SKYdance.m3u
alias radio-skygold='mpv http://sky.babahhcdn.com/SKYgold'
#http://retro.babahhcdn.com/SKYgold.m3u
alias radio-rockfm='mpv http://retro.babahhcdn.com/rck.m3u'
alias radio-rockfm-metal='mpv http://retro.babahhcdn.com/rckmetal.m3u'
alias radio-skyplus-gold='mpv http://retro.babahhcdn.com/skyplus_gold.mp3.m3u'
alias radio-skyplus-top40='mpv http://retro.babahhcdn.com/skyplus_top40.mp3.m3u'
alias radio-skyplus-dance='mpv http://retro.babahhcdn.com/skyplusdance.m3u'
#
# Star FM - http://starfm.tv3.ee/
alias radio-starfm='mpv https://ice.leviracloud.eu/star96-aac'
#
###########################################################################
# PowerHit Radio - http://power.tv3.ee/
alias radio-powerhit='mpv http://stream.power.ee/PHR.m3u'
# https://ice.leviracloud.eu/phr96-aac
#
# Radio Volna https://volna.tv3.ee/
alias radio-volna='mpv https://ice.leviracloud.eu/volna96-aac'
#
###########################################################################
#
# Christian radiostations in Estonia
#
# Raadio7 http://www.raadio7.ee/
alias radio-raadio7='mpv https://edge05.cdn.bitflip.ee:8888/R7'
#
# eraldi käivitusikooni loomisel:
# sh -c "while true; do mpv --player-operation-mode=pseudo-gui --title='Raadio 7' https://edge05.cdn.bitflip.ee:8888/R7; done"
#
# Pereraadio http://www.pereraadio.ee/
alias radio-pere-tartu='mpv http://icecast.pereraadio.ee/Tartu'
# kuna Pereraadio kipub katkema, siis saab kirjutada ka lõputu tsüklina:
# sh -c "while true; do mpv http://icecast.pereraadio.ee/Tartu; done"
# sulgemiseks: killall sh mpv
#
# eraldi käivitusikooni loomisel:
# sh -c "while true; do mpv --player-operation-mode=pseudo-gui --title='Tartu Pereraadio' http://icecast.pereraadio.ee/Tartu"
#
# http://bee.pereraadio.ee:8000/listen.pls
# x-terminal-emulator -T "Tartu Pereraadio" -e "mpv http://icecast.pereraadio.ee/Tartu"
#
alias radio-pere-tallinn='mpv http://icecast.pereraadio.ee/Tallinn'
# kuna Pereraadio kipub katkema, siis saab kirjutada ka lõputu tsüklina:
# sh -c "while true; do mpv http://icecast.pereraadio.ee/Tallinn; done"
# sulgemiseks: killall sh mpv
#
# eraldi käivitusikooni loomisel:
# sh -c "while true; do mpv --player-operation-mode=pseudo-gui --title='Tallinna Pereraadio' http://icecast.pereraadio.ee/Tallinn; done"
#
# Pereraadio in Russian
alias radio-pere-semeinoe='mpv http://icecast.pereraadio.ee/Semeinoje'
alias radio-pere-eli='mpv http://icecast.pereraadio.ee/RadioEli'
#
# Kuressaare Pereraadio http://www.pereraadio.com/
alias radio-pere-kuressaare='mpv http://icecast.pereraadio.ee/Kuressaare'
# kuna Pereraadio kipub katkema, siis saab kirjutada ka lõputu tsüklina:
# sh -c "while true; do mpv http://icecast.pereraadio.ee/Kuressaare; done"
# sulgemiseks: killall sh mpv
#
# eraldi käivitusikooni loomisel:
# sh -c "while true; do mpv --player-operation-mode=pseudo-gui --title='Kuressaare Pereraadio' http://icecast.pereraadio.ee/Kuressaare; done"
###########################################################################
# http://icecast.mmm.elion.ee:8080/
#
# Ruut FM - http://www.ruutfm.ee/
alias radio-ruutfm='mpv http://sc1.treraadio.ee:8010/tre'
# x-terminal-emulator -T "Ruut FM" -e "mpv http://sc1.treraadio.ee:8010/tre"
###########################################################################
# Ring FM - http://www.ringfm.ee/ , http://www.ringfm.ee/ring/kuula-otse/
alias radio-ringfm='mpv http://sc2.treraadio.ee/ringfm'
###########################################################################
# Marta FM - http://www.martafm.ee/ , live.martafm.ee
alias radio-martafm='mpv http://icecast.mmm.elion.ee:8080/MartaFM'
###########################################################################
# Raadio TRE - http://www.treraadio.ee/ , http://tre.ee/
#
alias radio-tre-rapla='mpv http://sc1.treraadio.ee:8002/tre'
#http://sc1.treraadio.ee:8002/listen.pls'
#http://151.80.180.93:8002/tre
alias radio-tre-kesk-eesti='mpv http://sc2.treraadio.ee:8004/tre'
alias radio-tre-pohja-eesti='mpv http://sc2.treraadio.ee/pohja-tre'
alias radio-tre-parnu='mplayer http://icecast.mmm.elion.ee:8080/paikeseraadio'
# x-terminal-emulator -T "Raadio TRE" -e "mpv http://sc1.treraadio.ee:8002/tre"
###########################################################################
# Tartu Noorteraadio - http://www.noorteraadio.ee/
# x-terminal-emulator -T "Tartu Noorteraadio" -e "mplayer http://tartunoored.ee:8010/stream"
###########################################################################
# Raadio Mania - http://www.mania.ee/ - closed
# alias radio-mania='mpv http://icecast.linxtelecom.com:8000/mania.mp3.m3u'
# x-terminal-emulator -T "Raadio Mania" -e "mpv http://icecast.linxtelecom.com:8000/mania.mp3.m3u"
###########################################################################
# Raadio Kadi - http://www.kadi.ee/ (levitaja: http://www.eqcomputer.com)
alias radio-kadi='mpv https://kadi.babahhcdn.com/kadi'
# x-terminal-emulator -T "Raadio Kadi" -e "mpv https://kadi.babahhcdn.com/kadi"
###########################################################################
# Nõmme Raadio - http://www.nommeraadio.ee/
alias radio-nommeraadio='mplayer http://149.210.138.12:8000/nommeraadio'
###########################################################################
# dance
#alias nashe96='mpv http://www.nashe.ua/radio.m3u'
#alias nashe128='mpv http://www.nashe.ua/nashe.m3u'
#alias swh-latvia='mpv http://www.radioswh.lv/swhlivee_s.m3u'
#alias radio1='mplayer http://netshow.play.cz:8000/radio1.mp3'
alias radio-t4e_main='mplayer http://out03.t4e.dj:80/main_high.mp3'
alias radio-t4e_hard='mplayer http://out03.t4e.dj:80/hard_high.mp3'
alias radio-t4e_club='mplayer http://out03.t4e.dj:80/club_high.mp3'
alias radio-t4e_lounge='mplayer http://out03.t4e.dj:80/lounge_high.mp3'
alias radio-iwayhigh_dub_electro_chill='mpv http://iwayhigh.net:8000/listen.pls'
alias radio-iwayhigh_guidance2='mpv http://iwayhigh.net:8002/listen.pls'
###########################################################################
# Metal
#alias chronix_aggression='mpv http://www.chronixradio.com/stations/chronixaggression/listen/listen.pls'
#alias chronix_metal='mpv http://www.chronixradio.com/cxrmetal/listen/listen.pls'
#alias chronix_grit='mpv http://www.chronixradio.com/cxrgrit/listen/listen.pls'
#alias chronix_mm='mpv http://sc1.chronixradio.com:10300/listen.pls'
#alias risingmetal='mpv http://radio1.forbidenhosting.com:2199/tunein/dgarda00.pls'
#alias radio-metalradio='mpv http://cent4.serverhostingcenter.com:2199/tunein/dzapped-stream.pls' #http://metalradio.com/
###########################################################################
# ambient
alias radio-ambient-somafm-dronezone='mpv http://somafm.com/dronezone.pls' #ambient http://somafm.com/dronezone/
alias radio-ambient-somafm-spacestation='mpv http://somafm.com/spacestation.pls' # http://somafm.com/spacestation/
alias radio-ambient-somafm-deepspace='mpv https://somafm.com/deepspaceone.pls' # http://somafm.com/deepspaceone/
alias radio-ambient-somafm-groovesalad='mpv https://somafm.com/groovesalad.pls' # http://somafm.com/groovesalad/
alias radio-ambient-somafm-missioncontrol='mpv https://somafm.com/missioncontrol.pls' # http://somafm.com/missioncontrol/
alias radio-ambient-hbr1='mpv http://radio.hbr1.com:19800/ambient.ogg.m3u' # http://www.hbr1.com/ Dream Factory
# http://radio.hbr1.com:19800/ - media server
alias radio-ambient-sleepbot='mpv http://www.sleepbot.com/ambience/cgi/listen.cgi/listen.pls' # http://www.sleepbot.com/ambience/broadcast/
alias radio-ambient-bluemars='mpv http://streams.echoesofbluemars.org:8000/bluemars.m3u' # http://echoesofbluemars.org/
alias radio-ambient-cryosleep='mpv http://streams.echoesofbluemars.org:8000/cryosleep.m3u' # http://echoesofbluemars.org/cryosleep.php
alias radio-ambient-voices-from-within='mpv http://streams.echoesofbluemars.org:8000/voicesfromwithin.m3u' # http://echoesofbluemars.org/voicesfromwithin.php
###########################################################################
# Christian Metal
alias radio-christian-metal-hardrock-low='mpv http://christianhardrock.net/CHRDN/live/low.pls'
alias radio-christian-metal-hardrock-high='mpv http://christianhardrock.net/CHRDN/live/high.pls'
alias radio-christian-metal-rock-low='mpv http://www.christianrock.net/CRDN/live/low.pls'
alias radio-christian-metal-rock-high='mpv http://www.christianrock.net/CRDN/live/high.pls'
alias radio-christian-metal-classicrock-low='mpv http://www.christianclassicrock.net/CCRDN/live/low.pls'
alias radio-christian-metal-classicrock-high='mpv http://www.christianclassicrock.net/CCRDN/live/high.pls'
alias radio-christian-metal-sanctus-gladius='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=1624924'
alias radio-christian-metal-full-armor='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=329149'
alias radio-christian-powerpraise-low='mpv http://www.christianpowerpraise.net/CPPDN/live/low.pls'
alias radio-christian-powerpraise-high='mpv http://www.christianpowerpraise.net/CPPDN/live/high.pls'
#alias radio-christian-rock-I-am='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=28991'
#alias christian-blastfm='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=107652'
#alias radio-christian-musicforhisglory='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=99190554'
#alias radio-christian-life-radio='mpv http://yp.shoutcast.com/sbin/tunein-station.m3u?id=155707'
###########################################################################
# Organ
alias radio-organmagic='mpv http://www.outpostradio.com/organmagic/play.m3u'
###########################################################################
# TV
###########################################################################
# Estonian National Broadcasting Company (http://www.err.ee/) TV-channels
#
# Web player http://otse.err.ee/:
#
alias tv-etv='mpv http://sb.err.ee/live/etv.m3u8'
alias tv-etv2='mpv http://sb.err.ee/live/etv2.m3u8'
alias tv-etv+='mpv http://sb.err.ee/live/etvpluss.m3u8'
# workaround
#alias tv-etv='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv.m3u8; done"'
#alias tv-etv2='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etv2.m3u8; done"'
#alias tv-etv+='sh -c "while true; do mpv --network-timeout=2 http://sb.err.ee/live/etvpluss.m3u8; done"'
#alias tv-kill='sh -c "killall -9 sh mpv"'
#
# Webcam test
#
alias wc1='mplayer tv:// -tv driver=v4l2:device=/dev/video0'
alias wc2='mplayer tv:// -tv driver=v4l2:device=/dev/video1'
alias wc3='mplayer tv:// -tv driver=v4l2:device=/dev/video2'
alias vlcwc1='vlc v4l2:///dev/video0'
alias vlcwc2='vlc v4l2:///dev/video1'
alias vlcwc3='vlc v4l2:///dev/video2'