Skip to content

selaselah/ubuntu-conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ubuntu-conf

mount another disk

blkid to get UUID add line in /etc/fstab field#1 dev: UUID=xxxxxxx field#2 mount point: /home field#3 fs type: ext4 field#4 opts: nofail field#5 dump flag: 0 field#6 fsck seq: 2

about sogou pinyin

visit sogou offical website.

dpkg -i sougoupinyin_*.deb
apt-get install -f

about python

configure --prefix=$PREFIX --enable-shared to build python component, should install packages: _bz2 libbz2-dev _curses libncurses5-dev _curses_panel libncurses5-dev _dbm --not needed-- _gdbm --not needed-- _lzma liblzma-dev _sqlite3 libsqlite3-dev _tkinter tk8.6-dev readline libreadline-dev

to install matplotlib, should also install libfreetype-dev to install pyside, should also install qt4-qmake

use pypi mirror

create ~/.pip/pip.conf [global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] use-mirrors = true mirrors = http://mirrors.aliyun.com/pypi/ trusted-host = mirrors.aliyun.com

install scipy

dependencies: liblapack-dev, libopenblas-dev, gfortran

install matplotlib

dependencies: libpng12-dev, libfreetype6-dev

install go

download from golangtc or offical website

tar -C $HOME/opt -xzf go$VERSION.$OS-$ARCH.tar.gz mv $HOME/opt/go{,-$VERSION}

cherrytree color

黄色 #FFFF00

add proxy cert

sudo cp foo.crt /usr/local/share/ca-certificates/extra/foo.crt sudo dpkg-reconfigure ca-certificates

install oracle jdk

add-apt-repository ppa:webupd8team/java apt-get install oracle-java7-installer

install node js

see curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -

install cherrytree

add-apt-repository ppa:vincent-c/cherrytree

sudo without passwd

man 5 sudoers visudo file 有如下 entry: alias user specification 还可以使用 default 更改配置 这里只配置 user specification

User_Spec ::= User_List Host_List '=' Cmnd_Spec_List \
              (':' Host_List '=' Cmnd_Spec_List)*

chendongxiao ALL=(ALL) NOPASSWD: /usr/sbin/rabbitmqctl为例: User_List <= chendongxiao Host_List <= ALL

只有一个 Cmnd_Spec_List <= (ALL) NOPASSWD: /usr/sbin/rabbitmqctl

Cmnd_Spec_List ::= Cmnd_Spec |
                   Cmnd_Spec ',' Cmnd_Spec_List

只有一个 Cmnd_Spec <= (ALL) NOPASSWD: /usr/sbin/rabbitmqctl
如果要指派多个 Cmnd_Spec,后续的 Runas_Spec SELinux_Spec Tag_Spec 可以省略

Cmnd_Spec ::= Runas_Spec? SELinux_Spec? Tag_Spec* Cmnd

Runas_Spec <= (ALL)
Tag_Spec <= NOPASSWD:
Cmnd <= /usr/sbin/rabbitmqctl

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages