Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36

Thread: New To Linux?

  1. #11
    shn's Avatar Ð3ƒμ|\|(7
    Join Date
    May 2003
    Posts
    3,568
    A few tips.

    It's a good idea to add yourself in the /etc/sudoers file

    Code:
    # User privilege specification
    root    ALL=(ALL) ALL
    shn  ALL=(ALL) ALL
    Once a user has been authenticated, a timestamp is updated and the user may then use sudo without a password for a short period of time (5 minutes by default).

    You can install binary RPMS with sudo command as a local user. You can also run any binary programs that require root priveleges.

    Just add the sudo command to it, like this:

    sudo ./binary-executable

    ----------------------------------------------------------------------------------------------

    If you have many terminals open using the $PS1 variable can help you keep track of them. It also might help you prevent making mistakes as root.

    For example:

    PS1="[\[\033[1;31m\]\u\[\033[0m\]@\h \W]\$ "

    Add the above to your /root/.bashrc file. Every time you are logged in as root, the terminal will display "root" in red.

    The actual color code is "1;31" inside the PS1 variable. The 1 says make it bold, and the 31 says the color (red). Other colors are:

    1;30 Black
    1;32 Green
    1;33 Yellow
    1;34 Blue
    1;35 Magenta
    1;36 Cyan
    1;37 White#white

    -------------------------------------------------------------------------------------------------

    To change the default behaviour of Ctrl-Alt-Del, edit /etc/iniitab and look for ctrlaltdel

    The last parameter is the command to execute when you press Ctrl-Alt-Del

    For example, you can shutdown your machine with:

    ca::ctrlaltdel:/sbin/shutdown -t3 -h now

    -------------------------------------------------------------------------------------------------

    Easy way to set a reminder for yourself, while working in the command line:

    ( sleep 10 && echo -e "Tea is ready\a" ) &

    10 is a number of seconds to wait until the alarm, "-e" argument to echo forces it to see the "\a" sequence, which is an alarm bell.



    Hope I did not miss anything, if so let me know

  2. Software & Hardware   -   #12
    Poster
    Join Date
    Jan 2003
    Posts
    889
    Wow, good ones, I never even knew you could do most of those

    Ok another tip:

    If you have a "winmodem" and want it to work in linux, go to http://www.linmodems.org

    Another one:

    Turn off unneeded services too save memory, they are usually in /etc/inetd.conf and /etc/rc.d/init.d/. In most distros there is a config tool to turn these off too.

    BTW, I'm not sure if thats the config files or not, so if i'm wrong tell me

  3. Software & Hardware   -   #13
    Poster
    Join Date
    Jan 2003
    Posts
    889
    Tip: There is a 'hosts' file just like there is in windows, you can do that same things you can do with the hosts file in windows. It is in /etc/hosts

  4. Software & Hardware   -   #14
    Poster
    Join Date
    Jan 2003
    Posts
    889
    we got pinned

    Tip:You can use 'xkill' to kill a program quickly, just type in xkill in a run box or terminal, then click on the window of the program you want to kill

    Tip:Type in 'ulimit -a' in a terminal to see the limits for the user you are currently logged in as.

    I'll think of some more later

  5. Software & Hardware   -   #15

  6. Software & Hardware   -   #16

  7. Software & Hardware   -   #17

  8. Software & Hardware   -   #18

  9. Software & Hardware   -   #19
    Poster
    Join Date
    Jan 2003
    Posts
    889
    INSTALLING SLACKWARE 9.1

    ^^Wish I had a printer that worked...^^


    Someone else post some tutorials now.

  10. Software & Hardware   -   #20

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •