trying to do a multiboot, just for fun Now I installed Foresight Linux, which was not such a good.Foresight is based on rpath and uses Conary as update system Now Conary destroyed all other linux systems installed on the other partitions. Now I found that there is something such as hide and unmount but have read several pages full of it but still have no idea what is the difference between the two and more important, how to use this as most explanations seem to complicated How can I hide partitions for a booted linux operating system so it is unable to see it, use it or even mount it when it tries
I have a number of partitions in my Places menu that refer to either System Reserved or NTFS partitions which I have no interest in accessing and would just like to unmount/hide.
When running linux (Lubuntu 10.04) my windows partition mounts automatically and can be opened and edited in file manager. Is there any way I can prevent it mounting when linux launches, prevent it from being mounted in linux, and (ideally) prevent it from being displayed/opened/edited at all from linux?(In case it's relevant:
Code:
Disk /dev/sda: 250.1 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
When I insert an SD card in the reader, slackware creates a mount point and mounts my card volumes. On unmounting the volumes, the mount point vanishes. How do I achieve this manually?When I attempt to mount a volume using the mount command, the mount point folder must exist and the folder does not vanish on umount. Is there a way to create a mount point if it does not exist? and ensure that the folders vanish on umounting?
I have external hard drive which I used to connect via eSATA. I have edited fstab and it looks like that now: UUID=35C595D5738A319A /media/DATA ntfs auto,user,exec,suid,rw 0 0 The problem is that I can't unmount it as normal user, when do that, receive: Error unmounting: umount exited with exit code 1: helper failed with: umount: only root can unmount UUID=35C595D5738A319A from /media/DATA
My hosting company said: You need to unmount the partition with exec permissions, install memcached and re-mount it with no-exec as a security measure.
Code:
[root@server tmp]# pecl install memcache WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
i don't understand this, why do you have to mount a usb or cd to use them? its such a hassle, in windows the usb/cd just works, but in linux you have to mount it, why? when ever i shutdown in linux, i am using ubuntu it says my drive didn't unmount on shutdown and it might damage my files?
I am trying my hand at Bash scripting. I have a file with lots of pinyin, which is the romanized version of Chinese characters and words. A typical entry looks like this,
"7 shuo1 to speak"
Seven is the number of the entry shuo is the pinyin, 1 is the tone mark and is the Chinese character.
What I would like to do is change the format so that it looks more like this:
7 shuo 1
Each field needs to be re-assigned to a variable in an array and then printed to the screen and saved to a file in the same order it was input. This is to prepare the data for another project I am working on in imagemagick.
I have spent all day looking at linux man pages and have very little to show for my efforts. What is the best way to approach this? grep, awk, sed...?
I've been using SuSE for a while and something has been bugging me. Not a show stopper, but nevertheless, an interesting one. Most tutorials, forum posts, etc. recommend using a sudo command to accomplish stuff. For example:
Code: sudo make install sudo vi file
However, this does not always work. For instance, I was recently working on a resolution problem with my ViewSonic VX922 - it would only display at 1024x768 rather than the native 1280x1024. Viewing some posts, I found the command "sudo sax2 -r". What I discovered is that there seems to be a big difference between sudo and su
Code: drkhelmt@SPACEBALL1:">sudo sax2 root's password: sudo: sax2: command not found drkhelmt@SPACEBALL1:">su Password: SPACEBALL1:/home/drkhelmt: #sax2 SaX: Checking update status for intel driver SaX: initialization already done SaX: cal [ sax2 -r ] if your system has been changed ! SaX: startup SaX: X server:0.0-> grant SaX: importing current configuration SPACEBALL1:/home/drkhelmt: #
So the question, why does the command sax2 (and others) work when after the su command rather than a sudo?
I'd like to clear up my misconception towards various types of installations. Is one better than the other? Do more senior people prefer compiling from source code? Hows does is compare to yum install or install from rpm?
On my ms windows machine, the OS went out of order, and I wanted to salvage all my pictures, and decided to use a live CD and move some of my media files to my mp3 player... its storage is 8 gigabytes I tried a latest Knoppix first, it did not provide me a nice GUI. Instead, it provide me with a humble looking, less than friendly, menu-based interface which I gave up on in about 3 minutes. I was thinking for a minute, and when I tried to install Ubuntu in the past, one of the options I was provided when I ran the Ubuntu installation CD was "Try Ubuntu without installing it" and I thought it meant the Ubuntu installation CD could also be used a live CD. And I put together an Ubuntu CD and attempted to use it as a live CD! ah man it was beautiful. It even recognized the video card on my machine. I am never going back to knoppix. From now on, when someone ever mentions Knoppix to me, my response will be, "what is Knoppix?"
Trying to understand version nr. of RPM package and release nr.I have the following package e.g.
tree-1.5.3-2.el6.x86_64.rpm. tree ---> package name 1.5.3 ---> version 2 ---> release e16 ---> operating system major version x86_64 ---> cpu architecture
What is the difference between version nr vs release nr ?
just installed slackware 13.37... i did a bit of configuration by myself but im having trouble making my graphics card running correctly under X.I installed the latest drivers correctly from the nvidia website.
I just moved my bottom panel to the right side of the screen and set it to auto-hide., The panel hid it'self but will not un-hide when I move the mouse to the edge of the screen... I tried to re-boot, but the panel is still "stuck"Is there an easy way to fix this? Or will I have to manualy delete the panel and make a new one
We are graphing various system parameters using Cacti. One of our graphs shows hard drive reads and writes. A question came up: why do we need this graph?
Doing some research I was leaning towards buying an inexpensive laptop and either install linux or buy one already installed (maybe Debian or Ubunutu). The uses for this laptop would be for developing linux device drivers and having the option to control the OS for any customized applications which I could develop. Didn't want to go the dual boot with Windows approach.
I realized that my understanding of UUIDs in Linux to specifying hard disk partitions may be erroneous.
The proverbial wisdom is that one should not use hard-coded device specifications in fstab and in the boot menu.lst, such as /dev/sda1 etc. The reason normally given is that if hard disk order changes or the order of partitions change, then the entries will be incorrect since they are hardcoded to partitions following a specific order.
So my understanding was that using hard disk labels, in the form of LABEL=xxxx, or UUIDs in the form of UUID=some-uuid, would prevent these problems when disk order or partition order changed.
I decided to avoid the use of LABEL in case I wanted to change the LABEL on a partition to make the names of partitions more easily identifiable. I then thought that UUID was ideal since it never changed for a partition no matter even if I moved that partition to another drive or added another hard drive and thus changes the order of hard drives on my computer. I essentially thought that once UUID was determined for a partition, it never changed but was somehow part of the partition in the hardware of my computer.
Then I became curious of how a UUID was determined. I did this because I often make backups of partitions on external SATA drives and wanted to make sure that somehow the backup would not duplicate whatever Linux considers the UUID of a partition and present a Linux distribution with two UUIDS which are somehow the same and therefore confuse the Linux distribution to the point that I could not use it. I am aware that UUID means a unique id, but I wanted to make sure I understand how that unique id is determined in Linux. This is especially true since the tool I use to make backups of an entire partition is a Windows application, and not a Linux application, and I wanted to make sure that the backup partition UUID would not duplicate that of an existing partition.
In my very brief research in how a UUID is generated under Linux it appears that it is not something that is part of the hardware of the partition itself but rather a number generated by some parameters of the partition, one of which is the partition order.
If it is, it means to me that if I move a partition from one place to another, even on the same hard drive, or to another hard drive, a Linux distribution will no longer find the partition based on the UUID. In that case it seems as if the UUID is subject to the same weakness as the device specification in fstab and menu.lst in that the order of a partition or the placement of a partition on a particular hard drive will cause the designation to no longer refer to the same partition. In which case it appears to me that only the LABEL parameter is not subject to this weakness and as long as I keep distinct labels for all partitions on my hard drive I could theoretically move them around at will and a Linux distribution will find them correctly. I am aware of course that my computer must always find the boot partition to be able to boot a Linux distribution, so moving Linux parttions where I want them is subject to the ability of my computer to find them from the MBR of my hard drives. But in the main it now appears to me that the best way to insure that moving partitions does not keep a Linux distribution from botting correctly is to use LABEL, and not UUID, in fstab and menu.lst, and of course to make sure that if I decide to change the LABEL of a partition that I must change its entry in fstab and possibly menu.lst before rebooting that distribution.
If I have been wrong in my latest surmises I would appreciate being corrected, as the information I found on UUIDs and how they are generated may not be correct. Also if there is more exact information on exactly how partition UUIDs are generated in Linux I would appreciating anyone pointing it out to me.
I have to work with a NFS user id between two hosts: A running Ksh 93 and B running pdksh 88. Both host run RedHat. My problem has to do with the custom prompt I created on A: it works like a charm and display colors:
But I switch over to B, it all goes to hell (private info removed). The prompt fails to display colors like host A ; instead, the color codes are displayed "in clear".
The prompt on host B is not displaying colors like host A so I want B to display a basic prompt instead. To get around the problem, I edited my .kshrc file to add this code at the end
Code:
export NODE=`uname -n` case $NODE in host_name_for_B)
[code]...
The case statement does not work: PS1 does not switch to `PS1="[`logname`@`uname -n`]>"`.
I have a third party static library (libSTATIC.a) that I cannot recompile into a shared library. I want to create a shared library (libSHARED.so) that uses the C functions in the static library. Is it possible to do this? In other words, when linking a C program with gcc by using the -shared flag, is it necessary that all all libraries invoked in the program (even low level libraries such as libc for example) be available as shared libraries as well?
I am having vitural hosting around three websites using Centos. I need to type in the full domain name include www to enter the 2 of the vitural hosting sites. Pros and Cons of vitural hosting vs separate machine? I got a questions about static IP. Assume I having a linksys router with port forwarding function, I have three seperate machines with different private address connect to the same linksys router. Can I entry all private address forward to port 80? Does it work? If I insist to host website on three machines, does that mean I need 3 static IP and 3 linksys router? I got two conventional web services only showing information but one got mysql db for user to input data, thats why I asking if it is good idea to seperate web page on different machines.
This is my first Linux experience so probably at the prenewbie level. I have installed Xubuntu and played with it for a couple weeks. The question is about software download attempts from Ubuntu Software center. When I attempt to use it I get the error messages: Failed to lock the package manager
Check if you are currently running another software management tool, e.g. Synaptic or aptitude. Only one tool is allowed to make changes at a time. The package indexes are currently changed by apt-get. Does this mean that SPM is active and the Software Center will not function until I change enablement between the two? If so, how do I accomplish the task?