Linux下C编程入门(1)
Linux系统的介绍(以下以Manjaro最新版为例子):
一、系统的安装:
1、可以直接使用U盘做一个live usb的启动盘,在bios中设置从U盘启动即可拥有linux系统,如果是新式bios需要将secrut boot设置项关掉,按照向导操作即可。
2、可以借助虚拟机体验,安装virtual box最新版本,注意系统的版本(32位还是64位),倒入我给你们的安装好的镜像文件,直接导入,启动运行即可。
3、可以安装win10的linux子系统,简单体验即可,只是以后的命令稍有不同。
4、可以使用物理机直接安装,这个可以向周围人求助,也可以到网上求助,我的学生可以直接找我,安装加配置过程大概需要1~2个小时即可。
二、系统配置:
1、配置软件的命令,须使用root权限:
(1)、vi /etc/pacman.d/mirrorlist 文件,大概如下: 配置软件源,加快下载和安装的速度,选择自己最快的软件源即可。
##
## Manjaro Linux default mirrorlist
## Generated on -- :
##
## Please use 'pacman-mirrors -f NUMBER' to modify mirrorlist
## (Use for all mirrors)
## ## Country : China
Server = http://mirrors.tuna.tsinghua.edu.cn/manjaro/stable/$repo/$arch ## Country : China
Server = https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch ## Country : Japan
Server = http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/stable/$repo/$arch ## Country : France
Server = http://kibo.remi.lu/stable/$repo/$arch ## Country : Australia
Server = http://manjaro.mirror.serversaustralia.com.au/stable/$repo/$arch ## Country : United_Kingdom
Server = http://manjaro.mirrors.uk2.net/stable/$repo/$arch ## Country : Belarus
Server = http://mirror.datacenter.by/pub/mirrors/manjaro/stable/$repo/$arch ## Country : United_States
Server = http://mirror.dacentec.com/manjaro/stable/$repo/$arch ## Country : United_States
Server = http://mirror.solarvps.com/manjaro/stable/$repo/$arch ## Country : Hungary
Server = http://mirror.infotronik.hu/mirrors/pub/manjaro/stable/$repo/$arch ## Country : Indonesia
Server = http://kambing.ui.ac.id/manjaro/stable/$repo/$arch ## Country : Portugal
Server = http://manjaro.barata.pt/stable/$repo/$arch ## Country : Taiwan
Server = http://free.nchc.org.tw/manjaro/stable/$repo/$arch ## Country : Bulgaria
Server = http://manjaro.telecoms.bg/stable/$repo/$arch ## Country : Austria
Server = http://mirror.inode.at/manjaro/stable/$repo/$arch ## Country : Indonesia
Server = http://kartolo.sby.datautama.net.id/manjaro/stable/$repo/$arch ## Country : Germany
Server = http://mirror.ragenetwork.de/manjaro/stable/$repo/$arch ## Country : United_Kingdom
Server = http://mirror.catn.com/pub/manjaro/stable/$repo/$arch ## Country : Spain
Server = http://ftp.caliu.cat/manjaro/stable/$repo/$arch ## Country : Hong_Kong
Server = http://ftp.cuhk.edu.hk/pub/Linux/manjaro/stable/$repo/$arch ## Country : Australia
Server = http://manjaro.melbourneitmirror.net/stable/$repo/$arch ## Country : South_Africa
Server = http://mirror.is.co.za/mirrors/manjaro.org/stable/$repo/$arch ## Country : United_States
Server = https://mirrors.ocf.berkeley.edu/manjaro/stable/$repo/$arch ## Country : Germany
Server = https://mirror.netcologne.de/manjaro/stable/$repo/$arch ## Country : United_States
Server = https://mirror.clarkson.edu/manjaro/stable/$repo/$arch ## Country : United_Kingdom
Server = https://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable/$repo/$arch ## Country : Netherlands
Server = https://manjaro.mirror.wearetriple.com/stable/$repo/$arch ## Country : United_States
Server = https://mirror.math.princeton.edu/pub/manjaro/stable/$repo/$arch ## Country : Chile
Server = http://manjaro.dcc.uchile.cl/stable/$repo/$arch ## Country : Denmark
Server = https://www.uex.dk/repos/manjaro/stable/$repo/$arch ## Country : Bulgaria
Server = https://manjaro.ipacct.com/manjaro/stable/$repo/$arch ## Country : Germany
Server = https://mirror.alpix.eu/manjaro/stable/$repo/$arch ## Country : Canada
Server = https://osmirror.org/manjaro/stable/$repo/$arch ## Country : Belgium
Server = https://manjaro.cu.be/stable/$repo/$arch ## Country : Netherlands
Server = https://nl.mirror.babylon.network/manjaro/stable/$repo/$arch ## Country : France
Server = https://fr.mirror.babylon.network/manjaro/stable/$repo/$arch ## Country : Russia
Server = https://mirror.yandex.ru/mirrors/manjaro/stable/$repo/$arch ## Country : Czech
Server = https://mirror.dkm.cz/manjaro/stable/$repo/$arch ## Country : Romania
Server = http://mirrors.serverhost.ro/manjaro/packages/stable/$repo/$arch ## Country : Ecuador
Server = https://mirror.cedia.org.ec/manjaro/stable/$repo/$arch ## Country : Costa_Rica
Server = https://mirrors.ucr.ac.cr/manjaro/stable/$repo/$arch ## Country : United_Kingdom
Server = http://repo.manjaro.org.uk/stable/$repo/$arch ## Country : Germany
Server = https://manjaro-mirror-a.alpix.eu/stable/$repo/$arch ## Country : Denmark
Server = https://mirrors.dotsrc.org/manjaro/stable/$repo/$arch ## Country : Germany
Server = https://repo.rhindon.net/manjaro/stable/$repo/$arch ## Country : Germany
Server = http://babyname.tips/mirrors/manjaro/stable/$repo/$arch ## Country : Germany
Server = http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable/$repo/$arch ## Country : Singapore
Server = https://download.nus.edu.sg/mirror/manjaro/stable/$repo/$arch ## Country : France
Server = http://ftp.free.org/mirrors/repo.manjaro.org/repos/stable/$repo/$arch ## Country : Netherlands
Server = https://mirror.koddos.net/manjaro/stable/$repo/$arch ## Country : Germany
Server = https://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch ## Country : Turkey
Server = http://ftp.linux.org.tr/manjaro/stable/$repo/$arch ## Country : Ireland
Server = https://ftp.heanet.ie/mirrors/manjaro/stable/$repo/$arch ## Country : Portugal
Server = http://ftp.dei.uc.pt/pub/linux/manjaro/stable/$repo/$arch ## Country : Netherlands
Server = https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch ## Country : Netherlands
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/$repo/$arch ## Country : Sweden
Server = https://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch ## Country : Germany
Server = https://mirror.netzspielplatz.de/manjaro/packages/stable/$repo/$arch
文件说明:
(1)、以#开始的行都是被注释掉的,文件在被解析时是无用的
(2)、容易看出前7行都为注释
(3)、第9行## Country : China虽然是注释行,表明以下是中国的内容
(4)、第10行Server = http://mirrors.tuna.tsinghua.edu.cn/manjaro/stable/$repo/$arch文件主要有
a、Server=设置Server变量,内容在赋值符号右边
b、http://mirrors.tuna.tsinghua.edu.cn说明使用清华大学的的镜像服务,九江的访问不够稳定
c、manjaro对应的linux镜像名称与发行版本名称一致
d、stable说明使用的稳定源,可以是testing或unstable源,有风险
e、后面的$repo/$arch就是套路,知道有这个内容就行了
(5)、我一般使用中国科大的软件源,但是清华的源是第一个,只要将第10行注释掉,也就是在行首加上个#就好了
(6)、这样实际起作用的就是第13行代码,其他依次类推,更加激进的是将不需要的行全部删除即可。
2、软件更改(需要有root的权限):
(1)、在线安装软件:pacman -S vim
(2)、离线安装软件:pacman -U vim
(3)、查询系统软件:pacman -Q vim
(4)、删除已装软件:pacman -R vim
(5)、升级全部软件:pacman -Syyu
3、安装必备的软件:
(1)、开发工具:gcc make gdb 前面三个必须,kdgb netbeans okteta bless选装等
(2)、编辑工具:vim kate atom vscode等任选一个即可
(3)、其他工具:qstardict字典翻译 kicad电路制版 umlet uml设计工具 arduino世界级的单片机开发工具 Fritzing开源的软件仿真工具
(4)、教育软件:Ktouch Ktuitle step等
(5)、游戏软件:0AD实时战争类 Wesnoth策略类 Chromium-bsu射击类游戏 SuperTux竞速类游戏 Ksudoku 数独游戏 pingus儿童类游戏 frozen bubble泡泡龙,assaultcube枪战类游戏相当不错 Xonotic也不错
(6)、其他推荐:chromium游览器的王者 firefox浏览器的万能 smplay看电影和听音乐的选择 kodi linux下的多媒体中心 VLC也不错 deepin-screen-recorder深度录屏工具也不错 simplescreenrecorder也不错
Linux下C编程入门(1)的更多相关文章
- Linux下串口编程入门
简介: Linux操作系统从一开始就对串行口提供了很好的支持,本文就Linux下的串行口通讯编程进行简单的介绍. 串口简介 串行口是计算机一种常用的接口,具有连接线少,通讯简单,得到广泛的使用.常用 ...
- Linux下C编程入门(7)
Linux下项目同步工具介绍git和github 一.远程仓库工具github 1. 一.本地操作工具git 1.
- 转载自~浮云比翼:Step by Step:Linux C多线程编程入门(基本API及多线程的同步与互斥)
Step by Step:Linux C多线程编程入门(基本API及多线程的同步与互斥) 介绍:什么是线程,线程的优点是什么 线程在Unix系统下,通常被称为轻量级的进程,线程虽然不是进程,但却可 ...
- linux 下 poll 编程
poll 与 select 很类似,都是对描述符进行遍历,查看是否有描述符就绪.如果有就返回就绪文件描述符的个数将.poll 函数如下: #include <poll.h> int pol ...
- Linux下Socket编程的端口问题( Bind error: Address already in use )
Linux下Socket编程的端口问题( Bind error: Address already in use ) 在进行linux网络编程时,每次修改了源代码并再次编译运行时,常遇到下面的地使用错误 ...
- Linux 下IOport编程訪问
曾经写的一篇笔记.偶尔翻出来了,放在这里做个纪念 Linux 下IOport编程訪问 这里记录的方法是在用户态訪问IOport,不涉及驱动程序的编写. 首先要包括头文件 /usr/include/as ...
- linux下socket编程实例
linux下socket编程实例一.基本socket函数Linux系统是通过提供套接字(socket)来进行网络编程的.网络的socket数据传输是一种特殊的I/O,socket也是一种文件描述符.s ...
- Linux 下shell 编程学习脚手架
linux body { font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height: 1.6; padding-t ...
- linux下libnet编程 亲自测试可用
linux下libnet编程 亲自测试可用 亲自测试 如果build包的时候 只要把类型改了 就能改成相应的协议. 0x0800 ip 0x0806 arp 0x86DD IPv6 0x86e ...
随机推荐
- AlertDialog的实现
课程Demo 重点解析自定义对话框 public class MainActivity extends AppCompatActivity { private Button bt1; private ...
- 【C++】异常简述(一):C语言中的异常处理机制
人的一生会遇到很多大起大落,尤其是程序员. 程序员写好的程序,论其消亡形式无非三种:无疾而终.自杀.他杀. 当然作为一名程序员,最乐意看到自己写的程序能够无疾而终,因此尽快的学习异常处理机制是非常重要 ...
- ECharts Map 属性详解
$(function() { // 路径配置 require.config({ paths : { // echarts: 'http://echarts.baidu.com/build/dist' ...
- jpa,querydsl
[TOC] # jpa ## 生成通用模板 实现自定义方法有两种方法: 1. 根据衍生规则进行实现,此种情况简单:查询方法衍生规则 http://docs.spring.io/spring-data/ ...
- 【译】x86程序员手册41-10.6 TLB(快表)测试
译注:本章基本未做翻译 10.6 TLB Testing TLB测试 The 80386 provides a mechanism for testing the Translation Lookas ...
- q-oo-p , a piggy domain name. Very cute. boyan.zheng at foxmail.com
Contact me.
- Shorthand Argument Names $0 : 只用于指代Closer声明中的形参
Shorthand Argument Names Swift automatically provides shorthand argument names to inline closures, w ...
- jQuery 超过字符截取部分用星号表示
$(function(){ var str = $('#num').text(); if (str.length >15) { var strend = str.substring(4,str. ...
- 机器学习_决策树Python代码详解
决策树优点:计算复杂度不高,输出结果易于理解,对中间值的缺失不敏感,可以处理不相关特征数据: 决策树缺点:可能会产生过度匹配问题. 决策树的一般步骤: (1)代码中def 1,计算给定数据集的香农熵: ...
- error while loading shared libraries: libclntsh.so.11.1
解决这个问题有两种方法 1.在当前用户下,添加链接库所在路径 LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_ ...