最新日志

2020-6-10 aflfte2011

grub修复启动方法

很多时候,特别是在linux调整分区后,开机重启时会出现
        error : unknow filesystem
        grub rescue>
        的字样,系统就是进不去。这表示你的grub2的配置文件坏了……
        由于分区调整或分区UUID改变造成grub2不能正常启动,从而进入修复模式

2020-6-9 aflfte2011

github下载速度慢解决方法

vi /etc/hosts
140.82.114.3 github.com

2020-6-4 aflfte2011

Hallo word

#include <iostream>
using namespace std;
#define day 7
/*
定义宏常量方法
#define 宏常量名  常量值 //通常在文件上方定义,表示一个常量;

const修饰的变量 const 数据类型  变量名 = 常量值;//通常在变量定义前使用const修饰该变量为常量  不可修改
*/

int main()

类别:C++ | 评论(0) | 浏览(832) |
2020-6-4 aflfte2011

raspbian ros安装

ROS各个版本的源码安装方式基本大致相同,
参考网址:
http://wiki.ros.org/Installation/Source
ROS不建议Debian系统通过源码安装,也没有一键安装的方法,http://wiki.ros.org/Installation/Debian

设置repositories 储存库
以下的可能不需要

Debian 的 contrib 和 non-free deb 的储存库
Debian Sou

2020-6-4 aflfte2011

debian 允许root用户登录

1.允许以root用户登录操作系统
默认情况下debian是不允许以root用户登录的,只能以其他用户登录系统中,然后su到root用户下进行操作。

1.1修改/etc/gdm3/daemon.conf文件
新增下面一行AllowRoot = true

[security]
AllowRoot = true

1.2修改/etc/pam.d/gdm-password

注释掉下面内容

2020-6-2 aflfte2011

debian ros安装

先决条件
安装引导程序依赖项
安装引导程序依赖项(Ubuntu):

这些工具用于简化ROS软件包及其依赖项的下载和管理。

Ubuntu或Debian:

$ sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential

如果您在上面的命令中安装软件包时遇

2020-4-30 aflfte2011

dedecms时间标签使用方法

时间格式
{dede:field name='pubdate' function='strftime("%Y年%m月%d日 %H:%M:%S","@me")' /}2007年1月1日 18:30:02
{dede:field name='pubdate' function='strftime("%Y-%m-%d %H:%M:%S","@me")' /}2007-1-1 18:30:02
{dede:field name='pubdate' function='strftime("%Y年%m月%d日 %H时%M分%

2020-3-30 aflfte2011

w4-820 deepin系统

开机黑屏问题:
开机在grub菜单按e进入编辑模式,在quiet splash后面加上空格nomodeset=0即可;
无wifi问题:
cp /sys/firmware/efi/efivars/nvram-* /lib/firmware/brcm/brcmfmac43241b4-sdio.txt
reboot
modprobe -r brcmfmac
modprobe brcmfmac

2020-3-20 aflfte2011

Android控件显示和隐藏

Android控件都有visibility属性,该属性有三个可能值:visible、invisible、gone。可以通过预设或是Java程序控制这些控件的显示或隐藏。

 

一、在XML配置文件设置

可见:android:visibility="visible"

不可见:android:visibility="invisible"

隐藏:android:visibility="gone"

2020-2-21 aflfte2011

debian配置samba实现文件共享服务

安装samba服务

apt-get install samba samba-common-bin

新建共享文件夹

mkdir /home/share #新建share文件夹

chmod 777 share #修改文件夹权限

修改samba配置,添加共享文件夹

vi /etc/samba/smb.conf

在配置文件最后加入新的共享文件夹配置:

1 2 3 4 5 6 7 8 9 ... »