1.ubuntuå¹³å°å¦ä½ä½¿ç¨å½ä»¤ä¸è½½è½¯ä»¶
2.为ä»ä¹å¨ubuntuä¸å®è£
ä¸äº
3.å¦ä½å®è£
gcc-linaro-arm-linux-gnueabihf-4.8-2014.03
4.CLion最全安装方法
5.Ubuntuç³»ç»å¦ä½å®è£
软件
6.树莓派3b支持DirectX 9.0吗?想用wine跑点游戏
ubuntuå¹³å°å¦ä½ä½¿ç¨å½ä»¤ä¸è½½è½¯ä»¶
1. 使ç¨apt-get installæ¥å®è£ åºç¨ç¨åºæ¯æ常è§çä¸ç§å®è£ æ¹æ³ï¼æ¯å¦è¦å®è£ buildessentialè¿ä¸ªè½¯ä»¶ï¼ä½¿ç¨ä»¥ä¸ï¼ä»ä¼å¸®ææææçä¾èµå é½ä¸èµ·å®è£ äºã
sudo apt-get install build-essential
æ§è¡ä¸è¿°å½ä»¤ä»¥åï¼æ们å¯ä»¥çå°ä¸ä¸ä¿¡æ¯ï¼
The following extra packages will be installed:表示ææéè¦åå®è£ çä¾èµå ã
sudo apt-get install build-essential
[sudo] password for enadmin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binutils cpp cpp-4.6 dpkg-dev fakeroot g++ g++-4.6 gcc gcc-4.6
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libc-bin libc-dev-bin libc6 libc6-dev libdpkg-perl libgomp1 libmpc2 libmpfr4
libquadmath0 libstdc++6-4.6-dev linux-libc-dev manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-4.6-locales debian-keyring g++-multilib
g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg gcc-multilib autoconf
automake1.9 libtool flex bison gdb gcc-doc gcc-4.6-multilib
libmudflap0-4.6-dev libgcc1-dbg libgomp1-dbg libquadmath0-dbg
libmudflap0-dbg binutils-gold glibc-doc libstdc++6-4.6-doc
The following NEW packages will be installed:
binutils build-essential cpp cpp-4.6 dpkg-dev fakeroot g++ g++-4.6 gcc
gcc-4.6 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libc-dev-bin libc6-dev libdpkg-perl libgomp1 libmpc2
libmpfr4 libquadmath0 libstdc++6-4.6-dev linux-libc-dev manpages-dev
The following packages will be upgraded:
libc-bin libc6
2 upgraded, newly installed, 0 to remove and not upgraded.
Need to get .3 MB of archives.
After this operation, .6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
ä¸é¢ç»åºapt-getççåç§åæ°ï¼
apt-get install xxx å®è£ xxx ãå¦æ带æåæ°ï¼é£ä¹-d è¡¨ç¤ºä» ä¸è½½ ï¼-f 表示强å¶å®è£
apt-get remove xxx å¸è½½xxx
apt-get update æ´æ°è½¯ä»¶ä¿¡æ¯æ°æ®åº
apt-get upgrade è¿è¡ç³»ç»å级
apt-cache search æ索软件å
Tipsï¼å»ºè®®æ¨ç»å¸¸ä½¿ç¨âapt-get updateâå½ä»¤æ¥æ´æ°æ¨ç软件信æ¯æ°æ®åº ã
apt-getç论ä¸æ¯è¦æ±è½å¤èç½ï¼ä½æ¯å¦æå¶ä½äºæ¬å°æºï¼å°±ä¸éè¦èç½ï¼å¶ä½æ¬å°æºå¯ä»¥åèï¼ubuntuå¶ä½æ¬å°æºã
2. dpkgå®è£ debå
Ubuntu软件å æ ¼å¼ä¸ºdebï¼å®è£ æ¹æ³å¦ä¸ï¼
sudo dpkg -i package.deb
dpkgç详ç»ä½¿ç¨æ¹æ³ï¼ç½ä¸æå¾å¤ï¼ä¸é¢ç®ååäºå 个ï¼
dpkg -i package.deb å®è£ å
dpkg -r package å é¤å
dpkg -P package å é¤å ï¼å æ¬é ç½®æ件ï¼
dpkg -L package ååºä¸è¯¥å å ³èçæ件
dpkg -l package æ¾ç¤ºè¯¥å ççæ¬
dpkg âunpack package.deb è§£å¼ deb å çå 容
dpkg -S keyword æç´¢æå±çå å 容
dpkg -l ååºå½åå·²å®è£ çå
dpkg -c package.deb ååº deb å çå 容
dpkg âconfigure package é ç½®å
æ ¹æ®Ubuntuä¸æ论åä¸ä»ç»ï¼ä½¿ç¨apt-getæ¹æ³å®è£ ç软件ï¼ææä¸è½½çdebå é½ç¼åå°äº/var/cache/apt/archivesç®å½ä¸äºï¼æ以å¯ä»¥æ常ç¨çdebå å¤ä»½åºæ¥ï¼çè³åæISOå·¥å ·å ãå»çï¼ä»¥åå®è£ Ubuntuæ¶å°±å¯ä»¥å¨æ²¡æç½ç»ç¯å¢çæ åµä¸è¿è¡äºãä¸é¢çå½ä»¤æ¯æ·è´archivesè¿ä¸ªç®å½å°/var/cache/apt/ç®å½ä¸ï¼æ¿æ¢åæçarchives
enadmin@ubuntu-server:~/ftp$ sudo cp -r archives/ /var/cache/apt/
3. make installæºä»£ç å®è£ ã
å¦æè¦ä½¿ç¨makeå®è£ çè¯ï¼é£ä¹å¿ é¡»å¾å®è£ build-essentialè¿ä¸ªä¾èµå ï¼å®è£ æ¹æ³å·²ç»å¨åé¢è¯´è¿äºãå¨å®è£ å®æ¯ä»¥åï¼æ们就å¯ä»¥è¿è¡æºç å®è£ ãæºç å®è£ 大è´å¯ä»¥å为ä¸æ¥éª¤ï¼ï¼./configureï¼âï¼ ç¼è¯ï¼sudo makeï¼ âï¼ å®è£ ï¼sudo make installï¼ã
é ç½®ï¼è¿æ¯ç¼è¯æºä»£ç ç第ä¸æ¥ï¼éè¿ ./configure å½ä»¤å®æãæ§è¡æ¤æ¥ä»¥ä¾¿ä¸ºç¼è¯æºä»£ç ä½åå¤ã常ç¨çé项æ --prefix=PREFIXï¼ç¨ä»¥æå®ç¨åºçå®è£ ä½ç½®ãæ´å¤çé项å¯éè¿ --help æ¥è¯¢ãä¹ææäºç¨åºæ éæ§è¡æ¤æ¥ã
ç¼è¯ï¼ä¸æ¦é ç½®éè¿ï¼å¯å³å»ä½¿ç¨ make æ令æ¥æ§è¡æºä»£ç çç¼è¯è¿ç¨ãè§è½¯ä»¶çå ·ä½æ åµèå®ï¼ç¼è¯æéçæ¶é´ä¹åæå·®å¼ï¼æ们æè¦åçå°±æ¯èå¿çååéè§å ¶åãæ¤æ¥è½ç¶ä» ä¸ç®åçæ令ï¼ä½ææ¶åæéå°çé®é¢å´ååå¤æãè¾å¸¸ç¢°å°çæ å½¢æ¯ç¨åºç¼è¯å°ä¸éå´æ æ³å满ç»æãæ¤æ¶ï¼éè¦æ ¹æ®åºéæ示åæ以便æ¾å°åºå¯¹ä¹çã
å®è£ ï¼å¦æç¼è¯æ²¡æé®é¢ï¼é£ä¹æ§è¡ sudo make install å°±å¯ä»¥å°ç¨åºå®è£ å°ç³»ç»ä¸äºã
ä¸é¢ä»¥å®è£ nagios为ä¾è¿è¡è¯´æã
//1.解å缩
tar -zxf nagios-4.0.2.tar.gz
//2.è¿å ¥ç®å½
cd nagios-4.0.2
//3.é ç½®
./configure --prefix=/usr/local/nagios
//4.ç¼è¯
make all
//5.å®è£
make install && make install-init && make install-commandmode && make install-config
以ä¸å°±æ¯æºä»£ç å®è£ æ¹å¼ã
为ä»ä¹å¨ubuntuä¸å®è£ ä¸äº
å¨ubuntuå½ä¸ï¼å®è£ åºç¨ç¨åºææç¥éçæä¸ç§æ¹æ³ï¼åå«æ¯apt-getï¼dpkgå®è£ debåmake installå®è£ æºç å ä¸ç§ãä¸é¢é对æ¯ä¸ç§æ¹æ³å举ä¾æ¥è¯´æã
apt-getæ¹æ³
使ç¨apt-get installæ¥å®è£ åºç¨ç¨åºç®æ¯æ常è§çä¸ç§å®è£ æ¹æ³äºï¼æ¯å¦æè¦å®è£ build-essentialè¿ä¸ªè½¯ä»¶ï¼ä½¿ç¨ä»¥ä¸ï¼ä»ä¼å¸®ææææçä¾èµå é½ä¸èµ·å®è£ äºã
sudo apt-get install build-essential
æ§è¡ä¸è¿°å½ä»¤ä»¥åï¼æ们å¯ä»¥çå°ä¸ä¸ä¿¡æ¯ï¼The following extra packages will be installed:表示ææéè¦åå®è£ çä¾èµå ã
sudo apt-get install build-essential
[sudo] password for enadmin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binutils cpp cpp-4.6 dpkg-dev fakeroot g++ g++-4.6 gcc gcc-4.6
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libc-bin libc-dev-bin libc6 libc6-dev libdpkg-perl libgomp1 libmpc2 libmpfr4
libquadmath0 libstdc++6-4.6-dev linux-libc-dev manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-4.6-locales debian-keyring g++-multilib
g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg gcc-multilib autoconf
automake1.9 libtool flex bison gdb gcc-doc gcc-4.6-multilib
å¦ä½å®è£ gcc-linaro-arm-linux-gnueabihf-4.8-.
1ã å¦æè¦èªå·±ç¼è¯å·¥å ·é¾ï¼ä»ä»¥ä¸é¾æ¥ä¸è½½æºç
crosstools-ngä¸è½½å°å
/debian/
编辑sources.list:
deb /debian/ stretch maindeb /archive.raspberrypi.org/ jessie main non-free contrib apt.conf:APT::Default-Release "stretch";
Chroot和之前的准备工作:
sudo mount -t proc proc procsudo mount -t sysfs sysfs syssudo mount -o bind /dev devsudo chroot . 视具体情况安装软件包。apt install hostapd wpasupplicant udhcpd screen dnsmasq sudo openssh-server firmware-brcm ... firmware-brcm:使系统识别树莓派3板载网卡hostapd,udhcpd,dnsmasq:启动AP必备
wpasupplicant:用于连接Wifi热点
openssh-server:SSH服务器
sudo,screen:这两个想必大家都听说过吧……
退出Chroot环境,复制配置文件及其它核心组件,html css导航源码例如:
/boot/lib/modules/etc/passwd/etc/shadow/etc/sudoers/etc/hostapd/etc/default/etc/udhcpd.conf/etc/udev//etc/dnsmasq.confetc...
注:笔者实际上把整个(除了/etc)位根文件系统覆盖到了树莓派启动的SD卡上。成功启动。资金坑指标源码
但是qq飞车追踪源码有烦人的提示:
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS): ignored.
解决方案显而易见:
sudo mv /etc/ld.so.preload /etc/ld.so.preload.baksudo touch /etc/ld.so.preload
如果你使用了一张新的SD卡,记得编辑/etc/fstab!Stage 3:站稳脚跟
*执行apt-get update,提示:
Ign:1 /debian stretch InReleaseGet:2 /archive.raspberrypi.org jessie InRelease [.9 kB]
Hit:2 /archive.raspberrypi.org jessie InRelease
Get:3 /debian stretch Release [ kB]
Hit:3 /debian stretch ReleaseCan't locate Storable.pm in @INC (you may need to install the Storable module) (@INC contains: /etc/perl /usr/local/lib/aarch-linux-gnu/perl/5..1 /usr/local/share/perl/5..1 /usr/lib/aarch-linux-gnu/perl5/5. /usr/share/perl5 /usr/lib/aarch-linux-gnu/perl/5. /usr/share/perl/5. /usr/local/lib/site_perl /usr/lib/aarch-linux-gnu/perl-base) at /usr/bin/apt-show-versions line .
BEGIN failed--compilation aborted at /usr/bin/apt-show-versions line .
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-arm/Packages' as repository '/archive.raspberrypi.org jessie InRelease' doesn't support architecture 'arm'N: Skipping acquire of configured file 'non-free/binary-arm/Packages' as repository '/archive.raspberrypi.org jessie InRelease' doesn't support architecture 'arm'
N: Skipping acquire of configured file 'contrib/binary-arm/Packages' as repository '/archive.raspberrypi.org jessie InRelease' doesn't support architecture 'arm'N: Skipping acquire of configured file 'ui/binary-arm/Packages' as repository '/archive.raspberrypi.org jessie InRelease' doesn't support architecture 'arm'
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i'
E: Sub-process returned an error code
笔者尝试执行sudo apt-get install apt-show-versions,问题解决。小结
路曼曼其修远兮,吾将上下而求索。
目前整个系统仅仅只是layui源码教程交流能用,还有许多不完美的地方。
更新
4.的公众号api源码内核可以使树莓派工作得更好,ACT灯和VCHI将正常工作。
Git切换分支:git checkout rpi-4..y
2024-12-24 09:01264人浏览
2024-12-24 08:4386人浏览
2024-12-24 08:301024人浏览
2024-12-24 07:061098人浏览
2024-12-24 07:011563人浏览
2024-12-24 06:272035人浏览
屏東一名陳姓男子,14歲開始就無照騎車到處趴趴走,滿19歲也不去考駕照,繼續無照騎車,還多次違規被開單,累積10多張的罰單共17萬多元,後來被監理站移送法務部屏東執行署執行11多萬元,他不予理會,最後
媒體人彭文正日前向法院提出,總統蔡英文「英國倫敦大學政經學院」的博士論文不存在訴訟,台北地方法院今23)天進行更一審宣判,指出「彭文正敗訴」。對此,總統府發言人張惇涵回應表示,總統府尊重司法判決;並期