I tried posting to this SOLVED thread, but suspect that was the wrong thing to do! [URL].... Basically, the thread shows how to strip the first 2 lines of a text file, but because I have quote a number of folders on the desktop each needing the same treatment, I wondered how to do this in one step. I figure I might learn something rather than just do the grunt work of switching from folder to folder.
I've just installed CentOS5.5 on an older P3 machine as well as in a VM under Virtual Box on my laptop and I've run into the same issue with Java on both. During installation, I make sure not to install any form of Java anything as I wish to use Sun/Oracle's JDK. On first login on both machines, typing "java" in a shell finds that gij has magically installed, even though I didn't want it there.
I d/l and install Java 6-23 via the .rpm.bin package from Oracle. Typing java -version in the shell still returns "gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)". Ok, so it's 2011 and Oracle/Sun still can't figure out how to write a java installer that will set PATH. I add the following to my .bashrc file under my normal user:
PATH=/usr/local/jdk1.6.0/bin export PATH
log out, log in and java reports the correct version... Except now I can't su, open vi or a number of other things.
Since I want to use this globally anyways, how do I go about using this version of Java globally for all things java? (eclipse, jboss, etc...) #alternatives --config java only shows this gij version.
I set up apache (apache2) to create a moodle server, but I can't get it to work globally. Here is the rub: http://192.168.0.150 works beautifully, showing me the index page at /var/www [URL] (my dyndns) or http://96.49.75.14 (my current IP address) doesn't work.ssh works well globally, i.e. ssh -l myname [URL] works. pinging [URL] works without a problem. Ports 22, 80 and 443 are open on my router (checked my router's settings).I use ubuntu 10.4. Is it an iptables problem, as in http://www.linuxquestions.org/questi...achine-750157/ ? But I couldn't figure out the iptables manpage.
What would be a nice, simple command to go through all files in a directory (no sub-directories), and change all the MP4 Video files I have to MP3 audio files (keeping the original filenames except for changing the "mp4" extension to "mp3")?
The files in question were videos taken with one of those Flip cameras, but I only need the audio off of it.
I had used test desk program to restore my files ,the files that recovered was saved in home folderthe problem is that these files are become root permission only ,so i cantcopy , move theme
I have spent the most part of 5 hours trying to fix this issue. For some reason I cannot change the background image to any of mt .jpg wallpaper files (and .png files). I've tried using the Ubuntu-Tweak application, but I end up getting a purple screen (default) or a black screen (default). So then I tried using the terminal method by making the Appearance window appear when I would log out. That works, except when I go to use my background image, it shows as a question mark for the image preview, and the icon for the file is a gray box. All while doing this my background images that I tested are all in the /usr/share/backgrounds location. Please help! I really want to get rid of the default images and use my images... :/ My desktop/screen in 1440x900, and most my background images are around that size. They work with my regular desktop for my account.
I run Ubuntu 10.04 and I've just installed Python. Now I've installed the python-scitools package from the command-line: sudo apt-get install python-scitools.
My question is the following: Where i can find the location of theses files? I need to change a scitools.cfg files and I can't find it!
trying to send email from php I'm hosting a website from my pc. LAMP is installed, and php and mysql is running fine. i want the web site to send automated e-mails i found the code mail($to,$subject,$message,$headers); but its not working. I'm pretty sure i need to configure the php.ini file, but the problem is I have 2 php.ini files, and I dont know what one to change, or why I have 2
the two files with path are :
/etc/php5/apache2/php.ini /etc/php5/cli/php.ini why is there two? what one do I need to change?
I've been using Ubuntu for a few years and I am having issues trying to load .jar files and .exe files in Wine. I keep getting an error message that says my computer doesn't have permission to load these files. I've done some research and found people saying to enable the file as executable in the files properties, to enable executable in the permissions folder, and to allow source code on the Ubuntu Software screen, but whenever I try to check these boxes, they immediately revert to having a line through them instead. I remember when I was running Ubuntu a few years ago I was able to completely disable this restriction in terminal, but I can't remember what I did.
Im in a live CD session right now and copying the main ubuntu partition to a new partition. basically im doing this to install windows and have a separate partition for STUFFs like videos etc. since i cant have more than 4 primary partitions. win7 takes up 2 partitions and ubuntu takes 1 and an extended which will have swap and "STUFFs". i know how to reinstall the grub but i dont know the other stuffs.
Can I change the destination for hidden files that are in the Home Directory? I'd like to put all the hidden files in my Home directory into a seperate folder inside of Home. (10.04)
After burning files to DVD+RW, the owner is changed to root, and all permissions are read only. I want to periodically open these files, update them, and save to the DVD again, but I no longer have permission and cannot change the permissions since I am no longer the owner. I tried sudo commands, but get responses "Read only file system". I have erased and reformatted the DVD and started over but get the same results. I have Ubuntu 9.04, and have tried Brasero and Nautilus and get the same problem. Am I using the wrong kind of DVD/CD?
I've been using Ubuntu for over 5 years. This time I decided to upgrade UNR to the latest 10.10. I am now running it from USB to try it before installing. Excuse my ignorance, but whatever happened to the Terminal? I cannot find it anywhere! I think this release is not going in the right direction if one of the most important tools in Ubuntu is hidden from an average user.
Also, how do I change to the root directory in the files and folders? or at least to the higher directory structure.I won't be installing UNR 10.10 unless I figure out these BASIC things.
i use sony's nwz video walkman, earlier when i used windows xp it was very easy to change album art. When windows media player is playing certain music file i used to drag and drop some jpg file as album art and then transfer the file into my walkman; but now in rhythmbox if i drag and drop it changes the album art momentarily but when i transfer the music into walkman it doesn't show that album art.
Can I change the default path for any or all of the different crontab files?
Can they be changed independently? for example can the user mark get one path for cron jobs, Lynn get another, and root get yet a third, or are they always going to be the same?
How do I change them?
Hello fellow Linux users:
I know there are several crontab files on my computer. One each for each user, and it looks like one for root, maybe others?
I think there is only one cron handler that reads all the different crontab files and does what it is told.
If I do from my command line, I get:
Code: mark@server:~$echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games If I schedule a similar command in my own crontab file by using Code: mark@server:~$crontab -e with the following line:
I've just read that I can't change the file permissions of files and folders if they are sitting in what was my old Windows D: drive. Is this correct? If so what is the work-around?
I don't want to have to cut and paste that entire D: drive's contents over to a recognised Ubuntu folder. I had in my mind that this D drive would continue to be my data dumping ground, to which I need read/write access to.
My system won't boot because the contents of /etc/fstab, while semantically valid, are not meaningful in my system - neither / or /home is defined, for example.For this reason too fsck will not run.
The grub menu displays OK.How do I rebuild fstab?How do I get permission to change any files on my system when using the Live-CD? Right now all attempts are stopped with a 'permission denied' message.
My laptop has Ubuntu as a dual boot. Many times I want to copy files from one folder to another. But I run into permissions problems.
For example, I downloaded a program that required me to put a rules file in /etc/udev/rules.d But when I tried to do that, I got an error: "permission denied"
Is there any way to change permissions on folders so that I can freely copy them from one folder to another? That would make life a lot easier.
I just installed Karmic, but I can't copy an old user's home folder (/home/oldusername/) because everything is owned by root.I read but I'm concerned about messing up the system or the files in that old user's folder.So, how do I adjust the permissions of the files in /home/oldusername so that I can use openssh to copy them over my home network to my other computer? I have the ssh part figured out, but the files will not copy to the laptop due to permissions.
I'm a new Ubuntu user, I just installed Ubuntu today and I'm loving it. But this issue has been driving me nuts all day, I've searched for hours for something like this and all posts were about external hard drives. I installed Ubuntu 10.04 on my MBP 13" then dual booted into Ubuntu. I can mount and access my MBP hard drive, but when it comes to the Mac home user files, I don't have permission to even READ.
How can I change that? I tried doing so by dual booting into Mac and changing the folder permissions and also making them shared folders but nothing worked.
So i pulled some files off my buddy's computer via my wireless home network, i can access them but in the permission tab the owner is "nobody" so i can move the files. How can i change the permissions to enable me to move the files?
ok trying to use grip but it keeps giving me this messageCode:No write access to write encoded fileso i have a folder in my home folder called flac and i want to modify the folder so that all files within can be written toi have tried
I'm running ubuntu 64-bit server edition so ill have to use the command line for this. i want to create or change a file in my own home folder, i have to do it as sudo, otherwise i get an error message saying "permission denied".
Something has changed all my file permissions to read only and when I try and change them back it wont let me. Is there something I can do i Nautilus to correct it?
It even effects the waste basket-all the stuff in there is now read only and when I delete items I get a file operations window, which comes and then goes like its deleted them, but they re still in the waste basket, doesnt show an error message like it does if I try and move any other file.