【工位ubuntu的配置】补充

2024-04-18 22:05
文章标签 配置 ubuntu 补充 工位

本文主要是介绍【工位ubuntu的配置】补充,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

软件

安装桌面图标的问题

在这里插入图片描述

登录密码

root的密码为:19980719
按照如下的链接进行配置:
https://blog.csdn.net/zhangmingfie/article/details/131102331?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-3-131102331-blog-123451471.235%5Ev38%5Epc_relevant_sort_base2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-3-131102331-blog-123451471.235%5Ev38%5Epc_relevant_sort_base2&utm_relevant_index=6

python开发环境

pyenv

查看可安装版本

pyenv install --list

解决办法:
https://blog.csdn.net/BigData_Mining/article/details/100100375
但是还是解决不了下载python3.6.10的问题,仍然出现如下错误:

changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/select.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_md5.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sysconfigdata_m_linux_x86_64-linux-gnu.py to 644
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_curses_panel.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_socket.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/resource.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_multibytecodec.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/xxlimited.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sha1.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/fcntl.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_struct.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/termios.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_json.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/array.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_asyncio.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_curses.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sqlite3.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_multiprocessing.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_testcapi.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_tkinter.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_blake2.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/pyexpat.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sha3.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_ctypes_test.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_testbuffer.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_elementtree.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sha256.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_testimportmultiple.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/parser.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_crypt.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/cmath.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_lzma.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sha512.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/zlib.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/ossaudiodev.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_pickle.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_lsprof.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_cn.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_ssl.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/math.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/grp.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_csv.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_testmultiphase.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/mmap.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_random.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_hk.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/audioop.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_tw.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_iso2022.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/spwd.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/binascii.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_opcode.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/nis.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc to 644
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.opt-1.pyc to 644
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.opt-2.pyc to 644
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_codecs_kr.cpython-36m-x86_64-linux-gnu.so to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/ to 755
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__ to 755
running install_scripts
copying build/scripts-3.6/pyvenv-3.6 -> /home/wangfeng/.pyenv/versions/3.6.10/bin
copying build/scripts-3.6/2to3-3.6 -> /home/wangfeng/.pyenv/versions/3.6.10/bin
copying build/scripts-3.6/idle3.6 -> /home/wangfeng/.pyenv/versions/3.6.10/bin
copying build/scripts-3.6/pydoc3.6 -> /home/wangfeng/.pyenv/versions/3.6.10/bin
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/bin/pyvenv-3.6 to 775
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/bin/2to3-3.6 to 775
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/bin/idle3.6 to 775
changing mode of /home/wangfeng/.pyenv/versions/3.6.10/bin/pydoc3.6 to 775
rm /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_sysconfigdata_m_linux_x86_64-linux-gnu.py
rm -r /home/wangfeng/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/__pycache__
Creating directory /home/wangfeng/.pyenv/versions/3.6.10/share/man
Creating directory /home/wangfeng/.pyenv/versions/3.6.10/share/man/man1
/usr/bin/install -c -m 644 ./Misc/python.man \/home/wangfeng/.pyenv/versions/3.6.10/share/man/man1/python3.6.1
if test ! -d /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig; then \echo "Creating directory /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig"; \/usr/bin/install -c -d -m 755 /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig; \
fi
if test -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3 -o -h /home/wangfeng/.pyenv/versions/3.6.10/bin/python3; \
then rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3; \
else true; \
fi
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s python3.6 python3)
if test "3.6" != "3.6m"; then \rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3.6-config; \(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s python3.6m-config python3.6-config); \rm -f /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig/python-3.6m.pc; \(cd /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig; ln -s python-3.6.pc python-3.6m.pc); \
fi
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3-config
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s python3.6-config python3-config)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig/python3.pc
(cd /home/wangfeng/.pyenv/versions/3.6.10/lib/pkgconfig; ln -s python-3.6.pc python3.pc)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/idle3
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s idle3.6 idle3)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/pydoc3
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s pydoc3.6 pydoc3)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/2to3
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s 2to3-3.6 2to3)
rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/pyvenv
(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s pyvenv-3.6 pyvenv)
if test "x" != "x" ; then \rm -f /home/wangfeng/.pyenv/versions/3.6.10/bin/python3-32; \(cd /home/wangfeng/.pyenv/versions/3.6.10/bin; ln -s python3.6-32 python3-32) \
fi
rm -f /home/wangfeng/.pyenv/versions/3.6.10/share/man/man1/python3.1
(cd /home/wangfeng/.pyenv/versions/3.6.10/share/man/man1; ln -s python3.6.1 python3.1)
if test "xupgrade" != "xno"  ; then \case upgrade in \upgrade) ensurepip="--upgrade" ;; \install|*) ensurepip="" ;; \esac; \LD_LIBRARY_PATH=/tmp/python-build.20231107105403.227735/Python-3.6.10 ./python -E -m ensurepip \$ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmp7unpx4wj
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-18.1 setuptools-40.6.2
/home/wangfeng/.pyenv/plugins/python-build/bin/python-build: line 1835: 239201 Segmentation fault      (core dumped) "$PYTHON_BIN" -c "import $1"
WARNING: The Python ctypes extension was not compiled. Missing the libffi lib?
/home/wangfeng/.pyenv/plugins/python-build/bin/python-build: line 2056: 239209 Segmentation fault      (core dumped) "$PYTHON_BIN" $python_opts -m ensurepip ${ensurepip_opts} > /dev/null 2>&1
Installing pip from https://bootstrap.pypa.io/pip/3.6/get-pip.py...
/home/wangfeng/.pyenv/plugins/python-build/bin/python-build: line 2032: 239214 Segmentation fault      (core dumped) "${PYTHON_BIN}" -s "${get_pip}" ${GET_PIP_OPTS} 1>&4 2>&1
error: failed to install pip via get-pip.pyBUILD FAILED (Ubuntu 22.04 using python-build 2.3.31)Inspect or clean up the working tree at /tmp/python-build.20231107105403.227735
Results logged to /tmp/python-build.20231107105403.227735.logLast 10 log lines:install|*) ensurepip="" ;; \esac; \LD_LIBRARY_PATH=/tmp/python-build.20231107105403.227735/Python-3.6.10 ./python -E -m ensurepip \$ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmp7unpx4wj
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-18.1 setuptools-40.6.2

1.尝试安装下其他版本的Python试试,检查是python版本的问题还是pyenv的安装环境
安装3.10.5是可以的

wangfeng@wangfeng-HP-ProDesk-680-G6-PCI-Microtower-PC:~$ pyenv install 3.10.5
Downloading Python-3.10.5.tar.xz...
-> https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tar.xz
Installing Python-3.10.5...
Installed Python-3.10.5 to /home/wangfeng/.pyenv/versions/3.10.5

2:官方说稳定版是3.6.15

wangfeng@wangfeng-HP-ProDesk-680-G6-PCI-Microtower-PC:~$ pyenv install 3.10.5
Downloading Python-3.10.5.tar.xz...
-> https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tar.xz
Installing Python-3.10.5...
Installed Python-3.10.5 to /home/wangfeng/.pyenv/versions/3.10.5
wangfeng@wangfeng-HP-ProDesk-680-G6-PCI-Microtower-PC:~$ pyenv install 3.6.15
Downloading Python-3.6.15.tar.xz...
-> https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz
Installing Python-3.6.15...
patching file configure
patching file configure.ac
patching file Misc/NEWS.d/next/macOS/2019-06-03-05-49-49.bpo-36231.RfmW_p.rst
patching file setup.py
patching file setup.py
patching file Doc/library/ctypes.rst
patching file Lib/test/test_unicode.py
patching file Modules/_ctypes/_ctypes.c
patching file Modules/_ctypes/callproc.c
patching file Modules/_ctypes/ctypes.h
patching file setup.py
patching file Misc/NEWS.d/next/macOS/2020-06-24-13-51-57.bpo-41100.mcHdc5.rst
patching file configure
patching file configure.ac
patching file 'Misc/NEWS.d/next/Core and Builtins/2020-06-30-04-44-29.bpo-41100.PJwA6F.rst'
patching file Modules/_decimal/libmpdec/mpdecimal.h
patching file setup.py
patching file Misc/NEWS.d/next/Build/2021-10-11-16-27-38.bpo-45405.iSfdW5.rst
patching file configure
patching file configure.ac
patching file 'Misc/NEWS.d/next/Core and Builtins/2019-04-16-11-52-21.bpo-27987.n2_DcQ.rst'
patching file Objects/obmalloc.c
patching file Include/objimpl.h
patching file 'Misc/NEWS.d/next/Core and Builtins/2019-05-15-18-28-43.bpo-27987.FaxuLy.rst'
Installed Python-3.6.15 to /home/wangfeng/.pyenv/versions/3.6.15

#SSH配置

wangfeng@wangfeng-HP-ProDesk-680-G6-PCI-Microtower-PC:~$ ssh-keygen -t ed25519 -C "<comment>"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/wangfeng/.ssh/id_ed25519): 
/home/wangfeng/.ssh/id_ed25519 already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase): 19980719
Enter same passphrase again: 
Your identification has been saved in /home/wangfeng/.ssh/id_ed25519
Your public key has been saved in /home/wangfeng/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:11D12P2AoQgkWaHtteulvK2TODlqoB7ptwsGO99rrbg <comment>
The key's randomart image is:
+--[ED25519 256]--+
|    .+=.    o..  |
|    .+ . . o o +.|
|    . . o o . o +|
|     . . . o   ..|
|.     . S . .   .|
|..o      o       |
|o* . . o...      |
|+oo+o *oo+       |
|.oE*B+ o*+.      |
+----[SHA256]-----+

bashrc中的内容的修改

##出现文件错误:
bash: /home/wangfeng/.bashrc: line 130: syntax error: unexpected end of file

# >>> VSCode venv deactivate hook >>>
# source ~/.vscode-python/deactivate
#  set variable identifying the chroot you work in (used in the prompt below)
# if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
#    debian_chroot=$(cat /etc/debian_chroot)
# fi# <<< VSCode venv deactivate hook <<<

重新恢复之前的配置

新增的内容是:pyenv的初始化配置

if ! shopt -oq posix; thenif [ -f /usr/share/bash-completion/bash_completion ]; then. /usr/share/bash-completion/bash_completionelif [ -f /etc/bash_completion ]; then. /etc/bash_completionfi
fi
export PYENV_ROOT=~/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
# export PATH="/home/wangfeng/.local/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)".
export PATH="/home/wangfeng/.local/bin:$PATH"
# fi
# export PYENV_ROOT=~/.pyenv
# export PATH=$PYENV_ROOT/bin:$PATH
# eval "$(pyenv init --path)"
# eval "$(pyenv init -)
# "

vscode中的内容

# >>> VSCode venv deactivate hook >>>
source ~/.vscode-python/deactivate
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; thendebian_chroot=$(cat /etc/debian_chroot)
fi # <<< VSCode venv deactivate hook <<<x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

重复的内容

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; thenif [ -f /usr/share/bash-completion/bash_completion ]; then. /usr/share/bash-completion/bash_completionelif [ -f /etc/bash_completion ]; then. /etc/bash_completionfi
fi
export PYENV_ROOT=~/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
# export PATH="/home/wangfeng/.local/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)".
export PATH="/home/wangfeng/.local/bin:$PATH"
fi
export PYENV_ROOT=~/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
eval "$(pyenv init --path)"
eval "$(pyenv init -)
"# >>> VSCode venv deactivate hook >>>
source ~/.vscode-python/deactivate
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; thendebian_chroot=$(cat /etc/debian_chroot)
fi # <<< VSCode venv deactivate hook <<<c

更改为默认设置

https://blog.csdn.net/qq_31676483/article/details/114108380

重新安装pyenv
echo 'export PYENV_ROOT=~/.pyenv' >> ~/.bashrc && \
echo 'export PATH=$PYENV_ROOT/bin:$PATH' >> ~/.bashrc && \
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc && \
echo 'eval "$(pyenv init -)"' >> ~/.bashrc

VScode的设置

同时打开多个窗口

https://blog.51cto.com/u_15127508/3442293

服务器查看gpu资源

(xtuner-env) [hadoop-mtai@set-zw03-kubernetes-pc242 ~]$ lspci | grep -i nvidia
04:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
05:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
08:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
09:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
85:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
86:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
89:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)
8a:00.0 3D controller: NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB] (rev a1)

lspci:这是一个Linux命令,用于列出PCI设备的信息。PCI(Peripheral Component Interconnect)是一种用于连接计算机主板与外围设备的总线标准。
grep -i nvidia:grep 是一个用于文本搜索的工具,-i 参数表示忽略大小写,所以这里它会搜索所有包含“nvidia”的行(这里的i是“ignore-case”的缩写)
04:00.0, 05:00.0, 08:00.0, …:这些是PCI设备的地址。每个GPU设备在PCI总线上都有一个唯一的地址。
3D controller:这表示这些设备是3D图形控制器,也就是GPU(图形处理单元)。
NVIDIA Corporation GV100GL [Tesla V100 PCIe 32GB]:这是设备的制造商和型号。这里,它们都是NVIDIA的Tesla V100 GPU,具有PCIe接口和32GB的显存。

这篇关于【工位ubuntu的配置】补充的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/915941

相关文章

C#读取本地网络配置信息全攻略分享

《C#读取本地网络配置信息全攻略分享》在当今数字化时代,网络已深度融入我们生活与工作的方方面面,对于软件开发而言,掌握本地计算机的网络配置信息显得尤为关键,而在C#编程的世界里,我们又该如何巧妙地读取... 目录一、引言二、C# 读取本地网络配置信息的基础准备2.1 引入关键命名空间2.2 理解核心类与方法

在Ubuntu上部署SpringBoot应用的操作步骤

《在Ubuntu上部署SpringBoot应用的操作步骤》随着云计算和容器化技术的普及,Linux服务器已成为部署Web应用程序的主流平台之一,Java作为一种跨平台的编程语言,具有广泛的应用场景,本... 目录一、部署准备二、安装 Java 环境1. 安装 JDK2. 验证 Java 安装三、安装 mys

最新版IDEA配置 Tomcat的详细过程

《最新版IDEA配置Tomcat的详细过程》本文介绍如何在IDEA中配置Tomcat服务器,并创建Web项目,首先检查Tomcat是否安装完成,然后在IDEA中创建Web项目并添加Web结构,接着,... 目录配置tomcat第一步,先给项目添加Web结构查看端口号配置tomcat    先检查自己的to

Servlet中配置和使用过滤器的步骤记录

《Servlet中配置和使用过滤器的步骤记录》:本文主要介绍在Servlet中配置和使用过滤器的方法,包括创建过滤器类、配置过滤器以及在Web应用中使用过滤器等步骤,文中通过代码介绍的非常详细,需... 目录创建过滤器类配置过滤器使用过滤器总结在Servlet中配置和使用过滤器主要包括创建过滤器类、配置过滤

如何评价Ubuntu 24.04 LTS? Ubuntu 24.04 LTS新功能亮点和重要变化

《如何评价Ubuntu24.04LTS?Ubuntu24.04LTS新功能亮点和重要变化》Ubuntu24.04LTS即将发布,带来一系列提升用户体验的显著功能,本文深入探讨了该版本的亮... Ubuntu 24.04 LTS,代号 Noble NumBAT,正式发布下载!如果你在使用 Ubuntu 23.

什么是 Ubuntu LTS?Ubuntu LTS和普通版本区别对比

《什么是UbuntuLTS?UbuntuLTS和普通版本区别对比》UbuntuLTS是Ubuntu操作系统的一个特殊版本,旨在提供更长时间的支持和稳定性,与常规的Ubuntu版本相比,LTS版... 如果你正打算安装 Ubuntu 系统,可能会被「LTS 版本」和「普通版本」给搞得一头雾水吧?尤其是对于刚入

如何安装 Ubuntu 24.04 LTS 桌面版或服务器? Ubuntu安装指南

《如何安装Ubuntu24.04LTS桌面版或服务器?Ubuntu安装指南》对于我们程序员来说,有一个好用的操作系统、好的编程环境也是很重要,如何安装Ubuntu24.04LTS桌面... Ubuntu 24.04 LTS,代号 Noble NumBAT,于 2024 年 4 月 25 日正式发布,引入了众

Ubuntu 怎么启用 Universe 和 Multiverse 软件源?

《Ubuntu怎么启用Universe和Multiverse软件源?》在Ubuntu中,软件源是用于获取和安装软件的服务器,通过设置和管理软件源,您可以确保系统能够从可靠的来源获取最新的软件... Ubuntu 是一款广受认可且声誉良好的开源操作系统,允许用户通过其庞大的软件包来定制和增强计算体验。这些软件

如何安装HWE内核? Ubuntu安装hwe内核解决硬件太新的问题

《如何安装HWE内核?Ubuntu安装hwe内核解决硬件太新的问题》今天的主角就是hwe内核(hardwareenablementkernel),一般安装的Ubuntu都是初始内核,不能很好地支... 对于追求系统稳定性,又想充分利用最新硬件特性的 Ubuntu 用户来说,HWEXBQgUbdlna(Har

Ubuntu 24.04 LTS怎么关闭 Ubuntu Pro 更新提示弹窗?

《Ubuntu24.04LTS怎么关闭UbuntuPro更新提示弹窗?》Ubuntu每次开机都会弹窗提示安全更新,设置里最多只能取消自动下载,自动更新,但无法做到直接让自动更新的弹窗不出现,... 如果你正在使用 Ubuntu 24.04 LTS,可能会注意到——在使用「软件更新器」或运行 APT 命令时,