Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to dress up your Linux like a hacker screen

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to dress up your Linux like a hacker screen. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Configure Vim, add syntax highlighting and other plug-ins

Because the Debian GNU/Linux system already uses Vim version 7.4 by default, you can use the command vi / etc/vim/vimrc to add the following:

Syntax onfileype plugin indent onset hlsearch

These three options directly turn on syntax and search highlighting, file type detection and other functions.

To install Vim-related plug-ins, you can use the command:

Apt-get install vim-addon-manager vim-addon-mw-utils\ vim-gocomplete vim-erlang vim-erlang-syntax vim-gnome\ vim-gocomplete vim-perl vim-python vim-ruby vim-scripts\ vim-syntax-docker vim-syntax-go vim-syntax-gtk vim-tcl\ vim-vimerl vim-vimerl-syntax vim-vimoutliner vim-youcompleteme configure root users local Bash environment variables to support color display

Using the command vi ~ / .bashrc, you will read the following:

Alias ls='ls $LS_OPTIONS'alias ll='ls $LS_OPTIONS-l'alias l='ls $LS_OPTIONS-lA'

Remove the # from three lines ago.

Install and configure guake and screen

Install and configure the guake terminal and use the command apt-get install guake to complete the installation.

Add it to the boot startup program of gnome3, and then you can directly call in and call out the terminal for command line operation as long as you use the function key F12. After F12 is called out, you can right-click the preferences to set it. Users are advised to refer to the configuration as shown in the figure:

To install screen, use the command apt-get install screen.

The / usr/bin/screen option appears in the default interpreter list of the user's guake terminal, which can be directly specified by the user. If you use F12 to call out the guake terminal again, you can directly use the screen shortcut key to split the screen.

The common shortcut keys for screen are as follows:

Ctrl+a S split current window horizontally

Ctrl+a | split the current window vertically

Ctrl+a c create a new window running shell and switch to that window

Ctrl+a X closes the current window

Ctrl+a x Lock the current window

Ctrl+a k kills the current window

The completed effect is as follows:

Modify the prompt

Using the command vi / etc/bash.bashrc, modify the PS1 content as follows:

PS1='\ [\ e [34bot 1m\]\ t ${debian_chroot:+ ($debian_chroot)}\ [\ e [32x 1m\] [\ e [33x 1m\]\ u\ [\ e [31x 1m\] @\ [\ e [33x 1m\]\ h\ [\ e [36x 1m\]\ w\ [\ e [32101m\]]\ [\ e [3410m\]\ $\ [\ e [31m\]'

Use the command vi ~ / .bashrc to find if ["$color_prompt" = yes]; then, and modify the current user PS1 content as shown in the following example.

If ["$color_prompt" = yes]; then PS1='$ {debian_chroot:+ ($debian_chroot)}\ [\ 033 [01x 32m\]\ u@\ h\ [\ 033 [00m\]:\ [033 [01th 34m\]\ w\ [\ 033 [00m\]\ $'else # PS1='$ {debian_chroot:+ ($debian_chroot)}\ u@\ h:\ w\ $' PS1='\ [\ e [34 1m\]\ t ${debian_chroot:+ ($debian_chroot)}\ [\ e [32x 1m\] [\ e [33x 1m\]\ u\ [\ e [31x 1m\] @\ e [33x 1m\]\ h\ [\ e [36th 1m\]\ w\ [\ e [32trans1m\]]\\ e [34trans1m\]\ $\ [\ e [0m\]'fi

This is the end of the article on "how to dress up your Linux like a hacker screen". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report