LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-20-2009, 11:00 AM   #1
jorisvt
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
Need to run video after sign in


Hello, for my company I need my Asus EEE-Pc to play a video after sign in in.

I do know that I need to edit "rc.local", but I have no idea how. I've tried it by using the texteditor, but then I can't save "rc.local". I've also tried using the console.

If someone could help me with this, that would be fantastic. My apoligies for my bad English.
 
Old 07-20-2009, 11:49 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 210Reputation: 210Reputation: 210
You need to edit system files as root see here: http://www.linuxforums.org/forum/lin...-log-root.html scroll down to post #2.
 
Old 07-21-2009, 08:16 AM   #3
jorisvt
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Oke, now I can edit the file, but how? The video is located at my videos named "video.wmv". So what line do I have to add to play te video?
 
Old 07-21-2009, 09:01 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
rc.local is not the place to put the command. It will fail because X is not started until you login.

Are you running the xandros linux the eee came with? Or have you installed another distro?
 
Old 07-21-2009, 09:25 AM   #5
jorisvt
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I'm running on Xandros, wich came with it.
 
Old 07-21-2009, 09:32 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Then take a look here especially posts #8 and #11
 
Old 07-21-2009, 12:00 PM   #7
jorisvt
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
That helped allot, thank you. But I'm still not there yet. The mediaplayer starts automaticly, but now I need to play te video automaticly.
 
Old 07-21-2009, 12:07 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
What is your mediaplayer called? What command did you put in that file to make it open (but not start playing)
 
Old 07-21-2009, 12:28 PM   #9
jorisvt
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I've added "smplayer &" at the list of programs. I did tried some ways to play the videofile by putting the video directory there, but that didn't worked.

Last edited by jorisvt; 07-21-2009 at 12:30 PM.
 
Old 07-21-2009, 12:38 PM   #10
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Good start.

But smplayer needs to know which file you'd like it to play.

Most linux commands (and smplayer is one) have manual pages
man smplayer in a terminal then [Page up][Page Down] [q to quit]
to see all the options available to starting it from the command line.

But I think you'll just need to change that line to:
Code:
smplayer   /path/to/your/video.avi    &
It's years since my eee701 had xandros (I'm much happier with kubuntu 8.04) but I think it had a weird default username like /home/user/ so your path might be /home/user/videos/video.avi

I expect you'll work it out.
Let us know how you get on.
 
Old 07-21-2009, 02:04 PM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,150

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
i wonder why you cant add a line to $HOME/.bash_profile or similar.

is eeepc xandros something special ?
 
Old 07-21-2009, 02:15 PM   #12
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Quote:
is eeepc xandros something special ?
Yes.
"Specially broken" if you ask me. That's why I kept the hardware, and reinstalled a "proper" linux
 
Old 07-21-2009, 02:56 PM   #13
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
@jorisvt

You have edited your post and I missed this bit:
Quote:
I did tried some ways to play the videofile by putting the video directory there, but that didn't worked.
It works for me (I also have smplayer, but not xandros)

Please post the exact command you are using, and confirm that the video file exists with
ls /path/to/video.avi
(shouldn't say "ls: cannot access video.avi: No such file or directory" if it does, the path is wrong)
 
Old 07-21-2009, 05:04 PM   #14
jorisvt
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Well I tried again, but the video pops up and than closes down after 2 seconds.

The command looks like this: smplayer ls /home/user/my documents/my videos/film 43.avi
 
Old 07-21-2009, 05:21 PM   #15
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Quote:
The command looks like this: smplayer ls /home/user/my documents/my videos/film 43.avi
The ls is spoiling things. It means list and is a command in its own right
Remove it.
And spaces aren't allowed in paths unless "they are in quotes" or 'escaped' (I'll leave you to read up on that one).
Try
Code:
smplayer  "/home/user/my documents/my videos/film 43.avi"  &
Don't forget the trailing & because it is important. ( Again, I'll leave you to read up on that one )
 
  


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
video not run contineous girish.mtech Linux - Software 1 07-26-2007 01:03 PM
Why video files not run Naeem Shahzad Fedora 1 05-07-2007 11:58 AM
sign on invisible in gaim - NOT invi after sign on saravkrish Linux - Software 7 09-12-2005 11:55 PM
can i run two different video cards? sillyd Linux - Hardware 1 10-23-2004 11:45 PM
Re-run the video setup? mchitsquad Red Hat 6 09-13-2003 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration