ubuntu env setup
发布日期:2021-09-11 09:57:10 浏览次数:10 分类:技术文章

本文共 5421 字,大约阅读时间需要 18 分钟。

hot3.png

1、 install vim---

apt-get install vim

2、git 安裝

sudo -iapt-get install git

3、postgresql安裝

sudo -iapt-get updateapt-get install postgresql postgresql-contribsudo -i -u postgres #su postgrespsql#exit:\q#Create a New Rolecreateuser --interactive#install pgadmin3apt-get install pgadmin3pgadmin3 打開pgadmin3#重啓postgresql/etc/init.d/postgresql restartsystemctl restart postgresqlservice  postgresql restartvim /etc/postgresql/9.5/main/pg_hba.conflisten_address = '*' 修改後無法重啓......

4、试图双击deb文件进行安装,点击install 按钮,提示“This software comes from a 3rd party and may contain non-free components”。

解決:

sudo apt install gdebi

5、skype 安裝 下載deb包

gdebi skype-ubuntu-precise_4.3.0.37-1_i386.deb

6、軟件中心閃退解決

  重装命令:  sudo apt-get install --reinstall software-center software-center-aptdaemon-plugins  当然也可以选择用其他包管理器,例如新立德(synaptic)  安装synaptic命令:  sudo apt-get install synaptic參考:http://www.cnblogs.com/wmllz/p/5033769.html

7、搜狗输入法繁体简体切换

ctrl + shift +fhttp://ubuntuhandbook.org/index.php/2016/07/2-best-chinese-pinyin-im-ubuntu-16-04/

8、#ubuntu install hexo

#apt-get install -y nodejs#apt install npm#ubuntu install hexonodejs 二进制包解压安装npm install --unsafe-perm --verbose -g hexo 参考:http://www.cnblogs.com/codeblock/p/5209849.html

nodejs 二进制包下载

https://nodejs.org/download/release/

nodejs解压安装

http://jingyan.baidu.com/article/25648fc18ee5bd9190fd0058.html

Q&A

------------------------------------------------------------------------------npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64npm verb stack Error: EACCES: permission denied, access '/usr/local/etc/node/lib/node_modules'npm verb cwd /home/kevin/Downloadsnpm ERR! Linux 4.4.0-57-genericnpm ERR! argv "/usr/local/etc/node/bin/node" "/usr/local/etc/node/bin/npm" "install" "--unsafe-perm" "--verbose" "-g" "hexo"npm ERR! node v7.3.0npm ERR! npm  v3.10.10npm ERR! path /usr/local/etc/node/lib/node_modulesnpm ERR! code EACCESnpm ERR! errno -13npm ERR! syscall accessnpm ERR! Error: EACCES: permission denied, access '/usr/local/etc/node/lib/node_modules'npm ERR!  { Error: EACCES: permission denied, access '/usr/local/etc/node/lib/node_modules'npm ERR!   errno: -13,npm ERR!   code: 'EACCES',npm ERR!   syscall: 'access',npm ERR!   path: '/usr/local/etc/node/lib/node_modules' }npm ERR! npm ERR! Please try running this command again as root/Administrator.npm verb exit [ -13, true ]npm ERR! Please include the following file with any support request:npm ERR!     /home/kevin/Downloads/npm-debug.logsudo chmod -R 777 /usr/local/etc/node/每个人有读写执行权限------------------------------------------------------------------------------https://rawbin-.github.io/%E5%BC%80%E5%8F%91%E6%8A%80%E6%9C%AF/%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/2016/01/11/node-version-management/**nodejs multi version install** https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04#conclusion9、deb包安装

dpkg -i 包名称 参考:

10、ubuntu python3.x安装,python多版本安装

参考

11、sublime package control

sublime 中文输入法问题解决 sougou

12、gedit图形编辑

gedit ~/.bashrc

13、jdk

sudo mkdir /usr/lib/jvm

查看本机上是否还有java可选。这里用到以下命令

$ sudo update-alternatives --list java

配置环境变量命令:

$sudo gedit ~/.bashrc

添加以下代码:

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_55

export JRE_HOME=${JAVA_HOME}/jre

export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib

export PATH=${JAVA_HOME}/bin:$PATH

14、终端分屏软件 tmux简单教程

sudo -i apt-get install tmux tmux


**终端分屏软件 terminator**

命令 说明 Ctrl+Shift+O 水平分割窗口 Ctrl+Shift+E 垂直分割窗口 F11 全屏/退出全屏 Ctrl+Shift+C 复制 Ctrl+Shift+V 粘贴 Ctrl+Tab 在分割的各窗口之间切换 Ctrl+Shift+X 将分割的某一个窗口放大至全屏使用 Ctrl+Shift+Z 从放大至全屏的某一窗口回到多窗格界面

screen tmux使用学习

15、Ubuntu chrome  firefox  安装flash

这里输入代码

groovy

16、ubuntu 安装jenkins

Installation

wget -q -O - | sudo apt-key add - sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins

Upgrade

Once installed like this, you can update to the later version of Jenkins (when it comes out) by running the following commands:

sudo apt-get update sudo apt-get install jenkins

(aptitude or apt-get doesn't make any difference.) 参考官方文档:

17、ubuntu 16.0.4TSL  docker  install

compose

18、jenkins pipline

19、Jenkins入门到进阶

20、groovy Ubuntu 安装

21、 groovy pipeline

22、QQ

tmp

pipline examples

archiveArtifacts

主要参考

groovy

/def upload/

/*node { sshagent (credentials: ['deploy-dev']) { sh 'ssh -o StrictHostKeyChecking=no -l cloudbees 192.168.1.106 uname -a' } } */ /node { stage 'Does sshpass work?' sh 'sshpass -p 'password' ssh user "ls; hostname; whois google.com;"' }/

/* Using rsync sshagent(['repository']) { sh "rsync -av .rpm :/srv/www/htdocs/staging_rpms/" }/

/*Using the following with ssh I can disable host key verification ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no also scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no *.rpm :/tmp

ArtifactArchiver

23、ntopng安装

24、install vaitualbox on ubuntu16.4

uninstall other versions sudo apt remove virtualbox virtualbox-5.0 virtualbox-4.*

sudo vim /etc/apt/sources.list //run this wget -q -O- | sudo apt-key add - wget -q -O- | sudo apt-key add - //update && install sudo apt-get update sudo apt-get install virtualbox-5.1 //url reference

25、docky dock软件中心搜索安装26、shadowsocks

26、dash change to bash

在终端执行 sudo dpkg-reconfigure dash 然后选择 no。

27、

nvm install :

28

AppStream cache update completed, but some metadata was ignored due to errors.

解决方式:

sudo rm /var/lib/dpkg/lock

 

 

转载于:https://my.oschina.net/u/1186013/blog/812256

转载地址:https://blog.csdn.net/weixin_34409703/article/details/92084053 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:db部分--针对安卓sqlite的半自动化封装
下一篇:实战 Lucene,第 1 部分: 初识 Lucene

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月22日 10时34分11秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章

PAT (Advanced Level) Practice - 1118 Birds in Forest(25 分) 2019-04-27
PAT (Advanced Level) Practice - 1126 Eulerian Path(25 分) 2019-04-27
PAT (Advanced Level) Practice - 1068 Find More Coins(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1122 Hamiltonian Cycle(25 分) 2019-04-27
PAT (Advanced Level) Practice - 1129 Recommendation System(25 分) 2019-04-27
PAT (Advanced Level) Practice - 1147 Heaps(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1130 Infix Expression(25 分) 2019-04-27
PAT (Advanced Level) Practice - 1138 Postorder Traversal(25 分) 2019-04-27
PAT (Advanced Level) Practice - 1145 Hashing - Average Search Time(25 分) 2019-04-27
PAT (Advanced Level) Practice - 1146 Topological Order(25 分) 2019-04-27
PAT (Advanced Level) Practice - 1022 Digital Library(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1030 Travel Plan(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1076 Forwards on Weibo(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1038 Recover the Smallest Number(30 分) 2019-04-27
面经 - C/C++ 基础篇 2019-04-27
PAT (Advanced Level) Practice - 1045 Favorite Color Stripe(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1053 Path of Equal Weight(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1057 Stack(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1087 All Roads Lead to Rome(30 分) 2019-04-27
PAT (Advanced Level) Practice - 1016 Phone Bills(25 分) 2019-04-27