Error message:
Failed to set up service vboxadd, please check the log file
unable to find the sources of your current linux kernel
# sudo dnf update
#sudo dnf install gcc kernel-devel kernel-headers
Restart the Fedora virtual machine and install VirtualBox Addon
個人在學習Linux過程當中的個人筆記,提供個人及有需要的人查閱,若有錯誤歡迎提供指正,謝謝。 This Blog recorded notes about my learning Linux and provides myself and others reference. If there are any incorrect information, welcome to leave a message to correct me, Thanks.
2017年1月5日 星期四
2015年11月3日 星期二
Validate PCIe's Speed and Width under Linux
1. use `lspci` to list all pci devices
The number less than 7f:xx:xx is for CPU0
more than 80:xx:xx is for CPU1
2. use 'lspci -vv" to check the detail of target device
check the "LnkStat:"
Speed 2.5GT/s is gen1
Speed 5GT/s is gen2
Speed 8GT/s is gen3
Width is the PCIe lances
Reference:
https://en.wikipedia.org/wiki/PCI_Express
The number less than 7f:xx:xx is for CPU0
more than 80:xx:xx is for CPU1
2. use 'lspci -vv" to check the detail of target device
check the "LnkStat:"
Speed 2.5GT/s is gen1
Speed 5GT/s is gen2
Speed 8GT/s is gen3
Width is the PCIe lances
Reference:
https://en.wikipedia.org/wiki/PCI_Express
2013年12月12日 星期四
How to PAUSE and CONTINUE a Linux process
Use kill command to send -STOP signal to pause a process and -CONT signal to continue it.
Example on CentOS6 Desktop:
1. Open a Terminal (name as T1) on Desktop and send "ps -aux | grep bash" to see how much bash in there.
2. Open another Terminal (name as T2) on Desktop and on T1 send "ps -aux | grep bash" to see process id of new created bash (T2)
3. On T1, send "kill -STOP" to pause T2
>T2 is hang
4. On T1, send "kill -CONT" to continue T2
>T2 is back to work
This is useful if a script is running on T2 and you want to pause it and continue it later
Reference:
http://tombuntu.com/index.php/2007/11/23/how-to-pause-a-linux-process/
Example on CentOS6 Desktop:
1. Open a Terminal (name as T1) on Desktop and send "ps -aux | grep bash" to see how much bash in there.
2. Open another Terminal (name as T2) on Desktop and on T1 send "ps -aux | grep bash" to see process id of new created bash (T2)
3. On T1, send "kill -STOP
>T2 is hang
4. On T1, send "kill -CONT
>T2 is back to work
This is useful if a script is running on T2 and you want to pause it and continue it later
Reference:
http://tombuntu.com/index.php/2007/11/23/how-to-pause-a-linux-process/
2012年2月9日 星期四
讓Linux可以解析到WINS下的機器
1. 在/etc/samba/smb.conf新增
[global]
wins server = ip
2. 更改/etc/nsswitch.conf 的hosts解析方式增加wins
hosts: wins dns files
參考資料:
https://bbs.et8.net/bbs/showthread.php?t=885180
[global]
wins server = ip
2. 更改/etc/nsswitch.conf 的hosts解析方式增加wins
hosts: wins dns files
參考資料:
https://bbs.et8.net/bbs/showthread.php?t=885180
訂閱:
文章 (Atom)