本文用于快速恢复自己在chromebook下的生产力环境。
折腾了几天的arch之后,重装回了Fedora,但是发现在把它恢复到可生产状态时仍然遇到了各种各样的问题,所以写一个小小的备忘录。
1.fedora源
https://lug.ustc.edu.cn/wiki/mirrors/help/fedora
2.优化工具
sudo dnf install gnome-tweak-tool
3.ctrl+alt+t打开终端
设置-键盘-快捷键 命令 /usr/bin/gnome-terminal
4.PHPStorm/JB家的IDE
5.web
sudo dnf install nginx php php-fpm php-mysql mysql-server
6.nginx
php配置
location ~ .php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
ci 去掉index.php?
location /{ if (-f $request_filename) { expires max; break; } if (!-e $request_filename) { rewrite ^/(.\*)$ /index.php?/$1 last; } }
7.mysql
mysql > source x.sql mysql > SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');
8.flash插件
弃坑 不更了
9.github
ssh-keygen -t rsa -C "email" cat ~/.ssh/id_rsa.pub ssh -T git@github.com