Browsed by
Tag: linux

Install JQ on Linux

Install JQ on Linux

I stumbled upon JQ a few days ago while working with awk, grep, and sed. It is similar to these tools, with the exception for that it is specifically written to parse JSON. Today we will cover a small guide on how to install this on various flavors of linux. If you prefer the source or want to install it on Windows, see this page. CentOS: Debian and Ubuntu: In future tutorials I will be incorporating the use of jq….

Read More Read More

Getting MatrixGL as the wallpaper on Crunchbang

Getting MatrixGL as the wallpaper on Crunchbang

Some of you may think having a livewallpaper is distracting, some of you may actually enjoy it! Recently I downloaded a copy of CrunchBang and put it on my *nix box. I noticed not all of the wallpapers listed were avaiable, however it is an easy fix! sudo apt-get install xscreensaver-gl-extra The above command will download a bunch of extra screensavers. Its about 11MB. The next step is getting xwinwrap, I got it from: http://tech.shantanugoel.com/projects/linux/shantz-xwinwrap – The source is available…

Read More Read More

WARNING: MaxClients of 1000 exceeds ServerLimit value of 256 servers

WARNING: MaxClients of 1000 exceeds ServerLimit value of 256 servers

Yesterday night I was ready to scream at my VPS, because I kept getting: WARNING: MaxClients of 1000 exceeds ServerLimit value of 256 servers, lowering MaxClients to 256. To increase, please see the ServerLimit directive.… Read More Sadly, in my tiredness and googleing I didn’t immediately find the answer until today shortly after I woke up, I finally found the solution here. In short “ServerLimit” MUST MUST gobefore MaxClients otherwise this error will show up, no matter how many times…

Read More Read More

Linux – Cat command

Linux – Cat command

Heres a nice something some of you may find useful: root@sat1 [/usr/local/apache/domlogs/ommited]# cat ommitedsite.com | awk ‘{print $1}’ | cut -d: -f1 | sort | uniq -c | sort -n root@sat1 [/usr/local/apache/domlogs/ommited]# Basically says how many times the ip has hit your site: 182 81.82.240.15 192 202.28.180.202 203 188.220.62.52 204 41.223.251.18 225 81.27.128.142 228 124.157.129.20 Looks good in terminal, usually I use it for checking if a box of mine is getting flooded or if theres simply getting too much…

Read More Read More

cPanel VPS DNS problem

cPanel VPS DNS problem

Well, another minor set back when setting up my VPS today, every time I tried to assign an ip address it would just sit there indefinitely, however if any of you need a fix, after a bit of google searching I stumbled upon this: WHM -> Server Configuration -> Tweak Settings and checking Disable whois lookups for the nameserver IP manager My server is running: cPanel 11.24.5-R38506 – WHM 11.24.2 – X 3.9, CENTOS 5.3 i686 virtuozzo. The fix.

WinRAR on CentOS with cPanel

WinRAR on CentOS with cPanel

I’ve seen alot of people get stumped by an error that looks like this, rar: /lib/libc.so.6: version `GLIBC_2.7′ not found (required by rar) even I did for a while, after numerous google searches I found nothing, however today I finally ran into the site that saved me! Basically rm -rf /usr/bin/rar ln -s /usr/local/rar/rar_static /usr/bin/rar For me the location varied a little because I extracted everything in a different spot! http://www.123tweak.com/how-to-install-winrar-on-centos/

Second Perl Experiment

Second Perl Experiment

After a bit of reading online and book reading (Learning Perl 2nd Edition), I came up with this; #!/usr/bin/perl # Revision 1 – 09-03-09 1530 # Countr Code list, stdin, perl # SRC for codes: http://www.kropla.com/dialcode.htm use Term::ANSIColor qw(:constants); $Term::ANSIColor::AUTORESET = 1; #reset colors after each line print GREEN “Please enter the country code you are trying to look up.\n”; $cc = <STDIN>; chomp $cc; if ($cc eq “1”) { print GREEN “United States of America or Canada.\n”; } elsif…

Read More Read More

Experimenting with Perl

Experimenting with Perl

Well, this is my first actual experiment with Perl. All it does is chmod 750 some fetch utilities. In my next build I want to set it up so that if the file exists, and if it doesnt, it will prompt you that the file is not on the system and it is being skipped. #!/usr/bin/perl # Revision 1 – 09-03-09 # Initial Build # Chmod 750 of rcp, wget, lynx, links, elinks, scp, nc, ftp, telnet, curl print (“Permissions?\n”);…

Read More Read More

Ubuntu 9.0.4 – Installing SSHD

Ubuntu 9.0.4 – Installing SSHD

So after isntalling a fresh copy of Ubuntu today, I try: r00t@r00t-laptop:~$ sudo apt-get install openssh-server Reading package lists… Done Building dependency tree Reading state information… Done Package openssh-server is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package openssh-server has no installation candidate No big deal, lets look up how to fix this online. After a whole 2 minutes…

Read More Read More