https://www.cnblogs.com/anyux/protected/p/10140218.html
about pip
提示符显示
[root@localhost sh]# echo $PS1 [\u@\h \W]\$ [root@localhost sh]# export PS1='[\u@\h \w]\$' [root@localhost /home/sh]#
apt install -y vim screen wget git bash-completion terminator net-tools unzip
install google-chrome
https://linuxconfig.org/how-to-install-google-chrome-web-browser-on-ubuntu-18-04-bionic-beaver-linux
apt install gdebi-core wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb gdebi google-chrome-stable_current_amd64.deb google-chrome
open google chrome, display error "unlock " on ubuntu 18.04
1.edit google-chrome
cd /opt/google/chrome vim google-chrome #note exec #exec -a "$0" "$HERE/chrome" "$@" --user-data-dir $HOME # add exec -a "$0" "$HERE/chrome" "$@" --no-sandbox "" ################################################## screen google-chrome & C-c-a open google-chrome on ubuntu
2.you are using an unsupported command-line flag no sandbox brave
cd /opt/google/chrome/ #edit the last line exec -a "$0" "$HERE/chrome" "$@" --no-sandbox --ignore-certifcate-errors""
3.ubuntu sound too low
Try the PCM settings in alsamixer - Open terminal (Ctrl+Alt+T) and type alsamixer:

You may need to select the sound card with F6 first.
https://askubuntu.com/questions/390734/volume-low-even-at-maximum
Ubuntu:开机自启动脚本
1.独立脚本
1).编写要执行脚本的sh文件mysetup.sh
#!/bin/sh ### BEGIN INIT INFO # Provides: land.sh # Required-start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts the svnd.sh daemon # Description: starts svnd.sh using start-stop-daemon ### END INIT INFO #任务脚本 #进入要执行脚本目录 cd /home/cbuav/working/opencv/target_land #取得root权限,'123456'为密码,不用加引号,'ls'无实际作用 echo 123456|sudo -S ls #执行脚本./bin/mywork,sudo -S需要加上 sudo -S ./bin/mywork
注释部分是必须内容,ubuntu 16.04中一定要加上该LSB信息,不然放入启动脚本的时候会报错无法开机启动。
任务脚本中,一般需要用到root权限,取得root权限和实际任务语句最好分开写,有些情况下写在一起不会成功。
2).将该sh文件移动到/etc/init.d/目录下,并修改权限
cp mysetup.sh /etc/init.d sudo chmod 755 /etc/init.d/mysetup.sh cd /etc/init.d sudo update-rc.d mysetup.sh defaults 95
其中数字95是脚本启动的顺序号,按照自己的需要相应修改即可。在你有多个启动脚本,而它们之间又有先后启动的依赖关系时你就知道这个数字的具体作用了。
4).卸载启动脚本
cd /etc/init.d sudo update-rc.d -f mysetup.sh remove
2.在rc.local文件中添加启动脚本
rc.local脚本是一个ubuntu开机后会自动执行的脚本,我们可以在该脚本内添加命令行指令。该脚本位于/etc/路径下,需要root权限才能修改。
该脚本具体格式如下:
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. #任务脚本 #打开mate终端,并在其中运行脚本 mate-terminal -x /home/myname/mysetup.sh #任务脚本 exit 0
一定要将命令添加在 exit 0之前
更新18.04源
#中科大源 deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
sudo apt-get update sudo apt-get upgrade
阿里源
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
163源
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
root登录
默认安装Ubuntu18.04都是不允许以root用户进行登录的,想要以root用户进行登录需要进行一些操作,主要是以下几个步骤: 第一步:以普通用户登录系统,创建root用户的密码 在终端输入命令:sudo passwd root 然后输入你要设置的密码,这样就完成了设置root用户密码的步骤 第二步:修改文件/usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf文件,增加两行: greeter-show-manual-login=true all-guest=false 保存 第三步:进入/etc/pam.d目录,修改gdm-autologin和gdm-password文件 vi gdm-autologin 注释掉auth required pam_succeed_if.so user != root quiet_success这一行,保存 vi gdm-password 注释掉 auth required pam_succeed_if.so user != root quiet_success这一行,保存 第四步:修改/root/.profile文件 vi /root/.profile 将文件末尾的mesg n || true这一行修改成tty -s&&mesg n || true, 保存 第五步:重启系统,输入root用户名和密码,登录系统。
SSS-download
https://github.com/shadowsocks/shadowsocks-qt5/releases
SwitchyOmega
https://github.com/FelisCatus/SwitchyOmega/releases
install wubi
五笔01.https://jingyan.baidu.com/article/4853e1e5b090a31909f7269c.html
sudo apt-get install ibus ibus-table ibus-table-wubi -y ibus-daemon -drx ibus-setup input method 添加五笔输入法 打开系统设置中的 Text Entry
五笔02 https://blog.csdn.net/zhangyingguangails/article/details/72356771
theme like mac
https://github.com/vinceliuice/Sierra-gtk-theme
sudo apt-get install gtk2-engines-murrine gtk2-engines-pixbuf -y sudo add-apt-repository ppa:dyatlov-igor/sierra-theme sudo apt update sudo apt install sierra-gtk-theme -y # point releases sudo apt install sierra-gtk-theme-git -y # git master branch
https://www.omgubuntu.co.uk/2017/03/make-ubuntu-look-like-mac-5-steps
install unity-tweak-tool
apt-get install unity-tweak-tool
apt install notify-osd -y
!#test
https://askubuntu.com/questions/874820/how-to-resolve-the-errors-that-show-up-when-trying-to-install-unity-tweak-tool
apt install -y gnome-tweak-tool
sudo apt-get purge unity-tweak-tool
sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install unity-webapps-common unity-tweak-tool
sudo apt-get install unity-tweak-tool
!#test
icons like mac
https://www.opendesktop.org/p/1239453/
https://www.opendesktop.org/p/1102582/
https://www.opendesktop.org/p/1210856/
Ubuntu桌面美化(unity-tweak-tool)
https://blog.csdn.net/qq_36561697/article/details/80770265
Albert Spotlight (macOS like Spotlight)
https://github.com/debugster/GnomeTweaks
安装visio替代软件LibreOffice Draw
浙公网安备 33010602011771号