Ubuntu 管理心得

搜尋此網誌

2018年7月17日 星期二

My Ubuntu post-installation

1. sudo apt install aptitude qttools5-dev libqscintilla2-qt5-dev f2c gfortran libblas-dev liblapack-dev libpcre3-dev libreadline-dev net-tools openssh-server krusader gnome-tweaks oxygen-icon-theme xul-ext-lightning kate tasksel dvipng texlive-latex-extra texlive-fonts-recommended libcanberra-gtk-module kde-cli-tools keditbookmarks guake synaptic kio-extras okular latex-cjk-chinese texlive-lang-cjk samba nfs-common nfs-kernel-server gparted lftp texlive texlive-extra-utils texlive-font-utils texlive-fonts-extra lynx jupyter python3-numpy python3-matplotlib python3-scipy texlive-publishers classicmenu-indicator texlive-fonts-extra deborphan texlive-science kbibtex xfig ethool htop gimp gimp-plugin-registry gimp-data
2. 在「 軟體與更新」中,設定源碼
3. sudo apt-get build-dep lyx
4. sudo apt purge lyx lyx-common
5. cd /download1/LyX/lyx-2.3.0
    ./configure --enable-qt5
    make
    sudo make install
6. sudo apt-get build-dep octave

    cd /download1/Octave/octave-7.1.0

    ./configure --with-qt=5 (may not need --with-qt=5)
    make
    make install
6. wget http://download.nomachine.com/download/6.2/Linux/nomachine_6.2.4_1_amd64.deb
    sudo dpkg -i nomachine_6.2.4_1_amd64.deb
6. tasksel-> LAMP server
7. If can't access mysql as mysql user root from normal user account but can access mysql without mysql root password from ubuntu root accout, then follow the lines below (the parentheses are comments):
cf: https://askubuntu.com/questions/766334/cant-login-as-mysql-user-root-from-normal-user-account-in-ubuntu-16-04/801950
    (1). su - (get into ubuntu root account)
    (2). mysql -u root (get into mysql, should be no need password)
    (3). select User,host,plugin from mysql.user;
    (4). update mysql.user set plugin = 'mysql_native_password' where User='root';
    (5). select User,host,plugin from mysql.user; (plugin column should be changed)
    (6). SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new password');
or for mysql 8.0 in ubuntu 20.04
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newpassord' 
    (7). flush privileges;

8. guake hangs when exit press Ctrl-D.
sudo apt install libutempter0
Solve the hanging problem (cf:https://github.com/Guake/guake/issues/1198)

9. add new user for samba:
sudo smbpasswd -a chiao
then input password (twice)