Oliver.net.au

Linux, life and programming

Menu
  • Home
  • About

Category: Linux

Linux related posts

Simple Squid access log reporting.

By matt
|
February 10, 2012
| 4 Comments
| Computers, IT, Linux, Programming, Uncategorized

Squid is one of the biggest and most used proxies on the interwebs. And generating reports from the access logs is already a done deal, there are many commercial and OSS apps that support the squid log format. But I found my self in a situation where I wanted stats but didn’t want to install […]

Read More »

Posted in Computers, IT, Linux, Programming, Uncategorized Tagged access.log, awk, cron, gawk, Linux, log anaylsis, proxy, reporting, sort, Squid, stats, user report 4 Comments

Identically partition disks.. the easy way!

By matt
|
October 25, 2011
| No Comments
| Computers, IT, Linux

Was just looking into a software RAID howto.. for no reason really, but kinda glad I did! When you set up software raid you want to make sure all disks are partitioned the same, right. so check this out: 3. Create partitions on /dev/sda identical to the partitions on /dev/sdb: sfdisk -d /dev/sdb | sfdisk […]

Read More »

Posted in Computers, IT, Linux Tagged fdisk, Linux, RAID, sfdisk, software RAID Leave a comment

NTLM Authentication in Squid using Winbind.

By matt
|
October 25, 2011
| No Comments
| Computers, IT, Linux

Some old windows servers require authentication through the old NTLM protocol, luckily with the help from squid, samba and winbind we can do this under Linux. Some URLs a much of this information was gathered from are: http://wiki.squid-cache.org/ConfigExamples/Authenticate/NtlmCentOS5 http://wiki.squid-cache.org/ConfigExamples/Authenticate/Ntlm HOW TO In order to authenticate through winbind we will be using that and samba to […]

Read More »

Posted in Computers, IT, Linux Tagged active directory, AD, authantication, authconfig, DC, Domain controller, iptables, kerberos, krb5, ntlm, ntp, samba, Squid, windbind Leave a comment

Reverse proxy using squid + Redirection

By matt
|
October 20, 2011
| No Comments
| Computers, IT, Linux

Squid – Reverse Proxy In computer networks, a reverse proxy is a type of proxy server that retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client as though it originated from the reverse proxy itself. While a forward proxy is usually situated between the […]

Read More »

Posted in Computers, IT, Linux Tagged acl, cache_peer, http, https, proxy, redirection, reverse proxy, sql injection, Squid Leave a comment

Posfix – Making sense of delays in mail

By matt
|
October 19, 2011
| No Comments
| Computers, IT, Linux

The maillog The maillog is easy enough to follow, but when you understand what all the delay and delays numbers mean then this may help really understand what is going on! A standard email entry in postfix looks like: Jan 10 10:00:00 testmtr postfix/smtp[20123]: 34A1B160852B: to=, relay=mx1.example.lan[1.2.3.4]:25, delay=0.49, delays=0.2/0/0.04/0.25, dsn=2.0.0, status=sent Pretty straight forward: date, […]

Read More »

Posted in Computers, IT, Linux Tagged deferred, delay, delays, Linux, maillog, postfix, relay, smtp Leave a comment

Use xmllint and vim to format xml documents

By matt
|
February 16, 2011
| No Comments
| Computers, IT, Linux

If you want vim to nicely format an XML file (and a xena file in this example, 2nd line) then add this to your ~/.vimrc file: ” Format *.xml and *.xena files by sending them to xmllint au FileType xml exe “:silent 1,$!xmllint –format –recover – 2>/dev/null” au FileType xena exe “:silent 1,$!xmllint –format –recover […]

Read More »

Posted in Computers, IT, Linux Tagged format, vim, xena, xml, xmllint vimrc Leave a comment

Debian 6 GNU/KFreeBSD Grub problems on VirtualBox

By matt
|
February 10, 2011
| No Comments
| Computers, IT, Linux

Debian 6 was released the other day, with this release they not only released a Linux kernel version but they now support a FreeBSD version as well! So I decided to install it under VirtualBox and check it out… The install process went smoothly until I got to the end when it was installing and […]

Read More »

Posted in Computers, IT, Linux Tagged debian, freebsd, grub2, kernel, kfreebsd, root, update-grub, usf Leave a comment

Fedora preupgrade from local mirror

By matt
|
January 5, 2011
| 1 Comment
| IT, Linux, Personal

If you have a local mirror and want to use it as the mirror for preupgrade then follow the these normal steps EXCEPT do the following BEFORE you run the preupgrade(-cli) command: Download the releases.txt file used: wget http://mirrors.fedoraproject.org/releases.txt Modify the releases.txt file, I changed the Fedora 14 (what I’m upgrading to) options to: [Fedora […]

Read More »

Posted in IT, Linux, Personal Tagged Fedora, local mirror, mirror, preupgrade, preupgrade-cli, releases.txt, upgrade 1 Comment

Bind the bash history methods

By matt
|
January 4, 2011
| 3 Comments
| Computers, IT, Linux

Bash is an awesome shell and also very configurable. Some of bash’s build-in functions are not binded to keys, some of which REALLY should be! Bash has two very useful functions used for searching your bash history: history-search-backward history-search-forward So the question is how do we bind them. I bound them to Control-<up> and Control-<down>. […]

Read More »

Posted in Computers, IT, Linux Tagged bash, bind, history, inputrc, history-search, history-search-backward, history-search-forward 3 Comments

Git remote ssh syntax

By matt
|
November 3, 2010
| No Comments
| Computers, IT, Linux, Programming

Git makes it easy to add remote repositories to push to, best part is you can use ssh. The ‘git remote add’ command takes in a html URL like parameter for even SSH like: ssh://<user>@<host>/<path to git repo>/ NOT the standard ssh scp syntax: ssh://<user>@<host>:<path to repo>/ Which allows you to base the location from […]

Read More »

Posted in Computers, IT, Linux, Programming Tagged git, home, repo, repository, ssh Leave a comment

Posts navigation

Previous 1 2 3 4 Next

Oliver.net.au 2018 | All Rights Reserved. Powered by WordPress