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 :

AnyConnect was not able to establish a connection to the specified sec

sgadmin created the topic: AnyConnect was not able to establish a connection to the specified sec

I am getting following error while connecting CISCO VPN.

AnyConnect was not able to establish a connection to the specified secure gateway. please try connecting again.

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 :

Tasksel – Easily/Quickly Install Group Softwares in Debian and Ubuntu

tasksel-easily-quickly-install-group-softwares-in-debian-and-ubuntu
Tasksel – Easily/Quickly Install Group Softwares in Debian and Ubuntu
If you started out using an RPM-based distro before advancements like “yum” or “apt-rpm”, you’re loving the magic of “apt-get” on Ubuntu and Debian. But when it comes to installing large sets of software, which may have either dozens (if not hundreds) of packages, or those that require a good deal of integration, sometimes “apt-get” can feel like the old rpm -i guessing game. Fortunately, there’s a “tasksel” – think of it as “apt-get for apt-get”.
How To Install and Use Tasksel in Debian and Ubuntu
To install tasksel, simply run the command below:
$ sudo apt-get install tasksel
After installing Tasksel, it enables you to install one or more predefined group of packages. User need to run it from the command line with a few arguments, it provides a graphical user interface as well where one can select software to install.
The general syntax of running tasksel from the command line is:
$ sudo tasksel install task_name
$ sudo tasksel remove task_name
$ sudo tasksel command_line_options
$ sudo tasksel –list-tasks
$ sudo tasksel install openssh-server
To start the tasksel user interface, issue the command below:
$ sudo tasksel
Tasksel vs. Apt-Get
You may ask yourself why you’d want to use tasksel versus the traditional apt-get command to install software, especially when there’s an equivalent meta-package. It’s easiest to think of it like this:
On one hand, apt-get installs software as individual packages, even if those packages require others. In other words, it will install each package and respect dependencies, but otherwise assume all of them are separate.
In contrast, tasksel assumes you’re trying to install software towards a singular end-goal, such as a web server. It will take all the steps necessary to achieve that goal, including installing software as well as doing other configuration once the install is done. Getting a web server running is a good example… you might need to install apache, mysql, php, and a number of modules and add-on’s for each in order to get a proper LAMP stack running. Or you could just issue the following command:
$ sudo tasksel install lamp-server
Here are some other useful tasks available from tasksel:
Installed Ubuntu, but want to try out the latest KDE Software Collection? Just use this:
$ sudo tasksel install kubuntu-desktop
Have a computer you’d like to hook up to your home theater PC? It’s as easy as:
$ sudo tasksel install mythbuntu-frontend
Need a GUI for your server, but don’t want to waste precious resources on something like KDE or Unity?
$ sudo tasksel install lubuntu-core
Reference
Tagged : / / / / / / /