LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-21-2013, 04:53 PM   #1
dudebro
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
changing default shell and opening programs directly


Hey, so I have st (terminal emulator) and rc (shell).
The only way to open st I know is via xterm running bash.
So I have to open xterm running bash to open st running bash then run rc in st.
So, my two questions are how can I open a program directly (st), like without having to open xterm running bash?
And how can I change the default shell of my system from bash to something else (rc)?

Edit: by the way I'm using debian testing
 
Old 04-21-2013, 05:36 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

the default shell for new users will depend on how the new user account is created. For example if you are using adduser, then the default shell will be set in /etc/adduser.conf. Check the documentation of tool you are using. If you want to change the shell of existing users, you can do that with tools like usermod.

Quote:
So, my two questions are how can I open a program directly (st), like without having to open xterm running bash?
I guess you are running some sort of window manager or desktop environment, so you can probably launch st from the menus or a "run dialog" (eg I think Alt-F2 on gnome does this). Alternatively you could probably bind some key sequence to launch st (I have Mod4-Enter bound to launch roxterm). If you can't work out how to do this you'll need to tell us more about your environment for us to help.

Quote:
And how can I change the default shell of my system from bash to something else (rc)?
I'm not really sure what you are asking here. The default shell of your system is /bin/sh which is probably a symlink to /bin/dash or perhaps /bin/bash. I'm not familiar with st, so I can not recommend making it the systems default shell.

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal mode changing directories and opening shell scripts fillister Ubuntu 8 11-26-2007 06:54 PM
Changing programs default .folder jagwah Linux - Software 2 06-20-2006 12:08 AM
changing url opening default in kmail why2jjj Linux - Software 2 12-12-2005 08:50 AM
changing default for pdf file opening moonmoth Linux - Software 7 07-27-2005 03:05 PM
Opening file with default application from shell script? bourbon_beast Programming 4 04-13-2004 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration