UbuntuSetup: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
(removed section →‎Disable Guest Login)
m (Drew moved page Ubuntu17.10Setup to UbuntuSetup: Update as using 20.04)
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Install Main Apps=
= After initial install =
Run install script from [https://github.com/drew-holt/ubuntu-setup-bash/blob/master/drew-8570w_u1710setup.sh]
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
sudo apt-get update
wget https://raw.githubusercontent.com/drew-holt/ubuntu-setup-bash/master/drew-8570w_setup.sh
sudo apt-get upgrade -y
chmod 755 drew-8570w_setup.sh
sudo apt-get dist-upgrade
./drew-8570w_setup.sh | tee -a setup-$(date '+%Y-%m-%d-%H.%M.%S%z').log
 
sudo apt-get install -y etckeeper
cd /etc
sudo etckeeper init
sudo vi .gitignore # remove sensitive files
</syntaxhighlight>
</syntaxhighlight>


==Disable Popcorn==
= Installers needing extra config =
* KeyBase [https://keybase.io]
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
dpkg-reconfigure popularity-contest
run_keybase
</syntaxhighlight>
</syntaxhighlight>


==Set vim Editor==
* Insync [https://www.insynchq.com/downloads]
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
sudo update-alternatives --set editor /usr/bin/vim.basic
insync start ### do some magic here so we don't have to resync 200GB of google drive
</syntaxhighlight>
</syntaxhighlight>


==Set passwordless sudo==
* Chrome [https://www.google.com/chrome/]
<syntaxhighlight lang=bash>
* Atom [https://atom.io/]
visudo:
* Slack [https://slack.com/downloads/linux]
username ALL=(ALL) NOPASSWD: ALL
* Skype [https://www.skype.com/en/get-skype/skype-for-linux/]
</syntaxhighlight>
* Oracle JDK 8 [https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04]
 
* Docker [https://docs.docker.com/install/linux/docker-ce/ubuntu/#upgrade-docker-ce]
== Dash to Dock ==
* awscli [https://aws.amazon.com/cli/]
https://extensions.gnome.org/extension/307/dash-to-dock/
* youtube-dl (pip) [https://rg3.github.io/youtube-dl/]
 
* nvm ''requires '''/bin/bash --login''' or fixed shell'' [https://github.com/creationix/nvm]
==  Set gnome-screenshot default save directory ==
* rvm ''requires '''/bin/bash --login''' or fixed shell'' [https://github.com/rvm/ubuntu_rvm Ubuntu RVM Instructions]
?
== Gnome3 Fix alt+tab to move across widnows and not just grouped apps ==
<syntaxhighlight lang=bash>
Open dconf-editor
Go to org/gnome/desktop/wm/keybindings
Move the value '<Alt>Tab' from switch-applications to switch-windows
Optionally move '<Shift><Alt>Tab' from switch-applications-backward to switch-windows-backward
If you want switch-windows to work across desktops, not just in the current desktop, you can also uncheck org/gnome/shell/window-switcher/current-workspace-only (Courtesy of @CharlBotha)
Close dconf-editor
Press <Alt>F2, then type r to restart Gnome.
</syntaxhighlight>
[https://superuser.com/questions/394376/how-to-prevent-gnome-shells-alttab-from-grouping-windows-from-similar-apps]


== Gnome Tweak Tool ==
== Install Manually ==
<syntaxhighlight lang=bash>
* VirtualBox (script this?) [https://www.virtualbox.org/]
TopIcons-plus - for Insync, Slack, Skype icons
* Vagrant (script this?) [https://www.vagrantup.com/]
Extension update notifier
* ChefDK (script this) [https://downloads.chef.io/chefdk]
Freon
Status area horizontal spacing
$ ~/.local/share/gnome-shell/extensions
sudo apt-get install chrome-gnome-shell
* restart GNOME Shell (Alt+F2, r, Enter) and enable the extension through gnome-tweak-tool.
</syntaxhighlight>


=Install Main Apps=
= When needed =
<syntaxhighlight lang=bash>
* Terraform [https://www.terraform.io/]  
sudo apt-get install \
* Gitter
keepass2 rdesktop vncviewer \
lm-sensors p7zip-full exfat-utils exfat-fuse encfs \
vim ssh git \
ubuntu-restricted-extras qbittorrent gimp audacity \
openjdk-8-jre icedtea-8-plugin oracle-java8-installer \
network-manager-openvpn wireshark nmap nikto chkrootkit wavemon namebench apache2-utils mailutils \
openvpn openssh-server fail2ban \
vlc vlc-plugin-fluidsynth ffmpeg atomicparsley \
virtualenv python2.7-examples python-pip \
xchat pidgin \
chrome-gnome-shell \
ansible \
gnome-tweaks
 
# xd exiftol
# openconnect network-manager-openconnect network-manager-openconnect-gnome # cisco vpn
</syntaxhighlight>
 
* Atom [https://atom.io/]
** atom-beautify
** linter-flake8
** linter-pep8
** autocomplete-python
** django-templates
** script-runner
** teletype
* sqlitebrowser
* youtube-dl (via pip)
* VirtualBox [https://www.virtualbox.org/]
* Vagrant [https://www.vagrantup.com/]
** vagrant plugin install vagrant-berkshelf
** vagrant plugin install berkshelf
* Terraform [https://www.terraform.io/]
* KeyBase [https://keybase.io]
* DropBox [https://dropbox.com]
* Docker [https://docs.docker.com/install/linux/docker-ce/ubuntu/]
* Chrome, verify Google Hangouts
* Insynq [https://www.insynchq.com/downloads]
* Synergy
* Ramlog or equivalent for SSD
* Ramlog or equivalent for SSD
* nvm
* gvm for golang
* gvm for goland
* Studio 3T MongoDB Browser [https://studio3t.com/download/]
* rvm [https://github.com/rvm/ubuntu_rvm Ubuntu RVM Instructions]
* Studio 3T (mongodb browswer) (https://studio3t.com/download/)
* IntelliJ [https://www.jetbrains.com/idea/download/]
* Android Studio [https://developer.android.com/studio/index.html]
* Android Studio [https://developer.android.com/studio/index.html]
* Eclipse [https://www.eclipse.org/]
* Eclipse [https://www.eclipse.org/]
* NetBeans [https://netbeans.org/downloads/]
* NetBeans [https://netbeans.org/downloads/]
* DropBox (only if needed for work)
* PyCharm [https://www.jetbrains.com/pycharm/download/#section=linux]
* PyCharm [https://www.jetbrains.com/pycharm/download/#section=linux]
* IntelliJ [https://www.jetbrains.com/idea/download/]


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
Line 113: Line 51:
Name                  Version                  Rev  Developer      Notes
Name                  Version                  Rev  Developer      Notes
core                  16-2.29.4.2              3604  canonical      core
core                  16-2.29.4.2              3604  canonical      core
cumulonimbus          1.6.7                    18    snapcrafters  -
drive                current                  22    fireeye        -
drive                current                  22    fireeye        -
gitter-desktop        3.1.0                    20    snapcrafters  -
juju                  2.3.1                    3106  canonical      classic
juju                  2.3.1                    3106  canonical      classic
kubectl              1.9.0                    266  canonical      classic
kubectl              1.9.0                    266  canonical      classic
picard                1.4.2                    2    pachulo        -
spotify              1.0.70.399.g5ffabd56-26  5    spotify        -
sqlitebrowser-casept  3.9.1                    2    casept        -
vault                v0.9.0                  236  snapcrafters  -
vscode                1.19.1-1513676564        22    flexiondotorg  classic
</syntaxhighlight>
</syntaxhighlight>


= Other NFS =
=Configure misc=
==Configure SSH keys==
Create new ones or replenish from vault.
 
==Configure GPG keys==
Pull from vault, set git config
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
sudo apt-get install -y nfs-common cifs-utils ethtool pm-utils
gpg --import drewholt-private-2018.03.01.key
gpg --edit-key {KEY} trust quit
 
git config --global user.signingkey 7A27C99359698874
 
vi ~/.gnupg/gpg.conf:
default-key 2018-03-01
 
gpg -d somefile.tar.xz.pgp | tar -tJ
</syntaxhighlight>
</syntaxhighlight>


*/etc/fstab
==  Set gnome-screenshot default save directory ==
<syntaxhighlight lang=bash>
?
192.168.1.200:/mnt/raid5 /mnt/raid5 nfs defaults 0 0
 
</syntaxhighlight>
==Set default downloads directory to Desktop==
command for firefox, chrome, qbit, skype, slack, hangouts, etc
 
== Gnome Tweak Tool ==
Install and configure extensions (done via script).
* Dash to Dock [https://extensions.gnome.org/extension/307/dash-to-dock/]
* TopIcons-plus [https://extensions.gnome.org/extension/1031/topicons/] - for Insync, Slack, Skype icons


= Other Syslog =
==Gmail to handle mailto: links==
Remote syslog
Partially scripted.
<syntaxhighlight lang=bash>
echo "*.* @192.168.1.200" >> /etc/rsyslog.d/50-default.conf
</syntaxhighlight>


= tmpfs if on SSD =
https://developers.google.com/web/updates/2012/02/Getting-Gmail-to-handle-all-mailto-links-with-registerProtocolHandler
*tmpfs for /tmp and (maybe make this a bind mount..)
<syntaxhighlight lang=bash>
tmpfs  /tmp      tmpfs  defaults,noatime,mode=1777  0  0
</syntaxhighlight>


= Web server if needed =
==Maybe Snaps==
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
sudo apt-get install apache2 php7 php7-sqlite
drew@drew-8570w:~$ snap list
picard                1.4.2                    2    pachulo        -
spotify              1.0.70.399.g5ffabd56-26  5    spotify        -
sqlitebrowser-casept  3.9.1                    2    casept        -
vault                v0.9.0                  236  snapcrafters  -
vscode                1.19.1-1513676564        22    flexiondotorg  classic
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 01:12, 7 September 2021

Install Main Apps

Run install script from [1]

wget https://raw.githubusercontent.com/drew-holt/ubuntu-setup-bash/master/drew-8570w_setup.sh
chmod 755 drew-8570w_setup.sh
./drew-8570w_setup.sh | tee -a setup-$(date '+%Y-%m-%d-%H.%M.%S%z').log

Installers needing extra config

run_keybase
insync start ### do some magic here so we don't have to resync 200GB of google drive

Install Manually

  • VirtualBox (script this?) [13]
  • Vagrant (script this?) [14]
  • ChefDK (script this) [15]

When needed

  • Terraform [16]
  • Gitter
  • Ramlog or equivalent for SSD
  • gvm for golang
  • Studio 3T MongoDB Browser [17]
  • Android Studio [18]
  • Eclipse [19]
  • NetBeans [20]
  • DropBox (only if needed for work)
  • PyCharm [21]
  • IntelliJ [22]
drew@drew-8570w:~$ snap list
Name                  Version                  Rev   Developer      Notes
core                  16-2.29.4.2              3604  canonical      core
drive                 current                  22    fireeye        -
juju                  2.3.1                    3106  canonical      classic
kubectl               1.9.0                    266   canonical      classic

Configure misc

Configure SSH keys

Create new ones or replenish from vault.

Configure GPG keys

Pull from vault, set git config

gpg --import drewholt-private-2018.03.01.key
gpg --edit-key {KEY} trust quit

git config --global user.signingkey 7A27C99359698874

vi ~/.gnupg/gpg.conf:
default-key 2018-03-01

gpg -d somefile.tar.xz.pgp | tar -tJ

Set gnome-screenshot default save directory

?

Set default downloads directory to Desktop

command for firefox, chrome, qbit, skype, slack, hangouts, etc

Gnome Tweak Tool

Install and configure extensions (done via script).

  • Dash to Dock [23]
  • TopIcons-plus [24] - for Insync, Slack, Skype icons

Gmail to handle mailto: links

Partially scripted.

https://developers.google.com/web/updates/2012/02/Getting-Gmail-to-handle-all-mailto-links-with-registerProtocolHandler

Maybe Snaps

drew@drew-8570w:~$ snap list
picard                1.4.2                    2     pachulo        -
spotify               1.0.70.399.g5ffabd56-26  5     spotify        -
sqlitebrowser-casept  3.9.1                    2     casept         -
vault                 v0.9.0                   236   snapcrafters   -
vscode                1.19.1-1513676564        22    flexiondotorg  classic