USB Installation on Linux
- download iso file http://isoredirect.centos.org/centos/7/isos/x86_64/
- for windows using https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.12.0-setup.exe
$ su -
$ sudo findmnt /dev/sdb
$ sudo umount /run/media/user/mydisc
$ sudo fdisk /dev/sdc >> d (delete all partitions from disk) >> w (write changes and quit)
$ sudo dd if=CentOS-7.0-1406-x86_64-DVD.iso of=/dev/sdb bs=512k
Using yum with a Proxy Server
sudo vim /etc/yum.conf
# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty
Repo install
$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
Software install
$ sudo yum install -y dkms binutils gcc make patch kernel kernel-firmware kernel-headers kernel-devel glibc glibc-common compat-glibc glibc-devel glibc-headers
$ sudo yum update -y
$ sudo yum install -y libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld ntfs-3g ntfsprogs highlight-gui unrar p7zip p7zip-plugins transmission kget amarok gthumb thunderbird x264 icedtea-web ffmpeg libquicktime* HandBrake* okular flash-plugin totem smplayer vlc skype
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm https://dl.google.com/linux/direct/google-talkplugin_current_x86_64.rpm
$ sudo yum install -y ./google-*
$ sudo su
# setsebool -P unconfined_chrome_sandbox_transition 0
# grep nacl_helper /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
$ wget http://li.nux.ro/download/nux/dextop/el7/x86_64/skype-4.3.0.37-2.R.i586.rpm http://download.teamviewer.com/download/teamviewer_linux.rpm
$ sudo yum install -y ./skype-* ./teamviewer_linux.rpm
$ sudo yum --enablerepo=elrepo install -y kmod-nvidia nvidia-detect nvidia-x11-drv
IPTables on RHEL 7
$ sudo su
$ sudo yum install -y iptables*
$ sudo systemctl disable firewalld.service
$ sudo systemctl stop firewalld.service
$ sudo systemctl enable iptables.service
$ sudo systemctl enable ip6tables.service
$ sudo systemctl start iptables.service
$ sudo systemctl start ip6tables.service
$ sudo systemctl restart iptables.service
$ sudo systemctl restart ip6tables.service
$ sudo systemctl restart network.service
### to open a tunnel between physical machine and virtual machines
$ sudo vim /etc/sysconfig/iptables
-A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
VirtualBox install
$ cd /etc/yum.repos.d/$ sudo wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo$ sudo groupadd vboxusers$ sudo usermod -a -G vboxusers oracle$ sudo yum update -y$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm$ sudo yum install -y binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms$ sudo yum install -y VirtualBox-4.3$ sudo /etc/init.d/vboxdrv setup
KVM Install
$ lsmod | grep kvm - To check kvm Modules
$ sudo yum groupinstall -y Virtualization*
$ sudo chkconfig libvirtd on
$ sudo /etc/init.d/libvirtd start
$ mkdir /data/kvm
$ sudo semanage fcontext -a -s system_u -t virt_image_t "/data/kvm(/.*)?"
$ sudo restorecon -R -F -v /data/kvm
$ sudo chcon -R --reference /var/lib/libvirt/images /data/kvm
$ sudo rm -rf /var/lib/libvirt/images
$ sudo ln -s /data/kvm /var/lib/libvirt/images
Stop virt-manager from prompting for password
# groupadd libvirt
# usermod -G libvirt oracle
# vim /etc/polkit-1/rules.d/10.virt.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage"
&& subject.local
&& subject.active
&& subject.isInGroup("libvirt")) {
return polkit.Result.YES;
}
});
# reboot
KVM-bridged Network Settings:
$ sudo vim /etc/sysconfig/iptables
-A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
$ sudo /etc/init.d/iptables restart
$ sudo vim /usr/lib/sysctl.d/00-system.conf
net.bridge.bridge-nf-call-ip6tables = 1$ sudo sysctl -p
net.bridge.bridge-nf-call-iptables = 1
Auto Login
AutomaticLogin=oracle # as username is oracle$ sudo usermod -G wheel `id -un`$ sudo passwd -d `id -un`$ sudo vim /etc/gdm/custom.conf[daemon]AutomaticLoginEnable=True
Skype in RHEL 7 , sound fix:
$ sudo vim /usr/share/applications/skype.desktop
Change line 4 to:
Exec=env PULSE_LATENCY_MSEC=60 skype %U
No comments:
Post a Comment