install software
vim
sudo apt-get install -y vim
command copy from Typora website
# or run:# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAEwget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -# add Typora's repositorysudo add-apt-repository 'deb https://typora.io/linux ./'sudo apt-get update# install typorasudo apt-get install typora
download for linux run file at web browser, then go to download path at Terminal
chmod +x ./xampp*.runsudo ./xampp*.runsudo chmod 777 /opt/lampp/htdocsvim ~/.profile
add following content at ~/.profile
at end line
export XAMPP_HOME=/opt/lamppexport PATH=${XAMPP_HOME}/bin:$PATH
然后执行下面命令,使配置生效
source ~/.profile
install
at composer download page,last version is 1.8.4
wget https://getcomposer.org/download/1.8.4/composer.pharchmod +x composer.pharsudo mv composer.phar /usr/local/bin/composer# config composer repo.packagistcomposer config -g repo.packagist composer https://packagist.phpcomposer.com
install ibus sunyinpin
sudo apt-get updatesudo apt-get install ibus-pinyin ibus-sunpinyin
install nodejs
sudo apt-get install -y nodejs npmsudo npm config set registry https://registry.npm.taobao.orgsudo npm install n -gsudo n stable
n是一个Node工具包,它提供了几个升级命令参数:
n 显示已安装的Node版本n latest 安装最新版本Noden stable 安装最新稳定版Noden lts 安装最新长期维护版(lts)Noden根据提供的版本号安装Node
sudo n stable mkdir: /usr/local/n/versions/node/10.16.03download: wget https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.gzcp /usr/local/n/versions/node/10.16.03/lib No Such File or Directory
如果下载文件超时,无法进行升级 node,通过上面的信息,可以是下载 node-v10.16.3-linux-x64.tar.gz
文件
在 获取页面,进入到对应的文件夹下,看到列出的文件列表,找到名为node-v10.16.3-linux-x64.tar.gz
的链接,在Chrome浏览器下,可右键 -> 选择"复制链接地址"之后,进入到 终端
wget https://npm.taobao.org/mirrors/node/latest-v10.x/node-v10.16.3-linux-x64.tar.gzchmod +x node-v10.16.3-linux-x64.tar.gzsudo tar zxvf node-v10.16.3-linux-x64.tar.gz -C /usr/local/n/versions/node/cd /usr/local/n/versions/nodesudo rm -rf 10.16.3sudo mv node-v10.16.3-linux-x64 10.16.3sudo n stable
redis
sudo apt-get install redis-server
- ubuntu 开机之后,会进入 initramfs界面
/dev/sda1 contains a file system with errors, check forced
输入命令:
fsck /dev/sda1 -y
fsck(file system check)用来检查和维护不一致的文件系统。若系统掉电或磁盘发生问题,可利用fsck命令对文件系统进行检查。
/dev/sda1
以启动时,提示错误的卷称为主
'mcrypt_create_iv(): Cannot open source device'