Maintenance reference: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! Boxes | ! Boxes | ||
Line 248: | Line 5: | ||
Cable Modem - [https://www.sony.com/electronics/support/televisions-projectors-lcd-tvs/xbr-65x800b/specifications Sony 65" TV] - [https://www.tcl.com/us/en/products/home-theater/p-series/tcl-55-class-p-series-4k-uhd-hdr-roku-smart-tv-55p605 TCL 55' TV] - [https://www.asus.com/us/Networking/RT-ACRH13/ProductPrint/ ASUS router] | Cable Modem - [https://www.sony.com/electronics/support/televisions-projectors-lcd-tvs/xbr-65x800b/specifications Sony 65" TV] - [https://www.tcl.com/us/en/products/home-theater/p-series/tcl-55-class-p-series-4k-uhd-hdr-roku-smart-tv-55p605 TCL 55' TV] - [https://www.asus.com/us/Networking/RT-ACRH13/ProductPrint/ ASUS router] | ||
[[Bitpost]] - [[Melange]] - [[Case]] - [[Viper]] - [[Wimpy]] | [[Bitpost]] - [[Melange]] - [[Case]] - [[Viper]] - [[Wimpy]] | ||
[[Proxmox VMs on Melange]] | [[Proxmox VMs on Melange]] | ||
<!-- | <!-- | ||
Line 717: | Line 476: | ||
reboot | reboot | ||
|} | |||
|} | |||
<!-- | |||
=========================================================================================================================================================================================================================================================================================== | |||
--> | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! general tasks | |||
|- | |||
| | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! MIGRATION IN PROGRESS: config distro machine migration | |||
|- | |||
|Start to revamp config from [machine]/[distro] to [distro]/[machine] to match scripts. It's not hard even though it's dangerous. You can do each machine separately from others. Get on it! | |||
# DO THIS ALL IN ONE SESSION, do not log out | |||
cd development/config | |||
mkdir -p distro # prolly not needed | |||
git mv machine/distro distro/machine | |||
setup_stow.sh # repeat until it doesn't fail; check each failure to make sure it is a symlink, and simply rm them as you go | |||
|} | |||
[[Linux barebones quickstart]] | |||
[[Flash Drives]] - [[Scripts]] - [[Add a user]] - [[Linux permissions]] | |||
[[Turn off ubuntu gnome screenlock]] - [[Set ubuntu default browser]] | |||
[[Add a drive]] - [[Back up drive]] - [[Check disk]] - [[Check disk speed]] | |||
[[Bash basics]] - [[OS X basics]] - [[DOS basics]] - [[Update gentoo kernel]] | |||
[[SSL certificate instructions]] - [[Networking]] | |||
[[systemd]] - [[udev: Assign unique names to your devices]] | |||
[[Automatically mount and unmount your devices]] | |||
[[udev: Autorun programs when connecting your devices]] | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! master keyboard shortcuts map | |||
|- | |||
|See .i3/config. | |||
Typically you can press ctrl-shift-K to open it in editor. | |||
The local file usually points to the common version, here: | |||
~/development/config/common/home/m/.i3/config | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Upgrade Ubuntu | |||
|- | |||
| To update ubuntu from an i3 terminal: | |||
su - | |||
apt-get update # Fetches the list of available updates | |||
apt-get upgrade # Strictly upgrades the current package | |||
apt-get dist-upgrade # Installs updates (new major versions, i think) | |||
update-manager -d # kick off the update manager to migrate to new release when available | |||
Or just call the script that does the same thing: | |||
upgrade_ubuntu | |||
I'm currently migrating everything to 16.04 Xenial Xerus. | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Disabling xscreensaver | |||
|- | |||
| | |||
emacs ~/.xscreensaver | |||
timeout: 12:00:00 # the max timeout is 12 hours | |||
crontab -e | |||
# So... I have .xscreensaver set to max delay (12 hours) | |||
# and I call this every ten hours to restart the idle timer. | |||
* */10 * * * /usr/bin/xscreensaver-command --deactivate >/dev/null | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Test your drives - DO THIS OFTEN | |||
|- | |||
| Look at available tests: | |||
smartctl -c /dev/sdf # to peek at available tests and how long they typically take to run | |||
Short test: | |||
smartctl -t short /dev/sdf | |||
watch -n 3 smartctl -l selftest /dev/sdf # you won't see anything until it finishes, takes about 1 minute | |||
Long test: | |||
smartctl -t long /dev/sdf | |||
watch -n 3 smartctl -l selftest /dev/sdf # takes about 5 minutes | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Mount an IMG file | |||
|- | |||
| You have to peek at the file with fdisk: | |||
fdisk -lu /home/m/bitpost/download/torrents/OpenELEC-Generic.x86_64-5.0.8-efi.img | |||
From that you can tell the "units" and "Start" offsets: | |||
Device Start End Sectors Size Type | |||
/home/m/bitpost/download/torrents/OpenELEC-Generic.x86_64-5.0.8-efi.img1 2048 526336 524289 256M Microsoft basic data | |||
/home/m/bitpost/download/torrents/OpenELEC-Generic.x86_64-5.0.8-efi.img2 528384 593920 65537 32M Linux filesystem | |||
From there you can mount with a little math. Multiply the units by Start to get offset (512x2048=1048576), and use it to mount that partition: | |||
mount -t auto -o loop,offset=1048576 /home/m/bitpost/download/torrents/OpenELEC-Generic.x86_64-5.0.8-efi.img /media/m/iso | |||
aifol | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Chroot into gentoo from (say) ubuntu | |||
|- | |||
| | |||
# These may already be done | |||
mount /mnt/gentoo | |||
cp -L /etc/resolv.conf /mnt/gentoo/etc/ | |||
mount -t proc none /mnt/gentoo/proc | |||
mount --rbind /dev /mnt/gentoo/dev | |||
chroot /mnt/gentoo /bin/bash | |||
# ** NOW IN CHROOT ** | |||
env-update | |||
source /etc/profile | |||
export PS1="(chroot) $PS1" | |||
# GET TO IT! :-) | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Windows symbolic links | |||
|- | |||
| Windows symlinks - needed for config files, svn overlay, etc. | |||
I'm setting up hard links from sublime install folder to shared config settings: | |||
mklink [/H /D /J] link_path Target_file/folder_path | |||
We had to use a soft link, hard won't go across drives. And you have to run the cmd window as admin. Don't specify type, and it will create a soft file link: | |||
mklink "C:\Users\Michael\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-keymap" "D:\Michael's Data\development\config\common\home\m\.config\sublime-text-3\Packages\User\Default (Windows).sublime-keymap" | |||
mklink "C:\Users\Michael\AppData\Roaming\Sublime Text 3\Packages\User\Preferences.sublime-settings" "D:\Michael's Data\development\config\common\home\m\.config\sublime-text-3\Packages\User\Preferences.sublime-settings" | |||
Here is another example, setting up a link in an SVN repo folder to point to a git-controlled folder on another drive. SVN is OK with this, cool. | |||
(open ADMIN cmd prompt) | |||
cd C:\CODE\QA\ContinuousIntegration\Trunk | |||
mklink /J scripts "D:\Michael's Data\development\power_analytics\scripts" | |||
Junction created for scripts <<===>> D:\Michael's Data\development\power_analytics\scripts | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Windows route traffic to avoid VPN | |||
|- | |||
| You can use "route" to assign paths to specific traffic. | |||
So bitpost.com requests go through eth0 instead of VPN, eg... | |||
C:\WINDOWS\system32>route add 174.109.14.112 192.168.50.1 | |||
Note that you can do this with [route] in linux too, syntax is a bit diff. | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Windows command prompt FULL SCREEN | |||
|- | |||
|Type cmd in start search box and right-click on the cmd shortcut which appears in the results. Select Run CMD as administrator. | |||
Next, in the command prompt, type wmic and hit Enter. | |||
Now try to maximize it! | |||
Close it and again open it. It will open as a maximized window! | |||
You may have to ensure that the Quick Edit Mode in the Options tab is checked. | |||
|} | |||
|} | |||
<!-- | |||
=========================================================================================================================================================================================================================================================================================== | |||
--> | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Tips and tricks | |||
|- | |||
| | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! NO TEARING on Sony driven by nvidia (currently, case) | |||
|- | |||
|It's not really about Kodi settings, you have to set up nvidia settings, and they are HARD to get to stick because it's "automatic" but broken. | |||
* Ensure nvidia-settings is set to 4k at 60fps refresh rate - YOU HAVE TO DO THIS ON EVERY REBOOT until we set up an xorg.conf FML | |||
* Ensure Kodi has "sync video to display" turned ON | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Oontz turn on dual pairing | |||
|- | |||
| Turn them both on. One should be paired with your phone, the other should be flashing blue, trying to connect. | |||
On the Play Control Speaker (speaker with solid Blue Light) press and hold down the Play/Pause button for 5 seconds until the flashing White Light appears and the speaker says “Dual Pairing”. - The Play Control Speaker will then connect to the second speaker. | |||
There is NO WAY you can guess this. You'll be back here to re-learn... | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Copy from linux nautilus to android "Operation unsupported" | |||
|- | |||
| Weird assed linux prevents "SMB to USB" copies, FUCKOFF. Workaround is to copy to local drive, then copy to phone. Wow that is sickening. | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Fix things after IP changes | |||
|- | |||
| Time Warner seems to keep giving the same IP back to my main linux router/server, as long as the NIC card doesn't change. It also happened when they upgraded my service (and started labeling my IP as dynamic to SpamHaus, fuckers...). | |||
If it changes, fix these things: | |||
* Update the IP at 1and1.com for ALL domains, bleh... | |||
* mod evasive has a whitelist, it needs the actual IP, bleh... | |||
-rw-r--r-- 1 m m 1.1K Mar 28 22:13 /home/m/config/etc/apache2/modules.d/10_mod_evasive.conf | |||
* reset cable modem (see specific steps) | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Reset 1020 cable modem so it grants a real IP address (not private) | |||
|- | |||
| Resetting things sometimes has to be done in this precise order: | |||
* cable modem -> blue cable -> **ONBOARD** bitpost NIC | |||
* LAN switch -> yellow cable -> **ADDON CARD** bitpost NIC | |||
* power off bitpost and cable modem | |||
* power up cable modem | |||
* wait 5 minutes | |||
* power up bitpost | |||
* verify that you can ping google.com, LAN works, etc. | |||
|} | |||
[[Maintenance of my music collection]] | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Ubuntu and shitty Seiki | |||
|- | |||
|'''AMD''' | |||
Radeon driver sucks, won't go over 1080p; and Dune (AMD chipset) overscans so you can't see the edge. | |||
The only fix I found was to use xrandr. It kinda sucks though bc it's a resize solution that blurs all pixels. Cest la vie. | |||
xrandr --output HDMI-0 --set underscan on | |||
xrandr --output HDMI-0 --set "underscan hborder" 40 --set "underscan vborder" 22 | |||
Let's try the [https://help.ubuntu.com/community/BinaryDriverHowto/AMD binary ATI driver]. | |||
lspci -vvnn | grep VGA | |||
[...] Advanced Micro Devices, Inc. [AMD/ATI] RS780 [Radeon HD 3200] [1002:9610] | |||
|- | |||
|'''nvidia''' | |||
For 4k video on an nvdia chipset (like wimpy), first get Ubuntu to use nvidia's driver: | |||
* Go to System Settings-> Software & Updates | |||
* Select the Additional Drivers tab | |||
* Select the tested, proprietary NVIDIA binary driver | |||
* REBOOT - the nvidia driver works at the kernel level so you won't be able to just restart X. fools | |||
* WHY does ubuntu make you do all this? | |||
Next, here is the "magic super-secret" Seiki 4K goo that should go in xorg.conf (if needed). | |||
It's from: http://ubuntuforums.org/showthread.php?t=2164924 | |||
See /etc/X11/xorg.conf for the full details: | |||
# MDM added based on http://ubuntuforums.org/showthread.php?t=2164924 | |||
# Modeline "3840x2160" 307.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync | |||
# MDM 2015/02/12 A more recent one from: http://ubuntuforums.org/showthread.php?t=2164924&page=3&s=b53cb9ea1b751f4b9f2fe1aadfb6f43f | |||
Modeline "3840x2160" 296.70 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync | |||
Modeline "1920x1080" 297 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync | |||
To get a full output of what the hell X is doing: | |||
scite /var/log/Xorg.0.log & | |||
# Or create one if needed | |||
X -logverbose 6 :2 # this crashed my machine but did produce a log first | |||
scite /var/log/Xorg.2.log & | |||
|} | |} | ||
|} | |} |
Revision as of 15:54, 14 February 2021
Boxes | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Cable Modem - Sony 65" TV - TCL 55' TV - ASUS router Bitpost - Melange - Case - Viper - Wimpy Proxmox VMs on Melange (dead...)
|
general tasks | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Flash Drives - Scripts - Add a user - Linux permissions Turn off ubuntu gnome screenlock - Set ubuntu default browser Add a drive - Back up drive - Check disk - Check disk speed Bash basics - OS X basics - DOS basics - Update gentoo kernel SSL certificate instructions - Networking systemd - udev: Assign unique names to your devices Automatically mount and unmount your devices udev: Autorun programs when connecting your devices
|
Tips and tricks | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Maintenance of my music collection
|