maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   sick of linux, trying to setup apache, help pls! (https://talk.maemo.org/showthread.php?t=17402)

Samba Pa Ti 2008-03-01 14:46

sick of linux, trying to setup apache, help pls!
 
im at the end of my tether with linux now, everything i try to do is hampered by it not being set out in a logical fashion, now im not a windows fanboy or anything but at least i can navigate folders on windows...

how do i get to the USR folder ?
ive installed apache (and ive used it before) but i cannot find this folder on the n800, i am a linux newb and this has hampered me from day 1 and untill now i havent bothered asking.

i assume i have to "become root" to find these folders ?
this imo is just stupid, i wish i could navigate to the internal memory from USB or somthing or if apache installed to SD card i could easily get going.

why do none of my programs install to my SD cards ?
is there a magical cache of memory hiding away inside my n800 that i cannot navigate to ?
what if i fill the thing up ?

sry for my ranting but this has been upsetting me for a while

reb402 2008-03-01 14:55

Re: sick of linux, trying to setup apache, help pls!
 
I suspect your problem is that filenames and directories are case sensitive in Linux/unix and the dir you want to see is /usr. You do not have to be root see /usr, but you might have to be root to some change things.

If you are using Ubuntu, become root this way:

sudo cmd

where cmd is the command you want to run. sudo will prompt for a password, which is your user password on Ubuntu.

If you are not using Ubuntu, then go into superuser (=root) mode:

su

and it will prompt for the root password that you set up when you installed the distro.

Samba Pa Ti 2008-03-01 15:00

Re: sick of linux, trying to setup apache, help pls!
 
thx for the reply but im refering to the n800 running maemo, ive installed the apache server for it, and i cannot find the files (file manager doesnt show the usr/ folder....)

i dont see a point in hiding these things, its not like i will delete everything by accident.

nhanquy 2008-03-01 16:05

Re: sick of linux, trying to setup apache, help pls!
 
Quote:

Originally Posted by Samba Pa Ti (Post 149823)
thx for the reply but im refering to the n800 running maemo, ive installed the apache server for it, and i cannot find the files (file manager doesnt show the usr/ folder....)

i dont see a point in hiding these things, its not like i will delete everything by accident.

becomeroot then you will become god of your machine. Including messing it up!

If you have root access and xterm do a logical link from your
/home/user/MyDocs/.documents to any directory you like to access; then you will see it under the "provided" file manager.
For example,

#cd /home/user/MyDocs/.documents
#ln -s /home/user home

You will see a "new" home directory under Documents of the File Manager. You can traverse from there !

Remember Nokia did not want you to put a webserver on the N8x0 !!
That was why Nokia only gave you that restricted file manager.

iamthewalrus 2008-03-01 16:26

Re: sick of linux, trying to setup apache, help pls!
 
You can see where all files of a package are installed by typing in xterm
Code:

dpkg -L name-of-the-package
Unlike Windows with linux all files of a package are usually not in a single folder. System wide configuration files of apps go in /etc, binaries (like the exe files in windows) go to /usr/bin, libraries (like dll files in windows) go to /usr/lib, and images to /usr/share. Per user settings go to /home/<username>/.<name-of-application>. Per-user settings usually take precedence over system wide settings.

I suggest you read up a little on basic commandline stuff like moving files, changing file permissions, the linux directory structure, and starting and stopping services. I've been using linux for half a year now and I know how weird it seems at first.

Samba Pa Ti 2008-03-01 16:28

Re: sick of linux, trying to setup apache, help pls!
 
thanks for the help il see how i get on :)

iamthewalrus 2008-03-01 16:46

Re: sick of linux, trying to setup apache, help pls!
 
I realise that the link I gave was more intermediate-level tips and tricks. You better google on the essential linux commands like cd, find, cp, mv, rm, more, grep, mount, chmod, chown. They are like the cd, copy, rename etc. in Windows.

Texrat 2008-03-01 17:15

Re: sick of linux, trying to setup apache, help pls!
 
Wow, I'm having a DOS/Unix command line flashback! :D

brecklundin 2008-03-02 02:01

Re: sick of linux, trying to setup apache, help pls!
 
hahahaha...no kidding!! Next thing you know we are gonna have to manually configure IRQ's, allocate extended and expanded RAM...and find that old copy of QEMM386 that is somewhere in storage.

We want DRDOS!!!

bunanson 2008-03-02 03:16

Re: sick of linux, trying to setup apache, help pls!
 
Quote:

Originally Posted by Samba Pa Ti (Post 149823)
thx for the reply but im refering to the n800 running maemo, ive installed the apache server for it, and i cannot find the files (file manager doesnt show the usr/ folder....)

i dont see a point in hiding these things, its not like i will delete everything by accident.

go www.gronmayer.com/it/index.php search for filemanager of your OS (2008 or 2007 or whatnot...), click the green install button, install GPE-filemanager 0.30. It is a GUI for file manager, supplement to the Nokia filemanager.

Or even better, http://wardenclyffetower.com/MaemoFiles/emelfm2/, dl the bora (2007Os) or chinook (2008Os), and install emelfm2. It is a very powerful filemanager, allows among others, create/edit files, become root, dual windows... more powerful, less user friendly, just like anything in life.


bun

pipeline 2008-03-02 04:25

Re: sick of linux, trying to setup apache, help pls!
 
Yea, while i am partial to emelfm2 since i know workarounds for all the quirks, for something as (potentially) complicated as setting up apache i'd say use openssh server and since you sound like xp guy, install WinSCP to connect from desktop.

Here's info i wrote in another post :

Quote:

Originally Posted by pipeline
You should install becomeroot from the application manager under settings menu on n800... if you dont see it then click this link (from n800 browser) to add the repository which contains it by searching for becomeroot here :

http://www.gronmayer.com/it/

After you have installed it then open xterm and type :

sudo gainroot
passwd root

then set your root password, preferably to something you will remember

With SSH access you can remotely access the entire device from a destop... i would recommend eventually learning this. Install SSH Server on device and a utility like WinSCP for Windows XP or gFTP for linux.

You will need to configure WinSCP with the IP address, username (root) and password. If you dont know the ip address of device, install IPHome applet.

If you do use emelfm2, then when the time comes to edit those files outside your /home/usr directory, you will need to launch emelfm2 from xterm as root :
sudo gainroot
emelfm2


All times are GMT. The time now is 14:38.

vBulletin® Version 3.8.8