Ubuntu :: Setting Default Programs For Shell Scripts?
Mar 31, 2011Is there a way to make it so that opening an executable text file will automatically run, rather than prompt me to run, edit, or something else?
View 2 RepliesIs there a way to make it so that opening an executable text file will automatically run, rather than prompt me to run, edit, or something else?
View 2 RepliesI'm trying to get tmux to open a certain set of panes an certain programs in those panes by default and open that way every time I run tmux. Is there any way to do this?
I read in the documentation commands for this, but i have no idea where to begin.
I want to change my default shell to tcsh. I used
Code:
usermod -s /bin/tcsh username
command as given at url
But if I open a new shell, it is still a bash shell.
How do I make my default shell as tcsh?
I have already had Vista installed on another drive and from what i've read on the webs you get to dualboot if you install ubuntu after vista. when i did install it (i installed on a blank hdd with no partitions, choosing the "erase entire disk" option since for some reason default option was attempting to eat a part of my windows 1 gb drive instead of using disk i specially made for it) and the grub 2 loaded for the first time, there was NO option to run vista. only 2 linux (normal and recovery) and 2 memtests. I've ran linux and went to google this. I found that i should add something to some config files in /etc/grub.d/From reading the readme file i understood i could add my own files that are named like NUMBER_SOMENAME and insert code into them. Because it said:Quote: For example, you can add an entry to boot another OS as01_otheros, 11_otheros, etc, depending on the position you want it to occupy inthe menu; and then adjust the default setting via /etc/default/grub. But then i found a file 40_custom that said:
Code:
#!/bin/sh
exec tail -n +3 $0
[code]....
I recently made the switch from gnome to kde. After struggling for two straight days I finally have everything the way I want, and I must say that I am quite pleased with Kde. The one thing I want to do now is get my computer to start up without running printer applets and bluetooth and all that other stuff I don't need. I have had little luck finding any info on this one.
View 3 Replies View RelatedIn the applications menu I would like to always run certain programs as root. For instance Wireshark; I'll never want to run that as a regular user I'll always want to be root. Is there a way to set it up so that when I click it in the menu I'm prompted for my password and it will automatically run as root? (Much like in windows you can right click and check the box that says always run as administrator.)
View 2 Replies View RelatedI've Xubuntu with XFCE 4.6 installed. In the autostart I have these programs by default:
Code:
polkit-gnome-authentication-agent-1
xfce4-settings-helper-autostart.desktop
xfconf-migration-4.6
xfce4-tips-autostart ->
I've already disabled What they do exactly and which of them can be disabled without getting any problems?
I am wondering what the difference is between the two. I know that the server does not have GUI enable. Does the server have more server programs installed by default?
View 1 Replies View RelatedDo you know how to write a shell script that executes say 4 instances of the same program in different directories at the same time, and once ONE instance completes it executes a new instance of that program in a new directoryd so on, until 100 instances have been executed, each in their own directory
View 5 Replies View Relatedam running 10.10 64bit and I am wanting to change a few wayssome programs start up on boot, they are as follows:1. make NetworkManager not load onboot and require me to manually start it in the command line2. make bluetooth not start on boot and allow to manually start it from the command line3. make networking not boot on startand start manually from command line I have been trying to search on google but most of thereads I find are about removing things completely and the few that werent did not work for what I want to do.
View 8 Replies View RelatedI have a problem with setting up 2 programs ROOT and GEANT4 through .tcshrc file. In order to better understand what I mean, I have attached the contents of my .tcshrc below. So, when I open a new Terminal, ROOT would not work, but the Geant4 works. Although everything is set up correctly, I have checked the commands for ROOT later, and in that case it works perfectly fine. When I switch ROOT and Geant4, and put Geant4 commands first, and later ROOT commands then ROOT would work, but the GEANT4 libraries won't. let me know what is wrong with my .tcshrc file.
# Running ROOT
setenv ROOTSYS /home/kirillpushkin/Documents/root
setenv PATH ${ROOTSYS}/bin:${PATH}
setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${LD_LIBRARY_PATH}
# Running GEANT4
setenv G4WORKDIR /home/kirillpushkin/geant4
[Code]...
I am running AnyMeal, which is a KDE program. There's a link in the set-up for FAQs, but when I try to open it I am told "Could not launch the browser: Could not find kfmclient". I checked /etc/alternatives, and the x-www-browser is set to be iceweasel (Debian's firefox), which is what I use. I do not have Konqueror installed. I use Fluxbox, however, I also run some Gnome and KDE programs. I checked if there is a package I may need, but came up empty:
Code:
mark@debian:~$ locate kfmclient
/usr/share/locale/en_GB/LC_MESSAGES/kfmclient.mo
mark@debian:~$ apt-cache search kfmclient
mark@debian:~$
how I can set it up so that the "kfmclient" can be recognised as iceweasel?
I am looking for a way to edit the default programs the mailon, included with the indicator applet, on the task bar uses. More specifically, I would like a way to integrate "checkgmail" instead of evolution.I did:Code:locate indicator-appletand it printed several possible files, none of which look like they could be edited in this way
View 7 Replies View RelatedAs I was researching on how to create a kiosk Ubuntu setting I came upon a suggestion to create the user with '/usr/bin/screen' shell option.Hope you all would forgive me for this noob question but what does this mean? I saw when I checked the Advance Settings Advance tab that there are a couple of possible options there, what do they mean and how will they affect the user profile I'm creating? I tried google for this and if my understanding is correct, these shells are suppose to be programmable and a scripting language for linux but I'm confused on what effect this has on the user profile I'm creating?One thing I notice though is that with the '/usr/bin/screen' option, the user account is refused of the Applications > Accessories > Terminal option.When I googled each one of the options I'm getting more confused as to the relevance of this to the user profile.
View 3 Replies View RelatedI'm running into a problem when I try to set a variable to an awk output in c-shell. Right now my command is Code: set STR_MSG_TYPE = `awk -F{ '/msg_type/ {print $2}' <filename> | tr -d }'/''*' ` I then run echo to see what the output is and it returns blank, however, when I run the same awk command from the command line, I get an actual output of "MT-715". Am I setting my variable incorrectly? I do something similar using the date command to set a STR_DATE variable earlier in the code and it works fine and I use the same syntax.
View 1 Replies View RelatedI'd like to keep root pw==sudo pw==user pw on a box with Code: $ lsb_release -ds Ubuntu 9.10 $ uname -rv 2.6.31-22-generic #61-Ubuntu SMP Wed Jul 28 02:02:56 UTC 2010 Just now it hung going to sleep, so I shutdown via BRS. On cold boot, HD mount failed and I got the prompt to hit Esc to goto maintenance shell. I did that, got the prompt for the root password, and entered my sudo.
That failed! though it has worked before ... but I changed my user password on that box recently, and I'm pretty sure I haven't needed to fsck between then and now. I'm wondering: What do I need to do to set my root pw? I was able to C-d out of the shell, and karmic took care of itself, but I'd prefer not to rely on that. Is there a way to make my root pw always equal my user pw? If so, is that a Very Bad Idea?
i've iregulare situation here i use LXDE and when i use chromium (for ex)and download a jpg file and then open it it starts FIREFOX and then asks me to open it i want chromium (for ex) to open that file type directly with images viewer another example when i installed awn and made some favorite applications shortcut on it when i try to open those shortcuts it opens firefox again and ask me to download or open O_O how can i remove firefox from all this proccess ?
View 6 Replies View RelatedWhere is the location of file which holds information about open with dialog? I need to edit it to change default programs that open certain files?
View 3 Replies View Relatedi'm pretty new to ubuntu. I was "playing" trying to change my default shell and failed. Now, after logging in, i open a terminal window and type "su". Ubuntu asks me a password, i give my password and i get this error "unable to execture /bin/bsd-csh: file or directory does not exist". Any idea on how to solve this problem restoring my old shell.
View 2 Replies View RelatedI'm running ubuntu natty with gnome 3 installed. I was installing some gnome 3 shell themes, and I now I want to revert back to the default gnome 3 shell theme (adwaita) but i forgot to back it up (I thought I had) I'm just wondering where I could find this shell online. How do I revert back to where I was.
View 3 Replies View RelatedI'm using ubuntu and i need to know if it is possible to make a "prototype" account that sets the defaults for new users when a new account is made. How would i go about doing this. I would like to have the same start up programs, panel, themes, background, etc...
View 6 Replies View RelatedI recently installed VLC Media Player and now wonder how I could make it my default media player in Ubuntu because every time I want to listen to a song, I have to right click and "Open With...VLC Media Player".
View 2 Replies View Related[URL] my desktop accidently become like this: Screenshot-1.png i can't find the favourites, internet, system, etc to start the application...what should i do to return the desktop with default setting..
View 9 Replies View RelatedI'm trying to configure GRUB to boot XP preferentially- my wife insists. Having looked up the GRUB manual I see that I can set this using the default command.
The problem is, when I go to my grub command line default is not a recognized command. If I hit TAB for a list of commands, it isn't there.
I think I'm using some 0.9x version of GRUB, since the partitions etc seem to be numbered starting at 0, not 1.
While I'm at it, I was just going to play around and figure this out, but: the menu interface lists five versions of Ubuntu (all those weird kernel variations) then XP. So would XP be default 1 or default 5?
I'd like to set Vim as my default text editor (so it opens when I click a file). How can I do this?
View 9 Replies View RelatedI have both Firefox and Chromium installed on my system. I have Firefox set as the default browser, but if, for example, I open GIMP go to Help --> About then click on "Visit the GIMP website" it opens in Chromium, not Firefox.On Maverick amd64, fresh install.
View 3 Replies View RelatedI Just updated my 10.04 LTS system, which dual boots Windows XP. Prior to the update the default was to boot to XP, now it is to Memtest.
I tried to edit /etc/default/ grub and make the default be 14 instead of 12, which would be XP, but Ubuntu, (using gedit), refused to accept my change.
I don't have a problem scrolling around to pick XP, or the latest Linux kernel to boot, but my wife sure does. How can I make Ubuntu/Grub default to to XP ?
I had KDE installed (kubuntu maverick), and moved to Gnome (to support screen dimming on my dell laptop).
Now, when I click on Places and anything (say Desktop), Krusader starts up (I set krusader to the default in KDE).
Where do I change this? I can't find the location in preferences to change this.
I'm trying to set the default apps using gnome-default-applications-properties. In previous versions I was able to set custom apps for everything. Looks like Gnome3/Ubuntu 11.04 doesn't let me do that for, say, the mail reader. I'm one of those people who still use Alpine, and in previous versions I was able to set the default to run an xterm (well, aterm) which auto-ran alpine.
This version, looks like that's not there. I'm wondering if there's a way to set that anyway. like registering a script I write as a "mail client" so it's available in the chooser. Second... and almost MORE annoying... the "Terminal Emulator" default app DOES have a custom option. But it also recognises that I have aterm installed, which I want to use as the default app... however, since it has an aterm option, it won't let me enter aterm as a default command. Which I want to do because I want to modify the commandline options. But if you choose "Custom" and type "aterm" into the Command field... it ERASES your commandline options and puts it's default sterm options in!
I have a file server running a cronjob to reset file permissions on a regular basis. I was thinking, I wonder if there is a way to do the chmod and chown command in a single command, as I always have to do both on the same folder, the way that you can do "chown root:users Uploads" instead of having to do two separate commands for chown and chgrp.
Then I got to thinking, are these commands even necessary? Every file copied or moved into these folders by any user needs to be something like "chmod 750" and "chgrp root:users", so rather than running a cronjob to do these modifications at regular intervals, there ought to be a way to set the folder permissions so that any files contained within will have these permissions.
The problem arises because users create documents, then a supervisor with elevated privileges can move those documents into a shared folder, however the permissions are wrong, they are user1:user1 for the owner and group and the other users can't read the file until a cronjob changes the group to be users. This has actually been acceptable, but certainly there is a better way to do this.