Jump to content

MottS

Members
  • Posts

    1017
  • Joined

  • Last visited

Posts posted by MottS

  1. Hello

    Alright, I am planning on setting these three services on a server.  Do you guys know of any good tutorials?

    Actually no... but I don't think you need any. Those servers come preconfigured on MDK. Take Apache (httpd) for instance, you have nothing to do in /etc/http/conf/http.conf for it to work #1. SSH too.. only install it and it works. ProFTPd can be a bit more tougher though. It really depends if you want an anonymous login or not.

     

    Also, I am connected via cable(static IP though) and a router.  Do I need to assign a port to the server from the router to send all SSH requests to the server or can it figure it out on it's own?

    You will have to configure your router to forward port 80 (httpd), 21 (ftp) and 22 (ssh) to your box running the servers because it'll not figure it all by itself.

     

    Good luck

     

    MOttS

  2. You are looking for LAME or BLADEENC. I suggest you to add an rpm source to your rpm database that contains one of those programs in rpm format. So:

     

    1) Go to http://plf.zarb.org/~nanardon/ and add PLF and Texstar.

    2) Open up rpmdrake or a console and search for bladeenc. Install it.

     

    Those progs are command line based. If you want a frontend I suggest your GRIP.

     

    :headbang:

     

    MOttS

  3. Thanks DragonMage. I finally found what the problem was. There is a lot of stuff related to drakconnect in /etc/sysconfig. For example:

     

    -rw-------    1 root  root        46 nov  7 20:58 drakconnect

    -rw-------    1 root  root            0 nov  7 20:58 drakconnect.cable

    -rw-------    1 root  root          343 nov  7 20:58 drakconnect.netc

     

    and some other stuff in /etc/sysconfig/network-scripts/. So I deleted all the files starting with 'drakconnect' and rerun drakconnect. I did exactly the same as usual and it worked. I guess the wizard was too stupid to actually take my inputs and put it in the files. I forced it to write my settings to the files by deleting them before starting the wizard.. hehe.

     

    Thanks!

     

    MOttS

  4. Hi emilioestevezz (what a name man !)

     

    The answer depends of your setup. It also depends on which computer the 'webbroswer' you are trying to access your ftp server is.

     

    If you have 1 computer connected to net and you try to propftd on this computer for those on the net to access it then put the following in /etc/shorewall/rules and restart shorwall

     

    ACCEPT net fw tcp 21 -

     

    If your server have 2 ethernets cards and you want to access the ftp server from within your lan then it might be

     

    ACCEPT masq fw tcp 21 -

     

    or (if you don't use NAT)

     

    ACCEPT loc fw tcp 21 -

     

    If the ftp server is behind a router (running shorewall) then you'll have to forward port 21 (replace 'IP' by the IP of the computer running the ftp server behind the router).

     

    DNAT net masq:IP tcp 21 -

     

    don't forget to restart shorewall !!!!! As root type

     

    service shorewall restart

     

    Well, ... HTH

     

    :P

     

    MOttS

  5. Hi all

     

    I just switched from an ADSL connection to Cable. However, my server (MDK 9.0) refuses to connect to the net normally now. Let me explain.

     

    I have 2 ethernets cards. eth0 is connected to the Cable modem (WebSTAR) and eth1 to my LAN. When I run the MCC wizard to configure the network cards and the cable connection (dhcp), everything seems fine. However, I can't surf the net. I cannot ping anything too. When I type 'route', the default route is to eth1 even though I selected 'cable' when the wizard asked for the 'internet interface'. I uninstalled Shorewall, Iptable (and pppoe) so it's not a firewall problem....

     

    Now, if I type 'service network stop' and starts the internet connection by hand by typing 'dhcpcd eth0', I CAN surf the net and when I type 'route' the default route is to eth0, as it is supposed to be.

     

    So the wizard seems to have problems with this now. My setup is exactly as it was before exept that I'm on Cable instead of ADSL.

     

    WTF?

     

    Thanks for any input or suggestion.

     

    MOttS

  6. . Auto start VNCserver (tightvnc) but nothing happens after launching viewer from W2K

    The viewer will not find the server by itself. You have to enter the IP of the server in the box + the virtual display number. Something like

    192.168.1.1:1

    the :1 depends on which display you started the vncserver on the linux box. I mean, if you starts the vncserver like

    vncserver :1

     

    then the :1 is ok. Otherwise change the :1 for your display number.

     

    Also, did you install a firewall or something ..? That may cause you problems accessing the vncserver. Vncserver works of weird ports numbers..

     

    MOttS

  7. This is probably using those command lines:

     

    http://www.daniel.nofftz.net/linux/

     

    I have a AMD-751 based motherboard and I enable cpu cooling by typing as root:

     

    setpci -v -s 0:0.0 0x62=$(printf %x $((0x$(setpci -H1 -s 0:0.0 62) | 0x06)))

     

    and disable it with

     

    setpci -v -s 0:0.0 0x62=$(printf %x $((0x$(setpci -H1 -s 0:0.0 62) & 0xf9)))

     

    We (you too) talked about it alot here:

     

    http://mandrakeusers.org/viewtopic.php?t=4100

     

    And yes it drops the cpu temp like crazy man!

     

    MottS

  8. I don't know how to do what you are advising.  I am new to mandrake.

    oh .. ok then.

     

    Open the file located at /etc/shorewall/policy as root (the admin of the system) and do the mod. Open a console and do that as follow (this should open an editor for you to do the mod):

    su
    
    [enter your password]
    
    kwrite /etc/shorewall/policy

     

    Now save the changes and in the same console that your opened, type that to restart the firewall :

    service shorewall restart

     

    as simple as that

     

    MottS

  9. As a test put the following in /etc/shorewall/policy

    all all ACCEPT info

    Notice that you have to comment out the rest. So if you have 'fw net ACCEPT' or 'masq net ACCEPT', comment (put a # in front of them) them.

     

    Now restart shorewall. As root type

    service shorewall restart

     

    Source:

    http://www.shorewall.net/Documentation.htm#Policy

     

    Let us know if it works now because some tweaking in /etc/shorewall/rules will be needed.

     

    MOttS

  10. The machine will boot no problem without mouse/monitor/keyboard. My server don't have any of these and it boots #1.

     

    Now for VNC. You first have to install it. At the command line, become root and install tight-vnc as follow

    su
    
    [enter password]
    
    urpmi tightvnc-server

    Now tell your system to start the vncserver when it boots. Adjust the runlevel to yours (probably 3 since you don't have any screen .. hehe). But mine is 5 so here we go.

    chkconfig --level 5 vncserver on

    Now adjust the file /etc/sysconfig/vncservers according to your need. Mine look like (my user is "gd") this. Read the beginning of the file to understand what is file is all about.

    VNCSERVERS="1:gd"

    Finally, as your user (me "gd") enter a vnc password with the command

    vncpasswd

    With all this, the vncserver should start a vnc session for your user everytime the system boot to runlever X (X being your runlevel).

     

    Now, you can access the vncserver from any win2k machine. You can download the viewer for win32 machine freely here:

     

    http://www.realvnc.com/dist/vnc-3.3.7-x86_...in32_viewer.exe

     

    Connect to the vncserver with the IP + ":1" at the end. Like that:

     

    192.168.x.y:1

     

    Tell me if you want more details ..

     

    MOttS

  11. One parting question, we like to keep this Linux file server in a network room and leave it to run continuously, can it run (boot) without keyboard,mouse,monitor and I simply use VNC to control it from PCs outside. Network room is 4 floors away from the office where the PCs are.

    Sure. My server is always up (you can see my uptime at the bottom of my avatar if you are NOT using IE :twisted: ) and there is no mouse/keyboard/monitor attached to it. It boots no problem.

     

    Good luck!

     

    MOttS

  12. Somehow, unless I log on as root, all other users can't even run ping from a command line.

    Ping and a few other commands (nmap for example) are reserved for the admin of the system. So you have to open a terminal and 'su' to root to use them. This is the way it works in Linux.

     

    I cannot log in as root anymore because the Gnome screen only present users for me to choose from with the 2 options " reboot" or "Halt" everytime I logout (After I added users and sign in as user and save configurations). How can I revert it back to the default login screen not Gnome one?

    Why would you run a desktop as root? You should NOT do that for security reason. If you wanna run something as root you only have to open a terminal, 'su' to root and type the command you wanna start as root... as simple as that.

     

    Now, there is several login manager you can choose... I guess you are looking for MdkKDM. Open the MCC and go Hardware. You should see and icon about Login Manager or something like that. Go ahead and do what you wanna do.

     

    I cannot see the directory I want to share from any W2K PCs

    Post your /etc/samba/smb.conf here and we'll tell you what to modify in it. Which directory you wanna share?

     

    MOttS

  13. Goal : Want to setup Mandrake Linux on a PC to act as file server for 4x W2K

    PC, no fancy security, just to be able to mount a drive off Windows explorer

    and allow users to save files to a shared space in Linux PC (it has 2x 60G

    drives). This will allow us to setup cron jobs to backup files and centralize

    location of work files. No application sharing from Linux. All application

    will be run from W2K PCs.

    Good

     

    Done so far: Loaded Mandrake 9.1 with no problem, setup network, can ping W2K

    PCs from Linux PC but W2K PC cannot ping Linux PC. Linux PC can browse net no

    problem.

    Did you installed a firewall on your linux box? Do you see something in /etc/shorewall?

     

    I read about SAMBA, cannot find "samd" but found directory /etc/samba,

    downloaded samba-latest.tar.gz from web but cannot get pass the ./configure

    command.

    You don't need to configure/compile/install this way man .. Samba is on your CDs. So in a console type as root the following to install Samba client and server:

    urpmi samba-client
    
    urpmi samba-server

    This will install Samba on your computer. Now, play with the config file to suit your needs (/etc/samba/smb.conf). You should read this file carefully since it is self-explaining. Look specially for the variable workgroup, netbios name, [tmp] and [public].

     

    Now the only thing you have to do is start the samba server as follow:

    service smb start

    Now to stop the server and now its status its

    service smb stop
    
    service smb status

    I think you can also look in the Mandrake Control Center (MCC) under System and DrakXService to start/stop/status it and allow the server to start on boot (you probably want that).

     

    Could someone please send me detail step by step instruction or links to setup

    and run SAMBA, also tell me why my W2K pcs cannot see the Linux PC.

    May be the firewall problem as explain above...

     

    IF you need more info let us know!

     

    HTH

     

    MOttS

×
×
  • Create New...