ubuntu 一些软件的安装

zsh

原作者 https://www.zhihu.com/question/21418449

cd ~
apt-get install zsh # 安装zsh
apt-get install zsh-antigen # 安装包管理器antigen
wget https://raw.githubusercontent.com/skywind3000/vim/master/etc/zshrc.zsh
mv zshrc.zsh .zshrc # 将下载来的配置文件移动到.zshrc

要是vim粘贴代码变形,可输入set paste,进入paste模式后就不会变形

zsh # 黏贴完配置后运行zsh一下

Transmission daemon

apt-get install transmission-daemon # 安装transmission-daemon
vim /etc/transmission-daemon/settings.json # 配置

{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": false,
    "download-dir": "/home/downloads",
    "download-limit": 100,
    "download-limit-enabled": 0,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 2,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/home/debian-transmission/Downloads",
    "incomplete-dir-enabled": false,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "peer-limit-per-torrent": 50,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "prefetch-enabled": 1,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "******", #密码
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "******", # 用户名
    "rpc-whitelist": "127.0.0.1",
    "rpc-whitelist-enabled": false,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 18,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}
groupadd transmission # 创建用户组
cd
mkdir torrent
sudo chmod -R 775 ./torrent
sudo usermod -a -G transmission root
sudo chgrp -R transmission ./torrent/
service transmission-daemon start # 启动软件
http://<your.server.ip.addr>:9091/transmission/ # 进入web界面

需要停止服务的话:

service transmission-daemon stop

需要查看服务进程的话:

ps aux | grep 'transmission-daemon'

修改阿里云源

cp /etc/apt/sources.list /etc/apt/sources.list.bak    # 先备份
vim /etc/apt/sources.list    # 修改

source.list文件

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
apt-get update    # 更新获取阿里云软件源提供的软件列表
apt-get upgrade    # 更新软件

修改时区

date -R   # 查看当前时间
tzselect # 按提示修改合适的选项
cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime # 复制文件到/etc目录下

mysql连接速度慢修改

vim /etc/my.cnf
[mysqld]
skip-name-resolve

更改配置并保存后,重启mysql

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ubuntu是一个基于Linux的操作系统,拥有众多的常用软件可以进行安装。以下是一些常用软件安装方法: 1. 网络浏览器:Ubuntu自带火狐浏览器,但也可以安装谷歌浏览器。打开终端,运行以下命令安装谷歌浏览器: ``` sudo apt update sudo apt install google-chrome-stable ``` 2. 办公套件:Ubuntu自带LibreOffice办公套件,包括文档处理、演示文稿、电子表格等。如果需要安装Microsoft Office,则可以使用WPS Office。打开终端,运行以下命令安装WPS Office: ``` sudo apt update sudo apt install wps-office ``` 3. 多媒体播放器:Ubuntu自带VLC媒体播放器,支持播放各种音频和视频格式。如果需要安装其他多媒体播放器,如SMPlayer或Banshee,可以打开终端并运行以下命令: ``` sudo apt update sudo apt install smplayer sudo apt install banshee ``` 4. 图像编辑器:Ubuntu自带GIMP图像编辑软件,可以进行图像处理、绘制和编辑。如果需要安装其他图像编辑器,如Inkscape或Krita,可以打开终端并运行以下命令: ``` sudo apt update sudo apt install inkscape sudo apt install krita ``` 5. 开发工具:Ubuntu提供了许多开发工具,如GCC编译器、Python解释器等。打开终端,运行以下命令安装GCC编译器和Python解释器: ``` sudo apt update sudo apt install build-essential sudo apt install python3 ``` 以上是一些常用软件安装方法,可以根据个人需求和喜好进行安装安装软件时,建议使用终端命令进行,以确保软件包的最新版本和系统的稳定性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值