
linux
Hasson Wong
这个作者很懒,什么都没留下…
展开
-
boot repair
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update sudo apt-get install -y boot-repair && boot-repair选择recommended repair原创 2019-12-23 23:23:40 · 356 阅读 · 0 评论 -
linux shell命令小结
readonly将变量定义为只读,其值不能被改变,无法用unset删除单引号单引号里的人格字符都会原样输出,单引号字符串中的变量是无效的,单引号字符串中不能出现单独一个单引号(对打印好使用转义字符后也不行),但可以成对出现,作为字符串拼接使用。双引号双引号里可以有变量,双引号里可以出现转义字符参数传递$n n代表一个数字,其中0为执行的文件名,1为第一个参数,其他处理参数:$#...原创 2019-06-03 17:38:08 · 308 阅读 · 0 评论 -
构建debian for ARM
构建debian for ARM本文介绍在装有ubuntu 16.04的PC机上构建ARM平台的debian根文件系统linux主机版本:$ uname -aLinux mypc 4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux安装 q...原创 2019-05-30 17:02:37 · 4940 阅读 · 5 评论 -
Linux释放文件缓存
Linux释放文件缓存的命令:syncecho 1 > /proc/sys/vm/drop_cachesdrop_caches的值可以是0-3之间的数字,代表不同的含义:0:不释放(系统默认值)1:释放页缓存2:释放dentries和inodes3:释放所有缓存定时清理缓存脚本vim /root/clean_cache.sh#! /bin/bash#v1.0sync...原创 2019-05-30 10:47:24 · 1369 阅读 · 0 评论 -
arm linux设置开机自动登录
在menuconfig中使能允许root用密码登录terminal,然后在/etc/inittab文件下做如下更改# Put a getty on the serial port#console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIALconsole::respawn:-/bin/sh...原创 2019-05-07 20:17:30 · 2305 阅读 · 0 评论 -
linux使用轻量级日志库EasyLogger-生成动态链接库
首先下载EasyLogger源码到本地git clone https://github.com/armink/EasyLogger.git将demo/linux/easylogger 下移植好的文件替换工程根目录easylogger下的相同文件,对应docs/zh/文件夹下有详细的配置说明,在此不赘述,配置完成后编写makefile:CROSS_COMPILE = arm-linux...原创 2019-03-01 14:37:28 · 3244 阅读 · 1 评论 -
autoconf和automake的使用
hasson@PC:~/Desktop/demo$ lsmain.chasson@PC:~/Desktop/demo$ cat main.c#include <stdio.h>int main(int argc, char** argv){ printf("Hello World!\n"); return 0;}hasson@PC:~/Deskt...原创 2018-12-26 15:30:20 · 315 阅读 · 0 评论 -
linux修改用户名和用户切换
首先切换到root用户,然后执行以下操作:修改用户名:usermod -l new_username old_username修改用户家目录:usermod -l new_name old_name修改用户UIDusermod -u id_num new_name(id_num :取值在1~65534,系统管理员uid为0,预设500以下给系统作为保留帐号)修改组名...原创 2018-10-31 15:17:46 · 3633 阅读 · 0 评论 -
树莓派3B安装配置vsftp
安装软件包:apt-get install vsftpd启动服务:service vsftpd start创建ftp根目录,创建myftp用户并配置所属组:mkdir /home/myftpsudo useradd -d /home/myftp -s /bin/bash myftpsudo chown myftp:myftp /home/myftp创建允许访问用户列...原创 2018-10-23 21:02:47 · 1024 阅读 · 0 评论 -
树莓派 ubuntu mate 开机启动ssh及开启远程界面登陆
安装xrdp(用于远程界面登陆,使用windows自带远程桌面)sudo apt-get install xrdp设置ssh为系统服务sudo systemctl enable sshsudo systemctl ssh start重启树莓派即可远程ssh或者远程桌面连接...原创 2018-10-12 20:30:01 · 4940 阅读 · 0 评论 -
linux下设置wifi开机连接上网
1、编辑/etc/wpa_supplicant.conf将可加入的wifi信息写入文件network={ssid="ssid1"psk="password1"proto=RSNkey_mgmt=WPA-PSKpairwise=CCMP TKIPgroup=CCMP TKIPpriority=1}network={ssid="ssid2"psk="password2"proto=RSNkey_mgm...原创 2018-06-04 16:16:44 · 3652 阅读 · 0 评论 -
ssh连接“ssh algorithm negotiation failed”解决办法
在/etc/ssh/sshd.config文件中追加Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbcMACs hmac-md5,hmac-sha1,umac-64@opens...原创 2018-05-27 15:02:05 · 12526 阅读 · 0 评论 -
ubuntu安装baidu-aip-1.6.6.0出错
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tkpip3 install pillowpip3 install baidu-aip-1.6.6.0原创 2018-05-17 17:31:56 · 993 阅读 · 0 评论