Jump to content

riv123

[05] MEMBER III
  • Posts

    202
  • Joined

  • Last visited

Posts posted by riv123

  1. To removal ALL the files and not any subdirectories in /dest type the following

    find /dest -type f -delete

     

    To removal only the files and ot any subdirectories in /dest type the following:

    find /dest -maxdepth 1 -type f -delete

     

    The -delete option will only work on the modern Unix like systems. For older systems try shell loops or pipes or pipes via xargs

    find /dest -type f -print0 | xargs -I{} -0 rm {}

  2. Simple script to list all active and system users.

     

    ------------------------[cut]------------------

    #!/bin/bash

    _l="/etc/login.defs"

    _p="/etc/passwd"

     

    ## get mini UID limit ##

    l=$(grep "^UID_MIN" $_l)

     

    ## get max UID limit ##

    l1=$(grep "^UID_MAX" $_l)

     

    ## use awk to print if UID >= $MIN and UID <= $MAX and shell is not /sbin/nologin ##

    echo "----------[ Normal User Accounts ]---------------"

    awk -F':' -v "min=${l##UID_MIN}" -v "max=${l1##UID_MAX}" '{ if ( $3 >= min && $3 <= max && $7 != "/sbin/nologin" ) print $0 }' "$_p"

     

    echo ""

    echo "----------[ System User Accounts ]---------------"

    awk -F':' -v "min=${l##UID_MIN}" -v "max=${l1##UID_MAX}" '{ if ( !($3 >= min && $3 <= max && $7 != "/sbin/nologin")) print $0 }' "$_p"

     

    -----------------------[stop]-----------------

  3. Did you know?

     

    history or fc -l commands can show your bash command line history or recall the history stored in ~/.bash_history file. You can make history to ignore the commands if it begin with a space:

    w

    history

    fc -l

     

    ## run who command with a space ##

    export HISTIGNORE="[ \t]*"

    who

    history

     

    The HISTIGNORE shell variable controls which command lines should be saved (i.e. ignored) on the history list. To ignore duplicate commands in history, enter:

    export HISTIGNORE="&"

     

    You can define a colon-separated list of patterns to ignore ls command, duplicate commands, and ignore the commands if it begin with a space, enter:

    export HISTIGNORE="ls:&:[ \t]*"

    history

    ls

    date

    date

    cal

    history

     

    As a sys admin you may want to ignore the frequently used commands such as - ls, pwd, cd, mount, umount, clear, exit, and much more from your history.

    export HISTIGNORE="ls:&:[ \t]*:cd:mount:umount:clear:exit:pwd:date"

     

    See bash man page for more info:

    man bash

    help history

  4. Just rebooted the box? Get notified when it comes back online with audio alert using old good ping command :)

     

    ping -a YOUR_IP_HOST_NAME

     

    You may want to add the wait delay using the -i and count using the -c for avoiding panic mode

     

    ping -i 30 -c 10 -a YOUR-IP-OR-HOST-HERE

     

    The above will check server 10 times with 30 seconds wait between sending icmp packets. The -a well give audio when packet received.

  5. B) im using linksys wrt 150n...pero just recently di ko alam why ayaw na lang mag work...umiilaw naman siya pero not working yung wi-fi...pero pag naka direct na LAN eh meron naman...any suggestions...sidenote: may nag aayos ba ng router...4k kasi router na ganito eh...mahal masyado...hehe... B)

     

    Nasubukan mo nang i-hard reset?

     

    CHEERS!!!

  6. Guys I need your help very badly. My HDD crashed. Hindi na ma-detect yung hard disk. Baka meron kayong alam na nagre-recovery ng files. Baka meron kayong kilala nagre-recover ng files kahit dead na ung hard disk. Please please I need you help guys. Thanks in advance.

     

    Kung detected ng BIOS ang HDD and na observed mo na umiikot ang platters, pwede mo pa sya i-recover. HTH

     

    CHEERS!!!

  7. changing the channel helps because other electronic devices such as cordless phones, garage door openers, baby monitors, and microwave ovens, may use the same frequency range. Any such device can interfere with a wireless network, slowing down its performance and potentially breaking network connections - tonting29 mentioned his neighbor was using channel 6 - that's why i suggested changing it to 11. If encountering interference with a neighbor's WLAN, change to a distant channel. Both channels 1 and 11 do not overlap with the default channel 6; use one of these three channels for best results. and in your case when you changing it to 8 worked for you because it is more distant from the current channel used in your area hence the lesser the degree of overlap and likelihood of interference.

     

    but then apparently the problem was with the device..happy surfing tonting29 :lol:

     

    ahhh.....

     

    ok, thanks sa info :thumbsupsmiley:

     

    (i use inSSIDer to check for available channels :hypocritesmiley: )

     

    CHEERS!!!

  8. try this...

     

    Start Regedit

    Go to HKEY_CURRENT_USER\Control Panel\Desktop

    Edit the key PowerOffActive and give it a value of 1

     

    or try updating the bios

     

    or Right click Computer, Properties, Advanced tab, Settings button under Starup and Recovery, uncheck Automatically Restart. - check if you get an blue screen error

     

     

    just check the registry if it shows the same values...or try to disable all your start up programs

     

     

    Thanks for the advise, unfortunately, hardware problem pala ang problem.

     

    CHEERS!!!

  9. just check the registry if it shows the same values...or try to disable all your start up programs

     

    Ok, this is a new install... I have already updated to the latest BIOS after talking to HP customer care.

     

    I believe the w7 activator modifies the BIOS so think this is an issue. Downloading Vista Home Premium OEM iso and will downgrade this lappy and see if the issue will go away.

     

    @SamanthaJones - Thanks!

  10. Hello everyone, I need your expert opinion on my laptop's issue:

     

    The laptop would work/start fine and I can surf, work and everything on this laptop. Problem starts when I shutdown via windows shutdown computer procedure. The laptop will go to the process of shutting down BUT it will restart by itself as if somebody pushed the power botton. This machine used to have Vista and I have upgaded this to Win7 thinking the issue will be resolved but unfortunately it didn't.

     

    Specs:

     

    HP Pavillion DV6353a

    AMD-based

     

    Has anybody encountered same problem?

     

    Opinions?

     

    CHEERS!!!

  11. Hello everyone, I need your expert opinion on my laptop's issue:

     

    The laptop would work/start fine and I can surf, work and everything on this laptop. Problem starts when I shutdown via windows shutdown computer procedure. The laptop will go to the process of shutting down BUT it will restart by itself as if somebody pushed the power botton. This machine used to have Vista and I have upgaded this to Win7 thinking the issue will be resolved but unfortunately it didn't.

     

    Specs:

     

    HP Pavillion DV6353a

    AMD-based

     

    Has anybody encountered same problem?

     

    Opinions?

     

    CHEERS!!!

  12. I had Debian running on an ml 350 dati. There should be an extra scsi card in there and the raid setting should be accessible by ctrl-c when the controller initailizes. The server I worked with used and LSI controller.

     

    The last IT person here who I caught sharing torrents online got canned. hehehe

     

    Just a survey guys. It seems most of the people posting here are IT people. Is there a market for a hosting business there in PI? Infrastructure and as service. Basically we will build the data center infrastructure and the prospect client can rent the blades for a monthly fee. Our engineers will maintain the blades and the network. Pero mandatory sa amin dada-an yung traffic. And of course that's another fee.

     

    Are you talking about cloud computing?

     

    CHEERS!!!

  13. I used the xp pero it eatens up the memory and make the netbook work so sloooow.

     

    Have you tried TinyXP?

     

     

    Yes, its the Linux Lite, though I AM REALLY NOT FAMILIAR WITH LINUX.

     

    I am happy with Linux and gusto kong i install yung ibang pc ko ng linux na lang here para naman mas mabilis at hindi pasukin sa virus, in my observation as an easy and non techie user. :)

     

     

    Sana, i can make the sun broadband plug-in work in Linux. :)

     

    para sa mga low-powered PC, check this thread http://manilatonight.com/index.php?showtop...288&st=1440

     

    na check mo ba yung model number ng broadband? Huawei ba?

     

    pwede kitang tulungan sa installation, just PM.

  14. I'm in baguio right now looking for a scsi drive. pambihira, per order basis raw talaga kahit pumunta pa ako ng manila to pick it up. you're given me an idea actually, tangalin ko na lang etong mga scsi drives and put in a sata drive instead. masmura pa. hahahaha..

     

    actually, nagtataka ako why the "IT" opted for scsi drives. I'm in the same dilemma as you where I can't format it because of the data. sayang, tig-80 gb pa naman per drive (with the third drive not functioning). temporarily nakainstall ang suse enterprise on an IDE drive

     

    ---------

     

    on a side note, I browsed the backup scsi drive because I was wondering what sort of data would occupy 94% space. nandun ang mga backup files along with a big folder labelled voltron: defenders of the universe. leche, ginamitan pa ng torrent etong unit.

     

    mas reasonable yung decision mo.

     

    built-in ba yung scsi controller?

     

    voltron? elementary ba nag-manage nyan? hehehe

    pish!

     

    CHEERS!!!

×
×
  • Create New...