包含标签 ubuntu 的文章

ubuntu18.04使用xrdp远程桌面

1. 执行下面的脚本安装 http://www.c-nergy.be/downloads/install-xrdp-3.0.zip root@dongfeng-virtual-machine:/home/dongfeng# cat Install-xrdp-3.0.sh #!/bin/bash ##################################################################################################### # Script_Name : install-xrdp-3.0.sh # Description : Perform a custom installation of xrdp # on ubuntu 18.04 and later # Date : May 2019 # written by : Griffon # Web Site :http://www.c-nergy.be - http://www.c-nergy.be/blog # Version : 3.0 # History : 3.0 - Added support for Ubuntu 19.04 # - New code for Look'n feel using xsessionrc method # - New code for enabling Sound Redirection - compiling from source # - Removed -g parameter # : 2.……

阅读全文

创建ubuntu docker镜像

1. 创建Dockerfile [dongfeng@localhost test]$ cat Dockerfile FROM ubuntu:18.04 MAINTAINER The UbuntuOS Project <dongfeng@baicells.com> ENV container docker ENV LC_ALL C ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/# deb/deb/g' /etc/apt/sources.list RUN apt-get update -yqq \ && apt-get install -yq apt-utils \ && apt-get install -yq curl \ && apt-get install -yq git \ && apt-get install -yq unzip zip tar \ && apt-get install -yq ca-certificates \ && apt-get install -yq bash-completion \ && apt-get install -yq iproute2 iputils-ping \ && apt-get install -yq systemd systemd-sysv \ && apt-get clean \ && apt-get autoclean \ && apt-get autoremove \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN cd /lib/systemd/system/sysinit.……

阅读全文

创建ubuntu基础镜像

1. 安装debootstrap ubuntu操作系统:apt install debootstrap centos操作系统:yum install debootstrap 2. 构建基础Ubuntu的rootfs mkdir /mnt/rootfs debootstrap --verbose --arch=amd64 bionic /mnt/rootfs http://mirrors.aliyun.com/ubuntu 说明:bionic为ubuntu代号,/mnt/rootfs为存放rootfs目录 3. 配置rootfs #切换根 chroot . #安装依赖包 apt-get -y update apt-get -y upgrade apt-get -y install vim locales iproute2 gzip curl sudo tar zip unzip telnet openssl gcc make openssh-server openssh-client #创建用户 useradd -m dongfeng echo "root:baicells" | chpasswd echo "dongfeng:baicells" | chpasswd #配置sshd mkdir /run/sshd mkdir /var/run/sshd sshd -D echo UseDNS no >> /etc/ssh/sshd_config #其他配置 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime dpkg-reconfigure locales rm -Rf /tmp/* && apt clean #清理系统 rm -rf boot/ dev/ media/ mnt/ proc/ srv/ sys/echo > root/.……

阅读全文

ubuntu搭建gitlab服务器

1. 安装docker替换国内镜像源 #卸载之前的docker版本 sudo apt-get remove docker docker-engine docker-ce docker.io #apt元数据更新 sudo apt-get update #安装以下包,以使apt可以通过https来使用repository sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common #添加docker官方GPG秘钥并更新元数据 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-get update #添加docker仓库 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update #列出docker可用版本,选择一个安装 sudo apt-cache madison docker-ce sudo apt-get install docker-ce= #替换docker镜像源 sudo vim /etc/docker/daemon.json,添加 { "registry-mirrors": ["https://9w1hl6qt.mirror.aliyuncs.com"] } 2. 安装docker-compose yum -y install epel-release yum -y install python-pip pip install --upgrade pip pip install docker-compose #或者二进制安装 curl -L https://github.……

阅读全文

最近文章

分类

标签

友情链接

其它