LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-10-2005, 11:57 PM   #1
snip128
Member
 
Registered: Jan 2004
Location: Delaware
Distribution: gentoo
Posts: 96

Rep: Reputation: 15
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
 
Old 07-11-2005, 01:19 AM   #2
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
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...
 
Old 07-11-2005, 01:30 AM   #3
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
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.
 
Old 07-11-2005, 05:53 AM   #4
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
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.


Last edited by runlevel0; 07-11-2005 at 05:59 AM.
 
Old 07-11-2005, 04:55 PM   #5
snip128
Member
 
Registered: Jan 2004
Location: Delaware
Distribution: gentoo
Posts: 96

Original Poster
Rep: Reputation: 15
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

Last edited by snip128; 07-11-2005 at 05:01 PM.
 
Old 07-11-2005, 05:07 PM   #6
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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
 
Old 07-11-2005, 05:11 PM   #7
rconan
Member
 
Registered: Jun 2005
Distribution: Debian Unstable (Sid)
Posts: 63

Rep: Reputation: 15
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.
 
Old 07-11-2005, 10:36 PM   #8
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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.
 
Old 07-11-2005, 10:44 PM   #9
snip128
Member
 
Registered: Jan 2004
Location: Delaware
Distribution: gentoo
Posts: 96

Original Poster
Rep: Reputation: 15
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 -.-

Last edited by snip128; 07-11-2005 at 11:47 PM.
 
Old 07-14-2005, 11:09 PM   #10
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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.

Last edited by DavidPhillips; 07-14-2005 at 11:11 PM.
 
Old 07-16-2005, 12:50 PM   #11
danimal87
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 18

Rep: Reputation: 0
aterm transparency

I do belive that there is an artical on aterm transparencys in the tutorials section
 
Old 07-16-2005, 03:05 PM   #12
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Indeed there is - I wrote it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a bunch or problems. Peingune Linux - Newbie 2 04-25-2005 11:05 AM
bunch of questions Sparky1 Linux - Newbie 8 04-19-2005 10:03 PM
Just A Bunch of Thank You XWindows LQ Suggestions & Feedback 1 03-15-2005 05:34 PM
NOOB/Please a simple answer installing .bin files bad1drums Linux - Newbie 3 03-31-2003 10:26 PM
bunch o'questions that_girl Linux - Newbie 10 03-15-2002 02:38 PM


All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration