General :: Making A Script In /usr/local/bin Shareable?
Jun 19, 2009
I created a small script in order to find out whether a host on the network is up or not ( as root). Made the script executable Code: chmod 711 script But now there is a problem , root can execute the script no probz but when it comes to a normal user who has only x permission on it can execute the script . When I add read permission Code: chmod 715 script the normal user is able to execute the script. But what if I dont want the source to be disclosed and still want only the script to be executable?
View 9 Replies
ADVERTISEMENT
Jan 30, 2010
I'm trying to figure out how to launch rc.local before services like autofs is being executed during system bootup. The reason I wanted this is because I needed for my server to pickup a DHCP address from my college's DHCP servers in order to get an IP address. Unfortunately, I couldn't get an IP address any other way and the update-rc script is really confusing to use.
View 1 Replies
View Related
Apr 9, 2010
i just installed centos 5.4 and trying to make my local repo have groups listing of packages like the mirrors do
so i can make an spin off of the OS to my needs for web servers only / so on but
i cant get my head around the groups making part of the creatrepo
does anyone have any tips or hints or know how to make group listing of the packages
i copyed the DVD to hard drive and the repo .XML files they came with it and tryed that way but no luck yet
im running out of things to try
View 5 Replies
View Related
Dec 3, 2010
I'm using vsftpd as my FTP server. I have set it up so I can access my home directory via FTP, requiring my login.
But I want to make a folder in my documents (or anywhere really), which only my colleague can access. But I don't want to make a local Ubuntu user account. He just needs to be able to send files to this folder, connecting remotely, using his own login details.
View 3 Replies
View Related
Dec 9, 2010
One of Konqueror's unique features is that i can name a local process as the action in a form. When i submit that form, the local process is executed. Very helpful for certain offline tasks. What would make it even better is if i could find a way to pass some data to that local process from the html page. This could be the content of a hidden input item, etc. Alternatively, if there is a way for Konqueror to create or update a local file with data from the html page, that would acheive the same end.
View 1 Replies
View Related
Sep 27, 2010
What command would you use to read about the sync system call (not the sync command)? How would you read a local man page for sync that was kept in the /usr/local/share/man?
View 2 Replies
View Related
Dec 9, 2009
I am trying to install tilp, a program for the link between a computer and a Texas Instruments calculator. I have downloaded all the packages to a local directory. I tried telling yum to install all the packages at the same time, though, the dependencies still fail to resolve (though they are all in the directory). I don't know if it would be safe to force install without the dependencies (even though I would install them later).
View 4 Replies
View Related
Aug 19, 2011
Let's get clear with all bin and sbin folders(from filesystem hierarchy standard):
So the question is: Why there are so many directories and what are the meanings of /usr/sbin, /usr/local/sbin and /usr/local/bin?
Many programs are distributed through archives and we have to build them from source code. Usually they have makefile so it's quite easy. This process involves creating files in usr/local/lib, usr/local/bin... usr/local/whatever without creating specific folders for a given program.
I think it's not right because if we need to remove the program we have to manually delete every of its files if the program's creator didn't take care of it.
View 4 Replies
View Related
Jul 12, 2011
I want to make an rpm which when installed as an update causes another rpm to be removed. I'm fairly sure this is possible because I have seen LibreOffice rpms install as updates replacing OpenOffice rpms in the process without any interaction being required. However I'm unable to figure out how to do it, even after having looked at the spec file for such a LibreOffice rpm.
I have package gstreamer-0_10-ffmpeg installed. I have another package called multimedia installed. I've built a new version of multimedia which includes the gstreamer ffmpeg plugin so I don't need the gstreamer-0_10-ffmpeg package installed any more. I've tried using Provides and Obsolete in the spec file of the new multimedia package. E.g.
Code:
Provides: gstreamer-0_10-ffmpeg
Obsoletes: gstreamer-0_10-ffmpeg <= 0.10.10
(I've tried it with and without version numbers.) Whatever I put in the spec file, when I try and install the new multimedia package as an update zypper says
Code:
$ zypper up -y multimedia
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: multimedia-1.1-1.i586 obsoletes gstreamer-0_10-ffmpeg <= 0.10.10 provided by gstreamer-0_10-ffmpeg-0.10.10-0.i686
Solution 1: replacement of gstreamer-0_10-ffmpeg-0.10.10-0.i686 with multimedia-1.1-1.i586
Solution 2: do not ask to install a solvable providing multimedia > 1.0-2
Selecting an option manually is no good, I need the update to happen without user interaction.
View 3 Replies
View Related
Jul 12, 2011
I'm trying to make a huge installation of applications on linux, (Red Hat), but without internet, i mean, i will have to download rpm's one by one and install them, the problem is that i've tried and is terrible, it always shows conflicts within versions, dependencies of dependencies, etc etc...
Is there any kind of tip to get this working? any kind of command that shows me the real dependencies that should be installed (with the right versions, etc) without conflicts? I've tried the following:
Quote:
rpm -qR package
View 3 Replies
View Related
Nov 9, 2010
Do you know a way of making vim not to use colours?
View 1 Replies
View Related
May 9, 2010
I have an indexer for sphinx, and i want it to run once every hour in linux. How would i do this?
View 8 Replies
View Related
Dec 15, 2010
I wondered if theres a way to do rotational style completion in bash similar to the behavoir on cmd.exe, I've found it speeds me up in regard to entering commands
View 2 Replies
View Related
Jun 20, 2010
I have recently installed ubuntu 10.04 on my five year old desktop. Unfortunately, the official linux driver for my ATI X1600 card doesn't seem to support this ubuntu. There's an open source driver running now, but 3D applications run much slower than originally under windows. (which I can't seem to install on my sata raid harddisk anymore)
It's even so slow that I can't use those 3D applications anymore. I came to the conclusion that my computer is just too old for such a modern system as ubuntu 10.04. So I started looking for another version of linux. I tried the Linux Distribution Chooser, it pointed me at OpenSUSE 11.2. But I don't know, this program still looks kind of new. Too new for my computer.
I think that my computer needs an older version of linux, so that all the hardware will work properly. So I'd like to know if there's an older version of ubuntu/linux that still supports my hardware.
My computer was assembled from the following parts:
- DVDI LiteOn 16x/48x IDE bulk
- RAM 512 MB DDR/400 PC3200 ValueSelect
- HDDI 200GB 7200 Maxtor 6B200M0 8MB/SATA
- MB MSI k8T Neo2-F Athlon 64/939/DDR
- CPU AMD Athlon 64 3200+ 2.0Ghz/so939 BOX
- X GRA Sapphire R9600XT TV/DVI 256MB L-re
Does anyone know any distributions that fit this hardware? Some older versions of ubuntu perhaps? Something that allows me to install drivers that make 3D applications run a t normal speed? If someone knows about a Distribution Chooser that takes hardware into account, I'd also like to know.
View 1 Replies
View Related
Mar 20, 2010
My drive is a 160GB and currently having 2 partitions:swap (taking about 2 GB)
linux (taking about 155GB)
Here's the fdisk -l
Quote:
I'd like to do the following:Increase the swap partition to 5GB Reduce the Linux system partition by 25GB and give this 25GB to a new partition, which I'd like to use for my Data - this should be accessible by both Linux & Windows
View 9 Replies
View Related
Aug 24, 2010
Earlier today I created a bootable USB stick by executing a script file that came with the distro for that purpose and experienced no problems. Later on, I tried exactly the same thing but using a SD card via a USB adaptor and it didn't work. Is there some difference in geometry between these two media types that could cause this problem?
View 5 Replies
View Related
Jan 18, 2010
I have an CentOS 5.4 install with several swap partitions of 2048Mb each (someone suggested to me the OS would run better like this?). But, I have a few other partitions and I'm sick of having so many to check and monitor. Also, having set up another machine with only one swap partition, I am not finding it running any better/faster.How do I go about deleting all the swap partitions and making a new one (to fill the exact same space as ALL of the old ones)?
View 9 Replies
View Related
Mar 6, 2011
/etc is where your gnu/linux stores it's configuration. Its function is similar to the Windoze registry. As you install, uninstall, and work with various programs, /etc changes. Sometimes, things change that make your system act unexpectedly.
1) open a console
2) su enter root password
3) # mkdir /var/backup
4) # vim /usr/sbin/prep4change replace "vim" with text editor of your choice
5) cut and paste the following short script
[code]....
Next time you are about to install, remove, or change something, just issue prep4change as root. If the unthinkable ( but expected ) should happen, and things stop working correctly, you have your /etc and /boot already backed up. Your backup will be located in /var/backup You can also $ tail /var/backup/notes to see why you made what backup Again, this isn't the most elegant, but it's simple, and it works!
View 3 Replies
View Related
Jun 22, 2011
How to make a usb disk on key bootable?
View 3 Replies
View Related
Mar 13, 2011
I am just entering the Linux world. All these years I wanted to test Linux but did not have the resources to make a new computer. Then I found Puppy Linux by chance. Nearly all the work I do with Windows 7/XP can be done with Puppy Linux. I am running it from a CD. I developed a smartfont for an Indic language called Sinhala, which uses ISO-8859-1 (Latin-1, SBCS) character set.It makes typing Sinhala, one of the more complex of Indic scripts, easy.
Essentially, this is a transliteration of the 'complex' script into Latin character set and then showing it back in the native script by way of the smartfont. See it here: [URL] Of course, you have no clue what it says. If you copy the text and look, you'll understand what is going on. You can type it with the dead-key keyboard. Only problem is that in certain situations, the font makes conjoint letters where you don't want them. You can prevent it by inserting the ZWNJ, Zero-width non-joiner (u200C), but the keyboard does not have it. Is there a way to edit the keyboard layout and make a modified key layout?
View 4 Replies
View Related
Dec 11, 2010
i have a java program and to run it, i have to go into terminal and typecd <where the file is>java -jar <filename>.jarthis works fine, but is there a way to make a shortcut/small program to do this for me when i double click?
View 3 Replies
View Related
May 28, 2011
making My simulation graphs in Ns-2.34 in ubuntu how i can make them. my simualtion is about Home automation lighting control and i wnated to make 6 graphs1) time VS Residaul energy ( remaining enregy of the nodes)like sensors (we have mentioned Insteon sensor and Switchlinc Dimmer)use 9V battery in them. the 9V should be converted in joules and Energy on Y-axis should be in Joules and time on X-axis should be of simulation timeThe graph would be showing after running the simulation 3000 times how much energy is remaining or how much energy is consumed in the nodes after sending 2000 packets.2) Packet size Vs Delay, Delay on Y-axis and Packet size on X-axis with there units and the graph would be showing if Pacjet size increases how much delay is created.3) Throughput Vs Badwidth. througput on Y-axis and Bandwidth on X-axis4) Packets Loss Vs data rate5) Packets sent Vs data rate6) Packets received Vs data rate
View 8 Replies
View Related
Mar 24, 2011
how can I make my sh interactive by default. That I don't have to always type --interactive everytime I log in. I want it to be always interactive. #2- how also do I turn of --posix mode parmanently ? Is there a line I need to drop somewhere or what do i do.
View 4 Replies
View Related
May 6, 2010
I just finished making a clone image on my XP Pro HD and am now ready to install Ubuntu 10.04. Are there any scripts available that will install software that will add more functionality to my new Ubuntu installation? I installed 10.04 on a Dell Desktop circa 2003 with an 80GB HD and 512MB of RAM. Looking forward to using it!! Is this latest Ubuntu release better than XP Pro overall?
View 5 Replies
View Related
Jul 26, 2011
I have a postfix mail server on ubuntu 10.04 lts behind a router. so all local users are fetching/sending mails through ms outlook using local IP. Sometimes when internet goes down and any mail send then it bounced back immediately saying domain not found. Can u please tell me how i configure to hold all mails in postfix server rather than bounce when internet fails and will pass through when restored the internet around 15-30 minutes?
View 2 Replies
View Related
May 16, 2010
I'd like a way to see all of the devices on my local network and what their local IP address is. I recall that I used wireshark to troubleshoot a similar problem a while back, but it doesn't seem to have a way to see all of the devices- only the traffic. (I'd like to do this without having to physically interface with my router if possible, and I am in an encrypted network if that matters)
View 6 Replies
View Related
Jun 28, 2011
I have installed a web server on my local network. Everything is well configured and web pages are shown correctly from Internet (outside the local network) using the domain or the public IP.The issue is if I try to see that web pages (using the domain or the public IP) from inside the local network. In that case the router config page (192.168.1.1) is shown instead of the web pages.From inside the local network I'm only able to see the web pages using the internal IP address (192.168.1.XX).
View 2 Replies
View Related
Oct 6, 2010
On a 64 bit CentOS host I am using script make_chroot_jail.sh to put a user in a jail, not permitting it to see anything expect it's home at /home/jail/home/user1.
I did it typing this:
After, when trying to connect to user1 first i was getting an error like:
I have fixed this by copying some missed libraries:
But now, when trying to connect to user1 typing su user1 and then typing it's password, i am getting this error: could not open session
So the question is how to connect to user1 in this situation?
Here are the permissions of some files, this might be helpful in order to provide a solution:
After some modifications i managed to connect to user1, but the session closes immediately! I guess this a PAM issue, however cant find a way to fix it.
Here the log entry for close action from /val/log/secure:
What makes the session to exit immediately after launching?
View 1 Replies
View Related
Sep 16, 2010
One thing that I didnt like about gnome is the huge gtk+ interface and controls. Everything is so large.
Is it by design? Or I can make the overall interface smaller by some tweaking? If so then how? This question arose while I was using eclipse in fedora gnome.
View 1 Replies
View Related
Sep 12, 2010
Can I make any site password protected?I mean when I try to open a site via firefox, suppose facebook, it asks for a password. Is it possible?I've
View 1 Replies
View Related