root登陆
1.首先获得临时的root权限,因为后面的一些操作需要root权限才可以,打开终端输入以下命令
sudo -s
之后直接输入当前账户的密码,就可以获得临时的root权限
2.先创建root账户:
sudo passwd root
根据提示输入密码(此时输入的密码是以后登录root账户时的密码)
3.修改配置文件,文件路径/usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
可以使用vim修改,也可以用文档编辑器修改,此处我使用文档编辑器修改
gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
(对普通文件进行编辑一定要先获得root权限)
打开后,在文档末尾输入
greeter-show-manual-login = true
all-guest = false
4.去除gdm登陆用户名检测:
修改/etc/pam.d/gdm-autologin 文件
gedit /etc/pam.d/gdm-autologin
删除 或注释掉以下语句
auth required pam_succeed_if.so user != root quiet_success
修改 /etc/pam.d/gdm-password 文件
gedit /etc/pam.d/gdm-password
同样删除 或注释掉上面的语句
5.修改/root/.profile文件
gedit /root/.profile
文档最后一行 mesg n || true 前添加 tty -s && 即 tty -s &&mesg n || true
6.重启系统,终端界面输入 #reboot
重启完成后,登陆界面选择 “未列出”,之后用户名输入 root 进行登录即可。
修改系统源和更新
修改阿里源为Ubuntu 18.04默认的源
备份/etc/apt/sources.list
#备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
在/etc/apt/sources.list文件前面添加如下条目
#添加阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
最后执行如下命令更新源
##更新
sudo apt-get update
sudo apt-get upgrade
wps安装
安装完成后写在原有软件
sudo apt-get remove libreoffice-common
sudo apt-get remove unity-webapps-common
sudo apt autoremove
安装搜狗输入法
安装依赖
sudo apt-get install fcitx-bin
sudo apt-get install fcitx-table
安装完成后配置
安装搜狗拼音大便
安装网易云
安装后解决打不开的问题
sudo gedit /etc/sudoers
修改/etc/sudoers文件,加一行:
YOURNAME ALL = NOPASSWD: /usr/bin/netease-cloud-music
YOURNAME为你登录的用户名。
sudo gedit /usr/share/applications/netease-cloud-music.desktop 修改Exec=netease-cloud-music %U 为 Exec=sudo netease-cloud-music %U, 这样点击网易云音乐图标就是以管理员权限启动的了,且不用输入密码。
谷歌root下打不开
gedit /usr/bin/google-chrome
将 exec -a “
0
"
"
0" "
0""HERE/chrome” “$@” 改为
exec -a “
0
"
"
0" "
0""HERE/chrome” “$@” --user-data-dir --no-sandbox
安装mysql
没有出现设置密码的问题
sudo gedit /etc/mysql/debian.cnf
登录这个用户
mysql -u debian-sys-maint -p
执行sql
update mysql.user set authentication_string=password(‘123456’) where user='root’and Host = ‘localhost’;
重启mysql
service mysql restart
mysql -u root -p
执行sql
USE mysql;
UPDATE user SET plugin=‘mysql_native_password’ WHERE User=‘root’;
FLUSH PRIVILEGES;
exit;
安装git
apt-get install git
隐藏ubuntu上方
火狐运行
sudo apt install chrome-gnome-shell
https://extensions.gnome.org/extension/545/hide-top-bar/
idea破解码
http://idea.lanyus.com/
安装windows软件
https://github.com/738654805/Deepin-Apps-Installation
如果没有克隆,先克隆仓库
git clone https://github.com/Jactor-Sue/Deepin-Apps-Installation.git
安装wine
chmod +x ./install-deepin-wine.sh && ./install-deepin-wine.sh
安装一些常用的软件
cd ./deepin-apps
sudo dpkg -i xxx.deb
包名和软件对照如下表:
包名 软件名
deepin.com.baidu.pan_5.5.4deepin8_i386.deb 百度网盘
deepin.com.qq.im_8.9.19983deepin20_i386.deb QQ
deepin.com.qq.im.light_7.9.14308deepin8_i386.deb QQ轻聊版
deepin.com.qq.office_2.0.0deepin1_i386.deb TIM
deepin.com.taobao.wangwang_9.11.02Cdeepin0_i386.deb 阿里旺旺
deepin.com.thunderspeed_7.10.35.366deepin17_i386.deb 迅雷精简版
deepin.com.wechat_2.6.2.31deepin0_i386.deb 微信
更多软件
http://packages.deepin.com/deepin/pool/non-free/
卸载apps
sudo dpkg -P xxx #xxx为安装时的包名
卸载deepin-wine
chmod+x ./uninstall-deepin-wine.sh && ./uninstall-deepin-wine.sh
注意: 卸载deepin-wine之后已经安装的apps会由于依赖问题也被卸载
安装ifconfig
sudo apt-get install net-tools
忽略关闭盒子
编辑下列文件:/etc/systemd/logind.conf
#HandlePowerKey 按下电源键后的行为,默认 power off
#HandleSleepKey 按下挂起键后的行为,默认 suspend
#HandleHibernateKey 按下休眠键后的行为,默认 hibernate
#HandleLidSwitch 合上笔记本盖后的行为,默认 suspend(改为 lock;即合盖不休眠)在原文件中,还要去掉前面的#
运行:systemctl restart systemd-logind就会生效。
解压rar
sudo apt-get update
sudo apt-get install rar
sudo apt-get install unrar
sudo apt-get install p7zip-rar
sudo apt-get install p7zip*
安装vim
sudo apt install vim
sudo apt install vim
安装typora
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository ‘deb https://typora.io/linux ./’
sudo apt-get update
sudo apt-get install typora
安装graphviz
sudo apt-get install graphviz graphviz-doc
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)