notes
This commit is contained in:
parent
140d909b1a
commit
7b255c8120
@ -1,43 +1,36 @@
|
|||||||
apt update
|
# Setup a new linux server
|
||||||
```
|
|
||||||
sudo apt update
|
|
||||||
sudo apt upgrade
|
|
||||||
//sometimes network-manager service is not running after update and cannot resolve addresses
|
|
||||||
sudo service network-manager start
|
|
||||||
sudo ln -sf /run/resolvconf/resolv.conf /etc/resolv.conf
|
|
||||||
```
|
|
||||||
also had to reference [this article](https://askubuntu.com/questions/368435/how-do-i-fix-dns-resolving-which-doesnt-work-after-upgrading-to-ubuntu-13-10-s)
|
|
||||||
|
|
||||||
version control /etc
|
## User and Dot Files
|
||||||
```
|
### SSH Keys
|
||||||
cd //etc
|
`ssh-keygen`
|
||||||
sudo git init
|
`add to gitea and github`
|
||||||
sudo git add .
|
`git clone https://gitea.hptrow.me/pt/dot_config`
|
||||||
sudo git commit -m "initial setup"
|
`cd dot_config`
|
||||||
```
|
`./setup.sh`
|
||||||
|
`cp .bash_local_example .bash_local`
|
||||||
|
edit PG and DB2PW
|
||||||
|
install nvim
|
||||||
|
install nvchad
|
||||||
|
|
||||||
pspg pager
|
|
||||||
```
|
|
||||||
sudp apt-get install pspg
|
|
||||||
```
|
|
||||||
|
|
||||||
postgres
|
## Firewall
|
||||||
```
|
`sudo ufw enable`
|
||||||
sudo vim /etc/apt/sources.list.d/pgdg.list
|
`sudo ufw limit 22`
|
||||||
deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main
|
`sudo allow 5432`
|
||||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
`sudo allow 8083`
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install postgresql-11
|
|
||||||
```
|
|
||||||
|
|
||||||
vundle
|
## Postgres
|
||||||
```
|
### Copy Backups
|
||||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
`rsync -azv -e ssh ptrowbridge@usmidsap01://mnt/backup //mnt/backup`
|
||||||
```
|
### Config Files
|
||||||
|
`git clone https://gitea.hptrow.me`
|
||||||
dotfiles (depends on vundle currently)
|
install python3
|
||||||
```
|
setup postgres config files
|
||||||
git clone "https://fleetside@bitbucket.com/fleetside/dotfiles.git"
|
setup java jdk
|
||||||
cp -R ~/dotfiles/. ~/
|
clone and build jrunner
|
||||||
sudo rm -r dotfiles/
|
clone jrunner_conf
|
||||||
```
|
point dbeaver jobs to new server
|
||||||
|
point powerbi to new server
|
||||||
|
point price list functions to new server
|
||||||
|
coordinate with Dwight for cash if applicable
|
||||||
|
setup jupyterlab
|
||||||
|
Loading…
Reference in New Issue
Block a user