viernes, 6 de junio de 2014

Seeing apt-get changelogs for to-be-upgraded packages

sudo apt-get install apt-listchanges
 
sudo dpkg-reconfigure apt-listchanges
 
The setup file created is /etc/apt/listchanges.conf
 
 
[apt]
frontend=text
email_address=root
confirm=1
save_seen=/var/lib/apt/listchanges.db
which=changelogs  
 
 
sudo apt-get upgrade → After Y should check the changelogs. 
 
-------------------------------------------------------------------------
 
apticron - Simple tool to mail about pending package updates

http://packages.debian.org/squeeze/apticron
 
 
http://www.cyberciti.biz/faq/apt-get-apticron-send-email-upgrades-available/
 
 

lunes, 2 de junio de 2014

This a good practice.

Made a script with the following commands

 #!/bin/bash

 sudo fdisk -l


 chmod 755 test

 username ~$  ./test
 [sudo] password for username:

 Trick edit visudo -f /etc/sudoers

# See sudoers(5) for more information on "#include" directives:

developer ALL=(ALL) NOPASSWD: /sbin/fdisk


 username ~$  ./test 

---------------------------------------------------------------------

#!/bin/bash

su -c "fdisk -l"

--------------------------------------------------------------------- 

/etc/sudoers en sus ubuntu. para que al tipear sudo [zanata] no pida password.  

# Allow members of group sudo to execute any command

%zanata ALL=(ALL) NOPASSWD: ALL