Tag Info

Hot answers tagged

34

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

Type as below sudo system-config-printer


26

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 ...


21

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.*. ...


19

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 ...


17

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 ...


16

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 ...


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 ...


13

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.)


13

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 ...


12

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.


11

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


10

To manage multiple machines from a central computer, you could try learning a system management platform such as Puppet. It allows you to manage multiple machines (puppets) from one main machine (puppetmaster). Depending on your scenario it might be a bit overkill, but it is an excellent tool to manage many machines from a central point of control. It also ...


10

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 ...


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

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 ...


9

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


8

Following up on the comments above: Because the admin group doesn't exist on your system we are assuming you are running 12.04. To be able to administer your system with 12.04 you need your user-id to be in the sudo group. I was able to add a user-id to the sudo group as follows. Reboot using grub and select an entry for recovery mode. Select the "root" ...


8

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


8

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 ...


8

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 ...


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

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 ...


8

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


7

Well about 99% of all commands are shared between all Distros. This you must have very clear. With this I mean that what you learn in Red Hat, Fedora, Open Suse, Linux Mint, Debian, Gentoo and others, you have a VERY HIGH chance that you can use them in Ubuntu and Vice Versa. With this said, any place that teaches you some command (Like ls, cat, grep, ...


7

I recomend 2 gui-programs to you: bleach bit ubuntu tweak. bleach-bit is the "ccleaner"-equivalent for linux, so you can figure what it can do: sudo apt-get install bleachbit from console to install. ubuntu tweak is kinda a "tweak-ui"/software center/gconf/etc what we are interested here is the "package cleaner" option: To install ubuntu-tweak: ...


7

You can use recovery mode to add the standard user to the admin group (which is now called sudo in 12.04). Below is a set of simple instructions copied from my personal website. Using Recovery Mode To Add Users To The Admin / Sudo Group First shutdown your computer. Then restart whilst holding shift on the keyboard to load grub menu. Select recovery ...


7

Which dconf keys are used To know which keys are changed in dconf, you can use dconf watch / while changing settings. In this case, you'll see something like : /org/gnome/settings-daemon/plugins/power/sleep-display-ac 1800 /org/gnome/settings-daemon/plugins/power/sleep-display-battery 1800 /org/gnome/desktop/session/idle-delay uint32 1800 Then, ...



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