I'm a complete Linux beginner who wrote his first little script.I'm writing an 'installer' for it (so I can share it with friends) and I'm wandering if there is a universal method to add it to autostart in all Linux distributions.I was thinking about cron/crontab but it's not the best choice, as writing an uninstaller which removes a specific line from crontab is out of my league. I'd rather copy a *.desktop file to autostart folders and then be able to remove them.BTW do you have to put *.desktop files in ~/.config/autostart in Ubuntu, but ~/.kde/Autostart in Kubuntu even if they are shell scripts?
I'm trying to learn about permissions on linux webserver with apache.Some clues to the system: The server I have to play around with is Fedora based. Apache runs as apache:apache. To allow for e.g. php to write to a file the file needs to be chmod 777. 755 is not sufficiant.What I'm wondering is basically how set up permissions like they should be on e.g. a "shared web host".My main problem is that if I set a permission so that one user cannot access anothers home folder, then apache can't read from the public_html folder either.
To keep the users out I need to set chmod 700. But to let apache to read I need to have at least execute on world,so a 701 basically works, but won't let some users in.So I'm really stuck on what to do. Have been concidering adding the apache user to the frous grours below to avoid having to add the world execute flag, but is that a bad thing? Should it be the other way around, the users in the groups below should also be in the apache group?I was aiming at having 4 groups:
1. webapp: same as dev_int, but is the only one that can go inside the webapp/live folder to e.g. do an update from the repo.
2. dev_int: can read,write and execute everything in the "web root", including the two below, but nothing outside of the web root
3. dev_ext: can read write and execute in all client folders, but cannot access anything outside of the webapp root
4. clientsBasic ftp accounts. Has a home folder with a public_html, but cannot access any other home folders
Paths displayed in Nautilus appear to be just that. Nautilus private syntax. Esp with respect to anything "special". Apparently when you hand a path like this to a program to open, you get a folder in your home directory: smb://cyberstorm/c_drive/
At least that is what my program does with it. A folder called smb: in my home directory. Probably because the default folder for the program is the home directory [~]. Is there a universal network folder syntax for the network and other "special" file systems?
I see things like: network:/// and computer:/// showing up in "properties" dialogs for some things. But these are useless to a program apparently.
At least a program written in Qt. Is this a Qt problem, or a problem with Ubuntu not yet making the network a first class citizen in the world of paths? Who do I complain to? Time for the network to be a first class citizen, right?
I'm studying for the CompTIA Linux+ LC0-101 exam and I just need some clarification on where man pages are stored. I understand that this can be different depending on the distribution you are working on but so far I've read that man pages are stored in:
While all these might be containers for man pages on various distributions I highly doubt that I will be given the option to make four selections during the test. So is there one or two of them that are seen as the universal man page directories?
I know of two utilities on Windows to burn Linux live distros on USB keydrives: UNetBootIn and Universal-USB-Installer.I know nothing about what is required to make a USB keydrive bootable and run from it, and I was wondering if...
- those two utilies have the exact same features, and just use a different UI - there are yet other utilies for Windows I should know about?
if anyone of you have shifted using Paid Red Hat Linux with CentOS, and what are your experiences of moving from Paid Linux to Unpaid Linux CenOS. When do you suggest a person use Paid Linux and when to use Unpaid Linux?
What's the easiest way to make things autostart in KDE? The only method I know is to make links to the applications and then put them in the KDE autostart folder. Last time I did that, I had a lot of trouble with not being allowed to make the links unless I was root. Is there a simpler way?
How can i do autostart my apllication in thistaion (light weight OS) i know i have to write script, but i am confused how to write? my application is squid 2.6.
I write code check.sh and add the following line as it's first line:Quote:#!/bin/sh -eThen make it's permission as executableThen coped it to the following destination:Code:cp Scripts/check.sh /etc/init.d
I am fairly new to linux.We have a machine running CentOS 4.4 and sometimes the machine has to be rebooted. Each time after the reboot, I have to SSH in and manually restart one of our application. I have been reading about doing this online and I am a little confuse.Seems like there are multiple possibilities for starting things up. My finding suggest using the inittab file. Then my question is what runlevel do I pass in? Should I use runlevel 1, 2, 3, or 5? Once the runlevel is determine, then how should I name my startup script? I know to use "S" but what number should I give it? Or, another way to approach this is to put my autostart script in the /etc/rc.local file?
I'm trying to get a script to autostart and hitting some snags. I know the script works, because I can manually launch it from a terminal window. I've perused the forums and followed similar advice to put the script in the /etc/rc.d/init.d directory and then create a symlink in the rc5.d directory (S99my_script) I've even tried appending ". /etc/init.d/myscript" to the .bashrc file
I've managed to get the machine to autologin "myuser" upon startup (that's the owner of the .bashrc file I edited), but still the script won't start when myuser auto logs in. the system default is set for password protect on screen save so if I simple let that happen, as soon as I exit screen save the script launches, so it almost works.
I have this extremely simple script called startmyth:
Code: #!/bin/bash sleep 10 export DISPLAY=:0.1 exec /usr/bin/mythfrontend & when I execute it as ./startmyth, it works fine. But when added to Gnome's startup applications (System > Preferences > Startup Applications), Mythtv does not start! What gives?
I have a single kernel with 2 menu entries in grub like following:
Boot(gfx) Boot(text)
First entry boot the fedora in graphical mode running the gnome. Second entry boot the fedora in text mode.
First thing is working fine but i want to know how to do the second thing. i added 3 at the end of second entry in syslinux.cfg and after booting it dropped me at console asking for login.
So how to autologin in runlevel 3 and start autostart an application(e.g python script)?
I've decided to give openbox a try with Debian testing. I set up my right-click menu exactly how I want it, and everything else is set up perfectly. I installed trayer and tint2, along with nitrogen. I added the following lines to my ~/.config/openbox/autostart.sh file, but things aren't loading/restoring as they should. Tint2 and trayer don't load at all, and nitrogen isn't restoring my wallpaper. All I get is a black screen with my cursor, but the ability to right-click and open the menu, so it's not like X is dead. I did set the default wallpaper by issuing the command nitrogen /home/john/Pictures/Wallpapers, where "Wallpapers" contains all of my background images.
Here is my autostart.sh file: Code: # Autostart file for openbox nitrogen --restore & sleep 2s && tint -c /home/john/.config/tint/.tintrc) & (sleep 2s && trayer --expand true --transparent true --alpha 255 --edge bottom --align right --expand true --SetDockType true --widthtype request --margin 130) & I do have proper content in the .tintrc file located in /home/john/.config/tint/tintrc. Am I doing something wrong here?
I've got it to the point it will run when you login by adding a line to the /etc/xdg/lxsession/Lubuntu/autostart file. Added "synergyc 111.111.1.11" and it works perfect. So the main question is, how can I add that line somewhere, somehow to start on boot and not by login?
I need to configure autostart of oracle database 11g & oracle soa suite 11g after successful OS startup. Linux: Redhat version 5. I have commands needed for startup, but not sure on where to keep the file.
I recently downloaded the Universal USB Installer v1.1 and put Ubuntu on the flash drive.I put it into my laptop, and had it set to boot from flash drive, and it didn't do anything. Is it supposed to just auto run from the flash drive and format my hard drive and put Ubuntu on it?
I was wondering if anyone knew how to remove the "Universal Access" icon/functionality from a Fedora 15 install?I don't need High Contrast, Visual Alerts, Zoom, etc and want to get it out of my top panel and off the system if possible. The icon I am referencing is the white circle with a person inside, arms and legs out stretched next to the sound/speaker icon as seen in this picture (not my desktop):
I have a 500 GB external hard drive that is screwed up and wont let me copy any files to it on Ubuntu, I plugged it into my dads iMac and it works perfect so clearly this is just an OS 10 thing.I bought a 320 GB external a few days ago to back up the 270GB of files on the 500 GB so I can format it to a Universal format that will work fine on Ubuntu, OSX, and Windows.
The problem I had was Ubuntu telling me I don't have permission to change anything even in terminal with the chown and chmod commands, nothing worked so I have everything backed up onto the 320 GB right now and I would just like to know what format I can put the 500 GB to that will work in all three operating systems.
I am currently building a Linux server from the ground up that will be used to virtualize many Linux distro for development environments.The host is CentOS 5.4 using KVM as it's virtualization platform.Currently I have Fedora 11 configured as a guest with an allocation of 15GB for the OS its self (this actual guest).The reason I allocated such a small amount of space was because I was hoping to make some sort of user drive that contained the majority of the server's space. My goal was to then share this part of the drive between all of the guest.Essentially I want all of my guest OSs to access one huge drive (part of the drive the host is installed on).
Please help me with this anoying spell check "helper".I've installed openSUSE 11.3 and KDE 4 and updated the latest patches.When I start firefox and thunderbird a spell checker activates which is active in all windows (including shell). I have removed all spell checkers (aspell, ispell, hunspell) then rebooted and the spell checker was gone. But now I wasn't able to start firefox and thunderbird because they seem to use it. I have installed again hunspell. The "helping" spell checker was there again :-))In the spell checking section of kde system settings I'm not able to find an option to disable this "helper".
Where is the universal PATH variable set/exported in Karmic?It is not exported from the normal place (/etc/profile). I can't find where it is set. I tried Code:find /etc/* | xargs grep "export PATH=" and it did not reveal the magic place.
I'm trying to install the Ubuntu ISO onto my USB drive using the Universal USB installer. I selected the distribution, found and selected the ISO file, but cannot select my USB drive.
I have a stick with 1.86GB of free space connected to my computer, and I can see it in My Computer. It is completely empty, and designated as ( F: ). The problem is that the 'Select your USB flash drive' part is only letting me choose either D: or E: