linux开发环境搭建(debian)

1.安装系统
Win10下使用rufus.exe制作Debian9.5启动盘_百度经验
https://jingyan.baidu.com/article/48206aea932a88216bd6b373.html

2.安装ssh

apt-get install openssh-client
apt-get install openssh-server

如何配置允许root 登录

vi /etc/ssh/sshd_config
PermitRootLogin yes

3.安装samba 用于在window 上管理linux 上的文件

apt-get install samba

3.1 配置 vi /etc/samba/smb.conf

# Global parameters
[global]
        log file = /var/log/samba/log.%m
        max log size = 1000
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        usershare allow guests = Yes
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server role = standalone server
        unix password sync = Yes
        dns proxy = No
        idmap config * : backend = tdb


[homes]
        comment = Home Directories
        create mask = 0644
        force create mode = 0644
        force directory mode = 0755
        read only = No
        valid users = %S


[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = No
        printable = Yes
        create mask = 0700


[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

3.2 添加用户
smbpasswd -a uname

3.3 window 上我的电脑->映射网络驱动器->//172.16.10.67/uname 看登录是否成功。

4.配置文件夹颜色

vi ~/.bashrc

# You may uncomment the following lines if you want `ls' to be colorized:
 export LS_OPTIONS='--color=auto'
 eval "`dircolors`"
 alias ls='ls $LS_OPTIONS'
 alias ll='ls $LS_OPTIONS -l'
 alias l='ls $LS_OPTIONS -lA'

5.vi 退格键失效问题

vi /etc/vim/vimrc.tiny

set nocompatible
set backspace=2

6.设置静态ip,dns

vi /etc/network/interfaces

auto lo
iface lo inet loopback

#开机自动连接网络
auto enp2s0
#allow-hotplug enp2s0
#static表示使用固定ip,dhcp表述使用动态ip
iface enp2s0 inet static
#设置ip地址
address 172.16.10.67
#设置子网掩码
netmask 255.255.0.0
#设置网关
gateway 172.16.0.1

vi /etc/resolv.conf

nameserver 172.16.0.1

7.安装 gcc g++ make

apt-get install gcc g++ make

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值