linux
文章平均质量分 52
vivian_wanjin
这个作者很懒,什么都没留下…
展开
-
uuid
虚拟机的话MAC地址是不一样的,规范定义了包括网卡MAC地址、时间戳、名字空间(Namespace)、随机或伪随机数、时序等元素。UUID具有以下涵义:经由一定的算法机器生成为了保证UUID的唯一性,规范定义了包括网卡MAC地址、时间戳、名字空间(Namespace)、随机或伪随机数、时序等元素,以及从这些元素生成UUID的算法。UUID的复杂特性在保证了其唯一性的同时,意味着只能由计算机...原创 2019-11-22 14:34:40 · 285 阅读 · 0 评论 -
ubuntu user
useradd somenamepasswd somenameuserdel -r wwwwhousermod -aG sudo somename原创 2019-11-20 14:19:02 · 141 阅读 · 0 评论 -
ssh报错
inux: SSH报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 解决方案, Remove key from known_hosts, Fix Offending key in ~/.ssh/known_hosts fileLinux: SSH报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGE...转载 2018-12-14 23:57:50 · 442 阅读 · 0 评论 -
ssh 免密登录
0x 前言这里本地以kali 服务器为centos进行说明0x1 在kali本地主机生成一对密钥ssh-keygen -t rsa #(一直按Enter键即可)这样默认生成一对名id_rsa的密钥对10x2 检查密钥对是否生成成功cd ~/.ssh #进入.ssh目录root@ChengKaoAo:~/.ssh# lsauthorized_keys id_rsa id_rsa....转载 2018-12-15 00:42:47 · 123 阅读 · 0 评论 -
关闭ubunu 屏幕截图快捷键
problemEither disable system sound effects or, I am assuming you want to disable only the screen shot sound, move or rename /usr/share/sounds/freedesktop/stereo/camera-shutter.ogaslovesudo mv /usr/...原创 2018-12-15 14:10:56 · 255 阅读 · 0 评论 -
install octave
sudo add-apt-repository ppa:octave/stablesudo apt-get update sudo apt-get install octave原创 2018-07-09 21:53:49 · 583 阅读 · 0 评论 -
change root file to all user
problem ➜ 04_pusu chmod +w EXTRAS chmod: changing permissions of 'EXTRAS': Operation not permitted➜ 04_pusu ls -ladrwxr-xr-x 2 root root 4096 12月 18 18:21 EXTRASsolve(data_handle) ➜ 04_p...原创 2018-12-19 00:03:40 · 207 阅读 · 0 评论 -
Mount error: “unknown filesystem type 'exfat'”
When trying to mount an exfat filesystem, I get the following error:Error mounting /dev/sda6 at /media/gkp/Backup: Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda6" "/medi...原创 2018-12-29 20:11:55 · 4217 阅读 · 0 评论 -
sublime 中文配置
compgen -c |grep subl最近闲来无事,开始学习 Python,选择用 Sublime Text 3 作为开发的 IDE。然而发现安装完毕 Sublime Text 3 之后,不能在其中输入中文,查询了《Ubuntu 16.04下Sublime Text 3 的安装和中文配置》,感觉其中有些内容说明不明确。笔者趁着正在 pip 安装 Python 模块的时间,在该教程基础上进一步...原创 2018-12-30 00:13:48 · 560 阅读 · 0 评论 -
ls: cannot access 'path/the/file': Permission denied
chmod 0700 path/the/file原创 2018-11-14 15:47:05 · 4773 阅读 · 0 评论 -
chkconfig
安装 2.1 安装 sysv-rc-conf # apt-get install sysv-rc-conf2.2 链接 chkconfig # cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig原创 2018-11-15 23:56:55 · 124 阅读 · 0 评论 -
virbr0
virsh net-list // 列出所有端口virsh net-list -all[root@5201351 ~]# virsh net-destroy default //重启libvirtd服务后会恢复[root@5201351 ~]# virsh net-undefine default //彻底删除,重启系统后也不会恢复恢复virbr0的方法恢复的方法,我们需要从另...原创 2018-11-15 23:55:39 · 1821 阅读 · 0 评论 -
virbr0
problem➜ ~ virsh 'net-list'error: failed to connect to the hypervisorerror: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directoryJust ran into the same issue on...原创 2018-11-15 20:58:09 · 870 阅读 · 0 评论 -
ubuntu install ipython
update-alternatives --install /usr/bin/python python /usr/bin/python3 10update-alternatives --install /usr/bin/python python /usr/bin/python3 10(This gives a priority of 10 for the path of python3....原创 2018-11-06 07:06:46 · 256 阅读 · 0 评论 -
wiznote can't networking
升级到18.04后为知笔记无法更新,已知报错Failed to exec json request, network error=99, message=,1查找资料后是openssl库的问题导致其联网同步时安全验证失败,官网上提供了一个需要重新安装的库的列表sudo apt install openssl1.0 libssl1.0-dev但是实际安装的时候并不顺利,安装中报了依赖冲突错误...转载 2018-11-11 17:36:26 · 208 阅读 · 0 评论 -
ubuntu中python版本问题
install pip3在python3环境下安装包,输入:pip3 install matplotlib(注:系统可能提示你在这之前需要安装pip3:The program ‘pip3’ is currently not installed. You can install it by typing: >sudo apt install python3-pip)安装完成后依次输入...转载 2018-11-11 16:10:52 · 216 阅读 · 0 评论 -
shutter
install shuttersudo apt-get install shutter[Quick Fix] The “Edit” Option Disabled in Shutter in Ubuntu 18.04After installed my favorite screenshot tool Shutter in Ubuntu 18.04, I found that the Edi...原创 2018-11-11 00:14:04 · 277 阅读 · 0 评论 -
tweak
12118Which cipher you’d select(Default: aes-256-gcm):原创 2018-11-11 00:07:57 · 131 阅读 · 0 评论 -
screenshot
sudo apt install flameshotexecute: /usr/bin/flameshotscreenshot: double click原创 2018-11-04 21:40:35 · 242 阅读 · 0 评论 -
network command
ip addr flush def enp1s0 # flush enp1s0sudo dhclient # again get iparp -a #manipulate the system ARP cachenetstat -a #Print network connections, routing tables, interface sta...原创 2019-01-06 17:26:52 · 291 阅读 · 0 评论 -
sublime安装
下载地址下载地址 : http://www.sublimetext.com/ (官网)注册点击 help -> enter Licence ,然后输入如下信息:Alexey PlutalovSingle User LicenseEA7E-8607763DC19CC1 134CDF23 504DC871 2DE5CE55585DC8A6 253BB0D9 637C87A2 D8...原创 2019-01-03 13:45:02 · 349 阅读 · 0 评论 -
navicat
Install Navicat for MySQL on Mac OSXApp name: Navicat for MySQLApp description: navicat-for-mysql (App: Navicat for MySQL.app)App website: http://www.navicat.com/products/navicat-for-mysqlInstall ...原创 2019-10-11 19:25:22 · 3515 阅读 · 0 评论 -
centos install fonts
download .ttf into /usr/share/fonts/chinesefc-cache /usr/share/fonts/chinese/原创 2019-09-20 14:37:45 · 205 阅读 · 0 评论 -
centos安装使用puppeteer和headless chrome
...node_modules/puppeteer/.local-chromium/linux-496140/chrome-linux/chrome: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory./c...原创 2019-09-10 19:57:22 · 559 阅读 · 0 评论 -
zsh
chsh -s /bin/bashsh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"# set item2/perferance/profile/general/command/ /user/local/bin/zsh# 或者chsh -s /bin/zs...原创 2019-09-09 14:33:54 · 316 阅读 · 0 评论 -
ssh 不断开
sshConfigure your system, system-wide, for all connections By editing: /etc/ssh/ssh_config And add the line:ServerAliveInterval 10Or, per-server ~/.ssh/configHost keepsdroppingme.com ServerAli...原创 2019-09-06 17:56:11 · 218 阅读 · 0 评论 -
Can't format Ubuntu installation stick
I got this fixed by doing the followingOn your unity dash, type gnome-disks and launch the Disks applicationSelect the disk or drive you want to formatPress CTRL+FClick format.After formatting,...原创 2019-05-21 19:34:48 · 139 阅读 · 0 评论 -
Can't format Ubuntu installation stick
I got this fixed by doing the followingOn your unity dash, type gnome-disks and launch the Disks applicationSelect the disk or drive you want to formatPress CTRL+FClick format.After formatting,...原创 2019-05-21 19:34:47 · 192 阅读 · 0 评论 -
sougo input shortcuts
ctrl + space --> open sougou configwin + space --> switch with english and chinese原创 2019-05-16 10:18:13 · 200 阅读 · 0 评论 -
system start error
dmesg cd /var/logcat boot.logcat dpkg.logcat kern.logcat syslog原创 2019-05-19 14:01:21 · 542 阅读 · 0 评论 -
ubuntu mount many disk
If you need to make a partition auto mounted in Ubuntu.Run: sudo blkidYou will see UUIDs of your partitions, the next is just an example:/dev/sda1: LABEL="Recovery" UUID="B23613F43613B875" TYPE="n...原创 2019-05-06 20:12:45 · 142 阅读 · 0 评论 -
nouveau to nvidia dirver
sudo -i如何有效的禁用Ubuntu的nouveau驱动?1.添加conf 文件:cat /etc/modprobe.d/blacklist-nouveau.confblacklist nouveauoptions nouveau modeset=02. 重新生成 kernel initramfs:sudo update-initramfs -u3. 重启:sudo reboot...原创 2019-05-14 09:52:59 · 224 阅读 · 0 评论 -
ubuntu network driver
➜ ~ lshw -C networkWARNING: you should run this program as super-user.*-networkdescription: Ethernet interfaceproduct: 82579V Gigabit Network Connectionvendor: Intel Corporationphysical id: 19...原创 2019-04-30 19:44:58 · 813 阅读 · 0 评论 -
system-config-network
system-config-networkYou can also edit the following files and ‘service network restart’./etc/sysconfig/network/etc/sysconfig/network-scripts/ifcfg-eth0/etc/resolv.confsystem-config-network is a...原创 2019-04-19 19:53:41 · 1123 阅读 · 0 评论 -
ubuntu mysql
ubuntu配置mysql密码系统环境:Linux ubuntu 3.5.0-27-generic #46-Ubuntu SMP Mon Mar 25 20:00:05 UTC 2013 i686 i686 i686 GNU/Linuxmysql Ver 14.14 Distrib 5.5.29, for debian-linux-gnu (i686) using readline 6.2...转载 2019-04-13 18:33:36 · 184 阅读 · 0 评论 -
convert xlsx to csv
$ ssconvert Book1.xlsx newfile.csvUsing exporter Gnumeric_stf:stf_csv$ cat newfile.csv Foo,Bar,Baz1,2,3123.6,7.89,2012/05/14,,The,last,LineTo install on Ubuntu:apt-get install gnumericTo i...原创 2019-04-20 17:27:33 · 469 阅读 · 0 评论 -
I/O多路复用
select,poll,epoll都是IO多路复用的机制。I/O多路复用就通过一种机制,可以监视多个描述符,一旦某个描述符就绪(一般是读就绪或者写就绪),能够通知程序进行相应的读写操作。但select,poll,epoll本质上都是同步I/O,因为他们都需要在读写事件就绪后自己负责进行读写,也就是说这个读写过程是阻塞的,而异步I/O则无需自己负责进行读写,异步I/O的实现会负责把数据从内核拷贝...原创 2019-02-22 00:00:56 · 447 阅读 · 0 评论 -
aria2c
Aria2 配置说明完整选项说明请参考 Aria2 Manual参数 --dir --input-file --save-session 根据实际情况修改路径配置示例, 可根据需要修改各项参数## '#'开头为注释内容, 选项都有相应的注释说明, 根据需要修改 #### 被注释的选项填写的是默认值, 建议在需要修改时再取消注释 #### 文件保存相关 ### 文件的...原创 2019-01-30 08:47:39 · 3033 阅读 · 0 评论 -
Kill process when PID is constantly changing
problemWhen I issueps aux | grep mtpI getubuntu-+ 15934 0.1 0.0 519848 7068 ? Sl 21:13 0:00 /usr/lib/gvfs/gvfsd-mtp --spawner :1.9 /org/gtk/gvfs/exec_spaw/20So the PID in this case is 15934. But ...原创 2018-10-23 23:35:04 · 167 阅读 · 0 评论 -
How to get rid of the warnings when opening a file that has a .swp file?
programE325: ATTENTIONFound a swap file by the name “.notes.swp”owned by: james dated: Fri Dec 3 17:38:07 2010file name: ~james/school/se/project-dir/rottencucumber/doc/notesmodified: nouser ...原创 2018-10-23 23:32:59 · 357 阅读 · 0 评论