Tag Info

Hot answers tagged

9

shutdown -r now would do restart. shutdown -h now will halt/shutdown the system. In Ubuntu's case, you can use reboot or halt, etc. They all invoke the shutdown command. man reboot may help.


4

You can use this command: <your_app> & disown In this case: google-chrome & disown Source In the bash shell, the disown builtin command is used to remove jobs from the job table, or to mark jobs so that a SIGHUP signal is not sent to them if the parent shell receives it (e.g. if the user logs out).


3

You're on the right track: I would also have one user watching the other. If top doesn't give you the output you want I would use ps aux in an infinite loop with a 1 second delay. #!/bin/bash # Example script for watching a logging off user # This script is an answer to ...


3

This answer by Radu gives you a complete overview of how to execute particular script upon logout or shutdown. What you can do is create the script like this #!/bin/bash ps -u username > /home/yourusername/outputfile.txt Then sudo chmod +x scriptname and add line session-cleanup-script=/path/to/script to /etc/lightdm/lightdm.conf As for shutdown . ...


1

Use the following to list all the processes of any particular user: $ ps -fu "username" For example: $ ps -fu foobar To save it in a file: $ ps -fu foobar > ~/ps_foobar Here is a one liner that can be used via cron or any other repitition mechanism: [[ $(ps -u foobar | wc -l) -gt 1 ]] && echo "user foobar has process running" || echo ...


1

You can run htop from one of the tty consoles so that you can log a user out of an xsession but still maintain an open terminal (htop is better than top and easier to read). CTRL + ALT + F2 You can login a text session under a different username from there and then, use: sudo htop to start it up. Use F6 and then scroll up to USER using the arrow button ...


1

I think the problem is in your video card try sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo EDIT: Try: sudo apt-get install libcheese* sudo apt-get install xorg-video-abi-15 sudo apt-get install fglrx-updates


1

For Ubuntu 14.10 you something like RC04 not RC99 What to do from scratch Create a script at /etc/init.d/scriptName Link via ln -s /etc/rc6.d/K04scriptName /etc/init.d/scriptName Steps I went through I tried unsuccessfully to use Ubuntu - Executing a script at startup and shutdown I found Ubuntu 14.10 shutdown script with rc0.d (rc6.d, rc.d) I ...


1

I had the same problem with Kubuntu 14.10. My solution was: I changed this line in file /etc/default/grub to look like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash init=/lib/systemd/systemd" After that, I ran sudo update-grub in a Terminal Now the system shuts down again...:-)



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