资讯专栏INFORMATION COLUMN

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

msup / 323人阅读

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

插播一段广告
页面下载器(我的Java爬虫之一) https://segmentfault.com/a/11...
Xpath、Jsoup、Xsoup(我的Java爬虫之二)https://segmentfault.com/a/11...

问题1 ubuntu 14.04 --系统的网络服务与此版本的网络管理器不兼容问题
1、sudo -s 
2、cd /etc/NetworkManager/
3、ls -la
4、mv system-connections /home//   #移动目录到自己的用户目录下
5、mkdir /system-connections         
6、reboot

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

问题2. 锐捷上网问题

校园网下载客户端后,

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

此时如果网卡消失了

cd /etc/init.d/
sudo start network-manager
问题3. 搭建ssh服务器
sudo apt-get update
sudo apt-get install openssh-server
问题4. vim tab设置为四个空格

vim ~/.vimrc
添加以下内容

set ts=4
set expandtab
问题5. 安装java
以安装 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
安装maven

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

export M2_HOME=/opt/software/apache-maven-3.5.0
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
sublime中文输入问题
解决方法:
#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
grub>

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

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

不然就试试

sudo update-grub
sudo grub-install /dev/sda
好用软件系列 美观相关 安装Albert 和 Casio
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install albert
sudo apt-get install cairo-dock
开发者相关 安装zeal

sudo apt-get install zeal

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

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

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

升级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
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor  
sudo apt-get update 
sudo apt-get install indicator-sysmonitor 

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

安装zsh

之前竟然没有放进来,装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)"
JetBrains IDEA 系列产品通用xx方法(license server)

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

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/10057.html

相关文章

  • 记一次XX前端面试

    摘要:面试官说那我问你一个哲学的问题,为什么有数据结构这种东西哇,这是啥,巴拉巴拉扯了一通,大致就是物以类聚,人以群分,先人积累下来的经验,这些让我们更方便处理数据啥的。 前因,没有比摸鱼有趣的事了 距离自己被外派(俗称外包)出去,已经过了快五个月,工作的话,很闲。人啊,一定保持好的习惯,懒惰是会上瘾,日常摸鱼,怀疑人生,我是谁,我在哪,我要干什么。 中午吃饭的时候,收到了boss直聘的一条...

    Shisui 评论0 收藏0
  • 细读应聘阿里全流程,我是如何拿到阿里offer!

    摘要:应聘阿里是一个相对较长的流程,涉及岗位选择简历投递简历评估技术面试面试背景调查入职材料准备等环节。关于学历和专业的要求目前,阿里的正式岗位对学历的要求基本都是本科及以上,这个要求并不高,出发点是避免因学历限制而错过优秀的人才。 应聘阿里是一个相对较长的流程,涉及岗位选择、简历投递、简历评估、技术面试、HR面试、背景调查、入职材料准备等环节。其中,关于技术面试,网上有很多优秀的攻略,但普...

    AlanKeene 评论0 收藏0
  • 细读应聘阿里全流程,我是如何拿到阿里offer!

    摘要:应聘阿里是一个相对较长的流程,涉及岗位选择简历投递简历评估技术面试面试背景调查入职材料准备等环节。关于学历和专业的要求目前,阿里的正式岗位对学历的要求基本都是本科及以上,这个要求并不高,出发点是避免因学历限制而错过优秀的人才。 应聘阿里是一个相对较长的流程,涉及岗位选择、简历投递、简历评估、技术面试、HR面试、背景调查、入职材料准备等环节。其中,关于技术面试,网上有很多优秀的攻略,但普...

    jay_tian 评论0 收藏0
  • 我的春招求职经验分享(已拿阿里京东网易等 5 个 offer)

    摘要:面经因为我完全没有面试经验,从来没有经历过面试,于是想着在去这类大公司面试之前先找成都的小公司练练手,积累点面试经验。于是三月份开始就有成都的小公司开始约我面试。 前序 从我高考成绩出来那一刻开始,从我在高考志愿上填上计算机科学与技术这几个当时在心中堪称神圣的几个字开始,我就已经把进入中国互联网最高殿堂BAT作为我整个大学奋斗的目标,哪怕我就读的是一所位于内陆的双非一本大学我也认为我能...

    Winer 评论0 收藏1
  • 前端面试系列--前言篇

    摘要:这个系列的文章将记录我准备春招的整个过程,我会将自己学习到的新知识记录在这个系列里文章目录前言说明准备方向目标前言说明作为半个科班出身学数学的应届生,在学习计算机的时候还是比较吃力的,从今年月份开始接触前端,到现在也有个月左右了。 这个系列的文章将记录我准备春招的整个过程,我会将自己学习到的新知识记录在这个系列里 文章目录 前言说明 准备方向 目标 前言说明   作为半个科班出身...

    sshe 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<