Xử lý Ubuntu bị treo máy
1, Vào terminal ảo:
Ctrl + Alt + Fx (Fx là: F1 -> F6)
2, Gõ lệnh
sudo reboot : Khởi động lại máy.
sudo shutdown -h now : Tắt máy.
Or
Nếu nghi ngờ tiến trình nào đang gây treo máy hoặc xóa bớt các tiến trình: https://laptrinhtuduy.wordpress.com/2014/07/20/huy-tien-trinh-dang-chay-trong-ubuntu/
Sau đó thoát khỏi terminal ảo: Ctrl + Alt + F7 or Ctrl + Alt + F8 or Alt + F7
Hủy tiến trình đang chạy trong Ubuntu
1, Xem các tiến trình đang chay:
sudo ps -A
2, Kill tiến trình
sudo kill XXX
với XXX là PID của tiến trình đó.
3, Tìm danh sách các tiến trình:
sudo ps -A | grep “key”
VD: Tìm các tiến trình mà trình duyệt Web chrome đang chạy:
sudo ps -A | grep “chrome”
Install PHP, Apache, MySQL on Ubuntu 14.04
1, Install Apache2:
sudo apt-get install apache2
2, After installation, Add the following line “ServerName localhost” to the /etc/apache2/apache2.conf file
sudo /etc/apache2/apache2.conf
=>> Add: ServerName localhost
3, Restart Apache:
sudo /etc/init.d/apache2 restart
4, Install MySQL:
sudo apt-get install mysql-server
** Thay doi thu muc mac dinh chua Apache (var/www/html) =>
(1) sudo /etc/apache2/sites-enabled
Open: 000-default.conf => Change var/www/html => your path
(2) sudo gedit /etc/apache2/apache2.conf => Change denied to granted
(3) sudo /etc/init.d/apache2 restart
** Thay doi thu muc root:
(1) sudo gedit /etc/apache2/apache2.conf
Change: /var/www/ => ‘your path’
Repair boot with Try ubuntu
Repair boot with Try ubuntu:
- Insert the Ubuntu disc, or connect the Ubuntu liveUSB.
- Setup the BIOS to make it boot on the Ubuntu disc
- Reboot the PC
- When asked, choose Try Ubuntu
5.. Connect internet
6. Open a terminal, and type (or copy-paste) the following command:
sudo add-apt-repository -y ppa:yannubuntu/boot-repair
Press Enter, then type the following command (useful if you are using an Ubuntu14.04 disc):
sudo sed s/trusty/saucy/g -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
Press Enter, then type the following command:
sudo apt-get update
Press Enter, then type the following command:
sudo apt-get install -y boot-repair && boot-repair
Press Enter. That’s it, the Boot-Repair window will appear!
Choose: Recommended Repair to repair.
MongoDB: Deploy a Replica Set
Depoy a Replica Set with three members: 1 Primary and 2 secondary
- Install mongodb:
$ sudo apt-get update
$ sudo apt–get install mongodb
- Config mongodb.conf in each member
$ vi /etc/mongodb.conf
Add: replSet = rs0
Remove: bind_ip = 127.0.0.1
$ service mongodb restart
- In each Secondary member
$ vi /etc/hosts
Add: <IP primary member> : machine name of primary
- In Primary
$ mongo
rs.initiate()
rs.add(“<IP member 2>:27017”)
rs.add(“<IP member 3>:27017”)
rs.status()
Virtualbox lỗi không cài được 64bit or 32 bit
Lỗi này vào BIOS => sau đó enable vitualbox technology
Quay video màn hình trên Ubuntu với SimpleScreenRecorder
SimpleScreenRecorder là phần mềm quay video màn hình trên Ubuntu với ưu điểm chính là dễ dùng, gọn nhẹ đáp ứng đủ yêu cầu với một số tính năng chính sau:
Tính năng
- Giao diện người dùng đồ họa (Qt-based).
-
Nhanh hơn so với VLC và ffmpeg / avconv.
-
Bản ghi toàn bộ màn hình hoặc một phần của màn hình, hoặc các ứng dụng OpenGL hồ sơ trực tiếp (tương tự như Fraps trên Windows).
-
Đồng bộ hóa một cách chuẩn xác âm thanh và video (một vấn đề phổ biến với VLC và ffmpeg / avconv).
-
Làm giảm tốc độ khung hình nếu máy tính của bạn là quá chậm (thay vì sử dụng tối đa RAM của bạn không như VLC).
BÌNH LUẬN