pastebin

Paste Search Dynamic
Recent pastes
/commands.txt
  1. =====================================================================
  2. List partitions in /dev/* (block-devices) and *.iso (files)
  3. =====================================================================
  4. sudo parted -l          #<-- list all partitions and types (including lvm)
  5. #mount partition /sdb1  on /dev/sdb
  6. sudo mount /dev/sdb1  X1-linux-480G-M2    #<-- ubuntu
  7.  
  8. #fedora
  9. #mount /dev/fedora/root  X1-linux-480G-M2/root
  10. #mount /dev/fedora/home  X1-linux-480G-M2/home
  11.  
  12.  
  13. =====================================================================
  14. How install packages under fedora
  15. =====================================================================
  16. dnf install texlive-"keyvalue"
  17. eg.  dnf install texlive-skull
  18.  
  19. =====================================================================
  20. How to edit wikipages to replace ${ ... }$ with \( ... \)
  21. =====================================================================
  22. gvim macros to replace {$ ... $} with \( ... \ )  (no extra spaces)
  23. 1:  g/{\$/s//\\(/g
  24. 2:  g/\$}/s//\\)/g
  25.  
  26. =====================================================================
  27. fix $ in URL
  28. =====================================================================
  29.  \urldef{\myurl}\url|http://something.with.%.is.ok.here.org|
  30.  \begin{document}
  31.  \myurl
  32.  \end{document}
  33.  
  34. =====================================================================
  35. =====================================================================
  36. libreoffice writer openoffice write protection: Turn off
  37. ======================================================================
  38. I solved my problem with protected forms by unsetting an option in the Options dialog:
  39. Tools > Options ... > LibreOffice Writer > Compatibility > unclick "Protect form " line.
  40.  
  41. ======================================================================
  42. Submitting expenses
  43. ======================================================================
  44. 1) Use the UIUC VPN if outside univ
  45. 2) go to URL a and login. Their are two steps: i) Submit reciept via Lisa; ii) submit for approval
  46. a) https://travelexpense.admin.uillinois.edu/jetspeed/
  47. b) https://www.obfs.uillinois.edu/payments/payables-processing-status <--- info
  48. Possible help: Office of Business and Financial Services (OBFS)
  49.  
  50. To  look over and submit your expense report:
  51. Log in to your TEM at http://www.obfs.uillinois.edu/tem-resources/
  52. Then:
  53. 1. Click the pencil next to the # ER00xxxxxx and look it over, if you agree, hit the submit button.
  54. 2. This action is your electronic signature on the affidavit that signifies you verify the items included are true and you approve the ER.
  55. 3. The column ā€œActivity nameā€¯ should change from ā€œER Createā€¯ to ā€œ ER Hold Receiptsā€¯ once successfully submitted.
  56.  
  57. ======================================================================
  58. etc/apt/sources.list
  59. ======================================================================
  60. this contains the default list of servers. If there is a bad server on the list
  61. you will get an error. If it is a bad ppa. To fix this remove that server from the default source.list
  62. Here is what was causing the problem (not commented out)
  63.  #This is causing an error when I try to update softwares. Dont do this again
  64.  #JBA: https://www.maketecheasier.com/easily-mount-your-iphone-as-an-external-drive-in-ubuntu/
  65. --> #deb http://ppa.launchpad.net/jonabeck/ppa/ubuntu bionic main
  66. --> #deb-src http://ppa.launchpad.net/jonabeck/ppa/ubuntu bionic main
  67.  
  68. Removing these two lines fixed the problem.
  69. https://askubuntu.com/questions/879064/failed-to-fetch-http-ppa-launchpad-net
  70.  
  71.  
  72. ======================================================================
  73. bash
  74. ======================================================================
  75. ls -shS  sort by size
  76.  
  77. ======================================================================
  78. keyboard monitor programs (https://superuser.com/questions/248517/show-keys-pressed-in-linux)
  79. ======================================================================
  80. key-mon (great)
  81. xev     (too complex)
  82. showkey -a [-h -s -k -V] (Ctrl+D to terminate) (Ugly)
  83.  
  84. ======================================================================
  85. Confure X1-Extreme thinkpad
  86. ======================================================================
  87. ~/Admin/X1-Extreme-suspend.txt
  88. Video not working
  89. audio sometimes fails
  90.  
  91. ======================================================================
  92. systemctl COMMAND
  93. systemd-suspend.service
  94. ======================================================================
  95. systemctl - Control the systemd system and service manager
  96.  man systemctl for details
  97. Examples:
  98. systemctl systemd-suspend.service
  99. systemctl --dry-run suspend
  100. man systemd-suspend.service <-- suspends
  101.  
  102. ======================================================================
  103. gnome-terminal hotkey
  104. alt-w xterm     not working
  105. ======================================================================
  106. For unknown reasons, alt+x fails after suspend/resume
  107. (alt+X i.e., alt+Shift+x) <--- this works and is a reasonable alternative
  108.  
  109. Fix: go to "system settings/Keyboard/Launchers/Launch terminal"
  110. define new key as "Alt+shift+x"
  111.  
  112. ======================================================================
  113. convert HEIC apple compressed jpg file
  114. ======================================================================
  115. Example: heif-convert IMG_1605.HEIC IMG_1605.jpg
  116.  
  117. ======================================================================
  118. Mount iphone  (not fully tested nor working)
  119. ======================================================================
  120. https://www.maketecheasier.com/easily-mount-your-iphone-as-an-external-drive-in-ubuntu/
  121.  
  122. gvim gedit /etc/apt/sources.list
  123.  
  124. Add at bottom:
  125. http://ppa.launchpad.net/jonabeck/ppa/ubuntu bionic main deb-src
  126. http://ppa.launchpad.net/jonabeck/ppa/ubuntu bionic main
  127.  
  128. From the command line:
  129. sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F0876AC9
  130. sudo apt-get update
  131. sudo apt-get install ifuse
  132.  
  133. ======================================================================
  134. Print out favorite-apps
  135. ======================================================================
  136. gsettings get org.gnome.shell favorite-apps
  137. ['ubiquity.desktop', 'firefox.desktop', 'thunderbird.desktop', 'org.gnome.Nautilus.desktop',
  138. 'rhythmbox.desktop', 'libreoffice-writer.desktop', 'org.gnome.Software.desktop',
  139. 'yelp.desktop', 'ubuntu-amazon-default.desktop']
  140.  
  141. 'gsettings set' will allow you to change it.
  142.  
  143. ======================================================================
  144. Swap ctrl and capslock
  145. ======================================================================
  146. this swaps after login:
  147. I want to change this as root, and jba
  148. sudo vi /etc/default/keyboard
  149.  XKBOPTIONS="ctrl:swapcaps"
  150.  
  151. ======================================================================
  152. upgrade
  153. ======================================================================
  154. stamp=/var/lib/ubuntu-release-upgrader/release-upgrade-available
  155. /usr/lib/ubuntu-release-upgrader/do-partial-upgrade
  156.  
  157. update to the latest packages for the present release:
  158.  sudo aptitude full-upgrade
  159.  sudo do-full-upgrade (latest LTS)
  160.  
  161. OR the same thing in two commands:
  162. sudo apt-get update
  163. sudo apt-get upgrade
  164.  
  165. 'sudo do-release-upgrade'
  166. to upgrade to NEXT LTD release
  167.      'update-manager'  graphical method
  168. modify margins on pdfbook2 defaults -i40 -o150 -t30 -b 30 --signature=4*m
  169. pdfbook2 -o 20 -i 50
  170.  
  171.  
  172. =========================================================================
  173. apply.medicine.illinois.edu/manage/
  174. =========================================================================
  175.  
  176. =========================================================================
  177. printer cheap cartage
  178. =========================================================================
  179. https://www.sundatasupply.com/
  180.  
  181. =========================================================================
  182. Modify dir to be 755, but not files:
  183. =========================================================================
  184. find . -type d -exec chmod 755 {} \;  # chmod 755 all directories in "."
  185. find . -type l -exec ls -1 {} \;      # ls -1 all links in "."
  186. ----------------------------------------------------------------------------------
  187. legal "-type|-xtype" arguments  (e.g.:  -type d,l, search for symlinks to directories)
  188.  d      directory
  189.  p      pipe
  190.  r      regular file
  191.  l      sym-link
  192.  
  193. legal "actions"
  194.         -delete
  195.         -exec COMMAND {} ;
  196.         -print
  197.         -fprint
  198.         -ls
  199.         -ok COMMAND  ;                  ask
  200.  
  201. legal "OPERATORS"
  202.         ... see man page for file
  203. ----------------------------------------------------------------------------------
  204.  
  205. =========================================================================
  206.  https on UIUC servers:
  207. =========================================================================
  208. ssh engr: --> webhost.engr...
  209. http://jontalle.web.engr.illinois.edu/          <-- this works (Prefered)
  210. http://webhost.engr.illinois.edu/~jontalle/     <-- this works
  211. Both give:
  212.         Parent Directory                -
  213.         MISC/   2018-07-15 07:01        -
  214.         Private/        2018-05-12 05:54        -
  215.         Public/         2018-05-30 14:51        -
  216.         cgi-bin/        2015-12-22 12:19        -
  217.         uploads/        2018-07-16 20:13        -
  218.  
  219. -------------------------------------------------------------------------
  220. ssh engr: jontalle@cpanel3:~$ ls
  221.  
  222. access-logs      etc                        Private      tmp
  223. Admin            gvimrc.local               Public       uploads
  224. Ali.pub          jinli2-131x180.jpeg        public_ftp   var
  225. Allen91b.pdf     Keller596Report_May18.pdf  public_html  www
  226. anInvitation.17  logs                       README.txt
  227. cache            mail                       ssl
  228. DOTbashrc        perl5                      temp
  229. =========================================================================
  230. SCP Examples:
  231. scp FILENAME engr:uploads/537/Lectures
  232.  
  233.  
  234. =========================================================================
  235. ssh to amo.engr....
  236. =========================================================================
  237. ssh amo: auditorymodels@auditorymodels.web.engr.illinois.edu [~]# ls
  238. access-logs  etc   mail   pmwiki_upgrade  public_html  ssl  var
  239. cache        logs  perl5  public_ftp      README.jba   tmp  www
  240.  
  241. URLs for amo == wiki:
  242. https://auditorymodels.org/
  243. auditorymodels.web.engr.illinois.edu/
  244. wiki: [[http://auditorymodels.web.engr.illinois.edu/index.php?n=Courses.ECE298JA-F15|ECE298-JA F2015]]
  245. Equivilent URLs
  246.   [[auditorymodels.org?n=Courses.ECE298JA-F15|ECE298-JA F2015]]
  247.   [[auditorymodels.org?n=Courses.ECE298JA-F17]]
  248.   [[auditorymodels.org/index.php?n=Courses.ECE298JA-F17]]
  249.   [[jontalle.web.engr.illinois.edu/uploads/298.17/ECE298JA-V3.00.pdf]]
  250.  
  251.  
  252. ======================================================================
  253. VIM: indent going crazy in vi: a result of installing gvim-gtk3 and something else, that turned on "set inde"
  254. ======================================================================
  255. http://vimdoc.sourceforge.net/htmldoc/options.html
  256. The following worked: (http://vim.wikia.com/wiki/How_to_stop_auto_indenting)
  257.  
  258. ~/.vimrc
  259. set inde=
  260.  
  261. inde is the short form for indentexpr, which when editing a tex file is set to
  262.   indentexpr=GetTeXIndent()
  263. This does crazy indenting that I dont want.
  264.  
  265. The autoindent issues only applies to tex files!
  266.  
  267. ======================================================================
  268. synclient: man synaptics (control keypad settings)
  269. ======================================================================
  270. https://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html  <-- full manual
  271. Default settings for X260 are in /home/jba/Work/Admin/Admin/synclient.settings
  272. How to use with Thinkpad:
  273. apt install synaptic (no s)
  274.  
  275. /usr/bin/synclient allows one to modify the synaptics driver, in great detail
  276. man synclient
  277. man 4 synaptics: gives details on options
  278.  
  279. synclient [-l] gives list of options (variables):
  280. Example:
  281. Parameter settings:
  282.     LeftEdge                = 1545
  283.     RightEdge               = 5399
  284.     TopEdge                 = 1333
  285.     BottomEdge              = 4521
  286. ... etc
  287.  
  288. synclient
  289.  
  290. This worked:
  291. synclient     AreaRightEdge=4000  (4500 may be better)
  292. synclient     AreaLeftEdge=3000
  293.  
  294. This number is defined from the left (not right)
  295. 2000 90%
  296. 4000 55%
  297. 4500 30%
  298. 5000 20%
  299. 5500 5%
  300. 6000 0%
  301. AreaLeftEdge
  302. 2000 10%
  303. 3000 35%
  304.  
  305. https://wiki.archlinux.org/index.php/Talk:Touchpad_Synaptics
  306. ftp://www.x.org/pub/X11R7.5/doc/man/man1/synclient.1.html
  307. man page for synaptics
  308. https://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html
  309. https://askubuntu.com/questions/553791/official-documentation-of-synclient-parameters
  310. https://www.techrepublic.com/article/tweak-your-touchpad-to-taste-in-linux/
  311.  
  312. Below seems to be way out of date:
  313. https://askubuntu.com/questions/290009/how-do-i-make-my-synclient-settings-stick
  314. /usr/share/X11/xorg.conf.d/70-synaptics.conf
  315.  
  316. Section "InputClass"
  317.   Identifier "touchpad catchall"
  318.   Driver "synaptics"
  319.   MatchIsTouchpad "on"
  320.   MatchDevicePath "/dev/input/event*"
  321.  
  322. #  Option "RTCornerButton" "0"   <This removes paste function
  323.   Option AreaRightEdge=4000             <---- Add this
  324.  
  325. EndSection
  326.  
  327.  
  328. ======================================================================
  329. Unity vs GNOME on 18.04
  330. ======================================================================
  331. https://itsfoss.com/use-unity-ubuntu-17-10/
  332.   How to Switch from GNOME to Unity in Ubuntu 18.04
  333. Package alternatives:
  334.  (sudo) apt install ubuntu-unity-desktop  (display mannager alternatives: gdm3 or lightdm)
  335.   apt install unity  (fully compatible with ccsm (compiz)
  336.  
  337. Videos: from It's Foss linux blog
  338. https://www.youtube.com/watch?v=fr_hOfTNof0
  339. https://www.youtube.com/watch?v=ynA_zv2eRzE  <-- 21 great ideas to set up system
  340. https://www.youtube.com/watch?v=ynA_zv2eRzE
  341.  
  342. Back up from BACKUP.../near/
  343. Example: ass root: cd /home
  344.    sudo rsync -aP --usermap=jba:jba --groupmap=admin:jba jba /home/   <-- contents of /home/jba -> /home/jba
  345.    sudo rsync -aP --usermap=jba:jba --groupmap=admin:jba jba/ /home/jba/        <-- should be identical
  346.  cd /home/jba/
  347.    sudo rsync -aP --usermap=jba:jba --groupmap=admin:jba * /home/jba/
  348.  
  349. ======================================================================
  350. Firefox webpush:
  351. ======================================================================
  352.   https://support.mozilla.org/en-US/kb/push-notifications-firefox?as=u&utm_source=inproduct
  353. From firefox: click on: ||| -> security -> notifications -> Settings
  354.  
  355. ======================================================================
  356. How to make a github package:
  357. https://osf.io/   (open science framework)
  358. https://github.com/cljsjs/packages/wiki/Creating-Packages
  359. ======================================================================
  360.  
  361. ======================================================================
  362. Had problem with home printer
  363. ======================================================================
  364. ran hp-doctor as jba and this installed some required drivers.
  365.  http://hplipopensource.com/hplip-web/index.html
  366.  
  367. ======================================================================
  368. How to find bad simlinks
  369. ======================================================================
  370. find . -type l -xtype l
  371.  
  372. To resolve simlinks to their source:   readlink -f filename
  373.  
  374. ===================================================================
  375. dconf-editor
  376. ===================================================================
  377. Edit gnome apps
  378.  
  379. ======================================================================
  380. PDF Tools: pdftk, pdfjoin, qpdf, fix-qdf, pdfpages
  381. ======================================================================
  382. qpdf adds/removes passwords, and can manipulate content freely:
  383.   /usr/share/doc/qpdf/qpdf-manual.pdf
  384. fix-qdf edits pdf files (see manual: file:///usr/share/doc/qpdf/qpdf-manual.pdf)
  385. This encrypted the input pdf to junk.pdf; both PWs worked
  386. jba@x260:~/298/anInvitation.15$ qpdf --encrypt jont 325345745 256 -- anInvitation.pdf junk.pdf
  387.  
  388.  
  389. pdftk           Manipulates pdf files in many ways
  390.         Extract pages from a pdf file, and output out.pdf
  391. Examples:
  392. pdftk name.pdf cat 2-20 50-end output out.pdf
  393. pdftk can extract single pages of a pdf document and run OCR on the output, and then merge
  394.  
  395. More examples:
  396. /home/jba/Desktop/Books/Technical/GreenbergSections/Split.sh
  397. >  pdftk ./Greenberg-AdvancedEngineeringMathematics.98.pdf cat 1-24 output 0-TOC+Preface.pdf
  398. >  pdftk TOC+Preface.pdf ODEs.pdf LinAlg.pdf Index.pdf output Greenberg-AdvEngMath.pdf
  399.  .........................................
  400.  
  401. join some files:
  402. pdftk Exam1-sol-v1.35.pdf Exam2-F17-sol.pdf Exam3-F17-sol.pdf output junk.pdf
  403.  
  404. Break file appart
  405. Split.sh <-Best pdftk method:
  406.         /usr/local/MM/BOOKS/Technical/GreenbergSections/Split.sh
  407. Output pages from in-file.pdf
  408.   pdftk in-file.pdf cat 1-20,30-31 output out-1-20.30-31.pdf
  409.   pdftk in-file.pdf cat 1-endeast output out-east.pdf   <--rotate paes 1-end by 90 degrees
  410. followed by poster command:
  411.   pdfnup --nup 4x3  Keynote.pdf
  412. Summary.tex <-- OK      LaTeX method:
  413.          /usr/local/UIUC/ECE298JA.15/Admin/ECE298JA-Admin/SubmittedJan21.17/Summary.tex
  414.  
  415. Latex processor of pdf files: pdfpages.pdf
  416. https://ctan.org/pkg/pdfpages?lang=en
  417. pdfpages command options format::
  418. 1)  \usepackage[āŸØoptionsāŸ©]{pdfpages}
  419. 2)  \includepdf[āŸØkey=val āŸ©]{āŸØfilenameāŸ©} Example:
  420.  
  421. Examples:
  422. 537.F18 final summary report:
  423.          /home/jba/537/Admin/FinalReport.F18/MakeReportSummary.tex
  424. Usage:
  425.         pdflatex MakeReportSummary
  426.  
  427. Typical pdfpages command: \includepdf[lastpage=2,pages={1,3}]{name.pdf}
  428.         lastpage=2 is only necessary if your using pdfpages with latex and create a .dvi file
  429.  
  430. Man page: doesnt exist.
  431.  evince ~/Admin/pdfpages.pdf
  432.  
  433. ===================================================================
  434. OCR programs to use on pdf files
  435. ===================================================================
  436. gcan2pdf: mulilevel program to scan and convert to verious formats, along with OCR
  437. TO use this, run gscan2pdf, then open the file, and then from tools/ocr do the OCR output.
  438. ======================================================================
  439. The man page is extensive
  440.  
  441. This seems to be the "cats-meow"
  442. It also uses
  443. gocr
  444. cuneiform
  445. tesseract
  446. sane
  447.  
  448. http://gscan2pdf.sourceforge.net/
  449. https://help.ubuntu.com/community/OCR
  450.  
  451. use gscan2pdf to OCR these files. This must be done manually, one file at a time.
  452. pdfocr.ru       Ruby shell script
  453. ocrodjvu        ocr of djvu files
  454. djvu2hocr       ?
  455. hocr2djvused    ?
  456. tesseract
  457. ocrad
  458. gocr
  459.  
  460. Example: ~/Books/Technical/Greenberg/
  461.  
  462. ------------------------------------------------------------------------
  463. ocr engine: tesseract
  464. ------------------------------------------------------------------------
  465. https://onetransistor.blogspot.com/2015/12/ocr-searchable-pdf-linux.html
  466.  1. Tesseract & PDFsandwich
  467. Tesseract is the first and currently the only OCR engine for Linux that supports direct searchable PDF output (starting from version 3.03). The only problem is that it only accepts image input. So you can't feed it a PDF document. You can install it on APT based Linux (like Ubuntu) using the following command:
  468.  
  469. sudo apt-get install tesseract-ocr tesseract-ocr-all
  470.  
  471. If you have a bunch of images resulted from a scanner, you can make a simple script that will OCR each image into single page searchable PDF then join pages into a single PDF document.
  472. ...
  473. It is worth of consideration that Tesseract (3.03 version) is able to build searchable PDF file from images, on its own. This command is sufficient:
  474.  
  475. tesseract -l eng file.tif file pdf
  476.  
  477. If there are multiple images to be OCR-ed they may be joined into one file using tiffcp. There would be example command:
  478.  
  479. tiffcp *.tif file.tiff
  480.  
  481. Afterwards, output file may be processed with Tesseract.
  482.  
  483. uiuc wireless network:
  484. click on no cert require,
  485. give netid and uiuc password
  486.  
  487.  
  488. ======================================================================
  489. Servers under the care and feeding of JBA
  490. ======================================================================
  491. check for ubuntu release
  492. https://wiki.ubuntu.com/Releases
  493.  
  494. System I sysop:
  495. xear JBA personal laptop                Ubuntu 14.04.1 LTS; x220 -> x250 -> x260
  496.   x220 ordered Nov 5, 2011 (~/Receipts/x220Reciept.pdf)
  497. sear 1404 basement server               Ubuntu 12.04.4 LTS?;
  498. auditorymodels.org: Mimosa jba's personal system
  499. dear Lab system         svana, bear     Ubuntu 12.04.5 LTS; 130.126.118.75; 10.42.0.1
  500. svana (booth-sear)                      Debian-8ubuntu1.5;  10.42.0.68
  501. bear Lab sysem via dear
  502. bear Lab via dear (cliston's office)    Ubuntu 12.04.5 LTS; 130.126.118.12; 10.42.0.1
  503. ebony Mimosa server                     Ubuntu 12.10;       173.161.115.242; 192.168.168.1
  504. maple Mimosa internal server
  505. kapok Allen (ancient server)
  506.  
  507. I need to be sure they all have LTS systems. If they get out of release,
  508. they cannot be upgraded. This has happened to ebony.
  509. ..................................................................
  510. ><><  Details ><><
  511. ..................................................................
  512. x260: jba personal computer, following the loss of xear (x250) in Oakland
  513. DATE:           Feb 2016-
  514. Desc:           Ubuntu 16.04 LTS
  515. Release:        16.04 xenial
  516. Processor:      Intel Core i5-6300U 2.4GHzx4
  517. Graphics:       Intel HD Graphics 520 (Skylake GT2)
  518. OS:             64-bit
  519. Disk:           485.9 GB SST
  520.  
  521. near:           ???
  522. Maybe this was the name after xear was stolen?
  523.  
  524. xear: jba's personal x260 computer
  525. jba@xear:~$ lsb_release -a
  526. Distributor ID: Ubuntu
  527. Description:    Ubuntu 18.04.1 LTS
  528. Release:        18.04
  529. Codename:       bionic
  530.  
  531. DATES:         
  532. Description:    Ubuntu 14.04.1 LTS
  533. Release:        14.04
  534. Codename:       trusty
  535.  
  536. sear: 1404 Sunny acres Rd, basement
  537. sear: Ubuntu 12.04.4
  538.  
  539. dear: lab computer (moved from Sandeeps office)
  540. root@dear:~# lsb_release -a
  541. New release '14.04.1 LTS' available.
  542. Run 'do-release-upgrade' to upgrade to it.
  543. Description:    Ubuntu 12.04.5 LTS
  544. Codename:       precise
  545.  
  546. svana: lab-booth
  547.  
  548. hear: In cliston's office: moved from Song's office
  549. hear: Ubuntu 12.04.5
  550. New release '14.04.1 LTS' available.
  551. Run 'do-release-upgrade' to upgrade to it.
  552. Description:    Ubuntu 12.04.5 LTS
  553. Codename:       precise
  554.  
  555. EBONY:
  556. jba@ebony:~$ lsb_release -a
  557. Description:    Ubuntu 12.10
  558. Release:        12.10
  559. Codename:       quantal
  560.  
  561. Ck for vulnerable bash shell:
  562.  env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
  563.  
  564.  
  565. ======================================================
  566. matlab startup file sets the default font size, etc.
  567. ======================================================
  568. /usr/local/2015a/toolbox/local/matlabrc.m
  569. LaTeX symbols:
  570. https://www.mathworks.com/help/matlab/ref/xlabel.html
  571.  
  572. ======================================================
  573. JAVASCRIPT
  574. ======================================================
  575. node - javascript server
  576.  
  577. npm - javascript package manager
  578. Usage: npm <command>
  579. where <command> is one of:
  580.     access, add-user, adduser, apihelp, author, bin, bugs, c,
  581.     cache, completion, config, ddp, dedupe, deprecate, dist-tag,
  582.     dist-tags, docs, edit, explore, faq, find, find-dupes, get,
  583.     help, help-search, home, i, info, init, install,
  584.     install-test, issues, it, la, link, list, ll, ln, login,
  585.     logout, ls, outdated, owner, pack, ping, prefix, prune,
  586.     publish, r, rb, rebuild, remove, repo, restart, rm, root,
  587.     run-script, s, se, search, set, show, shrinkwrap, star,
  588.     stars, start, stop, t, tag, team, test, tst, un, uninstall,
  589.     unlink, unpublish, unstar, up, update, upgrade, v, verison,
  590.     version, view, whoami
  591.  
  592. ======================================================
  593. aspell dump config
  594. ======================================================
  595. to dump the default config info
  596.  
  597. ======================================================
  598. # Download and Install R and RStudio
  599. ======================================================
  600. -----------------------------
  601. ><><>< R ><><><
  602. -----------------------------
  603. apt purge r-base
  604. sudo apt autoremove
  605. apt install r-base
  606. apt install libnlopt-dev   <-- required to not have the nlopt package error
  607. R
  608. > library.package('lme4',dependencies=TRUE)
  609.  
  610. .......................................
  611. ><><>< RStudio ><><><
  612. .......................................
  613. https://www.r-bloggers.com/download-and-install-r-in-ubuntu/
  614. First install R
  615. sudo apt update
  616. sudo apt install r-base
  617.  
  618. sudo apt-get install gdebi-core   <-- this gets the deb installer gdebi
  619. download the latest deb package:
  620. https://www.rstudio.com/products/rstudio/download/#download
  621. https://download1.rstudio.org/rstudio-xenial-1.1.456-amd64.deb
  622. sudo gdebi rstudio-1.0.44-amd64.deb   <-- This installs Rstudio
  623.         This worked on Sep 15, 2018
  624. rm rstudio-1.0.44-amd64.deb             <-- remove deb package
  625.  
  626. Latest versions of Rstudio
  627. https://www.rstudio.com/products/rstudio/download/#download
  628.  
  629. To run: rstudio
  630.  
  631. to config:
  632. http://stat.ethz.ch/R-manual/R-patched/library/utils/html/setRepositories.html
  633.  
  634. https://sourceforge.net/projects/daetools/files/gnu-linux-libs/nlopt-2.4.2.tar.gz/download
  635.  
  636. ======================================================
  637. https://ubuntuforums.org/showthread.php?t=2303694
  638. ======================================================
  639. gnome-tweek-tool
  640. said to fix left-mouse-click
  641.  
  642. ======================================================
  643. Programming scripts, etc
  644. ======================================================
  645. /home/jba/Work/0_PROGRAMING/
  646.  
  647.  
  648. ======================================================
  649. How to install libdvdcss.so
  650. ======================================================
  651. see: ~/Admin/libdvdcss.txt
  652. Also for live streaming of dvd:
  653. http://libre-software.net/multimedia-support-centos-scientific-linux-rhel/
  654. ======================================================
  655. https://ubuntuforums.org/showthread.php?t=2303694
  656. ======================================================
  657. gnome-tweek-tool
  658. said to fix left-mouse-click
  659.  
  660. ======================================================
  661. Programming scripts, etc
  662. ======================================================
  663. /home/jba/Work/0_PROGRAMING/
  664.  
  665. ======================================================
  666. https://stackoverflow.com/questions/11450817/vim-how-do-i-clear-all-marks
  667. ======================================================
  668. edit ~.viminfo and delete the marks
  669. or from within gvim
  670. Marks are transfer points. Uppercase marks are to other files. This can be very dangerous,
  671. as you can wipe out a file by referencing a mark ('R) and then writing tha content to your working file!!!
  672. 'mark (eg 'R) takes you to that mark, which can be anywhere: another file, a remote drive, etc
  673. :marks    <-- list all 'marks'
  674. :delmarks!
  675. :help viminfo <-- vi docs on viminfo
  676.  
  677. ======================================================
  678. How to install libdvdcss.so
  679. ======================================================
  680. see: ~/Admin/libdvdcss.txt
  681. Also for live streaming of dvd:
  682. http://libre-software.net/multimedia-support-centos-scientific-linux-rhel/
  683.  
  684. ======================================================
  685. Rsync an archive preserving the hard links
  686. ======================================================
  687. mount the two disks; cd /media/jba/; as root:
  688. root@X260:/media/jba# rsync -a -H BACKUP-2/rsnapshot/ BACKUP-3/rsnapshot
  689.  
  690. ======================================================
  691. remote upgrade of bear
  692. ======================================================
  693. To make recovery in case of failure easier, an additional sshd will
  694. be started on port '1022'. If anything goes wrong with the running
  695. ssh you can still connect to the additional one.
  696.  
  697. If you run a firewall, you may need to temporarily open this port. As
  698. this is potentially dangerous it's not done automatically. You can
  699. open the port with e.g.:
  700. 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'
  701.  
  702.  
  703. ======================================================================
  704. Octave basics:
  705. ======================================================================
  706. Octave startup dir /usr/share/octave/4.2.2/m/startup/
  707.  
  708. To conf: octave-config (-h,-v, --m-site-dir, -p VAR: EDITOR, STARTUPFILEDIR, ...)
  709.  
  710. ======================================================================
  711. Octave install stuff
  712. ======================================================================
  713. Example:
  714. pkg install io  <= worked
  715. pkg load control
  716. pkg load symbolic
  717.  
  718. pkg install -forge statistics  <= worked
  719. pkg list
  720.  
  721. Package Name    | Version | Installation directory
  722. ----------------+---------+-----------------------
  723.             io  |   2.4.7 | /home/jba/octave/io-2.4.7
  724. linear-algebra  |   2.2.2 | /home/jba/octave/linear-algebra-2.2.2
  725.     statistics  |   1.3.0 | /home/jba/octave/statistics-1.3.0
  726.       symbolic *|   2.6.0 | /home/jba/octave/symbolic-2.6.0
  727.  
  728. http://wiki.octave.org/FAQ#How_do_I_install_or_load_all_Octave-Forge_packages.3F
  729. > apt install liboctave-dev
  730.  
  731. If you want a specific package to be loaded by default at startup, consider adding the
  732.  pkg load command
  733. on your .octaverc file.
  734.  
  735. ======================================================
  736. octave 4.0.0
  737. ======================================================
  738. https://wiki.octave.org/OEP:pkg          <- how to install packages
  739. https://wiki.octave.org/GNU_Octave_Wiki    <- general info: Go here first
  740. https://wiki.octave.org/Category:Editors   <choice of editors
  741. https://wiki.octave.org/Vim  <how to use gvim in place of default editor
  742. https://wiki.octave.org/Emacs  <Emacs support (default, with debugger)
  743. default settings file: .config/octave/qt-settings
  744.  
  745. ======================================================================
  746. disable js in Firefox
  747. ======================================================================
  748. http://www.wikihow.com/Disable-JavaScript
  749. 1) about:config
  750. 2) search for javascript.enabled
  751. 3) toggle off (right click)
  752. 4) close about:config
  753.  
  754. ======================================================================
  755. Latex font size:
  756. ======================================================================
  757. Command             10pt    11pt    12pt
  758. \tiny               5       6       6
  759. \scriptsize         7       8       8
  760. \footnotesize       8       9       10
  761. \small              9       10      10.95
  762. \normalsize         10      10.95   12
  763. \large              12      12      14.4
  764. \Large              14.4    14.4    17.28
  765. \LARGE              17.28   17.28   20.74
  766. \huge               20.74   20.74   24.88
  767. \Huge               24.88   24.88   24.88
  768.  
  769. ======================================================================
  770. gummi (Latex editor with bells and whistles)
  771. ======================================================================
  772. https://github.com/alexandervdm/gummi/wiki
  773.  
  774. ======================================================================
  775. TEXDOC: program to view pdf DOC files, for latex
  776. ======================================================================
  777. man texdoc  <== help:w
  778. texdoc -l hint
  779. Example:
  780. texdoc -l tex gives 30 document25
  781. texdoc authorindex
  782. texdoc tikz
  783.  
  784. ======================================================================
  785. texdoc amsmath
  786. ======================================================================
  787. gives the latex document
  788. equation gather multline split equation* gather* multline*
  789. align flalign alignat align* flalign* alignat*
  790.  
  791. ======================================================================
  792. rename command: https://www.computerhope.com/unix/rename.htm
  793. ======================================================================
  794.    The following did work: >$ rename 's/ //' *.pdf
  795.    The following did NOT work: >$ rename 's/\s //' *.pdf
  796.  
  797. ======================================================================
  798. brctl -h: ethernet bridge control panel
  799. ======================================================================
  800. https://wiki.linuxfoundation.org/networking/bridge
  801. http://www.thegeekstuff.com/2017/06/brctl-bridge/
  802.  
  803. ======================================================================
  804. MATLAB STUFF
  805. ======================================================================
  806. Summary: The : lines in matlab have stopped working. My theory is that there is a missing
  807. lib. I found that libXp.so* was missing in the /usr/lib/x86* dir (where all the X11 libs are).
  808. Problem not solved.
  809. ======================================================================
  810.  
  811. I have a working bootable HD with 16.04 and it runs matlab fine (no error on grid).
  812. My present X240 does not plot "grid on" correctly. (solid lines - vs :)
  813.  
  814. I think this comparision was flawed. When I finally ran the new lib, no difference.
  815.  
  816. However there is a new libXaw7.so.7.0.0
  817.  
  818. Maybe thats the problem??
  819. root@X260:/usr/lib/x86_64-linux-gnu# ls -lt libXa*
  820. lrwxrwxrwx 1 root root     15 Feb 25 14:16 libXau.so.6 -> libXau.so.6.0.0
  821. lrwxrwxrwx 1 root root     16 Feb 25 14:16 libXaw7.so.7 -> libXaw7.so.7.0.0
  822. lrwxrwxrwx 1 root root     12 Feb 25 14:16 libXaw.so.7 -> libXaw7.so.7
  823. -rw-r--r-- 1 root root 471808 Aug  3  2015 libXaw7.so.7.0.0
  824. -rw-r--r-- 1 root root  18700 Jun 15  2013 libXau.a
  825. lrwxrwxrwx 1 root root     15 Jun 15  2013 libXau.so -> libXau.so.6.0.0
  826. -rw-r--r-- 1 root root  14456 Jun 15  2013 libXau.so.6.0.0
  827. -rw-r--r-- 1 root root 375056 Aug  5  2012 libXaw3d.so.6.1
  828. lrwxrwxrwx 1 root root     15 Aug  5  2012 libXaw3d.so.6 -> libXaw3d.so.6.1
  829.  
  830.  
  831. I compared the
  832.  /usr/lib/x86*/libX*.so* files across the two installs, and I found this difference
  833.  
  834. WORKING:
  835. -rw-r--r-- 1 root root   14456 Jun 15  2013 libXau.so.6.0.0   <-- same
  836.  -rw-r--r-- 1 root root  375056 Aug  5  2012 libXaw3d.so.6.1
  837.  lrwxrwxrwx 1 root root      15 Aug  5  2012 libXaw3d.so.6 -> libXaw3d.so.6.1
  838. -rw-r--r-- 1 root root   14488 May  9  2012 libXss.so.1.0.0   <-- same
  839.  
  840. NOT WORKING:
  841. -rw-r--r-- 1 root root   14456 Jun 15  2013 libXau.so.6.0.0   <--same
  842. -rw-r--r-- 1 root root  375056 Aug  5  2012 libXaw3d.so.6.1
  843. lrwxrwxrwx 1 root root      15 Aug  5  2012 libXaw3d.so.6 -> libXaw3d.so.6.1
  844. -rw-r--r-- 1 root root   14488 May  9  2012 libXss.so.1.0.0   <-- same
  845.  
  846. Manual DIFF:
  847.  libXaw3d.so.6.1
  848.  lrwxrwxrwx 1 root root      15 Aug  5  2012 libXaw3d.so.6 -> libXaw3d.so.6.1
  849.  
  850. Thus I tarred up the libXaw3d files and placed them in /root/ and /usr/lib/x86_64*...
  851.  
  852. HOPE: if I untar the libXaw3d.so tar file in the /usr/lib/x86_64* dir, the problem will disappear
  853.  
  854. ======================================================================
  855. For matlab and Octave comments, use ~/Admin/matlab.txt
  856. ======================================================================
  857. matlab stopped working. There is a missing library libXp.so
  858. which in 16.04 is no longer in
  859. /usr/lib/x86_64-linux-gnu
  860.  
  861. I have a working matlab under 16.04, and the missing libXp.so.6 was installed in
  862.  /usr/lib/x86_64-linux-gnu/
  863. root@X260:/usr/lib/x86_64-linux-gnu# ls -lt libXp.*
  864. -rw-r--r-- 1 root root 14052 Mar 31 18:39 libXp.so.6.2.0.tgz
  865. -rw-r--r-- 1 root root 35712 Mar 31 18:36 libXp.so.6.2.0
  866. lrwxrwxrwx 1 root root    14 Apr 13  2015 libXp.so.6 -> libXp.so.6.2.0
  867. The source has been copied from the working system, to here and untarred as libXp.so.6.2.0
  868.  
  869. Once this was installed, matlab worked but the grid is solid lines, not dashed.
  870. On my X220 it is working, but not on the X260 or X220i
  871.  
  872.  
  873. libX* are NOT in: /lib/x86_64-linux-gnu
  874.  
  875.  
  876.  
  877. ========================================================================
  878. ssh/sshd
  879. ========================================================================
  880. For ssh to work to remote server
  881. /etc/sshd_config
  882. 1)
  883. UsePAM yes
  884. UseLogin no
  885. X11Forwarding yes
  886. PasswordAuthentication no
  887. ChallengeResponseAuthentication no
  888. PermitEmptyPasswords no
  889. TCPKeepAlive yes
  890. PermitRootLogin without-password
  891.  
  892.  
  893. To convert keys generated by putty:
  894.  convert ssh.com public key to OpenSSH
  895.           o These key files start with [|---- BEGIN SSH2 PUBLIC KEY
  896.             ---- |]
  897.           o ssh-keygen -i -f ssh_key.pub > openssh_key.pub
  898.  
  899. ======================================================================
  900. Install anaconda
  901. ======================================================================
  902. https://docs.anaconda.com/anaconda/install/linux
  903. adds anaconda path to last line of ~/.bashrc
  904.  
  905. After your install is complete, verify it by opening Anaconda Navigator, a program that is included with Anaconda. In terminal, enter
  906. %>  anaconda-navigator
  907.  If Navigator opens, you have successfully installed Anaconda.
  908.         It opened (but took a while)
  909. Next steps: https://docs.anaconda.com/anaconda/user-guide/getting-started
  910.  
  911. To uninstall: rm -rf ~/anaconda3
  912.  
  913. If you already have Anaconda and want to update SymPy to the latest version, use:
  914. $>  conda update sympy
  915. This worked, and then syms worked under octave
  916.  
  917. https://docs.anaconda.com/anaconda/packages/pkg-docs
  918.  
  919.  
  920. ======================================================================
  921. Install python and sympy
  922. ======================================================================
  923. https://www.gnu.org/software/octave/doc/interpreter/Installing-and-Removing-Packages.html
  924.  #Installing-and-Removing-Packages
  925.  
  926. from octave:
  927.  pkg list
  928.  pkg update
  929.  
  930.  help pkg
  931.  pkg -forge list
  932.  pkg -forge install io-2.4.7.tar.gz (aka pkg -forge install io 2.4.7)
  933.  pkg -forge install -nodeps io   <-- this worked: verified with "pkg list"
  934.     pkg -forge install -nodeps statistics 1.3.0
  935.          error: cellfun: C must be a cell array
  936.  
  937.  pkg -forge list symbolic
  938.  pkg -forge install symbolic
  939.  
  940. Easy way:
  941.  apt list python-sympy*
  942.  apt install python-sympy
  943.  apt install python-mpmath
  944. http://mpmath.org/doc/current/setup.html
  945.  
  946. apt list python-sympy
  947.  
  948. apt-get upgrade python
  949.  
  950. Hard way: Download the tar file from git (/usr/local/src/sympy-1.0.tgz) and install blah blah
  951.  
  952. ======================================================================
  953. http://wiki.wxpython.org/How%20to%20install%20wxPython
  954. ======================================================================
  955. xyPython: apt-get install python-wxgtk2.8
  956.  
  957. Check if the module works:
  958.  [lucas@b007 wxPython-2.2.5]$ python
  959. Python 1.5.2 (#1, Sep 30 2000, 18:08:36)  [GCC 2.95.3 19991030 (prerelease)] on linux-i386
  960. Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
  961. >>> import wx
  962.  
  963. ======================================================================
  964. VPN
  965. ======================================================================
  966. ~Admin/VPN.txt
  967.  
  968. ======================================================================
  969. pdf software
  970. ======================================================================
  971. https://en.wikipedia.org/wiki/List_of_PDF_software
  972.  
  973. ======================================================================
  974. sympy:
  975. ======================================================================
  976. /home/jba/Desktop/DOCS/sympy-docs-pdf-1.0.pdf
  977. https://github.com/sympy/sympy/releases
  978. https://www.youtube.com/watch?v=aPvGQL5Gg_Q    <--utube
  979.  
  980. ======================================================================
  981. synclient (I keep thinking synconfig)
  982. http://askubuntu.com/questions/290009/how-do-i-make-my-synclient-settings-stick
  983. ======================================================================
  984. https://en.wikipedia.org/wiki/List_of_PDF_software
  985.  
  986. ======================================================================
  987. sympy:
  988. ======================================================================
  989. /home/jba/Desktop/DOCS/sympy-docs-pdf-1.0.pdf
  990. https://github.com/sympy/sympy/releases
  991. https://www.youtube.com/watch?v=aPvGQL5Gg_Q    <--utube
  992.  
  993. ======================================================================
  994. sudo blkid
  995. ======================================================================
  996. list UUID's for all partitions of all disks
  997.  
  998. ======================================================================
  999. artha word-net dictionary
  1000. ======================================================================
  1001. This must be installed from the software archive, not from apt install artha.
  1002.  
  1003. ======================================================================
  1004. /var/cache/apt/archives
  1005. ======================================================================
  1006. deb archives
  1007. man intel
  1008. man  xorg.conf
  1009. man Xserver
  1010. man Xorg
  1011.  
  1012. ======================================================================
  1013. latexlive install
  1014. ======================================================================
  1015. This has become more contensious. Here is the ubuntu version:
  1016. https://help.ubuntu.com/community/LaTeX#From_the_Ubuntu_repositories
  1017.  
  1018. I should go with the latexlive version
  1019. apt install texlive-full.
  1020.  
  1021. Extra packages:
  1022. font extras
  1023.  
  1024. apt list --installed|grep texlive
  1025.  
  1026. NOT
  1027. the tex-live version TUG version (maybe some day this will be ok)
  1028.  http://www.tug.org/texlive/
  1029.  
  1030. ======================================================================
  1031. Wordnet dictionary
  1032. ======================================================================
  1033. sudo apt install artha
  1034.  
  1035. ======================================================================
  1036. fix mouse bug in gvim
  1037. ======================================================================
  1038. edit /etc/vim/vimrc
  1039. set mouse=              Turns off mouse cursor
  1040. set mouse=a       turns on mouse cursor, which can cause problems
  1041.  
  1042. ======================================================================
  1043. snapd
  1044. ======================================================================
  1045. http://snapcraft.io/docs/core/install
  1046.  
  1047. ======================================================================
  1048. Linux source information in nice format
  1049. ======================================================================
  1050. http://free-electrons.com/docs/
  1051.  
  1052. ======================================================================
  1053. start a process at startup
  1054. ======================================================================
  1055. http://stackoverflow.com/questions/7221757/run-automatically-program-on-startup-under-linux-ubuntu
  1056. Template
  1057. https://github.com/fhd/init-script-template
  1058. https://www.linux.com/learn/managing-linux-daemons-init-scripts
  1059.  
  1060. sudo mv /filename /etc/init.d/
  1061. sudo chmod +x /etc/init.d/filename
  1062. sudo update-rc.d filename defaults
  1063. sudo update-rc.d filename disable
  1064.  
  1065.  
  1066. ======================================================================
  1067. missing fonts:
  1068. ======================================================================
  1069. http://askubuntu.com/questions/584922/how-do-i-fix-fonts-not-rendering-and-missing-letters
  1070.  
  1071.  
  1072. ======================================================================
  1073. sudo xdiagnose
  1074. ======================================================================
  1075. Reports X11 bugs and allows config
  1076.  
  1077. ======================================================================
  1078. Print code sample:
  1079. ======================================================================
  1080. a2ps simC.m -o simC.m.ps
  1081.  
  1082. ======================================================================
  1083. Mimosa wireless
  1084. SSID: CBC1-0B73-5
  1085. passwd: PRCX4RAYAT9HC99H
  1086. ======================================================================
  1087.  
  1088. ======================================================================
  1089. images of research group:
  1090. ======================================================================
  1091.   /home/jba/Desktop/Wiki-Mar15.15/wiki/uploads/Main/ResearchGroup/
  1092. How to upload a new image:
  1093.   rsync -azP --progress image.jpg auditorymodels@engr:public_html/uploads/Main/ResearchGroup/
  1094.  
  1095. ======================================================================
  1096. libmtp9
  1097. ======================================================================
  1098. If this is installed, then the 64G drive will not be recognized.
  1099.  
  1100. ======================================================================
  1101. DONT DO THIS:
  1102. skype install for 64 bit arch, 16.04LTS
  1103. ======================================================================
  1104. https://linuxconfig.org/how-to-install-skype-on-ubuntu-16-04-xenial-xerus-linux-64-bit
  1105.  
  1106.  
  1107. ======================================================================
  1108. R commands
  1109. ======================================================================
  1110. run from the command line, not RStudio (Joe)
  1111. install.packages('lme4')
  1112. run('cons2.R')
  1113.  
  1114. ======================================================================
  1115. RSudio (April 9, 2016)
  1116. ======================================================================
  1117. Installed RSudio
  1118.   sudo dpkg -i rstudio-0.99.893-amd64.deb
  1119.  
  1120. To run:> rstudio
  1121. Note: Can read and write spreadsheets without the use of Office
  1122. quit()
  1123.  
  1124. End a line with a + for continue
  1125.  
  1126. Help: ?t.test()
  1127. Linear regression and ANOVA: One way ANOVA
  1128. lm(): linear model
  1129.  lm1 = lm(rtime ~ group+conditions+score,data=work1)
  1130. Type 1, 2, 3 least squares
  1131. anova(lm1,[type=2,3]
  1132.  
  1133.  
  1134. ?contrasts
  1135. ?model.matrix  (generated automatically during the regression setup)
  1136.  
  1137. Good graphical package:
  1138. library(ggplot2)
  1139.  
  1140.  
  1141. ggplot: http://www.r-bloggers.com/quick-introduction-to-ggplot2/
  1142. ggplot(data=AllCatSum, aes(x=condition, y=meanDC, fill =group)) +
  1143. options + more options
  1144.  
  1145. ?library(visreg) built on ggplot
  1146. fit.in1 <- lm(Ozone~ Solar.R + Wind*Heat,data=airquality)
  1147.  
  1148.  
  1149. ==========================================================
  1150. To record from the screen:
  1151. ==========================================================
  1152. ffmpeg -r 30 -s 1680x1050 -f x11grab -i :0.0 -vcodec msmpeg4v2 -q:scale 2 /tmp/BerenIntro.avi
  1153. gtk-recordmydesktop -o outfile.ogv  (backend: recordmydesktop -o outfile.ogv)
  1154.  
  1155.  
  1156. ==========================================================
  1157. To start UIUC VPN (see discussion under Redhat @ https://answers.uillinois.edu/illinois/page.php?id=47640
  1158. this should work after reboot:
  1159.   /opt/cisco/anyconnect/bin/vpnui    & click on "connect"
  1160. If you kill VPN, reboot and do the above commands
  1161. ==========================================================
  1162.  
  1163. ==========================================================
  1164. flashing screen with kernel 4.6
  1165. No solution
  1166. ==========================================================
  1167.  
  1168. ==========================================================
  1169. Grub boot:
  1170. ==========================================================
  1171. /etc/default/grub
  1172. place # in front of GRUB_HIDDEN_TIMEOUT=0
  1173. Save changes and run sudo update-grub to apply changes.
  1174.  
  1175. ==========================================================
  1176. To run rsnapshot on near to 1TB BACKUP-2
  1177. ==========================================================
  1178. rsnapshot back COMMANDS
  1179. 1) sudo rsnapshot daily         <++++ push backups ++++
  1180. 2) sudo rsnapshot sync          <++++ acutal backup ++++
  1181.  sudo rsnapshot -t daily        <++++ TEST command ++++
  1182. DIFF:
  1183. cd /media/jba/BACKUP-2/rsnapshot/
  1184.  sudo rsnapshot-diff daily sync  
  1185.  
  1186. ==========================================================
  1187. rsync commands for updating
  1188. ==========================================================
  1189. Jan 27, 2016: X250 back from Memphis following repairs:
  1190. Copy files back to X250 from X220i:
  1191. Commands are in ~/Admin/X250-Issues.txt =>  X250:/usr/local/UpdateInbox.sh
  1192. 1) I booted from the X220i via USB (that worked great)
  1193. 2) I then ran rsync as described in X250:/usr/local/UpdateInbox.sh
  1194.  
  1195. Jan 22, 2016: Shipped X250 back for screen blanking repair:
  1196. Moved TO the X220i HD, to update FROM X250 HD:
  1197. cd /media/[admin1|jba]/5718b40f-944e-47a3-acda-04e29336d0bc/home
  1198. rsync -aP --usermap=admin1:jba --groupmap=admin:jba jba/ /home/jba
  1199.  
  1200. To copy files from one backup to another, with hard links:
  1201.  cp -al daily.0/near/home .sync/near/
  1202.  
  1203. ==========================================================
  1204. Tripwire on ebony has a passphrase, which is saved in passwd: EBONY.passwd
  1205. ==========================================================
  1206.  
  1207. ======================================================================
  1208. scan for open server ports:
  1209. ======================================================================
  1210. nmap -v -sT localhost
  1211. nmap -v -sS localhost
  1212.  
  1213. ==========================================================
  1214. ~./local/share: Local storage of the programs you last ran
  1215. ~./local/share/keyring/: login-keyring
  1216. ==========================================================
  1217.  
  1218. ==========================================================
  1219. Firefox/mozilla
  1220. ==========================================================
  1221. To view hot-keys: https://support.mozilla.org/en-US/kb/keyboard-shortcuts
  1222.  
  1223. ==========================================================
  1224. firefox config (BROWSER)
  1225. ==========================================================
  1226. ~/.mozilla/firefox/cp8zqqr0.default-1437243478280
  1227. ~/.mozilla/plugins/libflashplayer.so
  1228.         /usr/local/flash_player-Jan23.16/libflashplayer.so
  1229.  
  1230. ==========================================================
  1231. thunderbird config (EMAIL)
  1232. ==========================================================
  1233. ~/.thunderbird/l8yjysa9.default
  1234.  
  1235.  
  1236. ==========================================================
  1237. "find usage:" files by date or time since last used
  1238. ==========================================================
  1239. Find anything 5 days old: find . -mtime -5 -print
  1240. Find files one day old: find / -type f -mtime -1 -print
  1241.  
  1242. Find files after a certain date:
  1243. touch -t `date +%m%d0000` /tmp/$$
  1244. find /tmefndr/oravl01 -type f -newer /tmp/$$
  1245.  
  1246. ==========================================================
  1247. lighting calendar files (Jan 23, 2016)
  1248. ==========================================================
  1249. Final Conclusion: the lighting files are backed up in:
  1250.  /media/jba/5718b40f-944e-47a3-acda-04e29336d0bc/usr/local/thunderbird/l8yjysa9.default/calendar-data
  1251.  deleted.sqlite  local.sqlite
  1252. From there they are written into
  1253. /usr/local/thunderbird/l8yjysa9.default/storage.sdb
  1254.  
  1255. Relevant clue for further analysis:
  1256. /usr/local/thunderbird/l8yjysa9.default/prefs.js
  1257. contains the answer as to where the data is stored:
  1258. user_pref("calendar.registry.3bb262a2-7911-44c8-97a8-174f85e6fa30.type", "storage");
  1259. user_pref("calendar.registry.3bb262a2-7911-44c8-97a8-174f85e6fa30.uri", "moz-storage-calendar://");
  1260. .... this goes on for some time
  1261.  
  1262. ----------------------
  1263. Detailed analysis:
  1264. ----------------------
  1265. I deleted
  1266.  /usr/local/thunderbird/l8yjysa9.default/storage.sdb
  1267. came back when I reran lighting.
  1268. Conclusion: So that does seem to be the final resting place.
  1269.  
  1270. I deleted
  1271. /usr/local/thunderbird/l8yjysa9.default/calendar-data/*
  1272. and then reran lighting and there was no calandar data.
  1273.  Conclusion: this is where the data is read from
  1274.  
  1275. I copied these two sqlite files (chown jba.jba *)
  1276. deleted.sqlite  local.sqlite
  1277. from /media/jba/5718b40f-944e-47a3-acda-04e29336d0bc/usr/local/thunderbird/l8yjysa9.default/calendar-data
  1278. Conclusion:  This gave me back my working calendar!
  1279. Whew
  1280.  
  1281. ==========================================================
  1282. Firefox Browser URL Resolve BUG
  1283. ==========================================================
  1284. There is a bug that clicking on a link in email client (thunderbird)
  1285.  is not resolved by firefox (browser)
  1286.  
  1287. To trigger "asking for the app" the way it works is that there is a file in
  1288. /etc/firefox/pref/
  1289.  containing:
  1290. pref("network.protocol-handler.app.apt","/usr/bin/apturl");
  1291. pref("network.protocol-handler.warn-external.apt",false);
  1292. pref("network.protocol-handler.app.apt+http","/usr/bin/apturl");
  1293. pref("network.protocol-handler.warn-external.apt+http",false);
  1294. pref("network.protocol-handler.external.apt",true);
  1295. pref("network.protocol-handler.external.apt+http",true);
  1296.  
  1297. These defaults are saved in  /etc/thunderbird/syspref.js (look on the backups)
  1298. pref("network.protocol-handler.app.apt","/usr/bin/apturl");
  1299. pref("network.protocol-handler.warn-external.apt",false);
  1300. pref("network.protocol-handler.app.apt+http","/usr/bin/apturl");
  1301. pref("network.protocol-handler.warn-external.apt+http",false);
  1302. pref("network.protocol-handler.external.apt",true);
  1303. pref("network.protocol-handler.external.apt+http",true);
  1304.  
  1305. Thoughts: Maybe the problem is with
  1306. -Hypertext-transfer-protocol
  1307. -mime-type resolution
  1308.  
  1309. Many of the discussions say that what works best (but doesn not fix the
  1310. problem) is to kill the browser, and then try clicking on a link. This,
  1311. they say, works, for a while.
  1312.  
  1313.  
  1314. Firefox link bug: [firefox link not resolved by thunderbird]
  1315. Relevant URLS that discuss bug:
  1316. YES http://www.ghacks.net/2013/01/20/fix-for-thunderbird-not-opening-links/
  1317. Start firefox email editor: Edit/Preferences/Advanced/General+Config Editor
  1318. Filter for the term:
  1319.  network.protocol-handler.warn-external.http and set it to true (double click on it, till true shows up)
  1320.     Repeat for
  1321.  network.protocol-handler.warn-external.https
  1322.  network.protocol-handler.warn-external.ftp
  1323. then exit and restart Thunderbird
  1324.  
  1325.  
  1326.  
  1327. =========================================================================
  1328. VisualVM installed Dec 30, 2015
  1329. http://visualvm.java.net/features.html
  1330. =========================================================================
  1331. Tool presumed useful for "all in one java troubleshooting"
  1332. =========================================================================
  1333. Install from the Ubuntu Software Center
  1334. http://visualvm.java.net/
  1335. demo: http://youtu.be/z8n7Bg7-A4I
  1336.  
  1337. Nice discussion of how to use visualVM
  1338. https://www.youtube.com/watch?v=z8n7Bg7-A4I&feature=youtu.be
  1339. Lots of information, about startup, heap dumps, etc
  1340.  Very versitle
  1341.  
  1342. /openjdk-7-jre_7u91-2.6.3-0ubuntu0.15.10.1_amd64.deb
  1343. =========================================================================
  1344. When running jabref I java crashed and I discovered that this package was a fault.
  1345. I then tried:
  1346. apt-get install --reinstall openjdk-7-jre
  1347. and it seems to sort of worked:
  1348. Preparing to unpack .../openjdk-7-jre_7u91-2.6.3-0ubuntu0.15.10.1_amd64.deb ...
  1349. Unpacking openjdk-7-jre:amd64 (7u91-2.6.3-0ubuntu0.15.10.1) over (7u91-2.6.3-0ubuntu0.15.10.1) ...
  1350. Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
  1351. Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ...
  1352. Rebuilding /usr/share/applications/bamf-2.index...
  1353. Processing triggers for gnome-menus (3.13.3-6ubuntu1) ...
  1354. Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
  1355. Processing triggers for mime-support (3.58ubuntu1) ...
  1356. Setting up openjdk-7-jre:amd64 (7u91-2.6.3-0ubuntu0.15.10.1) ...
  1357.  
  1358. I then tried
  1359. apt-get install --reinstall firefox
  1360. Reading package lists... Done
  1361. Building dependency tree      
  1362. Reading state information... Done
  1363. The following package was automatically installed and is no longer required:
  1364.   chromium-codecs-ffmpeg-extra
  1365. Use 'apt-get autoremove' to remove it.
  1366. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
  1367. Need to get 0 B/45.0 MB of archives.
  1368. After this operation, 0 B of additional disk space will be used.
  1369. dpkg: warning: files list file for package 'firefox-locale-en' missing; assuming package has no files currently installed
  1370. (Reading database ... 312131 files and directories currently installed.)
  1371. Preparing to unpack .../firefox_43.0+build1-0ubuntu0.15.10.1_amd64.deb ...
  1372. Unpacking firefox (43.0+build1-0ubuntu0.15.10.1) over (43.0+build1-0ubuntu0.15.10.1) ...
  1373. Processing triggers for man-db (2.7.4-1) ...
  1374. Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ...
  1375. Rebuilding /usr/share/applications/bamf-2.index...
  1376. Processing triggers for gnome-menus (3.13.3-6ubuntu1) ...
  1377. Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
  1378. Processing triggers for mime-support (3.58ubuntu1) ...
  1379. Setting up firefox (43.0+build1-0ubuntu0.15.10.1) ...
  1380.  
  1381. =========================================================================
  1382. chrome binary location
  1383. =========================================================================
  1384. /usr/lib/chromium-browser
  1385.  
  1386. =========================================================================
  1387. webdav calandar share facility
  1388. This doesnt work!
  1389. =========================================================================
  1390. http://ubuntuforums.org/archive/index.php/t-119228.html   <--better
  1391. https://www.digitalocean.com/community/tutorials/how-to-configure-webdav-access-with-apache-on-ubuntu-12-04
  1392.  
  1393. chrome binary location
  1394. =========================================================================
  1395. /usr/lib/chromium-browser
  1396.  
  1397. =========================================================================
  1398. webdav calandar share facility
  1399. This doesnt work!
  1400. =========================================================================
  1401. http://ubuntuforums.org/archive/index.php/t-119228.html   <--better
  1402. https://www.digitalocean.com/community/tutorials/how-to-configure-webdav-access-with-apache-on-ubuntu-12-04
  1403.  
  1404.  
  1405. =========================================================================
  1406. chrome binary location
  1407. =========================================================================
  1408. /usr/lib/chromium-browser
  1409.  
  1410. =========================================================================
  1411. webdav calandar share facility
  1412. This doesnt work!
  1413. =========================================================================
  1414. http://ubuntuforums.org/archive/index.php/t-119228.html   <--better
  1415. https://www.digitalocean.com/community/tutorials/how-to-configure-webdav-access-with-apache-on-ubuntu-12-04
  1416.  
  1417. =========================================================================
  1418. Group ID remapping
  1419. How to recover files from backup disk to present system with rsync:
  1420. =========================================================================
  1421. sudo rsync -aP --usermap=admin:jba --groupmap=admin:jba thunderbird/* /usr/local/thunderbird
  1422.  
  1423. =========================================================================
  1424. File conversion any to any
  1425. =========================================================================
  1426. http://pandoc.org/demos.html <-- convert just about any formant to another
  1427.  
  1428. /etc/gnome/default.lists contains all the defaults, and blacklist (menus.blacklist)
  1429.  
  1430.  
  1431. =========================================================================
  1432. Beamer and AV Hyperlinks:
  1433. =========================================================================
  1434. Hyperlinks with evince:
  1435. This shells out to gnome for the default viewer:
  1436. \movie[externalviewer] {\beamergotobutton{Start movie}}{cc.mp4}
  1437. The default viewer may be set from firefox (I think).
  1438. Otherways include
  1439. xdg-settings
  1440. and see discussion
  1441. http://askubuntu.com/questions/254212/why-dont-hyperlinks-open-in-evince-document-viewer
  1442.  
  1443. How to reset genome default settings
  1444. http://askubuntu.com/questions/56313/how-do-i-reset-gnome-to-the-defaults
  1445. mimeinfo details:
  1446. /home/jba/.local/share/applications/mimeinfo.cache
  1447. /usr/share/applications/mimeinfo.cache
  1448.  
  1449. ======================================================================
  1450. NMRestart.sh
  1451. ======================================================================
  1452.  
  1453. ======================================================================
  1454. Avoid the ugly warning sound "dunk" in thundnerbird; replace with "dong"
  1455. ======================================================================
  1456. mv /usr/share/sounds/ubuntu/stereo/dialog-question.ogg dialog-question.ogg.ugh
  1457. ln -s service-login.ogg dialog-question.ogg
  1458.  
  1459. ======================================================================
  1460. Avoid the ugly warning sound "dunk" in bash; replace with "dong"
  1461. ======================================================================
  1462. mv /usr/share/sounds/ubuntu/stereo/bell.ogg bell.ogg.ugh
  1463. ln -s button-toggle-on.ogg bell.ogg
  1464.  
  1465. ======================================================================
  1466. Avoid ugly ubuntu login sound
  1467. ======================================================================
  1468. mv system-ready.ogg system-ready.ogg.ugh
  1469. ln -s service-login.ogg system-ready.ogg
  1470.  
  1471. Standard calendar sound (not very nice):
  1472. ~/.thunderbird/l8yjysa9.default/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome/calendar/content/calendar
  1473. ======================================================================
  1474.  
  1475. KTikZ drawing package?
  1476. pgfplotstable package: \usepackage{pgfplotstable}
  1477. ~/Technicalbooks/pgfplots.pdf
  1478. ======================================================================
  1479. Itis really TikZ but the K version of it.
  1480.  
  1481. ======================================================================
  1482. openvpn: ~/Admin/VPN.txt
  1483. ======================================================================
  1484. edit connections
  1485. open
  1486. select vpn
  1487. enter details
  1488.  
  1489. ======================================================================
  1490. rc.d changes (they are not even used!)
  1491. ======================================================================
  1492. update-rc.d - install and remove System-V style init script links
  1493. update-rc.d openvpn remove
  1494. update-rc.d bind9 remove
  1495.  
  1496. ======================================================================
  1497. program to diff and compare files and directories: meld
  1498. ======================================================================
  1499. it IS worth the trouble
  1500. It cannot handle really large file structures. Keep it small.
  1501. du -sh * may work just as well for complex problems
  1502.  
  1503. ======================================================================
  1504. Find php scripts in the system:
  1505. ======================================================================
  1506. file */*/* -mime | grep php
  1507. file */*/*|grep php
  1508. file -R -mime |grep php
  1509.  
  1510.  for i in */*;do echo $i; file -i $i;grep php; done
  1511. Does this work recursively?
  1512.  for i in `ls -r`; do echo $i;done
  1513.  
  1514. find . exec `file \{\} \;`
  1515.  
  1516. ======================================================================
  1517. confusing commands + syntax: that I cannot make work
  1518. ======================================================================
  1519. m Extensive search of file characteristics:
  1520.  find FLAGS [path] [expression]
  1521.  find . -perm -220
  1522.  find . -type [b,c,d,p,f,l,s]
  1523.  find . file -i <--does not work
  1524. Find the file type:
  1525.  file * -mime (-i)  (uses /etc/magic)
  1526.  
  1527.  
  1528. ======================================================================
  1529. Mimosa IP 10.0.10.1
  1530. ======================================================================
  1531. login: cusadmin, passwd: highspeed
  1532. Comcast wireless SSID: CBCI-0B73-5, Passwd: PRCX4RAYAT9HC99H
  1533.  
  1534. ======================================================================
  1535. Crash of nvidia updates
  1536. ======================================================================
  1537. Note updated compiz package April 30, 2015:
  1538. https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1424013
  1539. https://launchpad.net/bugs/729979
  1540.  
  1541. I purged this on April 11, 2015 with
  1542. "apt-get purge nvidia-331-updates"
  1543.  /home/jba/.cache/upstart/update-notifier-crash-_var_crash_nvidia-331-updates.0.crash.log
  1544. locate nvidia-331-updates <-- find relevant files
  1545.  
  1546. http://askubuntu.com/questions/206283/how-can-i-uninstall-a-nvidia-driver-completely
  1547.  
  1548. > aptitude show nvidia-331-updates nvidia-331-updates-uvm <- provide details
  1549. > aptitude search nvidia
  1550. > aptitude search nvidia-331
  1551. > aptitude show nvidia-331
  1552. > aptitude show nvidia-331-uvm
  1553.  
  1554. ======================================================================
  1555. How to download wiki page
  1556. ======================================================================
  1557. To grab the wiki given the command
  1558.  wget -kKErpNF -l 10 -nH 192.168.1.7
  1559.  
  1560. -k convert links to local reading
  1561. -K --backup-converted (rename .orig)
  1562. -E --adjust-extension extends all with .html
  1563. -r --recursive with max depth of 5
  1564. -l 10  --level=depth
  1565. -p --page-requisites (suplimentary material as needed)
  1566. -N --time stamping
  1567. -F --force-html
  1568. -nH --no-host-directories (remove URL)
  1569.  
  1570. The following didnt work
  1571. wget -kKErpNFnHpNFnH -l 10 192.168.1.7
  1572.  
  1573. Sandra said the following:
  1574. wget -k -K -E -r -l 10 -p -N -F  -nH
  1575.  
  1576. ======================================================================
  1577. /usr/bin/gnome-system-log
  1578. ======================================================================
  1579. Nice system logs display program
  1580.  
  1581. ======================================================================
  1582. apt-get autoremove
  1583. ======================================================================
  1584. clean up old images and irrelevant files
  1585. This should be run every now and then
  1586.  
  1587. ======================================================================
  1588. Error log on unity upstart errors
  1589. ======================================================================
  1590. The error report is that I need to upgrade: "unity-services"
  1591. Upgrade to trusty of june 10, 2014
  1592. See: /home/jba/.cache/upstart/ unity-panel-service.log
  1593.  
  1594. This worked: apt-get upgrade unity-services
  1595.  
  1596. ======================================================================
  1597. usb-creator-gtk creates bootable-usb
  1598. ======================================================================
  1599. This must be run as root or else it wont write the bootstrap
  1600. The iso source is in /home/jba/Downloads/
  1601. The usb must be at least 2G (Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64)
  1602.  
  1603. ======================================================================
  1604. "It's all text" vs "Vimperator" are extension/plugins for firefox
  1605. ======================================================================
  1606. http://stackoverflow.com/questions/75652/is-there-a-firefox-add-on-to-use-vim-to-edit-textboxes
  1607.  
  1608. They gives firefox vi commands.
  1609. http://www.vimperator.org/
  1610. https://addons.mozilla.org/en-US/firefox/addon/vimperator/
  1611. For "help" go to tools/addons/Extensions/Vimperator/Preferences
  1612. or enter: liberator://help/options (try reload if nothing happens)
  1613.  
  1614. Also look at:
  1615.  http://en.wikipedia.org/wiki/Wikipedia:Text_editor_support
  1616. "its all text"
  1617.  
  1618. ======================================================================
  1619. Upgrade from ext3 to ext4
  1620. ======================================================================
  1621. http://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/
  1622.  
  1623. ======================================================================
  1624. wavesurfer
  1625. ======================================================================
  1626. To run wavesurfer use: padsp wavesurfer
  1627.  
  1628. ======================================================================
  1629. conversion from text to ps/pdf
  1630. ======================================================================
  1631. enscript -p file.ps file.txt
  1632.  
  1633. ======================================================================
  1634. upgrade the bash shell
  1635. ======================================================================
  1636.  Run 'do-release-upgrade' to upgrade to next release
  1637.      'update-manager'  graphical method
  1638.  
  1639. To simply update the latest for the present release:
  1640. sudo apt-get update
  1641. sudo apt-get upgrade  (to install all package updates, which should
  1642. include bash)
  1643. or
  1644. sudo apt-get --only-upgrade install bash  (to update only bash)
  1645.  
  1646. After update, bash should be 4.2-2ubuntu2.2
  1647.  
  1648. http://www.ubuntu.com/usn/usn-2362-1/
  1649.  
  1650. Linton
  1651.  
  1652. On 27/09/2014 4:26 a.m., Jont Allen wrote:
  1653. > > ebony is vunerable
  1654. > > Login in and try this:
  1655. > > env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
  1656.  
  1657. ======================================================================
  1658. Check for ESSIDs from the command line:
  1659. ======================================================================
  1660. iwlist wlan0 scanning|grep ESSID
  1661.  
  1662. iwlist wlan0 scanning|grep Quality
  1663.  
  1664.  
  1665. ======================================================================
  1666. avconv
  1667. ======================================================================
  1668. convert mp3 and other video formats from one to another.
  1669. https://www.libav.org/
  1670. Example: https://lists.libav.org/pipermail/libav-tools/2014-July/000439.html
  1671. This copies all video and all 8 audio channels fine:
  1672. $ avconv -y -i convertingSbtToEclipse.mov -c:v copy -c:a copy
  1673.  
  1674. ======================================================================
  1675. How to config after a major reset due to a linux download:
  1676. ======================================================================
  1677. Edit: ~/Admin/keyboard.txt
  1678.  
  1679. ======================================================================
  1680. Mar 13 2014 Added "silverlight"
  1681. ======================================================================
  1682. URL:
  1683. http://www.howtogeek.com/130372/how-to-watch-netflix-on-ubuntu-with-the-netflix-desktop-app/
  1684.  
  1685. sudo apt-add-repository ppa:ehoover/compholio
  1686. sudo apt-get update
  1687. sudo apt-get install netflix-desktop
  1688.  
  1689. Then mono was installed in ~/.wine-browser
  1690. Then Gecko package was needed:
  1691.  http://wiki.winehq.org/Gecko
  1692.  
  1693. ======================================================================
  1694. Service config:
  1695. Red Hat and Fedora use chkconfig, while Debian uses update-rc.d.
  1696. ======================================================================
  1697.  
  1698. ======================================================================
  1699. keyconfig addon for mozilla (Thunderbird)
  1700. It failed to work, so I deleted this after worrying about security problems.
  1701. ======================================================================
  1702. I wanted to remove the "J" hotkey which marks an email as junk,
  1703. as this can cause email to "disappear" if one accidently hits his J key.
  1704.  
  1705. The plugin to do this is at:
  1706. https://support.mozillamessaging.com/en-US/kb/keyboard-shortcuts
  1707. and specifically is: http://mozilla.dorando.at/keyconfig.xpi
  1708. as listed under
  1709.  Customizing keyboard shortcuts
  1710. http://kb.mozillazine.org/Keyconfig_extension
  1711. http://mozilla.dorando.at/keyconfig.xpi
  1712.  "(right-click [[http://mozilla.dorando.at/keyconfig.xpi | here]] to download)"
  1713.  
  1714. After installing this,
  1715.  (it is in /home/jba/.mozilla/firefox/kjkfc7m9.default/extensions/keyconfig@dorando.xpi
  1716. I couldnt find the plugin/add-ons under
  1717. /Tools/Add-ons/Plugins/
  1718. The instructions suggest:
  1719. http://kb.mozillazine.org/Keyconfig_extension
  1720.  --In Thunderbird, choose: Tools ā€“ Keyconfig... The Keyconfig dialog opens.
  1721.  
  1722. ======================================================================
  1723. Print a n page document as a booklet using evince (see evince help page)
  1724. ======================================================================
  1725. Under Range, choose Pages.
  1726. Type the numbers of the pages in this order:
  1727. n, 1, 2, n-1, n-2, 3, 4, n-3, n-4, 5, 6, n-5, n-6, 7, 8, n-7, n-8, 9, 10, n-9, n-10, 11, 12, n-11...
  1728. ...until you have typed n-number of pages.
  1729. Choose the Page Setup tab.
  1730. Under Layout, in the Two-side menu, select Short Edge (Flip).
  1731. In the Pages per side option, select 2.
  1732. In the Page ordering menu, select Left to right.
  1733.  
  1734. ======================================================================
  1735. postscript to pdf using prosper:
  1736. ======================================================================
  1737. I found the postscript hack that fixed last year's presentation.
  1738. I thought I'd pass it along for posterity...
  1739.  
  1740. It uses the function pstops (ie ps-to-ps) to redefine the margins:
  1741.  
  1742. pstops '1:0(0,40)' AAS2013_v6_final-hack.ps foo.ps
  1743.  
  1744. Judi
  1745.  
  1746.  
  1747. ======================================================================
  1748. sudo sysv-rc-conf
  1749. ======================================================================
  1750. http://askubuntu.com/questions/19320/what-is-the-recommended-way-to-enable-disable-services
  1751.  
  1752.  
  1753. To ck for a package (e.g.: dnsmasq*) installed
  1754. ======================================================================
  1755. dpkg-query -l dnsmasq*
  1756.  
  1757. ======================================================================
  1758. sudo visudo
  1759. ======================================================================
  1760. allow one to upgrade permissions on a user
  1761.  
  1762. ======================================================================
  1763. lubuntu stripped down desktop alternative to Unity
  1764. ======================================================================
  1765. sudo apt-get install lubuntu-desktop
  1766. or better yet (maybe), just LXDE (no desktop?)
  1767. sudo apt-get install lxde
  1768.  
  1769. The X-server GUI page is:
  1770. https://help.ubuntu.com/community/ServerGUI
  1771.  
  1772. ======================================================================
  1773. Starting a process from cmd line on X
  1774. ======================================================================
  1775.  sudo apt-get install compizconfig-settings-manager (get ccsm)
  1776.  export DISPLAY=:0
  1777.  ccsm &  <-- start compiz
  1778.  gnome-terminal &
  1779.  
  1780. also try "CTRL+ALT t" to get a command line
  1781.  
  1782. ======================================================================
  1783. watch signal strength
  1784. ======================================================================
  1785.  watch -n 1 -t "awk 'NR==3 {print \"WiFi Signal Strength = \" \$3 \"00 %\"}''' /proc/net/wireless"
  1786. watch -n 1 -t cat /proc/net/wireless
  1787.  
  1788. ======================================================================
  1789. home shared device:
  1790. ======================================================================
  1791. http://50.81.134.248/shares/
  1792. http://readyshare.routerlogin.net/shares/
  1793. ftp://readyshare.routerlogin.net/shares/
  1794.  
  1795. Help on pulseaudio problem:
  1796. pulseaudio --check
  1797.  E: [pulseaudio] core-util.c: Home directory  not ours
  1798.  https://bbs.archlinux.org/viewtopic.php?id=114398
  1799.  
  1800.  
  1801.  
  1802. ======================================================================
  1803. "find" command usage
  1804.  tutorial: http://content.hccfl.edu/pollock/unix/findcmd.htm
  1805. ======================================================================
  1806.  find . -type cdfl(bps)
  1807.               c      character
  1808.               d      directory
  1809.               f      file
  1810.               l      symbolic link
  1811.  
  1812. Find dir "shared" anywhere in "snapshots/"
  1813.  find snapshots/ -name shared -type d -print
  1814.  
  1815. To copy "/home" and maintain all the ownership and groups:
  1816. $( cd /home ; tar cfv ā€“ . ) | ( cd /mnt/newhome ; tar xf ā€“ )
  1817. OR less-less better:
  1818. $find . -depth -print0 | cpio ā€“null ā€“sparse -pvd /mnt/newhome/
  1819.  
  1820. JASA Help:
  1821. help@scitation.org
  1822. Annie Rivera
  1823. Scitation Helpdesk
  1824. AIP Publishing LLC
  1825. 1305 Walt Whitman Road, Suite 300
  1826. Melville, NY 11747-4300
  1827.  
  1828.  
  1829. ======================================================================
  1830. Library usage:
  1831. ======================================================================
  1832.  
  1833. START HERE:
  1834. From Mischo, William H <w-mischo@illinois.edu>
  1835. You do not have to use the VPN when you go into Journal and Article Locator.  In fact you are better off not using it.  From wherever in the world you are, you can go directly to:
  1836.  
  1837.         http://search.grainger.illinois.edu/linker/
  1838.  
  1839. And enter a DOI or the journal title/author/volume/starting page/  or just the DOI and you can retrieve the article.  If you are off-campus, it will challenge you to login with your NetID and Password.  
  1840.  
  1841.  
  1842. UIUC help:
  1843. For more information, and other troubleshooting options, visit this page:
  1844. http://www.library.illinois.edu/rex/guides/eresources/index.html
  1845.  
  1846. HELP: Kathleen Kern; Reference, Research, & Scholarly Services
  1847.  katkern@illinois.edu or call 244-3604.
  1848.  
  1849. 1) Use the UIUC VPN: when you are connecting to the VPN, select 'Tunnel All,'
  1850. as opposed to the 'Split Tunnel' option.  "http://www.cites.illinois.edu/vpn/library"
  1851. 2) Start at http://search.grainger.uiuc.edu/linker/
  1852.  a) Start at the library's homepage: http://www.library.illinois.edu
  1853.  b) In the middle of the page under
  1854.  "Article Resources," click on
  1855.  "Journal and Article Locator"
  1856. 3) Enter the DOI for this article in the DOI of Article search bar+Search
  1857.         the DOI is the best way to find an article if you dont have some
  1858.         of the required information.
  1859. Here is an example of a DOI: "10.1119/1.4789885"
  1860.  
  1861.  
  1862. ======================================================================
  1863. Linux commands (and help):
  1864. ======================================================================
  1865. https://answers.launchpad.net/ubuntu
  1866. http://askubuntu.com/questions
  1867. https://launchpad.net/ubuntu
  1868. http://ubuntuforums.org (security breached)
  1869.  
  1870. To get suites of packages: tasksel
  1871.  
  1872. perform full upgrade (gets the files and asks to install them)
  1873.  aptitude full-upgrade
  1874. or 2-step method:
  1875.  apt-get update && apt-get upgrade
  1876.    apt-get update  (this gets the files)
  1877.    apt-get upgrade (this installs the updates)
  1878.  New release '13.04' available.
  1879.  Run 'do-release-upgrade' to upgrade to it.
  1880.  
  1881. apticron: cron script to email admin re details on package updates
  1882. unattended-upgrades: can be configured to automatically install security updates
  1883.  
  1884. Add a user (scheidi2) to sudo and admin
  1885.  usermod -aG sudo,adm,cdrom,tape,audio,plugdev,scanner,fuse,admin,sambashare scheidi2
  1886.  
  1887. "byobu" an xterminal mode that is sort of cute.
  1888.  
  1889. ======================================================
  1890. https://stackoverflow.com/questions/11450817/vim-how-do-i-clear-all-marks
  1891. ======================================================
  1892. edit ~.viminfo and delete the marks
  1893. or from within gvim
  1894. Marks are transfer points. Uppercase marks are to other files. This can be very dangerous,
  1895. as you can wipe out a file by referencing a mark ('R) and then writing tha content to your working file!!!
  1896. 'mark (eg 'R) takes you to that mark, which can be anywhere: another file, a remote drive, etc
  1897. :marks    <-- list all 'marks'
  1898. :delmarks!
  1899. :help viminfo <-- vi docs on viminfo
  1900.  
  1901. ======================================================
  1902. gvim !fmt command
  1903. ======================================================
  1904. Go to starting line and give mark command:
  1905. m'x
  1906. Move the final line and give a second mark (or use default .)
  1907. 'x,. !fmt -w 100
  1908. the above will reformat from 'x to . making the lines 100 characters long.
  1909.  
  1910. ======================================================================
  1911. GVIM defaults:
  1912. ======================================================================
  1913. To delete all marks permanently: rm ~/.viminfo
  1914.  
  1915. To remember last line edited:
  1916.    https://bugs.launchpad.net/ubuntu/+source/vim/+bug/69611
  1917.  
  1918. Apr 6, 2016
  1919. I modified /etc/vim/vimrc to set the defaults to play nice. This is a big change
  1920. http://superuser.com/questions/419372/how-do-i-set-the-default-window-size-in-vim
  1921.  
  1922. I also changed this to set the screen size:
  1923. /etc/vim/gvimrc.local
  1924. if has("gui_running")
  1925.   " GUI is running or is about to start.
  1926.   " Maximize gvim window.
  1927.   set lines=999 columns=999
  1928. else
  1929.   " This is console Vim.
  1930.   if exists("+lines")
  1931.     set lines=50
  1932.   endif
  1933.   if exists("+columns")
  1934.     set columns=100
  1935.   endif
  1936. endif
  1937. Jan 24, 2016:
  1938.   Updated /etc/vim/ with the files from X250 to get full-page edits
  1939.  
  1940.  
  1941. OLD:
  1942. I added alias='gvim -rc' to .bashrc
  1943. Make changes to /etc/vim/vimrc to override debian defaults:
  1944.  /usr/share/vim/vimcurrent/debian.vim  <-- debian default
  1945.  
  1946. vim (gvim) failed to remember last edits of files: ~/.viminfo was owned by root (=>read error)
  1947. Also, do not have a ~/.vim file:  it overrides the /etc/vim/vimrc file
  1948. To "fix" gvim to remember the last line you edited before exiting, change /etc/vim/vimrc
  1949.  https://bugs.launchpad.net/ubuntu/+source/vim/+bug/69611
  1950. ======================================================================
  1951.  
  1952. ======================================================================
  1953. Updated graphics i915 graphics driver on April 9, 2013 (see software updater history)
  1954. ======================================================================
  1955. Error message when I tried to install xserver-xorg-video-intel-dbg
  1956.  "xserver-xorg-video-intel (= 2:2.20.9-0ubuntu2.1) but
  1957.   2:2.20.12-0ubuntu0~quantal is to be installed
  1958.  
  1959. Got a message saying that this package: i915-3.6-3.5-dkms
  1960.  
  1961. is not part of the ubuntu distribution, and that I should remove it,
  1962. and reinstall regular package.
  1963.  
  1964. /etc/apt/sources.list.d
  1965. deb https://download.01.org/gfx/ubuntu/12.10/main/ Ubuntu 12.10
  1966. ckage "i915-3.6-3.5" part of PPA
  1967. http://www.ubuntuupdates.org/ppa/intel_linux_graphics?dist=Ubuntu
  1968.  
  1969. May 19 2013 during a regular install, error installing package
  1970.  i915-3.6-3.5-dkms
  1971. Crash report says:
  1972. KnownReport:
  1973. https://bugs.launchpad.net/bugs/1016974
  1974. https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1016974
  1975.  
  1976. ======================================================================
  1977. LaTeX config.ps file
  1978. ======================================================================
  1979. /usr/share/texlive/texmf-dist/dvips/config/config.ps
  1980. Add to end of config.ps
  1981. p +/usr/share/texlive/texmf-dist/fonts/map/dvips/tetex/dvips35.map
  1982. Then run: updmap-sys
  1983.  
  1984. ======================================================================
  1985. AutoMake a ps from name.tex, and display update: No dvi and ps outputs:
  1986. ======================================================================
  1987. > latexmk -ps -pvc name.tex
  1988. > pdflatexmk name.tex
  1989.  
  1990. ===================================================================
  1991. There is still a major problem with hot keys
  1992. ===================================================================
  1993. compiz settings do all this stuff
  1994.  
  1995. Archive (deb apt-get) packages:
  1996.         /var/cache/apt/archives/
  1997.         /var/lib/dpkg/info
  1998.  
  1999. Unity is the screen mannager: To config see UnityReset.txt
  2000.  
  2001. Feb 10, 2013 I lost my system do to my mis-package management
  2002. It was painful, but I upgraded to 12.10
  2003. May things need to be reconf'ed, such as
  2004.  key bindings
  2005.  passwords
  2006.  VPN (see ./Wifi.txt for config info)
  2007.  missing packages
  2008.  
  2009. ======================================================================
  2010. WiFi problems:
  2011. ======================================================================
  2012.  WiFi.txt
  2013.  WiFiCrash.txt
  2014.  
  2015. ======================================================================
  2016. fixed the vpn menu problem: 'sudo vpn-applet.sh'
  2017. ======================================================================
  2018. /usr/local/bin/vpn-applet.sh restores the menu
  2019.  
  2020. History:
  2021. I searched on "gnome VPN connections submenu error" and found
  2022. http://askubuntu.com/questions/57292/nm-applets-vpn-menu-disappears/247705#247705
  2023. Then I created this shell script that restarts the nm-applet:
  2024.  
  2025.  
  2026. ======================================================================
  2027. Ck the status of a hard drive:
  2028.  smartctl -a /dev/sda
  2029. ======================================================================
  2030.  
  2031. ======================================================================
  2032. Ubuntu package mannager applications:
  2033. dpkg
  2034. dpkg-query -l | grep mysql
  2035. dselect is the package manager front end
  2036.  
  2037. aptitude is a commandline package mannager via nurses
  2038.  
  2039. ======================================================================
  2040. http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
  2041. > usermod -G grp1,grp2,grp3 username
  2042.  
  2043. To convert a winmail.dat file to its source:
  2044.  tnef winmail.dat
  2045. http://www.faqforge.com/linux/how-to-open-winmail-dat-files-on-ubuntu-or-debian-linux/
  2046.  
  2047. ======================================================================
  2048. To make a usb-boot (~1GB) disk:
  2049.  Download the ISO image from the ubuntu website, and then use a command
  2050. ======================================================================
  2051. USB iso formatter pgm: imagewriter (installed Dec 20, 2013)
  2052. All that imagewriter does is call "dd image.iso /dev/sdb"
  2053.  OR
  2054. sudo usb-creator-gtk --iso ubuntu-12.04-desktop-i386.iso
  2055. it may be necessary to erase drive first, or to format it with fdisk+mkfs
  2056.  
  2057. I had to run this twice, once to erase the disk and again to run it.
  2058. It was necessary to run as root
  2059. sudo usb-creator-gtk --iso /tmp/ubuntu-12.04.3-server-i386.iso /dev/sdb
  2060.  
  2061. To boot the linux image I made, it was necessary to use an old grub.conf file.
  2062. For more information look at /boot/README.jba
  2063. ======================================================================
  2064.  
  2065. ======================================================================
  2066. make an iso image, with progress
  2067. ======================================================================
  2068. dd if=/dev/sdc1 of=/tmp/output.iso status=progress
  2069.  
  2070. (pv -n /dev/sda | dd of=/dev/sdb bs=128M conv=notrunc,noerror) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0
  2071.  
  2072. ======================================================================
  2073. pulseaudio stuff (matlab conflicts):
  2074. ======================================================================
  2075. ---------------------------------------------------------------------
  2076. http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/FirstSteps
  2077. ---------------------------------------------------------------------
  2078. Pulseaudio conf: the files may be found in /etc/pulse/
  2079. client.conf  daemon.conf  default.pa  system.pa
  2080.  
  2081. ---------------------------------------------------------------------
  2082. http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/CLI
  2083. ---------------------------------------------------------------------
  2084.  pacmd is a command-line tool for talking to pulseaudio
  2085. Example:
  2086.  pacmd
  2087.  >>> help
  2088.  >>> exit
  2089.  
  2090.  
  2091. ---------------------------------------------------------------------
  2092. How to stop pulseaudio:
  2093. ---------------------------------------------------------------------
  2094. https://wiki.ubuntu.com/PulseAudio/
  2095. PulseAudio Removal
  2096.  
  2097. If you decide you no longer like PulseAudio and would like to disable it: Remove the added lines to /etc/asound.conf If /etc/asound.conf did not exist when you installed PulseAudio, you may remove /etc/asound.conf entirely.
  2098. After this, you may remove all of the installed PulseAudio packages.
  2099. To disable pulseaudio in hardy you need to select alsa for for all options in /system/preferences/sound
  2100. P.S. In Xubuntu 10.04 it is enough, if you issue command
  2101.  sudo apt-get autoremove pulseaudio
  2102. in terminal and then restart Xubuntu.
  2103.  
  2104. ---------------------------------------------------------------------
  2105. How to stop pulseaudio:
  2106. ---------------------------------------------------------------------
  2107.  http://ptspts.blogspot.kr/2010/11/how-to-disable-pulseaudio-on-ubuntu.html
  2108. To kill pulseaudio, I modified client.conf as follows:
  2109. ;JBA Jun 29, 2012
  2110.  default-server = 0.0.0.1
  2111.  autospawn = no
  2112. To restore it, just comment these out, and it should be easily restarted
  2113. look at script in ~/.pulse as an alternative way to do this
  2114.  
  2115.  
  2116. To edit postscript: inkscape
  2117.  
  2118. To encode a file
  2119. gpg -c filename
  2120. then type in the phasephrase to use
  2121. To decrypt
  2122. gpg -d filename.gpg
  2123.  
  2124. To convert latex into .odt (OpenOffice) format:
  2125.  mk4ht oolatex filename.tex
  2126.  
  2127. http://keyring.debian.org/creating-key.html
  2128. This command will generate a subkey, which may be used with a passphrase
  2129.  
  2130. gpg --edit-key 126627D8 subkey
  2131. pub  2048D/126627D8  created: 2012-03-31  expires: never       usage: SC  
  2132.                      trust: ultimate      validity: ultimate
  2133. sub  2048D/17252CF5  created: 2012-03-31  expires: never       usage: S  
  2134. [ultimate] (1). jontallen (gpg key for jontallen) <jontallen@ieee.org>
  2135.  
  2136.  
  2137. DVD tips for Playing:
  2138. https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs
  2139.  
  2140. DVD BACKUP:
  2141. TO burn a dvd having block errors:
  2142. ddrescue /dev/sr0 /usr/local/MM/ISO/file.iso log.txt
  2143. tailf log.txt
  2144.  
  2145. TO DO:
  2146. to get xear fully operational (in order of importance):
  2147. + rebuild kernel to that ahd and xmaple work (done but it needs to be done once more)
  2148. When I installed 10.04 everyting broke. I was able to recover and boot the old kernal
  2149. by replacing /boot/grub.cfg with grub.cfg.Feb11.12 (updated to Aug27.12).
  2150. Look at /boot/README.jba for details
  2151.  
  2152.  
  2153. ============================================================================
  2154. For Compiz (ccsm) settings of Unity (i.e., to remove Alt+F2) see:
  2155. ============================================================================
  2156.  UnitySettings.txt
  2157. for detailed proceedure (its complicated)
  2158. This must be done after unity --reset
  2159.  
  2160. UNITY RESTART: unity --replace is deprecated. Instead, use the following:
  2161. dconf reset -f /org/compiz/   <do this as root; reboot and then try it
  2162. setsid unity
  2163.  OR
  2164. unity --reset-icons &disown
  2165.  
  2166.  Alternate (dont do use these methods):
  2167. load gnome-classic package (via synaptic)
  2168.  Hardcore method:
  2169. cd .config
  2170. mv compiz-1 compiz-1.backup
  2171. mv dconf dconf-backup
  2172.  
  2173.  
  2174. DASHER:
  2175. To add an icon to the dasher search list, add a file to /usr/share/applications/
  2176. I added "ahd.desktop"
  2177.  
  2178. LATEX:
  2179. To rebuild latex: mktexlsr
  2180.  
  2181. To update latex from CTAN:
  2182. /usr/local/texlive/2011/bin/i386-linux$ sudo /usr/local/texlive/2011/bin/i386-linux/tlmgr update --all
  2183.  It is necessary to do it this way sinice root does not seem to have access to tlmgr
  2184.  
  2185.  
  2186. ============================================================================
  2187. Below is the contents of commands.X200
  2188. ============================================================================
  2189.  
  2190. cups: http://localhost:631/
  2191.  
  2192. important sysadmin commands from
  2193. http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html
  2194. vmstat 3|-m|-a
  2195. uptime
  2196. w (what are users doing)
  2197. pgrep
  2198. ss (like netstat)
  2199. iptraf
  2200. tcpdump
  2201. nagios (fan)
  2202. cacti
  2203. lsof
  2204. ntop, htop
  2205. mtr
  2206. gtkterm  % usb-com port software
  2207.  
  2208. Battery state:
  2209.  cat /proc/acpi/battery/BAT0
  2210.  
  2211. add an existing-group to user LOGIN
  2212. useradd -Ga ExistingGroup LOGIN
  2213.  
  2214. smplayer screenshots are in: /home/jba/.config/smplayer/screenshots
  2215.  
  2216. Nice tutorial on the "find" command:
  2217.   http://content.hccfl.edu/pollock/unix/findcmd.htm
  2218.  
  2219. %E.G.: Find a dir named shared anywhere in snapshots/ and print the path
  2220. > find snapshots/ -name shared -type d -print
  2221.  
  2222.  
  2223. To automatically compile and view: latexmk -pvc -view=ps summary2.tex
  2224. Use this with ev summary2.ps
  2225.  
  2226. "byobu" a sreen terminal mode that is sort of cute.
  2227.  
  2228. evince hanging:
  2229. > 26777 ? S 0:00 dbus-launch --exit-with-session evince output.pdf
  2230. > How, other than a reboot, do I fix this problem. There are 20 or so such
  2231. > hung processes from evince.
  2232. pkill evince
  2233. pgrep evince
  2234.  
  2235.  
  2236. WIKI Edits:
  2237. To "fix" the problem with network communicationw with the wiki, use vpn
  2238.  
  2239. Packages: http://en.wikibooks.org/wiki/LaTeX/Packages
  2240. eqnarray: Dont use latex's eqnarray; Rather use \begin{align}.
  2241.  http://texblog.net/latex-archive/maths/eqnarray-align-environment/
  2242. Page layout: http://en.wikibooks.org/wiki/LaTeX/Page_Layout
  2243.  not so good: \usepackage[margin=1in, paperheight=8.5in]{geometry}
  2244.  
  2245. WiFi.txt for details of logins
  2246.  
  2247. NetworkManager vs wicd:
  2248. On Feb 19 I replaced the NetworkManager with wicd.
  2249. Homepage: http://www.gnome.org/projects/NetworkManager/
  2250. "network-mannager" This package provides the userspace daemons.
  2251. NetworkManager attempts to keep an active network connection available at all
  2252. times. It is intended only for the desktop use-case, and is not intended for
  2253. usage on servers. The point of NetworkManager is to make networking
  2254. configuration and setup as painless and automatic as possible.  If using DHCP,
  2255. NetworkManager is _intended_ to replace default routes, obtain IP addresses
  2256. from a DHCP server, and change nameservers whenever it sees fit.
  2257.  
  2258.  
  2259. Wireless errors (failure tologin): James F. Eyrich
  2260. We have two suggestions to begin with:
  2261. 1) roaming aggressiveness to the lowest setting
  2262. 2) set the power savings to maximum transmission power (lowest power savings)
  2263. Roger says to use iwconfig with flags to manipulate the power. Also these commands
  2264. seem useful to monitor the dtate:
  2265. 3) First, turn off auto tx power
  2266. sudo iwconfig wlan0 txpower fixed
  2267. 4) Then you'll need to increase the maximum power.
  2268. sudo iwconfig wlan0 txpower 30
  2269. 5) while sleep 1;do nm-tool |grep \*;done
  2270. mtr google.com
  2271.  
  2272.  
  2273. ========================================================================
  2274. MIME unpack
  2275. ========================================================================
  2276. munpack: to unpack MIME files from an email, use "munpack -C FromDir file.eml"
  2277. testdisk: Program to rebuild filesystems, similar to fdisk, but much better.
  2278. metacity --replace &  %kill and replace compiz, when it is not working right
  2279. compiz --replace &   %Return to compiz
  2280.  
  2281. The gnome-panel stopped working. I killed the gnome-panel process and
  2282. then they all came back and started working again. Easy fix hord to figure
  2283. out however.
  2284.  
  2285. To sync the filesystem and flush the cache (#==as root):
  2286. # sync; echo 3 > /proc/sys/vm/drop_caches
  2287.  
  2288. dkms - Dynamic Kernel Module Support (installed May 17, 2010)
  2289.   http://linux.dell.com/projects.shtml
  2290.  
  2291. digital clock screen saver:
  2292. sudo vi /usr/share/applications/screensavers/gltext.desktop
  2293. cd /usr/share/applications/screensavers
  2294. sudo vi gltext.desktop
  2295. http://www.growlichat.com/blog/2007/05/05/how-to-get-a-clock-screensaver-running-under-ubuntu/
  2296.  
  2297. Reading DVD encryption: libdvdcss.txt
  2298.  
  2299. To set up matlab: Matlab.txt
  2300.  
  2301. xmaple, LIB5 and AHD bugs: LIB5-AHD-maple-matlabr3.txt
  2302.         it is necessary to make a new kernel
  2303.  
  2304. How to download and make a new kernel: MakeKernel.txt
  2305.  
  2306. To "fix" gvim to remember the last line you edited before exiting, change /etc/vim/vimrc
  2307.  https://bugs.launchpad.net/ubuntu/+source/vim/+bug/69611
  2308.  
  2309. To rename a flash drive:
  2310. https://help.ubuntu.com/community/RenameUSBDrive
  2311. fat32 use mtools
  2312. df will give the device name (e.g., /dev/sdb1)
  2313. Determine the existing label:
  2314. sudo mlabel -i /dev/sdb1 -s ::
  2315. Give a new label:
  2316. sudo mlabel -i /dev/sdb1 ::Kingston
Parsed in 0.225 seconds