Ubuntu quickstart: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
 
(60 intermediate revisions by the same user not shown)
Line 1: Line 1:
* Install Ubuntu from thumb, following [[Software reference|OS installation instructions]].
* Install Ubuntu from thumb, following [[Software reference|OS installation instructions]].
* Set up my user to have auto-sudo
* '''HARDWARE'''
sudo visudo
  # MDM give out the power
  #mah-FAB-user# ALL=(ALL) NOPASSWD: ALL
* 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
** nvidia drivers
*** open unity-control-center AS ROOT: sudo unity-control-center
*** sudo ubuntu-drivers autoinstall
*** (OR... older...)
*** open unity-control-center WITHIN UNITY, or from i3 i think you must open AS ROOT: sudo unity-control-center
*** select Sofware and Updates
*** select Sofware and Updates
*** select Additional Drivers tab, click nvidia (and Intel mobo, etc as needed) proprietary driver, Apply
*** 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:
* '''REFIND''' Ensure refind remains the boot manager; download and unpack the zip, then reinstall:
  cd Downloads/refind-bin-0.10.3
  cd apps/refind-bin-0.10.3
  ./refind-install
  ./refind-install
* set up ssh
* Follow [[Linux barebones quickstart]]
  # 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
The rest of this is deprecated and is being moved into barebones...
* configure git
 
  git config --global user.email m@bitpost.com
* '''EVERYTHING''' Get everything INCLUDING DEVELOPMENT STUFF
git config --global user.name "Michael Behrns-Miller [#machine_name#-ubuntu]"
  sudo apt install acpi arandr audacity automake blender blueman bridge-utils build-essential cifs-utils cmake compton curl doxygen dunst emacs exfat-fuse exfat-utils feh ffmpeg figlet firefox gimp git gksu gnome-settings-daemon gparted grdesktop hexchat hfsprogs htop i3 i3lock i3status jp2a k4dirstat kdiff3 kodi libbz2-dev libcurl4-openssl-dev libssl-dev libtool lxappearance maim meld nautilus-compare nautilus-dropbox net-tools network-manager-gnome network-manager-openvpn-gnome openssh-server openvpn p7zip-full pavucontrol pnmixer python-dev qtcreator qt-sdk rename rxvt-unicode screen slop smartmontools smbclient software-properties-common sqlite3 sqlitebrowser steam stow suckless-tools synergy tig tree ubuntu-restricted-extras valgrind vlc xfce4-power-manager
* install [[Node.js|nvm and npm and node]]
* Slightly different at work:
* install [[Sublime]]
# REMOVE: blender blueman kodi steam synery
* set up scripts repo
# ADD:
git clone ssh://bitpost.com/home/m/development/scripts
sudo apt install open-vm-tools open-vm-tools-desktop mercurial awscli nfs-common
cd && ln -s development/scripts scripts
sudo easy_install pyinotify && sudo pip install pylint twisted pex
mkdir scripts/ubuntu/[new machine]
# also set up zoiper, see the software page
* set up config repo (remember we need files in git and symlinks to them from the system, YES THIS SUCKS, GIT!)
* VirtualBox on adept
verify_ubuntu_config_symlinks # we need to turn ALL THESE into SYMLINKS
  # REMOVE xfce4-power-manager blender compton kodi nautilus-dropbox network-manager-gnome network-manager-openvpn-gnome openvpn steam
mkdir development && cd development
  # ADD: sudo apt install virtualbox virtualbox-ext-pack
git clone ssh://bitpost.com/home/m/development/config
sudo apt install acpi arandr audacity automake awscli blueman bridge-utils build-essential cifs-utils cmake compton curl doxygen dunst emacs exfat-fuse exfat-utils feh ffmpeg figlet firefox gimp git gksu gnome-settings-daemon gparted grdesktop hexchat hfsprogs htop i3 i3lock i3status jp2a k4dirstat kdiff3 libbz2-dev libcurl4-openssl-dev libssl-dev libtool lxappearance maim meld mercurial nautilus-compare net-tools nfs-common openssh-server p7zip-full pavucontrol pnmixer python-dev qtcreator qt-sdk rename rxvt-unicode screen smartmontools smbclient software-properties-common sqlite3 sqlitebrowser stow suckless-tools synergy tig tree ubuntu-restricted-extras valgrind vlc
cd config
  sudo easy_install pyinotify && sudo pip install pylint twisted pex
* I'M AVOIDING THESE as i don't think i need or want them any more...
  sudo apt-get install chromium-browser scrot gnome-screenshot ruby ruby-dev
* '''SAMBA''' as root, create /root/samba_credentials (get it from another machine), and chmod 400 on it
* '''CONFIG'''
  cd ~/development/config/[new machine]
  # DO ALL THE FOLLOWING AT ONCE or your system will be fubar
  # 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
  cp -r -p viper/ubuntu [new machine]/
  cd && ln -s /home/m/development/config/[new machine]/ubuntu config
# be careful, this will need pruning/updating NOW
  cd && ln -s development/config/[new machine]/ubuntu/home/m/.bashrc .bashrc
  grep -R viper * # search so you can replace!
  subl .bashrc # update PATH to include custom scripts folder in path
# HAVE AT LEAST THESE UPDATED for things to start working:
# etc/fstab
# etc/hosts
# home/m/.bashrc
#
# NOTE: when you run setup, stow will give you further feedback
* '''RUN SETUP SCRIPT'''
cd scripts/ubuntu
./setup_new_ubuntu.sh
  verify_ubuntu_config_symlinks
* set chrome or other default browsers to save to /home/m/bitpost/download/torrents
* download boost, symlink to /home/m/development/boost, build with my script
* run qtcreator, load CMakeLists.txt files for important projects, and configure release/debug projects
* install an editor like [[Brackets]] yeah or [[Sublime]]
* run xfce4-power-manager-settings and set power settings as desired (including activating bar applet)
* Get lots of [[UnixPorn]] goodness going
 
 
 
'''OLD NOTES''' that should be handled in setup script...
 
{| class="wikitable"
! [[Ubuntu 16.04 "Xenial Xerus" setup]]
|}
{| class="wikitable"
! [[Ubuntu 16.10 "Xenial Xerus" upgrade]]
|}
 
  sudo visudo
  # MDM PUT THIS AT THE VERY END
  m ALL=(ALL) NOPASSWD: ALL
  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 .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
  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
Line 47: Line 78:
  mv fstab /home/m/config/etc/fstab
  mv fstab /home/m/config/etc/fstab
  ln -s fstab /home/m/config/etc/fstab
  ln -s fstab /home/m/config/etc/fstab
subl /home/m/config/etc/fstab /home/m/development/config/melange/ubuntu/etc/fstab # and copy samba mounts
su -
cd /etc
  diff /etc/hosts /home/m/config/etc/hosts (most important: make sure correct hostname is being used)
  diff /etc/hosts /home/m/config/etc/hosts (most important: make sure correct hostname is being used)
  mv hosts /home/m/config/etc/hosts
  mv hosts /home/m/config/etc/hosts
  ln -s hosts /home/m/config/etc/hosts
  ln -s hosts /home/m/config/etc/hosts
  # keep going with all remaining symlinks.... until....
  # keep going with all remaining symlinks.... until....
  verify_ubuntu_config_symlinks # ALL THESE should now be SYMLINKS
  verify_ubuntu_config_symlinks # ALL THESE should now be SYMLINKS
* set up .bashrc - see another machine's as an example; use the common parts at top and bottom; make sure to update script path
# set up .bashrc - see another machine's as an example; use the common parts at top and bottom; make sure to update script path
* clone mania!
clone_dev_repos
* Install [[Scala]] (Java then sbt then use nop-util to build Causam project)

Latest revision as of 21:51, 31 December 2018

  • Install Ubuntu from thumb, following OS installation instructions.
  • HARDWARE
    • nvidia drivers
      • sudo ubuntu-drivers autoinstall
      • (OR... older...)
      • open unity-control-center WITHIN UNITY, or from i3 i think you must open 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
  • REFIND Ensure refind remains the boot manager; download and unpack the zip, then reinstall:
cd apps/refind-bin-0.10.3
./refind-install



The rest of this is deprecated and is being moved into barebones...

  • EVERYTHING Get everything INCLUDING DEVELOPMENT STUFF
sudo apt install acpi arandr audacity automake blender blueman bridge-utils build-essential cifs-utils cmake compton curl doxygen dunst emacs exfat-fuse exfat-utils feh ffmpeg figlet firefox gimp git gksu gnome-settings-daemon gparted grdesktop hexchat hfsprogs htop i3 i3lock i3status jp2a k4dirstat kdiff3 kodi libbz2-dev libcurl4-openssl-dev libssl-dev libtool lxappearance maim meld nautilus-compare nautilus-dropbox net-tools network-manager-gnome network-manager-openvpn-gnome openssh-server openvpn p7zip-full pavucontrol pnmixer python-dev qtcreator qt-sdk rename rxvt-unicode screen slop smartmontools smbclient software-properties-common sqlite3 sqlitebrowser steam stow suckless-tools synergy tig tree ubuntu-restricted-extras valgrind vlc xfce4-power-manager
  • Slightly different at work:
# REMOVE: blender blueman kodi steam synery
# ADD: 
sudo apt install open-vm-tools open-vm-tools-desktop mercurial awscli nfs-common
sudo easy_install pyinotify && sudo pip install pylint twisted pex
# also set up zoiper, see the software page
  • VirtualBox on adept
# REMOVE xfce4-power-manager blender compton kodi nautilus-dropbox network-manager-gnome network-manager-openvpn-gnome openvpn steam
# ADD: sudo apt install virtualbox virtualbox-ext-pack
sudo apt install acpi arandr audacity automake awscli blueman bridge-utils build-essential cifs-utils cmake compton curl doxygen dunst emacs exfat-fuse exfat-utils feh ffmpeg figlet firefox gimp git gksu gnome-settings-daemon gparted grdesktop hexchat hfsprogs htop i3 i3lock i3status jp2a k4dirstat kdiff3 libbz2-dev libcurl4-openssl-dev libssl-dev libtool lxappearance maim meld mercurial nautilus-compare net-tools nfs-common openssh-server p7zip-full pavucontrol pnmixer python-dev qtcreator qt-sdk rename rxvt-unicode screen smartmontools smbclient software-properties-common sqlite3 sqlitebrowser stow suckless-tools synergy tig tree ubuntu-restricted-extras valgrind vlc
sudo easy_install pyinotify && sudo pip install pylint twisted pex
  • I'M AVOIDING THESE as i don't think i need or want them any more...
sudo apt-get install chromium-browser scrot gnome-screenshot ruby ruby-dev 
  • SAMBA as root, create /root/samba_credentials (get it from another machine), and chmod 400 on it
  • CONFIG
cd ~/development/config/[new machine]
# DO ALL THE FOLLOWING AT ONCE or your system will be fubar
cp -r -p viper/ubuntu [new machine]/
# be careful, this will need pruning/updating NOW
grep -R viper * # search so you can replace!
# HAVE AT LEAST THESE UPDATED for things to start working:
# etc/fstab
# etc/hosts
# home/m/.bashrc
#
# NOTE: when you run setup, stow will give you further feedback
  • RUN SETUP SCRIPT
cd scripts/ubuntu
./setup_new_ubuntu.sh
verify_ubuntu_config_symlinks
  • set chrome or other default browsers to save to /home/m/bitpost/download/torrents
  • download boost, symlink to /home/m/development/boost, build with my script
  • run qtcreator, load CMakeLists.txt files for important projects, and configure release/debug projects
  • install an editor like Brackets yeah or Sublime
  • run xfce4-power-manager-settings and set power settings as desired (including activating bar applet)
  • Get lots of UnixPorn goodness going


OLD NOTES that should be handled in setup script...

Ubuntu 16.04 "Xenial Xerus" setup
Ubuntu 16.10 "Xenial Xerus" upgrade
sudo visudo
  # MDM PUT THIS AT THE VERY END
  m ALL=(ALL) NOPASSWD: ALL
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
subl /home/m/config/etc/fstab /home/m/development/config/melange/ubuntu/etc/fstab # and copy samba mounts
su -
cd /etc
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
# keep going with all remaining symlinks.... until....


verify_ubuntu_config_symlinks # ALL THESE should now be SYMLINKS
# set up .bashrc - see another machine's as an example; use the common parts at top and bottom; make sure to update script path