One command system update (Without password)

March 2nd, 2008 by Felix-Nicolai Müller

I have been asked quite often how I update my system and how I can do it so easily.
Basically, I use sudo and an alias in my ~/.bashrc to achieve a system update by just issuing just one command.

For zypper:

Edit your ~/.bashrc to include this line:
alias pcupdate=’sudo /usr/bin/zypper -n up –type=package’

Edit your /etc/sudoers files this way:

  1.  Open a konsole (alt+f2 –> konsole (in KDE))
  2. su
  3. visudo
  4. Include the line:
    your_username ALL = (%root) NOPASSWD: /usr/bin/zypper -n up –type=package
  5. Your /etc/sudoers should look similar to the example provided below.
  6. done

For smart:

Edit your ~/.bashrc to include this line:
alias pcupdate=’sudo smart upgrade –update -y’

Edit your /etc/sudoers files this way:

  1. Open a konsole (alt+f2 –> konsole (in KDE))
  2. su
  3. visudo
  4. Include the line:
    your_username ALL = (%root) NOPASSWD: /usr/bin/smart upgrade –update -y
  5. Your /etc/sudoers should look similar to the example provided below.
  6. done

From now on, you should be able to update the entire system to the newest available packages (not just the security updates) without using a password and with just one command. Note that you can also edit the /etc/sudoers file using yast.

This is what /etc/sudoers should look like: Read the rest of this entry »

Posted in Computers, opensuse | 10 Comments »

Bildungsgrenze

March 1st, 2008 by Felix-Nicolai Müller

Today in #opensuse-de:

<erloeser1> hallo leute jemand hier mit ahnung von suse linux 10.3
* [erloeser1] (n=erloeser@i59F63282.versanet.de): Andre
* [erloeser1] #opensuse-de
* [erloeser1] irc.freenode.net :http://freenode.net/
* [erloeser1] untätig 00:00:21, Online seit: Sat Mar 1 17:47:32
* [erloeser1] Ende der WHOIS-Liste.
<erloeser1> hallo? funktioniert das hier?
<erloeser1> kann das jemand lesen?
<fnmueller> !de-irc @ erloeser1
<SUSEhelp> erloeser1: Siehe http://de.opensuse.org/Irc_einfuehrung .
<erloeser1> viel zu viel zum lesen
<erloeser1> dann versuch ich das s woanders wenn keiner chatten will, cu
* erloeser1 hat die Verbindung getrennt (Remote closed the connection)
<fnmueller> die bildungsgrenze wird anscheinend doch immer niedriger
<seven-> hehe
* matwix hat die Verbindung getrennt (Read error: 110 (Connection timed out))
<greengeeko> oh mein gott :-D
* thexception hat die Verbindung getrennt (“Lost terminal”)
* matwix (n=matwix@218-194.2-85.cust.bluewin.ch) hat #opensuse-de betreten
<derRichard> bloggen
<derRichard> das sollte man bloggen
<fnmueller> olaf123, was ist das denn für ein nicht so offizieller treiber genau?
<derRichard> damit auch andere sehen wie schlimmes ist^^
<fnmueller> derRichard, soll ich *g*?
<derRichard> jo

Just for you, derRichard. This really is kind of scarry.

Posted in opensuse | No Comments »

Next Entries »

Personal

Psychology

Pages

Archiv