Hot answers tagged

54

Type this in your terminal system-config-printer


36

When was the machine turned on: uptime Example from my notebook: 20:06:33 up 1:50, 2 users, load average: 0.03, 0.04, 0.05 That is current time, uptime, amount of users and the load average. What programs run: Command line ps -ef|more GUI - System monitor (dash, system monitor): When the computer was resumed or sleep last what ...


30

Richard Holloway's answer is not actually the way PolickKit authorisations are meant to be granted. The files installed under /usr/share/polkit-1/actions are not meant to be modified. Instead, you should modify the authorities under /etc/polkit-1/localauthority/50-local.d. Here's how you do it for this question: Create a file named ...


29

1. I don't have a computer! Indeed! The forgotten masses of Ubuntu! Well, not forgotten here... ;-) The others might wonder, but you and I know: You might not have the big bucks to buy your own computer, but you've got your own personal computer safely tucked away on your USB stick/pen drive/SD Card/external HDD or even just simply your phone/tablet... ...


27

Login as root or su to get root prompt type visudo an editor will open find a line says root ALL=(ALL) ALL add one with your username below that user ALL=(ALL) ALL Type ctrl+x Type Y to the prompt


26

I have solved the issue by creating a new group for limited admin rights... name of that group is LimitedAdmins after that I updated the sudoers file as below. The line I appended is: %LimitedAdmins ALL=NOPASSWD: /usr/bin/apt-get*, /etc/init.d/apache2 restart This is the complete /etc/sudoers file: # This file MUST be edited with the 'visudo' command ...


25

You do not need a workaround, just change the policy to allow you to shut down without authenticating as admin for shutdown and reboot when multiple users are logged in. Edit the file /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy using your favorite text editor. You will need root permissions. Change the section relating to shutdown when ...


22

The purpose of the commands you mention is solely to save disk space. Furthermore, on most machines nowadays the savings would only amount to a tiny fraction of your disk space. So they're not very useful. Most common maintenance tasks are performed automatically by the system. If you're curious about them, the scripts that perform them are in /etc/cron.*. ...


20

If you can live without icons on your desktop, you can disable right click menu entirely through Nautilus' show_desktop option like this: gconftool-2 -t bool -s /apps/nautilus/preferences/show_desktop false Edit: Getting rid only of that menu entry would require patching the Nautilus source. The menu definition is in ...


19

If this is a server I would strongly suggest you alias root to a real email address so you get your email delivered to your administrators It is as easy as adding # Person who should get root's mail root: all_administrators@mydomain.com to the end of /etc/aliases Alternatively you can configure mail to be aliased to your local username and then when ...


19

Run service --status-all to get a list off all the Upstart services and their status. (It basically issues a status command for all the services.)


16

There is a better way. If you have dbus-send installed, you can shutdown via dbus without the need to escalate to root privileges. I can't remember the page where the documentation is, but one Archlinux user figured this out. Shutdown: dbus-send --system --print-reply --dest=org.freedesktop.Hal \ /org/freedesktop/Hal/devices/computer \ ...


16

Each log serves it's own purpose. It really depends on what you're trying to check for. Some common ones are outlined below: /var/log/auth.log - Information pertaining to authentication - including sudo/su activity /var/log/boot.log - All information during the booting process /var/log/crond.log - Information from cron daemon /var/log/messages - Typical ...


16

ntpdate is deprecated as of September 2012; apparently ntpd now has the ability to do one-time updates if needed, and ntpdate is based on "long-neglected" ntpd code. (News to me, since my system has ntpdate but not ntpd! I'll be fixing that presently; thanks for asking this question.) As for the difference between continuous versus periodic updates, I think ...


14

I finally figured out why I was receiving the "usermod: cannot lock /etc/passwd; try again later" error message. The root cause of the issue had to do with the fact that when I booted into Recovery Mode, by default the filesystem was mounted as read-only. Because the filesystem was mounted as read-only, the adduser and usermod commands were not able to ...


13

I would argue that for a standard home installation, there is no need for you to be checking any logs regularly. Though they may be helpful in diagnosing a problem or filing a bug report.


13

4. My computer is my life! The reason you bought the computer in the first place, is... Well, the computer! You tinker, you theme, you customise, you get it just right! But is it right for a back-up? What if that last theme of yours stops you from logging into the desktop? Or that custom kernel you just downloaded freezes grub? How to install Ubuntu: ...


12

HAL seems to be now depcrecated and not installed in latest Ubuntu releases. You must use ConsoleKit and UPower dbus services to manage power state Shutdown: dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop Restart: dbus-send --system --print-reply ...


12

2. My computer doesn't contain my life! You only use your computer to surf the web (Hah! That's backed up!), to e-mail (which is stored somewhere on them Interwebitubes), to Skype the kids, to watch some YouTube and that's it! And you don't have a digital camera, right? And you never copy anything from that digital camera onto your computer (that's a ...


11

By default all members of admin group can use sudo to get root privileges: %admin ALL=(ALL) ALL


11

Here is a list of free and paid control panels that are available for Ubuntu server Free CPanel Alternatives web://cp web://cp was where it all seems to have started for much of the open source world. It was written in php and the aim of it's single developer was to make a good quality control panel. web-cp is an Open Source solution ...


10

3. My computer contains my life! Everything you do, watch, pay, live! is on that thing... What to back up: Everything! Your Phone! Your digital camera! Your tablet! The kid's tablet! (Their level 70 wizard is screaming to be backed up! And if you don't: the kids will be crying their eyes out when that level 70 wizard gets corrupted! ) Back them all up ...


9

I am personaly using a mailer agent called nullmailer. It acts as a mail proxy, and transfers all mails sent to root to a mail address of your choice. You need to set its settings in conf files under /etc/nullmailer. Basically : give it your mail porvider address and credentials, and the adress you want to receive the root emails on. You can install it ...


9

Ubuntu Server Team recommend this 2 option: 1.- OpenSSH Server 2.- eBox is a web framework used to manage server application configuration. The modular design of eBox allows you to pick and choose which services you want to configure using eBox. see details here 3.- in ubuntu server 10.10 ebox was changed with Puppet is a cross platform framework ...


9

Xubuntu For your case you have the Thunar file manager in which case you would use: gksu thunar or gksudo thunar Kubuntu If you had Kubuntu then the File manager would be Dolphin in which case you would use: kdesu dolphin or kdesudo dolphin Ubuntu / Mythbuntu / Edubuntu If you had Ubuntu you would use Nautilus as the File Manager and then would use: ...


9

If you're in the admin group (or the sudo group starting with Ubuntu 12.04) but that group isn't configured in /etc/sudoers to be able to run commands as root with sudo, you can fix that problem the same way you'd fix a broken sudoers file: pkexec visudo Then just edit the sudoers file to add whatever entries you need. In particular: Ubuntu systems ...


8

SSH via a password is less secure than SSH with a DSA/RSA certificate. Create a certificate with a password. Then give the sys admin account a different password. You will only be able to login via SSH if you have the certificate AND know the password associated with it. You can then use a different password for running sudo (the user's password). This ...


8

The Ubuntu Server Guide(PDF) is free and written by the Ubuntu developers.


8

You can use the last command to check on boot times, reboots, suspends/resumes.



Only top voted, non community-wiki answers of a minimum length are eligible