Suse & OpenSuse : Tips, Tricks, Tutorials, How Tos and Troubleshooting

Category Archives: administration

Installing HP LaserJet 1020 Printer for OpenSuSE

Printers such as the HP LaserJet 1020 (1000, 1005, 1018, 1022 inclusive) are usually detected by the various Linux distribution.  However, there seem to have little success in ensuring that the printer drivers installed works.

How to start services automatically at boot?

In the traditional sense, when we want to include a new service at boot time, we looked into the /etc/init.d/ directory and figure out where to put it.  (I tend to look and figure it out as it changes over the years).

Differential backup script sample

We should regularly backup our servers (and PCs and notebooks) and if you are running a production server, backing up as regularly as possible should be considered.  However, backing corporate servers which are full of emails or shared documents can take hours.  We can probably only do so on the weekends.  So, what happens when [...]

How to temporary disable users

From time to time, we will need to disable users.  This may be prior to the permanent deletion of the user account or just as a precautionary step.
As root, you can easily disable a user account by
# usermod –L <username>

Or you can just add an ! in front of the 2nd field (the encrypted [...]

How to create user with password assigned

If you create new users (as root) using
# useradd –m tux

You will have created a newuser with it being disabled.  This means that the password entry (the 2nd column) in the /etc/shadow will have a ! as the entry, i.e.
tux:!:14343:0:99999:7:::