Hello all,
I was going through LFS yesterday and planned to change the symbolic link from "{bin/sh}{dash}" to "{bin/sh}{bash}". Unfortunately, I disconnected from bin/sh but forgot to create another link. Now the system won't boot and failed to shutdown. Wondering if I can make a symbolic link for it on the Live USB or is there another solution? The Distro is Linux Mint 17.1.
Thanks.
This isn't a problem, more a how or a why:
I have always written an alias (alias ln="ln -sv") which changes the instruction for a "hard" link into one for a "soft". This worked fine until I needed a hard link, so, as part of the alias, I decided to give myself a reminder of what I was doing. After a bit of a struggle, I ended up with this (which I stuffed into my .bash_aliases file):
alias ln="echo -e 'Symbolic (soft) Link (use \033[1;36mhln\033[0m for Hard Link)\nuse \033[1;36m-f\033[0m for force'; ln -sv "
and it works:
Symbolic (soft) Link (use hln for Hard Link )
use -f for force
ln: missing file operand
Try 'ln --help' for more information.
(OK, no operand was supplied here, but the stuff we're talking about works fine).
Recently, however, I needed to look at the construction of the alias, ran "alias ln" & got:
alias ln='echo -e '\''Symbolic (soft) Link (use \033[1;36mhln\033[0m for Hard Link)\nuse \033[1;36m-f\033[0m for force'\''; ln -sv'
Now, I can (sort of) understand the logic of what's going on here, but not entirely - viz:
..1...'...............Open 'protected' mode (was double quote)
........echo -e....Command: invoke "echo -e"
..2...'...............matches 1: Closes 'protected' mode
........\.............invoke newline(\)? Or is this simply an scape character? (Yes it is see http://www.linuxquestions.org/questi...-quote-861714/)
..3...'...............Reopen 'protected' mode (or an escaped single quote - if so why?)
..4...'...............0pens 'protected' mode for "message" code
........Symbolic (soft) Link (use \033[1;36mhln\033[0m for Hard
........Link)\nuse \033[1;36m-f\033[0m for force
..5...'...............5 matches 4 (closes message code),
........\.............invoke newline(\) - or see above
..6...'...............6 matches 3 & closes the section started @ 'reopen'
..7...'...............Reopens 'protected' mode
........; ln -sv......New command[ ; ], creates link
..8...'...............8 matches 7 - the end (or is it?)
I would guess that the "alias" command has some built built in function that does all this - I have saved the the modified version as an alias & it works fine - but although I have read the excellent post:
http://www.linuxquestions.org/questi...-quote-861714/
I don't understand why the system has both double & single quotes. I have always felt that as long as the command line was explained & demonstrated in simple language it was easier to work with that than any point & click system. I grew up with CPM, DOS, Qemm, Desqview, WP5.1, DbII and these were great programs with great (especially WP51) manuals - but, ahh! - those days have gone
Any suggestions gratefully received
dmk
Hello, I am learning about file types in Linux, and i see there are hard and symbolic links, also I saw that unlink function in C deletes a link to a file and decrements the intern link counter. The problem is that i don't understand what link is deleted when unlink is called. Is it the parents link to that file?
following error shown when i tried the command:
cd ns-allinone-2.27/ &&export CC=gcc41 CXX=g++41 && ./install
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configu error: installation or configuration problem: C compiler cannot create executables.
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
common.w: In function ‘fatal’:
common.w:1176:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o ctangle ctangle.o common.o
gcc -g -c -o cweave.o cweave.c
cweave.w:79:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
cweave.w: In function ‘print_cat’:
cweave.w:1739:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o cweave cweave.o common.o
ln: failed to create symbolic link `cweave': File exists
ln: failed to create symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
gcc41 -g -I/usr/local/sgb/include -DDATA_DIRECTORY=\"/usr/local/sgb/data/\" -c gb_io.c
make: gcc41: Command not found
make: *** [gb_io.o] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.1.4 with gcc41.
Checking for unistd.h... No.
Checking for errno.h... No.
Checking for mmap support... No.
gcc41 -O -DNO_ERRNO_H -c -o example.o example.c
make: gcc41: Command not found
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.5
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configu error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
please help
Hello,
I am trying out a GNU-plus-Linux distribution called "Tails" for the first time. Tails is the distro that provides anonymity for the user by forcing all network traffic to go through the Tor network system. I am testing out Tails version 1.4.
Tails is a live DVD disc. It boots in live mode directly from the DVD and optical drive.
However, once I was booted into the desktop for the first time, it seems to not have been able to automatically find and configure my internet connection.
When I hover the pointer over the twin PC's icon in the system tray at the top right hand corner it says "No network connection".
Then, just to make sure, I opened the "Tor browser" and it gave me an error message that says "The proxy server is refusing connections".
Then to make triple sure, I opened the "Unsafe web browser" and it gave me the error message that says "Error No DNS server was obtained through DHCP or manualy configured in Network Manager".
So as a new user of this distro, I'm not sure on where to go and what to do. So any help would be greatly appreciated.
Thank you
Hello,
I am looking for a live linux distro that is able to recognize more hardware by "default" without installation. For example, when I borrow a laptop/netbook, I want to be able to boot the live linux distro and be able to have wireless access to internet (at least most of the time).
I know how to get the wireless working if I have internet access to begin with, but sometimes I do not have a wired connection or am not allowed to install stuff.
I would like to try many live distros on different laptops, but it would be hard to convince other people to give me their laptops to do that; so I would really appreciate your help.
Thanks
hello friend
i have problem in instalation of ns2.34
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
i do this solution but don't work
Replace
-SHLIB_LD="ld -shared"
with
+SHLIB_LD="gcc -shared"
What I need:
Linux Fedora Live CD
I also need Linux Fedora 21 (x64)
I have:
DUALBOOT.odt
i also have Windows 7 (x64)
That is why I need, "Linux Fedora Live CD"
So that I can setup dual Boot
I previously annoyed me with, "[Login/signup to post]"
At the top it says, "Welcome,Bakshara
You last visited: Today at 11:12 AM
I am using linux mint and the grub menu gets configured automatically using scripts in /etc/grub.d. The menuentry that gets created is something like
Code:
"linux mint (on /dev/sda1)"
. I use external drives sometimes and also have linux on my harddrive which I also switch between computers. It gets confusing when it says /dev/sda2 when it means something else. It boots fine because that actual boot command uses uuid. How can I change the text of the (script generated) description to also use partition labels or uuid (or the first few chars) just so I know which install will actually boot. like this:
Code:
"Linux Mint (OFFICESSD)"
"Linux Mint (HOMEHDD)"
"Ubuntu (SANDISK)"
"Ubuntu (IMATION)"
I realise (maybe its the best way) I can change the "GRUB_TITLE=Linux Mint 17 Cinnamon 64-bit" in /etc/linuxmint/info but would rather a smoother way.
I tried to install Debian 8 and 7 but I get error message at partitioning stage:
"Failed to create a file system
The ext4 file system creation in partition #1 of SCSI1 (0,0,0) (sda) failed."
After that I couldn't advance further.
I booted from a live Debian and the HardDisk actually shows there with some older files on it.
I tried to install even Windows but from the start it shows the computer doesn't have a Hard Disk Drive so the installation stops right at the start.
Any ideas what is wrong and is there any fix?
ok I know when I create a soft link, it shows a ----> in a long listing and is colored (if ls --color) in aqua.
But hard links don't do this. How can I tell if a file/dir has a hard link to it or if it points to another file?