ITPub博客

首页 > > > 我的面试准备过程:ubuntu 使用过程记录

我的面试准备过程:ubuntu 使用过程记录

作者:u_453e1a12781dea 时间:2018-04-03 17:57:28 0 删除 编辑
点击蓝色字关注 "CU技术社区" 一起玩耍哦~

回到监狱般的实验室,用一台4年前的废电脑,装一个ubuntu来玩玩吧。

插播一段广告  页面下载器(我的Java爬虫之一) 

https://segmentfault.com/a/1190000011881759 Xpath、Jsoup、Xsoup(我的Java爬虫之二)

https://segmentfault.com/a/1190000011918253

问题1 ubuntu 14.04 --系统的网络服务与此版本的网络管理器不兼容问题


  1. 1、sudo -s

  2. 2、cd /etc/NetworkManager/

  3. 3、ls -la

  4. 4、mv system-connections /home/<username>/   #移动目录到自己的用户目录下

  5. 5、mkdir /system-connections        

  6. 6、reboot

当然,也可能是!32位的老机器,下载了64位的系统~~

问题2 锐捷上网问题

校园网下载客户端后,

  1. cd rjsupplicant

  2. sudo ./rjsupplicant.sh -d 0 -u username -p password

此时如果网卡消失了

  1. cd /etc/init.d/

  2. sudo start network-manager


问题3 搭建ssh服务器


  1. sudo apt-get update

  2. sudo apt-get install openssh-server


问题4 vim tab设置为四个空格

vim ~/.vimrc 添加以下内容

  1. set ts=4

  2. set expandtab


问题5 安装java

以安装 jdk-8u72-linux-x64.tar.gz 为例

  1. #解压安装包:

  2. sudo tar -zxvf jdk-8u72-linux-x64.tar.gz

  3. mv jdk1.8.0_72/ /opt/

  4. #配置环境变量:

  5. #编辑配置文件:

  6. sudo vim /etc/profile

  7. #在该文件的最尾巴,添加下面内容:

  8.  JAVA_HOME=/opt/jdk1.8.0_72

  9.  JRE_HOME=$JAVA_HOME/jre

  10.  PATH=$PATH:$JAVA_HOME/bin

  11.  CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

  12.  export JAVA_HOME

  13.  export JRE_HOME

  14.  export PATH

  15.  export CLASSPATH

  16. #执行命令,刷新该配置(必备操作):

  17. . /etc/profile

  18. #检查是否使用了最新的 JDK:

  19. java -version

安装maven

下载解压完后, vi~/.zshrc

  1. export M2_HOME=/opt/software/apache-maven-3.5.0

  2. export M2=$M2_HOME/bin

  3. export PATH=$M2:$PATH

sublime中文输入问题

解决方法:

  1. #1. 进入sublime text3 插件管理文件夹

  2. cd ~/.config/sublime-text-3/Packages

  3. #2. 获取InputHelper插件

  4. git clone https://github.com/xgenvn/InputHelper.git

  5. #如果发现在sublime text3 中无法使用ctrl+shift+z调出输入框,请检查是否安装pygtk

  6. sudo apt-get install python-gtk2-dev

grub>

想给实验室的这台小电脑挖坑,就保持

  1. linux (hd0,1)/vmlinuz.efi root=/dev/sda3

  2. initrd (hd0,1)/initrd.lz

  3. boot

不然就试试

  1. sudo update-grub

  2. sudo grub-install /dev/sda


好用软件系列

美观相关

安装Albert 和 Casio

  1. sudo add-apt-repository ppa:nilarimogard/webupd8

  2. sudo apt-get update

  3. sudo apt-get install albert

  4. sudo apt-get install cairo-dock

开发者相关

安装zeal

sudo apt-getinstall zeal

自己从废旧电脑里淘到一个i5-3代的cpu,从一堆2G的内存里淘到两个4G的,现在牛气哄哄地升级系统,之前真的是,一把心酸泪


升级17.04

配置apt源,校园网,用清华的吧

sudo vi/etc/apt/sources.list

  1. # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

  2. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse

  3. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse

  4. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse

  5. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse

  6. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

  7. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

  8. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

  9. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

  10. # 预发布软件源,不建议启用

  11. # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

  12. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

升级!

sudodo-release-upgrade-d

升级17.04后没有声音

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).

https://askubuntu.com/a/660910


安装系统监控indicator-sysmonitor

  1. sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor  

  2. sudo apt-get update

  3. sudo apt-get install indicator-sysmonitor

最后在终端执行indicator-sysmonitor &即可


安装zsh

之前竟然没有放进来,装oh my zsh的前提是要装好了curl以及git

  1. sudo apt-get install curl

  2. sudo apt-get install git

  3. sudo apt-get install zsh

  4. sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"


JetBrains IDEA 系列产品通用xx方法(license server)


打开激活窗口 选择 Activate new license with License server (用license server 激活) 在 License sever address 处填入 http://xidea.online 点击 Activate 进行认证 done!

数领先机 智赢未来

DTCC2018

中国数据库技术大会(简称 DTCC)是国内数据库及大数据领域规模最大、最受欢迎的技术交流盛会,每年一届。自 2010 年以来,迄今已成功举办了八届,累计参与人次达到 20000+。DTCC 每年都将邀请百余位行业专家,就热点技术话题进行分享,为数据库人群、大数据从业人员、广大互联网人士及行业相关人士提供最具价值的交流平台。


2018 年 5 月 10-12 日,第九届中国数据库技术大会(DTCC2018)将如约而至。本届大会以 “数领先机 • 智赢未来” 为主题,设定 2 大主会场及 20 个技术专场,邀请来自国内外互联网、金融、教育等行业百余位技术专家,共同探讨 Oracle、MySQL、NoSQL、大数据、机器学习、区块链、数据可视化等领域的前瞻性热点话题与技术。



点击左下阅读原文,立享购票8.8折优惠

原文作者:;如有侵权,请联系管理员删除。

请登录后发表评论 登录
全部评论

注册时间:2019-07-17

  • 博文量
    1982
  • 访问量
    17885