Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Knoppix as webserver

Hybrid View

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    4

    Knoppix as webserver

    When I try apache start (under etc\init.d) I get an error:
    host valid name not found in ServerName. How do I fix this ? How can I edit a config file like hosts ?


    thanks

    Rubens

  2. #2
    Lars Jensen
    Guest
    Here's what I did:

    Delete the symbolic links /etc/hosts and /etc/hostname

    copy the same files back from /KNOPPIX/etc/hostname and KNOPPIX/etc/host

    Edit the files to define the appropriate new names, and then run the command:

    hostname your_new_hostname

    Lars.

  3. #3
    Junior Member
    Join Date
    Dec 2002
    Posts
    4

    what about changing properties of files ?

    Tak Lars !
    I try what you said but I cannot save the edited files or even delete them. How can I change the properties of the config files so I could change them ?



    Rubens

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: what about changing properties of files ?

    --You *are* doing this as Root, aren't you?

    Quote Originally Posted by rubis
    Tak Lars !
    I try what you said but I cannot save the edited files or even delete them. How can I change the properties of the config files so I could change them ?



    Rubens

  5. #5
    Guest

    logging as root...

    As the login is automatic, I think I was logged as root ! !!!

    How do I login as root ? Using su- ? What's the password ?


    rubens

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: logging as root...

    --You would do well to browse the historical posts on this board and on http://www.linuxtag.org/cgi-bin/yabb...ard=knoppix-en before asking such a question, but here we go again...

    Just hit Ctrl-Alt-F1 and you will be at one of (4) Root prompts. F1 thru F4. Alt-F5 (or is it F7?) gets you back to the GUI.

    --Just as There Is No Spoon, there is no root password.

    --You would also do well to learn the SEVERE DANGERS INVOLVED when you try running everything as root. This is why we have USER accounts. Otherwise you make it EASY for your system to get cracked.

    Quote Originally Posted by Anonymous
    As the login is automatic, I think I was logged as root ! !!!

    How do I login as root ? Using su- ? What's the password ?


    rubens

  7. #7
    Guest

    ok !!!

    OK! It works now ! Thanks !
    I also found an easy way:
    There is an option in the KDE menu for "Browse files as Root"or something like this, in system. From there you can delete and edit very easy the files.
    After that just put your html page in var/www/ . and call apache.
    In 5 minutes (including boot) you can put a webserver "on air" :>)

    Another question now is : How do I enter as root if I start Knoppix in only text mode ?

  8. #8
    Guest
    Code:
    sudo su
    would work i think

  9. #9
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    Quote Originally Posted by Anonymous
    Code:
    sudo su
    would work i think
    --If you boot Knoppix into text mode from the CD, you are already at a Root prompt, and still have Ctrl-Alt-F1 thru F4. But if you need to get a root prompt from KDE, start a Konsole or other (such as rxvt) shell, and type ' sudo bash '.

  10. #10
    Junior Member registered user
    Join Date
    Apr 2003
    Location
    Warsaw, IN
    Posts
    23

    Re: logging as root...

    [quote="Dave_Bechtel
    Just hit Ctrl-Alt-F1 and you will be at one of (4) Root prompts. F1 thru F4. Alt-F5 (or is it F7?) gets you back to the GUI.
    [/quote]

    DO NOT tell people to hit Ctrl-Alt-F1 again!

    I could not get back to the GUI after that, and I had to finally shut down manually by doing the shutdown -r now thing.
    F1-F4, Alt-F5 (or F7) would not work.

    so I repeat DO NOT TELL SOMEONE TO DO THAT AGAIN!

    thank you.

    and to answer your question,
    you don't need to use sudo

    just type su at a command terminal and you'll be at root
    knoppix logs on as user knoppix (even though it askes you what username and password you want, it still uses the default knoppix anyways) so just type su to get to a root prompt, thats it.

    or su [username] to switch users

Page 1 of 2 12 LastLast

Similar Threads

  1. CD-based Knoppix as webserver?
    By dave_sussex in forum General Support
    Replies: 12
    Last Post: 02-17-2004, 02:07 PM
  2. knoppix version: webserver, php & mysql
    By tazzi in forum Customising & Remastering
    Replies: 7
    Last Post: 01-26-2004, 12:29 AM
  3. webserver permission
    By wildcat in forum Networking
    Replies: 2
    Last Post: 09-24-2003, 02:27 AM
  4. Replies: 1
    Last Post: 09-14-2003, 11:48 AM
  5. want to create a knoppix webserver....
    By TheSovereign in forum Customising & Remastering
    Replies: 2
    Last Post: 02-11-2003, 12:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1599.99



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR picture

DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR

$1100.00



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99



IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER picture

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER

$349.99



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$111.70



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



2 -IBM  16GB 2GX72 00VK248  CDIMM Server Memory DDR4 LOT OF 2 32GB TOTAL picture

2 -IBM 16GB 2GX72 00VK248 CDIMM Server Memory DDR4 LOT OF 2 32GB TOTAL

$79.95



IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671 picture

IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671

$230.00



IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU picture

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU

$225.00