Материал из EPIRB Wiki
Перейти к: навигация, поиск

Linux - шпаргалка по командам

Интернет-радио

Сначала установить mplayer

> sudo apt install mplayer

===
Name   : Drum and Bass) Uturn Radio
Genre  : Dubstep, Tripstep, Drum And Bass
Website: https://www.uturnradio.com

>mplayer http://listen-ca-relay.uturnradio.com:80/drum_and_bass_32 -cache 1920 

===
Name   : HearMe - Smooth Ambient
Genre  : Ambient
Website: http://HearMe.fm

>mplayer http://hearme.fm:8637/stream -cache 1920

===
Name   : Montekidlo radio.  Dark Ambient Jazz. In memory of Laura Palmer
Genre  : darkjazz dark jazz ambient
Website: http://radio.montekidlo.org.ua

>mplayer http://radio.montekidlo.org.ua:8000/dark_jazz -cache 1920

Форматировать флешку

найти -> отмонтировать -> форматнуть

sudo umount /dev/sdg1

форматировать в FAT32:
sudo mkdosfs -I -F 32 /dev/sdg1

netcat

sudo apt-get remove netcat-openbsd
sudo apt-get install netcat6

прослушивать UDP на порту 3333
nc -l -u -p 3333

SSH

Сгенерировать ключ
ssh-keygen

Скопировать ключ на сервер
ssh-copy-id -p22 user@server

Отправить файл на сервер
scp path/myfile user@server:/full/path/to/new/location/

Скачать файл с сервера
scp user@server:/full/path/to/file /path/to/put/here

Soks5 прокси с компрессией
ssh -D8080 -p22 -C user@server