Choose style:

Author Topic: [SOLVED] Moving an image file between directories  (Read 427 times)

0 Members and 1 Guest are viewing this topic.

Offline old_dreamer

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint-9 respin 64bit
[SOLVED] Moving an image file between directories
« on: January 18, 2019, 09:34:45 am »
Have been trying to move an image i want to use as a background via the terminal but sadly i failed.
I opened a terminal and type the following

Code: [Select]
cd Downloads
sudo su mv backgroundimage.jpg /usr/share/peppermint/wallpapers

Could someone tell me where i'm going wrong please.
« Last Edit: January 18, 2019, 10:14:52 am by old_dreamer »

Offline emegra

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1885
  • Karma: 410
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 64bit
Re: Moving an image file between directories
« Reply #1 on: January 18, 2019, 09:45:10 am »
Hi old_dreamer

Remove the su from the command it is not required

make the command read

Code: [Select]
cd Downloads

then
Code: [Select]
sudo mv backgroundimage.jpg /usr/share/peppermint/wallpapers


good luck

Graeme
« Last Edit: January 18, 2019, 10:10:36 am by emegra »
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline old_dreamer

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint-9 respin 64bit
Re: Moving an image file between directories
« Reply #2 on: January 18, 2019, 10:14:08 am »
Hello emegra

I have now finally moved the image into /usr/share/peppermint/wallpapers by doing the following, typing a new password for the root account.
And then i was able to become 'root' in the terminal by typing:

Code: [Select]
su (Enter)
typed in new root password and then
mv image.jpg /usr/share/peppermint/wallpapers

Have now got an image very similar to my old chopper motor bike as my background image.
Those were the days lol.

Big thanks Graeme for taking the time out to help an old duffer like me.

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 1948
  • Karma: 336
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: Moving an image file between directories
« Reply #3 on: January 18, 2019, 10:22:55 am »
typing a new password for the root account.


That's not the recommended way to do it. You should use sudo as emegra suggested.

Offline old_dreamer

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint-9 respin 64bit
Re: [SOLVED] Moving an image file between directories
« Reply #4 on: January 18, 2019, 10:46:31 am »
Hello murraymint

I understand what you are saying but at the time it was the only way i could think of that would get the job done.
Is there a way to disable the root password i created?

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 1948
  • Karma: 336
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: [SOLVED] Moving an image file between directories
« Reply #5 on: January 18, 2019, 11:29:46 am »
Hi, I've never done this myself and all I can find is a ten-year-old Ubuntu thread. Better wait for a more knowledgeable user to chip in :)

Offline emegra

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1885
  • Karma: 410
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 64bit
Re: [SOLVED] Moving an image file between directories
« Reply #6 on: January 18, 2019, 11:51:40 am »
I'm a bit confused here typing su then Enter at the terminal prompt should have given you an authentication failure after typing in a password

 in order to gain full root access (which is not recommended) you should need to type

Code: [Select]
sudo su

then type in your password (the same password you login with)

So what exactly did you do to create this new password ?



Graeme





If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline old_dreamer

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint-9 respin 64bit
Re: [SOLVED] Moving an image file between directories
« Reply #7 on: January 18, 2019, 01:57:06 pm »
Hello once again emegra

In order to create a new password i followed a tutorial i found on this page. https://askubuntu.com/questions/44418/how-to-enable-root-login
Sorry to have caused any bother.

Offline emegra

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1885
  • Karma: 410
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 64bit
Re: [SOLVED] Moving an image file between directories
« Reply #8 on: January 18, 2019, 02:26:05 pm »
Quote
Sorry to have caused any bother.

Please don't be sorry that's what we're here for.

On the tutorial there's a section called "Reverting Back"  which gives an easy way to disable the root account you've created but I don't want to tell you to do that at this point , I would rather someone else looked at this, don't worry you've not done any harm I just don't want to suggest anything that could lock you out of your system


Graeme
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline old_dreamer

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint-9 respin 64bit
Re: [SOLVED] Moving an image file between directories
« Reply #9 on: January 19, 2019, 07:33:39 am »
Thanks Graeme