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)

tweak ubuntu 18.04

1. For php 7.2:
Enable php7.2:
a2enmod php7.2

Edit /etc/apache2/mods-available/php7.2.conf, comment out the lines:
#<IfModule mod_userdir.c>
#    <Directory /home/*/public_html>
#        php_admin_flag engine Off
#    </Directory>
#</IfModule>
Edit /etc/php/7.2/apache2/php.ini, change:
short_open_tag = Off
to
short_open_tag = On

systemctl restart apache2

2. For drupal:
Edit /home/chiao/public_html/drupal/.htaccess, comment out the line:
#DirectoryIndex index.php index.html index.htm

BELOW is VERY IMPORTANT!
Add the following lines in /etc/apache2/apache2.conf:

<Directory /home/chiao/public_html/drupal>
Options FollowSymLinks
AllowOverride AuthConfig FileInfo Indexes Limit Options=All,MultiViews
</Directory>

Also, very important! Do not miss this.
sudo a2enmod rewrite



3. For phpmyadmin:

Edit /etc/phpmyadmin/apache.conf, comment out the line:
#DirectoryIndex index.php

Edit /usr/share/phpmyadmin/libraries/sql.lib.php:
Replace: (count($analyzed_sql_results['select_expr'] == 1)
With: (count($analyzed_sql_results['select_expr']) == 1

(cf: https://stackoverflowa.com/questions/48001569/phpmyadmin-count-parameter-must-be-an-array-or-an-object-that-implements-co

4. For top bar on desktop:
調校(search for tweak)->頂端列->秒數:display seconds

5. In case of DNS not working (try ping google.com to check it):
Edit /etc/systemd/resolved.conf, add this line:
DNS=8.8.8.8

6. For Boshiamy:
sudo cp /download/Boshiamy/liu_ibus_table-master/liu.db /usr/share/ibus-table/tables/
sudo cp /download/Boshiamy/liu_ibus_table-master/liu.png /usr/share/ibus-table/icons/

登出,再登入
設定->地區和語言->輸入來源->(點選) + ->(點選) 漢語(台灣)->(點選) 漢語(嘸chiao)


7. For desktop launch icon:
Open terminal, e.g. create PTT (批踢踢), run:

gnome-desktop-item-edit ~/桌面/ptt.desktop --create-new

then fill in the required data. A new icon has been created on Desktop. Click it, and click "trust...", OK!
Also, if the icon size too big (ugly), right click on the icon and select "調整圖示大小 …"

8.For Top bar:
The top bar default on the main screen. If there are two screens, then the one selected as the main screen will have this top bar.

8. For icons in krusader:
Open tweak (調校) -

9. For fish protocol in kruasder:
sudo apt install kio-extras

10. FOR cwTeX:. FOR cwTeX:
1. Copy my old texmf directory to /home/chiao, do not copy .texmf-xxxx
2. Delete ~/.texlive2017 if exists already
2. texhash /home/chiao/texmf
3. updmap -user --enable Map cwku.map
updmap -user --enable Map cwhbu.map
updmap -user --enable Map cwfsu.map
updmap-user --enable Map cwyu.map
updmap-user --enable Map cwmu.map

In case of some fonts not found or having error while lyxing it, remove (delete, purge) all the texlive packages. Then, reinstall texlive again. Have to make sure every texlive-related files and directories be removed. For example,
sudo rm /etc/texmf/web2c/updmap.cfg (2019-9-5, this file was not removed, and it got me crazy!)

11. Disable auto-maximizing window when touch top edge of screen:
gsettings set org.gnome.mutter edge-tiling false
gsettings set org.gnome.shell.overrides edge-tiling false
Set 無 to CompizConfig Settings Manager setting Grid => Corners/Edges => Top Edge
logout then login

12. Single click to open applications on desktop:
open nautilus,
Click the nautilus(檔案) icon on the top bar (on top left),
click preference(偏好設定)-
Or run the command:
gsettings set org.gnome.nautilus.preferences click-policy single
Also, back to double click:
gsettings set org.gnome.nautilus.preferences click-policy double

cf: https://ubuntuforums.org/showthread.php?t=2393773&page=2
Preferences on some Gnome applications (i.e. Nautilus, Gnome Calculator, Terminal to name but three) can be accessed by right click on the application icon on the top bar.

Move the mouse point on the applicaion and click the middle (wheel) button can also open the applications.

13. Enable userdir:
sudo a2enmod userdir
sudo systemctl restart apache2

14. 更新功能表字體為 AR PL UKai TW MBEBook: 例如: LyX, krusader 的功能表:
Unity微調工具 -> 字型 ,  更改「預設字型」、「文件字型」

15. for apache2:
vim /etc/apache2/apache2.conf
add this:
<Directory /home/chiao/public_html>
    AllowOverride all
    <Limit GET POST>
    AllowOverride all
   
        order deny,allow
        deny from all
        allow from 1.34.0.0/15
        allow from 1.160.0.0/12
        allow from 1.200.0.0/16
        allow from 27.51.0.0/16
        allow from 27.52.0.0/15
        allow from 27.96.224.0/19
        allow from 27.100.64.0/18
        allow from 27.105.0.0/16
        allow from 27.147.0.0/18
        allow from 27.240.0.0/13
        allow from 36.224.0.0/12
        allow from 39.1.0.0/16
        allow from 39.8.0.0/13
        allow from 42.0.64.0/18
        allow from 42.64.0.0/12
        allow from 49.128.64.0/19
        allow from 49.128.112.0/20
        allow from 49.158.0.0/15
        allow from 49.213.128.0/17
        allow from 49.214.0.0/15
        allow from 49.216.0.0/14
        allow from 58.86.0.0/16
        allow from 58.99.0.0/18
        allow from 58.99.64.0/18
        allow from 58.114.0.0/15
        allow from 59.102.128.0/17
        allow from 59.104.0.0/15
        allow from 59.112.0.0/13
        allow from 59.120.0.0/14
        allow from 59.124.0.0/14
        allow from 60.198.0.0/16
        allow from 60.199.0.0/16
        allow from 60.244.0.0/19
        allow from 60.244.32.0/19
        allow from 60.244.64.0/18
        allow from 60.244.128.0/17
        allow from 60.245.0.0/18
        allow from 60.245.64.0/19
        allow from 60.245.96.0/19
        allow from 60.248.0.0/16
        allow from 60.249.0.0/16
        allow from 60.250.0.0/15
        allow from 61.20.0.0/16
        allow from 61.30.0.0/16
        allow from 61.31.0.0/16
        allow from 61.56.0.0/13
        allow from 61.64.0.0/14
        allow from 61.70.0.0/17
        allow from 61.70.128.0/17
        allow from 61.71.0.0/17
        allow from 61.71.128.0/17
        allow from 61.216.0.0/16
        allow from 61.217.0.0/16
        allow from 61.218.0.0/15
        allow from 61.220.0.0/14
        allow from 61.224.0.0/14
        allow from 61.228.0.0/14
        allow from 61.247.160.0/20
        allow from 74.120.120.0/22
        allow from 74.121.191.88/29
        allow from 74.121.191.128/27
        allow from 101.0.128.0/17
        allow from 101.3.0.0/16
        allow from 101.8.0.0/13
        allow from 101.136.0.0/14
        allow from 103.2.216.0/22
        allow from 103.3.192.0/22
        allow from 103.4.104.0/22
        allow from 103.5.32.0/22
        allow from 103.5.100.0/22
        allow from 103.8.104.0/22
        allow from 103.9.116.0/22
        allow from 103.10.4.0/22
        allow from 103.10.204.0/22
        allow from 103.16.240.0/22
        allow from 103.16.244.0/22
        allow from 103.17.8.0/22
        allow from 103.17.240.0/22
        allow from 103.18.80.0/22
        allow from 103.18.128.0/22
        allow from 103.20.40.0/22
        allow from 103.20.176.0/22
        allow from 103.21.60.0/22
        allow from 103.21.196.0/22
        allow from 103.22.156.0/22
        allow from 103.23.108.0/22
        allow from 103.24.100.0/22
        allow from 103.25.232.0/22
        allow from 103.25.236.0/22
        allow from 103.28.200.0/23
        allow from 103.30.44.0/22
        allow from 103.30.128.0/22
        allow from 103.30.132.0/22
        allow from 103.31.196.0/22
        allow from 103.241.68.0/22
        allow from 103.243.248.0/22
        allow from 103.246.208.0/22
        allow from 103.247.112.0/22
        allow from 103.252.68.0/22
        allow from 103.252.244.0/24
        allow from 106.1.0.0/16
        allow from 106.64.0.0/15
        allow from 106.104.0.0/14
        allow from 110.24.0.0/13
        allow from 110.50.128.0/18
        allow from 111.67.48.0/20
        allow from 111.70.0.0/15
        allow from 111.80.0.0/14
        allow from 111.125.128.0/21
        allow from 111.184.0.0/15
        allow from 111.235.192.0/18
        allow from 111.240.0.0/12
        allow from 112.78.16.0/20
        allow from 112.78.64.0/19
        allow from 112.78.104.0/21
        allow from 112.104.0.0/15
        allow from 112.121.32.0/20
        allow from 112.121.64.0/18
        allow from 112.213.48.0/20
        allow from 113.21.80.0/20
        allow from 113.21.160.0/19
        allow from 113.61.128.0/17
        allow from 113.196.0.0/16
        allow from 114.24.0.0/14
        allow from 114.30.32.0/20
        allow from 114.32.0.0/12
        allow from 114.136.0.0/15
        allow from 114.140.0.0/16
        allow from 114.198.160.0/20
        allow from 114.198.176.0/20
        allow from 115.30.64.0/18
        allow from 115.42.80.0/20
        allow from 115.42.112.0/21
        allow from 115.43.0.0/16
        allow from 115.80.0.0/14
        allow from 115.85.144.0/20
        allow from 115.165.192.0/18
        allow from 116.50.32.0/20
        allow from 116.59.0.0/16
        allow from 116.89.128.0/20
        allow from 116.118.128.0/18
        allow from 116.212.80.0/20
        allow from 116.214.0.0/20
        allow from 116.241.0.0/16
        allow from 117.19.0.0/16
        allow from 117.56.0.0/16
        allow from 117.103.96.0/20
        allow from 118.99.128.0/17
        allow from 118.150.0.0/16
        allow from 118.160.0.0/13
        allow from 118.168.0.0/14
        allow from 118.231.0.0/16
        allow from 118.232.0.0/15
        allow from 119.14.0.0/16
        allow from 119.15.192.0/18
        allow from 119.30.16.0/20
        allow from 119.31.176.0/20
        allow from 119.75.240.0/20
        allow from 119.77.128.0/17
        allow from 119.160.240.0/20
        allow from 120.96.0.0/11
        allow from 121.50.144.0/21
        allow from 121.50.176.0/20
        allow from 121.254.64.0/18
        allow from 122.99.0.0/18
        allow from 122.100.64.0/18
        allow from 122.116.0.0/15
        allow from 122.118.0.0/16
        allow from 122.120.0.0/13
        allow from 122.128.80.0/21
        allow from 122.144.32.0/19
        allow from 122.146.0.0/15
        allow from 122.200.152.0/21
        allow from 122.201.128.0/17
        allow from 122.252.160.0/20
        allow from 122.254.0.0/18
        allow from 122.255.80.0/20
        allow from 123.0.32.0/19
        allow from 123.0.192.0/18
        allow from 123.50.32.0/19
        allow from 123.51.128.0/17
        allow from 123.99.0.0/19
        allow from 123.99.32.0/19
        allow from 123.110.0.0/16
        allow from 123.192.0.0/14
        allow from 123.204.0.0/15
        allow from 123.240.0.0/15
        allow from 123.252.0.0/17
        allow from 123.255.224.0/21
        allow from 124.6.0.0/19
        allow from 124.8.0.0/14
        allow from 124.12.0.0/16
        allow from 124.29.128.0/19
        allow from 124.29.160.0/19
        allow from 124.108.128.0/18
        allow from 124.109.112.0/20
        allow from 124.150.128.0/21
        allow from 124.155.128.0/19
        allow from 124.155.160.0/19
        allow from 124.199.64.0/19
        allow from 124.199.96.0/20
        allow from 124.218.0.0/16
        allow from 124.219.0.0/17
        allow from 125.62.224.0/20
        allow from 125.224.0.0/13
        allow from 125.232.0.0/15
        allow from 128.204.145.224/28
        allow from 134.208.0.0/16
        allow from 139.175.0.0/16
        allow from 139.223.0.0/16
        allow from 140.92.0.0/16
        allow from 140.96.0.0/16
        allow from 140.109.0.0/16
        allow from 140.110.0.0/16
        allow from 140.111.0.0/16
        allow from 140.112.0.0/16
        allow from 140.113.0.0/16
        allow from 140.114.0.0/16
        allow from 140.115.0.0/16
        allow from 140.116.0.0/14
        allow from 140.120.0.0/13
        allow from 140.128.0.0/16
        allow from 140.129.0.0/16
        allow from 140.130.0.0/16
        allow from 140.131.0.0/16
        allow from 140.132.0.0/16
        allow from 140.133.0.0/16
        allow from 140.134.0.0/16
        allow from 140.135.0.0/16
        allow from 140.136.0.0/15
        allow from 140.138.0.0/16
        allow from 150.116.0.0/15
        allow from 163.13.0.0/16
        allow from 163.14.0.0/15
        allow from 163.16.0.0/12
        allow from 163.32.0.0/16
        allow from 168.95.0.0/16
        allow from 175.41.48.0/20
        allow from 175.96.0.0/14
        allow from 175.111.32.0/19
        allow from 175.111.192.0/18
        allow from 175.180.0.0/14
        allow from 175.184.240.0/21
        allow from 180.92.0.0/20
        allow from 180.176.0.0/15
        allow from 180.204.0.0/14
        allow from 180.214.176.0/20
        allow from 180.217.0.0/16
        allow from 180.218.0.0/16
        allow from 180.222.204.0/22
        allow from 182.155.0.0/16
        allow from 182.173.0.0/18
        allow from 182.173.68.0/22
        allow from 182.233.0.0/16
        allow from 182.234.0.0/15
        allow from 182.239.44.0/22
        allow from 192.72.3.0/24
        allow from 192.72.4.0/24
        allow from 192.72.5.0/24
        allow from 192.72.6.0/24
        allow from 192.72.7.0/24
        allow from 192.72.8.0/24
        allow from 192.72.9.0/24
        allow from 192.72.10.0/24
        allow from 192.72.11.0/24
        allow from 192.72.12.0/24
        allow from 192.72.13.0/24
        allow from 192.72.14.0/24
        allow from 192.72.15.0/24
        allow from 192.72.16.0/24
        allow from 192.72.17.0/24
        allow from 192.72.18.0/24
        allow from 192.72.19.0/24
        allow from 192.72.20.0/24
        allow from 192.72.21.0/24
        allow from 192.72.22.0/24
        allow from 192.72.23.0/24
        allow from 192.72.24.0/24
        allow from 192.72.25.0/24
        allow from 192.72.26.0/24
        allow from 192.72.27.0/24
        allow from 192.72.28.0/24
        allow from 192.72.29.0/24
        allow from 192.72.30.0/24
        allow from 192.72.31.0/24
        allow from 192.72.32.0/24
        allow from 192.72.33.0/24
        allow from 192.72.34.0/23
        allow from 192.72.36.0/22
        allow from 192.72.40.0/21
        allow from 192.72.48.0/20
        allow from 192.72.64.0/18
        allow from 192.72.128.0/22
        allow from 192.72.132.0/24
        allow from 192.72.133.0/24
        allow from 192.72.134.0/23
        allow from 192.72.136.0/21
        allow from 192.72.144.0/20
        allow from 192.72.160.0/19
        allow from 192.72.192.0/19
        allow from 192.72.224.0/20
        allow from 192.72.240.0/21
        allow from 192.72.248.0/22
        allow from 192.72.252.0/24
        allow from 192.83.166.0/24
        allow from 192.83.167.0/24
        allow from 192.83.168.0/24
        allow from 192.83.169.0/24
        allow from 192.83.170.0/24
        allow from 192.83.171.0/24
        allow from 192.83.172.0/24
        allow from 192.83.173.0/24
        allow from 192.83.174.0/24
        allow from 192.83.175.0/24
        allow from 192.83.176.0/24
        allow from 192.83.177.0/24
        allow from 192.83.178.0/24
        allow from 192.83.179.0/24
        allow from 192.83.180.0/24
        allow from 192.83.181.0/24
        allow from 192.83.182.0/23
        allow from 192.83.184.0/24
        allow from 192.83.185.0/24
        allow from 192.83.186.0/24
        allow from 192.83.187.0/24
        allow from 192.83.188.0/24
        allow from 192.83.189.0/24
        allow from 192.83.190.0/24
        allow from 192.83.191.0/24
        allow from 192.83.192.0/24
        allow from 192.83.193.0/24
        allow from 192.83.194.0/23
        allow from 192.83.196.0/24
        allow from 192.95.3.164/30
        allow from 192.95.49.160/29
        allow from 192.95.62.232/29
        allow from 192.95.63.136/30
        allow from 192.168.0.0/16
        allow from 192.192.0.0/17
        allow from 192.192.128.0/19
        allow from 192.192.160.0/22
        allow from 192.192.164.0/24
        allow from 192.192.165.0/24
        allow from 192.192.166.0/23
        allow from 192.192.168.0/21
        allow from 192.192.176.0/20
        allow from 192.192.192.0/18
        allow from 202.2.52.0/22
        allow from 202.3.160.0/19
        allow from 202.5.4.0/23
        allow from 202.5.8.0/22
        allow from 202.5.12.0/22
        allow from 202.5.224.0/19
        allow from 202.6.104.0/23
        allow from 202.8.14.0/23
        allow from 202.39.0.0/16
        allow from 202.41.146.0/24
        allow from 202.55.224.0/19
        allow from 202.59.250.0/23
        allow from 202.80.104.0/21
        allow from 202.126.64.0/20
        allow from 202.132.0.0/16
        allow from 202.133.224.0/19
        allow from 202.140.160.0/19
        allow from 202.144.208.0/20
        allow from 202.145.32.0/19
        allow from 202.145.64.0/18
        allow from 202.145.128.0/18
        allow from 202.145.192.0/19
        allow from 202.145.224.0/19
        allow from 202.148.208.0/20
        allow from 202.151.48.0/20
        allow from 202.153.160.0/19
        allow from 202.153.192.0/20
        allow from 202.154.192.0/19
        allow from 202.160.64.0/19
        allow from 202.165.120.0/21
        allow from 202.165.128.0/20
        allow from 202.165.144.0/20
        allow from 202.168.192.0/20
        allow from 202.169.160.0/20
        allow from 202.173.32.0/19
        allow from 202.174.4.0/24
        allow from 202.174.16.0/20
        allow from 202.178.128.0/18
        allow from 202.178.192.0/19
        allow from 202.178.224.0/19
        allow from 203.64.0.0/14
        allow from 203.68.0.0/14
        allow from 203.72.0.0/14
        allow from 203.77.0.0/22
        allow from 203.77.4.0/22
        allow from 203.77.8.0/21
        allow from 203.77.16.0/20
        allow from 203.77.32.0/20
        allow from 203.77.48.0/20
        allow from 203.77.64.0/19
        allow from 203.77.96.0/19
        allow from 203.78.0.0/22
        allow from 203.78.176.0/20
        allow from 203.79.128.0/18
        allow from 203.79.192.0/19
        allow from 203.79.224.0/19
        allow from 203.84.130.0/23
        allow from 203.84.144.0/21
        allow from 203.91.0.0/19
        allow from 203.105.224.0/19
        allow from 203.111.208.0/20
        allow from 203.118.224.0/20
        allow from 203.119.3.0/24
        allow from 203.119.94.0/24
        allow from 203.121.224.0/20
        allow from 203.121.240.0/20
        allow from 203.133.0.0/19
        allow from 203.133.32.0/19
        allow from 203.133.64.0/19
        allow from 203.133.96.0/19
        allow from 203.135.64.0/19
        allow from 203.145.192.0/20
        allow from 203.145.208.0/20
        allow from 203.148.92.0/24
        allow from 203.160.144.0/20
        allow from 203.160.224.0/19
        allow from 203.163.192.0/19
        allow from 203.187.0.0/19
        allow from 203.187.32.0/19
        allow from 203.187.64.0/18
        allow from 203.188.192.0/20
        allow from 203.190.16.0/21
        allow from 203.201.32.0/20
        allow from 203.203.0.0/17
        allow from 203.203.128.0/17
        allow from 203.204.0.0/17
        allow from 203.204.128.0/17
        allow from 203.207.0.0/20
        allow from 203.207.32.0/20
        allow from 203.211.0.0/19
        allow from 203.217.96.0/19
        allow from 203.222.0.0/20
        allow from 203.222.16.0/20
        allow from 210.17.0.0/17
        allow from 210.58.0.0/17
        allow from 210.58.128.0/17
        allow from 210.59.0.0/16
        allow from 210.60.0.0/14
        allow from 210.64.0.0/14
        allow from 210.68.0.0/14
        allow from 210.80.64.0/20
        allow from 210.80.80.0/20
        allow from 210.85.0.0/16
        allow from 210.192.0.0/18
        allow from 210.192.128.0/17
        allow from 210.200.0.0/19
        allow from 210.200.32.0/19
        allow from 210.200.64.0/19
        allow from 210.200.96.0/19
        allow from 210.200.128.0/19
        allow from 210.200.160.0/19
        allow from 210.200.192.0/18
        allow from 210.201.0.0/18
        allow from 210.201.64.0/18
        allow from 210.201.128.0/18
        allow from 210.201.192.0/20
        allow from 210.201.208.0/20
        allow from 210.201.224.0/19
        allow from 210.202.0.0/16
        allow from 210.203.0.0/17
        allow from 210.208.0.0/18
        allow from 210.208.64.0/19
        allow from 210.208.96.0/19
        allow from 210.208.128.0/18
        allow from 210.208.192.0/18
        allow from 210.209.0.0/18
        allow from 210.209.128.0/20
        allow from 210.209.144.0/20
        allow from 210.209.160.0/19
        allow from 210.209.192.0/18
        allow from 210.240.0.0/16
        allow from 210.241.0.0/16
        allow from 210.242.0.0/15
        allow from 210.244.0.0/17
        allow from 210.244.128.0/17
        allow from 211.20.0.0/14
        allow from 211.72.0.0/14
        allow from 211.76.0.0/14
        allow from 216.244.77.120/29
        allow from 216.244.80.128/27
        allow from 216.244.82.96/28
        allow from 216.244.90.192/29
        allow from 218.32.0.0/16
        allow from 218.34.0.0/17
        allow from 218.34.128.0/17
        allow from 218.35.0.0/16
        allow from 218.160.0.0/14
        allow from 218.164.0.0/15
        allow from 218.166.0.0/15
        allow from 218.168.0.0/13
        allow from 218.184.0.0/16
        allow from 218.187.0.0/17
        allow from 218.187.128.0/17
        allow from 218.210.0.0/15
        allow from 219.68.0.0/17
        allow from 219.68.128.0/17
        allow from 219.69.0.0/16
        allow from 219.70.0.0/15
        allow from 219.80.0.0/15
        allow from 219.84.0.0/15
        allow from 219.86.0.0/15
        allow from 219.90.0.0/18
        allow from 219.91.0.0/17
        allow from 220.128.0.0/18
        allow from 220.128.64.0/18
        allow from 220.128.128.0/17
        allow from 220.129.0.0/16
        allow from 220.130.0.0/15
        allow from 220.132.0.0/14
        allow from 220.136.0.0/13
        allow from 220.157.112.0/20
        allow from 220.228.0.0/15
        allow from 221.120.0.0/18
        allow from 221.120.64.0/19
        allow from 221.169.0.0/16
        allow from 222.156.0.0/16
        allow from 222.157.0.0/16
        allow from 222.250.0.0/16
        allow from 222.251.0.0/17
        allow from 223.22.0.0/15
        allow from 223.26.0.0/20
        allow from 223.26.64.0/18
        allow from 223.27.32.0/19
        allow from 223.136.0.0/13
        allow from 223.165.8.0/21
        allow from 223.200.0.0/16
# AU internal IPs
                allow from 172.16.0.0/16
                allow from 127.0.0.1
        allow from 192.168.11.0/24
   

    </Limit>
</Directory>