Sign In

    Enjoy FOSSwire's content? Have it delivered! Subscribe

    Dim the screen at dark

    Are there times of the night that you find yourself adjusting your screen brightness lower, either to help your eyes or not bother someone else? It can be annoying have to tweak brightness settings all of the time. We'll show you how to set your brightness automatically during the night. Read on.

    To start, you need to have a laptop or a display that supports software brightness configuration. You'll also need to make sure that your GNOME brightness settings are working. (KDE fan? Submit a relevant article.) Also, take note that if your system is not on when brightness settings change, they will not be updated.

    Now, pop open a terminal to edit your crontab:

    crontab -e
    

    Now you'll want to add some time and brightness settings. Use this as a template:

    0 22 * * * gconftool-2 --type int --set /apps/gnome-power-manager/backlight/brightness_ac 10
    0 7 * * * gconftool-2 --type int --set /apps/gnome-power-manager/backlight/brightness_ac 100
    

    The first line will set the brightness value to 10% at 22:00; the second sets it to full brightness at 07:00. Note that these are not hardware brightness values, but power manager values that scale from 0 to 100. You can add as many lines as you want. If you're proficient in your crontab syntax, then you can even use settings that only apply on weekends or weekdays.


    Video Tutorial - Getting Started with GNU Screen

    Peter Upfold takes a look at GNU Screen and gives a tutorial on how to use its multi-session capabilities, as well as renaming your sessions and using detaching and re-attaching.

    Using GNU Screen on a Remote Machine

    Cables - source http://www.sxc.hu/photo/496858

    I recently posted about using nohup to run a command, particularly on a remote machine, that keeps running even when you close the terminal or connection that started it.

    Several people in the comments there also suggested GNU Screen for a similar purpose.

    So, what is Screen? It describes itself as:

    ... a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.

    Basically, among other things, it can create multiple 'virtual terminals' that run inside a single physical terminal or connection, and offers you additional features, such as resuming sessions later and basic copy and paste.

    What we're interested in in the context of my other post is running commands in the background on remote machines, so I can start a command running, disconnect from SSH, but the command will stay running.

    Screen, unlike Nohup, will allow me to come back later and interact directly with the terminal that I started, not just dump the results of a command to a file.

    On your remote machine, start the program:

    $ screen

    You'll get a brief copyright notice and such, just press Space as directed. You are now running Screen (although it won't look any different to a normal terminal session by default).

    Now, feel free to go off and start that important task. Once it's up and running, press Ctrl+A, then Ctrl+D. Screen sends you back to your shell and you can now disconnect.

    Later, when you want to come back, run:

    $ screen -r

    Your old session is restored! Anything you started should still be running.

    Screen is a lot more powerful than just offering this feature, however, but we'll save the rest for another day.

    Finally, when you are actually done with a Screen session for good, quit it by pressing Ctrl+A, then Ctrl+\ or you can simply type exit into the terminal as normal.

    [image source]