linux学习 操作指令
1.echo的操作需要带上引号 echo "10">brightness
2.nfs 系统的主要功能是在主机里面编译程序,并在机器中测试编译之后的程序。
需要将主机的文件夹做更大的共享和权限,而板子上则可以直接取到文件,不用关心文件的大小和内容,几乎是实时的。
3.所谓window 实现调试linux的功能,主要是利用ARM -gcc编译,SSH 链接 调试,和GDB调试,基本都是用TCPIP远程调试的功能。
当然中间用了jdk和交叉编译器,可以看出来,利用了gcc的编译,在window和linux没有太大差别。
4.linux启动的文件使用
打开启动文件 位置
vi /etc/rc.d/init.d/start_userapp
ifconfig eth0 hw ether 02:00:92:B3:C4:08
#ifconfig eth0 192.168.1.123 // 配置IP内容 启动TCP/IP
#ifconfig eth0 down
# something need to be done before sshd start,
# make sure you know what you are doing before
# delete them.
date -s "2015-09-01 00:00:00" &> /dev/null
echo -e "root\nroot\n" | passwd root &> /dev/null
/etc/rc.d/init.d/sshd start &
#you can add your app start_command here
#start qt command,you can delete it
export TSLIB_PLUGINDIR=/usr/lib/ts/
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_TSDEVICE=/dev/input/ts0
export TSLIB_CALIBFILE=/etc/pointercal
export QT_QWS_FONTDIR=/usr/lib/fonts
export QWS_MOUSE_PROTO=Tslib:/dev/input/ts0
boardname=`cat /sys/devices/platform/zlg-systemType/board_name` // 获取板子的类型
if [ ! $boardname = "280" ]
then
/usr/share/zylauncher/start_zylauncher >/dev/null & // 启动zlg的主程序
fi
启动文件内容
5.VI 格式整理
在vim中其实也有像Eclipse中的ctrl + shift +F 的自动格式化代码的操作,尽管非常强大,但是通常会破坏代码的原有的缩进,
所以不建议在python这样缩进代替括号的语言中和源程序已经缩进过的代码中使用,废话少说,下面说步骤:
1,gg 跳转到第一行
2,shift+v 转到可视模式
3,shift+g 全选
4,按下神奇的 =
6.Makefile 的默认逻辑过程