LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bunch of noob questons...answer what u can =) (https://www.linuxquestions.org/questions/linux-newbie-8/bunch-of-noob-questons-answer-what-u-can-%3D-342025/)

snip128 07-10-2005 10:57 PM

bunch of noob questons...answer what u can =)
 
ok, first...is there a way i can link a directory to another name and have it be treated like a normal directory and not a link? i have a website using .asp files to list the contents of a directory, and it shows up blank in symlink directories...for example, i want to have a directory called "Screen Shots" shortened to "Screens"...yes, and appear in my /var/www folder, and the .asp file in it to list the contents...if u need more info (ie the script, just ask) :)

second...i need to know how to route intrenet too my LAN (most likely nat)...

third...how do u set transperency in aterm? O.o

fourth...is there a way to convert ntfs to like reiser or ext3 or something that linux can write to? (i know theres a pogram that can write to ntfs, but it never works for me)... x_x


out of all of these...i realllllyyyyy need the first and fourth...i can google the other two...just thought id ask while im at it..

thanks in advance,
chris

detpenguin 07-11-2005 12:19 AM

hi chris

can't help ya with the third and fourth, and but with the third...aterm...create a file in your home directory called .Xdefaults, then add this to the file...make sure you add the "." in front of the .Xdefaults...

aterm*cursorColor:blue
aterm*colorMode:true
aterm*pointerColor:yellow
aterm*pointerColor2:yellow
aterm*borderWidth:0
aterm*tinting:#ffffff
aterm*loginShell:true
aterm*transparent:true
aterm*shading:50
aterm*background:white
aterm*foreground:light blue
aterm*scrollBar:false
aterm*fade: 60
!aterm*font: 9x15
aterm*font: 8x13
aterm*saveLines:4500
aterm*geometry:85x30
aterm*truetintingType:True
!
! colors
!
aterm*color0:rgb:00/00/00
aterm*color1:rgb:cc/66/66
aterm*color2:rgb:66/cc/66
aterm*color3:rgb:cc/cc/66
aterm*color4:rgb:66/66/cc
aterm*color5:rgb:cc/66/cc
aterm*color6:rgb:66/cc/cc
aterm*color7:rgb:cc/cc/cc
aterm*color8:rgb:63/33/33
aterm*color9:rgb:ff/99/99
aterm*color10:rgb:99/ff/99
aterm*color11:rgb:ff/ff/99
aterm*color12:rgb:99/99/ff
aterm*color13:rgb:ff/99/ff

and that will give you transparency...

linux-rulz 07-11-2005 12:30 AM

Quote:

third...how do u set transperency in aterm? O.o

fourth...is there a way to convert ntfs to like reiser or ext3 or something that linux can write to? (i know theres a pogram that can write to ntfs, but it never works for me)... x_x
Regarding the third, it should just be in one of the drop down menus. It does not work well though unless you have X Composite turned on (currently deemed unstable).

For the fourth, no luck there. Back up your files and reformat, that is all you can do.

runlevel0 07-11-2005 04:53 AM

Re: bunch of noob questons...answer what u can =)
 
Quote:

Originally posted by snip128
ok, first...is there a way i can link a directory to another name and have it be treated like a normal directory and not a link? i have a website using .asp files to list the contents of a directory, and it shows up blank in symlink directories...for example, i want to have a directory called "Screen Shots" shortened to "Screens"...yes, and appear in my /var/www folder, and the .asp file in it to list the contents...if u need more info (ie the script, just ask) :)

A link is a link, it will always be treated as a link. A link is nothing more than an inode (a structure of the file system) which contains a pointer to the actual directory. I'm not sure what you are going to do, but if the target of the link is outside of /var/www you won't be able to see it as Apache chroots /var/www, this means that from apache's point of view nothing outside /var/www exists.

If what you want is to have a link *inside* /var/www renaming a dir you can always use good ol' HTML tags. Either way symliks would perfectly work, AFAIK.

Quote:


second...i need to know how to route Internet too my LAN (most likely nat)...

If you have a DSL router you don't need to do anything, NAT is already enabled, the only thing you need to do is to either use one of the boxes as gateway or using the router itself for this purpose.

The first is straightforward. For the second you will need to enable NAT:
Code:

modprobe iptable_nat
 /sbin/iptables -t nat -A POSTROUTING -o device -j MASQUERADE
 echo 1 > /proc/sys/net/ipv4/ip_forward

You will of course need to change "device" with the name of your network device (prolly eth0).

After this, enable the NAT server as the default gateway.
IMHO this approach is the safest if you use a secure machine (not your webserver) as gateway.

Quote:


third...how do u set transparency in aterm? O.o

Just enable the COMPOSITE extensions in your /etc/xorg.conf and you will get *REAL* transparency instead of fake transparency (background is displayed) at a very low cost as it's the graphics card which does the work:
Code:

Section "Extensions"
  Option "Composite" "Enable"
EndSection


Quote:


fourth...is there a way to convert ntfs to like reiser or ext3 or something that linux can write to? (i know theres a program that can write to ntfs, but it never works for me)... x_x

Code:

modprobe ntfs_write
or take a look at your kernel sources to see if NTFS write is enabled, no need for exotic programs.

In case you don't know, or you don't find the module, just post and I will tell you how to recompile the kernel so that you get the module working. But please tell us which distribution you use.


snip128 07-11-2005 03:55 PM

well, the method that detpenguin said worked for the "transperancy"...the real transparency thing didnt work though...would the fact that im using vnc have anything to do with it? and...my x config file is /etc/X11/XF86Config-4..

when i try the ntfs write...

Code:

debian:~# modprobe ntfs_write
Note: /etc/modules.conf is more recent than /lib/modules/2.4.27-2-386/modules.dep
modprobe: Can't locate module ntfs_write

guess i have to rebuild? umm...pretty much all i know about my distrib is that its the latest net install of debian...with a 2.4 kernel... x_x if you need more info...tell me how to get it :)

also, is there some alternative that i can use to symlinking then? for example, on windows, i used the "virtual directory" feature of iis (internet information services...microsoft webserver lol)..what i have is a html page with links, and when you click one it will load or example, "/Screens/main.asp" which would display the contents of the screens folder...wherever it is...i dont need the actual folder to be there, i just need the webserver to THINK its there...i have apache 2...

also...whats the difference between symlinking and hardlinking...and why cant even root hardlink a directory??

hope my reply didnt take too long...i was relying on emails to inform me of replys...never got em... O.o lol

phil.d.g 07-11-2005 04:07 PM

For number1, if your using apache you need to add
Code:

Options +FollowSymLinks
to the
Code:

<Directory "/var/www">
clause in your httpd.conf, then restart apache

Number 2, depends on the router/switch you are using look at the documentation that came with it, it will tell you what you need to do.

Number 3, well thats already been done to death, lol. You should have that sorted by now

NUmber 4, you need to compile ntfs read/write support into the kernel, though support for the ntfs file system is not stable. As far as I know there is no utility to convert ntfs to a native linux file system

rconan 07-11-2005 04:11 PM

a symlink is where a file which points to another file which points to a place on the disk

a hardlink where two files both point directly to the same place on the disk

i dont know why root cant hardlink as ive never had need to.

DavidPhillips 07-11-2005 09:36 PM

I can't really add much help to what's been posted already, with the exception of the way the thread is structured.

It would be better to use seperate threads for each question so that unique threads topics are maintained.

snip128 07-11-2005 09:44 PM

umm...there is no clause like that in my httpd.conf file...its actually quite empty only a few lines...all commented out...can you tell me what to put to add it? i also don't see it in the apache2.conf file...

ill keep that in mid next time david.. >.>

EDIT: actually, i found that the file i need to edit is in /etc/apache2/sites-available/default...unfortunately, follow symlinks is already on...when i disable i cant access the asp in the dir, and when its enabled, i still cant view the folder contents...im reseraching this sites-available and sites-default thing...maybe i can get it to create other "sites" and use them as folders...(id make a site with a home dir of lets say... /mnt/hdc2 and the default page main.asp)

mmm i just got a big wtf question :) the asp files in the subdirectories of the linked folder work...so lets say the linked folder is Screens... Screens/main.asp wont display the contents of /var/www/Screens but Screens/UT2004/main.asp WILL display the contents of /var/www/Screens/UT2004 isnt that weird? O.o

the default apache directory listing works in ever folder...

another noob question on apache...quick one...how can i make it non-case sensitive...the .asp files aren't case sensitive in the links -.-

DavidPhillips 07-14-2005 10:09 PM

there is a speling module that should solve that problem.


If you want to browse a folder set this as an option..

Options Indexes


If you don't want to allow someone to browse a folder set this option..

Options +Indexes




You should also check the ownership and permissions of your folders.

danimal87 07-16-2005 11:50 AM

aterm transparency
 
I do belive that there is an artical on aterm transparencys in the tutorials section

scuzzman 07-16-2005 02:05 PM

Indeed there is - I wrote it :D


All times are GMT -5. The time now is 10:42 AM.