VMware debian 装机流程 / VirtualBox ubuntu 装机流程

VMware Debian装机流程(debian 版本 9.2/stretch):

01. 修改分辨率/change resolution:
Application -> Settings -> Display -> 选一个分辨率 -> apply

02. keep login;
Application -> Power Manager -> Display -> 将3个滚动条都向左拖动到never。
在security里面,将lock screen when sleep 取消掉。

03.sudo;
保持装机光盘在的情况下(为啥非要这样,为啥不直接读网络上的source呢):
apt install sudo
su
adduser username sudo
(把用户添加到sudo组内)
(debian默认是没有sudo的,好不习惯,装上)

04.vi/vim initialization/初始化:
sudo apt install vim
vi ~/.vimrc
增加一行:
set nocompatible
向以往的老的vi/vim设置说拜拜,话说系统发行商非要留着这些老的设置干嘛。

05. autologin;
输入以下命令
cd /etc/lightdm
mkdir -v lightdm.conf.d
vi 01_my_debian.conf
增加以下行:

[SeatDefaults]
autologin-user=username
autologin-user-timeout=0

06. 修改启动grub timeout 时长:
vi /etc/default/grub
修改:
GRUB_TIMEOUT=0
运行:
sudo update-grub
some more cases:
https://askubuntu.com/questions/1036091/how-to-set-grub-timeout-to-0-on-ubuntu-18-04

07. change apt source
07-1. 备份
cd /etc/apt
cp sources.list sources.list.bak
07-2.官方源(这里是stretch 根据自己的需要更改)
vi sources.list

deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main

deb http://deb.debian.org/debian-security/ stretch/updates main
deb-src http://deb.debian.org/debian-security/ stretch/updates main

deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main

cp sources.list sources.list.official
07-3. 国内源 清华
清华源用的https,需要先安装

sudo apt install apt-transport-https ca-certificates

vi sources.list

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free

cp sources.list sources.list.tsinghua

07-4. 国内源 网易/cn99
网易无需安装https支持

deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

cp sources.list sources.list.163

08. vmware-tools / Share folder / copy paste support
sudo apt-get install open-vm-tools
sudo apt-get install open-vm-tools-desktop
mkdir -vp /mnt/share
sudo vmhgfs-fuse -o allow_other .host:/   /mnt/share

---------------------------------------------------------分割线 以下内容待填充-------------------------------------------------------------------------------

06. git

08. vmware patch
09. ssh-keygen; 

Ubuntu装机流程:
新安装_分辨率_网络                        
vmware-tools                                          
保持登陆                                              
vim
hostname
add cmake,
add  proxy from mac(privoxy & ss)
change to Ubuntu main server;          
add curl
repaired with ./patched-open-vm-tools.sh                                                  
link hgfs/Share to Desktop/Share
add python3 idle(python idle 是python的集成开发环境)
add vimrc and color support                  
add symbol link to desktop and home.  
add git configurations.                        
add vim file encoding                          
stop auto update

 


VirtualBox Ubuntu装机流程(ubuntu 版本 20.04 LTS):

系统安装:
语言选择汉语
最小安装
自动登录

装机流程:
01. 修改分辨率
右上角三角 -> 修改的符号 -> Display -> 选择分辨率,修改

02.关掉自动更新
左下角图标 -> Software & Updates -> Updates -> never check

03. Terminal
左下角九个点的图标 -> 找到terminal -> 右键添加到收藏夹

04. Proxy( if needed )
sudo vi /etc/apt/apt.conf
增加:
Acquire::http::Proxy "http://proxy.xxx.com:xxxx";
Acquire::https::Proxy "https://proxy.xxx.com:xxxx";
:wq

05.vi/vim initialization/初始化:
sudo apt upate
sudo apt install vim
sudo vi ~/.vimrc
增加一行:
set nocompatible
:wq

06. VBox guest addtions
06-1. 共享文件夹设置:
设置共享文件夹为d:/Share
共享剪贴板设置:
主机短设置 双向拷贝/拖拽
启动顺序设置:
保持安装盘在的状态,调整启动顺序为 hard disk -> cdrom
加载VBoxGuestAdditions.iso文件(64位操作系统上路径是:C:\Program Files\Oracle\VirtualBox;32位操作系统的路径可能不同)

06-2. 虚拟机内部设置,安装好虚拟机增强程序vbox的安装环境:
启动后,进入terminal,更新程序
apt-get update
apt-get install build-essential linux-headers-$(uname -r) dkms

06-3. 运行虚拟机内都安装脚本:
cd /media/peng/VBox***
把文件拷贝到其他可以运行到地方
sh VBoxLinuxAdditions.run

07. autologin
Setting -> Users -> autologin

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值