|
|
(114 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! general tasks | | ! General tasks |
| |- | | |- |
| |[[Flash Drives]] - [[Scripts]] - [[Add a drive]] - [[Back up drive]] - [[Check disk speed]] | | | |
| | {| 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 |
| | |} |
| | |
| | [[Maintenance of my music collection]] |
| | |
| | [[Restarting everything]] |
| | |
| | [[Add a new VM to melange]] - [[Clone a melange VM]] - [[Linux barebones quickstart]] |
| | |
| | [[Scripts]] - [[Add a user]] - [[Linux permissions]] - [[DNS]] |
| | |
| | [[Tune linux performance]] |
| | |
| | [[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" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! master keyboard shortcuts map | | ! master keyboard shortcuts map |
Line 14: |
Line 49: |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Ubuntu upgrade from command line | | ! Upgrade Ubuntu |
| |- | | |- |
| | To update ubuntu from an i3 terminal: | | | To update ubuntu from an i3 terminal: |
| sudo apt-get update # Fetches the list of available updates | | su - |
| sudo apt-get upgrade # Strictly upgrades the current package | | apt-get update # Fetches the list of available updates |
| sudo apt-get dist-upgrade # Installs updates (new ones) | | apt-get upgrade # Strictly upgrades the current package |
| |}
| | apt-get dist-upgrade # Installs updates (new major versions, i think) |
| {| class="mw-collapsible mw-collapsed wikitable"
| | update-manager -d # kick off the update manager to migrate to new release when available |
| ! Disabling xscreensaver
| | Or just call the script that does the same thing: |
| |-
| | upgrade_ubuntu |
| |
| | I'm currently migrating everything to 16.04 Xenial Xerus. |
| 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" | | {| class="mw-collapsible mw-collapsed wikitable" |
Line 45: |
Line 74: |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Adding a user | | ! Increase max open file handles |
| |- | | |- |
| | Ubuntu | | | I do it here: |
| * sudo adduser m # this will prompt you for everything
| | ~/development/config/common/etc/sysctl.d/20_MDM_sysctl.conf |
| * sudo useradd -d /home/m -s /bin/bash -m m # this one-liner works well too
| | That basically sets the user max when I do my stow thing. Alternatively, you can set it directly in |
| * sudo visudo # add a NOPASSWD entry for the user to the END of the file (or NOPASSWD won't stick)
| | /etc/sysctl.conf |
| * cd .ssh # and scp two files from bitpost (make sure they're rw only to user): id_rsa and authorized_keys
| |
| Gentoo server
| |
| su -
| |
| useradd #newuser# -m -G wheel(,etc)
| |
|
| |
| # Other possibilities (likely not needed):
| |
| ## only needed if you want them to have their own group (otherwise use "users" group)
| |
| #groupadd #newuser#
| |
| ## the additional groups here are optional
| |
| #useradd #newuser# -m -g #newuser# -G users,wheel,audio,video,games,dvd,usb -s /bin/bash
| |
| ## Only needed if you didn't use [-m] option
| |
| #mkdir /home/#newuser#
| |
| #chown #newuser#:users /home/#newuser#
| |
| | |
| passwd #newuser#
| |
|
| |
| # grant ssh access by adding to "AllowUsers"
| |
| em /etc/ssh/sshd_config
| |
| /etc/init.d/sshd restart
| |
|
| |
| # grant samba access to home folder
| |
| # it's already set up in /etc/samba/smb.conf
| |
| # but the user must be manually added to samba
| |
| # use same pwd as before to sync them
| |
| smbpasswd -a #newuser#
| |
| /etc/init.d/samba restart
| |
| | |
| # YOU PROBABLY HAVE TO RESTART ANY STUPID WINDOWS BOX before it will see things correctly! crazy
| |
| # you can try this in Windows but it didn't work for me:
| |
| # net use | |
| # net session \\samba.server.ip.address /delete
| |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
Line 116: |
Line 114: |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Windows symbolic links (symlinks - needed for config files, svn overlay) | | ! Windows symbolic links |
| |- | | |- |
| | i'm setting up hard links from sublime install folder to shared config settings: | | | 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 | | 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: | | 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: |
Line 130: |
Line 130: |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Route traffic to avoid VPN | | ! Windows route traffic to avoid VPN |
| |- | | |- |
| | You can use "route" to assign paths to specific traffic. | | | You can use "route" to assign paths to specific traffic. |
Line 136: |
Line 136: |
| C:\WINDOWS\system32>route add 174.109.14.112 192.168.50.1 | | 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. | | 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. |
| |} | | |} |
| |} | | |} |
Line 145: |
Line 154: |
|
| |
|
| --> | | --> |
| {| class="mw-collapsible mw-collapsed wikitable"
| | === Boxes === |
| ! OS and software installation
| | [[Bitpost]] - [[Melange]] - [[Cast]] - [[Bluto]] - [[Cobra]] - [[Case]] - [[Viper]] - [[Wimpy]] |
| |-
| | |
| |
| | === Melange VMs === |
| {| class="mw-collapsible mw-collapsed wikitable"
| | [[AbtDev1]] - [[Positronic]] - [[Morosoph]] - [[Glam]] - [[Hive]] - [[Bandit]] - [[Matryoshka]] - [[Hoard]] - [[Tornados]] - [[Matcha]] - [[Windozer]] |
| ! Ubuntu 15.10 setup
| | |
| |-
| | === Devices and Hardware === |
| | Throw Ubuntu on a USB stick following ubuntu instructions.
| | |
| Reboot, select to boot the thumb in BIOS, install, checking the [download as you go] and [install 3rd party stuff] boxes.
| | [[My server rack]] |
| Things to install ASAP:
| | |
| * (everything, then see more detailed notes, below)
| | 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] |
| sudo apt-get install i3 i3lock i3status suckless-tools dunst openssh-server cifs-utils smbclient synergy arandr ubuntu-restricted-extras exfat-fuse exfat-utils hfsprogs acpi gparted chromium-browser p7zip-full k4dirstat screen rxvt-unicode grdesktop openvpn bridge-utils nautilus-compare smartmontools git gimp network-manager-gnome
| | |
| | IOTs: [[lime]] - [[carambola]] - [[Arduino]] |
| | |
| | [[Flash Drives]] - [[Stadia controller]] - [[Logitech F710 Controller]] |
| | |
| | [[Aeron chair]] - [[Jetson Electric Bike]] |
| | |
| | === Third Party Services === |
| | [[Cloudflare]] | [[LetsEncrypt]] | [[Sendgrid]] |
| | |
| | <!-- |
|
| |
|
| * if ubuntu forced grub as the boot manager, download the refind zip file, unpack, and (re)run ./install.sh.
| |
| * install i3
| |
| ** EITHER install i3 and i3 meta package through ubuntu: sudo software-center # then install i3 and i3 meta package
| |
| ** OR do it yourself: sudo apt-get install i3 i3lock i3status suckless-tools dunst
| |
| ** in .i3/config, set up nm-applet to run on login: exec --no-startup-id nm-applet
| |
| ** in .i3/config, set up synergy to run on login: exec --no-startup-id synergy
| |
| ** gsettings set org.gnome.desktop.background show-desktop-icons false # this disables the gnome desktop from opening when you run nautilus
| |
| ** then logout from unity and log back in to i3
| |
| ** sudo apt-get install urxvt # for a terminal that we can control (float, set geometry) with i3
| |
| * nvidia drivers
| |
| ** open unity-control-panel AS ROOT: sudo unity-control-panel
| |
| ** select Sofware and Updates
| |
| ** select Additional Drivers tab, click nvidia (and Intel mobo, etc as needed) proprietary driver, Apply
| |
| * set up ssh
| |
| sudo apt-get install openssh-server # default is ok but see /etc/ssh/sshd_config for details
| |
| cd ~m/.ssh
| |
| scp m@bitpost.com:/home/m/.ssh/authorized_keys .
| |
| scp m@bitpost.com:/home/m/.ssh/id_rsa_3072_nopswd .
| |
| ln -s id_rsa_3072_nopswd id_rsa
| |
| * as root, create /root/samba_credentials (copy it from another machine)
| |
| * set up scripts repo
| |
| git clone ssh://bitpost.com/home/m/development/scripts
| |
| cd && ln -s development/scripts scripts
| |
| mkdir scripts/ubuntu/[new machine]
| |
| * set up config repo (remember we need files in git and symlinks to them from the system, YES THIS SUCKS, GIT!)
| |
| verify_ubuntu_config_symlinks # we need to turn ALL THESE into SYMLINKS
| |
| mkdir development && cd development
| |
| git clone ssh://bitpost.com/home/m/development/config
| |
| cd config
| |
| # DO ALL THE FOLLOWING AT ONCE or your system will be fubar
| |
| cp -r -p [wallee or whatever]/ubuntu [new machine]/ # be careful, this will need pruning/updating NOW
| |
| cd && ln -s /home/m/development/config/[new machine]/ubuntu config
| |
| cd && ln -s development/config/[new machine]/ubuntu/home/m/.bashrc .bashrc
| |
| subl .bashrc # update PATH to include custom scripts folder in path
| |
| cd .i3 && mv config config.backup && ln -s /home/m/development/config/common/home/m/.i3/config config # and press Mod+Shift+C to reload
| |
| cd .gconf/apps/gnome-terminal/profiles/Default && mv %gconf.xml %gconf.xml.backup && ln -s /home/m/development/config/common/home/m/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml %gconf.xml
| |
| # fix up fstab as/if needed
| |
| su -
| |
| cd /etc
| |
| mv fstab /home/m/config/etc/fstab
| |
| ln -s fstab /home/m/config/etc/fstab
| |
| diff /etc/hosts /home/m/config/etc/hosts (most important: make sure correct hostname is being used)
| |
| mv hosts /home/m/config/etc/hosts
| |
| ln -s hosts /home/m/config/etc/hosts
| |
| verify_ubuntu_config_symlinks # ALL THESE should now be SYMLINKS
| |
| * sudo apt-get install cifs-utils smbclient # and create /root/samba_credentials and all the samba /etc/fstab entries
| |
| * sudo apt-get install synergy # and configure it
| |
| * sudo apt-get install arandr # run to turn a monitor back on if it gets turned off during power cycling
| |
| * sudo apt-get install ubuntu-restricted-extras # for mp3s in firefox, etc.
| |
| * sudo apt-get install exfat-fuse exfat-utils # for access to modern exfat thumb drives (>4gb files)
| |
| * sudo apt-get install hfsprogs # if you want to access osx volumes
| |
| * sudo apt-get install acpi # for power management, so we can check battery level on laptop!
| |
| * sudo apt-get install gparted chromium-browser p7zip-full k4dirstat screen # more good tools
| |
| * sudo apt-get install nautilus-compare # then run nautilus-compare-preferences and pick kdiff3 for all
| |
| * sudo apt-get install smartmontools # use to test drive health with [smartctl] - DO IT OFTEN
| |
| * set up networking (see above)
| |
|
| |
|
| * MAKE SURE to turn off stupid errors=mount in /etc/fstab if Ubuntu set it there
| | =========================================================================================================================================================================================================================================================================================== |
| # MDM UBUNTU STOP F'IN AROUND WITH remount-ro
| |
| # UUID=6d51557a-1aaf-4594-8c28-f51a8730f63f / ext4 errors=remount-ro 0 1
| |
| UUID=6d51557a-1aaf-4594-8c28-f51a8730f63f / ext4 errors=continue 0 1
| |
|
| |
|
| * # download steam .deb file, [sudo software-center ~m/Downloads/.....deb]
| |
| * # set up firefox sync, make sure adblock is installed, etc.
| |
| * from a running terminal, set scrollback buffer to unlimited: Edit -> Profile Preferences -> Scrolling
| |
|
| |
|
| '''AWS | OpenVPN | RemoteDesktop'''
| | --> |
| * sudo apt-get install grdesktop openvpn bridge-utils
| | {| class="mw-collapsible mw-collapsed wikitable" |
| * get a set of OpenVPN certificate files
| | ! Hardware notes |
| {| class="wikitable" | |
| ! OpenVPN Desc | |
| ! OpenVPN files
| |
| |- | | |- |
| | Config file | | | |
| | (e.g.) m.gec.poweranalytics.io.conf
| | {| class="mw-collapsible mw-collapsed wikitable" |
| |- | | ! NO TEARING on Sony driven by nvidia (currently, case) |
| | User Certificate
| |
| | client.crt
| |
| |-
| |
| | CA Certificate
| |
| | ca.crt
| |
| |- | | |- |
| | Private Key | | |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. |
| | client.key
| | * 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 |
| * start a terminal as root, and start a VPN session:
| |
| root@wallee:/home/m/development/power_analytics/docs/private/vpn/m.gec.poweranalytics.io-openvpn# openvpn --config m.gec.poweranalytics.io.conf
| |
| * This is available but more work, never bothered...
| |
| ** sudo unity-control-center
| |
| ** Click +, VPN, OpenVPN, Create... etc.
| |
| | |
| '''Development setup''' | |
| * # install android studio manually from zips into development folder
| |
| * install eclipse
| |
| ** use the eclipse installer to install into development/eclipse folder (be careful not to install to eclipse/eclipse, if so just move and fix eclipse.ini)
| |
| ** put ~m/development/eclipse/eclipse.ini into config
| |
| ** run eclipse and create ~m/development/eclipse-workspace and select as default
| |
| ** use shared eclipse settings, to avoid problems like [http://stackoverflow.com/questions/13893942/eclipse-c-formatter-puts-new-line-before-method-identifiers this].
| |
| ** see [[Development reference]] for Eclipse installation specifics
| |
| * install boost, see [[Development reference]]
| |
| * (everything)
| |
| sudo apt-get install emacs build-essential automake libtool libssl-dev libbz2-dev python-dev curl libcurl4-openssl-dev php5-common php5-curl php5-cli php5-json php5-readline kdiff3 sqlite3 sqlitebrowser
| |
| * (or individually...)
| |
| * sudo apt-get install emacs
| |
| * sudo apt-get install build-essential automake libtool # for automake - build-essential may be there already
| |
| * sudo apt-get install libssl-dev # to get autotools "-lssl" to work
| |
| * sudo apt-get install libbz2-dev python-dev # used by boost
| |
| * sudo apt-get install curl libcurl4-openssl-dev php5-common php5-curl php5-cli php5-json php5-readline # for php with curl (for etrade PHP SDK etc)
| |
| * sudo apt-get install kdiff3 # will pull in a shit-ton of kde deps, i guess that's good
| |
| * sudo apt-get install sqlite3 sqlitebrowser | |
| * install sublime editor (see below)
| |
| * install Node.js (see below) then you can install npm packages rad-scripts and mah-haus
| |
| * install Java (see below), then you can add to the Java stack as needed: play, sbt, activator...
| |
| * run setup_for_dev.node.js to pull down all active dev repos (in progress) | |
| * hipchat hipshat
| |
| sudo su
| |
| echo "deb http://downloads.hipchat.com/linux/apt stable main" > /etc/apt/sources.list.d/atlassian-hipchat.list
| |
| wget -O - https://www.hipchat.com/keys/hipchat-linux.key | apt-key add -
| |
| apt-get update
| |
| apt-get install hipchat
| |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Ubuntu set up networking | | ! Copy from linux nautilus to android "Operation unsupported" |
| |- | | |- |
| | Install NetworkManager, as the wpagui UI sucks | | | Weird assed linux prevents "SMB to USB" copies, FUCKOFF. Workaround is to copy to local drive, then copy to phone. Wow that is sickening. |
| * sudo apt-get install network-manager-gnome
| |
| * YOU MUST remove interfaces from /etc/network/interfaces so wpa gives them up to nm-applet
| |
| * add nm-applet to startup if needed - i don't think it is needed as it seems to start up automatically now - try rebooting first
| |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! Ubuntu install Sublime
| |
| |-
| |
| | Sublime editor seems way better than anything else out there on linux:
| |
| * sudo add-apt-repository ppa:webupd8team/sublime-text-3
| |
| * sudo apt-get update
| |
| * sudo apt-get install sublime-text-installer
| |
| * git config --global core.editor "subl -n -w" # to use sublime with -n(ew window) and -w(ait for exit)
| |
| |} | | |} |
| | <!-- |
| | |
| | |
| | =========================================================================================================================================================================================================================================================================================== |
| | |
| | |
| | --> |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Ubuntu install Node.js | | ! Old notes and dead boxes |
| |- | | |- |
| | Install Node.js using the "Node.js Version Manager" nvm [https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server details] | | | |
| * find the [https://github.com/creationix/nvm/releases latest nvm version]
| |
| * curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
| |
| * source ~/.profile
| |
| * nvm ls-remote
| |
| * nvm install ##### # (latest version, eg 5.8.0)
| |
| * MDM I don't need this do I? I'm not running express... npm install -g express # to set the package manager to use a globally shared location
| |
| * nvm alias default stable
| |
| * (update .bashrc to configure node on even non-interactive shells - see another for example)
| |
| ** also: nvm use 4.2.1; node -v; nvm ls; nvm alias default 0.11.13; nvm use default
| |
| ** also: You can create an .nvmrc file containing version number in the project root directory and it will default to that version
| |
| |}
| |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Ubuntu install Java | | ! Oontz turn on dual pairing |
| |- | | |- |
| | Install Oracle JDK 8 (9 is scheduled for release in 2016) | | | Turn them both on. One should be paired with your phone, the other should be flashing blue, trying to connect. |
| su -
| | |
| add-apt-repository ppa:webupd8team/java
| | 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. |
| apt-get update
| | |
| apt-get install oracle-java8-installer
| | There is NO WAY you can guess this. You'll be back here to re-learn... |
| apt-get install oracle-java8-set-default | |
| ** ctrl-D (back to user)
| |
| update-alternatives --config java # make note of path
| |
| update-alternatives --config javac # make note of path
| |
| sudo subl /etc/environment
| |
| JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java" # actually, use the path from above, of course
| |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
Line 361: |
Line 254: |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Ubuntu repo management | | ! Fix things after IP changes |
| |- | | |- |
| | To see what repos Ubuntu is currently using: | | | 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...). |
|
| |
| cat /etc/apt/sources.list
| |
| |}
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! Set up a new Pi in 10 minutes
| |
| |-
| |
| | The BEST thing to do is to copy the MicroSD from Carambola (marked with a black 'O'):
| |
| * open a terminal so we can watch the MicroSD /dev/sd{#} assignments
| |
| sudo tail -f /var/log/syslog
| |
| * take the carambola MicroSD card out of the Pi and put it into an Anker hub (gets less hot than the small MicroSD sleeves - and it WILL get hot!)
| |
| * put another new MicroSD card into another Anker hub
| |
| * open another terminal
| |
| dcfldd bs=4M if=/dev/sd{Letter of carambola} of=/dev/sd{Letter of new card}
| |
| * They will get HOT... I don't know how to make sure they don't get TOO hot yet... cross your fingers I guess...
| |
| * Drop the new card into the new Pi, boot, change /etc/hostname and reboot
| |
| |}
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! Set up raspbian on a new Pi
| |
| |-
| |
| | Here are all (most?) of the steps to get a raspbian OS going on the Pi (very similar to unbuntu-on-PC).
| |
| * Get a Raspbian image from [https://www.raspberrypi.org/downloads/raspbian/ here]
| |
| * Create a boot MicroSD following [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md this]
| |
| * Use gnome-disks to expand the root partition to 16GB, and create a nice ExFat share on the rest if there is more space
| |
| * Boot it up and fix the locale with
| |
| sudo locale-gen en_US en_US.UTF-8 | |
| sudo dpkg-reconfigure locales # USE THE SPACE TO SELECT US and unselect GB (fucked up keyboard)
| |
| sudo dpkg-reconfigure keyboard-configuration # pick US or your keyboard is fubar
| |
| # now you have to reboot - this is a disaster pi, fix it
| |
| * Default user is pi/raspberry, better change that...
| |
| sudo adduser m
| |
| sudo passwd pi
| |
| sudo su - # and use [passwd] to set a known root password
| |
| * One-shot install of everything, then see more detailed notes, below...
| |
| sudo apt-get install kdm i3 i3lock i3status suckless-tools dunst openssh-server cifs-utils smbclient synergy arandr exfat-fuse exfat-utils hfsprogs gparted p7zip-full k4dirstat screen rxvt-unicode grdesktop openvpn bridge-utils kdiff3 nautilus-compare smartmontools automake libtool npm git network-manager-gnome iceweasel
| |
| * You may need to reconfig to use KDM so you can pick i3 (although if you log out that might work too - To logout, press Mod+shift+e (like exit) ):
| |
| sudo dpkg-reconfigure kdm
| |
| * One-shot dev install goes pretty well too:
| |
| sudo apt-get install scite sciteproj emacs build-essential automake libtool libssl-dev libbz2-dev python-dev curl libcurl4-openssl-dev php5-common php5-curl php5-cli php5-json php5-readline sqlite3 sqlitebrowser oracle-java8-jdk
| |
| * Install node with Node Version Manager (nvm) exactly the same way as in ubuntu (see above).
| |
| * Pull down and set up config, scripts like in Ubuntu.
| |
| * Pull down thedigitalage/rad-scripts, run [npm install]
| |
| * cd scripts/node/mah-hause, run [npm install], run [sy create] to create all dev repos.
| |
| There is no chromium-browser - use iceweasel (firefox on ARM) or epiphany-browser (which was enhanced specifically for pi).
| |
| | |
| My editors (Eclipse, sublime) are not really available, use scite instead.
| |
|
| |
|
| Java [apt-get install oracle-java8-jdk] is available in the default raspbian apt repo.
| | 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" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! OpenELEC multi-boot install | | ! Reset 1020 cable modem so it grants a real IP address (not private) |
| |- | | |- |
| | The easiest way is to add a new drive just for OpenElec and install OpenElec to it with the installer. But if you want to SHARE ONE DRIVE with other boots, DO NOT DO THAT :-) Do this instead: | | | Resetting things sometimes has to be done in this precise order: |
| * On an existing refind-booted system, set up two new ext4 partitions | | * cable modem -> blue cable -> **ONBOARD** bitpost NIC |
| ** one about 2GB in size, labeled [SYSTEM], and marked as bootable | | * LAN switch -> yellow cable -> **ADDON CARD** bitpost NIC |
| ** the other with 10GB or more, labeled [STORAGE] | | * power off bitpost and cable modem |
| ** [http://wiki.openelec.tv/index.php/Manual_Installation prep the drives] (no journal, ssd trim) | | * power up cable modem |
| * download openelec and mount; there are a couple ways: | | * wait 5 minutes |
| ** get the img and install to a thumb | | * power up bitpost |
| ** get the img and mount (see below) | | * verify that you can ping google.com, LAN works, etc. |
| * Set up OE drives to mount in other OSes to /openelec-system and /openelec-storage | |
| /dev/disk/by-label/SYSTEM /openelec-system ext4 noatime 0 0
| |
| /dev/disk/by-label/STORAGE /openelec-storage ext4 noatime 0 0
| |
| * copy target/KERNEL and target/SYSTEM to SYSTEM | |
| cp OpenELEC_img/target/KERNEL /openelec-system/
| |
| cp OpenELEC_img/target/SYSTEM /openelec-system/
| |
| * set up UEFI boot | |
| ** subl /boot/efi/EFI/refind/refind.conf (and add this block) | |
| # MDM Trying this, from: http://openelec.tv/forum/64-installation/70783-how-to-efi-booting-openelec-on-new-pc-s-nuc-s
| |
| # Only I had to change BOOT to SYSTEM. and quiet to debugging.
| |
| menuentry OpenELEC {
| |
| icon EFI/refind/icons/os_openelec.png
| |
| volume SYSTEM
| |
| ostype Linux
| |
| loader KERNEL
| |
| # options "boot=LABEL=SYSTEM disk=LABEL=STORAGE debugging"
| |
| options "boot=LABEL=SYSTEM disk=LABEL=STORAGE quiet"
| |
| }
| |
| * I THINK you need one or more of these too, not sure!
| |
| cp target/boot/bootx64.efi /openelec-system/BOOT
| |
| cp target/boot/bootx64.efi /boot/efi/EFI/ubuntu/
| |
| cp target/boot/bootx64.efi /boot/efi/EFI/ubuntu/
| |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! OpenELEC boot from thumb | | ! BOX: bitpost |
| |- | | |- |
| | NOTE: I have the image already on a white stick with red lettering... anyway... | | |[[Update gentoo kernel]] |
| * Get the latest dev version (stable didn't work for me although this may change)
| |
| * [http://wiki.openelec.tv/index.php/HOW-TO:Installing_OpenELEC/Creating_The_Install_Key dd it onto a thumb]
| |
| * reboot and select to boot to the thumb in BIOS
| |
| * when the boot: line comes up, type "live" to get run a live Kodi rather than run the crufty old installer
| |
| |}
| |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Windows 10 new setup | | ! drives |
| |- | | |- |
| | | | | My primary server at Blount St |
| * [http://gnuwin32.sourceforge.net/packages/grep.htm Grep for Windows]
| |
| * Create sublime symbolic links to preferences, typically here:
| |
| C:\Users\Michael\AppData\Roaming\Sublime Text 3\Packages\User
| |
| * etc.
| |
| |}
| |
| |}
| |
| <!--
| |
|
| |
|
| | bitpost ~ # df |
| | Filesystem 1G-blocks Used Available Use% Mounted on |
| | /dev/sda7 171G 143G 19G 89% / |
| | /dev/sdb1 3668G 3343G 326G 92% /spiceflow/tvmind-4g-mel |
| | /dev/sdc1 5545G 3585G 1681G 69% /spiceflow/film-6tb-bp |
| | /dev/md0 3668G 1578G 1904G 46% /spiceflow/softraid |
| | (^sdd+sde) |
| | /dev/sdf1 3667G 1G 3667G 1% /spiceflow/hare-s3-4t |
| | |
| | bitpost ~ # lsblk |
| | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT |
| | sda 8:0 0 232.9G 0 disk |
| | ├─sda1 8:1 0 190M 0 part |
| | ├─sda5 8:5 0 3.8G 0 part [SWAP] |
| | ├─sda6 8:6 0 55.9G 0 part |
| | └─sda7 8:7 0 173G 0 part / |
| | sdb 8:16 0 3.7T 0 disk |
| | └─sdb1 8:17 0 3.7T 0 part /spiceflow/tvmind-4g-mel |
| | sdc 8:32 0 5.5T 0 disk |
| | └─sdc1 8:33 0 5.5T 0 part /spiceflow/film-6tb-bp |
| | sdd 8:48 0 3.7T 0 disk |
| | └─md0 9:0 0 3.7T 0 raid1 /spiceflow/softraid |
| | sde 8:64 0 3.7T 0 disk |
| | └─md0 9:0 0 3.7T 0 raid1 /spiceflow/softraid |
| | sdf 8:80 0 3.7T 0 disk |
| | └─sdf1 8:81 0 3.7T 0 part /spiceflow/hare-s3-4t |
|
| |
|
| ===========================================================================================================================================================================================================================================================================================
| | 2019/06/01 spicey-3g died just as its replacement arrived, cest la vie. lost a bit of everything, move on. replaced with hare-s3-4t: |
| | |
| | |
| --> | |
| | |
| [[Software reference]]
| |
| [[Linux software raid]]
| |
| <!--
| |
| | |
|
| |
|
| ===========================================================================================================================================================================================================================================================================================
| | Jun 2 17:40:54 bitpost kernel: ata8: hard resetting link |
| | Jun 2 17:40:55 bitpost kernel: ata8: SATA link up 6.0 Gbps (SStatus 133 SControl 300) |
| | Jun 2 17:40:55 bitpost kernel: ata8.00: supports DRM functions and may not be fully accessible |
| | Jun 2 17:40:55 bitpost kernel: ata8.00: ATA-11: Samsung SSD 860 QVO 4TB, RVQ01B6Q, max UDMA/133 |
| | Jun 2 17:40:55 bitpost kernel: ata8.00: 7814037168 sectors, multi 1: LBA48 NCQ (depth 31/32), AA |
| | Jun 2 17:40:55 bitpost kernel: ata8.00: supports DRM functions and may not be fully accessible |
| | Jun 2 17:40:55 bitpost kernel: ata8.00: configured for UDMA/133 |
| | Jun 2 17:40:55 bitpost kernel: ata8: EH complete |
| | Jun 2 17:40:55 bitpost kernel: scsi 7:0:0:0: Direct-Access ATA Samsung SSD 860 1B6Q PQ: 0 ANSI: 5 |
| | Jun 2 17:40:55 bitpost kernel: ata8.00: Enabling discard_zeroes_data |
| | Jun 2 17:40:55 bitpost kernel: sd 7:0:0:0: Attached scsi generic sg5 type 0 |
| | Jun 2 17:40:55 bitpost kernel: sd 7:0:0:0: [sdf] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB) |
| | Jun 2 17:40:55 bitpost kernel: sd 7:0:0:0: [sdf] Write Protect is off |
| | Jun 2 17:40:55 bitpost kernel: sd 7:0:0:0: [sdf] Mode Sense: 00 3a 00 00 |
| | Jun 2 17:40:55 bitpost kernel: sd 7:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA |
| | Jun 2 17:40:55 bitpost kernel: ata8.00: Enabling discard_zeroes_data |
| | Jun 2 17:40:55 bitpost kernel: ata8.00: Enabling discard_zeroes_data |
| | Jun 2 17:40:55 bitpost kernel: sd 7:0:0:0: [sdf] Attached SCSI disk |
|
| |
|
| | | Before, at Peace Street... |
| -->
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! Boxes
| |
| |-
| |
| |
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! BOX: bitpost
| |
| |-
| |
| |
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! drives
| |
| |-
| |
| | My primary server at Peace Street
| |
| I had to stuff the goddamned drives right into the case since the rosewill was giving me such shit. | | I had to stuff the goddamned drives right into the case since the rosewill was giving me such shit. |
| In hindsight, it might not have been the rosewill at all... | | In hindsight, it might not have been the rosewill at all... |
Line 569: |
Line 409: |
| ** create a symlink: ln -s .music/Fresh/ELO-Secret\ Messages ELO-Secret\ Messages | | ** create a symlink: ln -s .music/Fresh/ELO-Secret\ Messages ELO-Secret\ Messages |
| ** close the torrent files (ctrl-k), move the destination (ctrl-o), start again (ctrl-s) | | ** close the torrent files (ctrl-k), move the destination (ctrl-o), start again (ctrl-s) |
| |}
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! Updating mediawiki installation
| |
| |-
| |
| |
| |
| cd /var/www/localhost/htdocs/mediawiki
| |
| emacs LocalSettings_redirector.php (to hardcode each site)
| |
| php maintenance/update.php
| |
| (repeat for each site)
| |
| emacs LocalSettings_redirector.php (to reset dynamic behavior)
| |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
Line 658: |
Line 488: |
| | | | | |
| cat /var/lib/misc/dnsmasq.leases | | cat /var/lib/misc/dnsmasq.leases |
| | |} |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
| ! Updating mediawiki installation | | ! BOX: viper |
| | |- |
| | | 2016 ASUS Republic of Gaming laptop |
| | |
| | {| class="mw-collapsible mw-collapsed wikitable" |
| | ! Boot from USB |
| | |- |
| | | I had to flip bios switches: |
| | * Disable secure boot |
| | * Enable CSM (some compatibility bullshit) |
| | * Reboot, THEN USB will show in boot options, just hit del to enter bios, go to save page, and select the USB you want to override on next boot. PITA! |
| | |} |
| | {| class="mw-collapsible mw-collapsed wikitable" |
| | ! Trackpad |
| |- | | |- |
| | | | | |
| cd /var/www/localhost/htdocs/mediawiki | | * Toggle on/off: |
| emacs LocalSettings_redirector.php (to hardcode each site)
| | toggle_trackpad.sh |
| php maintenance/update.php
| | * Dynamically adjust: |
| (repeat for each site) | | xinput list # recently, "Elan Touchpad" is #14 |
| emacs LocalSettings_redirector.php (to reset dynamic behavior) | | xinput list-props 14 |
| | xinput --set-prop 14 "Trackpad Sensitivity" 55 # speed (55 good, 75 faster) |
| | xinput --set-prop 14 "Trackpad Touch Pressure" 6 1 # finger (6 1) vs thumb (12 1) |
| | * Persist settings here (note they kinda match up but diff names, sigh): |
| | /etc/X11/xorg.conf.d/60-synaptics.conf |
| | |} |
| | |} |
| | {| class="mw-collapsible mw-collapsed wikitable" |
| | ! BOX: wimpy |
| | |- |
| | | My main gaming machine |
| | |
| | P8P67LE mobo Intel i5 quad core |
| | [http://www.asus.com/Motherboards/P8P67_LE/ website] |
| | |
| | * HARDWARE: |
| | ** Plug keyboard/mouse hub into TOP USB SLOT in back or BIOS won't recognize it |
| | ** Make sure you plug Vive usb into a USB 3.0 slot |
| | * ON BOOT: |
| | ** REMOVE USB KVM or the keyboard won't work - most of the time that's ok because we let it go through |
| | ** IF you boot into ubuntu, the USB hub didn't seem to work, i had to plug right into mobo |
| | |
| | * had to install from iso after windows update got stuck FUCK OFF |
| | it TOTALLY WENT ON A DIET |
| | my 148GB drive was only using 34GB AFTER the install and cleanup |
| | WAY better than before |
| | took the time to move EVERYTHING I COULD to fatboy |
| | steam base install, plus games |
| | origin base install, plus games |
| | visual studio ce, plus mobile, c++, game dev |
| | but it sucked up 36GB on "system drive", assholes |
| | they dump android stuff, ios stuff, all this bullshit there |
| | cest la vie |
| | installing: |
| | chrome (like pulling teeth to get it set as default) |
| | steam, games |
| | origin, games |
| | vs ce 2017 edition w/xamarin,c++,games,unity |
| | |
| | OLD NOTES: |
| | |
| | drives and partitions: |
| | * sda HDD, OLD OSes, need to wipe and reformat to ntfs; sda2 ntfs 1.1TB old?? |
| | * sdb |
| | ** sdb1 fat32 300MB wimpy-efi |
| | ** sdb2 ntfs 147GB windows10??? |
| | ** sdb3 fat32 287MB /boot/efi |
| | ** sdb4 linux-swap 7GB |
| | ** sdb5 ext4 wimpy-ubuntu-ssd 216GB |
| | ** sdb6 ext4 wimpy-gentoo-ssd 54GB |
| | ** sdb7 ext4 wimpy-openelec 19GB |
| | ** sdb9 fat32 "boot, esp" |
| | |
| | check in windows: |
| | wmic baseboard get product,Manufacturer,version,serialnumber |
| | |
| | boot is in /ubuntu/boot |
| | |
| |} | | |} |
| | {| class="mw-collapsible mw-collapsed wikitable" |
| | ! BOX: case |
| | |- |
| | | |
| | ''' Fixing boot ''' |
| | Windows Updates tend to clobber the EFI boot setup. |
| | |
| | THen you have to set BIOS to boot with "UEFI+Legacy", and put the UEFI "USB" drive first in front of the "Windows Boot Manager" one. |
| | |
| | THen reboot, you should get grub. |
| | |
| | Go into Ubuntu and reinstall refind. |
| | |
| | Boot back into bios, and set back to UEFI boot. Leave the USB drive first. Reboot and yhou should get refind again. FU Bill. |
| | ''' Install Ubuntu ''' |
| | To originally install ubuntu, I had to add [... --- nomodeset] to the boot line in the grub booter. |
| | |
| | Then I had to use a desktop 1080p monitor - the 4k Sony would not come up for some reason. |
| | |
| | The Seiki is working fine now, go figure. |
| | |} |
| | {| class="mw-collapsible mw-collapsed wikitable" |
| | ! BOX: Raspberry Pi 2 and 4k |
| | |- |
| | |You can override settings in /flash/config.txt; here's how, from [http://wiki.openelec.tv/index.php/Config.txt here]: |
| | mount -o remount,rw /flash |
| | nano /flash/config.txt |
| | # Make your changes, then ctrl+x to save. |
| | mount -o remount,ro /flash |
| | reboot |
| | Settings for 4k (from [https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=79330&start=25 here])... |
| | disable_overscan=1 |
| | hdmi_ignore_edid=0xa5000080 |
| | hdmi_cvt 3840 2160 30 |
| | framebuffer_width=3840 |
| | framebuffer_height=2160 |
| | hdmi_group=2 |
| | hdmi_mode=87 |
| | hdmi_pixel_freq_limit=400000000 |
| | max_framebuffer_width=3840 |
| | max_framebuffer_height=2160 |
| | I couldn't get 4K to stick in OpenELEC tho (except for the splash screen(!))... |
| | Settings->System->System->Video->Refresh->30Hz |
| | Settings->System->System->Video->Resolution->3840x2160 |
| | (it won't come up, just drops back to 1080p.. just as well, video at 30fps sucks...) |
| | And to overclock the Pi 2 (from [http://haydenjames.io/raspberry-pi-2-overclock/ here]): |
| | # OVERCLOCKING TO 1.1 GHz, EXTREME |
| | # default is 700 |
| | # this will NOT void the warranty :-) |
| | arm_freq=1000 |
| | sdram_freq=500 |
| | core_freq=500 |
| | over_voltage=6 |
| | temp_limit=80 #Will throttle to default clock speed if hit. |
| | # |
| | # there is also the "turbo" thingee (that "voids warranty", hot!!) |
| | #force_turbo=1 |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
Line 722: |
Line 680: |
| ** keyboard driver to get function key working: /spiceflow/softraid/software/OS/windows/macbook_windows10_drivers/AppleKeyboardInstaller64.exe | | ** keyboard driver to get function key working: /spiceflow/softraid/software/OS/windows/macbook_windows10_drivers/AppleKeyboardInstaller64.exe |
|
| |
|
| |}
| | Then one day... it just stopped booting... Ten-Plus says the main board has a bad power circuit or something... sad day, MOVE ON. |
| {| 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.
| |
| |}
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! BOX: case
| |
| |-
| |
| | To install ubuntu, I had to add [... --- nomodeset] to the boot line in the grub booter.
| |
| Then I had to use a desktop 1080p monitor - the 4k Sony would not come up for some reason. | |
| |}
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! BOX: Raspberry Pi 2 and 4k
| |
| |-
| |
| |You can override settings in /flash/config.txt; here's how, from [http://wiki.openelec.tv/index.php/Config.txt here]:
| |
| mount -o remount,rw /flash
| |
| nano /flash/config.txt
| |
| # Make your changes, then ctrl+x to save.
| |
| mount -o remount,ro /flash
| |
| reboot
| |
| Settings for 4k (from [https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=79330&start=25 here])...
| |
| disable_overscan=1
| |
| hdmi_ignore_edid=0xa5000080
| |
| hdmi_cvt 3840 2160 30
| |
| framebuffer_width=3840
| |
| framebuffer_height=2160
| |
| hdmi_group=2
| |
| hdmi_mode=87
| |
| hdmi_pixel_freq_limit=400000000
| |
| max_framebuffer_width=3840
| |
| max_framebuffer_height=2160
| |
| I couldn't get 4K to stick in OpenELEC tho (except for the splash screen(!))...
| |
| Settings->System->System->Video->Refresh->30Hz
| |
| Settings->System->System->Video->Resolution->3840x2160
| |
| (it won't come up, just drops back to 1080p.. just as well, video at 30fps sucks...)
| |
| And to overclock the Pi 2 (from [http://haydenjames.io/raspberry-pi-2-overclock/ here]):
| |
| # OVERCLOCKING TO 1.1 GHz, EXTREME
| |
| # default is 700
| |
| # this will NOT void the warranty :-)
| |
| arm_freq=1000
| |
| sdram_freq=500
| |
| core_freq=500
| |
| over_voltage=6
| |
| temp_limit=80 #Will throttle to default clock speed if hit.
| |
| #
| |
| # there is also the "turbo" thingee (that "voids warranty", hot!!)
| |
| #force_turbo=1
| |
| |} | | |} |
| {| class="mw-collapsible mw-collapsed wikitable" | | {| class="mw-collapsible mw-collapsed wikitable" |
Line 829: |
Line 734: |
| eselect opengl set xorg-x11 | | eselect opengl set xorg-x11 |
| reboot | | reboot |
|
| |
| |}
| |
| {| class="mw-collapsible mw-collapsed wikitable"
| |
| ! BOX: wimpy
| |
| |-
| |
| | My main development workstation
| |
|
| |
| P8P67LE mobo Intel i5 quad core
| |
| [http://www.asus.com/Motherboards/P8P67_LE/ website]
| |
|
| |
| drives and partitions:
| |
| * sda HDD, OLD OSes, need to wipe and reformat to ntfs; sda2 ntfs 1.1TB old??
| |
| * sdb
| |
| ** sdb1 fat32 300MB wimpy-efi
| |
| ** sdb2 ntfs 147GB windows10???
| |
| ** sdb3 fat32 287MB /boot/efi
| |
| ** sdb4 linux-swap 7GB
| |
| ** sdb5 ext4 wimpy-ubuntu-ssd 216GB
| |
| ** sdb6 ext4 wimpy-gentoo-ssd 54GB
| |
| ** sdb7 ext4 wimpy-openelec 19GB
| |
| ** sdb9 fat32 "boot, esp"
| |
|
| |
| check in windows:
| |
| wmic baseboard get product,Manufacturer,version,serialnumber
| |
|
| |
| boot is in /ubuntu/boot
| |
|
| |
|
| |
|
| |
|
| |
| grub menu: /ubuntu/boot/grub/menu.lst
| |
|
| |
| post-kernel tasks:
| |
|
| |
| make sure you update /etc/conf.d/modules for any new modules added
| |
| update-modules
| |
| module-rebuild populate
| |
| module-rebuild rebuild (if you feel brave)
| |
| module-rebuild list (if you want to do it manually)
| |
| emerge nvidia-drivers (etc)
| |
| update-modules
| |
| dispatch-conf
| |
| eselect opengl set nvidia
| |
| reboot
| |
|
| |
| if you break gentoo (or rather, if gentoo devs break gentoo, or open source hacks break gentoo, or whatever... but ultimately, you...)...
| |
| boot into ubuntu
| |
| su -
| |
| ./chroot_to_gentoo
| |
| (chroot) ./setup_chroot
| |
| ** FIX IT **
| |
|
| |
| to install a new kernel that ubuntu will serve up...
| |
| build it in a chroot
| |
| back in ubuntu, copy it:
| |
| cp /mnt/gentoo/usr/src/linux/arch/x86_64/boot/bzImage /boot/linux-blahblbahba
| |
| and update grub. you can change em both or just the second (and rerun grub-mkconfig >/boot/grub/grub.cfg):
| |
| emacs /boot/grub/grub.cfg
| |
| emacs /etc/grub.d/09_gentoo
| |
|
| |
|
| |} | | |} |