debian8 install instruction

Linux系统配置与优化指南
本文详细介绍了一系列Linux系统的配置与优化方法,包括增加用户到sudo组、安装gconf-editor及Fcitx输入法、配置Firefox浏览器、安装Adobe Flash Player、无线驱动安装、PDF显示问题解决等,帮助用户提升Linux系统的使用体验。
add user to sudo:
    modify the file: /etc/sudoers

add gconf-editor:
sudo apt-get install gconf-editor

intall fcitx:
    sudo apt-get install fcitx fcitx-sunpinyin fcitx-libpinyin fcitx-googlepinyin
    gsettings set org.gnome.settings-daemon.plugins.keyboard active false
    configure fcitx from fcitx configuration
    im-config -n fcitx
    Reboot or log out the user

install firefox:
    "be carefull, due to gnome will be removed, better not do this command """apt-get remove iceweasel"
    tar -vxjf firefox-latest.tar.bz2 -C /opt/
    sudo mv /usr/bin/firefox /usr/bin/firefox-old
    sudo ln -s /opt/firefox/firefox /usr/bin/firefox

    configure firefox, warning when close firefox with two or more tabs openning:
    about:config
    showQuitWarning--->true

install adobe flash player for firefox:
    download adobe flash player
    tar -xzvf install_flash*.tar.gz
    sudo cp libflashplayer.so /usr/lib/mozilla/plugins

install wireless driver for laptop:
    tar -zxvf iwlwifi-5000-ucode-8.24.2.12.tgz
    sudo cp -v iwlwifi-5000-2.ucode /lib/fireware
    reboot

pdf display wrong:
    sudo apt-get install poppler-data

gedit display wrong:
    gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16']"

convert the name of file from GBK to UTF8:
    sudo apt-get install convmv
    convmv -r -f cp936 -t utf8 --notest --nosmart *
convert the content of file from GBK to UTF8:
    iconv -f gbk -u utf8 $i > newfile


compress && decompress:
    sudo apt-get install p7zip p7zip-full p7zip-rar zip unzip
    examples:
        7z a -t7z files.7z *.txt
        7z x files.zip
        7z d -r files.zip *.bak
        7z l files.7z
        7z t -r files.zip *.doc
        7z u files.zip *.doc

the kernel:
    uname -a
    lsb_release -a

mp3:
    sudo apt-get install convmv iconv python-mutagen
    find . -iname "*.mp3" -execdir mid3iconv -e GBK {} \;

install ctags:
    sudo apt-get install exuberant-ctags

change ctrl+del to del:
    cd /home/user/.config/nautilus
    edit the accel file by changing:
    (gtk_accel_path "<Actions>/DirViewActions/Trash" "<Primary>Delete")
    to
    (gtk_accel_path "<Actions>/DirViewActions/Trash" "Delete")

zip:
    sudo apt-get install p7zip convmv

    LANG=C 7za x your-zip-file.zip
    convmv -f GBK -t utf8 --notest -r .

    第一条命令用于解压缩,而LANG=C表示以US-ASCII这样的编码输出文件名,如果没有这个语言设置,它同样会输出乱码,只不过是UTF8格式的乱码(convmv会忽略这样的乱码)。

    第二条命令是将GBK编码的文件名转化为UTF8编码,-r表示递归访问目录,即对当前目录中所有文件进行转换。


root@ubuntu:~/exploit-CVE-2015-3306-master# vi Dockerfile root@ubuntu:~/exploit-CVE-2015-3306-master# docker build --no-cache -t vuln/cve-2015-3306 . [+] Building 8.3s (6/11) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.22kB 0.0s => WARN: NoEmptyContinuation: Empty continuation line (line 33) 0.0s => WARN: MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label (line 3) 0.0s => [internal] load metadata for docker.io/library/debian:jessie 0.2s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [1/7] FROM docker.io/library/debian:jessie@sha256:32ad5050caffb2c7e969dac873bce2c370015c2256ff 0.0s => [internal] load build context 0.0s => => transferring context: 29B 0.0s => ERROR [2/7] RUN sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list && sed -i 's 8.0s ------ > [2/7] RUN sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list && sed -i 's|security.debian.org|archive.debian.org/debian-security|g' /etc/apt/sources.list && echo "Acquire::Check-Valid-Until "false";" > /etc/apt/apt.conf.d/99no-check-valid-until && apt-get update && apt-get install -y --force-yes gnupg && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8B48AD6246925553 7638D0442B90D010 && apt-get update: 0.773 Ign http://archive.debian.org jessie InRelease 1.342 Ign http://archive.debian.org jessie/updates InRelease 1.747 Ign http://archive.debian.org jessie-updates InRelease 1.847 Get:1 http://archive.debian.org jessie Release.gpg [2420 B] 2.145 Ign http://archive.debian.org jessie/updates Release.gpg 2.396 Ign http://archive.debian.org jessie-updates Release.gpg 2.497 Get:2 http://archive.debian.org jessie Release [148 kB] 2.728 Ign http://archive.debian.org jessie Release 3.170 Ign http://archive.debian.org jessie/updates Release 3.588 Ign http://archive.debian.org jessie-updates Release 3.688 Get:3 http://archive.debian.org jessie/main amd64 Packages [9098 kB] 7.679 Err http://archive.debian.org jessie/updates/main amd64 Packages 7.679 404 Not Found [IP: 151.101.2.132 80] 7.934 Err http://archive.debian.org jessie-updates/main amd64 Packages 7.934 404 Not Found [IP: 151.101.2.132 80] 7.936 Fetched 9249 kB in 7s (1214 kB/s) 7.936 W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717 7.936 W: Failed to fetch http://archive.debian.org/debian-security/debian-security/dists/jessie/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.2.132 80] 7.936 7.936 W: Failed to fetch http://archive.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.2.132 80] 7.936 7.936 E: Some index files failed to download. They have been ignored, or old ones used instead. ------ 2 warnings found (use docker --debug to expand): - MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label (line 3) - NoEmptyContinuation: Empty continuation line (line 33) Dockerfile:11 -------------------- 10 | 11 | >>> RUN sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list && \ 12 | >>> sed -i 's|security.debian.org|archive.debian.org/debian-security|g' /etc/apt/sources.list && \ 13 | >>> echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf.d/99no-check-valid-until && \ 14 | >>> apt-get update && \ 15 | >>> apt-get install -y --force-yes gnupg && \ 16 | >>> apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8B48AD6246925553 7638D0442B90D010 && \ 17 | >>> apt-get update 18 | -------------------- ERROR: failed to solve: process "/bin/sh -c sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list && sed -i 's|security.debian.org|archive.debian.org/debian-security|g' /etc/apt/sources.list && echo \"Acquire::Check-Valid-Until \\\"false\\\";\" > /etc/apt/apt.conf.d/99no-check-valid-until && apt-get update && apt-get install -y --force-yes gnupg && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8B48AD6246925553 7638D0442B90D010 && apt-get update" did not complete successfully: exit code: 100 又变了,报错信息
最新发布
07-05
root@ubuntu:~/exploit-CVE-2015-3306-master# vi Dockerfile root@ubuntu:~/exploit-CVE-2015-3306-master# docker build -t vuln/cve-2015-3306 . [+] Building 8.4s (7/10) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 827B 0.0s => WARN: MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label (line 5) 0.0s => [internal] load metadata for docker.io/library/debian:jessie 0.3s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [1/6] FROM docker.io/library/debian:jessie@sha256:32ad5050caffb2c7e969dac873bce2c370015c2256ff 0.0s => [internal] load build context 0.0s => => transferring context: 29B 0.0s => [2/6] RUN sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list && sed -i 's|secur 0.3s => ERROR [3/6] RUN apt-get update && apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-ge 7.8s ------ > [3/6] RUN apt-get update && apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-get install -y wget apache2 php5 gcc make && apt-get clean && rm -rf /var/lib/apt/lists/*: 0.799 Ign http://archive.debian.org jessie InRelease 1.249 Ign http://archive.debian.org jessie/updates InRelease 1.514 Ign http://archive.debian.org jessie-updates InRelease 1.618 Get:1 http://archive.debian.org jessie Release.gpg [2420 B] 2.168 Ign http://archive.debian.org jessie/updates Release.gpg 2.421 Ign http://archive.debian.org jessie-updates Release.gpg 2.523 Get:2 http://archive.debian.org jessie Release [148 kB] 2.754 Ign http://archive.debian.org jessie Release 3.305 Ign http://archive.debian.org jessie/updates Release 3.558 Ign http://archive.debian.org jessie-updates Release 3.658 Get:3 http://archive.debian.org jessie/main amd64 Packages [9098 kB] 7.468 Err http://archive.debian.org jessie/updates/main amd64 Packages 7.468 404 Not Found [IP: 151.101.130.132 80] 7.723 Err http://archive.debian.org jessie-updates/main amd64 Packages 7.723 404 Not Found [IP: 151.101.130.132 80] 7.724 Fetched 9249 kB in 7s (1260 kB/s) 7.725 W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717 7.725 W: Failed to fetch http://archive.debian.org/debian-security/debian-security/dists/jessie/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.130.132 80] 7.725 7.725 W: Failed to fetch http://archive.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.130.132 80] 7.725 7.725 E: Some index files failed to download. They have been ignored, or old ones used instead. ------ 1 warning found (use docker --debug to expand): - MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label (line 5) Dockerfile:11 -------------------- 10 | # install debian stuff 11 | >>> RUN apt-get update && \ 12 | >>> apt-get upgrade -y && \ 13 | >>> DEBIAN_FRONTEND=noninteractive apt-get install -y \ 14 | >>> wget apache2 php5 gcc make \ 15 | >>> && apt-get clean && rm -rf /var/lib/apt/lists/* 16 | -------------------- ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-get install -y wget apache2 php5 gcc make && apt-get clean && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100 更改以后运行命令还是爆粗
07-05
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值