[linux]
ÅäÖãº
ͨ¹ýÎļþÃû²éÕÒ·¨£º
Õâ¸ö·½·¨ËµÆðÀ´¾ÍºÍÔÚWINDOWSϲéÕÒÎļþÒ»ÑùÈÝÒ×Àí½âÁË¡£Èç¹ûÄã°ÑÕâ¸öÎļþ·ÅÔÚµ¥¸öµÄÎļþ¼Ð
ÀïÃ棬ֻҪʹÓó£¼ûµÄ“ls"ÃüÁî¾ÍÄÜ·½±ãµÄ²éÕÒ³öÀ´£¬ÄÇôʹÓÓfind”ÃüÁîÀ´²éÕÒËü¾Í²»Äܸø
ÄãÁôÏÂÉî¿ÌµÄÓ¡Ï󣬱Ͼ¹“find”ÃüÁîµÄÇ¿´ó¹¦Äܲ»Ö¹Õâ¸ö¡£Èç¹ûÖªµÀÁËij¸öÎļþµÄÎļþÃû£¬¶ø²»
ÖªµÀÕâ¸öÎļþ·Åµ½ÄĸöÎļþ¼Ð£¬ÉõÖÁÊDzã²ãÌ×ǶµÄÎļþ¼ÐÀï¡£¾ÙÀý˵Ã÷£¬¼ÙÉèÄãÍü¼ÇÁËhttpd.conf
Õâ¸öÎļþÔÚϵͳµÄÄĸöĿ¼Ï£¬ÉõÖÁÔÚϵͳµÄij¸öµØ·½Ò²²»ÖªµÀ£¬ÔòÕâÊÇ¿ÉÒÔʹÓÃÈçÏÂÃüÁ
find / -name httpd.conf
Èç¹û·þÎñûÓÐÔËÐУ¬¿ÉÒÔÓÃ
sudo /etc/init.d/mysql restart¿ªÆô¡£
ÅäÖÃÃÜÂ룺
sudo mysqladmin -u root password newpassword
ÏÖÔÚÐèҪװadministratorÁË£¬Õâ¸ögui¹¤¾ß¿ÉÒÔ¿ÉÊÓ»¯²Ù×÷mysql£¬ËüÔÚunix,windows,mac
os,linuxƽ̨É϶¼ÓÐÏàÓ¦µÄ°æ±¾£¬°²×°£º
sudo apt-get install mysql-admin
°²×°Ö®ºóÐèÒª½¨Á¢Á¬½Ó£¬stored connection:µÚÒ»´ÎʹÓã¬Ê×ÏÈÐèҪѡÔñsave this connection£¬
È»ºóÌîдÁ¬½ÓµÄÃû×Ö£¬ÀýÈç:connection.
server hostname:Èç¹ûÊÇһ̨±¾µØ¼ÆËã»ú£¬Ìîдlocalhost.usernameºÍpasswordÌîд×Ô¼ºÉèÖõľÍ
¿ÉÒÔ¡£×îºóµã"connection"Á¬½Ó³É¹¦£¡
======================================================================================
°²×°MySQL
sudo apt-get install mysql-server
Õâ¸öÓ¦¸ÃºÜ¼òµ¥ÁË£¬¶øÇÒÎÒ¾õµÃ´ó¼ÒÔÚ°²×°·½ÃæҲûʲô̫´óÎÊÌ⣬ËùÒÔÒ²¾Í²»¶à˵ÁË£¬ÏÂÃæÎÒÃÇ
À´½²½²ÅäÖá£
ÅäÖÃMySQL
×¢Ò⣬ÔÚUbuntuÏÂMySQLȱʡÊÇÖ»ÔÊÐí±¾µØ·ÃÎʵģ¬Èç¹ûÄãÒªÆäËû»úÆ÷Ò²Äܹ»·ÃÎʵĻ°£¬ÄÇôÐèÒª
¸Ä±ä/etc/mysql/my.cnfÅäÖÃÎļþÁË£¡ÏÂÃæÎÒÃÇÒ»²½²½µØÀ´£º
ĬÈϵÄMySQL°²×°Ö®ºó¸ùÓû§ÊÇûÓÐÃÜÂëµÄ£¬ËùÒÔÊ×ÏÈÓøùÓû§½øÈ룺
$mysql -u root
ÔÚÕâÀïÖ®ËùÒÔÓÃ-urootÊÇÒòΪÎÒÏÖÔÚÊÇÒ»°ãÓû§£¨firehare£©£¬Èç¹û²»¼Ó-urootµÄ»°£¬mysql»áÒÔ
ΪÊÇfirehareÔڵǼ¡£×¢Ò⣬ÎÒÔÚÕâÀïûÓнøÈë¸ùÓû§Ä£Ê½£¬ÒòΪû±ØÒª¡£Ò»°ãÀ´Ëµ£¬¶ÔmysqlÖÐ
µÄÊý¾Ý¿â½øÐвÙ×÷£¬¸ù±¾Ã»±ØÒª½øÈë¸ùÓû§Ä£Ê½£¬Ö»ÓÐÔÚÉèÖÃʱ²ÅÓÐÕâÖÖ¿ÉÄÜ¡£
½øÈëmysqlÖ®ºó£¬×îÒª½ôµÄ¾ÍÊÇÒªÉèÖÃMysqlÖеÄrootÓû§ÃÜÂëÁË£¬·ñÔò£¬Mysql·þÎñÎÞ°²È«¿ÉÑÔÁË
¡£
mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY "123456";
×¢Ò⣬ÎÒÕâ¶ùÓõÄÊÇ123456×öΪrootÓû§µÄÃÜÂ룬µ«ÊǸÃ
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
Ŀ¼ÊÇLinuxϵͳ×éÖ¯ÎļþµÄÒ»ÖÖÌØÊâÎļþ¡£ÎªÊ¹Óû§¸üºÃµØʹÓÃĿ¼£¬ÎÒÃǽéÉÜÓйØĿ¼µÄһЩ»ù±¾¸ÅÄî¡£
£¨1£©¹¤×÷Ŀ¼ÓëÓû§Ö÷Ŀ¼
´ÓÂß¼ÉϽ²£¬Óû§ÔڵǼµ½LinuxϵͳÖÐÖ®ºó£¬Ã¿Ê±Ã¿¿Ì¶¼´¦ÔÚij¸öĿ¼֮ÖУ¬´ËĿ¼±»³Æ×ö¹¤×÷Ŀ¼»òµ±Ç°Ä¿Â¼£¨Working Directory£©¡£¹¤×÷Ŀ¼ÊÇ¿ÉÒÔËæʱ¸Ä±äµÄ¡£Ó ......
linuxÇý¶¯ ×ÔÐýËøµÄÔËÓÃ
//hello.c
#define __NO_VERSION__
#include <linux/module.h>
#include <linux/config.h>
#include <linux/version.h>
#include <asm/uaccess.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#inc ......
Linux¶ÑÕ»Òç³öµÄ¾µäÎÊÌâ
ÉùÃ÷£º±¾ÎÄÕÂÖ»ÊÇÎÒѧϰµÄÒ»¸ö¼Ç¼£¬ÓйØÒýÓõĵط½£¬ÎÒ¶¼»á¸ø³öÁ´½ÓµÄ¡£Èç¹ûÇÖ·¸×÷ÕßȨÒ棬Çë֪ͨÎÒ¼°Ê±É¾³ý¡£
¿´ÁËһϣ¬LinuxһվʽѧϰµÄº¯Êýµ÷ÓÃ
£¬¸ãµÄÎÒÈÈѪ·ÐÌÚ£¬Á¢ÂíÕÒÄãÒ»ÏÂÕâ·½ÃæµÄ×ÊÁÏ¿´¿´¡£ÖÕÓÚ¿´µ½ÁËÒ»¸öÓйØLinux¶ÑÕ»Òç³öµÄÎÄÕ£¬¾ÍÄÃÀ´ÊÔÊÔÊÖÁË¡£²Î¿¼
ÎÒµÄѧϰlinux±Ê¼Ç ......
×î½üÓÉÓÚÐèÒª£¬°Ñ¼¸ÄêÇ°£¨Óеã¿äÕÅ£©µÄEeePc 1000ÄóöÀ´£¬ÏëÔÚËü×Ô´øµÄLinuxϵͳϽøÐбà³Ì¡£ËÖªµÀ¾ÓȻûÓÐGCC±àÒëÆ÷£¬ËùÒÔÔ´Âë°²×°¿Ï¶¨ÊDz»ÐеÄÀ²¡£
ºóÀ´ÔÚÖնˣ¨ctrl+alt+t£©ÀïÊäÈ룺sudo apt-get install gcc
·¢ÏÖÖ§³Öapt-get°²×°Èí¼þ£¬Ö»²»¹ýûÕÒµ½ ......