qemu virtual machine manager
Install qemu virtual machine manager
sudo apt-get install virt-manager
Reboot your system after installation.
nmap for ip/hostname scan
install nmap via below command
sudo apt-get install namp
Scan IP (example)
nmap -sP 192.168.1.0/24
Scan Hostname
nmap -A 192.168.1.0/24
wireless network setting
edit /etc/network/interfaces
sudo nano /etc/network/interfaces
Here is an example for setting a wirless network with fixed ssid
auto wlan0
iface wlan0 inet dhcp
wireless-essid my_ssid
wireless-mode Managed
Fix Network Tray Icon Missing
Install following package to fix this problem
sudo apt-get install indicator-applet-complete
config boot process - sysv-rc-conf
Install sysv-rc-conf
sudo apt-get install sysv-rc-conf
sudo sysv-rc-conf
Run it
sublime 2/3 on Ubuntu
Install Sublime2
Install Sublime3
Reduce Initramfs to speed up boot time
edit /etc/initramfs-tools/initramfs.conf, change MODULES=dep instead of MODULES=most
Run below command to rebuild initramfsSamba Utility
Install samba utility
sudo aptitude install cifs-utils
Example for mounting a samba folder
sudo mount -t cifs //192.168.0.15/myfiles /home/usr/files -o rw
Caching git Password
Ubuntu Enable colored Highlights in Terminal
edit .bashrc
sudo nano ~/.bashrc
Uncomment
Ubuntu Enable Wireless Network in Terminal
Install wireless tools
sudo apt-get install wireless-tools
Enable Wireless network
sudo ifconfig wlan0 up
List down all available wireless network
sudo iwlist wlan0 scan
Setting up SSID
iwconfig wlan0 essid "your_ssid"
Enable DHCP
dhclient wlan0
Ubuntu 15.04 Build Single Module
Get source code from apt-get
sudo apt-get source linux-3.19.0
change directory to linux source code and type following commandscd linux-3.19.0
copy current kernel config as .config in current folder (or you can config it by typing make oldconfig)cp /boot/config-`name -r` .config
type following commands for parparationssudo make prepare
sudo make scripts
copy Modules.symvers to current foldercp /usr/src/liunx-headers-&(uname -r)/Module.symvers .
compile specified module (ex. I'd like to rebuild block module)sudo make M=drivers/block
change directory to linux source code and type following commands
copy current kernel config as .config in current folder (or you can config it by typing make oldconfig)
type following commands for parparations
copy Modules.symvers to current folder
compile specified module (ex. I'd like to rebuild block module)
Vim with ctag & taglist
Just follow below instructions to install ctags & taglist under vim.
Install vim and ctags
sudo apt-get install vim ctags vim-scripts
Install taglist via
vim-addons install taglist
Install vim and ctags
Install taglist via
Subscribe to:
Posts (Atom)
Orange - data analysis tool
Installation pip install orange3 Run orange python -m Orange.canvas
-
Type-Casting Conversion 現在的高階語言已經將許多繁雜的事情給處理好了,型態轉型就是一個例子,但是在C語言裡面你必須自行處理,下面是一個簡易的Interger轉char的範例。 輸出結果如下: 對應的轉型結構如下: 由上面的表格可以很清楚的看出轉型後結果。型...
-
getch() for linux 在linux底下的gcc是不支援conio.h這個標頭檔,自然就不行使用getch()。這裡提供網路上一個簡便的實做getch()程式碼。 #include <stdio.h> #include <termios.h> ...
-
Socket Connection 節錄自筆者的Network Programming其中的資料,一般在Windows底下如果要寫網路程式多半會想到Microsoft MFC提供的相關API,而Linux底下則多使用Unix Socket來實現,這裡筆者要簡短的介紹如何使用最基礎...