Ubuntu quickstart: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
* Install Ubuntu from thumb, following [[Software reference|OS installation instructions]]. | * Install Ubuntu from thumb, following [[Software reference|OS installation instructions]]. | ||
* ''' | * '''HARDWARE''' | ||
** nvidia drivers | ** nvidia drivers | ||
*** open unity-control-center WITHIN UNITY, or from i3 i think you must open AS ROOT: sudo unity-control-center | *** 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 Downloads/refind-bin-0.10.3 | ||
./refind-install | ./refind-install | ||
* Get everything INCLUDING DEVELOPMENT STUFF | * '''EVERYTHING''' 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 qt-sdk qtcreator ruby ruby-dev tig meld blender vlc audacity cmake stow | 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 qt-sdk qtcreator ruby ruby-dev tig meld blender vlc audacity cmake stow | ||
* | * '''SSH''' | ||
# openssh-server defaults are 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 | ||
Line 20: | Line 16: | ||
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 (get it from another machine), and chmod 400 on it | * '''SAMBA''' as root, create /root/samba_credentials (get it from another machine), and chmod 400 on it | ||
* | * '''SCRIPTS''' | ||
cd && mkdir development && cd development | cd && mkdir development && cd development | ||
git clone bitpost.com:development/scripts.git | git clone bitpost.com:development/scripts.git | ||
cd && ln -s development/scripts scripts | cd && ln -s development/scripts scripts | ||
mkdir scripts/ubuntu/[new machine] | mkdir scripts/ubuntu/[new machine] | ||
* | * '''CONFIG''' | ||
cd ~/development | |||
git clone bitpost.com:development/config.git | git clone bitpost.com:development/config.git | ||
cd config | cd config | ||
Line 40: | Line 32: | ||
grep -R viper * # search so you can replace! | grep -R viper * # search so you can replace! | ||
cd && ln -s /home/m/development/config/[new machine]/ubuntu config | cd && ln -s /home/m/development/config/[new machine]/ubuntu config | ||
* '''RUN SETUP SCRIPT''' | |||
verify_ubuntu_config_symlinks | setup_new_ubuntu.sh | ||
verify_ubuntu_config_symlinks | |||
old notes that should | * 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]] | |||
* Get lots of [[UnixPorn]] goodness going | |||
{| class="wikitable" | |||
! [[Ubuntu 16.04 "Xenial Xerus" setup]] | |||
|} | |||
{| class="wikitable" | |||
! [[Ubuntu 16.10 "Xenial Xerus" upgrade]] | |||
|} | |||
old notes that should be handled in setup script... | |||
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 58: | Line 67: | ||
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 | ||
Revision as of 16:44, 22 November 2016
- Install Ubuntu from thumb, following OS installation instructions.
- HARDWARE
- nvidia drivers
- 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
- nvidia drivers
- REFIND Ensure refind remains the boot manager; download and unpack the zip, then reinstall:
cd Downloads/refind-bin-0.10.3 ./refind-install
- EVERYTHING 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 qt-sdk qtcreator ruby ruby-dev tig meld blender vlc audacity cmake stow
- 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
- SAMBA as root, create /root/samba_credentials (get it from another machine), and chmod 400 on it
- SCRIPTS
cd && mkdir development && cd development git clone bitpost.com:development/scripts.git cd && ln -s development/scripts scripts mkdir scripts/ubuntu/[new machine]
- CONFIG
cd ~/development git clone bitpost.com:development/config.git cd config mkdir [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! cd && ln -s /home/m/development/config/[new machine]/ubuntu config
- RUN SETUP SCRIPT
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
- Get lots of UnixPorn goodness going
Ubuntu 16.04 "Xenial Xerus" setup |
---|
Ubuntu 16.10 "Xenial Xerus" upgrade |
---|
old notes that should be handled in setup script...
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