Ubuntu
Jump to navigation
Jump to search
About Ubuntu
AAA
Top 10 why Ubuntu bad for DAQ
- Ubuntu desktop edition cannot install on mirrored (RAID1) disks
- many missing packages
Ubuntu version
lsb_release -a uname -a
Install instructions
- install missing packages
sudo apt-get install ssh sudo apt-get install git subversion g++ sudo apt-get install libz-dev sqlite sqlite3 libsqlite3-dev sqliteman libmysqlclient-dev unixodbc-dev sudo apt-get install libssl-dev sudo apt-get install smartmontools sudo apt-get install emacs xemacs21 sudo apt-get install mutt sudo apt-get install liblz4-tool pbzip2 sudo apt get libc6-dev-i386 # otherwise no /usr/include/sys/types.h libreadline-dev
- install ROOT
apt-get install root-system
- setup time synchronization
apt-get install chrony add time1, time2, time3 to the time servers, comment out ntp pool servers in /etc/chrony/chrony.conf killall chronyd chronyd chronyc sources chronyc tracking
- setup email
apt-get install postfix ### select "satellite system", enter full hostname "xxx.triumf.ca", enter "smtp.triumf.ca" echo olchansk@triumf.ca >> ~/.forward mailx root test ^D
- install Konstantin's scripts
mkdir ~root/git cd ~root/git git clone http://ladd00.triumf.ca/~olchansk/git/scripts.git cd scripts git pull
- enable root login from ladd00
ssh localhost CTRL-C /bin/cp ./git/scripts/etc/authorized_keys .ssh/
- enable automatic updates 1
sudo apt-get install unattended-upgrades edit /etc/apt/apt.conf.d/50unattended-upgrades ### uncomment "-updates", uncomment "::Mail "root"", uncomment allowed-origins -security and -updates
- enable automatic updates 2
add this to /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "1"; APT::Periodic::AutocleanInterval "7"; APT::Periodic::Unattended-Upgrade "1";
NIS instructions
- sudo apt-get install portmap nis ### will ask for NIS domain (LADD-NIS)
- ypwhich -m
- sudo apt-get install autofs
- sudo vi /etc/nsswitch.conf ### add the automount line, modify the passwd, group and shadow lines to read this:
passwd: files nis group: files nis shadow: files nis automount: files nis
- sudo vi /etc/idmapd.conf ### add line: "Domain = triumf.ca"
- reboot
Update packages
- apt-get update # update package list
- apt-get dist-upgrade # install updated packages
Update to new version of Ubuntu
vi /etc/update-manager/release-upgrades # set "Prompt=normal" do-release-upgrade
Ubuntu package manager
- apt-get install xxx # install package xxx
- apt-get update
- apt-get upgrade
- apt-get dist-upgrade
- apt-get autoremove
- apt-get remove xxx # remove package xxx
- apt-cache show "." | grep ^Package # list al available packages