LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-01-2013, 08:50 AM   #1
billstowell
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
links to files in /etc


Hi,

I tried to update libflash and found an online reference that said to just replace libflash.so in /etc with the new libflash.so. In the process of trying to do that I first was denied, then deleted (using sudo) libflash.so from /etc and replaced it with the new libflash.so.

The problem, in retrospect, was that in /etc the file I deleted was NOT libflash.so, it WAS llibflash.so with a green color.
So, I changed the llibflash.so(with a green color) to the new libflash.so (without a green color). I think I am missing some sort of linking to other parts of the system.

I also had trouble shutting down the system. Finally had to resort to "shutdown -h -n" to kill most activities then the "off" button. Fortunately, it did boot up again.

I'm running Linux Mint Debian 13.

Any ideas regarding what I broke and how to fix it will be greatly appreciated.

thanks
Bill
 
Old 05-01-2013, 08:57 AM   #2
moody_mark
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Rep: Reputation: 1
Hi, the best thing you could try is booting the machine from a live CD or DVD and then taking a snapshot of the output of the command:

Code:
ls -la /etc
It will be a long output but you should be able to cut/paste it to a text file and email it to yourself or drop it into the local file system on the machine if its possible to mount the hard drive (usually on the gnome desktop you can browse the machines hard drives using a file manager and that should auto-mount it for you). You should then be able to compare your live CD/DVD with your machine.

Interestingly enough Im running Ubuntu (10.04) and I know Mint is based on the same kernel, your /etc would be similar to mine I'd think. I have flash installed but I dont see any reference to it in /etc, heres my output

Code:
$ ls -la /etc/lib*
-rw-r--r-- 1 root root   20 2010-03-06 15:05 /etc/libao.conf

/etc/libpaper.d:
total 16
drwxr-xr-x   2 root root  4096 2010-03-06 20:22 .
drwxr-xr-x 174 root root 12288 2013-05-01 14:37 ..
 
Old 05-01-2013, 01:17 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,953

Rep: Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720
on almost all linux distros
the libflash in /etc is a LINK !!
it links to alternatives , then that link is linked to the libflash in /usr/lib/flash/??? or /usr/lib64/flash/???


it is a rather convoluted set up


my preferences for a 64 bit OS -- mine and others might disagree

if you are NOT using the flash in your distros repo
and this IS a 64 bit install !!!

there is a 32 bit flash wrapper in the /usr/lib folder
-- if you plan on using the 64 bit flash anf NOT the 32 bit flash
you can uninstall this wrapper
remove the links in alternatives
and use the adobe flash installer script
or manually copy/paste
 
Old 05-04-2013, 08:21 AM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,381

Rep: Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109
Also, understand what "a link" actually is.

In nearly every case, it a "symbolic link," which means that it actually consists of a tiny file with a file-name in it ... which Linux recognizes to be "a link." Therefore, when you open "a link," Linux at that moment reads the link and goes searching for the other file. (It will recurse a limited number of times before giving up, in case of a link loop link loop link loop link loop.)

The link, and its target, are two separate things. The mere presence of a link does not mean that the file being linked-to still exists, nor that you have access to it. If you rename or move the target file, links are not updated, nor is there any sort of "reference count."

Although terminal displays are often set up to use color-cues, always look for the lowercase "l" (el) in the ls display, which indicates a link.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Links to newest files starmonche Linux - General 3 02-06-2009 08:11 PM
How to filter files from https links spide21 Linux - Newbie 1 10-18-2008 03:29 PM
how to create jar files with symbolic links alps963 Linux - General 1 05-03-2008 06:30 AM
Unziped or Untared Files Have Hard Links? juanbobo Linux - General 1 06-17-2006 02:22 AM
CGI perl links to files in Dir ocularbob Programming 3 04-29-2003 08:40 AM


All times are GMT -5. The time now is 01:48 PM.

Main Menu
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