LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2005, 08:36 AM   #1
MaTrIx709
Member
 
Registered: May 2004
Location: UK
Distribution: Debian Testing
Posts: 70

Rep: Reputation: 15
New to Debian, a few questions


Hi all,

I'm getting pretty used to my debian installation, all I can say after having a casual interest in linux, I finally see why its so amazing. But I have a few small problems.

Question 1
If I start an application from a terminal, how can I seperate the two. What I mean is... If I run

Code:
$ gaim
The terminal cannot be used for anything else until I type controle-c, which also happens to kill gaim



Question 2
Also, If I have a script

Code:
#!/bin/sh
#gav's first shell script
#loads some programs on boot

#say hello
echo "Gav's startup script ran"

#startx server
echo "Starting X Server"
startx

#run gaim
echo "Starting Gaim"
gaim
1) Where can I put 'sh script.sh' so that I can run it at boot? or even better at login of user gav
2) When I run the script from a terminal
Code:
$ sh script.sh
I can get X to start, but gaim doesn't. What am I doing wrong?



Question 3

lastly, how can I flag 'ls' to show one page of results at a time, so it wont run over the top of the terminal


Question 4

How can I use a photo avatar with gaim

Last edited by MaTrIx709; 04-05-2005 at 09:13 AM.
 
Old 04-05-2005, 08:43 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

concerning gaim, instead of ctrl-c you can use ctrl-z and the type "bg".
you put the job in the background. it is valid for any application called from the cli.

regards

slackie1000
 
Old 04-05-2005, 09:12 AM   #3
MaTrIx709
Member
 
Registered: May 2004
Location: UK
Distribution: Debian Testing
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks for the reply.

Ctrl-z works a treat. I can now run other commands, and gaim stays as long as the terminal is not killed.
So we are half way there.

But.... when I type 'bg' the terminal returns [1]+ gaim &

but when I close the terminal, gaim is still up
 
Old 04-05-2005, 09:15 AM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
Quote:
Originally posted by MaTrIx709
Thanks for the reply.

Ctrl-z works a treat. I can now run other commands, and gaim stays as long as the terminal is not killed.
So we are half way there.

But.... when I type 'bg' the terminal returns [1]+ gaim &

but when I close the terminal, gaim is still up
hi there,

exactly. that exact how it should work.

regards

slackie1000
 
Old 04-05-2005, 09:20 AM   #5
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
I haven't used gaim before, but in respects to using the same terminal, if you issue your command like: gaim & it will startup in the background of the terminal.

With respects to what you are doing with that shell script, I don't know if it can be done exactly that way... If you want gaim to start after you enter you X environment, and you are using kde go into the ~/.kde/Autostart folder and put your script (minus the crap about startx) in there and it should run just peachy, without having to use the ampersand.

Your question about ls

ls | more
 
Old 04-05-2005, 09:28 AM   #6
reflection666
LQ Newbie
 
Registered: Nov 2004
Location: Athens, GR
Distribution: Mandrake 10.1, Ubuntu Hoary, Debian woody
Posts: 26

Rep: Reputation: 15
1) ambersanq ('&') is used in order to push the proc in the bg ex.

foo@bar:~/>gaim & [enter]

starts gaim and send it to the background

2) ls | more or ls | less (more and less are like cat)

ex more text.txt shows contents of text.txt page by page (same keys and functions with vi or vim)

'|' the pipe sends one programms output to anothers input ex.

ls ~/pictures/ | grep .psd -> lists only the *.psd files in your pictures folder
ls -l ~/pictures/ | grep .psd | wc -l -> counts them (counts the lines of the output list)

as for starting services NOT when the machine boots BUT when you login (console or X) try editing ~/.bashrc or KDEs and GNOMEs options


linux is fun... but console is even more fun. Try learning the basic console tools like more, less, grep, ls, vi, cat cause nothing is easy without them.
 
Old 04-05-2005, 10:32 AM   #7
MaTrIx709
Member
 
Registered: May 2004
Location: UK
Distribution: Debian Testing
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks all,

I pretty much consider the problems resolved.


Regards,
Gavin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Debian Questions elias4444 Debian 7 10-29-2004 11:00 PM
debian install questions lestoil Debian 1 06-02-2004 02:14 AM
new debian user questions _mu_ Debian 4 03-08-2004 04:07 PM
I want to try Debian and I have a few questions Vlad_M Debian 6 01-29-2004 11:40 AM
Questions about Debian mrsolo Linux - Newbie 19 05-10-2003 01:00 AM


All times are GMT -5. The time now is 06:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration