Ubuntu
Jump to navigation
Jump to search
About Ubuntu
AAA
Ubuntu version
lsb_release -a uname -a
Install instructions
- install missing packages
apt-get install ssh apt-get install git subversion g++ apt-get install libz-dev sqlite sqlite3 libsqlite3-dev sqliteman libmysqlclient-dev unixodbc-dev apt-get install libssl-dev apt-get install sysstat smartmontools apt-get install emacs xemacs21 apt-get install mutt # email client apt-get install liblz4-tool pbzip2 apt-get install libc6-dev-i386 # otherwise no /usr/include/sys/types.h apt-get install libreadline-dev apt-get install chromium-browser chromium-codecs-ffmpeg chromium-codecs-ffmpeg-extra apt-get install ubuntu-mate-themes
- install libz.so.1 for CentOS compatibility
apt-get install zlib1g apt-get install zlib1g:i386 libc6:i386 libgcc1:i386 gcc-6-base:i386
- install MATE desktop
apt-get install ubuntu-mate-core ubuntu-mate-desktop apt-get install ubuntu-mate-themes
- install Cinnamon desktop
add-apt-repository ppa:embrosyn/cinnamon apt update apt-get install cinnamon
- install KDE desktop
apt-get install kubuntu-desktop
- install Lxqt desktop
apt-get install lxqt
- install Xfce4 desktop
apt install xfce4
- install ROOT
Please install ROOT per instructions at http://root.cern.ch. The ROOT package available from Ubuntu repositories is severely out of date and cannot be used with MIDAS and ROOTANA.
### DO NOT DO THIS! apt-get install root-system
- setup time synchronization
apt-get install chrony echo server time1 iburst >> /etc/chrony/chrony.conf echo server time2 iburst >> /etc/chrony/chrony.conf echo server time3 iburst >> /etc/chrony/chrony.conf systemctl disable ntp systemctl stop ntp systemctl enable chrony systemctl restart chrony 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
- apt-get install portmap nis ### will ask for NIS domain (LADD-NIS)
- ypwhich -m
- apt-get install autofs
- 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
- ### NOT NEEDED sudo vi /etc/idmapd.conf ### add line: "Domain = triumf.ca"
- (BEFORE UBUNTU 16.10) vi /etc/lightdm/lightdm.conf ### add line: greeter-show-manual-login=true
- create /etc/lightdm/lightdm.conf with this contents:
[SeatDefaults] greeter-show-manual-login=true
- reboot
Install sddm display manager
- apt-get install sddm
- apt-get install sddm-theme-"*"
- create sddm.conf:
root@daqubuntu:~# more /etc/sddm.conf [Theme] Current=maldives root@daqubuntu:~#
- dpkg-reconfigure lightdm (select sddm)
- reboot
Install libpng12.so.0
Quartus 16 needs libpng12:
wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb dpkg --install libpng12-0_1.2.54-1ubuntu1_amd64.deb
Update packages
- apt-get update # update package list
- apt-get dist-upgrade # install updated packages and update "kept back" packages
- apt-get autoremove # remove packages that apt thinks should be removed
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 # remove automatically installed packages required by a removed package
- apt-get remove xxx # remove package xxx
- apt-cache search . # list all available packages
- apt-cache show "." | grep ^Package # list al available packages
- apt-cache madison root-system # show all available versions of package root-system
- apt list # list all installed packages
- dpkg --listfiles libpng16-16 # list all files from this package