顯示具有 ubuntu 標籤的文章。 顯示所有文章
顯示具有 ubuntu 標籤的文章。 顯示所有文章

2017年9月19日 星期二

upgrade Ubuntu 16.04.03 to kernel 4.10

https://askubuntu.com/questions/944842/kernel-4-10-in-ubuntu-16-04-3-update

sudo update
sudo upgrade
sudo apt install linux-generic-hwe-16.04

2017年3月23日 星期四

ubuntu server 16.04.02 install ubuntu-desktop

Add cdrom as a package source (ubuntu-desktop is not included, just add a note)
(Insert the cdrom into system)
# sudo -i
# mount /dev/cdrom /media/cdrom
# apt-cdrom -m -d=/media/cdrom add

Set the LAN setting
# ifconfig -a
Remember the interface name you want to config (enp24s0 for example)
Edit the file /etc/network/interfaces
Add following two line
auto enp24s0
iface enp24s0 inet dhcp

restart the networking service
# systemctl restart networking.service

Add Proxy setting to apt
Add a line in /etc/apt/apt.conf (if the file not exist, create a new one)
Acquire::http::Proxy "http://username:password@proxy.hinet.net:80";

# apt-get update
# apt install --no-install-recommends ubuntu-desktop
# apt-get install gnome-terminal

Allow root login through remote ssh
Edit the file /etc/ssh/sshd_config
PermitRootLogin prohibit-password
to
PermitRootLogin yes

Then restart the sshd service
# systemctl restart sshd.service

Enable sshd
# sysv-rc-conf sshd on

2015年11月23日 星期一

Install Ubuntu packages from cdrom

  1. mount /dev/cdrom /media/cdrom
  2. uncomment the first line of /etc/apt/source.list
    deb xxxx
  3. apt-get install xxxxx

2012年9月27日 星期四

Install RockMongo on Ubuntu

1. Install mongodb
follow the link below to install mongodb
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/


2. Install php5, php-pear
>apt-get install php5 php-pear

3. Install php-mongo
http://www.php.net/manual/en/mongo.installation.php

4. download rockmongo and the unzip and put in /var/www
http://rockmongo.com/downloads

5. restart apache2 mongodb
>service apache2 restart
>service mongodb restart
(If mongodb is locked, please check below link)
http://blog.brianbuikema.com/2011/01/mongodb-ubunto-overview-installation-setup-dev-python-2/


6. Login with admin/admin on http://localhost/rockmongo
(Modify config.php to change login username/password)