showmount:查看 NFS 共享目录

命令格式 showmount [选项] [ServerIP] 常用选项 选项 作用 无参数 列出所有挂载了共享目录的客户端 -a 列出服务端共享目录 + 客户端挂载点 -d 列出当前被客户端挂载的目录 -e 列出服务端导出的所有共享目录 使用示例 # 查看某台服务器的共享目录 showmount -e 192.168.1.100 # 查看谁在挂载 showmount -a 192.168.1.100 # 查看所有信息 showmount 192.168.1.100

2015年1月9日 · 1 分钟 · Jid

openSUSE 安装 Google Chrome 浏览器

Chromium(开源版)可以直接从 openSUSE 源安装,但 Chrome(Google 官方版)需要手动添加 Google 的软件源。 安装步骤 # 1. 添加 Google Chrome 源 sudo zypper ar -f http://dl.google.com/linux/chrome/rpm/stable/$(uname -m) Google-Chrome # 2. 刷新源 sudo zypper ref # 3. 安装 sudo zypper in google-chrome-stable 安装 Chromium(开源版) sudo zypper in chromium 区别 Chromium Chrome 开源 ✅ ❌ 自动更新 通过系统源 通过 Google 源 PDF 查看器 无内置 内置 编解码器 部分缺失 完整

2014年11月18日 · 1 分钟 · Jid

openSUSE 添加国内镜像源

问题 openSUSE 官方源在国内下载速度很慢。 解决 使用中国科学技术大学镜像源(更新及时、稳定)。 以下以 openSUSE 13.2 为例,其他版本替换版本号即可: sudo zypper ar -f -c http://mirrors.ustc.edu.cn/opensuse/distribution/13.2/repo/oss opensuse-oss sudo zypper ar -f -c http://mirrors.ustc.edu.cn/opensuse/distribution/13.2/repo/non-oss opensuse-non-oss sudo zypper ar -f -c http://mirrors.ustc.edu.cn/opensuse/update/13.2 opensuse-update sudo zypper ar -f -c http://mirrors.ustc.edu.cn/opensuse/update/13.2-non-oss opensuse-update-non-oss 其他镜像 镜像站 地址 中科大 mirrors.ustc.edu.cn 清华 mirrors.tuna.tsinghua.edu.cn 阿里云 mirrors.aliyun.com

2014年11月13日 · 1 分钟 · Jid

Linux 命令行设置代理服务器

三种方式 1. 临时生效(仅当前终端) export http_proxy=http://proxyAddress:port export https_proxy=http://proxyAddress:port 关闭终端后失效,不影响系统设置。适合偶尔使用。 2. 永久生效(写入 Shell 配置) 在 ~/.bashrc 末尾添加: http_proxy=http://proxyAddress:port https_proxy=http://proxyAddress:port export http_proxy https_proxy 然后执行 source ~/.bashrc 生效。 3. 仅对特定工具生效 apt: sudo vi /etc/apt/apt.conf # 添加: Acquire::http::Proxy "http://proxyAddress:port"; Acquire::https::Proxy "http://proxyAddress:port"; git: git config --global http.proxy http://proxyAddress:port wget: # 编辑 ~/.wgetrc use_proxy = on http_proxy = http://proxyAddress:port https_proxy = http://proxyAddress:port 带认证的代理 如果代理需要用户名和密码: export http_proxy=http://userName:password@proxyAddress:port export https_proxy=http://userName:password@proxyAddress:port 取消代理 unset http_proxy https_proxy

2014年11月6日 · 1 分钟 · Jid

开启Laker程序的不同命令

(1)Invoke Laker with editing capability : laker # for 32-bit executable file laker -64 # for 64-bit executable file laker –Level L1/L2/L3/FPD fordifferent packages (2)Invoke Laker with viewing only viewer -64 # for 64-bit executable file viewer # for 32-bit executable file laker –Level L0 # for 32-bit executable file (3)Invoke Free Laker Viewer laker –Level LViewer fviewer

2014年5月10日 · 1 分钟 · Jid

Debian 开启 bash_completion 自动补全

问题 Debian 默认的 bash 自动补全功能不完整——按 Tab 只能补全文件名和命令名,无法补全 apt-get 的子命令、systemctl 的服务名等。 原因 bash_completion 包其实已经预装了,只是默认被注释掉了。 解决方法 方法一:全局生效(需要 root) 编辑 /etc/bash.bashrc,找到被注释掉的这段代码: # if ! shopt -oq posix; then # if [ -f /usr/share/bash-completion/bash_completion ]; then # . /usr/share/bash-completion/bash_completion # elif [ -f /etc/bash_completion ]; then # . /etc/bash_completion # fi # fi 去掉每行前面的 #,保存,重新登录即可。 方法二:仅当前用户 把上面取消注释后的代码段追加到 ~/.bashrc 末尾,然后执行: source ~/.bashrc 验证 输入 apt-get in 然后按 Tab,应该能自动补全为 apt-get install。

2013年10月15日 · 1 分钟 · Jid