Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,245
» Latest member: dprp
» Forum threads: 4,031
» Forum posts: 16,406

Full Statistics

Online Users
There are currently 705 online users.
» 0 Member(s) | 702 Guest(s)
Baidu, Bing, Google

Latest Threads
how to allow only steam t...
Forum: Xorg Problems
Last Post: moquber
2026-03-17, 09:40 PM
» Replies: 0
» Views: 497
Wi-Fi works for a few min...
Forum: Network Problems
Last Post: kabifff
2025-12-15, 12:57 AM
» Replies: 0
» Views: 889
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 4,178
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 126,168
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 75,901
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 5,567
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 9,490
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 48,226
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 168,656
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 98,979

 
  Unix Scripts ?
Posted by: sniffy - 2005-03-07, 10:59 AM - Forum: How Do I? - Replies (3)


Hi @ll,

 

need help in scripting.

 

I want to start every our a ipcs -a command and the output shall be stored in a sema.txt file. After every hourly command a new txt file should be created.

 

Where can i learn this ???

 

Cu,

 

Sniffy

Print this item

  Setting up a Wireless card
Posted by: xDamox - 2005-03-05, 05:37 PM - Forum: Tips and Tricks - No Replies


This little guide will help you install the following Wireless network card into Fedora Core 3 :)

 



Code:
card "ATMEL 11 Mbps Wireless RFMD PCMCIA Card" card "ATMEL 11 Mbps Wireless 504 PCMCIA Card" card "ATMEL 11 Mbps Wireless 504A PCMCIA Card" card "ATMEL 11 Mbps Wireless 504+2958 PCMCIA Card" card "ATMEL 11 Mbps Wireless RFMD Revision D PCMCIA Card" card "ATMEL 11 Mbps Wireless RFMD Revision E PCMCIA Card" card "Sitecom WLAN-011" card "Belkin F5D6020" card "3Com 3CRWE62092B 11Mbps WLAN PC Card" card "3Com 3CRSHPW_96 Wireless LAN PC Card" card "SMC 2632W V2 11Mbps 802.11b WLAN Card" card "SMC 2632W V3 11Mbps 802.11b WLAN Card" card "Actiontec 802CAT1" card "BT Voyager 1020" card "Siemens Gigaset PC Card II" card "CNet CNWLC-811ARL" card "Planet WL-3552" card "OEM 11Mbps WLAN PCMCIA Card" card "11WAVE WaveBuddy RFMD Revision E PC Card" card "LG LW2100N 11Mbps WLAN PCMCIA Card"




 

The first set to installing your card is to check that it can be picked up the hardware. issue

the following command

 



Code:
cardctl ident




 

You should get a response back similar to the following

 



Code:
Socket 0:  product info: " ", "WCard"  manfid: 0xd601, 0x0007  function: 6 (network)




 

Once that is done you can download the atmel drivers from [/url][url=http://thekelleys.org.uk/atmel/]http://thekelleys.org.uk/atmel/

download the Fedora core 3 version and do rpm -i <package.rpm>

 

once that is done restart the pcmcia by issueing the following

 



Code:
/etc/init.d/pcmcia restart




 

once that is done do tail /var/log/messages you shoul see your wireless card as shown below:

 



Code:
Mar  5 16:45:25 localhost kernel: eth1: Atmel at76c50x wireless. Version 0.96 simon@thekelleys.org.uk Mar  5 16:45:25 localhost kernel: eth1: Sitecom WLAN-011 index 0x01: Vcc 3.3, irq 3, io 0x0100-0x011f




 

Well thats it hope this helps you :)

Print this item

  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]

Print this item

  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.

Print this item

  try this
Posted by: anyweb - 2005-03-04, 04:26 PM - Forum: Linux - No Replies


heh,

 

google likes me :)

 

oh, and heres the screenshot

 

cheers

 

anyweb

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/post-1-1109953586.png" data-fileid="283">[img]<fileStore.core_Attachment>/post-1-1109953586.png[/img]</a>



Attached Files
.png   Screenshot_32.png (Size: 197.68 KB / Downloads: 0)
Print this item

  what resolution do you use
Posted by: anyweb - 2005-03-04, 12:53 PM - Forum: Polls - Replies (17)


i use 1024x768 mostly (on this laptop)

 

what about you ?

 

cheers

 

anyweb

Print this item

  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.

Print this item

  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

Print this item

  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-

Print this item

  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.

Print this item