gentoo

Linux系统

别等时光非礼了梦想. 提交于 2019-11-27 07:03:32
Mandriva Mandriva原名Mandrake,最早由Ga?l Duval创建并在1998年7月发布。记得前两年国内刚开始普及Linux时,Mandrake非常流行。说起Mandrake的历史,其实最早 Mandrake的开发者是基于Redhat进行开发的。Redhat默认采用GNOME桌面系统,而Mandrake将之改为KDE。而由于当时的 Linux普遍比较难安装,不适合第一次接触Linux的新手,所以Mandrake还简化了安装系统。我想这也是当时Mandrake在国内如此红火的原因之一。Mandrake在易用性方面的确是下了不少功夫,包括默认情况下的硬件检测等。 Mandrake的开发完全透明化,包括“cooker”。当系统有了新的测试版本后,便可以在cooker上找到。之前Mandrake的新版本的发布速度很快,但从9.0之后便开始减缓。估计是希望能够延长版本的生命力以确保稳定和安全性。 优点:友好的操作界面,图形配置工具,庞大的社区技术支持,NTFS分区大小变更 缺点:部分版本bug较多,最新版本只先发布给Mandrake俱乐部的成员 软件包管理系统:urpmi (RPM) 免费下载:FTP即时发布下载,ISO在版本发布后数星期内提供 官方主页:http://www.mandrivalinux.com/ Red Hat 国内,乃至是全世界的Linux用户所最熟悉

Hierarchical ldd(1)

心已入冬 提交于 2019-11-27 06:37:42
Due to using Gentoo, it often happens that after an update programs are linked against old versions of libraries. Normally, revdep-rebuild helps resolving that, but this time it's a dependency on a python library, and python-updater won't pick it up. Is there a "hierarchical" variant of ldd which shows me what shared library depends on which another shared library? Most of the time libraries and executables are linked only against a handful of other shared libraries, which in turn were linked against a handful, turning the library dependency into a big list. I want to know which dependency I

Bind Ctrl+Tab and Ctrl+Shift+Tab in tmux

我与影子孤独终老i 提交于 2019-11-26 22:39:42
问题 I'm trying to a get a ctrl + tab and ctrl + shift + tab binding to work inside of a tmux session (I'm also using PuTTY). I already went through the pains of having to recompile PuTTY so it would send ctrl and shift correctly. After using ctrl + v , and I'm able to see that ^[[27;5;9~ and ^[[27;6;9~ are being sent for ctrl + tab and ctrl + shift + tab , respectively. Is there any way I can get these bound to next-window and previous-window inside of tmux? Edit: After some research, I'm

Custom Bash prompt is overwriting itself

时光总嘲笑我的痴心妄想 提交于 2019-11-26 22:10:44
I'm using custom bash prompt to show git branch. Everything is in /etc/bash/bashrc : function formattedGitBranch { _branch="$(git branch 2>/dev/null | sed -e "/^\s/d" -e "s/^\*\s//")" # tried these: echo -e "\e[0;91m ($_branch)" echo -e "\e[0;91m ($_branch) \e[m" echo -e $'\e[0;91m'"($_branch)" echo "($_branch)" echo "$(tput setaf 2) ($_branch) $(tput setaf 9)" printf "\e[0;91m ($_branch)" } # color is set before function call PS1='\[\033[01;34m\] \[\033[0;91m\]$(formattedGitBranch) \$\[\033[00m\] ' # color is set inside function PS1='\[\033[01;34m\] $(formattedGitBranch) \$\[\033[00m\] '

用户和组

柔情痞子 提交于 2019-11-26 17:13:58
用户、组的基本概念 用户和组(用户信息保存: /etc/passwd ) ​ 系统上每一个进程都是由一个特定的用户发起 ​ 系统上的文件都是由特定的用户拥有 ​ 用户对系统上的文件访问时,收到权限控制 ​ 与运行中的进程相关联的用户确定该进程可访问的文件和目录 用户: ​ 用户的标识符、密码 ​ 用户的分类:管理员、普通用户(系统用户,登录用户) 组: ​ 用户组、用户容器 用户和组的标识符: ​ 属主标识符:UID 取值范围:0-65535 ​ 管理员用户root的UID=0;普通用户的UID=1-65535;系统用户的UID:CentOS6:1-499,CentOS7:1-999;登录用户的UID:CentOS6:500-;CentOS7:1000- ​ 属组标识符:GID 取值范围:0-65535 ​ 管理员用户root的UID=0,普通用户的UID=1-65535;系统用户的UID:CentOS6:1-499,CentOS7:1-999;登录用户的UID:CentOS6:500-;CentOS7:1000- ​ 名称解析:用户名---------UID 组类别:(组信息保存: /etc/group ) 用户的基本组 用户的附加组 认证信息:密码( 用户密码信息保存: /etc/shadow ;组密码: /etc/gshadow) 密码策略: 使用随机密码 最短长度不低于8位

Install things on Pepper

旧时模样 提交于 2019-11-26 17:13:10
问题 How would I install things on Pepper, since I don't know what package manager it uses. I usually use apt on my Ubuntu machine and want to install some packages on Pepper. I'm not sure what package manager Pepper has (if any) and want to install some packages, but also only know the name of the package using apt (not sure if the package name is the same on other package managers). And if possible, would I be able to install apt on Pepper. Thanks. Note: From the research I've done, Pepper is

Hierarchical ldd(1)

不羁的心 提交于 2019-11-26 10:25:13
问题 Due to using Gentoo, it often happens that after an update programs are linked against old versions of libraries. Normally, revdep-rebuild helps resolving that, but this time it\'s a dependency on a python library, and python-updater won\'t pick it up. Is there a \"hierarchical\" variant of ldd which shows me what shared library depends on which another shared library? Most of the time libraries and executables are linked only against a handful of other shared libraries, which in turn were

Custom Bash prompt is overwriting itself

╄→гoц情女王★ 提交于 2019-11-26 08:12:42
问题 I\'m using custom bash prompt to show git branch. Everything is in /etc/bash/bashrc : function formattedGitBranch { _branch=\"$(git branch 2>/dev/null | sed -e \"/^\\s/d\" -e \"s/^\\*\\s//\")\" # tried these: echo -e \"\\e[0;91m ($_branch)\" echo -e \"\\e[0;91m ($_branch) \\e[m\" echo -e $\'\\e[0;91m\'\"($_branch)\" echo \"($_branch)\" echo \"$(tput setaf 2) ($_branch) $(tput setaf 9)\" printf \"\\e[0;91m ($_branch)\" } # color is set before function call PS1=\'\\[\\033[01;34m\\] \\[\\033[0