{"id":923,"date":"2016-01-02T15:00:34","date_gmt":"2016-01-02T15:00:34","guid":{"rendered":"http:\/\/malemuk.com\/olofee\/?p=923"},"modified":"2016-01-02T15:01:07","modified_gmt":"2016-01-02T15:01:07","slug":"linux-tips","status":"publish","type":"post","link":"https:\/\/malemuk.com\/olofee\/linux-tips\/","title":{"rendered":"Linux tips"},"content":{"rendered":"<p>Tips for Ubuntu Linux. May work on other distros.<\/p>\n<p><strong>Basic shell commands (run from\u00a0an xterm terminal)<\/strong><\/p>\n<p><code>man commandX<\/code> for the help manual of a command named commandX<br \/>\n<code>ls<\/code> for the list of files in the folder<br \/>\n<code>pwd<\/code> location of the folder you&#8217;re in<br \/>\n<code>find<\/code> to look for a given file name<br \/>\n<code>sudo<\/code> to run a command as an adminitrator<br \/>\n<code>sudo apt-get app1<\/code> to install an application called app1<br \/>\n<code>sudo dpkg -i package.deb<\/code> to install a deb package<br \/>\n<code>df<\/code> to see disk usage<br \/>\n<code>ufw<\/code> to manage a netfilter firewall<\/p>\n<p><strong>exFAT support<\/strong><\/p>\n<p>In order to be able to read from SDXC cards:<\/p>\n<p><code>$ sudo apt-get install exfat-fuse exfat-utils<\/code><\/p>\n<p><strong>VPN<\/strong><br \/>\n[tested with ubuntu 9.10]<\/p>\n<p>install vpnc<\/p>\n<p><code>$ sudo apt-get install vpnc<\/code><\/p>\n<p>create a configuration file in \/etc\/vpnc\/myconfig.conf, where myconfig may be any name you want. The file should look like this<br \/>\n<code><br \/>\nIPSec gateway gateway.to.use<br \/>\nIPSec ID groupname<br \/>\nIPSec secret passwordforgroup<br \/>\nXauth username myusername<br \/>\nXauth password mypassword<br \/>\n<\/code><br \/>\nRun vpnc<\/p>\n<p><code>$ sudo vpnc myconfig<\/code><\/p>\n<p>Stop vpnc<\/p>\n<p><code>$ sudo vpnc-disconnect<\/code><\/p>\n<p><strong>Search for words in man pages<\/strong><\/p>\n<p>As in vi, press \/ to search for a keyword, then type the search pattern and Enter to search. Then n to search forward and N to search backwards.<\/p>\n<p><strong>Change display configuration from the command line<\/strong><\/p>\n<p>Find out what your displays are called by typing:<\/p>\n<p><code>$ xrandr<\/code><\/p>\n<p>In my case the laptop display is called LVDS and the external screen is called VGA-0<\/p>\n<p>To turn off the laptop display and turn on the external screen, I simply write:<\/p>\n<p><code>$ xrandr --output LVDS --off --output VGA-0 --auto<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tips for Ubuntu Linux. May work on other distros. Basic shell commands (run from\u00a0an xterm terminal) man commandX for the help manual of a command named commandX ls for the list of files in the folder pwd location of the folder you&#8217;re in find to look for a given file name sudo to run a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-923","post","type-post","status-publish","format-standard","hentry","category-computer-stuff"],"jetpack-related-posts":[{"id":910,"url":"https:\/\/malemuk.com\/olofee\/emacs-tips\/","url_meta":{"origin":923,"position":0},"title":"Emacs tips","date":"December 31, 2015","format":false,"excerpt":"Essential shortcuts M-: META key (ALT on most keyboards) C-: CONTROL key C-x C-f : open file C-x b : switch to buffer C-x k : kill buffer C-s : search text forward C-r : search text backward C-+ \/ C-- : Zoom in\/out C-space: mark set (start of the\u2026","rel":"nofollow","context":"In \"Computer stuff\"","img":{"src":"","width":0,"height":0},"classes":[]},{"id":753,"url":"https:\/\/malemuk.com\/olofee\/create-bookmarks-in-pdf\/","url_meta":{"origin":923,"position":1},"title":"pdftk tips","date":"November 9, 2015","format":false,"excerpt":"Number pages Source:\u00a0http:\/\/cazencott.info\/index.php\/post\/2015\/04\/30\/Numbering-PDF-Pages Create a PDF that contains only page numbers. In numbers.tex: \\documentclass[12pt,a4paper]{article} \\usepackage{multido} \\usepackage[hmargin=.8cm,vmargin=1.5cm,nohead,nofoot]{geometry} \\begin{document} \\multido{}{31}{\\vphantom{x}\\newpage} \\end{document} (where 31 is your total number of pages). Then create numbers.pdf pdflatex numbers.tex Finally, stamp your file with page numbers: pdftk file.pdf multistamp numbers.pdf output single_document_numbered.pdf Create bookmarks Instructions for pdftk\u2026","rel":"nofollow","context":"In \"Computer stuff\"","img":{"src":"","width":0,"height":0},"classes":[]},{"id":137,"url":"https:\/\/malemuk.com\/olofee\/alpine-configuration\/","url_meta":{"origin":923,"position":2},"title":"Alpine configuration","date":"October 23, 2010","format":false,"excerpt":"Alpine is to email software what Emacs is to text-editing software. I love it. First, create a collection list -- I think you may skip this part if you're using pop instead of imap: S L A Nickname: any nickname Server: my.server.net:port\/ssl\/user=my_username If you're not using ssl, write tls instead.\u2026","rel":"nofollow","context":"In \"Computer stuff\"","img":{"src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/posts\/923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/comments?post=923"}],"version-history":[{"count":3,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/posts\/923\/revisions"}],"predecessor-version":[{"id":936,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/posts\/923\/revisions\/936"}],"wp:attachment":[{"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/media?parent=923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/categories?post=923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/tags?post=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}