Script to compile vim

Categories: Uncategorized
This script is aimed at compiling vim with minimal installation of CentOS with development tool and WebGUI: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 yum groupinstall "Development tools" yum install ncurses ncurses-devel -y yum install perl-ExtUtils-Embed -y yum install python-devel -y yum install ruby,ruby-devel -y yum install lua,lua-devel,luajit,luajit-devel -y cd ~ git clone https://github.

Read More →

Install Cinnamon GUI In CentOS 7 Linux

Categories: Uncategorized
Due to recently compatability issue of MATE Desktop, I swtiched back to Gnome. But I also added a Cinnamon Desktop. 1 2 3 4 5 yum install epel-release -y yum groupinstall "Server with GUI" -y yum install cinnamon -y systemctl get-default #I should get multi-user.target systemctl set-default graphical.target

Replace a String in Multiple Files in Linux Using Grep and Sed

Categories: Uncategorized
Basic Format 1 grep -rl matchstring somedir/ | xargs sed -i 's/string1/string2/g' Note: The forward slash ‘/’ delimiter in the sed argument could also be a different delimiter (such as the pipe ‘|’ character). The pipe delimiter might be useful when searching through a lot of html files if you didn’t want to escape the forward slash, for instance. matchstring is the string you want to match, e.

Read More →