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


Groups > linux.debian.user > #182115

Re: Debian startup/booting help

From Ankit R Gadiya <debian@argp.in>
Newsgroups linux.debian.user
Subject Re: Debian startup/booting help
Date 2017-06-13 10:00 +0200
Message-ID <tROU2-5d9-9@gated-at.bofh.it> (permalink)
References <tRErE-74t-7@gated-at.bofh.it> <tREL0-7pZ-15@gated-at.bofh.it>
Organization Debian

Show all headers | View raw


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>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web