Browsing articles tagged with "centos6 - Admins Goodies"
Mar 22, 2013
tom

How to move from Fedora 3 to Centos 6

I am new to Linux but would like to configure a server with Centos 6 to replace a current one running old Fedora Linux Release 3 Asked by Munya Fedora 3 is ancient. You are basically going to need to start from scratch, but might be able to copy at least parts of the config files when configuring the new server (in most cases, I would not recommend to just copy the files, at least [...]

Continue Reading »
Mar 22, 2013
tom

cannot use any yum command: no space left on device

if i use any yum command, i get Loaded plugins: fastestmirror Traceback (most recent call last): File “/usr/bin/yum”, line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File “/usr/share/yum-cli/yummain.py”, line 285, in user_main errcode = main(args) File “/usr/share/yum-cli/yummain.py”, line 114, in main base.doLock() File “/usr/lib/python2.6/site-packages/yum/__init__.py”, line 1791, in doLock while not self._lock(lockfile, mypid, 0644): File “/usr/lib/python2.6/site-packages/yum/__init__.py”, line 1861, in _lock os.write(fd, contents) OSError: [Errno 28] No space left on device If i use the top command i see [...]

Continue Reading »
Jan 22, 2013
tom

gpg –gen-key hangs at gaining enough entropy on centos 6

Trying to generate a key for a server. gpg –gen-key We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. and it just hangs there. There is another error: can’t connect to `/root/.gnupg/S.gpg-agent’: No such file or directory which [...]

Continue Reading »
Dec 26, 2012
tom

Running program that you just installed with rpm

I’ve just downloaded pgadmin from : http://yum.postgresql.org/repopackages.php#pg92 and I’ve installed it : rpm -ivh pgdg-centos92-9.2-6.noarch.rpm How do I open it? where can I find it or do I need some additional steps? Asked by London That rpm just contains the files for adding the postgresql 9.2 repo to CentOS. You will need to download and install the relevant package. A bit of digging suggests that the package you want is pgadmin3_92 so yum install pgadmin3_92 [...]

Continue Reading »
Dec 21, 2012
tom

sendmail.mc to fwd all mails for a domain -> First.Last@gmail.com (MX record already set up)

I’m currently using Google Apps to forward mails addressed to recipients at my domain balkan-preferans.de (176.9.40.169) to my address First.Last@gmail.com – this is done by the following DNS-zone served by my hoster: $TTL 86400 @ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. ( 2012100402 ; serial 14400 ; refresh 1800 ; retry 604800 ; expire 86400 ) ; minimum@ IN NS robotns3.second-ns.com. @ IN NS robotns2.second-ns.de. @ IN NS ns1.first-ns.de.@ IN A 176.9.40.169 localhost IN A 127.0.0.1 www [...]

Continue Reading »
Dec 19, 2012
tom

No outbound internet connection after restarting CentOS 6.3

After restarting a headless CentOS 6.3 machine, it lost outbound internet connectivity, i.e. I can still connect to the server via SSH (ssh root@**.126.18.56), but stuff such as ping google.com gives google.com: unknown host, and yum list some_package gives a lot of network errors. This is what ifconfig gives: eth0 Link encap:Ethernet HWaddr 00:25:90:78:2D:5D inet addr:**.126.18.56 Bcast:**.126.18.255 Mask:255.255.255.0 inet6 addr: fe80::225:90ff:fe78:2d5d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:75594 errors:0 dropped:0 overruns:0 frame:0 TX [...]

Continue Reading »
Nov 25, 2012
tom

How to connect to virtual host via server IP?

I’m migrating from old server into new server. my current domain is pointing to Old server and want to test before go live. The problem is how to connect to New Server for internal test. I dont know how to connect into it directly via server ip. Server: CentOS 6, and use Directadmin. Asked by RAGOpoR Connecting via an IP address may not work as you expect. The best thing to do here is to [...]

Continue Reading »
Nov 23, 2012
tom

Safely update php 5.3.3 to >=5.3.4 on centos 6

Would the following works fine without any issues? I have apc cache installed, the other packages the usual php configuration. yum update php would that be enough? it is an active server, so want to make sure and see what should I take into consideration to make this less painful. Asked by Dreaded semicolon CentOS 6 does not have PHP 5.3.4 in the standard repositories, which you can see here. yum update php will not [...]

Continue Reading »
Nov 10, 2012
tom

Edit a file on CentOS 6.3 Minimal

I installed CentOS 6.3 Minimal on VMWare Player, and I realized how ‘minimal’ the setup is… Don’t have network connectivity. From what I searched on google, I need to edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 but since I don’t have any editor installed (as far as I know), I don’t know how to edit the file. How do I edit the file???? Asked by CoCoMonk It’s virtually guaranteed that vi is installed, and maybe pico. Search Google [...]

Continue Reading »
Nov 8, 2012
tom

Accessing apache Webserver Over local Network

I have installed Apache Web Server on an CentOS 6 machine and configured it to run listen on an IP X.X.X.X:8080 in httpd.conf file but it is not working when i tried to access the Web server from browser using http://x.x.x.x:8080 Asked by Ali Ahmad By default CentOS has most input ports closed in the firewall so you will almost certainly need to open port 8080 in your firewall iptables -I INPUT -p tcp -m [...]

Continue Reading »