How to Setup Ubuntu for PPA automation (based on Ubunut 14.04.1)
| Reference | Vmplayer | Office Linux maintenance | Ubuntu 16.04 |
$ sudo apt-get update
$ sudo apt-get install update-manager-core
$ sudo do-release-upgrade -d
configure proxy: /etc/apt/atp.conf
Acquire::http::proxy "http://proxyconf.xxx.com:81/"; Acquire::https::proxy "https://proxyconf.xxx.com:81/"; Acquire::ftp::proxy "ftp://proxyconf.xxx.com:81/"; Acquire::socks::proxy "socks://proxyconf.xxx.com:81/";
then run below command to downloads the package lists from the repositories and “updates” them to get information on the newest versions of packages and their dependencies:
sudo apt-get update
In vmplayer menu, select player → Manage → ReInstall VMWare Tool.
Then it will mount a CDROM under Ubuntu VM.
Right on the mounted VMware Tools folder & click on “Extract to” to extract VMware tools files.
run:
sudo ./vmware-install.p
Note:
sudo apt-get install vim
sudo apt-get install xinetd
sudo apt-get install openssh-server
sudo apt-get install vsftpd
Modify /etc/vsftpd.conf file and make changes as follows:
Uncomment the below lines (line no:29 and 33).
write_enable=YES local_umask=022
Uncomment the below line (line no: 120 ) to prevent access to the other folders outside the Home directory.
chroot_local_user=YES
and add the following line at the end.
allow_writeable_chroot=YES
Add the following lines to enable passive mode.
pasv_enable=Yes pasv_min_port=40000 pasv_max_port=40100
Restart vsftpd service:
sudo service vsftpd restart
sudo apt-get install xinetd tftpd tftp
Create /etc/xinetd.d/tftp and put this entry
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot
sudo /etc/init.d/xinetd restart
sudo apt-get install subversion
sudo apt-get install samba
If need samba support softlinked folders, below configuration is needed:
[global] allow insecure wide links = yes [share] follow symlinks = yes wide links = yes
Manually download the TWKI, for example currently TWIKI is v6.1
cp /var/www/html/twiki/bin/LocalLib.cfg.txt /var/www/html/twiki/bin/LocalLib.cfg
chown -R www-data:www-data /var/www/html/twiki
sudo apt-get install wireshark
sudo apt-get install python
sudo apt-get install perl
sudo apt-get install tcl
sudo apt-get install original-awk
sudo apt-get install grep
sudo apt-get install expect
sudo apt-get install vlan
sudo apt-get install pppoe
sudo apt-get install xl2tpd
| Network Manager Configuration File | /etc/NetworkManager/NetworkManager.conf | |
| Network interface configuration file | /etc/network/interfaces | any interface not listed there will remain under Network Manager control. |
Since any interface not listed in /etc/network/interfaces will remain under Network Manager control, we just move some interface into /etc/network/interfaces to make these interface not under Network Manager control.
For example, below interfaces will not be controlled by Network Manager:
auto eth1 iface eth1 inet dhcp auto eth2 iface eth1 inet static
sudo service network-manager stop
sudo service network-manager start
sudo apt-get remove network-manager
install linux compare tool meld:
sudo apt-get install meld
sudo apt-get update
sudo apt-get install gdebi
Manually download beyond compare via firefox from , for example bcompare-4.0.0.18847_i386.deb
sudo gdebi /xxx/xxx/bcompare-4.0.0.18847_i386.deb
sudo apt-get install apache2
sudo service apache2 restart
Note: In order to execute cgi instead of text display or download, it needs to run:
sudo a2enmod cgi sudo service apache2 restart
[ ! -d /mnt/data ] && mkdir /mnt/data sudo mount /dev/sdb1 /mnt/data/ * create soft link from /mnt/data/www to /var/www cd /var/ sudo mv www www.old sudo ln -s /mnt/data/www . * set up twiki configuration in apache2: cd /etc/apache2/sites-enabled sudo ln -s /mnt/data/general_bin_httpd.conf . sudo ln -s /mnt/data/twiki_httpd.conf .
sudo service apache2 restart
Install new TWIKI and make it works
$twikiLibPath = “/var/www/html/twiki/lib”;
and paths.
Edit /var/www/html/twiki/bin/LocalLib.cfg:
$twikiLibPath = "/var/www/html/twiki/lib";
sudo cp /xxx/old_twiki/data/xxx /var/www/twiki/
sudo cp /xxx/old_twiki/data/xxx /var/www/twiki/
sudo cp /xxx/old_twiki/data/.htpasswd /var/www/twiki/.
sudo chown www-data:www-data /var/www/twiki/* -R
Note : Do not forget to enable cgi.load by
sudo a2enmod cgi sudo service apache2 restart
Enable the conf.d directory created by you for twiki.conf file in apache2.conf file.
Fixing: install vmware tools:
sudo apt-get install open-vm-tools
content in /etc/resolv.conf will be auto overwritten. In order to support static DNS, need follow below instruction:
sudo vim /etc/resolvconf/resolv.conf.d/base
Then put your nameserver list in like so:
Finally update resolvconf:
sudo resolvconf -u