Ubuntu quickstart: Difference between revisions

From Bitpost wiki
(Created page with "* Install Ubuntu from thumb, following wiki instructions. Reboot, select to boot the thumb in BIOS, install, checking the [download as you go] and [ins...")
 
No edit summary
Line 1: Line 1:
* Install Ubuntu from thumb, following [[Software Reference|wiki instructions]].
* Install Ubuntu from thumb, following [[Software Reference|wiki instructions]].
 
* Set up user m to have auto-sudo
Reboot, select to boot the thumb in BIOS, install, checking the [download as you go] and [install 3rd party stuff] boxes.
**
 
* Get everything INCLUDING DEVELOPMENT STUFF
Things to install ASAP:
* (everything INCLUDING DEVELOPMENT STUFF)
  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 network-manager-openvpn-gnome nautilus-dropbox synergy software-properties-common scrot gnome-screenshot gnome-settings-daemon gksu feh blueman pavucontrol pnmixer emacs build-essential automake libtool libssl-dev libbz2-dev python-dev curl libcurl4-openssl-dev kdiff3 sqlite3 sqlitebrowser qtcreator ruby ruby-dev tig meld blender
  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 network-manager-openvpn-gnome nautilus-dropbox synergy software-properties-common scrot gnome-screenshot gnome-settings-daemon gksu feh blueman pavucontrol pnmixer emacs build-essential automake libtool libssl-dev libbz2-dev python-dev curl libcurl4-openssl-dev kdiff3 sqlite3 sqlitebrowser qtcreator ruby ruby-dev tig meld blender
* Macbook Pro 5.3-specific stuff - see [[Ubuntu upgrade / reinstall notes]] for details:
* Do any hardware-specific tasks
sudo apt-get install pommed firmware-b43-installer xserver-xorg-input-mtrack sensors-applet isight-firmware-tools
** nvidia drivers
* (everything for user env, then see more detailed notes, below)
*** open unity-control-center AS ROOT: sudo unity-control-center
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 network-manager-openvpn-gnome nautilus-dropbox synergy software-properties-common scrot gnome-screenshot gnome-settings-daemon gksu feh blueman pavucontrol pnmixer
*** select Sofware and Updates
* if ubuntu forced grub as the boot manager, download the refind zip file, unpack, and (re)run ./install.sh.
*** select Additional Drivers tab, click nvidia (and Intel mobo, etc as needed) proprietary driver, Apply
* install i3
* Ensure refind remains the boot manager; download and unpack the zip, then reinstall:
** EITHER install i3 and i3 meta package through ubuntu: sudo software-center # then install i3 and i3 meta package
cd Downloads/refind-bin-0.10.3
** OR do it yourself: sudo apt-get install i3 i3lock i3status suckless-tools dunst
./refind-install
** 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
* set up ssh
  sudo apt-get install openssh-server # default is ok but see /etc/ssh/sshd_config for details
  # openssh-server defaults are ok but see /etc/ssh/sshd_config for details
  cd ~m/.ssh
  cd ~m/.ssh
  scp m@bitpost.com:/home/m/.ssh/authorized_keys .
  scp m@bitpost.com:/home/m/.ssh/authorized_keys .
  scp m@bitpost.com:/home/m/.ssh/id_rsa_3072_nopswd .
  scp m@bitpost.com:/home/m/.ssh/id_rsa_3072_nopswd .
  ln -s id_rsa_3072_nopswd id_rsa
  ln -s id_rsa_3072_nopswd id_rsa
* as root, create /root/samba_credentials (copy it from another machine)
* as root, create /root/samba_credentials (get it from another machine), and chmod 400 on it
* set up scripts repo
* set up scripts repo
  git clone ssh://bitpost.com/home/m/development/scripts  
  git clone ssh://bitpost.com/home/m/development/scripts  

Revision as of 16:26, 25 September 2016

  • Install Ubuntu from thumb, following wiki instructions.
  • Set up user m to have auto-sudo
  • Get everything INCLUDING DEVELOPMENT STUFF
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 network-manager-openvpn-gnome nautilus-dropbox synergy software-properties-common scrot gnome-screenshot gnome-settings-daemon gksu feh blueman pavucontrol pnmixer emacs build-essential automake libtool libssl-dev libbz2-dev python-dev curl libcurl4-openssl-dev kdiff3 sqlite3 sqlitebrowser qtcreator ruby ruby-dev tig meld blender
  • Do any hardware-specific tasks
    • nvidia drivers
      • open unity-control-center AS ROOT: sudo unity-control-center
      • select Sofware and Updates
      • select Additional Drivers tab, click nvidia (and Intel mobo, etc as needed) proprietary driver, Apply
  • Ensure refind remains the boot manager; download and unpack the zip, then reinstall:
cd Downloads/refind-bin-0.10.3
./refind-install
  • set up ssh
# openssh-server defaults are 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 (get it from another machine), and chmod 400 on it
  • 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