Search found 25 matches

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

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: 58

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: 181

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: 206

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: 206

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: 206

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: 105

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: 231

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: 529

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: 529

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: 701

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: 950

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: 255

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: 255

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: 950

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: 701

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: 950

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!
by ruyzz
Wed May 02, 2018 12:33 am
Forum: Scripts & Bash
Topic: [Solved] The domain user usually deletes applications accidentally in the desktop!
Replies: 8
Views: 950

[Solved] The domain user usually deletes applications accidentally in the desktop!

Hello I want to block applications .desktop, the domain user usually deletes applications accidentally. It can be done manually with the terminal Ctrl + Alt + T: Chttr + i /home/ domain/user /desktop/*.desktop But the PC, is used by "n" users. Is there any way to do it automatically with an .sh file...
by ruyzz
Tue May 01, 2018 4:25 pm
Forum: Scripts & Bash
Topic: [Solved] How to get domain user name. User whoami
Replies: 5
Views: 865

Re: [Solved] How to get domain user name. User whoami

Thank you, xenopeek, Kyowash and lmuserx4849!
by ruyzz
Mon Apr 30, 2018 6:26 pm
Forum: Scripts & Bash
Topic: [Solved] How to get domain user name. User whoami
Replies: 5
Views: 865

Re: How to get domain user name. User whoami

Thank you.

I have another problem. I want to access the desktop taking into account the current user, but it returns me:

domain \ user, when it should be: domain / user

The problem is the backslash.

Go to advanced search