Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #182104 > unrolled thread

Debian startup/booting help

Started byDJ VIN Lom <djvinlom@gmail.com>
First post2017-06-12 22:50 +0200
Last post2017-06-13 17:40 +0200
Articles 5 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Debian startup/booting help DJ VIN Lom <djvinlom@gmail.com> - 2017-06-12 22:50 +0200
    Re: Debian startup/booting help <tomas@tuxteam.de> - 2017-06-12 23:10 +0200
      Re: Debian startup/booting help Ankit R Gadiya <debian@argp.in> - 2017-06-13 10:00 +0200
      Re: Debian startup/booting help kc atgb <kisscoolandthegangbang@hotmail.fr> - 2017-06-13 17:10 +0200
      Re: Debian startup/booting help kc atgb <kisscoolandthegangbang@hotmail.fr> - 2017-06-13 17:40 +0200

#182104 — Debian startup/booting help

FromDJ VIN Lom <djvinlom@gmail.com>
Date2017-06-12 22:50 +0200
SubjectDebian startup/booting help
Message-ID<tRErE-74t-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Is there a way to edit a script so when my raspberry pi2 running raspian
jessie can automaticly go into a set directory so when it auto logs in its
in a certain directory

[toc] | [next] | [standalone]


#182105

From<tomas@tuxteam.de>
Date2017-06-12 23:10 +0200
Message-ID<tREL0-7pZ-15@gated-at.bofh.it>
In reply to#182104
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Jun 12, 2017 at 04:29:27PM -0400, DJ VIN Lom wrote:
> Is there a way to edit a script so when my raspberry pi2 running raspian
> jessie can automaticly go into a set directory so when it auto logs in its
> in a certain directory

Hm. I'm not sure I understand. The "raspberry pi2" "being in a directory"
doesn't make sense like that. A running process has a current directory,
e.g. a shell, or something like that. But there are many running processes
in an operating system running on the pi.

What exactly are you trying to achieve? Please describe a bit more, so
we can get an idea.

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlk/AT8ACgkQBcgs9XrR2kZsbQCfUXlHpDC81R6Q5AUKrfR4TIpZ
Y8cAn38yhL4yL5Kjftl7G85KKR2+dAos
=TRvp
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#182115

FromAnkit R Gadiya <debian@argp.in>
Date2017-06-13 10:00 +0200
Message-ID<tROU2-5d9-9@gated-at.bofh.it>
In reply to#182105
On 06/13/2017 02:31 AM, tomas@tuxteam.de wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, Jun 12, 2017 at 04:29:27PM -0400, DJ VIN Lom wrote:
>> Is there a way to edit a script so when my raspberry pi2 running raspian
>> jessie can automaticly go into a set directory so when it auto logs in its
>> in a certain directory
> Hm. I'm not sure I understand. The "raspberry pi2" "being in a directory"
> doesn't make sense like that. A running process has a current directory,
> e.g. a shell, or something like that. But there are many running processes
> in an operating system running on the pi.
>
> What exactly are you trying to achieve? Please describe a bit more, so
> we can get an idea.
>
> Cheers
> - -- tomás
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlk/AT8ACgkQBcgs9XrR2kZsbQCfUXlHpDC81R6Q5AUKrfR4TIpZ
> Y8cAn38yhL4yL5Kjftl7G85KKR2+dAos
> =TRvp
> -----END PGP SIGNATURE-----
>
As far as I understand I think what you want is to automatically enter 
into a directory relative to /home/<USER> as soon as you login and the 
shell starts. This can be achieved by adding a line into your .bashrc file.

I'm assuming you are using Bash shell and  you are the only user but if 
its not true just add this line in all users' .bashrc file.

```
cd /home/<USER>/path/to/directory/
```

This directory can be anywhere as long as you have correct permissions.

---
From: Ankit R Gadiya <https://ankitrgadiya.in>

[toc] | [prev] | [next] | [standalone]


#182142

Fromkc atgb <kisscoolandthegangbang@hotmail.fr>
Date2017-06-13 17:10 +0200
Message-ID<tRVC9-16L-9@gated-at.bofh.it>
In reply to#182105
I suppose he wants his user to be in a certain directory after login. 

This can be done by adding a line with a cd command in user's .profile. 

Or maybe by changing user's home directory, that should work too. 

K.

Le lun. 12 juin 2017 21:01:51 CEST
"tomas@tuxteam.de" <tomas@tuxteam.de> a écrit:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Mon, Jun 12, 2017 at 04:29:27PM -0400, DJ VIN Lom wrote:
> > Is there a way to edit a script so when my raspberry pi2 running raspian
> > jessie can automaticly go into a set directory so when it auto logs in its
> > in a certain directory
> 
> Hm. I'm not sure I understand. The "raspberry pi2" "being in a directory"
> doesn't make sense like that. A running process has a current directory,
> e.g. a shell, or something like that. But there are many running processes
> in an operating system running on the pi.
> 
> What exactly are you trying to achieve? Please describe a bit more, so
> we can get an idea.
> 
> Cheers
> - -- tomás
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> 
> iEYEARECAAYFAlk/AT8ACgkQBcgs9XrR2kZsbQCfUXlHpDC81R6Q5AUKrfR4TIpZ
> Y8cAn38yhL4yL5Kjftl7G85KKR2+dAos
> =TRvp
> -----END PGP SIGNATURE-----
> 
> 

[toc] | [prev] | [next] | [standalone]


#182143

Fromkc atgb <kisscoolandthegangbang@hotmail.fr>
Date2017-06-13 17:40 +0200
Message-ID<tRW5b-1g2-1@gated-at.bofh.it>
In reply to#182105

Le lun. 12 juin 2017 21:01:51 CEST
"tomas@tuxteam.de" <tomas@tuxteam.de> a écrit:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Mon, Jun 12, 2017 at 04:29:27PM -0400, DJ VIN Lom wrote:
> > Is there a way to edit a script so when my raspberry pi2 running raspian
> > jessie can automaticly go into a set directory so when it auto logs in its
> > in a certain directory
> 
> Hm. I'm not sure I understand. The "raspberry pi2" "being in a directory"
> doesn't make sense like that. A running process has a current directory,
> e.g. a shell, or something like that. But there are many running processes
> in an operating system running on the pi.
> 
> What exactly are you trying to achieve? Please describe a bit more, so
> we can get an idea.
> 
> Cheers
> - -- tomás
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> 
> iEYEARECAAYFAlk/AT8ACgkQBcgs9XrR2kZsbQCfUXlHpDC81R6Q5AUKrfR4TIpZ
> Y8cAn38yhL4yL5Kjftl7G85KKR2+dAos
> =TRvp
> -----END PGP SIGNATURE-----
> 
> 

I suppose he wants his user to be in a certain directory after login. 

This can be done by adding a line with a cd command in user's .profile. 

Or maybe by changing user's home directory, that should work too. 

K.

P.S. Sorry for the top post the first time

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web