Editing Mika/Notes/Computer Stuff
From WikiDotMako
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 28: | Line 28: | ||
* Start mutt. c and imap://(server name) to get emails on the local machine. | * Start mutt. c and imap://(server name) to get emails on the local machine. | ||
* Thumbnail images for RAW files stopped working. Installed gnome-raw-thumbnailer (probably) again. Also created a file raw.thumbnail saying: | * Thumbnail images for RAW files stopped working. Installed gnome-raw-thumbnailer (probably) again. Also created a file raw.thumbnail saying: | ||
:<code>[Thumbnailer Entry] | :<code>[Thumbnailer Entry] | ||
Exec=/usr/bin/gnome-raw-thumbnailer -s %s %u %o | Exec=/usr/bin/gnome-raw-thumbnailer -s %s %u %o | ||
MimeType=image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-pef;image/x-pentax-pef;image/x-ptx;image/x-pxn;image/x-r3d;image/x-raf;image/x-raw;image/x-rw2;image/x-rwl;image/x-rwz;image/x-sigma-x3f;image/x-sony-arw;image/x-sony-sr2;image/x-sony-srf;image/x-sr2;image/x-srf;image/x-x3f;</code> | MimeType=image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-pef;image/x-pentax-pef;image/x-ptx;image/x-pxn;image/x-r3d;image/x-raf;image/x-raw;image/x-rw2;image/x-rwl;image/x-rwz;image/x-sigma-x3f;image/x-sony-arw;image/x-sony-sr2;image/x-sony-srf;image/x-sr2;image/x-srf;image/x-x3f;</code> | ||
* Iceweasel/Firefox keyword shortcuts: Right click on a search box (i.e. Duckduckgo search box) and select "Add keyword shortcut" and add a keyword. | * Iceweasel/Firefox keyword shortcuts: Right click on a search box (i.e. Duckduckgo search box) and select "Add keyword shortcut" and add a keyword. | ||
* Piwik is like visitors. Used Piwik Analytics, a wordpress plugin. Make sure to insert / for the path to piwik.php etc and enter correct site ID obtained from the analytics code. I inserted the code from the Piwik server on other pages in index.html. Make sure that the text doesn't wrap in the middle of the code. In vim, :set textwidth=1000 etc. | * Piwik is like visitors. Used Piwik Analytics, a wordpress plugin. Make sure to insert / for the path to piwik.php etc and enter correct site ID obtained from the analytics code. I inserted the code from the Piwik server on other pages in index.html. Make sure that the text doesn't wrap in the middle of the code. In vim, :set textwidth=1000 etc. | ||
Line 54: | Line 56: | ||
* Was trying to upgrade my libreoffice but it seemed to have had problems with previous versions of libreoffice on my computer. apt-get remove libreoffice* did NOT do the trick. I had to locate libreoffice |less to identify what other libreoffice3.5 (previous version) were lurking around (i.e. .config/libreoffice in the home directory and other .libreoffice3.5 config files or /opt/libreoffice etc etc). Before removing these guys, dpkg -i on deb files in the downloaded libreoffice 3.6 files just led to libreoffice 3, which had no menus, pretty broken. | * Was trying to upgrade my libreoffice but it seemed to have had problems with previous versions of libreoffice on my computer. apt-get remove libreoffice* did NOT do the trick. I had to locate libreoffice |less to identify what other libreoffice3.5 (previous version) were lurking around (i.e. .config/libreoffice in the home directory and other .libreoffice3.5 config files or /opt/libreoffice etc etc). Before removing these guys, dpkg -i on deb files in the downloaded libreoffice 3.6 files just led to libreoffice 3, which had no menus, pretty broken. | ||
* My server was very slow -- apache2 has spawned too many children: I ssh'ed (slowly) to my server and did sudo killall -9 apache2 . I can change in apache2.conf how many children to have. afterwards, instead of restarting apache2, I can just do sudo invoke-rc.d apache2 reload . | * My server was very slow -- apache2 has spawned too many children: I ssh'ed (slowly) to my server and did sudo killall -9 apache2 . I can change in apache2.conf how many children to have. afterwards, instead of restarting apache2, I can just do sudo invoke-rc.d apache2 reload . | ||
= Zsh = | = Zsh = | ||
Line 104: | Line 84: | ||
* [http://wiki.mako.cc/Mika/Notes/Computer_Stuff/Debian_Installation Debian Installation] | * [http://wiki.mako.cc/Mika/Notes/Computer_Stuff/Debian_Installation Debian Installation] | ||
* [http://wiki.mako.cc/Mika/Notes/Computer_Stuff/Debian_Maintenance Debian Maintenance] | * [http://wiki.mako.cc/Mika/Notes/Computer_Stuff/Debian_Maintenance Debian Maintenance] | ||
* sid = unstable but pretty stable. | * sid = unstable but pretty stable. | ||
* Look at packages.qa.debian for todo's and qa.debian under my name for all the bugs and other information. | * Look at packages.qa.debian for todo's and qa.debian under my name for all the bugs and other information. | ||
Line 138: | Line 115: | ||
** when a computer shuts down unexpectedly, check /var/log/kern.log and see what happened right before the reboot. | ** when a computer shuts down unexpectedly, check /var/log/kern.log and see what happened right before the reboot. | ||
** apt-get install -f <package name>:unstable to install unstable. <package name>=<version number> to install specific version number. | ** apt-get install -f <package name>:unstable to install unstable. <package name>=<version number> to install specific version number. | ||
=Latex= | =Latex= | ||
Line 473: | Line 449: | ||
=Virtualbox= | =Virtualbox= | ||
* apt-get virtualbox virtualbox-dkms virtualbox-qt virtualbox-guest-additions-iso | * apt-get virtualbox virtualbox-dkms virtualbox-qt virtualbox-guest-additions-iso | ||
* if running windows/office in virtual box: | * if running windows/office in virtual box: | ||
Line 492: | Line 463: | ||
: 3. Right click on C: and select expand volume. | : 3. Right click on C: and select expand volume. | ||
:: This is virtual hard disk space, so I don't need to actually change the physical hard disk allocation in my Debian! | :: This is virtual hard disk space, so I don't need to actually change the physical hard disk allocation in my Debian! | ||
=Server stuff= | =Server stuff= | ||
Line 528: | Line 497: | ||
* history 1 to show all history (max set in ~/.zshrc as HISTSIZE). | * history 1 to show all history (max set in ~/.zshrc as HISTSIZE). | ||
* ./duplicity-cloud to back up files. update duplicity_exclude if necessary. | * ./duplicity-cloud to back up files. update duplicity_exclude if necessary. | ||
* send stuff between two computers using netcat: nc -l -p (port number) on one end and cat (whatever file)|pv|nc (whatever ip (get from ifconfig) (same port number) | * send stuff between two computers using netcat: nc -l -p (port number) on one end and cat (whatever file)|pv|nc (whatever ip (get from ifconfig) (same port number) |