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

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,208
» Latest member: slotqris
» Forum threads: 4,029
» Forum posts: 16,404

Full Statistics

Online Users
There are currently 255 online users.
» 0 Member(s) | 253 Guest(s)
Bing, Google

Latest Threads
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 70
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 74,014
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 30,538
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,648
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,053
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 40,632
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 103,555
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 44,277
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 34,714
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 40,156

 
  Programs (tar.gz's & rpm's)
Posted by: Dave - 2004-01-15, 09:46 AM - Forum: Compressed Files - Replies (6)


when i download a tar.gz (or rpm for example) I put it in a folder called downloads (as you do). One thing i'm unsure of in linux yet is, when i unzip the contents using the terminal and i get the folder then you go on to doing make or make load whatever. BUT, do you need to keep all the contents from that folder in that location, since you've 'made' it? Or does Linux copy this to a seperate area on one of the partitions?

 

Just one of my noob questions thats all lol. Downloaded Firebird i can run it from the Mozzila-Firebird.bin but after i've created a launcher for it from the desktop i get an error message, something about a child path or something. lol just a little question :-)

 

Thanks again...

 

Dave

Print this item

  for loops and utilizing awk sucessfully for...
Posted by: paulpas - 2004-01-15, 12:32 AM - Forum: Tips and Tricks - No Replies


Ever have to do the same thing over and over again to a batch of files? Ever have to add routes to a group of boxes with different gateways? The list of aplications goes on and on.

lets say you have some zone files that need their serial number incremented. The files are:

 

db.0.0.10.in-addr.arpa

db.1.0.10.in-addr.arpa

db.2.0.10.in-addr.arpa

...

db.255.0.10.in-addr.arpa

 

The frist 10 lines of the files looks like:

 

@ IN SOA some.host.net. dns.host.net. (

2004011401 ; serial

10800 ; refresh (3 hours)

3600 ; retry (1 hour)

604800 ; expire (1 week)

86400 ; minimum (1 day)

)

NS dns.host.net.

 

 

Lets say the serial needs to be incremented to 2004011402 on all zone files due to a mass update. Well doing it manually would be extremely tedius. Here's how I'd do it...

 

cd into the directory of the zone files, then

 

for i in `ls db.*.*.10.in-addr.arpa`

do

sed -e '2,$s/2004011401/2004011402/' > $i.new

cp $i $i.old

mv $.new $i

done

 

You have updated the serial number and kept the original zone files in case you mess up. You should always make backups of a working configuration befor changing it. It can save you hours or work.

 

Example 2:

 

Lets say you have 4 boxes that have to have access to a certain network, but are in differnet datacenters with differnt gateways. I'm going to use netstat output from a Solaris box, it will not matter as your circunstances will allow the following to be adjusted to your environment.

 

foo% netstat -nvr

 

IRE Table: IPv4

Destination Mask Gateway Device Mxfrg Rtt Ref Flg Out In/Fwd

-------------------- --------------- -------------------- ------ ----- ----- --- --- ----- ------

10.23.119.56 255.255.255.248 10.123.119.58 hme0 1500* 0 1 U 685 0

10.64.119.0 255.255.255.0 10.123.119.1 1500* 0 1 U 768 0

224.0.0.0 240.0.0.0 10.184.119.58 hme0 1500* 0 1 U 0 0

default 0.0.0.0 199.184.119.1 1500* 0 1 UG 29088 0

127.0.0.1 255.255.255.255 127.0.0.1 lo0 8232* 0 2 UH 840 0

 

 

lets say the routing table is exactly the same except that the gateway on the boxes to access the said network is 10.123.119.1, 10.123.119.2, 10.123.119.3 and 10.34.123.129.

 

Now we have to set up a route for 128.45.234.0/24 network to access these. Here's a command that could be copied and pasted to all servers:

 

netstat -nvr | grep 10.64.119.0 | tail -1 | awk '{print "route add net 128.45.234.0 -netmask 255.255.255.0 "$3" 1"}' | sh

 

this will create output like:

 

route add net 128.45.234.0 -netmask 255.255.255.0 10.123.119.1 1

 

Adjust for your route syntax.

 

Just find something with the correct gateway in your netstat list, grep for it, tail -1 to ensure it's only 1 line, then awk it and pipe it to sh to execute it. I've used this method to add 12 new routes to 12 servers at the same time. Assing 144 routes by hand would be too tedius to do. Your mileage my vary.

 

-paulpas

Print this item

  Putty (windows SSH app)
Posted by: Oroshi - 2004-01-14, 10:57 PM - Forum: Windows - Replies (2)


okies, now i run the putty.exe which is free software, you can download from Download putty

 

I connect to my 2nd machine that running a Fedora Core 1 via ssh.

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/post-12-1074121042.jpg" data-fileid="35">[img]<fileStore.core_Attachment>/post-12-1074121042.jpg[/img]</a>



Attached Files
.jpg   putty.jpg (Size: 674.13 KB / Downloads: 0)
Print this item

  Install Eterm
Posted by: Guest - 2004-01-14, 09:53 PM - Forum: How Do I? - Replies (11)


Ok, so grep420 has a kicking ETERM desktop going on, and me being the noob, i dont know how to install it, can anyone help me out, I can't even find the app :(

 

-devenir (noobatron)

Print this item

  Installing NIC Card Driver
Posted by: Dave - 2004-01-14, 08:05 PM - Forum: How Do I? - Replies (4)


I'm trying to get a 3Com Gigabot LOM (hardware name lol, funny name) on my Asus K8V Deluxe using Fedora Core 1. I pulled down the driver from the Asus site, the correct one that says "Linux" hehe lol.

 

I followed the instructions which were getting the tar.gz out into a folder and then I did

 

root@localhost: make load

 

it went through huge list of doing stuff and then it asked me to to do an insmod 3c2000.o of which I did and the module already exists. And I doooont know what to do next because I cant see the device in the internet configuration lol

 

even did an ifconfig eth0 up

 

still no not access.

 

Any help would be greatly appreciated...

 

Thanks :-)

Print this item

  extract 1 file from RPM
Posted by: hijinks - 2004-01-14, 07:04 PM - Forum: Package Management - Replies (1)


Do you want to extract a file from an rpm package, but don't want to install the whole rpm to get it? Well here is how you do it. I am going to grab htpasswd from the httpd rpm

 

To find out where the file will get installed if you install the whole package run this command

 



Code:
rpm -qlp httpd-2.0.40-21.i386.rpm | grep htpasswd




 

Now that i have /usr/bin/htpasswd as the location I can use rpm2cpio to grab just that file.

 



Code:
rpm2cpio httpd-2.0.40-21.i386.rpm | cpio -ivd ./usr/bin/htpasswd




 

That should place a file in ./usr/bin/htpasswd Notice I have a . (period) in front. It will create the usr/bin and then place htpasswd in that dir in whatever dir you are in. So in my example i was in /tmp so all the full path to htpasswd is

 

/tmp/usr/bin/htpasswd

 

From there i could move it to /usr/bin and delete /tmp/usr and also the rpm.

 

another one from J to the Y

Print this item

  c++ compiler help please
Posted by: tek-69 - 2004-01-14, 02:43 PM - Forum: Compiling - Replies (2)


how can i tell from the command line what c++ compiler came with my version of rh9?

have fun,

-tek-

Print this item

  HOW TO export display over ssh in fedora
Posted by: anyweb - 2004-01-14, 02:29 PM - Forum: Remote Access - No Replies


howto (by [strabo]

 

this is a wee chat we had on IRC, come join us in #fedora on EFNET

 

cheers

 

anyweb

 

<[strabo]> ok my linux box is 172.16.2.170 (fedora core 1)

<anyweb> k

<[strabo]> on that box i typed> export DISPLAY=172.16.2.170:0.0

<[strabo]> my other x server (windows 2k3 with exceed) is 172.16.2.190

<[strabo]> on the linux box I then typed> xterm -display 172.16.2.190:0.0

<anyweb> keep going

<anyweb> is that it ?

<[strabo]> and a xterm popped up, I then typed > gnome-session start

<[strabo]> and boom gui

<[strabo]> if you run kde its> startkde

<[strabo]> yeap

<[strabo]> very easy but finding that on google is not :)

<anyweb> wheres the ssh bit ?

<[strabo]> oh I ssh into my linux box with putty

<[strabo]> and ran those commands over it :)

<[strabo]> forgot to mention that

Print this item

  I've added a make donation button
Posted by: anyweb - 2004-01-14, 12:20 PM - Forum: Site News - Replies (3)


hi all

this server is free to use for all of you, but if any of you feel like donating towards my running costs (i pay for it all) then feel free to donate :)

 

much appreciated to anyone who does !

 

cheers

 

anyweb

Print this item

  nVIDIA drivers and Fedora
Posted by: anyweb - 2004-01-14, 07:37 AM - Forum: Fedora - Replies (4)


check out this link

 

[/url][url=http://atrpms.physik.fu-berlin.de/dist/fc1/nvidia-graphics/]http://atrpms.physik.fu-berlin.de/dist/fc1/nvidia-graphics/

 

cheers

 

anyweb

Print this item