Differences
This shows you the differences between two versions of the page.
— | techwiki:centos [2021/08/28 08:57] (current) – created ying | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== CentOS 7 Install ====== | ||
+ | |||
+ | * download DVD version: https:// | ||
+ | |||
+ | * read this install guide first: http:// | ||
+ | * note: the default option is install server edition without GUI, make sure in " | ||
+ | * double check the installation summary > software selection, and choose the last one with GU | ||
+ | |||
+ | * during installer summary, if you want to format existing disk, | ||
+ | * in " | ||
+ | - select the disk | ||
+ | - under other storage option, select "Auto configure partitioning" | ||
+ | - in pop-up partition table, select the partition or disk and click " | ||
+ | * then you got a clean disk to install, uncheck "I would like to make additional space available" | ||
+ | |||
+ | * while installing, set the pass for ROOT user, and set the pass and name for yourself | ||
+ | |||
+ | * screen shot \\ {{: | ||
+ | |||
+ | ===== Install Problem and Fix ===== | ||
+ | |||
+ | ==== Get Everything working in VirtualBox ==== | ||
+ | |||
+ | * [[: | ||
+ | |||
+ | ** < | ||
+ | |||
+ | * check network connection status and find the Ethernet type status with the connection name< | ||
+ | * edit the config for that connection <code bash> | ||
+ | sudo vi / | ||
+ | |||
+ | # add following | ||
+ | DNS1=8.8.8.8 | ||
+ | DNS2=8.8.4.4 | ||
+ | ONBOOT=yes | ||
+ | </ | ||
+ | * additional note < | ||
+ | BOOTPROTO=dhcp # for auto ip get | ||
+ | </ | ||
+ | * reset the network by reboot or restart network <code bash> | ||
+ | |||
+ | ** < | ||
+ | |||
+ | - make sure EPEL repo already installed | ||
+ | - install folowing <code bash> | ||
+ | sudo yum groupinstall " | ||
+ | sudo yum install kernel-devel | ||
+ | </ | ||
+ | - restart computer, then install guess tool as usual | ||
+ | |||
+ | ==== Fix Yum can't find anything after dropbox install ==== | ||
+ | |||
+ | * Problem: | ||
+ | * " | ||
+ | * Solution: <code bash> | ||
+ | cd / | ||
+ | sudo rm dropbox.repo | ||
+ | </ | ||
+ | |||
+ | ==== USB Wifi not show wifi list ==== | ||
+ | |||
+ | * on the top right corner drop down menu, Wifi setting panel | ||
+ | * try click on " | ||
+ | * if not connected after a while, try install wifi < | ||
+ | * restart, try above again, even though it not show the list, it should still be able to connect. | ||
+ | |||
+ | ====== Customize OS ====== | ||
+ | |||
+ | ===== Other Desktop environment ===== | ||
+ | |||
+ | |||
+ | * desktop environment option and install guide: http:// | ||
+ | * install cmd <code bash> | ||
+ | # gnome: the desktop with (Start menu, | ||
+ | yum -y groups install "GNOME Desktop" | ||
+ | startx | ||
+ | |||
+ | # -- use gnome shell mode instead centos default gnome classic mode | ||
+ | echo "exec gnome-session" | ||
+ | startx | ||
+ | # -- or in set login and choose from list | ||
+ | systemctl set-default graphical.target | ||
+ | |||
+ | # KDE: windows like bottom (start menu, taskbar, space) | ||
+ | yum -y groups install "KDE Plasma Workspaces" | ||
+ | echo "exec startkde" | ||
+ | startx | ||
+ | |||
+ | # cinnamon: more like windows 7 | ||
+ | # Add the EPEL Repository by fedora, set [priority=5] or optionally change to [enabled=0] | ||
+ | yum -y install epel-release | ||
+ | sed -i -e " | ||
+ | sed -i -e " | ||
+ | yum --enablerepo=epel install [Package] # if [enabled=0], | ||
+ | # install | ||
+ | yum --enablerepo=epel -y install cinnamon* | ||
+ | echo "exec / | ||
+ | startx | ||
+ | |||
+ | # MATE: basically GNOME 2, looks like windows XP on skin with (Application, | ||
+ | yum --enablerepo=epel -y groups install "MATE Desktop" | ||
+ | echo "exec / | ||
+ | startx | ||
+ | |||
+ | # xfce: looks like above but low quality like | ||
+ | yum --enablerepo=epel -y groups install " | ||
+ | echo "exec / | ||
+ | startx | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== install MATE lightweight desktop environment ===== | ||
+ | |||
+ | - get fedora repo with ask yes <code bash> | ||
+ | - get all user install MATE <code bash> | ||
+ | - restart and login button gear icon will give the choice list now \\ {{: | ||
+ | - if you want uninstall <code bash> | ||
+ | |||
+ | |||
+ | =====disable alt move window hotkey===== | ||
+ | |||
+ | * control panel > Window > Behavior, change alt key to super key \\ {{: | ||
+ | |||
+ | =====create system shortcut===== | ||
+ | |||
+ | * Settings >> keyboard >> click " | ||
+ | * example: | ||
+ | * name as terminal, command as | ||
+ | * for gnome 3 desktop < | ||
+ | * for mate desktop < | ||
+ | * shortcut as Ctrl+F2 | ||
+ | |||
+ | ====== Install Library ====== | ||
+ | |||
+ | <code bash> | ||
+ | sudo yum install libGLU | ||
+ | </ | ||
+ | |||
+ | ====== Install App list ====== | ||
+ | |||
+ | **Firefox Update** | ||
+ | * cmd <code bash> | ||
+ | |||
+ | **Dukto - lan transfer tool** | ||
+ | * go download: https:// | ||
+ | * on the page, choose the your linux distribution type, then choose grab binary, for centos, grab the x86_64 rpm installer. | ||
+ | **filezilla** | ||
+ | * make sure epel repo installed < | ||
+ | * install filezilla < | ||
+ | **CMake** | ||
+ | - download source code: https:// | ||
+ | - unpack and cd to the folder and command (ref: [[https:// | ||
+ | ./bootstrap | ||
+ | gmake | ||
+ | sudo gmake install | ||
+ | cmake --version | ||
+ | </ | ||
+ | |||
+ | **PySide and PySide2** | ||
+ | - (For CentOS 7) if you not add this repo yet, than add it <code bash>rpm -Uvh https:// | ||
+ | - get pip installed < | ||
+ | sudo yum upgrade python-setuptools | ||
+ | sudo yum install python-pip python-wheel | ||
+ | sudo python -m pip install pyside2 | ||
+ | </ | ||
+ | **gvim - GUI vim** | ||
+ | * install < | ||
+ | **atom editor** | ||
+ | * install git < | ||
+ | * download rpm atom installer, https:// | ||
+ | * if you got nss lib (Network Security Services) version error " | ||
+ | **unrar** | ||
+ | - (For centos 7) use these cmd to install it <code bash> | ||
+ | ## 64 bit linux ## | ||
+ | wget https:// | ||
+ | tar -zxvf rarlinux-x64-5.5.0.tar.gz | ||
+ | cd rar | ||
+ | sudo cp -v rar unrar / | ||
+ | cd .. | ||
+ | rm -r rar | ||
+ | </ | ||
+ | |||
+ | **7z** | ||
+ | * method A: yum way <code bash>yum install p7zip</ | ||
+ | * method B: manual way: | ||
+ | - make sure you have the dev tool already, skip if you have <code bash> | ||
+ | yum install gcc gcc-c++ bzip2 | ||
+ | </ | ||
+ | - compile and install 7z <code bash> | ||
+ | curl -L https:// | ||
+ | tar xjvf 7zip.tar.bz2 ; rm -f 7zip.tar.bz2 ; cd $(ls -1t | grep p7zip_ | head -1) | ||
+ | cp makefile.linux_amd64 makefile.linux | ||
+ | make -j $(grep processor / | ||
+ | sudo ./ | ||
+ | cd .. | ||
+ | </ | ||
+ | - remove the download source file and package if you want | ||
+ | |||
+ | **Apache web server** | ||
+ | - install < | ||
+ | - start server < | ||
+ | - add firewall to allow port 80 < | ||
+ | - enable /var/www folder writting | ||
+ | ====== ref ====== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ====== Problem and Fix ====== | ||
+ | |||
+ | * Problem: yum lock when trying install | ||
+ | * solution: turn off auto update on startup | ||
+ | |||