CAMBIA FONDOS DE PANTALLA DESDE UN SERVIDOR WINDOWS

Cambia fondos de pantalla desde Windows.
CHANGE WALLPAPERS FROM WINDOWS

Change a wallpaper for our desk at Deepin It is very simple. With just pressing the right button of our mouse there we will find the option «Wallpaper and Screensavers«. En otras distribuciones también es muy fácil hacer este cambio, even easier, since if you want to put another different desktop background, we can only rename the file with the name of the file that was previously and automatically change the new wallpaper.

Fantastic, no? The fact is that this is not possible in Deepin, that is, it is not as simple as in other distros, since Deepin creates a duplicate of the selected file with another name and in another place to set the wallpapers.

We have a "use case" where you have a windows server with a shared folder and inside you have the image that will be displayed on different PCs with different operating systems. For computers that have Windows in its different versions, there is no problem, because just creating a network drive to the Windows server and configuring the wallpaper on each Windows PC is enough for each restart or open and close the session takes effect the change.

In the case of having a PC With Deepin and set the wallpaper found on the Windows server, the following points are followed.

ACCESSING THE SHARED FOLDER IN WINDOWS

1. We must have the folder shared in Windows.

2. We open a terminal with Ctrl + Alt + T

3. Create a folder where the folder will be mounted. We will create it in our folder home using the following command in a terminal:

$ mk /home/user/fondowin

4. Install cifs-utils

$ sudo apt install cifs-utils 

5. Modify the file / etc / fstab

$ sudo nano /etc/fstab

6. Add the following to the end of the file, on a single line. (You can easily copy the entire line by clicking on it three times in a row)

//192.168.1.5/shared folder /home/user/backgroundwin cifs uid=user,username=user,password=password_de_user,domain=DOMAIN,iocharset=utf8,sec=ntlmssp 0 0 

Where:

  • 192.168.1.5 : It is the IP of the windows server, change it to the one they have established.
  • shared folder: Put the name of the shared folder in Windows.
  • user: Change it to the username assigned or created.
  • backgroundwin: This is the name of the folder that was created in point 3.
  • password_de_user: Important, it is the key or password that is assigned in the domain, not that of the PC.
  • DOMAIN: It is the domain name.

7. We keep pressing Ctrl + O and Exit with Ctrl + X

So far we have made the configuration so that when you restart the PC with Deepin you have access to the shared folder. If we want to check that we have made our configuration correctly we put the following command.

$ sudo mount -a

If no message is shown we will have configured correctly. And now we can see the content of our Windows shared folder inside our fondowin folder.

SHOWING THE PICTURE IN THE WINDOWS SHARED FOLDER

We must create a script sh so that it runs when the PC is turned on. We leave the file in our home folder of preference.

1. As we have our terminal open we put the following command:

$ nano load_fondo

2. We add the following lines:

echo "[WorkspaceBackground]
1=file:///home/user/backgroundwin/background.jpg
[email protected]=file:///home/user/backgroundwin/background.jpg
2=file:///home/user/backgroundwin/background.jpg
[email protected]=file:///home/user/backgroundwin/background.jpg" > /home/user/.config/deepinwmrc

Where:

  • user: Change it to the username assigned or created.
  • backgroundwin: This is the name of the shared folder on the Windows server.
  • background.jpg: Name of the file that will serve as the wallpaper.

IMPORTANT NOTE At this point, copy and paste and leave it as you see it, with line breaks.

3. We save with Ctrl + O and close with Ctrl + X

4. We go to the folder / Usr / share / applications and inside we press the right mouse button and select «Open in a new window as Managedr », we select any file and make a copy. We open the file created with the right mouse button and select «Publisher»And inside we replace everything with the following:

[Desktop Entry]
Name=load_fondo_link  
Version=1.0
Exec=/home/user/load_fondo
Comment=Cargar fondo de Pantalla
Type=Application
Terminal=false
StartupNotify=true
Encoding=UTF-8
Categories=Network;

Where:

  • user: Corresponds to the username and
  • load_fondo: It is the name of the script that we created in point 1.

5. We save by pressing Ctrl + S

6. We go to the launcher and look for the file name load_fondo_link, we select it with the right mouse button and choose the option «Add to bootand".

7. An important step is to enter the route / home / user press Ctrl + h and enter the folder .config

We select the file deepinwmrc and with the right button in properties we assign read and write permissions.

8. We close session and re-enter. Our new wallpaper will have loaded.

I hope it is useful for all of you. Comment and leave any questions or doubts you may have regarding this tutorial. We will do our best to respond and assist you to the best of our abilities.

5 40 votes
Rate the Article
 
Subscribe
Report of
10 Reacciones
More popular
Newer Older
Opinion from the article
See all comments
Juan Carlos
Juan Carlos (@juan-carlos)
Member
1 mes atrás

Double tutorial? It also teaches how to create a link to a samba share, very good, thanks.

Эли
Эли (@eli)
Admin
Respondiendo a  Juan Carlos
1 mes atrás

Right, good point. it's like two in one, thank you so much for the kind words Juan Carlos.

Эли
Эли (@eli)
Admin
1 mes atrás

Este procedimiento de seguro puede ser muy útil en algunos casos. Muchas gracias por tu colaboración Cesar.

Car
Car (@car)
Author
1 mes atrás

Cesar Excellent tutorial, thanks mate. 😀

DarioAR
DarioAR (@darioar)
Member
1 mes atrás

It works! Thanks a lot. I just tried it and it works very well.

DarioAR
DarioAR (@darioar)
Member
Respondiendo a  Céssar
1 mes atrás

Well yes, everything still works to the point. No problem until now.

Matias Reyes
Matias Reyes (@mati2020)
Member
3 días atrás

Oye me ha funcionado muy bien, gracias por mostrar todos los pasos en detalle, agradecido.

10
0
We would like to know what you think, join the discussion.x
()
x