===================================================================== List partitions in /dev/* (block-devices) and *.iso (files) ===================================================================== sudo parted -l #<-- list all partitions and types (including lvm) #mount partition /sdb1 on /dev/sdb sudo mount /dev/sdb1 X1-linux-480G-M2 #<-- ubuntu #fedora #mount /dev/fedora/root X1-linux-480G-M2/root #mount /dev/fedora/home X1-linux-480G-M2/home ===================================================================== How install packages under fedora ===================================================================== dnf install texlive-"keyvalue" eg. dnf install texlive-skull ===================================================================== How to edit wikipages to replace ${ ... }$ with \( ... \) ===================================================================== gvim macros to replace {$ ... $} with \( ... \ ) (no extra spaces) 1: g/{\$/s//\\(/g 2: g/\$}/s//\\)/g ===================================================================== fix $ in URL ===================================================================== \urldef{\myurl}\url|http://something.with.%.is.ok.here.org| \begin{document} \myurl \end{document} ===================================================================== ===================================================================== libreoffice writer openoffice write protection: Turn off ====================================================================== I solved my problem with protected forms by unsetting an option in the Options dialog: Tools > Options ... > LibreOffice Writer > Compatibility > unclick "Protect form " line. ====================================================================== Submitting expenses ====================================================================== 1) Use the UIUC VPN if outside univ 2) go to URL a and login. Their are two steps: i) Submit reciept via Lisa; ii) submit for approval a) https://travelexpense.admin.uillinois.edu/jetspeed/ b) https://www.obfs.uillinois.edu/payments/payables-processing-status <--- info Possible help: Office of Business and Financial Services (OBFS) To look over and submit your expense report: Log in to your TEM at http://www.obfs.uillinois.edu/tem-resources/ Then: 1. Click the pencil next to the # ER00xxxxxx and look it over, if you agree, hit the submit button. 2. This action is your electronic signature on the affidavit that signifies you verify the items included are true and you approve the ER. 3. The column “Activity name” should change from “ER Create” to “ ER Hold Receipts” once successfully submitted. ====================================================================== etc/apt/sources.list ====================================================================== this contains the default list of servers. If there is a bad server on the list you will get an error. If it is a bad ppa. To fix this remove that server from the default source.list Here is what was causing the problem (not commented out) #This is causing an error when I try to update softwares. Dont do this again #JBA: https://www.maketecheasier.com/easily-mount-your-iphone-as-an-external-drive-in-ubuntu/ --> #deb http://ppa.launchpad.net/jonabeck/ppa/ubuntu bionic main --> #deb-src http://ppa.launchpad.net/jonabeck/ppa/ubuntu bionic main Removing these two lines fixed the problem. https://askubuntu.com/questions/879064/failed-to-fetch-http-ppa-launchpad-net ====================================================================== bash ====================================================================== ls -shS sort by size ====================================================================== keyboard monitor programs (https://superuser.com/questions/248517/show-keys-pressed-in-linux) ====================================================================== key-mon (great) xev (too complex) showkey -a [-h -s -k -V] (Ctrl+D to terminate) (Ugly) ====================================================================== Confure X1-Extreme thinkpad ====================================================================== ~/Admin/X1-Extreme-suspend.txt Video not working audio sometimes fails ====================================================================== systemctl COMMAND systemd-suspend.service ====================================================================== systemctl - Control the systemd system and service manager man systemctl for details Examples: systemctl systemd-suspend.service systemctl --dry-run suspend man systemd-suspend.service <-- suspends ====================================================================== gnome-terminal hotkey alt-w xterm not working ====================================================================== For unknown reasons, alt+x fails after suspend/resume (alt+X i.e., alt+Shift+x) <--- this works and is a reasonable alternative Fix: go to "system settings/Keyboard/Launchers/Launch terminal" define new key as "Alt+shift+x" ====================================================================== convert HEIC apple compressed jpg file ====================================================================== Example: heif-convert IMG_1605.HEIC IMG_1605.jpg ====================================================================== Mount iphone (not fully tested nor working) ====================================================================== https://www.maketecheasier.com/easily-mount-your-iphone-as-an-external-drive-in-ubuntu/ gvim gedit /etc/apt/sources.list Add at bottom: http://ppa.launchpad.net/jonabeck/ppa/ubuntu bionic main deb-src http://ppa.launchpad.net/jonabeck/ppa/ubuntu bionic main From the command line: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F0876AC9 sudo apt-get update sudo apt-get install ifuse ====================================================================== Print out favorite-apps ====================================================================== gsettings get org.gnome.shell favorite-apps ['ubiquity.desktop', 'firefox.desktop', 'thunderbird.desktop', 'org.gnome.Nautilus.desktop', 'rhythmbox.desktop', 'libreoffice-writer.desktop', 'org.gnome.Software.desktop', 'yelp.desktop', 'ubuntu-amazon-default.desktop'] 'gsettings set' will allow you to change it. ====================================================================== Swap ctrl and capslock ====================================================================== this swaps after login: I want to change this as root, and jba sudo vi /etc/default/keyboard XKBOPTIONS="ctrl:swapcaps" ====================================================================== upgrade ====================================================================== stamp=/var/lib/ubuntu-release-upgrader/release-upgrade-available /usr/lib/ubuntu-release-upgrader/do-partial-upgrade update to the latest packages for the present release: sudo aptitude full-upgrade sudo do-full-upgrade (latest LTS) OR the same thing in two commands: sudo apt-get update sudo apt-get upgrade 'sudo do-release-upgrade' to upgrade to NEXT LTD release 'update-manager' graphical method modify margins on pdfbook2 defaults -i40 -o150 -t30 -b 30 --signature=4*m pdfbook2 -o 20 -i 50 ========================================================================= apply.medicine.illinois.edu/manage/ ========================================================================= ========================================================================= printer cheap cartage ========================================================================= https://www.sundatasupply.com/ ========================================================================= Modify dir to be 755, but not files: ========================================================================= find . -type d -exec chmod 755 {} \; # chmod 755 all directories in "." find . -type l -exec ls -1 {} \; # ls -1 all links in "." ---------------------------------------------------------------------------------- legal "-type|-xtype" arguments (e.g.: -type d,l, search for symlinks to directories) d directory p pipe r regular file l sym-link legal "actions" -delete -exec COMMAND {} ; -print -fprint -ls -ok COMMAND ; ask legal "OPERATORS" ... see man page for file ---------------------------------------------------------------------------------- ========================================================================= https on UIUC servers: ========================================================================= ssh engr: --> webhost.engr... http://jontalle.web.engr.illinois.edu/ <-- this works (Prefered) http://webhost.engr.illinois.edu/~jontalle/ <-- this works Both give: Parent Directory - MISC/ 2018-07-15 07:01 - Private/ 2018-05-12 05:54 - Public/ 2018-05-30 14:51 - cgi-bin/ 2015-12-22 12:19 - uploads/ 2018-07-16 20:13 - ------------------------------------------------------------------------- ssh engr: jontalle@cpanel3:~$ ls access-logs etc Private tmp Admin gvimrc.local Public uploads Ali.pub jinli2-131x180.jpeg public_ftp var Allen91b.pdf Keller596Report_May18.pdf public_html www anInvitation.17 logs README.txt cache mail ssl DOTbashrc perl5 temp ========================================================================= SCP Examples: scp FILENAME engr:uploads/537/Lectures ========================================================================= ssh to amo.engr.... ========================================================================= ssh amo: auditorymodels@auditorymodels.web.engr.illinois.edu [~]# ls access-logs etc mail pmwiki_upgrade public_html ssl var cache logs perl5 public_ftp README.jba tmp www URLs for amo == wiki: https://auditorymodels.org/ auditorymodels.web.engr.illinois.edu/ wiki: [[http://auditorymodels.web.engr.illinois.edu/index.php?n=Courses.ECE298JA-F15|ECE298-JA F2015]] Equivilent URLs [[auditorymodels.org?n=Courses.ECE298JA-F15|ECE298-JA F2015]] [[auditorymodels.org?n=Courses.ECE298JA-F17]] [[auditorymodels.org/index.php?n=Courses.ECE298JA-F17]] [[jontalle.web.engr.illinois.edu/uploads/298.17/ECE298JA-V3.00.pdf]] ====================================================================== VIM: indent going crazy in vi: a result of installing gvim-gtk3 and something else, that turned on "set inde" ====================================================================== http://vimdoc.sourceforge.net/htmldoc/options.html The following worked: (http://vim.wikia.com/wiki/How_to_stop_auto_indenting) ~/.vimrc set inde= inde is the short form for indentexpr, which when editing a tex file is set to indentexpr=GetTeXIndent() This does crazy indenting that I dont want. The autoindent issues only applies to tex files! ====================================================================== synclient: man synaptics (control keypad settings) ====================================================================== https://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html <-- full manual Default settings for X260 are in /home/jba/Work/Admin/Admin/synclient.settings How to use with Thinkpad: apt install synaptic (no s) /usr/bin/synclient allows one to modify the synaptics driver, in great detail man synclient man 4 synaptics: gives details on options synclient [-l] gives list of options (variables): Example: Parameter settings: LeftEdge = 1545 RightEdge = 5399 TopEdge = 1333 BottomEdge = 4521 ... etc synclient This worked: synclient AreaRightEdge=4000 (4500 may be better) synclient AreaLeftEdge=3000 This number is defined from the left (not right) 2000 90% 4000 55% 4500 30% 5000 20% 5500 5% 6000 0% AreaLeftEdge 2000 10% 3000 35% https://wiki.archlinux.org/index.php/Talk:Touchpad_Synaptics ftp://www.x.org/pub/X11R7.5/doc/man/man1/synclient.1.html man page for synaptics https://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html https://askubuntu.com/questions/553791/official-documentation-of-synclient-parameters https://www.techrepublic.com/article/tweak-your-touchpad-to-taste-in-linux/ Below seems to be way out of date: https://askubuntu.com/questions/290009/how-do-i-make-my-synclient-settings-stick /usr/share/X11/xorg.conf.d/70-synaptics.conf Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" # Option "RTCornerButton" "0" /home/jba sudo rsync -aP --usermap=jba:jba --groupmap=admin:jba jba/ /home/jba/ <-- should be identical cd /home/jba/ sudo rsync -aP --usermap=jba:jba --groupmap=admin:jba * /home/jba/ ====================================================================== Firefox webpush: ====================================================================== https://support.mozilla.org/en-US/kb/push-notifications-firefox?as=u&utm_source=inproduct From firefox: click on: ||| -> security -> notifications -> Settings ====================================================================== How to make a github package: https://osf.io/ (open science framework) https://github.com/cljsjs/packages/wiki/Creating-Packages ====================================================================== ====================================================================== Had problem with home printer ====================================================================== ran hp-doctor as jba and this installed some required drivers. http://hplipopensource.com/hplip-web/index.html ====================================================================== How to find bad simlinks ====================================================================== find . -type l -xtype l To resolve simlinks to their source: readlink -f filename =================================================================== dconf-editor =================================================================== Edit gnome apps ====================================================================== PDF Tools: pdftk, pdfjoin, qpdf, fix-qdf, pdfpages ====================================================================== qpdf adds/removes passwords, and can manipulate content freely: /usr/share/doc/qpdf/qpdf-manual.pdf fix-qdf edits pdf files (see manual: file:///usr/share/doc/qpdf/qpdf-manual.pdf) This encrypted the input pdf to junk.pdf; both PWs worked jba@x260:~/298/anInvitation.15$ qpdf --encrypt jont 325345745 256 -- anInvitation.pdf junk.pdf pdftk Manipulates pdf files in many ways Extract pages from a pdf file, and output out.pdf Examples: pdftk name.pdf cat 2-20 50-end output out.pdf pdftk can extract single pages of a pdf document and run OCR on the output, and then merge More examples: /home/jba/Desktop/Books/Technical/GreenbergSections/Split.sh > pdftk ./Greenberg-AdvancedEngineeringMathematics.98.pdf cat 1-24 output 0-TOC+Preface.pdf > pdftk TOC+Preface.pdf ODEs.pdf LinAlg.pdf Index.pdf output Greenberg-AdvEngMath.pdf ......................................... join some files: pdftk Exam1-sol-v1.35.pdf Exam2-F17-sol.pdf Exam3-F17-sol.pdf output junk.pdf Break file appart Split.sh <-Best pdftk method: /usr/local/MM/BOOKS/Technical/GreenbergSections/Split.sh Output pages from in-file.pdf pdftk in-file.pdf cat 1-20,30-31 output out-1-20.30-31.pdf pdftk in-file.pdf cat 1-endeast output out-east.pdf <--rotate paes 1-end by 90 degrees followed by poster command: pdfnup --nup 4x3 Keynote.pdf Summary.tex <-- OK LaTeX method: /usr/local/UIUC/ECE298JA.15/Admin/ECE298JA-Admin/SubmittedJan21.17/Summary.tex Latex processor of pdf files: pdfpages.pdf https://ctan.org/pkg/pdfpages?lang=en pdfpages command options format:: 1) \usepackage[⟨options⟩]{pdfpages} 2) \includepdf[⟨key=val ⟩]{⟨filename⟩} Example: Examples: 537.F18 final summary report: /home/jba/537/Admin/FinalReport.F18/MakeReportSummary.tex Usage: pdflatex MakeReportSummary Typical pdfpages command: \includepdf[lastpage=2,pages={1,3}]{name.pdf} lastpage=2 is only necessary if your using pdfpages with latex and create a .dvi file Man page: doesnt exist. evince ~/Admin/pdfpages.pdf =================================================================== OCR programs to use on pdf files =================================================================== gcan2pdf: mulilevel program to scan and convert to verious formats, along with OCR TO use this, run gscan2pdf, then open the file, and then from tools/ocr do the OCR output. ====================================================================== The man page is extensive This seems to be the "cats-meow" It also uses gocr cuneiform tesseract sane http://gscan2pdf.sourceforge.net/ https://help.ubuntu.com/community/OCR use gscan2pdf to OCR these files. This must be done manually, one file at a time. pdfocr.ru Ruby shell script ocrodjvu ocr of djvu files djvu2hocr ? hocr2djvused ? tesseract ocrad gocr Example: ~/Books/Technical/Greenberg/ ------------------------------------------------------------------------ ocr engine: tesseract ------------------------------------------------------------------------ https://onetransistor.blogspot.com/2015/12/ocr-searchable-pdf-linux.html 1. Tesseract & PDFsandwich 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: sudo apt-get install tesseract-ocr tesseract-ocr-all 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. ... 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: tesseract -l eng file.tif file pdf If there are multiple images to be OCR-ed they may be joined into one file using tiffcp. There would be example command: tiffcp *.tif file.tiff Afterwards, output file may be processed with Tesseract. uiuc wireless network: click on no cert require, give netid and uiuc password ====================================================================== Servers under the care and feeding of JBA ====================================================================== check for ubuntu release https://wiki.ubuntu.com/Releases System I sysop: xear JBA personal laptop Ubuntu 14.04.1 LTS; x220 -> x250 -> x260 x220 ordered Nov 5, 2011 (~/Receipts/x220Reciept.pdf) sear 1404 basement server Ubuntu 12.04.4 LTS?; auditorymodels.org: Mimosa jba's personal system dear Lab system svana, bear Ubuntu 12.04.5 LTS; 130.126.118.75; 10.42.0.1 svana (booth-sear) Debian-8ubuntu1.5; 10.42.0.68 bear Lab sysem via dear bear Lab via dear (cliston's office) Ubuntu 12.04.5 LTS; 130.126.118.12; 10.42.0.1 ebony Mimosa server Ubuntu 12.10; 173.161.115.242; 192.168.168.1 maple Mimosa internal server kapok Allen (ancient server) I need to be sure they all have LTS systems. If they get out of release, they cannot be upgraded. This has happened to ebony. .................................................................. ><>< Details ><>< .................................................................. x260: jba personal computer, following the loss of xear (x250) in Oakland DATE: Feb 2016- Desc: Ubuntu 16.04 LTS Release: 16.04 xenial Processor: Intel Core i5-6300U 2.4GHzx4 Graphics: Intel HD Graphics 520 (Skylake GT2) OS: 64-bit Disk: 485.9 GB SST near: ??? Maybe this was the name after xear was stolen? xear: jba's personal x260 computer jba@xear:~$ lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic DATES: Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty sear: 1404 Sunny acres Rd, basement sear: Ubuntu 12.04.4 dear: lab computer (moved from Sandeeps office) root@dear:~# lsb_release -a New release '14.04.1 LTS' available. Run 'do-release-upgrade' to upgrade to it. Description: Ubuntu 12.04.5 LTS Codename: precise svana: lab-booth hear: In cliston's office: moved from Song's office hear: Ubuntu 12.04.5 New release '14.04.1 LTS' available. Run 'do-release-upgrade' to upgrade to it. Description: Ubuntu 12.04.5 LTS Codename: precise EBONY: jba@ebony:~$ lsb_release -a Description: Ubuntu 12.10 Release: 12.10 Codename: quantal Ck for vulnerable bash shell: env x='() { :;}; echo vulnerable' bash -c "echo this is a test" ====================================================== matlab startup file sets the default font size, etc. ====================================================== /usr/local/2015a/toolbox/local/matlabrc.m LaTeX symbols: https://www.mathworks.com/help/matlab/ref/xlabel.html ====================================================== JAVASCRIPT ====================================================== node - javascript server npm - javascript package manager Usage: npm where is one of: access, add-user, adduser, apihelp, author, bin, bugs, c, cache, completion, config, ddp, dedupe, deprecate, dist-tag, dist-tags, docs, edit, explore, faq, find, find-dupes, get, help, help-search, home, i, info, init, install, install-test, issues, it, la, link, list, ll, ln, login, logout, ls, outdated, owner, pack, ping, prefix, prune, publish, r, rb, rebuild, remove, repo, restart, rm, root, run-script, s, se, search, set, show, shrinkwrap, star, stars, start, stop, t, tag, team, test, tst, un, uninstall, unlink, unpublish, unstar, up, update, upgrade, v, verison, version, view, whoami ====================================================== aspell dump config ====================================================== to dump the default config info ====================================================== # Download and Install R and RStudio ====================================================== ----------------------------- ><><>< R ><><>< ----------------------------- apt purge r-base sudo apt autoremove apt install r-base apt install libnlopt-dev <-- required to not have the nlopt package error R > library.package('lme4',dependencies=TRUE) ....................................... ><><>< RStudio ><><>< ....................................... https://www.r-bloggers.com/download-and-install-r-in-ubuntu/ First install R sudo apt update sudo apt install r-base sudo apt-get install gdebi-core <-- this gets the deb installer gdebi download the latest deb package: https://www.rstudio.com/products/rstudio/download/#download https://download1.rstudio.org/rstudio-xenial-1.1.456-amd64.deb sudo gdebi rstudio-1.0.44-amd64.deb <-- This installs Rstudio This worked on Sep 15, 2018 rm rstudio-1.0.44-amd64.deb <-- remove deb package Latest versions of Rstudio https://www.rstudio.com/products/rstudio/download/#download To run: rstudio to config: http://stat.ethz.ch/R-manual/R-patched/library/utils/html/setRepositories.html https://sourceforge.net/projects/daetools/files/gnu-linux-libs/nlopt-2.4.2.tar.gz/download ====================================================== https://ubuntuforums.org/showthread.php?t=2303694 ====================================================== gnome-tweek-tool said to fix left-mouse-click ====================================================== Programming scripts, etc ====================================================== /home/jba/Work/0_PROGRAMING/ ====================================================== How to install libdvdcss.so ====================================================== see: ~/Admin/libdvdcss.txt Also for live streaming of dvd: http://libre-software.net/multimedia-support-centos-scientific-linux-rhel/ ====================================================== https://ubuntuforums.org/showthread.php?t=2303694 ====================================================== gnome-tweek-tool said to fix left-mouse-click ====================================================== Programming scripts, etc ====================================================== /home/jba/Work/0_PROGRAMING/ ====================================================== https://stackoverflow.com/questions/11450817/vim-how-do-i-clear-all-marks ====================================================== edit ~.viminfo and delete the marks or from within gvim Marks are transfer points. Uppercase marks are to other files. This can be very dangerous, as you can wipe out a file by referencing a mark ('R) and then writing tha content to your working file!!! 'mark (eg 'R) takes you to that mark, which can be anywhere: another file, a remote drive, etc :marks <-- list all 'marks' :delmarks! :help viminfo <-- vi docs on viminfo ====================================================== How to install libdvdcss.so ====================================================== see: ~/Admin/libdvdcss.txt Also for live streaming of dvd: http://libre-software.net/multimedia-support-centos-scientific-linux-rhel/ ====================================================== Rsync an archive preserving the hard links ====================================================== mount the two disks; cd /media/jba/; as root: root@X260:/media/jba# rsync -a -H BACKUP-2/rsnapshot/ BACKUP-3/rsnapshot ====================================================== remote upgrade of bear ====================================================== To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with e.g.: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' ====================================================================== Octave basics: ====================================================================== Octave startup dir /usr/share/octave/4.2.2/m/startup/ To conf: octave-config (-h,-v, --m-site-dir, -p VAR: EDITOR, STARTUPFILEDIR, ...) ====================================================================== Octave install stuff ====================================================================== Example: pkg install io <= worked pkg load control pkg load symbolic pkg install -forge statistics <= worked pkg list Package Name | Version | Installation directory ----------------+---------+----------------------- io | 2.4.7 | /home/jba/octave/io-2.4.7 linear-algebra | 2.2.2 | /home/jba/octave/linear-algebra-2.2.2 statistics | 1.3.0 | /home/jba/octave/statistics-1.3.0 symbolic *| 2.6.0 | /home/jba/octave/symbolic-2.6.0 http://wiki.octave.org/FAQ#How_do_I_install_or_load_all_Octave-Forge_packages.3F > apt install liboctave-dev If you want a specific package to be loaded by default at startup, consider adding the pkg load command on your .octaverc file. ====================================================== octave 4.0.0 ====================================================== https://wiki.octave.org/OEP:pkg <- how to install packages https://wiki.octave.org/GNU_Octave_Wiki <- general info: Go here first https://wiki.octave.org/Category:Editors $ rename 's/ //' *.pdf The following did NOT work: >$ rename 's/\s //' *.pdf ====================================================================== brctl -h: ethernet bridge control panel ====================================================================== https://wiki.linuxfoundation.org/networking/bridge http://www.thegeekstuff.com/2017/06/brctl-bridge/ ====================================================================== MATLAB STUFF ====================================================================== Summary: The : lines in matlab have stopped working. My theory is that there is a missing lib. I found that libXp.so* was missing in the /usr/lib/x86* dir (where all the X11 libs are). Problem not solved. ====================================================================== I have a working bootable HD with 16.04 and it runs matlab fine (no error on grid). My present X240 does not plot "grid on" correctly. (solid lines - vs :) I think this comparision was flawed. When I finally ran the new lib, no difference. However there is a new libXaw7.so.7.0.0 Maybe thats the problem?? root@X260:/usr/lib/x86_64-linux-gnu# ls -lt libXa* lrwxrwxrwx 1 root root 15 Feb 25 14:16 libXau.so.6 -> libXau.so.6.0.0 lrwxrwxrwx 1 root root 16 Feb 25 14:16 libXaw7.so.7 -> libXaw7.so.7.0.0 lrwxrwxrwx 1 root root 12 Feb 25 14:16 libXaw.so.7 -> libXaw7.so.7 -rw-r--r-- 1 root root 471808 Aug 3 2015 libXaw7.so.7.0.0 -rw-r--r-- 1 root root 18700 Jun 15 2013 libXau.a lrwxrwxrwx 1 root root 15 Jun 15 2013 libXau.so -> libXau.so.6.0.0 -rw-r--r-- 1 root root 14456 Jun 15 2013 libXau.so.6.0.0 -rw-r--r-- 1 root root 375056 Aug 5 2012 libXaw3d.so.6.1 lrwxrwxrwx 1 root root 15 Aug 5 2012 libXaw3d.so.6 -> libXaw3d.so.6.1 I compared the /usr/lib/x86*/libX*.so* files across the two installs, and I found this difference WORKING: -rw-r--r-- 1 root root 14456 Jun 15 2013 libXau.so.6.0.0 <-- same -rw-r--r-- 1 root root 375056 Aug 5 2012 libXaw3d.so.6.1 lrwxrwxrwx 1 root root 15 Aug 5 2012 libXaw3d.so.6 -> libXaw3d.so.6.1 -rw-r--r-- 1 root root 14488 May 9 2012 libXss.so.1.0.0 <-- same NOT WORKING: -rw-r--r-- 1 root root 14456 Jun 15 2013 libXau.so.6.0.0 <--same -rw-r--r-- 1 root root 375056 Aug 5 2012 libXaw3d.so.6.1 lrwxrwxrwx 1 root root 15 Aug 5 2012 libXaw3d.so.6 -> libXaw3d.so.6.1 -rw-r--r-- 1 root root 14488 May 9 2012 libXss.so.1.0.0 <-- same Manual DIFF: libXaw3d.so.6.1 lrwxrwxrwx 1 root root 15 Aug 5 2012 libXaw3d.so.6 -> libXaw3d.so.6.1 Thus I tarred up the libXaw3d files and placed them in /root/ and /usr/lib/x86_64*... HOPE: if I untar the libXaw3d.so tar file in the /usr/lib/x86_64* dir, the problem will disappear ====================================================================== For matlab and Octave comments, use ~/Admin/matlab.txt ====================================================================== matlab stopped working. There is a missing library libXp.so which in 16.04 is no longer in /usr/lib/x86_64-linux-gnu I have a working matlab under 16.04, and the missing libXp.so.6 was installed in /usr/lib/x86_64-linux-gnu/ root@X260:/usr/lib/x86_64-linux-gnu# ls -lt libXp.* -rw-r--r-- 1 root root 14052 Mar 31 18:39 libXp.so.6.2.0.tgz -rw-r--r-- 1 root root 35712 Mar 31 18:36 libXp.so.6.2.0 lrwxrwxrwx 1 root root 14 Apr 13 2015 libXp.so.6 -> libXp.so.6.2.0 The source has been copied from the working system, to here and untarred as libXp.so.6.2.0 Once this was installed, matlab worked but the grid is solid lines, not dashed. On my X220 it is working, but not on the X260 or X220i libX* are NOT in: /lib/x86_64-linux-gnu ======================================================================== ssh/sshd ======================================================================== For ssh to work to remote server /etc/sshd_config 1) UsePAM yes UseLogin no X11Forwarding yes PasswordAuthentication no ChallengeResponseAuthentication no PermitEmptyPasswords no TCPKeepAlive yes PermitRootLogin without-password To convert keys generated by putty: convert ssh.com public key to OpenSSH o These key files start with [|---- BEGIN SSH2 PUBLIC KEY ---- |] o ssh-keygen -i -f ssh_key.pub > openssh_key.pub ====================================================================== Install anaconda ====================================================================== https://docs.anaconda.com/anaconda/install/linux adds anaconda path to last line of ~/.bashrc After your install is complete, verify it by opening Anaconda Navigator, a program that is included with Anaconda. In terminal, enter %> anaconda-navigator If Navigator opens, you have successfully installed Anaconda. It opened (but took a while) Next steps: https://docs.anaconda.com/anaconda/user-guide/getting-started To uninstall: rm -rf ~/anaconda3 If you already have Anaconda and want to update SymPy to the latest version, use: $> conda update sympy This worked, and then syms worked under octave https://docs.anaconda.com/anaconda/packages/pkg-docs ====================================================================== Install python and sympy ====================================================================== https://www.gnu.org/software/octave/doc/interpreter/Installing-and-Removing-Packages.html #Installing-and-Removing-Packages from octave: pkg list pkg update help pkg pkg -forge list pkg -forge install io-2.4.7.tar.gz (aka pkg -forge install io 2.4.7) pkg -forge install -nodeps io <-- this worked: verified with "pkg list" pkg -forge install -nodeps statistics 1.3.0 error: cellfun: C must be a cell array pkg -forge list symbolic pkg -forge install symbolic Easy way: apt list python-sympy* apt install python-sympy apt install python-mpmath http://mpmath.org/doc/current/setup.html apt list python-sympy apt-get upgrade python Hard way: Download the tar file from git (/usr/local/src/sympy-1.0.tgz) and install blah blah ====================================================================== http://wiki.wxpython.org/How%20to%20install%20wxPython ====================================================================== xyPython: apt-get install python-wxgtk2.8 Check if the module works: [lucas@b007 wxPython-2.2.5]$ python Python 1.5.2 (#1, Sep 30 2000, 18:08:36) [GCC 2.95.3 19991030 (prerelease)] on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import wx ====================================================================== VPN ====================================================================== ~Admin/VPN.txt ====================================================================== pdf software ====================================================================== https://en.wikipedia.org/wiki/List_of_PDF_software ====================================================================== sympy: ====================================================================== /home/jba/Desktop/DOCS/sympy-docs-pdf-1.0.pdf https://github.com/sympy/sympy/releases https://www.youtube.com/watch?v=aPvGQL5Gg_Q <--utube ====================================================================== synclient (I keep thinking synconfig) http://askubuntu.com/questions/290009/how-do-i-make-my-synclient-settings-stick ====================================================================== https://en.wikipedia.org/wiki/List_of_PDF_software ====================================================================== sympy: ====================================================================== /home/jba/Desktop/DOCS/sympy-docs-pdf-1.0.pdf https://github.com/sympy/sympy/releases https://www.youtube.com/watch?v=aPvGQL5Gg_Q <--utube ====================================================================== sudo blkid ====================================================================== list UUID's for all partitions of all disks ====================================================================== artha word-net dictionary ====================================================================== This must be installed from the software archive, not from apt install artha. ====================================================================== /var/cache/apt/archives ====================================================================== deb archives man intel man xorg.conf man Xserver man Xorg ====================================================================== latexlive install ====================================================================== This has become more contensious. Here is the ubuntu version: https://help.ubuntu.com/community/LaTeX#From_the_Ubuntu_repositories I should go with the latexlive version apt install texlive-full. Extra packages: font extras apt list --installed|grep texlive NOT the tex-live version TUG version (maybe some day this will be ok) http://www.tug.org/texlive/ ====================================================================== Wordnet dictionary ====================================================================== sudo apt install artha ====================================================================== fix mouse bug in gvim ====================================================================== edit /etc/vim/vimrc set mouse= Turns off mouse cursor set mouse=a turns on mouse cursor, which can cause problems ====================================================================== snapd ====================================================================== http://snapcraft.io/docs/core/install ====================================================================== Linux source information in nice format ====================================================================== http://free-electrons.com/docs/ ====================================================================== start a process at startup ====================================================================== http://stackoverflow.com/questions/7221757/run-automatically-program-on-startup-under-linux-ubuntu Template https://github.com/fhd/init-script-template https://www.linux.com/learn/managing-linux-daemons-init-scripts sudo mv /filename /etc/init.d/ sudo chmod +x /etc/init.d/filename sudo update-rc.d filename defaults sudo update-rc.d filename disable ====================================================================== missing fonts: ====================================================================== http://askubuntu.com/questions/584922/how-do-i-fix-fonts-not-rendering-and-missing-letters ====================================================================== sudo xdiagnose ====================================================================== Reports X11 bugs and allows config ====================================================================== Print code sample: ====================================================================== a2ps simC.m -o simC.m.ps ====================================================================== Mimosa wireless SSID: CBC1-0B73-5 passwd: PRCX4RAYAT9HC99H ====================================================================== ====================================================================== images of research group: ====================================================================== /home/jba/Desktop/Wiki-Mar15.15/wiki/uploads/Main/ResearchGroup/ How to upload a new image: rsync -azP --progress image.jpg auditorymodels@engr:public_html/uploads/Main/ResearchGroup/ ====================================================================== libmtp9 ====================================================================== If this is installed, then the 64G drive will not be recognized. ====================================================================== DONT DO THIS: skype install for 64 bit arch, 16.04LTS ====================================================================== https://linuxconfig.org/how-to-install-skype-on-ubuntu-16-04-xenial-xerus-linux-64-bit ====================================================================== R commands ====================================================================== run from the command line, not RStudio (Joe) install.packages('lme4') run('cons2.R') ====================================================================== RSudio (April 9, 2016) ====================================================================== Installed RSudio sudo dpkg -i rstudio-0.99.893-amd64.deb To run:> rstudio Note: Can read and write spreadsheets without the use of Office quit() End a line with a + for continue Help: ?t.test() Linear regression and ANOVA: One way ANOVA lm(): linear model lm1 = lm(rtime ~ group+conditions+score,data=work1) Type 1, 2, 3 least squares anova(lm1,[type=2,3] ?contrasts ?model.matrix (generated automatically during the regression setup) Good graphical package: library(ggplot2) ggplot: http://www.r-bloggers.com/quick-introduction-to-ggplot2/ ggplot(data=AllCatSum, aes(x=condition, y=meanDC, fill =group)) + options + more options ?library(visreg) built on ggplot fit.in1 <- lm(Ozone~ Solar.R + Wind*Heat,data=airquality) ========================================================== To record from the screen: ========================================================== ffmpeg -r 30 -s 1680x1050 -f x11grab -i :0.0 -vcodec msmpeg4v2 -q:scale 2 /tmp/BerenIntro.avi gtk-recordmydesktop -o outfile.ogv (backend: recordmydesktop -o outfile.ogv) ========================================================== To start UIUC VPN (see discussion under Redhat @ https://answers.uillinois.edu/illinois/page.php?id=47640 this should work after reboot: /opt/cisco/anyconnect/bin/vpnui & click on "connect" If you kill VPN, reboot and do the above commands ========================================================== ========================================================== flashing screen with kernel 4.6 No solution ========================================================== ========================================================== Grub boot: ========================================================== /etc/default/grub place # in front of GRUB_HIDDEN_TIMEOUT=0 Save changes and run sudo update-grub to apply changes. ========================================================== To run rsnapshot on near to 1TB BACKUP-2 ========================================================== rsnapshot back COMMANDS 1) sudo rsnapshot daily <++++ push backups ++++ 2) sudo rsnapshot sync <++++ acutal backup ++++ sudo rsnapshot -t daily <++++ TEST command ++++ DIFF: cd /media/jba/BACKUP-2/rsnapshot/ sudo rsnapshot-diff daily sync ========================================================== rsync commands for updating ========================================================== Jan 27, 2016: X250 back from Memphis following repairs: Copy files back to X250 from X220i: Commands are in ~/Admin/X250-Issues.txt => X250:/usr/local/UpdateInbox.sh 1) I booted from the X220i via USB (that worked great) 2) I then ran rsync as described in X250:/usr/local/UpdateInbox.sh Jan 22, 2016: Shipped X250 back for screen blanking repair: Moved TO the X220i HD, to update FROM X250 HD: cd /media/[admin1|jba]/5718b40f-944e-47a3-acda-04e29336d0bc/home rsync -aP --usermap=admin1:jba --groupmap=admin:jba jba/ /home/jba To copy files from one backup to another, with hard links: cp -al daily.0/near/home .sync/near/ ========================================================== Tripwire on ebony has a passphrase, which is saved in passwd: EBONY.passwd ========================================================== ====================================================================== scan for open server ports: ====================================================================== nmap -v -sT localhost nmap -v -sS localhost ========================================================== ~./local/share: Local storage of the programs you last ran ~./local/share/keyring/: login-keyring ========================================================== ========================================================== Firefox/mozilla ========================================================== To view hot-keys: https://support.mozilla.org/en-US/kb/keyboard-shortcuts ========================================================== firefox config (BROWSER) ========================================================== ~/.mozilla/firefox/cp8zqqr0.default-1437243478280 ~/.mozilla/plugins/libflashplayer.so /usr/local/flash_player-Jan23.16/libflashplayer.so ========================================================== thunderbird config (EMAIL) ========================================================== ~/.thunderbird/l8yjysa9.default ========================================================== "find usage:" files by date or time since last used ========================================================== Find anything 5 days old: find . -mtime -5 -print Find files one day old: find / -type f -mtime -1 -print Find files after a certain date: touch -t `date +%m%d0000` /tmp/$$ find /tmefndr/oravl01 -type f -newer /tmp/$$ ========================================================== lighting calendar files (Jan 23, 2016) ========================================================== Final Conclusion: the lighting files are backed up in: /media/jba/5718b40f-944e-47a3-acda-04e29336d0bc/usr/local/thunderbird/l8yjysa9.default/calendar-data deleted.sqlite local.sqlite From there they are written into /usr/local/thunderbird/l8yjysa9.default/storage.sdb Relevant clue for further analysis: /usr/local/thunderbird/l8yjysa9.default/prefs.js contains the answer as to where the data is stored: user_pref("calendar.registry.3bb262a2-7911-44c8-97a8-174f85e6fa30.type", "storage"); user_pref("calendar.registry.3bb262a2-7911-44c8-97a8-174f85e6fa30.uri", "moz-storage-calendar://"); .... this goes on for some time ---------------------- Detailed analysis: ---------------------- I deleted /usr/local/thunderbird/l8yjysa9.default/storage.sdb came back when I reran lighting. Conclusion: So that does seem to be the final resting place. I deleted /usr/local/thunderbird/l8yjysa9.default/calendar-data/* and then reran lighting and there was no calandar data. Conclusion: this is where the data is read from I copied these two sqlite files (chown jba.jba *) deleted.sqlite local.sqlite from /media/jba/5718b40f-944e-47a3-acda-04e29336d0bc/usr/local/thunderbird/l8yjysa9.default/calendar-data Conclusion: This gave me back my working calendar! Whew ========================================================== Firefox Browser URL Resolve BUG ========================================================== There is a bug that clicking on a link in email client (thunderbird) is not resolved by firefox (browser) To trigger "asking for the app" the way it works is that there is a file in /etc/firefox/pref/ containing: pref("network.protocol-handler.app.apt","/usr/bin/apturl"); pref("network.protocol-handler.warn-external.apt",false); pref("network.protocol-handler.app.apt+http","/usr/bin/apturl"); pref("network.protocol-handler.warn-external.apt+http",false); pref("network.protocol-handler.external.apt",true); pref("network.protocol-handler.external.apt+http",true); These defaults are saved in /etc/thunderbird/syspref.js (look on the backups) pref("network.protocol-handler.app.apt","/usr/bin/apturl"); pref("network.protocol-handler.warn-external.apt",false); pref("network.protocol-handler.app.apt+http","/usr/bin/apturl"); pref("network.protocol-handler.warn-external.apt+http",false); pref("network.protocol-handler.external.apt",true); pref("network.protocol-handler.external.apt+http",true); Thoughts: Maybe the problem is with -Hypertext-transfer-protocol -mime-type resolution Many of the discussions say that what works best (but doesn not fix the problem) is to kill the browser, and then try clicking on a link. This, they say, works, for a while. Firefox link bug: [firefox link not resolved by thunderbird] Relevant URLS that discuss bug: YES http://www.ghacks.net/2013/01/20/fix-for-thunderbird-not-opening-links/ Start firefox email editor: Edit/Preferences/Advanced/General+Config Editor Filter for the term: network.protocol-handler.warn-external.http and set it to true (double click on it, till true shows up) Repeat for network.protocol-handler.warn-external.https network.protocol-handler.warn-external.ftp then exit and restart Thunderbird ========================================================================= VisualVM installed Dec 30, 2015 http://visualvm.java.net/features.html ========================================================================= Tool presumed useful for "all in one java troubleshooting" ========================================================================= Install from the Ubuntu Software Center http://visualvm.java.net/ demo: http://youtu.be/z8n7Bg7-A4I Nice discussion of how to use visualVM https://www.youtube.com/watch?v=z8n7Bg7-A4I&feature=youtu.be Lots of information, about startup, heap dumps, etc Very versitle /openjdk-7-jre_7u91-2.6.3-0ubuntu0.15.10.1_amd64.deb ========================================================================= When running jabref I java crashed and I discovered that this package was a fault. I then tried: apt-get install --reinstall openjdk-7-jre and it seems to sort of worked: Preparing to unpack .../openjdk-7-jre_7u91-2.6.3-0ubuntu0.15.10.1_amd64.deb ... Unpacking openjdk-7-jre:amd64 (7u91-2.6.3-0ubuntu0.15.10.1) over (7u91-2.6.3-0ubuntu0.15.10.1) ... Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu3) ... Processing triggers for mime-support (3.58ubuntu1) ... Setting up openjdk-7-jre:amd64 (7u91-2.6.3-0ubuntu0.15.10.1) ... I then tried apt-get install --reinstall firefox Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: chromium-codecs-ffmpeg-extra Use 'apt-get autoremove' to remove it. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/45.0 MB of archives. After this operation, 0 B of additional disk space will be used. dpkg: warning: files list file for package 'firefox-locale-en' missing; assuming package has no files currently installed (Reading database ... 312131 files and directories currently installed.) Preparing to unpack .../firefox_43.0+build1-0ubuntu0.15.10.1_amd64.deb ... Unpacking firefox (43.0+build1-0ubuntu0.15.10.1) over (43.0+build1-0ubuntu0.15.10.1) ... Processing triggers for man-db (2.7.4-1) ... Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu3) ... Processing triggers for mime-support (3.58ubuntu1) ... Setting up firefox (43.0+build1-0ubuntu0.15.10.1) ... ========================================================================= chrome binary location ========================================================================= /usr/lib/chromium-browser ========================================================================= webdav calandar share facility This doesnt work! ========================================================================= http://ubuntuforums.org/archive/index.php/t-119228.html <--better https://www.digitalocean.com/community/tutorials/how-to-configure-webdav-access-with-apache-on-ubuntu-12-04 chrome binary location ========================================================================= /usr/lib/chromium-browser ========================================================================= webdav calandar share facility This doesnt work! ========================================================================= http://ubuntuforums.org/archive/index.php/t-119228.html <--better https://www.digitalocean.com/community/tutorials/how-to-configure-webdav-access-with-apache-on-ubuntu-12-04 ========================================================================= chrome binary location ========================================================================= /usr/lib/chromium-browser ========================================================================= webdav calandar share facility This doesnt work! ========================================================================= http://ubuntuforums.org/archive/index.php/t-119228.html <--better https://www.digitalocean.com/community/tutorials/how-to-configure-webdav-access-with-apache-on-ubuntu-12-04 ========================================================================= Group ID remapping How to recover files from backup disk to present system with rsync: ========================================================================= sudo rsync -aP --usermap=admin:jba --groupmap=admin:jba thunderbird/* /usr/local/thunderbird ========================================================================= File conversion any to any ========================================================================= http://pandoc.org/demos.html <-- convert just about any formant to another /etc/gnome/default.lists contains all the defaults, and blacklist (menus.blacklist) ========================================================================= Beamer and AV Hyperlinks: ========================================================================= Hyperlinks with evince: This shells out to gnome for the default viewer: \movie[externalviewer] {\beamergotobutton{Start movie}}{cc.mp4} The default viewer may be set from firefox (I think). Otherways include xdg-settings and see discussion http://askubuntu.com/questions/254212/why-dont-hyperlinks-open-in-evince-document-viewer How to reset genome default settings http://askubuntu.com/questions/56313/how-do-i-reset-gnome-to-the-defaults mimeinfo details: /home/jba/.local/share/applications/mimeinfo.cache /usr/share/applications/mimeinfo.cache ====================================================================== NMRestart.sh ====================================================================== ====================================================================== Avoid the ugly warning sound "dunk" in thundnerbird; replace with "dong" ====================================================================== mv /usr/share/sounds/ubuntu/stereo/dialog-question.ogg dialog-question.ogg.ugh ln -s service-login.ogg dialog-question.ogg ====================================================================== Avoid the ugly warning sound "dunk" in bash; replace with "dong" ====================================================================== mv /usr/share/sounds/ubuntu/stereo/bell.ogg bell.ogg.ugh ln -s button-toggle-on.ogg bell.ogg ====================================================================== Avoid ugly ubuntu login sound ====================================================================== mv system-ready.ogg system-ready.ogg.ugh ln -s service-login.ogg system-ready.ogg Standard calendar sound (not very nice): ~/.thunderbird/l8yjysa9.default/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome/calendar/content/calendar ====================================================================== KTikZ drawing package? pgfplotstable package: \usepackage{pgfplotstable} ~/Technicalbooks/pgfplots.pdf ====================================================================== Itis really TikZ but the K version of it. ====================================================================== openvpn: ~/Admin/VPN.txt ====================================================================== edit connections open select vpn enter details ====================================================================== rc.d changes (they are not even used!) ====================================================================== update-rc.d - install and remove System-V style init script links update-rc.d openvpn remove update-rc.d bind9 remove ====================================================================== program to diff and compare files and directories: meld ====================================================================== it IS worth the trouble It cannot handle really large file structures. Keep it small. du -sh * may work just as well for complex problems ====================================================================== Find php scripts in the system: ====================================================================== file */*/* -mime | grep php file */*/*|grep php file -R -mime |grep php for i in */*;do echo $i; file -i $i;grep php; done Does this work recursively? for i in `ls -r`; do echo $i;done find . exec `file \{\} \;` ====================================================================== confusing commands + syntax: that I cannot make work ====================================================================== m Extensive search of file characteristics: find FLAGS [path] [expression] find . -perm -220 find . -type [b,c,d,p,f,l,s] find . file -i <--does not work Find the file type: file * -mime (-i) (uses /etc/magic) ====================================================================== Mimosa IP 10.0.10.1 ====================================================================== login: cusadmin, passwd: highspeed Comcast wireless SSID: CBCI-0B73-5, Passwd: PRCX4RAYAT9HC99H ====================================================================== Crash of nvidia updates ====================================================================== Note updated compiz package April 30, 2015: https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1424013 https://launchpad.net/bugs/729979 I purged this on April 11, 2015 with "apt-get purge nvidia-331-updates" /home/jba/.cache/upstart/update-notifier-crash-_var_crash_nvidia-331-updates.0.crash.log locate nvidia-331-updates <-- find relevant files http://askubuntu.com/questions/206283/how-can-i-uninstall-a-nvidia-driver-completely > aptitude show nvidia-331-updates nvidia-331-updates-uvm <- provide details > aptitude search nvidia > aptitude search nvidia-331 > aptitude show nvidia-331 > aptitude show nvidia-331-uvm ====================================================================== How to download wiki page ====================================================================== To grab the wiki given the command wget -kKErpNF -l 10 -nH 192.168.1.7 -k convert links to local reading -K --backup-converted (rename .orig) -E --adjust-extension extends all with .html -r --recursive with max depth of 5 -l 10 --level=depth -p --page-requisites (suplimentary material as needed) -N --time stamping -F --force-html -nH --no-host-directories (remove URL) The following didnt work wget -kKErpNFnHpNFnH -l 10 192.168.1.7 Sandra said the following: wget -k -K -E -r -l 10 -p -N -F -nH ====================================================================== /usr/bin/gnome-system-log ====================================================================== Nice system logs display program ====================================================================== apt-get autoremove ====================================================================== clean up old images and irrelevant files This should be run every now and then ====================================================================== Error log on unity upstart errors ====================================================================== The error report is that I need to upgrade: "unity-services" Upgrade to trusty of june 10, 2014 See: /home/jba/.cache/upstart/ unity-panel-service.log This worked: apt-get upgrade unity-services ====================================================================== usb-creator-gtk creates bootable-usb ====================================================================== This must be run as root or else it wont write the bootstrap The iso source is in /home/jba/Downloads/ The usb must be at least 2G (Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64) ====================================================================== "It's all text" vs "Vimperator" are extension/plugins for firefox ====================================================================== http://stackoverflow.com/questions/75652/is-there-a-firefox-add-on-to-use-vim-to-edit-textboxes They gives firefox vi commands. http://www.vimperator.org/ https://addons.mozilla.org/en-US/firefox/addon/vimperator/ For "help" go to tools/addons/Extensions/Vimperator/Preferences or enter: liberator://help/options (try reload if nothing happens) Also look at: http://en.wikipedia.org/wiki/Wikipedia:Text_editor_support "its all text" ====================================================================== Upgrade from ext3 to ext4 ====================================================================== http://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/ ====================================================================== wavesurfer ====================================================================== To run wavesurfer use: padsp wavesurfer ====================================================================== conversion from text to ps/pdf ====================================================================== enscript -p file.ps file.txt ====================================================================== upgrade the bash shell ====================================================================== Run 'do-release-upgrade' to upgrade to next release 'update-manager' graphical method To simply update the latest for the present release: sudo apt-get update sudo apt-get upgrade (to install all package updates, which should include bash) or sudo apt-get --only-upgrade install bash (to update only bash) After update, bash should be 4.2-2ubuntu2.2 http://www.ubuntu.com/usn/usn-2362-1/ Linton On 27/09/2014 4:26 a.m., Jont Allen wrote: > > ebony is vunerable > > Login in and try this: > > env x='() { :;}; echo vulnerable' bash -c "echo this is a test" ====================================================================== Check for ESSIDs from the command line: ====================================================================== iwlist wlan0 scanning|grep ESSID iwlist wlan0 scanning|grep Quality ====================================================================== avconv ====================================================================== convert mp3 and other video formats from one to another. https://www.libav.org/ Example: https://lists.libav.org/pipermail/libav-tools/2014-July/000439.html This copies all video and all 8 audio channels fine: $ avconv -y -i convertingSbtToEclipse.mov -c:v copy -c:a copy ====================================================================== How to config after a major reset due to a linux download: ====================================================================== Edit: ~/Admin/keyboard.txt ====================================================================== Mar 13 2014 Added "silverlight" ====================================================================== URL: http://www.howtogeek.com/130372/how-to-watch-netflix-on-ubuntu-with-the-netflix-desktop-app/ sudo apt-add-repository ppa:ehoover/compholio sudo apt-get update sudo apt-get install netflix-desktop Then mono was installed in ~/.wine-browser Then Gecko package was needed: http://wiki.winehq.org/Gecko ====================================================================== Service config: Red Hat and Fedora use chkconfig, while Debian uses update-rc.d. ====================================================================== ====================================================================== keyconfig addon for mozilla (Thunderbird) It failed to work, so I deleted this after worrying about security problems. ====================================================================== I wanted to remove the "J" hotkey which marks an email as junk, as this can cause email to "disappear" if one accidently hits his J key. The plugin to do this is at: https://support.mozillamessaging.com/en-US/kb/keyboard-shortcuts and specifically is: http://mozilla.dorando.at/keyconfig.xpi as listed under Customizing keyboard shortcuts http://kb.mozillazine.org/Keyconfig_extension http://mozilla.dorando.at/keyconfig.xpi "(right-click [[http://mozilla.dorando.at/keyconfig.xpi | here]] to download)" After installing this, (it is in /home/jba/.mozilla/firefox/kjkfc7m9.default/extensions/keyconfig@dorando.xpi I couldnt find the plugin/add-ons under /Tools/Add-ons/Plugins/ The instructions suggest: http://kb.mozillazine.org/Keyconfig_extension --In Thunderbird, choose: Tools – Keyconfig... The Keyconfig dialog opens. ====================================================================== Print a n page document as a booklet using evince (see evince help page) ====================================================================== Under Range, choose Pages. Type the numbers of the pages in this order: 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... ...until you have typed n-number of pages. Choose the Page Setup tab. Under Layout, in the Two-side menu, select Short Edge (Flip). In the Pages per side option, select 2. In the Page ordering menu, select Left to right. ====================================================================== postscript to pdf using prosper: ====================================================================== I found the postscript hack that fixed last year's presentation. I thought I'd pass it along for posterity... It uses the function pstops (ie ps-to-ps) to redefine the margins: pstops '1:0(0,40)' AAS2013_v6_final-hack.ps foo.ps Judi ====================================================================== sudo sysv-rc-conf ====================================================================== http://askubuntu.com/questions/19320/what-is-the-recommended-way-to-enable-disable-services To ck for a package (e.g.: dnsmasq*) installed ====================================================================== dpkg-query -l dnsmasq* ====================================================================== sudo visudo ====================================================================== allow one to upgrade permissions on a user ====================================================================== lubuntu stripped down desktop alternative to Unity ====================================================================== sudo apt-get install lubuntu-desktop or better yet (maybe), just LXDE (no desktop?) sudo apt-get install lxde The X-server GUI page is: https://help.ubuntu.com/community/ServerGUI ====================================================================== Starting a process from cmd line on X ====================================================================== sudo apt-get install compizconfig-settings-manager (get ccsm) export DISPLAY=:0 ccsm & <-- start compiz gnome-terminal & also try "CTRL+ALT t" to get a command line ====================================================================== watch signal strength ====================================================================== watch -n 1 -t "awk 'NR==3 {print \"WiFi Signal Strength = \" \$3 \"00 %\"}''' /proc/net/wireless" watch -n 1 -t cat /proc/net/wireless ====================================================================== home shared device: ====================================================================== http://50.81.134.248/shares/ http://readyshare.routerlogin.net/shares/ ftp://readyshare.routerlogin.net/shares/ Help on pulseaudio problem: pulseaudio --check E: [pulseaudio] core-util.c: Home directory not ours https://bbs.archlinux.org/viewtopic.php?id=114398 ====================================================================== "find" command usage tutorial: http://content.hccfl.edu/pollock/unix/findcmd.htm ====================================================================== find . -type cdfl(bps) c character d directory f file l symbolic link Find dir "shared" anywhere in "snapshots/" find snapshots/ -name shared -type d -print To copy "/home" and maintain all the ownership and groups: $( cd /home ; tar cfv – . ) | ( cd /mnt/newhome ; tar xf – ) OR less-less better: $find . -depth -print0 | cpio –null –sparse -pvd /mnt/newhome/ JASA Help: help@scitation.org Annie Rivera Scitation Helpdesk AIP Publishing LLC 1305 Walt Whitman Road, Suite 300 Melville, NY 11747-4300 ====================================================================== Library usage: ====================================================================== START HERE: From Mischo, William H 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: http://search.grainger.illinois.edu/linker/ 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. UIUC help: For more information, and other troubleshooting options, visit this page: http://www.library.illinois.edu/rex/guides/eresources/index.html HELP: Kathleen Kern; Reference, Research, & Scholarly Services katkern@illinois.edu or call 244-3604. 1) Use the UIUC VPN: when you are connecting to the VPN, select 'Tunnel All,' as opposed to the 'Split Tunnel' option. "http://www.cites.illinois.edu/vpn/library" 2) Start at http://search.grainger.uiuc.edu/linker/ a) Start at the library's homepage: http://www.library.illinois.edu b) In the middle of the page under "Article Resources," click on "Journal and Article Locator" 3) Enter the DOI for this article in the DOI of Article search bar+Search the DOI is the best way to find an article if you dont have some of the required information. Here is an example of a DOI: "10.1119/1.4789885" ====================================================================== Linux commands (and help): ====================================================================== https://answers.launchpad.net/ubuntu http://askubuntu.com/questions https://launchpad.net/ubuntu http://ubuntuforums.org (security breached) To get suites of packages: tasksel perform full upgrade (gets the files and asks to install them) aptitude full-upgrade or 2-step method: apt-get update && apt-get upgrade apt-get update (this gets the files) apt-get upgrade (this installs the updates) New release '13.04' available. Run 'do-release-upgrade' to upgrade to it. apticron: cron script to email admin re details on package updates unattended-upgrades: can be configured to automatically install security updates Add a user (scheidi2) to sudo and admin usermod -aG sudo,adm,cdrom,tape,audio,plugdev,scanner,fuse,admin,sambashare scheidi2 "byobu" an xterminal mode that is sort of cute. ====================================================== https://stackoverflow.com/questions/11450817/vim-how-do-i-clear-all-marks ====================================================== edit ~.viminfo and delete the marks or from within gvim Marks are transfer points. Uppercase marks are to other files. This can be very dangerous, as you can wipe out a file by referencing a mark ('R) and then writing tha content to your working file!!! 'mark (eg 'R) takes you to that mark, which can be anywhere: another file, a remote drive, etc :marks <-- list all 'marks' :delmarks! :help viminfo <-- vi docs on viminfo ====================================================== gvim !fmt command ====================================================== Go to starting line and give mark command: m'x Move the final line and give a second mark (or use default .) 'x,. !fmt -w 100 the above will reformat from 'x to . making the lines 100 characters long. ====================================================================== GVIM defaults: ====================================================================== To delete all marks permanently: rm ~/.viminfo To remember last line edited: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/69611 Apr 6, 2016 I modified /etc/vim/vimrc to set the defaults to play nice. This is a big change http://superuser.com/questions/419372/how-do-i-set-the-default-window-size-in-vim I also changed this to set the screen size: /etc/vim/gvimrc.local if has("gui_running") " GUI is running or is about to start. " Maximize gvim window. set lines=999 columns=999 else " This is console Vim. if exists("+lines") set lines=50 endif if exists("+columns") set columns=100 endif endif Jan 24, 2016: Updated /etc/vim/ with the files from X250 to get full-page edits OLD: I added alias='gvim -rc' to .bashrc Make changes to /etc/vim/vimrc to override debian defaults: /usr/share/vim/vimcurrent/debian.vim <-- debian default vim (gvim) failed to remember last edits of files: ~/.viminfo was owned by root (=>read error) Also, do not have a ~/.vim file: it overrides the /etc/vim/vimrc file To "fix" gvim to remember the last line you edited before exiting, change /etc/vim/vimrc https://bugs.launchpad.net/ubuntu/+source/vim/+bug/69611 ====================================================================== ====================================================================== Updated graphics i915 graphics driver on April 9, 2013 (see software updater history) ====================================================================== Error message when I tried to install xserver-xorg-video-intel-dbg "xserver-xorg-video-intel (= 2:2.20.9-0ubuntu2.1) but 2:2.20.12-0ubuntu0~quantal is to be installed Got a message saying that this package: i915-3.6-3.5-dkms is not part of the ubuntu distribution, and that I should remove it, and reinstall regular package. /etc/apt/sources.list.d deb https://download.01.org/gfx/ubuntu/12.10/main/ Ubuntu 12.10 ckage "i915-3.6-3.5" part of PPA http://www.ubuntuupdates.org/ppa/intel_linux_graphics?dist=Ubuntu May 19 2013 during a regular install, error installing package i915-3.6-3.5-dkms Crash report says: KnownReport: https://bugs.launchpad.net/bugs/1016974 https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1016974 ====================================================================== LaTeX config.ps file ====================================================================== /usr/share/texlive/texmf-dist/dvips/config/config.ps Add to end of config.ps p +/usr/share/texlive/texmf-dist/fonts/map/dvips/tetex/dvips35.map Then run: updmap-sys ====================================================================== AutoMake a ps from name.tex, and display update: No dvi and ps outputs: ====================================================================== > latexmk -ps -pvc name.tex > pdflatexmk name.tex =================================================================== There is still a major problem with hot keys =================================================================== compiz settings do all this stuff Archive (deb apt-get) packages: /var/cache/apt/archives/ /var/lib/dpkg/info Unity is the screen mannager: To config see UnityReset.txt Feb 10, 2013 I lost my system do to my mis-package management It was painful, but I upgraded to 12.10 May things need to be reconf'ed, such as key bindings passwords VPN (see ./Wifi.txt for config info) missing packages ====================================================================== WiFi problems: ====================================================================== WiFi.txt WiFiCrash.txt ====================================================================== fixed the vpn menu problem: 'sudo vpn-applet.sh' ====================================================================== /usr/local/bin/vpn-applet.sh restores the menu History: I searched on "gnome VPN connections submenu error" and found http://askubuntu.com/questions/57292/nm-applets-vpn-menu-disappears/247705#247705 Then I created this shell script that restarts the nm-applet: ====================================================================== Ck the status of a hard drive: smartctl -a /dev/sda ====================================================================== ====================================================================== Ubuntu package mannager applications: dpkg dpkg-query -l | grep mysql dselect is the package manager front end aptitude is a commandline package mannager via nurses ====================================================================== http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/ > usermod -G grp1,grp2,grp3 username To convert a winmail.dat file to its source: tnef winmail.dat http://www.faqforge.com/linux/how-to-open-winmail-dat-files-on-ubuntu-or-debian-linux/ ====================================================================== To make a usb-boot (~1GB) disk: Download the ISO image from the ubuntu website, and then use a command ====================================================================== USB iso formatter pgm: imagewriter (installed Dec 20, 2013) All that imagewriter does is call "dd image.iso /dev/sdb" OR sudo usb-creator-gtk --iso ubuntu-12.04-desktop-i386.iso it may be necessary to erase drive first, or to format it with fdisk+mkfs I had to run this twice, once to erase the disk and again to run it. It was necessary to run as root sudo usb-creator-gtk --iso /tmp/ubuntu-12.04.3-server-i386.iso /dev/sdb To boot the linux image I made, it was necessary to use an old grub.conf file. For more information look at /boot/README.jba ====================================================================== ====================================================================== make an iso image, with progress ====================================================================== dd if=/dev/sdc1 of=/tmp/output.iso status=progress (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 ====================================================================== pulseaudio stuff (matlab conflicts): ====================================================================== --------------------------------------------------------------------- http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/FirstSteps --------------------------------------------------------------------- Pulseaudio conf: the files may be found in /etc/pulse/ client.conf daemon.conf default.pa system.pa --------------------------------------------------------------------- http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/CLI --------------------------------------------------------------------- pacmd is a command-line tool for talking to pulseaudio Example: pacmd >>> help >>> exit --------------------------------------------------------------------- How to stop pulseaudio: --------------------------------------------------------------------- https://wiki.ubuntu.com/PulseAudio/ PulseAudio Removal 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. After this, you may remove all of the installed PulseAudio packages. To disable pulseaudio in hardy you need to select alsa for for all options in /system/preferences/sound P.S. In Xubuntu 10.04 it is enough, if you issue command sudo apt-get autoremove pulseaudio in terminal and then restart Xubuntu. --------------------------------------------------------------------- How to stop pulseaudio: --------------------------------------------------------------------- http://ptspts.blogspot.kr/2010/11/how-to-disable-pulseaudio-on-ubuntu.html To kill pulseaudio, I modified client.conf as follows: ;JBA Jun 29, 2012 default-server = 0.0.0.1 autospawn = no To restore it, just comment these out, and it should be easily restarted look at script in ~/.pulse as an alternative way to do this To edit postscript: inkscape To encode a file gpg -c filename then type in the phasephrase to use To decrypt gpg -d filename.gpg To convert latex into .odt (OpenOffice) format: mk4ht oolatex filename.tex http://keyring.debian.org/creating-key.html This command will generate a subkey, which may be used with a passphrase gpg --edit-key 126627D8 subkey pub 2048D/126627D8 created: 2012-03-31 expires: never usage: SC trust: ultimate validity: ultimate sub 2048D/17252CF5 created: 2012-03-31 expires: never usage: S [ultimate] (1). jontallen (gpg key for jontallen) DVD tips for Playing: https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs DVD BACKUP: TO burn a dvd having block errors: ddrescue /dev/sr0 /usr/local/MM/ISO/file.iso log.txt tailf log.txt TO DO: to get xear fully operational (in order of importance): + rebuild kernel to that ahd and xmaple work (done but it needs to be done once more) When I installed 10.04 everyting broke. I was able to recover and boot the old kernal by replacing /boot/grub.cfg with grub.cfg.Feb11.12 (updated to Aug27.12). Look at /boot/README.jba for details ============================================================================ For Compiz (ccsm) settings of Unity (i.e., to remove Alt+F2) see: ============================================================================ UnitySettings.txt for detailed proceedure (its complicated) This must be done after unity --reset UNITY RESTART: unity --replace is deprecated. Instead, use the following: dconf reset -f /org/compiz/ find snapshots/ -name shared -type d -print To automatically compile and view: latexmk -pvc -view=ps summary2.tex Use this with ev summary2.ps "byobu" a sreen terminal mode that is sort of cute. evince hanging: > 26777 ? S 0:00 dbus-launch --exit-with-session evince output.pdf > How, other than a reboot, do I fix this problem. There are 20 or so such > hung processes from evince. pkill evince pgrep evince WIKI Edits: To "fix" the problem with network communicationw with the wiki, use vpn Packages: http://en.wikibooks.org/wiki/LaTeX/Packages eqnarray: Dont use latex's eqnarray; Rather use \begin{align}. http://texblog.net/latex-archive/maths/eqnarray-align-environment/ Page layout: http://en.wikibooks.org/wiki/LaTeX/Page_Layout not so good: \usepackage[margin=1in, paperheight=8.5in]{geometry} WiFi.txt for details of logins NetworkManager vs wicd: On Feb 19 I replaced the NetworkManager with wicd. Homepage: http://www.gnome.org/projects/NetworkManager/ "network-mannager" This package provides the userspace daemons. NetworkManager attempts to keep an active network connection available at all times. It is intended only for the desktop use-case, and is not intended for usage on servers. The point of NetworkManager is to make networking configuration and setup as painless and automatic as possible. If using DHCP, NetworkManager is _intended_ to replace default routes, obtain IP addresses from a DHCP server, and change nameservers whenever it sees fit. Wireless errors (failure tologin): James F. Eyrich We have two suggestions to begin with: 1) roaming aggressiveness to the lowest setting 2) set the power savings to maximum transmission power (lowest power savings) Roger says to use iwconfig with flags to manipulate the power. Also these commands seem useful to monitor the dtate: 3) First, turn off auto tx power sudo iwconfig wlan0 txpower fixed 4) Then you'll need to increase the maximum power. sudo iwconfig wlan0 txpower 30 5) while sleep 1;do nm-tool |grep \*;done mtr google.com ======================================================================== MIME unpack ======================================================================== munpack: to unpack MIME files from an email, use "munpack -C FromDir file.eml" testdisk: Program to rebuild filesystems, similar to fdisk, but much better. metacity --replace & %kill and replace compiz, when it is not working right compiz --replace & %Return to compiz The gnome-panel stopped working. I killed the gnome-panel process and then they all came back and started working again. Easy fix hord to figure out however. To sync the filesystem and flush the cache (#==as root): # sync; echo 3 > /proc/sys/vm/drop_caches dkms - Dynamic Kernel Module Support (installed May 17, 2010) http://linux.dell.com/projects.shtml digital clock screen saver: sudo vi /usr/share/applications/screensavers/gltext.desktop cd /usr/share/applications/screensavers sudo vi gltext.desktop http://www.growlichat.com/blog/2007/05/05/how-to-get-a-clock-screensaver-running-under-ubuntu/ Reading DVD encryption: libdvdcss.txt To set up matlab: Matlab.txt xmaple, LIB5 and AHD bugs: LIB5-AHD-maple-matlabr3.txt it is necessary to make a new kernel How to download and make a new kernel: MakeKernel.txt To "fix" gvim to remember the last line you edited before exiting, change /etc/vim/vimrc https://bugs.launchpad.net/ubuntu/+source/vim/+bug/69611 To rename a flash drive: https://help.ubuntu.com/community/RenameUSBDrive fat32 use mtools df will give the device name (e.g., /dev/sdb1) Determine the existing label: sudo mlabel -i /dev/sdb1 -s :: Give a new label: sudo mlabel -i /dev/sdb1 ::Kingston