# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
export fs='/root/fs'
export tdi_home='/root/tdi/build/usb/linux/pcd_pc_1120/'
export hybus_home='/usr/src/linux-2.6.10-hybus/'
alias make_hybus='cd $hybus_home&&make'
alias send_image='cp /usr/src/linux-2.6.10-hybus/arch/arm/boot/zImage /tftpboot/'
alias startvnc='service vncserver start&&vncserver'
alias compile_pcd='make -C /usr/src/linux-2.6.12/ SUBDIRS=$PWD modules'
alias compile_host='cd ~/tdi/build/usb/linux/hcd_pc_1120/&&make -C /usr/src/linux-2.6.12/ SUBDIRS=$PWD modules'
alias compile_test='cd ~/testcode&&make -C /usr/src/linux-2.6.12/ SUBDIRS=$PWD modules'
alias make_timage='compile_test&&cd $fs&&make filesystem image_sout'
alias make_himage='compile_host&&cd $fs&&make filesystem image_sout'
alias si="wine ~/.wine/drive_c/Program\ Files/Source\ Insight\ 3/Insight3.exe &"
alias systemconfig="system-config-services"
alias networkconfig="system-config-network"
#Source Mavigation in Emacs
tag="ctags -R -e "
#M-. Search the TAGS
#M-* Pop back to where you previous involve M-.
#Wireless LAN settings
alias start_wireless="ifconfig eth1 up"
alias scan_wireless="iwlist eth1 scanning"
alias get_preamble="iwpriv eth1 preamble"
#get the MAC mode
alias get_mac_mode="iwpriv eth1 get_mac_mode"
#set the MAC mode(mixed(1), pure G(2) or pure B(2))
alias set_mac_mode="iwpriv eth1 set_mac_mode 1"
#Check the wireless network frequency
alias set_mac_mode="iwlist eth1 frequency"
#Optional Commands
# ifconfig eth1 up
#ifconfig eth1 192.168.5.2
# iwpriv eth1 connect
# iwpriv eth1 get_Region
# iwpriv eth1 set_Region
# iwpriv eth1 essid
#samba related
#samba script is located at /etc/samba/smb.conf
alias start_samba="/etc/rc.d/init.d/smb restart"
alias show_bashrc="cat ~/.bashrc"
alias show_message="cat /var/log/messages"
alias show_log="system-logviewer"
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#restart the message deamons
alias restart_syslogd='/etc/init.d/syslog restart'
#/etc/X11/xorg.conf
#/etc/X11/xorg.conf.backup
No comments:
Post a Comment