UbuntuSetup: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
No edit summary
m (Drew moved page Ubuntu17.10Setup to UbuntuSetup: Update as using 20.04)
 
(58 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Install Main Apps=
Run install script from [https://github.com/drew-holt/ubuntu-setup-bash/blob/master/drew-8570w_u1710setup.sh]
<syntaxhighlight lang=bash>
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
</syntaxhighlight>


= After initial install =
= Installers needing extra config =
<syntaxhighlight>
* KeyBase [https://keybase.io]
sudo apt-get update
<syntaxhighlight lang=bash>
sudo apt-get upgrade -y
run_keybase
sudo apt-get dist-upgrade
</syntaxhighlight>


sudo apt-get install -y etckeeper
* Insync [https://www.insynchq.com/downloads]
cd /etc
<syntaxhighlight lang=bash>
sudo etckeeper init
insync start ### do some magic here so we don't have to resync 200GB of google drive
sudo vi .gitignore # remove sensitive files
</syntaxhighlight>
</syntaxhighlight>


==Disable Guest Login==
* Chrome [https://www.google.com/chrome/]
<syntaxhighlight>
* Atom [https://atom.io/]
sudo sh -c "echo 'allow-guest=false' >> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf"
* Slack [https://slack.com/downloads/linux]
</syntaxhighlight>
* Skype [https://www.skype.com/en/get-skype/skype-for-linux/]
* 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]
* awscli [https://aws.amazon.com/cli/]
* youtube-dl (pip) [https://rg3.github.io/youtube-dl/]
* nvm ''requires '''/bin/bash --login''' or fixed shell'' [https://github.com/creationix/nvm]
* rvm ''requires '''/bin/bash --login''' or fixed shell'' [https://github.com/rvm/ubuntu_rvm Ubuntu RVM Instructions]
 
== Install Manually ==
* VirtualBox (script this?) [https://www.virtualbox.org/]
* Vagrant (script this?) [https://www.vagrantup.com/]
* ChefDK (script this) [https://downloads.chef.io/chefdk]


==Show username in Desktop Manager==
= When needed =
<syntaxhighlight>
* Terraform [https://www.terraform.io/]
gsettings set com.canonical.indicator.session show-real-name-on-panel true
* Gitter
</syntaxhighlight>
* Ramlog or equivalent for SSD
* gvm for golang
* Studio 3T MongoDB Browser [https://studio3t.com/download/]
* Android Studio [https://developer.android.com/studio/index.html]
* Eclipse [https://www.eclipse.org/]
* NetBeans [https://netbeans.org/downloads/]
* DropBox (only if needed for work)
* PyCharm [https://www.jetbrains.com/pycharm/download/#section=linux]
* IntelliJ [https://www.jetbrains.com/idea/download/]


==Set vim Editor==
<syntaxhighlight lang=bash>
<syntaxhighlight>
drew@drew-8570w:~$ snap list
sudo update-alternatives --set editor /usr/bin/vim.basic
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
</syntaxhighlight>
</syntaxhighlight>


==Set passwordless sudo==
=Configure misc=
<syntaxhighlight>
==Configure SSH keys==
visudo:
Create new ones or replenish from vault.
username ALL=(ALL) NOPASSWD: ALL
</syntaxhighlight>


=Install Main Apps=
==Configure GPG keys==
<syntaxhighlight>
Pull from vault, set git config
sudo apt-get install \
<syntaxhighlight lang=bash>
keepass2 rdesktop vncviewer \
gpg --import drewholt-private-2018.03.01.key
lm-sensors p7zip-full exfat-utils exfat-fuse \
gpg --edit-key {KEY} trust quit
vim ssh git \
ubuntu-restricted-extras qbittorrent gimp audacity \
icedtea-8-plugin \
network-manager-openvpn wireshark  nmap \
openvpn openssh-server fail2ban \
vlc vlc-plugin-fluidsynth ffmpeg atomicparsley \
chrome-gnome-shell \
gnome-tweaks


** VirtualBox
git config --global user.signingkey 7A27C99359698874
** Chrome, verify Google Hangouts
** Insynq
** Atom
** Synergy
** Ramlog or equivalent for SSD
** nvm
** rvm
** sqlitebrowser
** Studio 3T (mongodb browswer)
** IntelliJ
** Android Studio
** Eclipse
** NetBeans
** IDLE
** PyCharm


drew@drew-8570w:~$ snap list
vi ~/.gnupg/gpg.conf:
Name                  Version                  Rev  Developer      Notes
default-key 2018-03-01
atom                  1.23.1                  109  snapcrafters    classic
core                  16-2.29.4.2              3604  canonical      core
cumulonimbus          1.6.7                    18    snapcrafters    -
drive                current                  22    fireeye        -
gitter-desktop        3.1.0                    20    snapcrafters    -
go                    1.9.2                    1016  mwhudson        classic
jenkins              2.8                      6    snapcrafters    -
juju                  2.3.1                    3106  canonical      classic
kubectl              1.9.0                    266  canonical      classic
lxd                  2.21                    5408  canonical      -
mongo33              3.3.9                    2    niemeyer        -
openhab              2.0.0                    167  openhab        -
picard                1.4.2                    2    pachulo        -
pycharm-professional  2017.3.2                46    jetbrains      classic
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
whois-snap            0.1                      1    marius-quabeck  -


oracle-java8-installer
gpg -d somefile.tar.xz.pgp | tar -tJ
cairo-dock
adobe-flashplugin
encfs youtube-dl nikto exiftool chkrootkit apache2-utils pidgin wavemon xd docker.io virtualenv python2.7-examples mailutils ansible namebench python-pip (via apt)
xchat
youtube-dl
</syntaxhighlight>
</syntaxhighlight>


= Other =
==  Set gnome-screenshot default save directory ==
<syntaxhighlight>
?
sudo apt-get install -y nfs-common cifs-utils ethtool pm-utils
 
</syntaxhighlight>
==Set default downloads directory to Desktop==
command for firefox, chrome, qbit, skype, slack, hangouts, etc


= Other Configuration =
== Gnome Tweak Tool ==
Remote syslog
Install and configure extensions (done via script).
<syntaxhighlight>
* Dash to Dock [https://extensions.gnome.org/extension/307/dash-to-dock/]
echo "*.* @192.168.1.200" >> /etc/rsyslog.d/50-default.conf
* TopIcons-plus [https://extensions.gnome.org/extension/1031/topicons/] - for Insync, Slack, Skype icons
</syntaxhighlight>


*tmpfs for /tmp and (maybe make this a bind mount..)
==Gmail to handle mailto: links==
<syntaxhighlight>
Partially scripted.
tmpfs  /tmp      tmpfs  defaults,noatime,mode=1777  0  0
</syntaxhighlight>


*/etc/fstab
https://developers.google.com/web/updates/2012/02/Getting-Gmail-to-handle-all-mailto-links-with-registerProtocolHandler
<syntaxhighlight>
192.168.1.200:/mnt/raid5 /mnt/raid5 nfs defaults 0 0
</syntaxhighlight>


*web server if needed
==Maybe Snaps==
<syntaxhighlight>
<syntaxhighlight lang=bash>
sudo apt-get install apache2 php5 php5-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