If you are re-installing an existing user's computer, you will need to know the computer's host name. The GID/UID for this user's account is used when creating an account backup staging server.
This section describes the setup steps that a general to all Ubuntu installations. There are a number of steps to be done that are specific to the user who will be using the computer. Those steps are outlined below.
Partition | size | comment |
---|---|---|
swap | size of memory | e.g. 32 GB |
/ | 256 GB | (approximately) (ext4) This is where all system files are placed. |
/home | remainder of space | (ext4) user's files |
Once the Ubuntu installation is complete, log on as user "biostat" and continue...
http://mirrors.advancedhosters.com/ubuntu/
repository. Include main/restricted/universe/multiverse.
sudo gedit /etc/apt/sources.listHere is a sources.list files that works well. Use "bionic" for 18.04 systems and "focal" for 20.04. Note the addition of the R materials.
deb http://mirrors.advancedhosters.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.advancedhosters.com/ubuntu/ focal-updates main restricted universe multiverse deb http://mirrors.advancedhosters.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://mirrors.advancedhosters.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.advancedhosters.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.advancedhosters.com/ubuntu/ focal-backports main restricted universe multiverse deb http://mirrors.advancedhosters.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.advancedhosters.com/ubuntu/ focal-security main restricted universe multiverse deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
Then run these commands to get the key for the R repository:
gpg --keyserver keyserver.ubuntu.com --recv-key 51716619E084DAB9 gpg -a --export 51716619E084DAB9 | sudo apt-key add -
Then...
sudo apt update sudo apt dist-upgradeAnd maybe a reboot...
sudo reboot
sudo apt install gnumeric abiword pidgin samba ntp ssh cifs-utils sshfs nfs-kernel-server nfs-common remmina compizconfig-settings-manager vim r-base-core r-base-dev r-base-html r-doc-pdf r-recommended exim4 htop emacs texlive-base texlive-latex-recommended texlive-latex-extra libjpeg62 libappindicator1 libindicator7 lockfile-progsDownload (http://www.rstudio.com/) and install RStudio (
sudo dpkg -i Downloads/rstudio-0.98.953-amd64.deb
)
Also, download (https://www.google.com/chrome/browser/) and install Google Chrome ( sudo dpkg -i Downloads/google-chrome-stable_current_amd64.deb
)
sudo gedit /etc/ssh/sshd_config
cd /usr/share/cups/drv sudo wget http://biostat.app.vumc.org/wiki/pub/Main/UbuntuSetup/hp-color_laserjet_m651-ps.ppd sudo wget http://biostat.app.vumc.org/wiki/pub/Main/UbuntuSetup/hp-color_laserjet_m553-ps.ppd sudo wget http://biostat.app.vumc.org/wiki/pub/Main/UbuntuSetup/xrx6360dn.ppd
sudo lpadmin -p 00_biostatcolor1 -L "biostatistics" -D "HP Color LaserJet M651" -P /usr/share/cups/drv/hp-color_laserjet_m651-ps.ppd -v socket://biostatcolor1.dhcp.mc.vanderbilt.edu:9100/ -E sudo lpadmin -p 00_biostatcolor2 -L "biostatistics" -D "HP Color LaserJet M651" -P /usr/share/cups/drv/hp-color_laserjet_m651-ps.ppd -v socket://biostatcolor2.dhcp.mc.vanderbilt.edu:9100/ -E sudo lpadmin -p 00_biostatcolor3 -L "biostatistics" -D "HP Color LaserJet M651" -P /usr/share/cups/drv/hp-color_laserjet_m651-ps.ppd -v socket://biostatcolor3.dhcp.mc.vanderbilt.edu:9100/ -E sudo lpadmin -p 00_biostatcolor4 -L "biostatistics" -D "HP Color LaserJet M651" -P /usr/share/cups/drv/hp-color_laserjet_m651-ps.ppd -v socket://biostatcolor4.dhcp.mc.vanderbilt.edu:9100/ -E sudo lpadmin -p 00_biostatcolor7 -L "biostatistics" -D "HP Color LaserJet M553" -P /usr/share/cups/drv/hp-color_laserjet_m553-ps.ppd -v socket://biostatcolor7.dhcp.mc.vanderbilt.edu:9100/ -E
sudo mkdir -p /biostat/cvs/admin
Add the following line to /etc/fstab
biostat1553.emp.vumc.io:/home/cvs/admin /biostat/cvs/admin nfs nfsvers=3,rsize=8192,wsize=8192,timeo=14,intr 0 0...and mount the administrative folder
sudo mount /biostat/cvs/admin
It works by having exim send all outgoing emails to the smarthost biostat.app.vumc.org. This will only work if the following steps are performed, and if the workstation IP address resolves to biostat?.dhcp.mc.vanderbilt.edu, where ? is replaced with the appropriate number.
Assuming exim v4...sudo cp /biostat/cvs/admin/etc/update-exim4.conf.conf /etc/exim4/update-exim4.conf.conf sudo /usr/sbin/update-exim4.conf sudo cp /biostat/cvs/admin/etc/mailname /etc/mailnameThen edit
/etc/aliases
and add the following line root: biostat-it@list.vumc.org
Restart exim
sudo /etc/init.d/exim4 restartYou can test that it works by running something like this:
/biostat/cvs/admin/bin/mail-wrapper your.eamail.address@vumc.org ls -lh /tmp
sudo adduser VUMCid
sudo addgroup --gid [GID] [VUMCid] sudo useradd --create-home --shell "/bin/bash" --groups cdrom,audio,video,plugdev,lpadmin,adm,sudo --uid [UID] --gid [GID] [VUMCid] && sudo passwd [VUMCid]
sudo mkdir -p /biostat/backup/VUMCid
biostat1553.emp.vumc.io:/home/wsbu/VUMCid /biostat/backup/VUMCid nfs nfsvers=3,rsize=8192,wsize=8192,timeo=14,intr 0 0
cd /biostat/backup rsync -av VUMCid /home
crontab -e
). The command is sudo crontab -u VUMCid -e
mm hh * * * /biostat/cvs/admin/sbin/run-user-cron
[VUMCid] comment = Samba on Ubuntu path = /home/VUMCid read only = no browsable = yes
sudo smbpasswd -a VUMCid
sudo service smbd restart