2018年3月20日星期二

Fedora 清理内核


  1. 打开终端,查询目前使用的内核:
    uname -r
  2. 显示出所有已安装的内核:
    rpm -q kernel
  3. 使用yum命令删掉以前的老内核:
    yum remove XXX
  4. 删除成功后可以使用命令再查看一下老内核是否真的删掉了:
    rpm -q kernel
  5. 此时再重启系统就在grub发现只有你的新内核了。

Fedora 27 安装 VMware Workstation 14


下载VMware Workstation 14 :https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html


$ sudo dnf install kernel-headers kernel-devel gcc glibc-headers
$ cd $HOME/Downloads
$ sudo chmod +x ./VMware-Workstation*14*.bundle
$ sudo ./VMware-Workstation*14*.bundle

2018年3月19日星期一

arch_linux install vmware-workstation-14



$ yaourt vmware-workstation   
1 aur/vmware-workstation 14.1.1-2 [installed] (43) (4.29)
    The industry standard for running multiple operating systems as virtual
    machines on a single Linux PC.
2 aur/vmware-workstation11 11.1.4-2 (0) (0.00)
    The industry standard for running multiple operating systems as virtual
    machines on a single Linux PC.
3 aur/vmware-workstation12 12.5.9-3 (2) (0.88)
    The industry standard for running multiple operating systems as virtual
    machines on a single Linux PC.
==> 输入 n° 以安装需要的软件包(例如:1 2 3 或者是 1-3)
==> ---------------------------------
==> 1

$ sudo modprobe -a vmw_vmci vmmon

服务:
在虚拟机中拥有网络访问权限:
$ sudo systemctl enable vmware-networks.service
$ sudo systemctl start vmware-networks.service
连接虚拟机内部的USB设备:
$ sudo systemctl enable vmware-usbarbitrator.service
$ sudo systemctl start vmware-usbarbitrator.service
在网络上共享虚拟机:
$ sudo systemctl enable  vmware-hostd.service
$ sudo systemctl start vmware-hostd.service

激活密钥;
VMware v14.x 永久许可证激活密钥
FF31K-AHZD1-H8ETZ-8WWEZ-WUUVA
CV7T2-6WY5Q-48EWP-ZXY7X-QGUWD

2018年3月15日星期四

fedora27 网易云音乐


地址:https://github.com/yelanxin/netease-cloud-music-fedora-27

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
  
sudo dnf copr enable yelanxin/netease-cloud-music
sudo dnf install netease-cloud-music

Etcher


Supported Operating Systems

  • Linux (most distros)
  • macOS 10.9 and later
  • Microsoft Windows 7 and later
Note that Etcher will run on any platform officially supported by Electron. Read more in their documentation.

Installers

Refer to the downloads page for the latest pre-made installers for all supported operating systems.

Debian and Ubuntu based Package Repository (GNU/Linux x86/x64)

  1. Add Etcher debian repository:
    echo "deb https://dl.bintray.com/resin-io/debian stable etcher" | sudo tee /etc/apt/sources.list.d/etcher.list
    
  2. Trust Bintray.com's GPG key:
    sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 379CE192D401AB61
  3. Update and install:
    sudo apt-get update
    sudo apt-get install etcher-electron
Uninstall
sudo apt-get remove etcher-electron
sudo rm /etc/apt/sources.list.d/etcher.list
sudo apt-get update

Redhat (RHEL) and Fedora based Package Repository (GNU/Linux x86/x64)

  1. Add Etcher rpm repository:
    sudo wget https://bintray.com/resin-io/redhat/rpm -O /etc/yum.repos.d/bintray-resin-io-redhat.repo
  2. Update and install:
    sudo yum install -y etcher-electron
    or
    sudo dnf install -y etcher-electron
Uninstall
sudo yum remove -y etcher-electron
sudo rm /etc/yum.repos.d/bintray-resin-io-redhat.repo
sudo yum clean all
sudo yum makecache fast
or
sudo dnf remove -y etcher-electron
sudo rm /etc/yum.repos.d/bintray-resin-io-redhat.repo
sudo dnf clean all
sudo dnf makecache

Brew Cask (macOS)

Note that the Etcher Cask has to be updated manually to point to new versions, so it might not refer to the latest version immediately after an Etcher release.
brew cask install etcher
Uninstall
brew cask uninstall etcher

Chocolatey (Windows)

This package is maintained by @majkinetor, and is kept up to date automatically.
choco install etcher

2018年3月14日星期三

yum 常用命令



非yum=不在Yum Repository内的软件包
-y = 手动确认y


安装:yum install Package_names
删除:yum remove Package_names
查找软件包: yum search Package_names
软件包列表:yum list
待更新软件列表:yum list updates
已安装软件列表:yum list installed
非yum软件列表:yum list extras
指定软件列表:yum list Package_names
软件包信息:yum info Package_names
所有软件包信息:yum info
待更新软件信息列表:yum info updates
所有安装的软件信息:yum info installed
所有非yum安装的软件信息:yum info extras
软件来源:yum provides Package_names


清除yum缓存:

清除所有:yum clean all
清除rpm包:yum clean packages
清除header:yum clean headers

安装rpm包:rpm -ivh RPM_Package_names
卸载rpm包:rpm -e RPM_Package_names
升级系统:yum update


卸载同时清理依赖:
yum history list Package_names
yum history undo ID











RHEL 家族 VirtualBox安装


如果之前安装过不可用先卸载掉
# yum remove VirtualBox-5.2





开始安装:

1.检查内核版本:
 su
rpm -qa kernel |sort -V |tail -n 1

uname -r



2.加入vbox源 & 更新系统
cd /etc/yum.repos.d/

## Fedora 27/26/25/24/23/22/21/20/19/18/17/16 users
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

## CentOS 7.4/6.9 and Red Hat (RHEL) 7.4/6.9 users
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
 ## Fedora 27/26/25/24/23/22 ##
dnf update

## Fedora 21/20/19/18/17/16 and CentOS/RHEL 7/6/5 ##
yum update
如果内核变动先重启
reboot

3.安装依赖
## CentOS 7 and RHEL 7 ##
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

## CentOS 6 and RHEL 6 ##
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

## CentOS 5 and RHEL 5 ##
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm

## Fedora 27/26/25/24/23/22 ##
dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

## Fedora 21/20/19/18/17/16 and CentOS/RHEL 7/6/5 ##
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

## PAE kernel users install ##
## Fedora 24/23/22 ##
dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-PAE-devel dkms

## Fedora 21/20/19/18/17/16 and CentOS/RHEL 7/6/5 ##
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-PAE-devel dkms


4. 安装virtualbox

## Fedora 27/26/25 ##
dnf install VirtualBox-5.2

## Fedora 24/23/22 ##
dnf install VirtualBox-5.1

## CentOS/RHEL 7/6 ##
yum install VirtualBox-5.2


5.不能正常工作使用
重建内核模块
## Fedora 27/26/25/24/23/22/21/20/19 and CentOS/RHEL 7 ##
/usr/lib/virtualbox/vboxdrv.sh setup

## CentOS/RHEL 6 ##
/etc/init.d/vboxdrv setup
## OR ##
service vboxdrv setup

将VirtualBox用户添加到vboxusers组
usermod -a -G vboxusers your_username
启动
VirtualBox















2018年3月11日星期日

私有云盘 & ocDownloader 离线下载插件


OS :debian 9 &  Apache2.4  & MySQL5.5 & PHP7

NEXTCLOUD    下载地址:https://nextcloud.com/install/
ocDownloader 下载地址:https://apps.nextcloud.com/apps/ocdownloader


1. LAMP 环境:
测试环境,为了快速,这里宝塔 一键脚本(实际使用建议自己编译安装)

Linux面板5.7.0安装命令:


Centos安装命令:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
Ubuntu/Deepin安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh
Debian安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh
Fedora安装命令:
wget -O install.sh http://download.bt.cn/install/install.sh && bash install.sh




2. 添加网站-上传nextcloud代码-(过程省略。。。)

ocDownloader插件位置

上传上去点解压

3. 进后台 - 设置 - 个人 - 其他设置
下载路径 和 种子路径 地址 自己设置

4. 安装ARIA2:
#apt-get update
# apt-get install aria2
# nano aria2.conf
**********复制************
**********************


#aria2c --conf-path /root/aria2.conf



5. Youtube-dl
官网http://rg3.github.io/youtube-dl/

#apt-get install python-pip (缺少时安装)
#pip install --upgrade youtube_dl




6.验证
随便找个图片,看看能下载不





bt直接下似乎不成功,要吧种子先传到 第三步 设置的 文件夹里(第二个)


点 选择种子 - 下载。
没资源,哈哈