Re: [newbie] Symbolic links
Michael Adams wrote: On Sat, 30 Nov 2002 00:24, John Richard Smith wrote: Stephen Kuhn wrote: On Fri, 2002-11-29 at 04:53, John Richard Smith wrote: I did it this way, I cd into directory then , #rm libxyz it asked Yes or no, Y it seems to remove it. Am I right. John -- John Richard Smith [EMAIL PROTECTED] (Or, login as root, do a cd /, then type rm -rf * - that will certainly remove any and all symbolic links...) JOKING - PLEASE DON'T DO THAT! Yes I thought so, but seriously , rm can remove anything, so I had to ask, because It's the link, not the target file that I want to remove. I know all you billion times experienced symlinkists may find this very elimentary, my dear Whatson, but us types that have never created one before let alone remove it, don't have that experience to draw on, and the manual was not very helpfull. John John If in doubt John, be brave and experiment a little. It goes like this. - backup - experiment - check results = good result - can safely delete backup = bad result - restore from backup and try again BTW, this is offered advice not a telling off. (It is hard to get the correct tone into these e-mails from recent experience). Yes you are right Michael, I tend to be a bit conservative with a small "c", still my understanding is that much better for asking and no feeling ruffled I assure you, I like a bit of good natured banta anyway. I need to find time to read that Advanced bash scripting pdf file. John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
On Sat, 2002-11-30 at 03:04, John Richard Smith wrote: > > > >I fully understand, though. Keep in mind that symbolic links are to *nix > >what "shortcuts" are to Windows (very basically put - but not entirely > >true - but the analogy works well in this instance). > > > >Symbolic links are quite useful - much like the Windows shortcuts. You > >can create symlinks to programs with cryptic and strange names that are > >more easily typed...or vice versa... > > > I see, so symlinks aid initiation by linking commands to devices and > apps and as such > are quite different in nature from a pipe which is , if I understand > correctly, a way > of diverting a stream of data , refered to as standard output, to the > imput side, > refered to as standard input, of another programme. > > So them how do aliases fit into the grand scheme of things in linux. > > > John > > -- > John Richard Smith > [EMAIL PROTECTED] Well, they allow you to create "shortcuts" to often used programs wherever you like them to be - they allow programmers to link to libs in nested directory structures, they allow you to create links to actual devices (ex: /dev/hdc --> /dev/cdrom, /dev/hdc --> /dev/dvd, /dev/ttySH012 --> /dev/modem)... Before the advent of large drives, the unix file structure was generally spread out amongst several drives - two or more - so sometimes linking was the best way to access binaries outside of the "normal" path - hence alleviating path modification... There are other ways of creating links, and links don't always have to be just "shortcuts"...they can be compiled programs with switches and options already set in them... -- Sat Nov 30 07:50:00 EST 2002 .o0 linux user:267497 0o. |____ | kühn media australia | / \ /| |'-. | http://kma.0catch.com | .\__/ || | | | | _ / `._ \|_|_.-' | stephen kühn | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | |/ ._/ |"| | email: [EMAIL PROTECTED] | |'. `\ | | |icq: 5483808 | ;"""/ / | | | | smk ) /_/| |.---.| | mobile: 0410-728-389 | ' `-`' " " | Berkeley, New South Wales, AU Coralament*Best Grötens*Liebe Grüße*Best Regards*Elkorajn Salutojn You've been infected by the Telescoping Hubble virus. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
Ronald J. Hall wrote: On Friday 29 November 2002 11:04 am, you wrote: So them how do aliases fit into the grand scheme of things in linux. John John, let me give you an example of how aliases work for me. I use WineX to play Windog games under Linux. Sometimes, the commands to start these games are a little, well..."long winded". For example, to run Half-Life here, I use the command (all one line): winex /home/darklord/.transgaming/c_drive/SIERRA/Half-Life/hl.exe -console -gl -gldrv Default -w 1024 -game MOD Obviously, typing this in all the time would be a real drag, so I put an alias into /home/darklord/.bashrc (all one line): alias halflife='winex /home/darklord/.transgaming/c_drive/SIERRA/Half-Life/hl.exe -console -gl -gldrv Default -w 1024 -game MOD' Now, I just type in "halflife" and the game starts. Its just another way to make life easier for yourself... :-) That sounds an interesting idea, so when I run NT now called d4x and because the gui lacks a tab to tell nt that after a cutoff and ISP reconnect it must go reconnect to the web address again, I could set up an alias that would not only put up nt but also save me the bother of having to put up a terminal and type nt -r , which means reconnect, and include it with the command to initiate nt gui as well. Possible ? NT sits in /usr/bin/nt additional command nt -r can I make an alias that combines the two with a simple terminal command nt John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
Michel Clasquin wrote: On Friday 29 November 2002 18:04, John Richard Smith wrote: I see, so symlinks aid initiation by linking commands to devices and apps and as such are quite different in nature from a pipe which is , if I understand correctly, a way of diverting a stream of data , refered to as standard output, to the imput side, refered to as standard input, of another programme. So them how do aliases fit into the grand scheme of things in linux. Aliases only work on the bash command line AFAIK, and in other shells that support them, while symlinks work just as well in a GUI. Also, an alias can contain parameters: if you're tired of typing rm -f all the time, you can set an alias called rm to that. Then typing will actually be understood as . Unless you give the full pathname , then the alias will be ignored. Of course, just to muddy the waters even further, it is possible to write a little shell script with all the parameters you want and symlink or alias to THAT! Ah yes, Linux, never give a user one way to do things when he could have six ... OK, so whereas symlinks are system functional, aliases are bash script functional and in effect save time and effort initiating programmes that are themselves various versions of bash, and bash scripts, like perl, and python, but then forgive me if I'm wrong but haven't I seen aliases that start programmes, which in themselves are not bash scripts, or is that not so , and in fact there is a bash script but it's embedded in some way so you don't really see it in some file that starts the whole app. John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
On Friday 29 November 2002 18:04, John Richard Smith wrote: > I see, so symlinks aid initiation by linking commands to devices > and apps and as such > are quite different in nature from a pipe which is , if I > understand correctly, a way > of diverting a stream of data , refered to as standard output, to > the imput side, > refered to as standard input, of another programme. > > So them how do aliases fit into the grand scheme of things in > linux. Aliases only work on the bash command line AFAIK, and in other shells that support them, while symlinks work just as well in a GUI. Also, an alias can contain parameters: if you're tired of typing rm -f all the time, you can set an alias called rm to that. Then typing will actually be understood as . Unless you give the full pathname , then the alias will be ignored. Of course, just to muddy the waters even further, it is possible to write a little shell script with all the parameters you want and symlink or alias to THAT! Ah yes, Linux, never give a user one way to do things when he could have six ... Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
Stephen Kuhn wrote: I fully understand, though. Keep in mind that symbolic links are to *nix what "shortcuts" are to Windows (very basically put - but not entirely true - but the analogy works well in this instance). Symbolic links are quite useful - much like the Windows shortcuts. You can create symlinks to programs with cryptic and strange names that are more easily typed...or vice versa... I see, so symlinks aid initiation by linking commands to devices and apps and as such are quite different in nature from a pipe which is , if I understand correctly, a way of diverting a stream of data , refered to as standard output, to the imput side, refered to as standard input, of another programme. So them how do aliases fit into the grand scheme of things in linux. John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
Stephen Kuhn wrote: On Fri, 2002-11-29 at 04:53, John Richard Smith wrote: I did it this way, I cd into directory then , #rm libxyz it asked Yes or no, Y it seems to remove it. Am I right. John -- John Richard Smith [EMAIL PROTECTED] (Or, login as root, do a cd /, then type rm -rf * - that will certainly remove any and all symbolic links...) JOKING - PLEASE DON'T DO THAT! Yes I thought so, but seriously , rm can remove anything, so I had to ask, because It's the link, not the target file that I want to remove. I know all you billion times experienced symlinkists may find this very elimentary, my dear Whatson, but us types that have never created one before let alone remove it, don't have that experience to draw on, and the manual was not very helpfull. John John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
This example is exactly the reason I didn't offer rm -f as an option--when in root, it does it...period. With rm the user is asked to confirm the delete (and lists what will be deleted) before it is done. Good place for a newbie to make sure they are getting what they asked for. Erik On Thu, 2002-11-28 at 18:37, Stephen Kuhn wrote: > On Fri, 2002-11-29 at 04:53, John Richard Smith wrote: > > > I did it this way, > > > > I cd into directory > > > > then , > > #rm libxyz > > > > it asked Yes or no, Y > > > > it seems to remove it. > > > > Am I right. > > > > John > > > > -- > > John Richard Smith > > [EMAIL PROTECTED] > > (Or, login as root, do a cd /, then type rm -rf * - that will certainly > remove any and all symbolic links...) > > JOKING - PLEASE DON'T DO THAT! > > -- > Fri Nov 29 11:35:00 EST 2002 >.o0 linux user:267497 0o. > > |____ | kühn media australia > | / \ /| |'-. | http://kma.0catch.com > | .\__/ || | | | > | _ / `._ \|_|_.-' | stephen kühn > | | / \__.`=._) (_ | email: [EMAIL PROTECTED] > | |/ ._/ |"| | email: [EMAIL PROTECTED] > | |'. `\ | | |icq: 5483808 > | ;"""/ / | | | > | smk ) /_/| |.---.| | mobile: 0410-728-389 > | ' `-`' " " | Berkeley, New South Wales, AU > > Coralament*Best Grötens*Liebe Grüße*Best Regards*Elkorajn Salutojn > > They also serve who only stand and wait. > -- John Milton > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Erik Linux User 288105 @ http://counter.li.org = Bill who? ... Micro what? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
On Thursday 28 November 2002 10:35 am, robin wrote: > John Richard Smith wrote: > > How do you remove a symbolic link. > > > > neither man ln, nor info ln , even mentions it. > > I've always found rm works fine. What you can't do is directly replace > one symbolic link with another. > > Sir Robin rm -f will remove the link (non-interactively), if you have the permission. I often re-direct symbolic links with; ln -sf the -f option will force an effective overwrite of the existing link. Robin Ballantine Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
Erik Farnsworth wrote: rm libxyz-0 -> libxyz-0.1 rm libxyz-0 On Thu, 2002-11-28 at 03:13, John Richard Smith wrote: How do you remove a symbolic link. neither man ln, nor info ln , even mentions it. John I did it this way, I cd into directory then , #rm libxyz it asked Yes or no, Y it seems to remove it. Am I right. John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links
John Richard Smith wrote: How do you remove a symbolic link. neither man ln, nor info ln , even mentions it. I've always found rm works fine. What you can't do is directly replace one symbolic link with another. Sir Robin -- "You almost never hear that word "computer" anymore, do you? They're part of everything now. They used to be boxes with keyboards, you know." - Tad Williams Robin Turner IDMYO Bilkent Üniversitesi Ankara Turkey http://www.bilkent.edu.tr/~robin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] Symbolic links
How do you remove a symbolic link. neither man ln, nor info ln , even mentions it. John -- John Richard Smith [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Symbolic links between Netscape inbox files in Linux and DOS
On Sat, Oct 23, 1999 at 12:17:59AM +0100, Colin Murphy wrote: > [EMAIL PROTECTED] wrote: > > > On Mon, Oct 18, 1999 at 10:49:03PM +0100, colin.murphy wrote: > > > It would be kinda neat if I could set up a symbolic links for Netscape > > > in Linux to use the equivalent DOS files for things like the message > > > files. This would keep both Netscape's in sync. > > > > Give it a try and let us know how it works! (Seriously, I don't think I've > > ever seen any messages from anyone who's tried it) > > Well, it does seem to work. I've created the same directory structure in > Linux Netscape(LNS) as I had in Windows Netscape (WNS) so that I had the right > number of Subfolders in each. Taking the 'Unsent Messages' folder as an > > [SNIP] > > I look forward to now hearing all the reasons why I shouldn't have made these > symlinks ;-) Congrats! That is pretty damned cool! -- Steve Philp Network Administrator Advance Packaging Corporation [EMAIL PROTECTED]
Re: [newbie] Symbolic links between Netscape inbox files in Linux and DOS
[EMAIL PROTECTED] wrote: > On Mon, Oct 18, 1999 at 10:49:03PM +0100, colin.murphy wrote: > > It would be kinda neat if I could set up a symbolic links for Netscape > > in Linux to use the equivalent DOS files for things like the message > > files. This would keep both Netscape's in sync. > > > > Would this work? More importantly, if not, why not? Sometimes there's > > more to be gained by understanding why something doesn't work. > > > > Of course, if it is practical, how would you go about it? > > Give it a try and let us know how it works! (Seriously, I don't think I've > ever seen any messages from anyone who's tried it) > > Be sure to make a backup of the DOS side of things so they don't get hosed. > > Well, it does seem to work. I've created the same directory structure in Linux Netscape(LNS) as I had in Windows Netscape (WNS) so that I had the right number of Subfolders in each. Taking the 'Unsent Messages' folder as an example, using Midnight Commander, I deleted the LNS file ~/nsmail/Unsent Messages and created a symlink, again using MC, by selecting the equivelent file from WNS directory and using the Symlink command. Then, going back into LNS and selecting the Unsent Message folder the messages originally created under Windows appear. I have not created symlinks for the WNS .snb files, which may be the equivelent to LNS *.summery files. I can't figure out for sure how important they are, but currently seem to be big and worthless. They may have some effect on the linking of follow-up messages, but even this seems to be already working in LNS, so I don't really know. I look forward to now hearing all the reasons why I shouldn't have made these symlinks ;-)
Re: [newbie] Symbolic links between Netscape inbox files in Linux and DOS
On Mon, Oct 18, 1999 at 10:49:03PM +0100, colin.murphy wrote: > It would be kinda neat if I could set up a symbolic links for Netscape > in Linux to use the equivalent DOS files for things like the message > files. This would keep both Netscape's in sync. > > Would this work? More importantly, if not, why not? Sometimes there's > more to be gained by understanding why something doesn't work. > > Of course, if it is practical, how would you go about it? Give it a try and let us know how it works! (Seriously, I don't think I've ever seen any messages from anyone who's tried it) Be sure to make a backup of the DOS side of things so they don't get hosed. -- Steve Philp Network Administrator Advance Packaging Corporation [EMAIL PROTECTED]
[newbie] Symbolic links between Netscape inbox files in Linux and DOS
It would be kinda neat if I could set up a symbolic links for Netscape in Linux to use the equivalent DOS files for things like the message files. This would keep both Netscape's in sync. Would this work? More importantly, if not, why not? Sometimes there's more to be gained by understanding why something doesn't work. Of course, if it is practical, how would you go about it?
RE: [newbie] symbolic links
I don't know about the symbolic link, but you should be able to find the XFree86-VGA server on the disk. It is probably under /mnt/cdrom/Mandrake/RPMS. Then install the VGA server. I had the same problem with my Voodoo Banshee. Installed the VGA server, then installed the 3DFX drivers and it worked fine. Bret Craw > -Original Message- > From: RReed [SMTP:[EMAIL PROTECTED]] > Sent: Sunday, August 15, 1999 12:19 PM > To: [EMAIL PROTECTED] > Subject: [newbie] symbolic links > > Well I can't get the voodoo3 goods to install it keeps saying it can't > find > vga16. > So I guess I will just use startx -- -bpp 32 to start x in 32 bit.. i > edited > the config to use only 800x600 and nothing lower. > A question I have is can i setup a symbolic link to run startx -- -bpp 32 > from a name like xwin? > and if so how? > > > Freedom means defending the expression of the very > words and ideas that make you sick. > > >
RE: [newbie] symbolic links
It sounds like you are trying to install the XFree86_3Dfx-XFree86Setup rpm. It requires the VGA16 X server to run. You can install the XFree86-VGA16-3.3.3.1-58mdk.rpm from the install CD. scottw On 15-Aug-99 RReed wrote: > Well I can't get the voodoo3 goods to install it keeps saying it can't find > vga16. > So I guess I will just use startx -- -bpp 32 to start x in 32 bit.. i edited > the config to use only 800x600 and nothing lower. > A question I have is can i setup a symbolic link to run startx -- -bpp 32 > from a name like xwin? > and if so how? > > > Freedom means defending the expression of the very > words and ideas that make you sick. > -- E-Mail: scott worley <[EMAIL PROTECTED]> Date: 15-Aug-99 Time: 15:13:01 This message was sent by XFMail --
Re: [newbie] symbolic links
RReed wrote: > > Well I can't get the voodoo3 goods to install it keeps saying it can't find > vga16. > So I guess I will just use startx -- -bpp 32 to start x in 32 bit.. i edited > the config to use only 800x600 and nothing lower. > A question I have is can i setup a symbolic link to run startx -- -bpp 32 > from a name like xwin? > and if so how? > > > Freedom means defending the expression of the very > words and ideas that make you sick. > i do this same thing by using an alias in my .bashrc file. edit .bashrc to include this line: alias xwin='startx -- -bpp 32' then logout and login and it will work. just, before you do this, make sure the 'xwin' command doesnt activate another program. :P
[newbie] symbolic links
Well I can't get the voodoo3 goods to install it keeps saying it can't find vga16. So I guess I will just use startx -- -bpp 32 to start x in 32 bit.. i edited the config to use only 800x600 and nothing lower. A question I have is can i setup a symbolic link to run startx -- -bpp 32 from a name like xwin? and if so how? Freedom means defending the expression of the very words and ideas that make you sick.