1.Lỗi trong XAMPP
Khi chạy lệnh :
sudo /opt/lampp/lampp start
rtsp://192.168.0.108:554/live.sdp
sudo /opt/lampp/lampp start
Gặp lỗi:
sudo /opt/lampp/lampp start
cách khắc phục:
sudo /etc/init.d/apache2 stop
sau đó
sudo /opt/lampp/lampp start
ok!
0.1:Lệnh Stream-video
streaming video from SBCrtsp://192.168.0.108:554/live.sdp
2.Cài Linphone
./autogen
sudo apt-get install intltool
sudo apt-get install libgtk2.0-dev
sudo apt-get install libglade2-dev
sudo apt-get install libosip2-dev
sudo apt-get install libexosip2-dev
cai speex-1.2rc1
tai speex-1.2rc1.tar.gz
chay
./configure
make
sudo make install
sudo apt-get install libavcodec-dev
sudo apt-get install libswscale-dev
sudo apt-get install libsdl1.2-dev
sudo apt-get install libv4l-dev
./configure --disable-strict
make
sudo make install
sudo apt-get install libgtk2.0-dev
sudo apt-get install libglade2-dev
sudo apt-get install libosip2-dev
sudo apt-get install libexosip2-dev
cai speex-1.2rc1
tai speex-1.2rc1.tar.gz
chay
./configure
make
sudo make install
sudo apt-get install libavcodec-dev
sudo apt-get install libswscale-dev
sudo apt-get install libsdl1.2-dev
sudo apt-get install libv4l-dev
./configure --disable-strict
make
sudo make install
3. Sau khi cài linphone thì thêm lệnh
sudo ldconfig
4. Lỗi error: linux/videodev.h: No such file or directory compilation terminated.
sudo apt-get install libv4l-dev
cd /usr/include/linux
sudo ln -s ../libv4l1-videodev.h videodev.h
sudo apt-get update --fix-missing
5. Lỗi Unable to lock directory /var/lib/apt/lists/
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
Chú ý:Để cài lại linphone cần remove một số thư viện như ffmpeg
cd đến thư mục ffmpeg
sau đó chạy :./configure --enable-gpl --enable-libx264 --enable-nonfree
sau đó : sudo make uninstall
Chú ý:Để cài lại linphone cần remove một số thư viện như ffmpeg
cd đến thư mục ffmpeg
sau đó chạy :./configure --enable-gpl --enable-libx264 --enable-nonfree
sau đó : sudo make uninstall
6. Lệnh load thư viện để tạo file make
pkg-config gtk+-2.0 --cflags --libs
7. Copy vaof smartphone
adb push [path-to-iwconfig] /sdcard/
adb shell
su
mount -o remount,rw /system
cp /sdcard/iwconfig /system/xbin/
mount -o remount,ro /system
exit
exit
8. Set PC as router
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT
sudo sysctl net.ipv4.ip_forward=1
9. Sửa lỗi không adb shell được
sudo cp /tmp/android.rules /etc/udev/rules.d/51-android.rules
sudo chmod 644 /etc/udev/rules.d/51-android.rules
sudo chown root. /etc/udev/rules.d/51-android.rules
sudo service udev restart
sudo killall adb
Disconnect the USB cable between the phone and the computer.
Reconnect the phone.
10. Xây dựng gate way
sudo nano /etc/sysctl.conf
xóa bỏ coment để thành
net.ipv4.ip_forward=1
save và chạy
sudo sysctl -p
sudo sysctl --system
Dùng 2 câu lệnh:
sudo iptables -D FOWARD 4
sudo iptables -D FOWARD 4
Với 2 câu lệnh trên sẽ xóa bỏ 2 luật REJECT, chính là các luật ngăn cản gói tin từ giao diện 2.4GHz đến 5.8GHz.
11. Xử lý lỗi không compile được gcc:
/usr/local/bin/ld: this linker was not configured to use sysroots collect2: ld returned 1 exit statusxử lý:
- mở terminal
-cd/etc
-sudo gedit bash.bashrc
-thêm vào cuối file này đoạn code :export PATH="/usr/bin:$PATH"
như vậy là ok!!!
12. Lỗi trên Qtcreator
sudo -s chmod o+w /home/hunght/.config/QtProject/qtcreator/*.xml
13. Lệnh
sudo adduser hunght dialout
sudo apt-cache search gcc-4.*-arm-linux-gnueabi$
14. Command cấp quyền cho đọc dữ liệu từ một số cổng COM sudo adduser hunght dialout
15. Khi gặp lỗi này trên Qt creator
libopencv_core.so.2.3: cannot open shared object file: No such file or directory
cách xử lý là
bật terminal thực hiện:
sudo updatedb && locate libopencv_core.so.2.3
sau đó
/usr/local/opencv/
then type:
sudo ldconfig
0 nhận xét:
Đăng nhận xét