Lv.的博客
上一页 1 ··· 148 149 150 151 152 153 154 155 156 ··· 190 下一页
摘要: 在Windows下可以使用GetSystemMetrics(SM_CXSCREEN);GetSystemMetrics(SM_CYSCREEN) 获取。在Linux下可以使用XDisplayWidth;XDisplayHeight()获取。在QT中呢?网上很多人说是QApplication::des... 阅读全文
posted @ 2014-12-09 14:06 Avatarx 阅读(3711) 评论(0) 推荐(0)
摘要: 先安装一个软件,然后使用权ddcprobe可以查看当前支持的分辨率和刷新频率#sudo apt-get install xresprobe运行#sudo ddcprobe会得到下面的信息vbe: VESA 3.0 detected.oem: Intel(r)Cantiga Graphics Chip... 阅读全文
posted @ 2014-12-09 14:02 Avatarx 阅读(9122) 评论(0) 推荐(1)
摘要: 1.Linux下关闭和开启防火墙 1) 重启后生效 开启: chkconfig iptables on 关闭: chkconfig iptables off 2) 即时生效,重启后失效 开启: service iptables start 关闭: service iptables stop 需要说明... 阅读全文
posted @ 2014-12-09 13:59 Avatarx 阅读(300) 评论(0) 推荐(0)
摘要: 1) 通过mii-tool指令 [root@localhost root]# mii-tool eth0: negotiated 100baseTx-FD, link ok eth1: no link 或 [root@localhost root]# mii-tool -v eth0: negoti... 阅读全文
posted @ 2014-12-09 13:55 Avatarx 阅读(5465) 评论(0) 推荐(0)
摘要: 就类似你装完xp后,或者你拿到一台新的机器的时候,你通常都是进入系统,看看他的cpu,内存,硬盘使用情况。我也按照这个来看看linux的系统状态。1:top 退出按q,这个就类似windows的任务管理器第一行表示的项目依次为当前时间、系统运行时间、当前系统登录用户数目、1/5/10分钟系统平均负载... 阅读全文
posted @ 2014-12-09 13:52 Avatarx 阅读(371) 评论(0) 推荐(0)
摘要: tune2fs和fsck的用法tune2fs--调整ext2/ext3文件系统特性的工具。-l查看文件系统信息-c设置强制自检的挂载次数-i设置强制自检的时间间隔-m保留块的百分比-j将ext2文件系统转换为ext3类型的文件系统ext2文件系统不具备日志功能。将ext3文件系统转换为ext3类型就... 阅读全文
posted @ 2014-12-09 13:47 Avatarx 阅读(2132) 评论(0) 推荐(0)
摘要: lspci | grep -i vga这样就可以显示机器上的显卡信息,比如[root@localhost conf]# lspci | grep -i vga01:00.0 VGA compatible controller: nVidia Corporation Device 1081 (rev ... 阅读全文
posted @ 2014-12-09 13:44 Avatarx 阅读(1445) 评论(0) 推荐(0)
摘要: 如果要查看磁盘还剩多少空间,当然是用df的命令了。[root@localhost ~]# df -h文件系统 容量 已用 可用 已用% 挂载点/dev/sda2 14G 11G 2.6G 82% //dev/sda1 99M 14M 81M 14% /boot... 阅读全文
posted @ 2014-12-09 13:41 Avatarx 阅读(265) 评论(0) 推荐(0)
摘要: 在Linux系统中,如何详细了解CPU的信息呢? 当然是通过cat /proc/cpuinfo来检查了,但是比如几个物理CPU/几核/几线程,这些问题怎么确定呢?经过查看,我的开发机器是1个物理CPU,4核8线程,Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz记录一下,... 阅读全文
posted @ 2014-12-09 13:39 Avatarx 阅读(869) 评论(0) 推荐(0)
摘要: 1. 学会写简单的makefile2. 编一应用程序,可以用makefile跑起来3. 学会写驱动的makefile4. 写一简单char驱动,makefile编译通过,可以insmod, lsmod, rmmod. 在驱动的init函数里打印hello world, insmod后应该能够通过dm... 阅读全文
posted @ 2014-12-09 13:17 Avatarx 阅读(8701) 评论(0) 推荐(3)
上一页 1 ··· 148 149 150 151 152 153 154 155 156 ··· 190 下一页