Active Internet connections (servers and established)
netstat -an
bash practical linux blog terminal ubuntu fedora
Active Internet connections (servers and established)
netstat -an
It works for years on debian alike linux.
#!/usr/bin/env bash
Clean scrypt by Sylvester
echo “apt-get clean, autoclean, autoremove”
df
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
df
dpkg -l linux-* | awk ‘/^ii/{ print $2}’ | grep -v -e `uname -r | cut -f1,2 -d”-“` | grep -e [0-9] | xargs sudo apt-get -y purge
exit 0
#!/usr/bin/env bash
###################curl wttr.in/galway
Some banks introduce new standard.
We can check on Linux machine that we outperformed XP/Vista OS by typing that command in terminal.
openssl ciphers -v TLSv1.2
So to keep banking on machine with windows XP/Vista we need to make some room for ubuntu 16.04, or xubuntu 16.04 or lubuntu 16.04, it will work just fine.
Well, need a lot of time , slow thinking to connect all dots and patience!!!
I had a linux machine without Polish keyboard,
someone post how to easy “install all of them in few steps”.
It does not apply for desktop but only for server`s “terminal or console”.
That was my last goal to get Polish letters but as a result I end with broken desktop ubuntu 16.04 .
“again a stupid kernel panic” – fixed first time ever.
13 hours later I mange to fix it all ubuntu and Polish letters, (There is a lot faster to put fresh ubuntu on hdd, but I`ll like to kept old-one ver.)
I transfer scripts thru ftp server on my android phone, download them on broken laptop and fixed.
Fixed without letters : s and a on keyboard 🙂
I USE ALLIASES TO REPLACE BROKEN KEYS , AS FOLLOW!!!!
I USE ALLIASES TO REPLACE BROKEN KEYS , AS FOLLOW!!!!
I USE ALLIASES TO REPLACE BROKEN KEYS , AS FOLLOW!!!!
I edit a file ~/.bashrc
alias pt=’sudo apt-get’
alias op=’sudo apt-get update’
alias oi=’sudo apt-get install’
alias or=’sudo apt-get remove’
alias xw=’startx’
alias rx=’sudo apt-get remove xserver-xorg’
alias ix=’sudo apt-get install xserver-xorg’
and used ssh clinet from android to run some commands.
It was a better fun than recovery a windows XP on Spanish laptop with knowlege of two Spanish word “YES or NO” in 2008. 🙂 for a friend.
I name it ns.sh
#!/usr/bin/env bash
# Radio scrypt by Sylvester,
# GNU General Public License version 2.0 (GPLv2)echo “Enter URL for any stream.”
echo “It will play podcast.”
while read URL
do
mplayer -cache 1024 -benchmark -cookies-file /tmp/cookies.txt “$URL”
done
Please save in file yts.sh
#!/usr/bin/env bash
# YT scrypt by Sylvester,
# GNU General Public License version 2.0 (GPLv2)echo “Search youtube for phrase!”
while read ASKFOR
do
lynx -dump “https://www.youtube.com/results?search_query=\”$ASKFOR\”” | egrep -o “http.*watch.*” | vlc –
done
Welcome to Practical Linux blog!
Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell.
#!/usr/bin/env bash
# Radio Skrypt by Sylvester,
# GNU General Public License version 2.0 (GPLv2)
cd ~
cd ..
clearwhile true; do
echo “choose a radio station?”
echo “”
echo “Stop playing a stream – press CTRL + C”
echo “”
echo “List of available radios:”
echo “”
select radio in Jedynka Dwojka Trojka Czworka Rmf_FM Zet Zlote_Przeboje TOK_FM AntyRadio Eska Eska_Party Wroclaw_Zet_Gold PRWroclaw Energy2000 Opole Opole_Eska Opole_Rmfmax Opole_Doxa RmfMax Sud_Kepno Katowice 24 Bydgoszcz Kampus Zak Lodz ZiemiWielunskiej NaszeSieradz Lodz_Plus House Vocal Groove BBC GalwayBay iRadio RtePulse Newstalk Today Bloomberg BussinesFM Euronews_EN KPFA RTE TwitAM TechnoBase Euronews_DE Oe1 Rtl Vienn Deutchlandfunk Berlin Bayern1 Bayern3 OE3_Hit OE_FM4 RockAntenne SWRInfo SWR1 SWRArchive Wdr2 Wdr5 Paloma OE1 OE1_Campus Hrinfo ANTENNE_BAYERN Deutschland_Kultur Welle_De End_Program
do
case $radio in
“Jedynka”) adres=”http://stream3.polskieradio.pl:8900/” ;;
“Dwojka”) adres=”http://stream3.polskieradio.pl:8902/” ;;
“Trojka”) adres=”http://stream3.polskieradio.pl:8904/” ;;
“Czworka”) adres=”mms://stream.polskieradio.pl/program4″ ;;
“Rmf_FM”) adres=”http://31.192.216.4:9000″ ;;
“Energy2000″) adres=”http://energy2000.radioparty.pl:8005” ;;
“Zet”) adres=”http://91.121.179.221:8050″ ;;
“Zlote_Przeboje”) adres=”http://poznan5-6.radio.pionier.net.pl:8000/tuba9-1.mp3″ ;;
“TOK_FM”) adres=”http://gdansk1-1.radio.pionier.net.pl:8000/pl/radiotok.ogg” ;;
“AntyRadio”) adres=”http://ant-waw-01.cdn.eurozet.pl:8602/” ;;
“Eska”) adres=”http://publish.acdn.smcloud.net:8000/t044-1.mp3″ ;;
“Eska_Party”) adres=”http://publish.acdn.smcloud.net:8000/t005-1.mp3″ ;;
“Wroclaw_Zet_Gold”) adres=”http://zgl-wro-01.cdn.eurozet.pl:8822/” ;;
“PRWroclaw”) adres=”http://stream4.nadaje.com:9240/prw” ;;
“Opole”) adres=”http://dab.radio.opole.pl:8080/1″ ;;
“Opole_Eska”) adres=”http://s3.deb1.scdn.smcloud.net/t061-1.mp3″ ;;
“24”) adres=”http://stream3.polskieradio.pl:8080/” ;;
“Opole_Rmfmax”) adres=”http://217.74.72.11:8000/rmf_maxxx” ;;
“Opole_Doxa”) adres=”http://shot.inten.pl:10000/” ;;
“RmfMax”) adres=”http://31.192.216.4:9002/” ;;
“Sud_Kepno”) adres=”http://stream2.nadaje.com:8012/” ;;
“Lodz”) adres=”http://217.113.224.166:8000/radiolodz2.ogg” ;;
“Katowice”) adres=”http://stream4.nadaje.com:11048/katowice64″ ;;
“Bydgoszcz”) adres=”http://stream.radiopik.pl:9004/” ;;
“Kampus”) adres=”http://193.0.98.66:8002/” ;;
“Zak”) adres=”http://lodz.radio.pionier.net.pl:8000/radiozak3.ogg” ;;
“Lodz_Plus”) adres=”http://publish.acdn.smcloud.net:8000/t082-1.mp3″ ;;
“ZiemiWielunskiej”) adres=”http://stream2.nadaje.com:8022/” ;;
“NaszeSieradz”) adres=”http://46.45.87.3:8000″ ;;
“House”) adres=”http://house.radioparty.pl:8010″ ;;
“Vocal”) adres=”http://vocal.trance.radioparty.pl:8025″ ;;
“Groove”) adres=”http://shoutcast.rtl.it:3040/stream/1/” ;;
“TechnoBase”) adres=”http://aacplus.tb-stream.net/listen.pls7″ ;;
“BBC”) adres=”http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-eieuk” ;;
“KPFA”) adres=”http://streams1.kpfa.org:8000/kpfa_64″ ;;
“RTE”) adres=”http://icecast2.rte.ie/radio1″ ;;
“TwitAM”) adres=”http://twit.am:80/listen” ;;
“GalwayBay”) adres=”http://91.121.0.110:8000/” ;;
“iRadio”) adres=”http://iradio.iceca.st:80/i102104″ ;;
“RtePulse”) adres=”http://icecast2.rte.ie/pulse” ;;
“Newstalk”) adres=”http://communicorp.mp3.miisolutions.net:8000/communicorp/Newstalk_low” ;;
“Today”) adres=”http://ice1.gocaster.net:80/td4″ ;;
“Bloomberg”) adres=”http://crystalout.surfernetwork.com:8001/WADK-AM_MP3″ ;;
“BussinesFM”) adres=”http://217.20.164.163:8018″ ;;
“Euronews_EN”) adres=”http://euronews-02.ice.infomaniak.ch/euronews-02-64.mp3″ ;;
“Euronews_DE”)adres=”http://euronews-03.ice.infomaniak.ch/euronews-03.mp3″ ;;
“Oe1″) adres=”http://mp3stream3.apasf.apa.at:8000” ;;
“Rtl”) adres=”http://mp3.89.0rtl.de:80/” ;;
“Vienn”) adres=”mms://apasf.apa.at/radio_wien_worldwide” ;;
“Deutchlandfunk”) adres=”http://stream.dradio.de/7/251/142684/v1/gnl.akacast.akamaistream.net/dradio_mp3_dlf_s” ;;
“Berlin”) adres=”http://www.radioberlin.de/livemp3″;;
“Bayern1″) adres=”http://br-mp3-bayern1obb-s.akacast.akamaistream.net/7/243/142690/v1/gnl.akacast.akamaistream.net/br_mp3_bayern1obb_s” ;;
“Bayern3″) adres=”http://br_mp3-bayern3_s.akacast.akamaistream.net/7/464/142692/v1/gnl.akacast.akamaistream.net/br_mp3_bayern3_s” ;;
“OE3_Hit”) adres=”http://mp3stream7.apasf.apa.at:8000″ ;;
“OE_FM4″) adres=”mms://apasf.apa.at/fm4_live_worldwide” ;;
“RockAntenne”) adres=”http://mp3.webradio.rockantenne.de” ;;
“SWRInfo”) adres=”http://swr-mp3-m-info.akacast.akamaistream.net/7/40/137140/v1/gnl.akacast.akamaistream.net/swr-mp3-m-info” ;;
“SWR1″) adres=”http://swr-mp3-m-swr1rp.akacast.akamaistream.net/7/467/137134/v1/gnl.akacast.akamaistream.net/swr-mp3-m-swr1rp” ;;
“SWRArchive”) adres=”http://swr-mp3-m-swr2raka01.akacast.akamaistream.net/7/781/137142/v1/gnl.akacast.akamaistream.net/swr-mp3-m-swr2raka01″ ;;
“Wdr2″) adres=”http://wdr-mp3-m-wdr2-koeln.akacast.akamaistream.net/7/812/119456/v1/gnl.akacast.akamaistream.net/wdr-mp3-m-wdr2-koeln” ;;
“Wdr5″) adres=”http://wdr-5.akacast.akamaistream.net/7/41/119439/v1/gnl.akacast.akamaistream.net/wdr-5” ;;
“Paloma”) adres=”http://tuner.radiopaloma.de:80/” ;;
“OE1″) adres=”http://mp3stream3.apasf.apa.at:8000” ;;
“OE1_Campus”) adres=”http://mp3stream4.apasf.apa.at:8000/” ;;
“Hrinfo”) adres=”http://www.metafilegenerator.de/HR/hrinfo/mp3/gffstream_mv_mp3_w108b.mp3″ ;;
“ANTENNE_BAYERN”) adres=”http://mp3channels.webradio.antenne.de/das-schlager-karussell” ;;
“Deutschland_Kultur”) adres=”http://stream.dradio.de/7/536/142684/v1/gnl.akacast.akamaistream.net/dradio_mp3_dkultur_s” ;;
“Welle_De”) adres=”http://c13010-ls.i.core.cdn.streamfarm.net/dwworldlive-live/13010dwrde64.mp3″ ;;
“End_Program”) exit 0;;
esac
break
done
mplayer -cache 256 $adres ; cd ~
done