[190308]Ubuntu 安装完之后,安装的软件小记
install software
vim
sudo apt-get install -y vim
Typora
command copy from Typora website
# or run:
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update
# install typora
sudo apt-get install typora
Xampp
download for linux run file at web browser, then go to download path at Terminal
chmod +x ./xampp*.run
sudo ./xampp*.run
sudo chmod 777 /opt/lampp/htdocs
vim ~/.profile
add following content at ~/.profile
at end line
export XAMPP_HOME=/opt/lampp
export PATH=${XAMPP_HOME}/bin:$PATH
然后执行下面命令,使配置生效
source ~/.profile
install composer
at composer download page,last version is 1.8.4
wget https://getcomposer.org/download/1.8.4/composer.phar
chmod +x composer.phar
sudo mv composer.phar /usr/local/bin/composer
# config composer repo.packagist
composer config -g repo.packagist composer https://packagist.phpcomposer.com
install ibus sunyinpin
sudo apt-get update
sudo apt-get install ibus-pinyin ibus-sunpinyin
install nodejs Ubuntu安装最新版nodejs
sudo apt-get install -y nodejs npm
sudo npm config set registry https://registry.npm.taobao.org
sudo npm install n -g
sudo n stable
n是一个Node工具包,它提供了几个升级命令参数:
n 显示已安装的Node版本
n latest 安装最新版本Node
n stable 安装最新稳定版Node
n lts 安装最新长期维护版(lts)Node
n <version> 根据提供的版本号安装Node
sudo n stable
mkdir: /usr/local/n/versions/node/10.16.03
download: wget https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.gz
cp /usr/local/n/versions/node/10.16.03/lib No Such File or Directory
如果下载文件超时,无法进行升级 node,通过上面的信息,可以是下载 node-v10.16.3-linux-x64.tar.gz
文件
在Node.js 镜像 获取页面,进入到对应的文件夹下,看到列出的文件列表,找到名为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.gz
chmod +x node-v10.16.3-linux-x64.tar.gz
sudo tar zxvf node-v10.16.3-linux-x64.tar.gz -C /usr/local/n/versions/node/
cd /usr/local/n/versions/node
sudo rm -rf 10.16.3
sudo mv node-v10.16.3-linux-x64 10.16.3
sudo 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'