Jump to content

aioshin

Members
  • Posts

    816
  • Joined

  • Last visited

Posts posted by aioshin

  1. I think its possible to know what applications they're running on the ssh server by viewing the process by "ps auxf"

    .

    see:

    the command who displays who's logggin in on the server.

    marjielen :0 - log on locally

    marjielen pts/1 - log on from remote

    #who

    marjielen :0 Feb 21 07:44

    marjielen pts/1 Feb 21 11:32 (172.16.0.37)

    now, by the command "ps auxf" it will display all the process that runs... below, marjielen pings the ip 20x...

    now, if you want to kick marjielen .. you can just kill the pid 5832 (second row) as root

    #kill 5832

    .

    .

    .

    root 5037 0.0 0.6 4108 1624 ? Ss 07:44 0:00 /usr/sbin/sshd

    root 5827 0.0 0.7 6776 1976 ? Ss 11:32 0:00 \_ sshd: marjielen [priv]

    500 5832 2.1 0.9 7092 2296 ? S 11:32 0:10 \_ sshd: marjielen@pts/1

    500 5839 0.0 0.7 3224 1928 pts/1 Ss 11:32 0:00 \_ -bash

    500 5975 0.0 0.2 1700 508 pts/1 S+ 11:39 0:00 \_ ping 20x.7x.1xx.x

    below displays that marjielen has been using mozila-firefox

    500 5832 2.1 0.9 7240 2308 ? S 11:32 0:10 \_ sshd: marjielen@pts/1

    500 5839 0.0 0.7 3224 1928 pts/1 Ss 11:32 0:00 \_ -bash

    500 5993 0.1 0.6 3052 1620 pts/1 S+ 11:40 0:00 \_ /bin/sh /usr/bin/mozilla-firefox

    I think sessions thru ssh can't be seen if you sniff its packets from a network using something like ethereal, but if you are inside the ssh server, you can see what applications they are using from remote

    [well, just correct me if I'd say something not correct..]

  2. Does this mean it updated everything? or is it saying this because it thinks it updated because I shut down. Thanks!

    it means, it added those mentioned repositories already, the first time you issued those commands fromeasy urpmi..

    .

    now

    .

    just try to update your urpmi repos, as root issue command in your konsole:

    #urpmi.update -a -v

    .

    -a - it will update all repos..

    -v verbose... shows whats happening

     

    :P

  3. sorry, have'nt tried it (with-out password) so you have to try it yourself... password are case sensitive.

    .

    I think you dont have to put a collon after administrator if you dont have one, but if it'll not work, you might also try to assign a password on that admin user.. try every possible option you have

  4. hmmm...

    there's a part there that says unable to connect to samba host (which is the windows holding the printer)

    .

    below is my /etc/cups/printer.conf file

    # Written by cupsd on Mon Jan 2 11:32:52 2006

    <DefaultPrinter printer-name-on-linux>

    Info APPLE LaserWriter 16/600 PS

    Location windows-pc

    DeviceURI smb://username-on-windows:password@workgroup/network-name-of-windows-pc/shared-printer-name

    State Idle

    Accepting Yes

    JobSheets none none

    QuotaPeriod 0

    PageLimit 0

    KLimit 0

    </Printer>

    try to edit yours, try to check the device URI portion

    .

    make sure that the username-in-windows really exist on windows pc, to make sure, you can try to use the administrator and its password.

    .

    then restart cups

  5. ok try the menu-system-configuration-configure your desktop-peripherals-printers-then click on administrator mode---enter root password

    .

    add printer class - next - smb shared printer - user Identification - then select the normal account and enter the Administrator account on windows.

    .

    next - smb printer settings, don't scan the network, enter the workgroup assigned to that windows PC, server - IP add of the windows PC, Printer - shared name of the printer on windows PC - next then select the manufacturer......(were you able to reach this part?)

    .

    try to use the Windows Admin user and password so you have full control with regards to adding the printer...

    .

    also don't forget the Administrator Mode option

    .

    I'm just not sure if the printer you have there has the linux equivalent driver on cups...

  6. [root@localhost scythe]# /etc/init.d/cups restart

    Stopping CUPS printing system: [ OK ]

    Starting CUPS printing system: [ OK ]

    the above means that cups started sucessfully, so you may try to do your goal now, configure cups so you can print on your printer connected to your windows machine and lets see what will happen...

    and by the way, try to do the command below for the following services not to load when you reboot

    as root

    #chkconfig --level 5 nfslock off

    #chkconfig --level 5 portmap off

    and

    [root@localhost scythe]# chkconfig --list | grep cups

    cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off

    cups-lpd: off

    as you can see, the 5:on means that cups will start when your desktop or X start

  7. I've tried it on another pc that uses LE2005 and the same problem encountered, it will not auto un-mount after the defined --timeout, its using the default kernel of LE2005. I also tried my own desktop to boot on its default kernel but also will not work.

    .

    what could be the problem with this?

    .

    googling and googling and googling........

  8. @steve

    .

    thanks for the info, I honestly, I did'nt know of that.. so I installed nail on Mandriva, but it does not have a mailx command, instead, it still uses nail...

    .

    @paul

    thanks, the command works

    echo "test" | nail -s test -a file-to-be-attached.tar.gz aioshin@yahoo.com

    .

    ok, I have'nt installed nail on my Centos since when I tried to do a yum list, it did'nt find anything on "nail" that will do the same job... but on other forum, I found email, a command line email client that can attach any file similar to nail... the website.. http://email.cleancode.org/?pid=download

    .

    just have to edit a little the /etc/email/email.conf, then

    [root@fileserver ~]# email -s "test" -b -f user-sending -q -a file-2-attach.tar.gz aioshin@yahoo.com

    Sending "test" |*******************************************************************************

    ******| 100% of 54 KB

    E-Mail Sent

    or with a -q to supress the sending status

    .

    anyway, its now solved.

    .

    my reason of doing this is to backup some files and email it to a certain address.

    .

    Thank you! :thanks:

  9. mailx -s "my subject" -F /path/to/file.name me@email.address

     

    if you want to add some plain text .. try this

     

    sh /command/that/outputs/text | /bin/mailx -s "Subject" -F file.name me@email.address

    or

    echo "Here is some plain text" | /bin/mailx -s "Subject" -F file.name me@email.address

    thanks paul... but when I follow the above commands, this is what I get...

    [root@fileserver ~]# mailx -s "see attached file" -F testfile.tar.gz aioshin@yahoo.com

    -bash: mailx: command not found

    .

    [root@fileserver ~]# slocate mailx

    /usr/share/man/man1p/mailx.1p.gz

    .

    [root@fileserver ~]# rpm -qal | grep mailx

    /usr/share/man/man1p/mailx.1p.gz

    that was invoke on my Centos box...

    .

    I also tried it on Mandriva

    [ken@nixbox ~]$ mailx

    bash: mailx: command not found

    [ken@nixbox ~]$ man mailx

    No manual entry for mailx

    [ken@nixbox ~]$ slocate mailx

    /usr/share/mailx

    /usr/share/mailx/mail.tildehelp

    /usr/share/mailx/mail.help

    [ken@nixbox ~]$

    I tried to query info at mandriva MCC and the description of mailx is..

    Name: mailx

    Version: 8.1.1-24mdk

    Size: 89 KB

    .

    Summary: The /bin/mail program, which is used to send mail via shell scripts.

    .

    Description: The mailx package installs the /bin/mail program, which is used to send quick email messages (i.e., without opening up a full-featured mail user agent). Mail is often used in shell scripts.

    .

    You should install mailx because of its quick email sending ability, which is especially useful if you're planning on writing any shell scripts.

    .

    Files:

    ‎/bin/mail

    ‎/etc/mail.rc

    ‎/usr/bin/Mail

    ‎/usr/share/mailx

    ‎/usr/share/mailx/mail.help

    ‎/usr/share/mailx/mail.tildehelp

    ‎/usr/share/man/man1/Mail.1.bz2

    ‎/usr/share/man/man1/mail.1.bz2

    so I should have to use "/bin/mail instead of mailx, but mail does'nt have an attache option..

    .

    any idea?

    .

    TIA

  10. according to cups FAQ

    http://www.linuxprinting.org/cups-faq.html#q_4_2

    4.2 cupsd: Child exited with status 98!?

     

    Another process is using the port that cupsd listens to (default 631). It might be the rpc.rquotad deamon. Either disable this deamon or make sure cupsd starts before nfs.

    so to disable the ff:.. if you dont use nfs service.. try as root

    #/etc/init.d/nfs stop

    #/etc/init.d/portmap stop

    #/etc/init.d/nfslock stop

    then restart cups by

    #/etc/init.d/cups restart

    and try again

  11. When I try to configure Samba, it tells me that "localhost" is not a proper DNS name and that I need to readjust it. Where can i adjust the name and what would be a proper FQDN (Fully Qualified Domain Name)?

    You only need to configure Samba if you want to share the printer and files from your linux pc, and since your goal is to have access on printer that has been shared on your windows PC, what you need to be installed and Configured in your linux PC is CUPS.. as with my previous reply, the thread I mentioned is similar to your issue... to have access on a printer connected to windows PC from Linux PC.

  12. its easier if you install gaim that came from your distro... if you have mandriva, you can install it via MCC - software or from konsole as root

    #urpmi gaim

    .

    its easy because you dont need to manually install those dependencies, the system will automatically select it then will just inform or prompt you to install it, a yes or no....

×
×
  • Create New...