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 53: | Line 55: | ||
* For each new computer, I should setup an ssh key and add .pub to my remote servers? keygen, id_rsa etc. See my link on ssh on links. | * For each new computer, I should setup an ssh key and add .pub to my remote servers? keygen, id_rsa etc. See my link on ssh on links. | ||
* 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. | ||
=Android= | =Android= | ||
Line 104: | Line 65: | ||
* [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. | ||
* Popcon means popularity contest but there are people who install a package but don't use popcon. | * Popcon means popularity contest but there are people who install a package but don't use popcon. | ||
* dpkg -l (package name): gives the version of the package. | * dpkg -l (package name): gives the version of the package. | ||
* To get the system up to date: | * To get the system up to date: | ||
** apt-get update (Used to re-synchronize the package index files from their sources. And then;) | ** apt-get update (Used to re-synchronize the package index files from their sources. And then;) | ||
** apt-get upgrade | ** apt-get upgrade | ||
* To upgrade to Squeeze (except I wanted testing = Wheezy): | * To upgrade to Squeeze (except I wanted testing = Wheezy): | ||
** change | ** change lenny to squeeze in /etc/apt/source.list | ||
** apt-get update | ** apt-get update | ||
** apt-get install apt dpkg apt | ** apt-get install apt dpkg apt | ||
** apt-get dist-upgrade: error message telling me /var/cache/apt/archives doesn't have enough space. Ran aptitude clean and it was cleaned up. | ** apt-get dist-upgrade: error message telling me /var/cache/apt/archives doesn't have enough space. Ran aptitude clean and it was cleaned up. | ||
** I changed to Wheezy because I wanted Gnome3.2. I changed on the /etc/apt/source.list. | ** I changed to Wheezy because I wanted Gnome3.2. I changed on the /etc/apt/source.list. | ||
* pitivi wasn't as good as dpic's. He said to do: | * pitivi wasn't as good as dpic's. He said to do: | ||
** apt-get build-dep pitivi: Normally, specific headers and shared libraries need to be present in order for a source package to be compiled. All source packages have a field in their control files called 'Build-Depends:' that indicates which additional packages are needed for the package to be built from source. APT has a simple way of downloading these packages. Just run apt-get build-dep package, where `package' is the name of the package you're going to build. | ** apt-get build-dep pitivi: Normally, specific headers and shared libraries need to be present in order for a source package to be compiled. All source packages have a field in their control files called 'Build-Depends:' that indicates which additional packages are needed for the package to be built from source. APT has a simple way of downloading these packages. Just run apt-get build-dep package, where `package' is the name of the package you're going to build. | ||
Line 129: | Line 84: | ||
** ./autogen.sh && ./configure && make (make is an essential program for installing much unpackaged source code software. The developers can write down all of the complex information about how to configure, compile, and install their work in make files that you usually won't have to read. Just check README or INSTALL files that come with the source code to see whether it uses this system, or has different instructions. Another program with similar functions is jhbuild. | ** ./autogen.sh && ./configure && make (make is an essential program for installing much unpackaged source code software. The developers can write down all of the complex information about how to configure, compile, and install their work in make files that you usually won't have to read. Just check README or INSTALL files that come with the source code to see whether it uses this system, or has different instructions. Another program with similar functions is jhbuild. | ||
** bin/pitivi | ** bin/pitivi | ||
=Latex= | =Latex= | ||
Line 165: | Line 110: | ||
* expression and assignment | * expression and assignment | ||
=PHP= | =PHP= | ||
Line 196: | Line 140: | ||
Since I got the same message for both update and delete, I figured that the problem was elsewhere. I looked at select3 and after update3.php? I said id= instead ID= . I capitalized the id for bother update3 and delete3 and it works fine now. | Since I got the same message for both update and delete, I figured that the problem was elsewhere. I looked at select3 and after update3.php? I said id= instead ID= . I capitalized the id for bother update3 and delete3 and it works fine now. | ||
=MySQL= | =MySQL= | ||
Line 445: | Line 358: | ||
* To open a pgp signed email in mutt, first imap-fetch to my email inbox. If the encrypted message doesn't ask my passphrase, download the attachment (hit v, download no description. file (the file name) should say PGP message), and run: gpg --output (outputfile.txt) --decrypt (downloaded file name). Enter passphrase. | * To open a pgp signed email in mutt, first imap-fetch to my email inbox. If the encrypted message doesn't ask my passphrase, download the attachment (hit v, download no description. file (the file name) should say PGP message), and run: gpg --output (outputfile.txt) --decrypt (downloaded file name). Enter passphrase. | ||
=GNOME= | =GNOME= | ||
Line 466: | Line 369: | ||
* insert < code> </code> | * insert < code> </code> | ||
=Command line= | =Command line= | ||
Line 508: | Line 380: | ||
* cat /etc/issue: gives the current version of Ubuntu. | * cat /etc/issue: gives the current version of Ubuntu. | ||
* cat /etc/debian_version: give the current version of Debian. | * cat /etc/debian_version: give the current version of Debian. | ||
* rsync -rP: synches data with the options recursive and partial. | * rsync -rP: synches data with the options recursive and partial. | ||
* ssh-keygen -p: lets me change the ssh password. | * ssh-keygen -p: lets me change the ssh password. | ||
Line 516: | Line 387: | ||
* curl (url): prints out the content of the link. | * curl (url): prints out the content of the link. | ||
* bash (wordpress upgrade scrip) instead of sh because /bin/sh is no longer bash. | * bash (wordpress upgrade scrip) instead of sh because /bin/sh is no longer bash. | ||
* zcat access.log.*.gz | visitors - | * zcat access.log.*.gz | visitors - | ||
* sudo fdisk -l: gives types of removable disk (ie fat16 fat32, in which case for mount, -t vfat) | * sudo fdisk -l: gives types of removable disk (ie fat16 fat32, in which case for mount, -t vfat) | ||
Line 522: | Line 392: | ||
* tar xvzf file.tar.gz | * tar xvzf file.tar.gz | ||
* mount: this gives the all the mounted items along with file system info etc. | * mount: this gives the all the mounted items along with file system info etc. | ||