Editing Mika/Notes/Computer Stuff

From WikiDotMako
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 .
* index html works locally but not on the server: permission issue. chmod.
* logitech bluetooth/wireless mice work great with debian. Using M185. Less colorful than M325 but cheaper and as useful since I don't care about syncing with keyboard.
* to save an attachment in mutt, type v on the email with the attachment -> select the attachment and hit s to save locally.
* irc op: ask chanserv the list for each channel (/msg ChanServ access #(channel name) list)
* irc op: /msg ChanServ op #(channel name) (nick) to add an operator
* 2017-09-16 ThinkPad TrackPoint mouse started to move on its own (this always happens with Thinkpad after a few months of use). I want to disable the Trackpoint mouse. Solution here: https://cederlys.wordpress.com/2010/07/13/disabling-the-track-stick-in-ubuntu/
Step 1: Figure out the prop # for the trackpoint mouse
<code>
xinput -list
</code>
Step 2: See how the particular prop is set up
<code>
xinput -list-prop (the prop # you just looked up)
</code>
Step 3: Disable the mout
<code>
xinput -set-prop "(Device name shown in Step 1 and 2)" "Device Enabled (or something like that as shown in Step 2)" 0
</code>


= 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]
* 2020-01-13: initramfs problem fix: https://ubuntuforums.org/showthread.php?t=1990236
* 2019-07-08: Thunderbird stopped syncing mail; IMAP server not supporting the authentication method; had to fix dovecot; used this bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924580 and https://b4d.sablun.org/blog/2019-02-25-dovecot_2.3_upgrade_on_debian/ as main guidance.
* bluetooth not connecting; installed blueman, pulseaudio-module-bluetooth, rfkill unblock bluetooth, killall pulseaudio (one or more of those) fixed it; https://wiki.debian.org/BluetoothUser/a2dp
* 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.
** the time was a few minutes earlier. Fix: /etc/init.d/ntp restart.


=Latex=
=Latex=
Line 473: Line 449:


=Virtualbox=
=Virtualbox=
* to free up the space: 1) make sure the memory is dynamically allocated (see setting/.vdi in virtualbox machine) 2) remove unnecessary files and run sdelete.exe c: -z to add zeros to freed space 3) in the host system run vboxmanage modifymedium --compact path-to-.vdi.
* add to source.list deb http://download.virtualbox.org/virtualbox/debian jessie contrib
* dynamically allocate disk space with max ~25GB
* after installing and opening Windows, open file explore -> This PC -> Guest addition -> run the VM guest addition. This allows for auto-scaling of the window and integrated mouse (and maybe a few other good things?)


*(the following may be out-dated):
* 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 487: Line 458:
: Add windows iso image to Controller:IDE as CD/DVD
: Add windows iso image to Controller:IDE as CD/DVD
: Add Shared Folders to share folders between virtualbox and outside
: Add Shared Folders to share folders between virtualbox and outside
* to expand virtual hard disk space, I do:
: 1. VBoxManage modifyhd /path/to/vdi-file --resize x . x is the new size.
: 2. Start VM and go to Disk Management under Control Panel (in Windows 7: different instructions for different Windows versions).
: 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!
* when using RDC on a bigger screen, click on options and Display tab to make sure Full Screen is chosen.
* when VB gives me a kernl driver error, had to remove and reinstall virtualbox-dkms. Then, after starting Windows, had to right click on the CD image on the bottom right and rerun the Guest Addition.
=Server stuff=
* Every time servers are assigned new IPs (i.e. move) , be sure to update IPs for both yukidoke and mika on mako's DNR.


=Command line=
=Command line=
Line 528: Line 489:
* 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) on the other computer
Please note that all contributions to WikiDotMako are considered to be released under the Attribution-Share Alike 3.0 Unported (see WikiDotMako:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)