Linux 学习笔记

单纯记录学习过程中遇到的问题,顺序暂时混乱。
1 cscope 显示引用,而不是定义
vim命令模式下
(1) :cs add cscope.out
(2) :cs find c  xxxxxx
2 scp 服务器间的文件传输
2.1 本地复制到远程
	1)复制文件
	  scp local_file remote_username@remote_ip:/remote_folder
	2)复制目录
	  scp -r local_folder remote_username@remote_ip:/remote_folder
2.2 远程到本地
    同前述,仅需交换后面两个参数的顺序

使用条件:
(1)文件和目录的读写权限
(2)ssh服务中root用户的登录权限
3 centos调节gnome桌面图标大小
gsettings set org.gnome.nautilus.icon-view default-zoom-level small
4 centos通过vnc登录提示需要授权来创建色彩配置文件
You can create a file in /etc/polkit-1/rules.d/02-allow-colord.rules:

polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.color-manager.create-device" ||
        action.id == "org.freedesktop.color-manager.create-profile" ||
        action.id == "org.freedesktop.color-manager.delete-device" ||
        action.id == "org.freedesktop.color-manager.delete-profile" ||
        action.id == "org.freedesktop.color-manager.modify-device" ||
        action.id == "org.freedesktop.color-manager.modify-profile") &&
       subject.isInGroup("yourgroupname")) {
      return polkit.Result.YES;
   }
});

then reboot the system
5 centos 7.3的软件冲突
冲突提示如下:because of file conflict between gstreamer1-plugins-base-1.10.4-1.el7.x86_64 
            and gstreamer1-plugins-bad-free-1.4.5-6.el7_3.x86_64
解决方案如下:
1.卸载并重新安装所有依赖与gstreamer1-plugins-bad-free-1.4.5-6.el7_3.x86_64的软件
  (totem, cheese, farstream and farstream02 and others)
  然后卸载gstreamer1-plugins-bad-free-1.4.5-6.el7_3.x86_64
  最后或可考虑执行yum upgrade (**不是update!!!**)
2.如果无法进入GUI登录界面卡在如下界面
	第一种情况:failed to start dynamic system tuning daemon
	第二种情况:starting virtualization daemon
  通过另一电脑终端ssh到服务器,然后执行yum upgrade,碰到软件冲突就卸载对应的软件
  (无用的直接卸载,有用的记录下来以备重新安装),然后重启系统
6 批量更换文件名或后缀名
把下列所有.c的文件名修改为.cc
rename .c .cc *.c
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值