ubuntu22.04@laptop 常用基础环境安装

ubuntu22.04@laptop 常用基础环境安装

  • [1. 源由](#1. 源由)
  • [2. 步骤](#2. 步骤)
    • [2.1 安装ubuntu22.04 LTS系统](#2.1 安装ubuntu22.04 LTS系统)
    • [2.2 必备软件安装](#2.2 必备软件安装)
    • [2.3 基本远程环境](#2.3 基本远程环境)
      • [2.3.1 远程ssh登录](#2.3.1 远程ssh登录)
      • [2.3.2 samba局域网](#2.3.2 samba局域网)
      • [2.3.3 VNC远程登录](#2.3.3 VNC远程登录)
    • [2.4 开发环境安装](#2.4 开发环境安装)
  • [3. 总结](#3. 总结)

1. 源由

应朋友要求,整理下一个个人常用的工作笔记本常用开发环境安装步骤。

2. 步骤

2.1 安装ubuntu22.04 LTS系统

  1. 下载ubuntu22.04 LTS镜像
  2. 使用Raspbian镜像无头烧录方法制作安装盘
  3. Step by Step安装系统

2.2 必备软件安装

复制代码
$ sudo apt-get install vim aptitude net-tools
  • vim: 本人的笔记本按键有的时候会乱,但是装了vim就不会,因此,必装。
  • aptitude: 主要用于系统内搜索软件包使用。
  • net-tools: 使用ifconfig查询当前IP地址的。

2.3 基本远程环境

2.3.1 远程ssh登录

复制代码
$ sudo apt-get install openssh-server

2.3.2 samba局域网

局域网内,映射一个网络硬盘到Windows机器上办公,还是非常方便的。

复制代码
$ sudo apt-get install samba

因为samba是独立于linux系统的一个应用软件,其用户/目录需要明确指定。

一般常用安装时的用户名和目录,这里使用daniel

复制代码
$ sudo smbpasswd -a daniel

samba配置非常简单

复制代码
$ sudo nano /etc/samba/smb.conf

只要将HOME下的一些注释调整下即可,主要修改内容如下:

复制代码
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
[homes]
   comment = Home Directories
   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
   read only = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
   valid users = %S

配置完成后,重新启动服务。

复制代码
$ sudo service smbd restart

2.3.3 VNC远程登录

详见:ubuntu22.04@laptop安装&配置VNC服务端

2.4 开发环境安装

这个因人而异,不再展开。通常来说git/svn/cvs等代码库软件是必须的,笔者现在也是越来越少使用cvs了,更多的是git。

$ sudo apt-get install git subversion

3. 总结

整体来说:

  1. 基本的环境安装基本也就是30分钟的事情。
  2. 更多的时间浪费在不熟悉的开发环境调试。
  3. 不成熟软件的配套依赖环境调试。
  4. 国内网络一刀切式的屏蔽,导致大量技术资源无法连接。

这里也有一些方法,大家可以尝试:Github操作网络异常笔记

相关推荐
Lucis__1 分钟前
Linux系统收官篇:线程学习的一些心得总结
linux·学习·线程
2301_822703208 分钟前
开源鸿蒙跨平台Flutter开发:脑电波 (EEG) 实时绘制:Flutter Canvas 多波形同步渲染与 Isolate 线程隔离
flutter·华为·开源·harmonyos·鸿蒙
取码网12 分钟前
最新团购源码商城 虚拟商城系统源码 全开源
开源
HelloTonyGo13 分钟前
个人游戏笔记本免费“养龙虾”(七)OpenClaw的openclaw.json文件的基本配置
ubuntu·json·配置·读写权限·openclaw
2301_8227032018 分钟前
开源鸿蒙跨平台Flutter开发:血氧饱和度数据降噪:基于滑动窗口的滤波算法优化-利用动态列队 (Queue) 与时间窗口平滑光电容积脉搏波 (PPG)
算法·flutter·华为·开源·harmonyos
独特的螺狮粉18 分钟前
开源鸿蒙跨平台Flutter开发:应对重症监护警报疲劳:BLoC 架构下的 FSM (有限状态机) 建模与全局消息干预机制
开发语言·flutter·华为·开源·harmonyos
minji...23 分钟前
Linux 多线程(五)用C++语言以面向对象方式封装线程
linux·运维·服务器·网络·jvm·数据库
来鸟 鸣间28 分钟前
mutex_lock 流程
linux·c语言
秋风&萧瑟28 分钟前
【Linux系统编程】system函数和exec函数族的使用
linux·运维·服务器
秋风&萧瑟33 分钟前
【Linux系统编程】Linux多进程介绍及使用
linux·运维·网络