-
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
-
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.
-
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
-
Senior Member
registered user
Re: what about changing properties of files ?
--You *are* doing this as Root, aren't you?
![Quote](images/misc/quote_icon.png)
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
-
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
-
Senior Member
registered user
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](images/misc/quote_icon.png)
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
-
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 ?
-
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
Anonymous
--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 '.
-
Junior Member
registered user
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
Similar Threads
-
By dave_sussex in forum General Support
Replies: 12
Last Post: 02-17-2004, 02:07 PM
-
By tazzi in forum Customising & Remastering
Replies: 7
Last Post: 01-26-2004, 12:29 AM
-
By wildcat in forum Networking
Replies: 2
Last Post: 09-24-2003, 02:27 AM
-
By Jampa in forum Networking
Replies: 1
Last Post: 09-14-2003, 11:48 AM
-
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
-
Forum Rules
![Genuine Apple OEM 60W Magsafe Charger / AC Adapter for A1278 MacBook Pro Air picture](/store/img/g/SkAAAOSwbbFmMWbp/s-l225/Genuine-Apple-OEM-60W-Magsafe-Charger-AC-Adapter-f.jpg)
Genuine Apple OEM 60W Magsafe Charger / AC Adapter for A1278 MacBook Pro Air
$7.99
![Genuine Apple OEM 60W Magsafe Charger / AC Adapter for A1278 MacBook Pro picture](/store/img/g/SkAAAOSwbbFmMWbp/s-l225/Genuine-Apple-OEM-60W-Magsafe-Charger-AC-Adapter-f.jpg)
Genuine Apple OEM 60W Magsafe Charger / AC Adapter for A1278 MacBook Pro
$7.49
![Genuine OEM Apple 30W USB-C Power Adapter Charger 2m Cable iPhone 15, iPad Pro picture](/store/img/g/P-sAAOSwCF5mYd-Y/s-l225/Genuine-OEM-Apple-30W-USB-C-Power-Adapter-Charger-.jpg)
Genuine OEM Apple 30W USB-C Power Adapter Charger 2m Cable iPhone 15, iPad Pro
$27.00
![Genuine OEM Apple USB-C type c to MagSafe 3 Cable 2 M- MLYV3AM/A picture](/store/img/g/N6EAAOSwWOFk3cj-/s-l225/Genuine-OEM-Apple-USB-C-type-c-to-MagSafe-3-Cable-.jpg)
Genuine OEM Apple USB-C type c to MagSafe 3 Cable 2 M- MLYV3AM/A
$22.95
![Genuine Apple OEM 60W Magsafe Charger / AC Adapter for A1278 MacBook Pro picture](/store/img/g/sWYAAOSw~dtmMWz-/s-l225/Genuine-Apple-OEM-60W-Magsafe-Charger-AC-Adapter-f.jpg)
Genuine Apple OEM 60W Magsafe Charger / AC Adapter for A1278 MacBook Pro
$7.95
![Genuine OEM Apple 12W USB Power Adapter Type A Wall Charger for iPhone & iPad picture](/store/img/g/8poAAOSwK8BmAtxE/s-l225/Genuine-OEM-Apple-12W-USB-Power-Adapter-Type-A-Wal.jpg)
Genuine OEM Apple 12W USB Power Adapter Type A Wall Charger for iPhone & iPad
$4.49
![Apple 45W MagSafe 2 Power Adapter A1436 MacBook Laptop Charger OEM Genuine picture](/store/img/g/TwAAAOSwq7tmNAfA/s-l225/Apple-45W-MagSafe-2-Power-Adapter-A1436-MacBook-La.jpg)
Apple 45W MagSafe 2 Power Adapter A1436 MacBook Laptop Charger OEM Genuine
$6.95
![Genuine Apple OEM 12W USB Wall Charger & Cable for iPad Pro, Air, and Mini picture](/store/img/g/EDYAAOSwLtFmY2jv/s-l225/Genuine-Apple-OEM-12W-USB-Wall-Charger-Cable-for-i.jpg)
Genuine Apple OEM 12W USB Wall Charger & Cable for iPad Pro, Air, and Mini
$14.99
![APPLE OEM Power Extension Cable 6ft for MacBook Pro -Lot of 10 Cables picture](/store/img/g/Ao0AAOSwnsBmBQhU/s-l225/APPLE-OEM-Power-Extension-Cable-6ft-for-MacBook-Pr.jpg)
APPLE OEM Power Extension Cable 6ft for MacBook Pro -Lot of 10 Cables
$19.99
![OEM For iPhone 15 Pro Max USB-C to USB-C Cable Fast Charger Type C Charging Cord picture](/store/img/g/YCkAAOSweFpmak2r/s-l225/OEM-For-iPhone-15-Pro-Max-USB-C-to-USB-C-Cable-Fas.jpg)
OEM For iPhone 15 Pro Max USB-C to USB-C Cable Fast Charger Type C Charging Cord
$10.89