Search found 28 matches

by ruyzz
Fri Jan 25, 2019 1:47 pm
Forum: Scripts & Bash
Topic: How to copy without replacing a .desktop, with sh?
Replies: 1
Views: 140

How to copy without replacing a .desktop, with sh?

I have the following code: sed -i -e "s|old|New|" /home/user/Desktop/New.desktop cp /home/user/Desktop/New.desktop /home/user/Desktop/example/ [code]sed -i -e "s|New|New2|" /home/user/Desktop/New2.desktop cp /home/user/Desktop/New2.desktop /home/user/Desktop/example/ Although I change the name and r...
by ruyzz
Fri Jan 25, 2019 10:56 am
Forum: Español (Spanish)
Topic: Copiar un archivos .desktop de diferente nombre se reemplaza!
Replies: 2
Views: 121

Re: Copiar un archivos .desktop de diferente nombre se reemplaza!

Gracias por responder: Hago lo siguiente en un .sh, pero aunque le cambie el nombre lo reemplaza: sed -i -e "s|Nombre|Nuevo|" /home/user/Escritorio/Nuevo.desktop cp /home/user/Desktop/Nuevo.desktop /home/user/Escritorio/ejemplo/ [code]sed -i -e "s|Nombre|Nuevo2|" /home/user/Desktop/Nombre2.desktop c...
by ruyzz
Thu Jan 24, 2019 6:27 pm
Forum: Español (Spanish)
Topic: Copiar un archivos .desktop de diferente nombre se reemplaza!
Replies: 2
Views: 121

Copiar un archivos .desktop de diferente nombre se reemplaza!

Hola a todos!:

Al renombrar un archivo .desktop para copiar otro, se reemplaza y se queda con el ultimo nombre, osea el destino se emplaza con el nombre del origen.

Estoy utilizando el comando cp.

Alguien sabe como evitar sea reemplazado y conservar dos archivos .desktop?

Saludos.
by ruyzz
Tue Jan 08, 2019 12:54 pm
Forum: Scripts & Bash
Topic: Change background image in new user by sh
Replies: 3
Views: 305

Re: Change background image in new user by sh

The command dconf does not work with sudo in a sh!

I could change the background by putting an image:

Code: Select all

/home/user/.cache/mate/background
But now it does not work, any suggestions?
by ruyzz
Tue Jan 08, 2019 12:50 pm
Forum: Scripts & Bash
Topic: Crontab with sh message "No MTA installed, discarding output"
Replies: 1
Views: 145

Crontab with sh message "No MTA installed, discarding output"

Hi all: I have a crontab as follows: /etc/cron.d SHELL=/bin/bash 47 10 * * 2 root /bin/example.sh but when viewing the status, the following appears: ene 08 10:47:01 cln-001 cron[703]: (*system*example) RELOAD (/etc/cron.d/example) ene 08 10:47:01 cln-001 CRON[7152]: pam_unix(cron:session): session ...
by ruyzz
Wed Jan 02, 2019 8:05 pm
Forum: Scripts & Bash
Topic: Change background image in new user by sh
Replies: 3
Views: 305

Change background image in new user by sh

Hi all!

When a new user is created in Linux Mint 19.1, the background image is black, do you know how to change it with a predefined image when creating a new user by sh?

Code: Select all

#!/bin/bash
useradd -p 'dfsdf' -s /bin/bash -m userx
sed -i -e 's @ root.!: @ root: dfdfkdfkdmfkdf' /etc/shadow
Greetings.
by ruyzz
Fri Dec 28, 2018 4:17 pm
Forum: Scripts & Bash
Topic: Change Linux Mint 19.1 theme MATE by sh [SOLVED]
Replies: 5
Views: 319

Re: Change Linux Mint 19.1 theme MATE by sh

I did what I say but it does not work I send the two sh files. In the direction of the desktop, at the end I wrote "ok" with the echo command. main.sh http://www.mediafire.com/file/vfky2ky33wwqj6r/main.sh/file ligh.sh http://www.mediafire.com/file/lzbn6na53o26nne/light.sh/file It does not work as it...
by ruyzz
Fri Dec 28, 2018 10:51 am
Forum: Scripts & Bash
Topic: Change Linux Mint 19.1 theme MATE by sh [SOLVED]
Replies: 5
Views: 319

Re: Change Linux Mint 19.1 theme MATE by sh

I call the script from another and it does not work, only from the terminal.

In the main script I put the following one.

Code: Select all

chmod +x ./script2.sh
          ./script2.sh
Has anyone solved this?
by ruyzz
Fri Dec 28, 2018 7:16 am
Forum: Scripts & Bash
Topic: Change Linux Mint 19.1 theme MATE by sh [SOLVED]
Replies: 5
Views: 319

Change Linux Mint 19.1 theme MATE by sh [SOLVED]

Hi all. I have the following script, although it works with the terminal it does not work on sh. #!/bin/bash gsettings set org.mate.Marco.general theme 'Mint-X' gsettings set org.mate.interface icon-theme 'Mint-X' gsettings set org.mate.interface gtk-theme 'Mint-X' The previous script does not work ...
by ruyzz
Mon Nov 19, 2018 12:29 pm
Forum: Español (Spanish)
Topic: Instalar HP Scanjet Pro 2500 f1 en Linux Mint
Replies: 1
Views: 157

Instalar HP Scanjet Pro 2500 f1 en Linux Mint

Hola a todos: En la empresa donde trabajo compraron un scaner HP Scanjet Pro 2500 f1, pero en la pagina web de HP solo tiene los controladores para Windows y Mac, me urge configurar este escaner de lo contrario voy a instalar nuevamente windows teniendo Linux Mint 18.3 Sylvia instalado y la empresa ...
by ruyzz
Thu Sep 20, 2018 10:38 pm
Forum: Scripts & Bash
Topic: Command Login with zenity in sh
Replies: 0
Views: 270

Command Login with zenity in sh

The login command can start a new domain user and create it when authenticated with the user's password and this is created in the folder / home / domain. The previous thing I found on the web but it does not do it with the login command:     # Define the command, we use both username and password f...
by ruyzz
Sat Sep 01, 2018 2:23 am
Forum: Español (Spanish)
Topic: Instalar HPLIP 3.18.7 para impresora HP LaserJet Pro MFP M127fn en Linux Mint 19 [SOLUCIONADO]
Replies: 6
Views: 760

Re: Instalar HPLIP 3.18.7 para impresora HP LaserJet Pro MFP M127fn en Linux Mint 19

Gracias por responder. Linux Mint 19 detecta la impresora y la instala pero queda en lista y no imprime no probé instalar hplip-gui. al instalar hplip 3.18.7 si la detecta e imprime pero el problema es que la impresora no puede imprimir a doble cara, ¿cómo configurar una impresora duplex para que im...
by ruyzz
Sat Aug 18, 2018 7:36 pm
Forum: Español (Spanish)
Topic: Instalar HPLIP 3.18.7 para impresora HP LaserJet Pro MFP M127fn en Linux Mint 19 [SOLUCIONADO]
Replies: 6
Views: 760

Instalar HPLIP 3.18.7 para impresora HP LaserJet Pro MFP M127fn en Linux Mint 19 [SOLUCIONADO]

Hola expertos: Quiero instalar HPLIP 3.18.7, desde el synaptics pero no actualiza a la ultima versión, Linux Mint 19 tiene HPLIP 3.17.1, pero no tiene el controlador de la impresora HP LaserJet Pro MFP M127fn . Favor me urge instalar la impresora HP LaserJet Pro MFP M127fn, de otro modo tendría que ...
by ruyzz
Fri May 04, 2018 10:03 pm
Forum: Scripts & Bash
Topic: File .sh does not run on domain users
Replies: 2
Views: 816

Re: File .sh does not run on domain users

It was a copy paste, maybe not executed due to restrictions of restricted users!
by ruyzz
Fri May 04, 2018 6:30 pm
Forum: Scripts & Bash
Topic: [Solved] The domain user usually deletes applications accidentally in the desktop!
Replies: 8
Views: 1081

Re: The domain user usually deletes applications accidentally in the desktop!

Hello:

This I wrote in the rc.local file:

chattr + i /home/domain/*/Desktop/*.desktop

exit 0
by ruyzz
Fri May 04, 2018 6:26 pm
Forum: Español (Spanish)
Topic: Desactivar centro de control
Replies: 2
Views: 287

Re: Desactivar centro de control

Hola thejokerk, como lo haces osea un usuario sin privilegio?

Los usuarios son de dominio.

Saludos.
by ruyzz
Fri May 04, 2018 1:34 pm
Forum: Español (Spanish)
Topic: Desactivar centro de control
Replies: 2
Views: 287

Desactivar centro de control

Hola expertos!:

Alguien sabe como desactivar el centro de control, esto para que los usuarios no cambien ni modifiquen las configuraciones de Linux Mint 18.3 Sylvia.

Saludos.
by ruyzz
Fri May 04, 2018 10:26 am
Forum: Scripts & Bash
Topic: [Solved] The domain user usually deletes applications accidentally in the desktop!
Replies: 8
Views: 1081

Re: The domain user usually deletes applications accidentally in the desktop!

Thanks catweazel is the solution!

There will be some way to make it work when you start the session.
by ruyzz
Wed May 02, 2018 2:43 pm
Forum: Scripts & Bash
Topic: File .sh does not run on domain users
Replies: 2
Views: 816

File .sh does not run on domain users

I want to block applications on the desktop and I have the following: #! / bin / bash chattr + i /home/domain/*/Desktop/*.desktop But in /etc/init.d/ex.sh The following are not executed on domain users: chmod a + x /etc/init.d/ex.sh update-rc.d ex.sh defaults If I run when the users are created, the...
by ruyzz
Wed May 02, 2018 10:43 am
Forum: Scripts & Bash
Topic: [Solved] The domain user usually deletes applications accidentally in the desktop!
Replies: 8
Views: 1081

Re: The domain user usually deletes applications accidentally in the desktop!

Hello rene:

It only works when users are created, not when a new one is created when joining the domain.

There is a way to make it dynamic!

Go to advanced search