Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 159 online users. » 0 Member(s) | 155 Guest(s) Applebot, Bing, Google, Yandex
|
Latest Threads |
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 444
|
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 87,923
|
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 41,584
|
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,887
|
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,370
|
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 41,439
|
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 117,521
|
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 55,424
|
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 45,416
|
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 42,010
|
|
|
Gnome |
Posted by: lerum - 2005-03-05, 02:23 PM - Forum: General Chat
- Replies (2)
|
 |
I see that Gnome 2.10 will be released on the 9th March!
Can't wait to see more of it! [img]<___base_url___>/uploads/emoticons/default_rolleyes.gif[/img]
|
|
|
My mod_rewrite guide |
Posted by: hijinks - 2005-03-05, 01:22 PM - Forum: LAMP
- Replies (1)
|
 |
So I got bored and since I'm doing a lot of mod_rewrite work lately, I have decided to do a little mod_rewrite guide. If anyone wants something done I can try to do it.. but for now I will just explain what things do. The syntax of mod_rewrite is almost like sendmail.. but once you understand it you can do some really great things.
So we'll start off with just a common use for mod_rewrite. I always keep all my images in like /var/www/html/images. So this will show a default error image not found image instead of that nasty broken image box with the X in it. So you want to create a .htaccess file in the /var/www/html/images dir. Then place the following lines in it.
Code: RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) /images/404.png
So the first line just tells apache to turn on mod_rewrite.
The second line is a conditional statement. It says move on to the next line if the requested file does not exist. So the condition is the !-f. The -f checks if the request is for a file. So the ! in front of it is a common programming practice and that basically negates what comes after it. So the total line means if the request is for a file that does no exist in the directory
Then the last line says take any input and replace it with /images/404.png.
So if i have this in html
Code: <img src=/images/bla.jpg>
if there is no bla.jpg in the images dir it will show a 404.png in its place. Don't worry about image format differences. The browser will hande it.
more to come when i get bored.
|
|
|
How to upgrade from FC2 to FC3 |
Posted by: godskalk - 2005-03-02, 11:17 PM - Forum: Fedora Core Release 2
- Replies (2)
|
 |
Hey, here is a neat way to upgrade from FC2 to FC3 without doing a clean install, but using apt-get.
First you must find the apt repositories from somewhere, I used this page right here: Fedora Apt/Yum Repositories list.
Now go to your server and doing as root and backup the apt sources.list
Code: cd /etc/apt
cp sources.list sources.backup
Now, edit the sources.list. Remove everything inside and replace with the apt links from the Fedora Apt/Yum Repositories list.
Save and exit, then do an update and upgrade with apt-get.
Code: apt-get update && apt-get dist-upgrade -y
This will take a while :)When finnished, reboot and you will have Fedora Core 3.
I dont know if this is a good way for doing it but it worked for me, so far so good.
|
|
|
limit ssh connections - OLD METHOD - DO NOT USE. |
Posted by: anyweb - 2005-03-02, 12:59 PM - Forum: Remote Access
- Replies (8)
|
 |
to avoid brute forcing on your ssh, limit connections to it using iptables
Code: iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -m limit --limit 2/minute --limit-burst 1 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j REJECT --reject-with tcp-reset
please note if the above doesnt work for you then check if lokkit is running (fedoras/redhat's firewall)
disable it if it is and use iptables to control your ports instead
Quote:iptables-save
will list any previously saved iptables rules.
Quote:[root@www root]# iptables-save# Generated by iptables-save v1.2.9 on Wed Mar 2 14:41:07 2005
*nat
:PREROUTING ACCEPT [79:5539]
:POSTROUTING ACCEPT [28:1666]
:OUTPUT ACCEPT [26:1586]
COMMIT
# Completed on Wed Mar 2 14:41:07 2005
# Generated by iptables-save v1.2.9 on Wed Mar 2 14:41:07 2005
*filter
:INPUT DROP [148:12439]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [2707:2040105]
-A INPUT -p tcp -m multiport --dports 80 -j ACCEPT
-A INPUT -p udp -m multiport --dports 53 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -m limit --limit 2/min --limit-burst 1 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j REJECT --reject-with tcp-reset
COMMIT
# Completed on Wed Mar 2 14:41:07 2005
that's it, done :)(thanks flukex)
cheers
anyweb
|
|
|
March 1st - fun =) |
Posted by: lia - 2005-03-01, 09:46 PM - Forum: Jokes
- Replies (1)
|
 |
>Marriage - Part I
Typical macho man married typical good-looking lady and after the wedding, he laid down the following rules: "I'll be home when I want, if I want and at what time I want and I don't expect any hassle from for dinner. I'll go hunting, fishing, boozing and card-
|
|
|
Help with apt-get source lists |
Posted by: d03boy - 2005-03-01, 08:39 AM - Forum: Debian
- Replies (3)
|
 |
Well, I'm a noob. I went to apt-get.com and added some source lists to my source.list file. How many is normal to have? I had about 20, but after receiving some errors from apt-get update I removed the ones causing problems. So I have about 15 now. I am wondering if anyone has any good tips for making a source list file.
|
|
|
Monday Fun |
Posted by: lia - 2005-02-28, 02:31 PM - Forum: Jokes
- No Replies
|
 |
The top ten signs that your co-worker is a computer hacker
10. You ticked him off once and your next phone bill was $20,000.
9. He's won the Publisher's Clearing House sweepstakes three years running.
8. When asked for his phone number, he gives it in hex.
7. Seems strangely calm whenever the office LAN goes down.
6. Somehow he/she gets HBO on his PC at work.
5. Mumbled, "Oh, puh-leeez" 95 times during the movie "The Net"
4. Massive RRSP contribution made in half-cent increments.
3. Video dating profile lists "public-key encryption" among turn-ons
2. When his computer starts up, you hear, "Good Morning, Mr. President."
1. You hear him murmur, "Let's see you use that Visa card now, jerk."
|
|
|
Monitor users via VNC |
Posted by: xDamox - 2005-02-27, 02:09 PM - Forum: Remote Access
- No Replies
|
 |
Hi,
I have been wondering if anyone knows how to monitor users on the network via vnc
so you can login into there screen and watch what they are doing?
I looked at kdenetwork3-vnc which I was able to login on a users session and watch what they
were doing, I was also able to type and control there mouse. It would be better if I could of
disabled them using the mouse and keyboard.
|
|
|
|