Category Archives: Linux

Linux Unix

Unix/Linux for Beginner, list of resources

Some common question I see in Installation of Unix/Linux :

  • What command I should I type?
  • When I can start hacking?
  • When I start learning hacking?
  • Do you have resources for beginner for me?

Not sure, I’m search engine lovers icon smile Unix/Linux for Beginner, list of resources

Here’s the lists :

Books :

  1. Hacking Ubuntu: Serious Hacks Mods and Customizations (ExtremeTech) Unix/Linux for Beginner, list of resources
  2. Google Hacks: Tips & Tools for Finding and Using the World’s Information (Hacks) Unix/Linux for Beginner, list of resources
  3. Knoppix Hacks: Tips and Tools for Using the Linux Live CD to Hack, Repair, and Enjoy Your PC Unix/Linux for Beginner, list of resources
  4. Ubuntu Hacks: Tips & Tools for Exploring, Using, and Tuning Linux (Hacks) Unix/Linux for Beginner, list of resources
  5. Windows XP Hacks, Second Edition Unix/Linux for Beginner, list of resources
  6. Perl Hacks: Tips & Tools for Programming, Debugging, and Surviving (Hacks) Unix/Linux for Beginner, list of resources
  7. PHP Hacks: Tips & Tools For Creating Dynamic Websites (Hacks) Unix/Linux for Beginner, list of resources
  8. Essential PHP Security Unix/Linux for Beginner, list of resources
  9. Linux Server Hacks: 100 Industrial-Strength Tips and Tools Unix/Linux for Beginner, list of resources
  10. SQL Hacks Unix/Linux for Beginner, list of resources
  11. Wireless Hacks: Tips & Tools for Building, Extending, and Securing Your Network (Hacks) Unix/Linux for Beginner, list of resources
  12. BSD Hacks Unix/Linux for Beginner, list of resources
  13. Hack Attacks Revealed: A Complete Reference for UNIX, Windows, and Linux with Custom Security Toolkit, Second Edition Unix/Linux for Beginner, list of resources
  14. Network Security Hacks Unix/Linux for Beginner, list of resources
  15. PC Hacks: 100 Industrial-Strength Tips & Tools Unix/Linux for Beginner, list of resources

Online Resources :

  1. UNIX Tutorial for Beginners, complete reference.
  2. Unix for Beginners, by Uppsala Software Factory
  3. UNIX Help for Users, UNIX Help for Users .
  4. UNIX Frequently Asked Questions (FAQs), often seen in comp.unix.questions and comp.unix.shell.
  5. History of UNIX, read all about the history of its creation.

Last Update : February 12 2008

Linux

Install php-gd in CentOS

I just get in touch with my friend server, he run his VPS server that use CentOS.

Basically he got problem to enable gd extension in his php installation. He ask me to see his server.

Well, I don’t have experience with CentOS but its not worth to try since I ever use Redhat from version 5 that accidently damage my harddisk icon smile Install php gd in CentOS

Trying to install with yum.

[root@server yum.repos.d]# yum install php-gd

Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Nothing to do

Well, something might be wrong, check repo files.

[root@server yum.repos.d]# ls

CentOS-Base.repo  CentOS-Media.repo
[root@server yum.repos.d]# cd ..
[root@server etc]# ls

[main]
#exclude=apache* courier* exim* httpd* mod_ssl* mysql* perl* php* proftpd* pure-ftpd* spamassassin* squirrelmail*
exclude=apache* courier* exim* httpd* mod_ssl* mysql* perl* proftpd* pure-ftpd* spamassassin* squirrelmail*
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

as I see in ‘exclude‘ list,  php* exist . That make php-gd isn’t available for installing.

Just remove that from exclude list and I can see gd support from phpinfo() page icon smile Install php gd in CentOS

Linux

Ubuntu 7.10 Desktop Course – Free Course Material

Ubuntu 7.10 Desktop Course material has been release for free, both student and instructor can get the material immediately :

Student Guide : download here
Instructor Guide : download here
Enjoy the course icon smile Ubuntu 7.10 Desktop Course   Free Course Material
Source

 

Linux Unix

Build email server Tutorials, choose one for You

Every linux distro, unix system or windows server came with smtp system.

But it’s not enough for small home office requirement that need to provide mailbox for their employee.
 

Another solution is signup for web hosting that include mail management such cpanel, whm etc.

If this solution wont fit too, maybe dedicated email server need to build icon smile Build email server Tutorials, choose one for You

A lot of tutorials for building email server in internet that might help you to build email server in learning on demand mode such as :

1. Lifewithqmail, extensive guide to build mail server using qmail as MTA

2. ISP-style Email Service with Debian-Sarge and Postfix 2.1.

3. Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 7.10), This document describes how to install a mail server based on Postfix that is based on virtual users and domains, i.e. users and domains that are in a MySQL database.

4. Full Mail Server Solution w/ Virtual Domains & Users (Debian Etch, Postfix, Mysql, Dovecot, DSpam, ClamAV, Postgrey, RBL), This guide describes how to set up a full email solution in Debian Linux (all code is from Debian Etch)

5. Qmailrocks, very popular guide. Support Redhat / Fedora, FreeBSD, Debian, Slackware and Solaris.

6. Secure email servers from scratch with FreeBSD 6.1. Part I and Part II.

7. How to set up a home email server. Redhat guide.

8. Virtual Mailhosting System with Postfix Guide, using gentoo.

9. OpenBSD as a Mail Server, extensive guide using openbsd . Pdf version also available.

10. Build email server at home. Windows guide.

11. Build Your Skills: Set up an SMTP/POP3 mail server with Windows Server 2003. Learn how to set up a very basic POP3 e-mail server in Windows Server 2003 without all the extra features that come with Exchange.

I’ll update the list as I found new url, If you have one and wanna share with us please use comment section.

Last update : 17 December 2007

 

Linux Unix Web Server

Learning .htaccess : 101 way

My friend got suprised when he see login page on phpmyadmin. It’s not usual form for login as he used to login for.

Well, another postfixadmin admin page also show login page. He ask  me to list all tutorial around .htaccess to show for his learning study.

Like I did in Cisco Lab Topology, Cisco Resources or Ipfw Resources , I think I search google too for existing tutorial, Learning On Demand rules icon smile Learning .htaccess : 101 way

Here’s what I found so far :

  1. .htaccess Tips and Tricks  part I creating this hidden file in the root folder (or any sub folder) of your website, it is possible to set/unset almost all the server directives that can be set in the apache main configuration file. And these changes will take effect only for the root folder in which you created the file and its sub folders. Thus .htaccess file plays an important role in providing fine-grained control to an individual managing a website without giving blanket control of the web server.
  2. .htaccess Tips and Tricks  part II, the arcane mysteries of URL rewriting.
  3. Hotlink test for image, find out if your .htaccess protect your images.
  4. Setting Up .htaccess, htaccess can be used in co-ordination with the Apache web server to password protect certain files and directories on your web server.
  5. .htaccess file generator, create .htaccess file online.
  6. How to Configure Your Website Using Htaccess in Linux with Apache, .htaccess files (or "distributed configuration files") provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.
  7. HOWTO php.ini overrides with .htaccess,
    in smaller environments where there are only a few developers and a single product there is seldom a need for different values of a php.ini setting. however, depending on how esoteric some of the developers in your group are, or how many projects you have going simultaneously, or how many devs you have working on the same box or you have production and development running on the same box or whatever; you may at some point find a need to have different values for certain php.ini settings for different environments hosted on a single server. the good news is, if youre running apache, php has integrated support for this need.
    .htaccess overrides are especially attractive in shared hosting environments where there is a high likelihood different clients will want different settings for php.ini directives.
  8.  .htaccess Based Authentication On Subdirectories.

 

last update :  November 22 2007

Linux

trying vncserver @xubuntu

root@three-desktop:/home/three# vncserver
Couldn’t start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn’t start Xvnc process.

Couldn’t open RGB_DB ‘/usr/X11R6/lib/X11/rgb’
11/11/07 20:22:10 Xvnc version 3.3.7 – built Jul  4 2006 10:06:30
11/11/07 20:22:10 Copyright (C) 2002-2003 RealVNC Ltd.
11/11/07 20:22:10 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
11/11/07 20:22:10 All Rights Reserved.
11/11/07 20:22:10 See http://www.realvnc.com for information on VNC
11/11/07 20:22:10 Desktop name ‘X’ (three-desktop:1)
11/11/07 20:22:10 Protocol version supported 3.3
11/11/07 20:22:10 Listening for VNC connections on TCP port 5901
11/11/07 20:22:10 Listening for HTTP connections on TCP port 5801
11/11/07 20:22:10   URL http://three-desktop:5801
_FontTransSocketUNIXConnect: Can’t connect: errno = 2

trying another option :

three@three-desktop:~$ sudo vncpasswd /root/.vncpasswd
Password:
Verify:
three@three-desktop:~$ sudo /usr/bin/Xvnc :2 -query localhost -geometry 800×600 -depth 16 -once -fp /usr/share/X11/fonts/misc -dontdisconnect -nevershared -rfbauth /root/.vncpasswd
Couldn’t open RGB_DB ‘/usr/X11R6/lib/X11/rgb’
11/11/07 20:28:54 Xvnc version 3.3.7 – built Jul  4 2006 10:06:30
11/11/07 20:28:54 Copyright (C) 2002-2003 RealVNC Ltd.
11/11/07 20:28:54 Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
11/11/07 20:28:54 All Rights Reserved.
11/11/07 20:28:54 See http://www.realvnc.com for information on VNC
11/11/07 20:28:54 Desktop name ‘x11′ (three-desktop:2)
11/11/07 20:28:54 Protocol version supported 3.3
11/11/07 20:28:54 Listening for VNC connections on TCP port 5902
Font directory ‘/usr/share/X11/fonts/misc’ not found – ignoring

Fatal server error:
could not open default font ‘fixed’

trying again : install vnc4server

root@three-desktop:/home/three# apt-get install vnc4server
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
  vnc-java
The following NEW packages will be installed:
  vnc4server
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 1066kB of archives.
After unpacking 2470kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com edgy-updates/universe vnc4server 4.1.1+xorg1.0.2-0ubuntu1.6.10.2 [1066kB]
Fetched 1066kB in 28s (37.1kB/s)
Selecting previously deselected package vnc4server.
(Reading database … 85336 files and directories currently installed.)
Unpacking vnc4server (from …/vnc4server_4.1.1+xorg1.0.2-0ubuntu1.6.10.2_i386.deb) …
Setting up vnc4server (4.1.1+xorg1.0.2-0ubuntu1.6.10.2) …

root@three-desktop:/home/three# vncserver

New ‘X’ desktop is three-desktop:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/three-desktop:1.log

root@three-desktop:/home/three# ps ax | grep vnc
18374 pts/1    S      0:00 /bin/sh /root/.vnc/xstartup
18378 pts/1    S+     0:00 grep vnc

need to download vnc viewer now icon smile trying vncserver @xubuntu

Linux

Fedora 8 (Werewolf) is out : Iso Download Link

Fedora 8 is out, interesting "song"  from  here:

It’s close to midnight and something cool is coming through the "tubes"
It’s looking real tight, a distro for the experts and the n00bs
With Live CDs* so you can try it out before installing
Or DVDs so you can have the packages you choose
No way to lose

‘Cause it’s Fedora, Fedora 8
We’d love to have you join us and together we’ll be great
Using Fedora, Fedora 8
Just click the link and rescue your computer’s future today

Hotplugging speakers, you realize PulseAudio is sweet
You feel the power of kernel 2.6.23
You close your eyes but then you can’t see all the gorgeous artwork
You want online? New NetworkManager helps you explore
And try out BigBoard

‘Cause it’s Fedora, Fedora 8
This is the leading edge of free and open source today
You’ve got Fedora, Fedora 8
A brand-new shiny desktop with the latest, greatest awaits

(BRIDGE)
Now firewalls, you will find, are a ball to configurate
Virtual hosts you can manage the most secure way
(It makes your day)
Now you can authenticate

They’re out to get you, security enhancements stop them cold
You want your codecs? Codeina is the legal way to go
We’ve got the spins — developers, electronics, and gaming
And that’s not all, we wanted to make sure your Java’s free
So we’ve got IcedTea

Inside Fedora, Fedora 8
We promise Number 9 is no more than six months away, world
Fedora, Fedora 8
So get aboard the torrent, share Fedora, score a new Fedora, by next May
‘Cause it’s Fedora, Fedora 8
You get to keep both pieces anytime that something breaks, girl
Fedora, Fedora 8
If only Vincent Price could read this killer filler:

"Werewolf" moves across the land
Router meltdowns close at hand
Sysadmins in search of blood
For those who caused this bandwidth flood
And whosoever took the risk
But failed to make an extra disc
Must face the Bastard Op from Hell
And lose his access to the shell

The best of Linux now is here
To kill the FUD and strike with fear
The hearts of those who steal your rights
And hide their code far from your sight
Closed source takes away what’s yours
But you’ll never shake the horror
Until you taste the freedom and
The power of FEDORA!

 Even tutorial on installing fedora 8 already made too, cool :

Fedora 8 Installation Guide

some location for download :

 Links :

 

Linux

101 links of tutorials, tips, tricks and scripts for iptables

Color 468 spring ATIechoLin 101 links of tutorials, tips, tricks and scripts for iptables

Acronis® True Image Echo Server for Linux — be sure to quickly backup and restore your Linux servers

I wanna learn about iptables but don’t know where to start, this post perhaps will be my collection of link around iptables.

Perhaps I can learn it by doing icon smile 101 links of tutorials, tips, tricks and scripts for iptables

Tutorial :

Howto, tips and trick:

Scripts :

Tools :

  • Firestarter (A graphical interfaced Open Source firewall for Linux.)
  • Firewall Builder (Firewall Builder is Open Source multi-platform firewall management software that supports Linux iptables, FreeBSD ipfilter and ipfw, OpenBSD pf.)
  • Shoreline Firewall (very powerful solution to help you configure an advanced firewall for any network)
  • Ipkungfu (working firewall “out of the box” with zero configuration)

Recommended Books :

I’ll update the list as soon I find interesting link.

Last update : February 7 2008

Linux Unix

Plan for Trying Debian

Just stumble upon on distrowatch news titled "From FreeBSD to Debian GNU/Linux".

I know that feel, when you must set a server in quick then I love simple and quick way. After reading the news I’ll try to set up full server like I use to build with FreeBSD.

Just need to play around with debian style with their apt-get.

Can I install apache 1.3.39 with php5 and mysql 4.0.27 with apt-get?

What about downgrade php5 to php4 in the middle of operation?

no..no, I like ‘stable’ application. Thats why I choose djbdns, qmail ( I don’t use anymore for some reason) and pure-ftpd.

Just make it simple guys, better know your fav OS will help you to make decision. But I still need to install debian for workshop reason icon smile Plan for Trying Debian

Which OS is good for server ?

depend on your knowledge, make sure you know it closely icon wink Plan for Trying Debian


Linux

Location for download slackware 12 iso

[phpbay]nokia ,2[/phpbay]

Slackware 12 already out, ready to serve (ups thats FreeBSD tag icon smile Location for download slackware 12 iso )

While waiting for all mirror get iso file, I just try to visit a few mirror for iso file support from listing directory of mirror

A few mirror offer CD and DVD iso linux

Here the lists :

Link related :

Viva Slackware 12!

Tips : use -c option to resume your wget download and choose belnet first for fast and stable download.

If you know other mirror put CD or DVD iso let me know and I’ll update the list.

If you think this post is useful feel free tell your friend using ‘share this’ link below.

Linux

Linux Distro, Choose DVD or CD?

Many distro nowadays give alternative media for installation, like newest release of Centos
4.5 available in DVD and CD. The other side, VectorLinux 5.6 soho come with CD option. I
just remember when I must install Redhat 9 that require 3 cds, my friend forgot to return
the last cd, make my installation process never complete. Mandrake (now mandriva) has option to skip package that not available. What a convenient why, at that time I just thinking about iso file for DVD for following reason:

  • No more interruptible installation process.
  • Full package for home user who has slow internet connection or not even have it. Like DVD repository in ubuntu.

read more »