Converting Red Hat Enterprise Linux booting from CLI to GUI

rajeshkumar created the topic: Converting Red Hat Enterprise Linux booting from CLI to GUI

I just found very good links where default Command mode can be converted into GUI mode during system boot.

refer – www.linuxtopia.org/online_books/rhel6/rh…ng-to-gui-login.html

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Ignore existing files or update only newer files with rsync

rajeshkumar created the topic: Ignore existing files or update only newer files with rsync

Ignore existing files or update only newer files with rsynca

Copying from local to remote

Note that all the examples shown in the post are for copying files from the local computer to a remote server/computer.

Default behavoir

The following command will recursively copy all files from the local filesystem from /var/www to the remote system at 10.1.1.1. Note the following:

Any files that do not exist on the remote system are copied over
Any that have been updated will be copied over, although note that rsync is extremely efficient in that only the changed parts of files are copied and if the file is exactly the same if it is not copied over at all
Any that have been deleted on the local system are deleted on the remote
1 rsync -raz –progress /var/www 10.1.1.1:/var

Ignore existing files

Use the –ignore-existing flag to prevent files from being copied over that already exist on the remote server. By adding this, we eliminate behaviors 2 and 3 in the list above and all that is done is this:

Any files that do not exist on the remote system are copied over
1 rsync –ignore-existing -raz –progress /var/www 10.1.1.1:/var

Update the remote only if a newer version is on the local filesystem

In the case I was talking about, we didn’t want to overwrite any files at the other end. However you may want to copy files over the have been updated more recently on the local filesystem which is done with the –update flag. The behavior is now like this:

Any files that do not exist on the remote system are copied over
Any files that exist on both local and remote that have a newer timestamp on the local server are copied over. (Conversely, any files that have an older timestamp are not copied over).
1 rsync –update -raz –progress /var/www 10.1.1.1:/var

Use –dry-run to see what will be copied

It can be a good idea to test what will be transferred before actually doing it to make sure you aren’t going to copy files that you don’t want to. The –dry-run flag helps you do this:
1 rsync –dry-run –update -raz –progress /var/www 10.1.1.1:/var

Combined with the –progress flag I have included in all the examples, –dry-run will output all the directories it looks at and then all the files that would be copied.

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Mount: cannot mount block device //172.19.165.205/d read-only

rajeshkumar created the topic: mount: cannot mount block device //172.19.165.205/d read-only

Issues

root@rkumar11-usa:~/data/share# sudo mount -t cifs //172.19.165.205/d /home/rkumar11/data/share --verbose -o user=rkumar11
mount: block device //172.19.165.205/d is write-protected, mounting read-only
mount: cannot mount block device //172.19.165.205/d read-only

Solution –

sudo apt-get install cifs-utils

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

How to add new package to apt-get

rajeshkumar created the topic: How to add new package to apt-get

wget -q -O – pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add –
sudo sh -c ‘echo deb pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list’
sudo apt-get update
sudo apt-get install jenkins

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Error: *** ln doesn’t support –relative ***

rajeshkumar created the topic: configure: error: *** ln doesn’t support –relative ***

Error while doing ./configure during systemd-217 istall in RHEL 6.5

configure: error: *** ln doesn't support --relative ***

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Disable IPv6 and Enable IPv4 in Red Hat Linux

rajeshkumar created the topic: Disable IPv6 and Enable IPv4 in Red Hat Linux
Disable IPv6 and Enable IPv4 in Red Hat Linux

check “disable_ipv6″ file to check if IPv6 is disabled,enter:
[root@devops ~]# cat /proc/sys/net/ipv6/conf/all/disable_ipv6
0
if you get “0” value, it means that IPv6 is enabled and “1” means it is disabled.

How to Disable IPv6 in linux system?
vim /etc/sysctl.conf

Adding the below lines into that file:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Save and close that file, then restart sysctl with the following command:

[root@devops ~]# sysctl -p

Now you can rerun the “ifconfig” command to check if IPv6 lines have been removed.

To Enabled IPv4

Edit “/etc/sysconfig/network-scripts/ifcfg-eth0″ file, which is your defualt first NIC configuration file.

If you are using DHCP server to take IP then, edit it like this;

#vi /etc/sysconfig/network-scripts/ifcfg-eth0

ONBOOT=”yes”
BOOTPROTO=”dhcp”

Save & restart networking service,

#service network restart OR
#/etc/init.d/network restart
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Answer some of Linux admin questions…

scmuser created the topic: Answer some of Linux admin questions…

1. How to send an email | check email | reply email attachment using command line??
2. How do you connect to the internet in linux?
4. How can i restrict a aceess of the file? (Add user, add group)

Tagged :

How to Limit System Resources Using cgroups on CentOS 6

rajeshkumar created the topic: How to Limit System Resources Using cgroups on CentOS 6

How to Limit System Resources Using cgroups on CentOS 6?
Answer – Control groups, or cgroups

Great aricles –
www.digitalocean.com/community/tutorials…-cgroups-on-centos-6

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Automatic stop and restart the Cloud server

pasupuleti2 created the topic: Automatic stop and restart the Cloud server

How to scheduling an automatic stop and restart the Cloud server every Saturday. We are using Windows 2012 server

-Saritha

rajeshkumar replied the topic: Automatic stop and restart the Cloud server

Please use following tutorials to do that….
www.howtogeek.com/123393/how-to-automati…dows-task-scheduler/

answers.microsoft.com/en-us/windows/foru…-375ce2647148?auth=1

Tagged :

How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy

web-proxy-on-centos

If your internet connection is behind a web proxy, you need to configure the following on your CentOS server:

System-wide proxy settings – add the following lines to your /etc/environment file:

# vi /etc/environment

http_proxy=”http://proxysrv:8080/”
https_proxy=”https://proxysrv:8080/”
ftp_proxy=”ftp://proxysrv:8080/”
no_proxy=”.mylan.local,.domain1.com,host1,host2″

To apply these settings without restarting the machine run the following commands on the bash shell:

export http_proxy="http://proxysrv:8080/"
export https_proxy="https://proxysrv:8080/"
export ftp_proxy="ftp://proxysrv:8080/"
export no_proxy=".mylan.local,.domain1.com,host1,host2"

You also need to configure yum:

# vi /etc/yum.conf

proxy=http://proxysrv:8080/

Tagged : / / / / / /