');display:inline-block;width:20px}.fa-star-checked{color:orange;fill:orange}.fa-star-checked::before{content:url('data:image/svg+xml; utf8, Icon star ')}.product-button{border:none;outline:0;display:inline-block;padding:8px;color:#fff;background-color:#333;text-align:center;cursor:pointer;width:100%;text-decoration:none}.product-button:hover{background-color:#555}.product-column{float:left;width:33.3%;margin-bottom:16px;padding:0 8px}.product-column:last-child{padding:0 0 0 8px}.product-column:first-child{padding:0 8px 0 0}@media(max-width: 650px){.product-column{width:100%;display:block;padding:0}.product-column:last-child{padding:0}.product-column:first-child{padding:0}}.product-card{-webkit-transition:.3s;transition:.3s;background-color:#f1f1f1}.product-card:hover{box-shadow:0 8px 12px 0 rgba(0,0,0,.2)}.product-header{text-align:center}.product-price{text-align:center;color:#bd081c;font-weight:bold;font-size:120%}.product-container{padding:0 16px}.product-container::after,.product-row::after{content:"";clear:both;display:table}.product-rating{position:absolute;z-index:100}div.product-card-image{width:100%;height:200px;background-repeat:no-repeat;background-size:80% auto;background-position:center 25px;padding:10px 16px 0px 16px;overflow:hidden}.contact-form{padding:20px 20px;margin:0px 0px 20px 0px;border-radius:10px;border:1px solid #ccc}.contact-form fieldset{border:0px;padding:0px;margin:0px}.contact-message-box{margin:10px 0px 0px 0px}.contact-message{width:100%;height:150px;resize:vertical;border-radius:6px;border:1px solid #ccc;padding:10px}.contact-label{padding:10px 20px 10px 0px}.contact-email{max-width:100%}.contact-form-header{margin:0px 0px 20px 0px;font-size:larger;font-weight:bold}.contact-submit{text-align:right;margin-top:20px}.skyscrapper{display:inline-block;width:300px;height:600px}.tab{overflow:hidden;border:1px solid #ccc;background-color:#f1f1f1}.tab button{background-color:inherit;float:left;border:none;outline:none;cursor:pointer;padding:14px 16px;transition:.3s}.tab button:hover{background-color:#ddd}.tab button.active{background-color:#ccc}.kategorie{border:1px solid gray;padding:0px 10px}.tabcontent{display:none;padding:6px 12px;border:1px solid #ccc;border-top:none}.seo{background-color:#ffffe0}.article-addonInfo{margin-bottom:10px}.article-tags::before{content:url('data:image/svg+xml; utf8, Tagy ');width:14px;margin:0px 5px 0px 10px;display:inline-block}.article-autor::before{content:url('data:image/svg+xml; utf8, Autor ');width:14px;margin:0px 5px 0px 10px;display:inline-block}.article-pub-date::before{content:url('data:image/svg+xml; utf8, Publikovano ');width:14px;margin:0px 5px 0px 0px;display:inline-block}.green{color:#4caf50}.red{color:red}.yellow{color:#ff0}.blue{color:#55acee}.hljs{display:block;overflow-x:auto;padding:.5em;color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#a626a4}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta-string{color:#50a14f}.hljs-built_in,.hljs-class .hljs-title{color:#c18401}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#986801}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#4078f2}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-link{text-decoration:underline}.emoji{font-family:apple color emoji,segoe ui emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,segoe ui symbol}#search-progress{width:100%;background-color:#fed}#search-bar{width:0%;height:30px;background-color:#bd081c}#search-bar-text{text-align:center;width:100%}.textarea-small{width:100%;height:100px;font-size:1rem;line-height:1.5;padding:10px}.textarea-middle{width:100%;height:200px;font-size:1rem;line-height:1.5;padding:10px}.textarea-large{width:100%;height:400px;font-size:1rem;line-height:1.5;padding:10px}th{background-color:#bd081c;color:#fff}form th{background-color:#bd081c;color:#fff}.form-label{float:left;padding:.375rem 0px}.form-label-checkbox{padding:.375rem 0}.form-submit{background-color:#bd081c;color:#f2f2f2}.settings-header{background-color:#bd081c;color:#fff;margin-top:20px}.form-row{clear:both}.form-row-description{clear:both;font-size:small;margin-bottom:10px}.mandatory-fail{border:2px solid red}.small{font-size:small}.gravatar{margin-right:10px}.gravatar img{vertical-align:middle;border-radius:50%}@media screen and (min-width: 1200px){.max-width{margin-left:-600px;left:50%}.max-width-without-padding{margin-left:-600px;left:50%}}.progress-container{width:100%;height:5px;clear:both}.progress-bar{height:5px;background:#4caf50;width:0%}.td-wrap{word-wrap:anywhere;word-break:break-all}.sortable-table{width:100%}.sortable-table th{cursor:pointer}.sortable-table tr{border:1px solid #300}.error{background-color:pink}
Pár poznatků o Linuxu :-) V průběhu bádání nad Raspberry Pi a Turrisem jsem přišel na několik věcí, které mohou usnadnit nebo zpříjemnit používání Linuxu přes SSH nebo terminál.
SSH welcome message - Message of the day
Pokud se přihlašujete přes SSH na nějaký vzdálený Linuxový server, tak může být hezké pokud Vás tento server hezky přivítá a řekne kdo je. Standardně prohlásí nic neříkající stále stejné hlášení a nic víc.
Pokud toto hlášení chcete změnit je nutné upravit soubor /etc/motd .
sudo vim /etc/motd
Do tohoto souboru pak můžete přidat například nějaký hezký ASCII art nebo pozdrav.
Pro ASCII art je možné využít některý z mnoha generátorů. Já jsem použil Text to ASCII Art Generátor .
Není ale nutné se omezovat jen na statické texty.
How To Customize Ubuntu’s Message of the Day
Používání textového editoru VIM
Ukončení bez uložení se provádí pomocí :q!
Ukončení s uložením se provádí pomocí :wq
Vložení textu ze stránky se provádí v editačním režimu (stisk Insert) pomocí kombinace kláves Ctrl + Shift + V
Výběr několika řádků (bloku) Shift + V
Jak vyhledat všechny soubory obsahující nějaký text
grep -rnw '/path/to/somewhere/' -e "pattern"
Restart serveru
sudo /sbin/reboot
Prohození tlačítek myši
xinput list
Vypíše všechna připojená zařízení a je potřeba najít správnou myš (v mém případě 24).
xinput list 24
Vypíše nastavení konkrétního zařízení.
xinput set-button-map 24 1 2 3 4 5 6 7 9 8 10 11 12
Správná button mapa pro mojí myš.
1 = left button
2 = middle button (pressing the scroll wheel)
3 = right button
4 = turn scroll wheel up
5 = turn scroll wheel down
6 = push scroll wheel left
7 = push scroll wheel right
8 = 4th button (aka browser backward button)
9 = 5th button (aka browser forward button)
http://xahlee.info/linux/linux_swap_mouse_buttons.html
Linux , Zkušenosti
Jsem programátor, horolezec a tak trochu FlexiBee fanatik :-). Na CharlieBlogu sepisuji své nápady a poznatky už od roku 2006.