回到監獄般的實驗室,用一臺4年前的廢電腦,裝一個ubuntu來玩玩吧。java
插播一段廣告
頁面下載器(個人Java爬蟲之一) https://segmentfault.com/a/11...
Xpath、Jsoup、Xsoup(個人Java爬蟲之二)https://segmentfault.com/a/11...python
一、sudo -s 二、cd /etc/NetworkManager/ 三、ls -la 四、mv system-connections /home/<username>/ #移動目錄到本身的用戶目錄下 五、mkdir /system-connections 六、reboot
固然,也多是!32位的老機器,下載了64位的系統~~linux
校園網下載客戶端後,git
cd rjsupplicant sudo ./rjsupplicant.sh -d 0 -u username -p password
此時若是網卡消失了github
cd /etc/init.d/ sudo start network-manager
sudo apt-get update sudo apt-get install openssh-server
vim ~/.vimrc
添加如下內容web
set ts=4 set expandtab
以安裝 jdk-8u72-linux-x64.tar.gz 爲例 #解壓安裝包: sudo tar -zxvf jdk-8u72-linux-x64.tar.gz mv jdk1.8.0_72/ /opt/ #配置環境變量: #編輯配置文件: sudo vim /etc/profile #在該文件的最尾巴,添加下面內容: JAVA_HOME=/opt/jdk1.8.0_72 JRE_HOME=$JAVA_HOME/jre PATH=$PATH:$JAVA_HOME/bin CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export JAVA_HOME export JRE_HOME export PATH export CLASSPATH #執行命令,刷新該配置(必備操做): . /etc/profile #檢查是否使用了最新的 JDK: java -version
下載解壓完後,vi ~/.zshrc
apache
export M2_HOME=/opt/software/apache-maven-3.5.0 export M2=$M2_HOME/bin export PATH=$M2:$PATH
解決方法: #1. 進入sublime text3 插件管理文件夾 cd ~/.config/sublime-text-3/Packages #2. 獲取InputHelper插件 git clone https://github.com/xgenvn/InputHelper.git #若是發如今sublime text3 中沒法使用ctrl+shift+z調出輸入框,請檢查是否安裝pygtk sudo apt-get install python-gtk2-dev
想給實驗室的這臺小電腦挖坑,就保持ubuntu
linux (hd0,1)/vmlinuz.efi root=/dev/sda3 initrd (hd0,1)/initrd.lz boot
否則就試試vim
sudo update-grub sudo grub-install /dev/sda
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install albert sudo apt-get install cairo-dock
sudo apt-get install zeal
segmentfault
本身從廢舊電腦裏淘到一個i5-3代的cpu,從一堆2G的內存裏淘到兩個4G的,如今牛氣哄哄地升級系統,以前真的是,一把心酸淚
sudo vi /etc/apt/sources.list
# 默認註釋了源碼鏡像以提升 apt update 速度,若有須要可自行取消註釋 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse # 預發佈軟件源,不建議啓用 # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
sudo do-release-upgrade -d
NVidia The first step is to make sure that the GPU is not in use by a driver. As you're using the nvidia driver, you must also be using prime. Run prime-select query. If it outputs nvidia, you can disable the driver by running sudo prime-select intel and rebooting. If it outputs unknown then the previous step might also work, but will also break your bumblebee setup. As a sanity check, make sure that the GPU and its audio chip are powered: Login as root: sudo su Run lspci -H1 | grep 01:00. It should output two lines. If the first line ends with (rev ff), you need to power your GPU by running echo ON > /proc/acpi/bbswitch. If the second line is missing, that means that the GPU audio chip is no longer powered. You can try suspending your laptop; resume it again; and check again whether the GPU audio chip is powered (I hope that works for you, otherwise you're out of luck, like me). Run lsmod | grep nvidia again to make sure that the nvidia driver is still not in use. Now that the GPU is powered without a driver we're going to 'remove' it: Run echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/remove (if the GPU still had a driver loaded/in use, this causes a kernel panic). Redetect the GPU and also its audio chip by running echo 1 > /sys/bus/pci/rescan. Run lspci | grep 01:00.1. If that outputs anything, congratulations! Your linux is now aware of your GPU audio chip. Get X running with the nvidia GPU. Run prime-select. If it outputs intel, run prime-select nvidia. Logout and back in again. If you run aplay -l now it should output the HDMI outputs (on my pc there are 4 outputs, and only 1 works).
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor sudo apt-get update sudo apt-get install indicator-sysmonitor
最後在終端執行indicator-sysmonitor &便可
以前居然沒有放進來,裝oh my zsh的前提是要裝好了curl以及git
sudo apt-get install curl sudo apt-get install git sudo apt-get install zsh sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
打開激活窗口
選擇 Activate new license with License server (用license server 激活)
在 License sever address 處填入 http://xidea.online(2017.3可以使用 http://23.106.155.52:41017)點擊 Activate 進行認證done!