Ubuntu命令收集

2016-05-04 10:51:00
zengde
原创 608
root 文件管理
sudo nautilus

粘贴
ctrl+shift+v

终端
ctrl+alt+T

wiznote
sudo add-apt-repository ppa:wiznote-team
sudo apt-get update
sudo apt-get install wiznote

share(需要安装增强功能)
sudo mount -t vboxsf f-ubuntu /home/zeng/f-pan
sudo mount -t vboxsf G_DRIVE /home/zeng/g-pan

lamp
sudo apt install apche2
sudo apt install libapache2-mod-php
sudo apt install php-gd
sudo apt install php-mysql
sudo apt install php-gettext
sudo apt install php-mbstring
sudo apt install mysql-server mysql-client

/etc/init.d/apache2 restart
sudo chown -R zeng:www-data /var/www

sudo  apt-get install phpmyadmin
sudo  ln -s /usr/share/phpmyadmin /var/www/html

ruby
sudo apt install ruby
dpkg -i /home/zeng/f-pan/gitlab-Tab
/etc/gitlab/gitlab.rb external_url 'http://localhost'
sudo gitlab-ctl reconfigure

service apache2 stop
gem sources --remove https://rubygems.org/
gem sources -a http://ruby.sdutlinux.org/
gem sources -l

java
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt-get install oracle-java8-installer

无法获得锁 /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

sudo nano /etc/profile
export JAVA_HOME="/usr/lib/jvm/java-8-oracle"
source /etc/profile
echo $JAVA_HOME

博客分类