<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>数码硬件 &#8211; 老丁的博客</title>
	<atom:link href="https://www.laoding.me/archives/category/development_board/feed" rel="self" type="application/rss+xml" />
	<link>https://www.laoding.me</link>
	<description></description>
	<lastBuildDate>Fri, 25 Oct 2024 04:45:43 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://public-123.oss-cn-guangzhou.aliyuncs.com/2024/09/cropped-图片_20240927133356-768x768-1-32x32.jpg</url>
	<title>数码硬件 &#8211; 老丁的博客</title>
	<link>https://www.laoding.me</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Orange Pi Zero3打造成云终端/瘦客户机</title>
		<link>https://www.laoding.me/archives/802</link>
					<comments>https://www.laoding.me/archives/802#comments</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Fri, 25 Oct 2024 04:45:43 +0000</pubDate>
				<category><![CDATA[数码硬件]]></category>
		<category><![CDATA[Armbian]]></category>
		<category><![CDATA[Zero3]]></category>
		<category><![CDATA[香橙派]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=802</guid>

					<description><![CDATA[一. 安装 X Server 和轻量级窗口管理器 1.更新系统 sudo apt update sudo ap [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>一. 安装 X Server 和轻量级窗口管理器</h2>
<h4>1.更新系统</h4>
<pre><code>sudo apt update
sudo apt upgrade</code></pre>
<h4>2.安装 X Server</h4>
<pre><code>sudo apt install xorg</code></pre>
<h4>3. 安装轻量级窗口管理器</h4>
<ul>
<li>Openbox: 适合需要极致轻量化和高度定制的用户，但需要自己配置额外的桌面组件。
<pre><code>sudo apt install openbox</code></pre>
</li>
<li>i3: 适合喜欢平铺布局和键盘操作的用户，资源占用低且高度自定义，但有学习曲线。
<pre><code>sudo apt install i3</code></pre>
</li>
<li>LXQt: 提供一个完整的轻量级桌面环境，用户友好，功能全面，适合需要轻量级桌面体验的用户。
<pre><code>sudo apt install lxqt</code></pre>
</li>
</ul>
<h2>二. 安装远程桌面连接软件</h2>
<h4>1.安装 xfreerdp</h4>
<pre><code>sudo apt install freerdp2-x11</code></pre>
<h4>2.安装 Remmina</h4>
<pre><code>sudo apt install remmina remmina-plugin-rdp remmina-plugin-vnc</code></pre>
<h2>三.其他安装</h2>
<pre><code>sudo apt install arc-theme papirus-icon-theme</code></pre>
<p><code>安装图标</code></p>
<pre><code>sudo apt install fonts-wqy-zenhei fonts-wqy-microhei</code></pre>
<p><code>安装中文语言</code></p>
<h2>四.安装桌面默认启动</h2>
<pre><code>sudo apt install lightdm</code></pre>
<pre><code>sudo nano /etc/lightdm/lightdm.conf.d/50-lxqt.conf</code></pre>
<pre><code>[Seat:*]
user-session=lxqt
autologin-user=orangepi
autologin-user-timeout=0</code></pre>
<pre><code>sudo chmod 644 /etc/lightdm/lightdm.conf.d/50-lxqt.conf</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/802/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>斐讯N1安装Armbian系统及优化设置</title>
		<link>https://www.laoding.me/archives/751</link>
					<comments>https://www.laoding.me/archives/751#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Wed, 16 Oct 2024 07:09:45 +0000</pubDate>
				<category><![CDATA[数码硬件]]></category>
		<category><![CDATA[Armbian]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=751</guid>

					<description><![CDATA[1.Armbian下载 百度百科：Armbian是轻量级的Debian系统和为ARM开发板专门发行并重新编译的 [&#8230;]]]></description>
										<content:encoded><![CDATA[<h3>1.Armbian下载</h3>
<blockquote><p>百度百科：Armbian是轻量级的Debian系统和为ARM开发板专门发行并重新编译的Debian系统(Ubuntu派生自Debian)。</p>
<p>官网：<a href="https://www.alainlam.cn/armbian.com" target="_blank" rel="nofollow noopener">Armbian</a></p>
<p>2023年06月26更新:<br />
<a href="https://github.com/ophub/amlogic-s9xxx-armbian" target="_blank" rel="nofollow noopener">amlogic-s9xxx-armbian仓库</a></p></blockquote>
<h3>2.使用rufus等工具将Armbian镜像写入U盘并启动</h3>
<blockquote><p>使用U盘插入N1例子靠近HDMI接口的USB，默许用户名和密码</p>
<p>账号: root<br />
密码: 1234</p>
<p>输入后会提示更新密码</p></blockquote>
<h3>3.安装及升级 Armbian</h3>
<ul>
<li>安装 Armbian 到 EMMC</li>
</ul>
<pre class="code">armbian-install</pre>
<ul>
<li>更新 Armbian 内核</li>
</ul>
<pre class="code"># 使用 root 用户运行 (sudo -i)
# 如果不指定参数，将更新为最新版本。
armbian-update</pre>
<table>
<thead>
<tr>
<th>可选参数</th>
<th>默认值</th>
<th>选项</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>-m</td>
<td>no</td>
<td>yes/no</td>
<td>使用主线 u-boot</td>
</tr>
<tr>
<td>-a</td>
<td>yes</td>
<td>yes/no</td>
<td>使用 <a href="https://github.com/7Ji/ampart">ampart</a> 分区表调整工具</td>
</tr>
<tr>
<td>-l</td>
<td>no</td>
<td>yes/no</td>
<td>显示全部设备列表</td>
</tr>
</tbody>
</table>
<p>示例：</p>
<pre class="code">armbian-install -m yes -a no</pre>
<h3>4.安装常用软件</h3>
<pre class="code">armbian-software</pre>
<blockquote><p>使用 armbian-software -u 命令可以更新本地的软件中心列表。根据你所在的国家或地区，使用 armbian-apt 命令选择合适的软件源，提高软件的下载速度。例如，选择中国的清华大学源：</p>
<p>运行后如下图：</p></blockquote>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-757" src="https://public-123.oss-cn-guangzhou.aliyuncs.com/2024/10/20241016072339301.jpg?x-oss-process=image/auto-orient,1/quality,q_90/format,webp" alt="" width="1462" height="1146" /></p>
<h3>5.文章引用及详细帮助说明文档</h3>
<p>Github armbian 说明：https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/documents/README.cn.md</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/751/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>编译OpenWrt系统流程</title>
		<link>https://www.laoding.me/archives/635</link>
					<comments>https://www.laoding.me/archives/635#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Wed, 02 Oct 2024 06:03:34 +0000</pubDate>
				<category><![CDATA[办公网络]]></category>
		<category><![CDATA[数码硬件]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=635</guid>

					<description><![CDATA[1.安装编译依赖 sudo apt update -y sudo apt full-upgrade -y su [&#8230;]]]></description>
										<content:encoded><![CDATA[<h3>1.安装编译依赖</h3>
<pre><code class="language-c">sudo apt update -y</code></pre>
<pre><code>sudo apt full-upgrade -y</code></pre>
<pre><code class="language-c">sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools libpython3-dev qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev</code></pre>
<h3>2.下载源代码</h3>
<p>以下源码三选一下载，也可以使用其他团队的源码</p>
<table>
<thead>
<tr>
<th>列名</th>
<th>列名</th>
<th>列名</th>
</tr>
</thead>
<tbody>
<tr>
<td>git clone <a href="https://github.com/openwrt/openwrt">https://github.com/openwrt/openwrt</a></td>
<td>官方版本</td>
<td>内核新</td>
</tr>
<tr>
<td>git clone <a href="https://github.com/coolsnowwolf/lede">https://github.com/coolsnowwolf/lede</a> </td>
<td>lede版本</td>
<td>插件多</td>
</tr>
<tr>
<td>git clone -b 22.03 &#8211;single-branch <a href="https://github.com/Lienol/openwrt">https://github.com/Lienol/openwrt</a></td>
<td>lienol版本</td>
<td>小而快</td>
</tr>
</tbody>
</table>
<p>如需指定openwrt版本，可以使用以下命令</p>
<pre><code class="language-c">git tag</code></pre>
<p>查看稳定版，回车键拉到最低，按Q结束！</p>
<pre><code class="language-c">git checkout v22.03.3</code></pre>
<p>指定版本，红色部分位版本号</p>
<h3>3.切换到文件目录</h3>
<pre><code class="language-c">cd openwrt</code></pre>
<h3>4.添加插件或主题</h3>
<p>打开openwrt文件夹，找到feeds.conf.default文件打开，添加到最下面！</p>
<pre><code class="language-c">src-git amlogic https://github.com/ophub/luci-app-amlogic   #amlogicCPU必须添加
src-git alist https://github.com/sbwml/luci-app-alist       #Alist插件
src-git passwall_packages https://github.com/xiaorouji/openwrt-passwall.git;packages
src-git passwall_luci https://github.com/xiaorouji/openwrt-passwall.git;luci
src-git kenzo https://github.com/kenzok8/openwrt-packages
src-git argonnew https://github.com/jerrykuku/luci-theme-argon.git;main    #主题</code></pre>
<h3>5.更新源码</h3>
<pre><code class="language-c">./scripts/feeds update -a   #更新源码</code></pre>
<pre><code class="language-c">./scripts/feeds install -a  #拷贝源码</code></pre>
<h3>6.定制openwrt系统</h3>
<p>打开openwrt配置面板</p>
<pre><code class="language-c">make menuconfig</code></pre>
<p>————-————————————————————————————————————</p>
<ul>
<li>必须设置项目（CPU架构，镜像文件格式）</li>
</ul>
<pre><code>Target System  -&gt;  QEMU ARM Virtual Machine 
Subtarget -&gt;  QEMU ARMv8 Virtual Machine (cortex-a53)
Target Profile  -&gt;  Default
Target Images  -&gt;   tar.gz</code></pre>
<ul>
<li>必选软件包(基础依赖包，仅保证打出的包可以写入EMMC,可以在EMMC上在线升级，不包含具体的应用)：</li>
</ul>
<pre><code class="language-c">Languages -&gt; Perl
             -&gt;  perl-http-date
             -&gt;  perlbase-file
             -&gt;  perlbase-getopt
             -&gt;  perlbase-time
             -&gt;  perlbase-unicode
             -&gt;  perlbase-utf8
Utilities -&gt; Compression -&gt; bsdtar 或 p7zip(非官方源)、pigz
          -&gt; Disc -&gt; blkid、fdisk、lsblk、parted
          -&gt; Filesystem -&gt; attr 、btrfs-progs(Build with zstd support)、chattr、dosfstools、e2fsprogs、f2fs-tools、f2fsck、lsattr、mkf2fs、xfs-fsck、xfs-mkfs
          -&gt; Shells  -&gt;  bash         
          -&gt; gawk、getopt、losetup、tar、uuidgen</code></pre>
<ul>
<li>Wifi基础包，打出的包可支持博通SDIO无线模块,Firmware不用选，因为打包源码中已经包含了来自Armbian的firmware，会自动覆盖openwrt rootfs中已有的firmware</li>
</ul>
<pre><code class="language-c">Kernel modules -&gt; Wireless Drivers -&gt; kmod-brcmfmac(SDIO) 
                                   -&gt; kmod-brcmutil
                                   -&gt; kmod-cfg80211
                                   -&gt; kmod-mac80211
                -&gt; USB Support -&gt; kmod-usb-net-asix
                               -&gt; kmod-usb-net-asix-ax88179
                               -&gt; kmod-usb2
                               -&gt; kmod-usb3</code></pre>
<ul>
<li>红色为选填，如果你需要！USB3.0转千兆网卡（型号：亚信asix-ax88179）则必选！</li>
</ul>
<pre><code class="language-c">Network  -&gt;  WirelessAPD -&gt; hostapd-common
                         -&gt; wpa-cli
                         -&gt; wpad-basic
                         -&gt;  iw</code></pre>
<ul>
<li>插件和主题，语言设置选项，根据需求设置，为了减少编译失败的概率，除了必要的晶晨插件，其他都不要安装，主题也是。可以编译成功后单独编译插件在安装。</li>
</ul>
<pre><code class="language-c">LUCI -&gt; 2.Modules -&gt; Translations -&gt; Chinese simplified 简体中文 自选
          -&gt; 3.Applications  -&gt; luci-app-amlogic  #晶晨插件，必选
          -&gt; 4. Themes   #尽量不要安装，不然容易后台面板进不去！</code></pre>
<h3>7.如果需要重新配置</h3>
<p>方法：使用命令</p>
<pre><code class="language-c">rm -rf ./tmp &amp;&amp; rm -rf .config
make menuconfig
make V=s -j$(nproc)</code></pre>
<h5>1.下载 dl 库，编译固件 （-j 后面是线程数）</h5>
<pre><code class="language-c">make -j8 download V=s</code></pre>
<h5>2.下载dl库，V=s 显示任务详细情况</h5>
<pre><code class="language-c">make V=s -j4</code></pre>
<blockquote>
<p>4代表线程，根据个人实际情况调整</p>
</blockquote>
<h5>3.如果编译失败，可以执行以下命令：</h5>
<blockquote>
<p>“make clean”删除编译目录/bin和/build_dir目录中的文件</p>
<p>“make dirclean”除了删除编译目录之外还删除编译工具目录，删除/bin和/build_dir目录的中的文件(make clean)以及/staging_dir、/toolchain、/tmp和/logs中的文件，一般在更换CPU架构的情况下才操作。</p>
</blockquote>
<h5>4.下载编译压缩包</h5>
<p>编译完成后输出路径：home/用户名/openwrt/bin/targets</p>
<h3>8. 安装并开通SSH登录方法：</h3>
<h5>1，必须切换成为root用户</h5>
<pre><code>sudo -i</code></pre>
<h5>2，先更新软件列表和更新软件</h5>
<pre><code>sudo apt-get update</code></pre>
<h5>3，先更新软件列表和更新软件</h5>
<pre><code>sudo apt-get upgrade</code></pre>
<h5>4，安装ssh</h5>
<pre><code>apt-get install ssh</code></pre>
<h5>5，启动ssh服务</h5>
<pre><code>sudo /etc/init.d/ssh start</code></pre>
<h5>6，检查是否有ssh环境</h5>
<pre><code>ps -e | grep ssh</code></pre>
<h5>7.ubuntu开通root登录SSH权限</h5>
<p>使用普通用户登录后切换root</p>
<pre><code>sudo -i</code></pre>
<p>创建root管理员密码</p>
<pre><code>passwd root</code></pre>
<p>开启root登录</p>
<pre><code>sudo sed -i &#039;s/^#\?PermitRootLogin.*/PermitRootLogin yes/g&#039; /etc/ssh/sshd_config </code></pre>
<p>开启密码验证</p>
<pre><code>sudo sed -i &#039;s/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g&#039; /etc/ssh/sshd_config   </code></pre>
<p>重启ssh服务</p>
<pre><code>service sshd restart</code></pre>
<p>检查是否有ssh环境</p>
<pre><code>ps -e | grep ssh</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/635/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux 查看硬件配置命令</title>
		<link>https://www.laoding.me/archives/631</link>
					<comments>https://www.laoding.me/archives/631#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Wed, 02 Oct 2024 05:48:46 +0000</pubDate>
				<category><![CDATA[办公网络]]></category>
		<category><![CDATA[数码硬件]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=631</guid>

					<description><![CDATA[一、系统 1.查看内核/操作系统/CPU信息 uname -a 2.查看操作系统版本 head -n 1 /e [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>一、系统</h2>
<h4>1.查看内核/操作系统/CPU信息</h4>
<pre><code>uname -a</code></pre>
<h4>2.查看操作系统版本</h4>
<pre><code class="language-c">head -n 1 /etc/issue</code></pre>
<h4>3.查看CPU信息</h4>
<pre><code class="language-c">cat /proc/cpuinfo</code></pre>
<h4>4.查看计算机名</h4>
<pre><code class="language-c">hostname</code></pre>
<h4>5.列出所有PCI设备</h4>
<pre><code class="language-c">lspci -tv</code></pre>
<h4>6.列出所有USB设备</h4>
<pre><code class="language-c">lsusb -tv</code></pre>
<h4>7.列出加载的内核模块</h4>
<pre><code class="language-c">lsmod</code></pre>
<h4>8.查看环境变量</h4>
<pre><code class="language-c">env</code></pre>
<h2>二、资源</h2>
<h4>1.查看内存使用量和交换区使用量</h4>
<pre><code class="language-c">free -m</code></pre>
<pre><code class="language-c">cat /proc/meminfo</code></pre>
<h4>2.查看各分区使用情况</h4>
<pre><code class="language-c">df -h</code></pre>
<h4>3.查看指定目录的大小</h4>
<pre><code class="language-c">du -sh &lt;目录名&gt;</code></pre>
<h4>4.查看内存总量</h4>
<pre><code class="language-c">grep MemTotal /proc/meminfo</code></pre>
<h4>5.查看空闲内存量</h4>
<pre><code class="language-c">grep MemFree /proc/meminfo</code></pre>
<h4>6.查看系统运行时间、用户数、负载</h4>
<pre><code class="language-c">uptime</code></pre>
<h4>7.查看系统负载</h4>
<pre><code class="language-c">cat /proc/loadavg</code></pre>
<h2>三、磁盘和分区</h2>
<h4>1.查看挂接的分区状态</h4>
<pre><code class="language-c">mount | column -t</code></pre>
<h4>2.查看所有分区大小</h4>
<pre><code class="language-c">df -h</code></pre>
<pre><code class="language-c">fdisk -l</code></pre>
<h4>3.查看所有交换分区</h4>
<pre><code class="language-c">swapon -s</code></pre>
<h4>4.查看磁盘参数（仅适用于IDE设备）</h4>
<pre><code class="language-c">hdparm -i /dev/hda</code></pre>
<h4>5.查看启动时IDE设备检测状况</h4>
<pre><code class="language-c">dmesg | grep IDE</code></pre>
<h2>四、网络</h2>
<h4>1.查看所有网络接口的属性</h4>
<pre><code class="language-c">ifconfig</code></pre>
<h4>2.查看防火墙设置</h4>
<pre><code class="language-c">iptables -L</code></pre>
<h4>3.查看路由表</h4>
<pre><code class="language-c">route -n</code></pre>
<h4>4.查看所有监听端口</h4>
<pre><code class="language-c">netstat -lntp</code></pre>
<h4>5.查看所有已经建立的连接</h4>
<pre><code class="language-c">netstat -antp</code></pre>
<h4>6.查看网络统计信息</h4>
<pre><code class="language-c">netstat -s</code></pre>
<h2>五、进程</h2>
<h4>1.查看所有进程</h4>
<pre><code class="language-c">ps -ef</code></pre>
<h4>2.实时显示进程状态</h4>
<pre><code class="language-c">top</code></pre>
<p>六、用户</p>
<h4>1.查看活动用户</h4>
<pre><code class="language-c">w</code></pre>
<h4>2.查看指定用户信息</h4>
<pre><code class="language-c">id &lt;用户名&gt;</code></pre>
<h4>3.查看用户登录日志</h4>
<pre><code class="language-c">last</code></pre>
<h4>4.查看系统所有用户</h4>
<pre><code class="language-c">cut -d: -f1 /etc/passwd</code></pre>
<h4>5.查看系统所有组</h4>
<pre><code class="language-c">cut -d: -f1 /etc/group</code></pre>
<h4>6.查看当前用户的计划任务</h4>
<pre><code class="language-c">crontab -l</code></pre>
<h2>六、服务</h2>
<h4>1.列出所有系统服务</h4>
<pre><code class="language-c">chkconfig --list</code></pre>
<h4>2.列出所有启动的系统服务</h4>
<pre><code class="language-c">chkconfig --list | grep on</code></pre>
<h2>七、程序</h2>
<h4>1.查看所有安装的软件包</h4>
<h4>rpm -qa</h4>
<p>八、其他常用命令整理如下：</p>
<h4>1.查看主板的序列号：</h4>
<pre><code class="language-c">dmidecode | grep -i &#039;serial number&#039;</code></pre>
<p>用硬件检测程序kuduz探测新硬件：service kudzu start （ or restart）  </p>
<p>查看CPU信息：cat /proc/cpuinfo [dmesg | grep -i &#8216;cpu&#8217;][dmidecode -t processor]  </p>
<p>查看内存信息：cat /proc/meminfo [free -m][vmstat]  </p>
<p>查看板卡信息：cat /proc/pci  </p>
<p>查看显卡/声卡信息：lspci |grep -i &#8216;VGA'[dmesg | grep -i &#8216;VGA&#8217;]  </p>
<p>查看网卡信息：dmesg | grep -i &#8216;eth'[cat /etc/sysconfig/hwconf | grep -i eth][lspci | grep -i &#8216;eth&#8217;]  </p>
<p>查看PCI信息：lspci （相比cat /proc/pci更直观）  </p>
<p>查看USB设备：cat /proc/bus/usb/devices  </p>
<p>查看键盘和鼠标：cat /proc/bus/input/devices  </p>
<p>查看系统硬盘信息和使用情况：fdisk &amp; disk – l &amp; df  </p>
<p>查看各设备的中断请求（IRQ）：cat /proc/interrupts  </p>
<p>查看系统体系结构：uname -a  </p>
<p>查看及启动系统的32位或64位内核模式：isalist –v [isainfo –v][isainfo –b]  </p>
<p>查看硬件信息，包括bios、cpu、内存等信息：dmidecode  </p>
<p>测定当前的显示器刷新频率：/usr/sbin/ffbconfig –rev \?  </p>
<p>查看系统配置：/usr/platform/sun4u/sbin/prtdiag –v  </p>
<p>查看当前系统中已经应用的补丁：showrev –p  </p>
<p>显示当前的运行级别：who –rH  </p>
<p>查看当前的bind版本信息：nslookup –class=chaos –q=txt version.bind  </p>
<p>查看硬件信息：dmesg | more  </p>
<p>显示外设信息， 如usb，网卡等信息：lspci  </p>
<p>查看已加载的驱动：</p>
<blockquote>
<p>lsnod<br />
lshw</p>
</blockquote>
<p>查看当前处理器的类型和速度（主频）：psrinfo -v  </p>
<p>打印当前的OBP版本号：prtconf -v  </p>
<p>查看硬盘物理信息（vendor， RPM， Capacity）：iostat –E  </p>
<p>查看磁盘的几何参数和分区信息：prtvtoc /dev/rdsk/c0t0d0s   </p>
<p>显示已经使用和未使用的i-node数目：</p>
<blockquote>
<p>df –F ufs –o i <br />
isalist –v</p>
</blockquote>
<p>对于“/proc”中文件可使用文件查看命令浏览其内容，文件中包含系统特定信息：</p>
<blockquote>
<p>主机CPU信息：Cpuinfo <br />
主机DMA通道信息：Dma <br />
文件系统信息：Filesystems <br />
主机中断信息：Interrupts <br />
主机I/O端口号信息：Ioprots <br />
主机内存信息：Meninfo <br />
Linux内存版本信息：Version</p>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/631/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Alpine Linux 移植到luckfox开发板</title>
		<link>https://www.laoding.me/archives/221</link>
					<comments>https://www.laoding.me/archives/221#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Sat, 28 Sep 2024 09:46:22 +0000</pubDate>
				<category><![CDATA[数码硬件]]></category>
		<guid isPermaLink="false">https://laoding.me/?p=221</guid>

					<description><![CDATA[1.拉取并安装镜像 docker pull arm32v7/alpine docker run -it --n [&#8230;]]]></description>
										<content:encoded><![CDATA[<h3>1.拉取并安装镜像</h3>
<pre><code class="language-c">docker pull arm32v7/alpine</code></pre>
<pre><code class="language-c">docker run -it --name armv7alpine --net=host -v /tmp/my-rootfs:/my-rootfs arm32v7/alpine</code></pre>
<pre><code class="language-c">docker run --rm --privileged multiarch/qemu-user-static --reset --persistent yes</code></pre>
<h3>2.镜像操作</h3>
<pre><code class="language-c">docker restart armv7alpine</code></pre>
<pre><code class="language-c">docker rm armv7alpine</code></pre>
<pre><code class="language-c">docker exec -it armv7alpine /bin/sh</code></pre>
<h3>3.环境配置及应用安装</h3>
<h5>3.1安装基础服务</h5>
<pre><code class="language-c">apk add openrc</code></pre>
<pre><code class="language-c">rc-update add devfs boot</code></pre>
<pre><code class="language-c">rc-update add procfs boot</code></pre>
<pre><code class="language-c">rc-update add sysfs boot</code></pre>
<pre><code class="language-c">apk add openntpd</code></pre>
<h5>3.2修改网络</h5>
<pre><code class="language-c">nano /etc/network/interfaces</code></pre>
<pre><code class="language-c"># /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet static
address 192.168.123.59
netmask 255.255.255.0
gateway 192.168.123.1</code></pre>
<p>自动获取IP地址的网口配置</p>
<pre><code>auto eth0
iface eth0 inet dhcp</code></pre>
<h5>3.3修改DNS</h5>
<pre><code class="language-c">nano /etc/resolv.conf</code></pre>
<p>添加解析服务器</p>
<pre><code class="language-c">nameserver 8.8.8.8
nameserver 8.8.4.4</code></pre>
<p>重启网络服务</p>
<pre><code class="language-c">/etc/init.d/networking restart</code></pre>
<pre><code class="language-c">rc-update add networking default</code></pre>
<h5>3.4安装SSH服务</h5>
<pre><code class="language-c">apk add openssh</code></pre>
<pre><code class="language-c">rc-update add sshd default</code></pre>
<pre><code class="language-c">nano /etc/ssh/sshd_config</code></pre>
<pre><code class="language-c"># Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes</code></pre>
<h5>3.5自动校时</h5>
<pre><code>nano /etc/ntp.conf  #新建校时服务器配置文件</code></pre>
<p>代码如下</p>
<pre><code>erver ntp.aliyun.com iburst
server ntp0.aliyun.com iburst
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst</code></pre>
<p>将自动校时添加到自启脚本</p>
<pre><code>ntpd -d -q</code></pre>
<h5>3.6时间自动同步</h5>
<pre><code class="language-c">apk add chrony
mkdir -p /var/run/chrony
chmod 0755 /var/run/chrony
/etc/init.d/chronyd start</code></pre>
<h3>4.目录文件操作</h3>
<pre><code class="language-c">rm -r /tmp/my-rootfs/*</code></pre>
<pre><code class="language-c">rm -r /home/ding/luckfox-pico/output/out/rootfs_uclibc_rv1106/</code></pre>
<pre><code class="language-c">rm -r /home/ding/luckfox-pico/sysdrv/custom_rootfs/*</code></pre>
<pre><code class="language-c">rm -r /home/ding/luckfox-pico/output/image/*</code></pre>
<ul>
<li>打包rootfs</li>
</ul>
<pre><code class="language-c">for d in bin etc lib root sbin usr; do tar c &quot;$d&quot; | tar x -C /my-rootfs; done</code></pre>
<pre><code class="language-c">for dir in dev proc run sys var; do mkdir /my-rootfs/${dir}; done</code></pre>
<pre><code class="language-c">cd /my-rootfs/ &amp;&amp; tar czf alpine.tar.gz *</code></pre>
<h3>5.生成镜像</h3>
<ul>
<li>退出容器</li>
</ul>
<pre><code class="language-c">exit</code></pre>
<pre><code class="language-c">cp /tmp/my-rootfs/alpine.tar.gz /home/ding/luckfox-pico/sysdrv/custom_rootfs/</code></pre>
<pre><code class="language-c">/home/ding/luckfox-pico/project//build.sh</code></pre>
<h3>6.其他</h3>
<p>安装内核</p>
<pre><code class="language-c">apk add linux-lts</code></pre>
<pre><code class="language-c">cp /lib/modules/6.6.28-0-lts/kernel/drivers/net/tun.ko my-rootfs</code></pre>
<pre><code class="language-c">cp /tmp/my-rootfs/alpine.tar.gz /home/ding/luckfox-pico/sysdrv/custom_rootfs/</code></pre>
<pre><code class="language-c">./build.sh lunch</code></pre>
<pre><code class="language-c">./build.sh</code></pre>
<p>镜像源</p>
<pre><code>https://dl-cdn.alpinelinux.org/alpine/v3.17/main
https://dl-cdn.alpinelinux.org/alpine/v3.17/community
#/media/cdrom/apks
http://mirrors.sjtug.sjtu.edu.cn/alpine/v3.14/main
http://mirrors.sjtug.sjtu.edu.cn/alpine/v3.14/community
http://mirrors.sjtug.sjtu.edu.cn/alpine/edge/main
http://mirrors.sjtug.sjtu.edu.cn/alpine/edge/community
http://mirrors.sjtug.sjtu.edu.cn/alpine/edge/testing</code></pre>
<p>相关命令</p>
<pre><code class="language-c">rc-status   #查看运行中的系统服务</code></pre>
<pre><code class="language-c">rc-status -a    #查看所有系统服务</code></pre>
<pre><code class="language-c">apk info -L frp-openrc  #查看应用安装相关目录</code></pre>
<pre><code class="language-c">rc-service -list    #查看自启动服务列表</code></pre>
<pre><code class="language-c">lsof /etc/init.d/Npc    #查看启动中的服务进程</code></pre>
<p>定时启动程序<code>crontab</code></p>
<pre><code>crontab -l  #查看当前用户的定时任务
crontab -e  #编辑当前用户的定时任务
crontab -r  #删除当前用户的定时任务
crontab -l &gt; mycronjob.txt   #将定时任务输出到文件
crontab mycronjob.txt   #从文件中导入定时任务
0 1 * * * /path/to/your/script.sh
0 1 * * * /path/to/your/script.sh   #添加每天的凌晨 1 点运行一个脚本</code></pre>
<p>安装校时应用</p>
<pre><code class="language-c">apk add tzdata</code></pre>
<pre><code class="language-c">cp /usr/share/zoneinfo/Asia/Bangkok /etc/localtime</code></pre>
<pre><code class="language-c">echo &quot;Asia/Bangkok&quot; &gt; /etc/timezon</code></pre>
<pre><code class="language-c">apk del tzdata</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/221/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Orange Pi Zero3打造成云终端/瘦客户机</title>
		<link>https://www.laoding.me/archives/108</link>
					<comments>https://www.laoding.me/archives/108#comments</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Fri, 27 Sep 2024 07:56:56 +0000</pubDate>
				<category><![CDATA[数码硬件]]></category>
		<guid isPermaLink="false">https://laoding.me/?p=108</guid>

					<description><![CDATA[一. 安装 X Server 和轻量级窗口管理器 1.更新系统 sudo apt update sudo ap [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>一. 安装 X Server 和轻量级窗口管理器</h2>
<h4>1.更新系统</h4>
<pre><code>sudo apt update
sudo apt upgrade</code></pre>
<h4>2.安装 X Server</h4>
<pre><code>sudo apt install xorg</code></pre>
<h4>3. 安装轻量级窗口管理器</h4>
<ul>
<li>Openbox: 适合需要极致轻量化和高度定制的用户，但需要自己配置额外的桌面组件。
<pre><code>sudo apt install openbox</code></pre>
</li>
<li>i3: 适合喜欢平铺布局和键盘操作的用户，资源占用低且高度自定义，但有学习曲线。
<pre><code>sudo apt install i3</code></pre>
</li>
<li>LXQt: 提供一个完整的轻量级桌面环境，用户友好，功能全面，适合需要轻量级桌面体验的用户。
<pre><code>sudo apt install lxqt</code></pre>
</li>
</ul>
<h2>二. 安装远程桌面连接软件</h2>
<h4>1.安装 xfreerdp</h4>
<pre><code>sudo apt install freerdp2-x11</code></pre>
<h4>2.安装 Remmina</h4>
<pre><code>sudo apt install remmina remmina-plugin-rdp remmina-plugin-vnc</code></pre>
<h2>三.其他安装</h2>
<pre><code>sudo apt install arc-theme papirus-icon-theme</code></pre>
<p><code>安装图标</code></p>
<pre><code>sudo apt install fonts-wqy-zenhei fonts-wqy-microhei</code></pre>
<p><code>安装中文语言</code></p>
<h2>四.安装桌面默认启动</h2>
<pre><code>sudo apt install lightdm</code></pre>
<pre><code>sudo nano /etc/lightdm/lightdm.conf.d/50-lxqt.conf</code></pre>
<pre><code>[Seat:*]
user-session=lxqt
autologin-user=orangepi
autologin-user-timeout=0</code></pre>
<pre><code>sudo chmod 644 /etc/lightdm/lightdm.conf.d/50-lxqt.conf</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/108/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>安卓设备上怎么用终端命令挂载U盘</title>
		<link>https://www.laoding.me/archives/8</link>
					<comments>https://www.laoding.me/archives/8#comments</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Thu, 26 Sep 2024 10:46:08 +0000</pubDate>
				<category><![CDATA[数码硬件]]></category>
		<guid isPermaLink="false">http://www.laoding.me/?p=8</guid>

					<description><![CDATA[mkdir /mnt/usb file -s /dev/block/sda1 1.查看U盘在设备中的名称 ls [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">1.查看U盘在设备中的名称</h2>
<pre><code>ls /dev/block</code></pre>

<h2 class="wp-block-heading">2.使用 <code>blkid</code> 命令查看文件系统类型</h2>



<pre><code>blkid /dev/block/sda1</code></pre>



<p>输出将包含类似以下的信息：</p>



<pre><code>/dev/block/sda1: UUID="1234-5678" TYPE="vfat"</code></pre>



<h2 class="wp-block-heading">3.<strong>创建挂载点</strong>并挂载U盘</h2>



<pre><code>mkdir /mnt/usb
file -s /dev/block/sda1</code></pre><!-- /wp:heading --><!-- wp:post-content --><!-- wp:heading -->
<h2 class="wp-block-heading">1.查看U盘在设备中的名称</h2>
<pre><code>ls /dev/block</code></pre>
<!-- wp:heading -->
<h2 class="wp-block-heading">2.使用 <code>blkid</code> 命令查看文件系统类型</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<pre><code>blkid /dev/block/sda1</code></pre>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>输出将包含类似以下的信息：</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<pre><code>/dev/block/sda1: UUID="1234-5678" TYPE="vfat"</code></pre>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 class="wp-block-heading">3.<strong>创建挂载点</strong>并挂载U盘</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<pre><code>mkdir /mnt/usb
file -s /dev/block/sda1</code></pre><!-- /wp:post-content -->]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/8/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
