Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 [Help!] Ubuntu Problems, everything related to ubuntu goes here

views
     
oshiri
post Aug 21 2008, 07:52 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Is there by any chance you are using both wired and wireless at the same time?
I meant, your wired cable still plugin while trying access using wireless. That will not work..

Like I said before, those automatic tools sometime can cause problem.
Let's do the old skool.

Test first:
Disable automatic tool (some call zeroconfig) usually some avahi module, resolvconfig and network-manager.
From you screenshot, it's network-manager.
Kill all this services:
1. killall -9 dhcdbd
2. killall -9 NetworkManager
3. killall -9 NetworkManagerDispatcher

Edit /etc/resolv.conf :
CODE
nameserver 202.188.0.133
nameserver 202.188.1.5


Now edit your /etc/network/interfaces so it will look like this:
In this example, we disable the wired network so it will not clash with wireless.

Test 1
1. Dynamic ip
CODE
auto lo wlan0
iface lo inet loopback
iface wlan0 inet dhcp


Restart network: /etc/init.d/networking restart


Test 2
2. Static ip
CODE
auto lo wlan0
iface lo inet loopback

iface wlan0 inet static
       address 10.0.0.21
       netmask 255.255.255.0
       network 10.0.0.0
       broadcast 10.0.0.255
       gateway 10.0.0.1


Restart networking: /etc/init.d/networking restart

Check ifconfig to see wlan0 get ip.

See if you can connect to internet.

If the above works, you better off without network-manager. Remove/uninstall network-manager and dhcdbd. So does resolvconfig.

This post has been edited by oshiri: Aug 21 2008, 07:59 AM
oshiri
post Aug 21 2008, 11:11 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Haiya ...
You need to edit using root or sudo in Ubuntu.

sudo gedit /etc/network/interfaces
oshiri
post Aug 21 2008, 12:05 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Have you check what is inside /etc/resolv.conf after restarting networking?

It should be ok with the static ip setup.

Using static ip setup, run this as root:

sudo echo "nameserver 202.188.0.133" > /etc/resolv.conf

Then try ping google.

This post has been edited by oshiri: Aug 21 2008, 12:11 PM
oshiri
post Aug 21 2008, 01:11 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
QUOTE(scorps @ Aug 21 2008, 12:41 PM)
how to run that as root aa??how??
*
When I said root.... it means sudo in Ubuntu.
Just copy and paste that command in your terminal.
oshiri
post Aug 21 2008, 01:44 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
That's wierd.
You should by now be able to ping outside.
I'm out of idea.

Have you test this in windows?

check your modem----wireless router setup
Is your modem is pure modem or router with builtin modem? Because router with builtin modem need to change to bridge mode first in order to use wireless router. I think you already know this.

If your wireless router using linux, you could telnet into it and do some testing, ping for example.

This is how I test in my router:
CODE
$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.

BusyBox on (none) login: root
Password:
DSL Modem CLI
Copyright (c) 2004 Texas Instruments, Inc.
cli> shell

Starting /bin/sh
Type exit to return to the CLI


BusyBox v0.61.pre (2005.03.18-16:07+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# ping -c 4 google.com
PING google.com (72.14.207.99): 56 data bytes
64 bytes from 72.14.207.99: icmp_seq=0 ttl=235 time=410.0 ms
64 bytes from 72.14.207.99: icmp_seq=1 ttl=237 time=400.0 ms
64 bytes from 72.14.207.99: icmp_seq=2 ttl=237 time=400.0 ms
64 bytes from 72.14.207.99: icmp_seq=3 ttl=235 time=400.0 ms

--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 400.0/402.5/410.0 ms
# exit
cli> exit
Connection closed by foreign host.





oshiri
post Aug 22 2008, 11:54 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Let's do manually:

For testing only:
Edit /etc/samba.smb.conf (sudo gedit /etc/samba/smb.conf)

CODE
[global]
workgroup = MSHOME   #This workgroup must be the same as what you set in windows pc ans all other samba pc
server string = Scorps Samba Server # put whatever you like
map to guest = Bad User
restrict anonymous = no
guest ok = yes
domain master = no
preferred master = no
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto
security = user  
log level = 2
log file = /var/log/samba.log



[My_Home_Folder]
path = /home/scorps  # change this to the path/folder you want to share
comment = home files
read only = No
guest ok = Yes  # to allow anonymous access, in Debian/Ubuntu, user nobody will be used as guest.



Testing:
1. local
List share folder:
Just enter when asked for password because we allow anonymous access.
CODE
$ smbclient -L localhost
Password:
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.24]

       Sharename       Type      Comment
       ---------       ----      -------
       My_Home_Folder  Disk      home files
       IPC$            IPC       IPC Service (Scorps Samba Server)
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.24]

       Server               Comment
       ---------            -------
       OSHIRIX              Scorps Samba Server

       Workgroup            Master
       ---------            -------
       MSHOME


Login to shared folder:
CODE
$ smbclient //localhost/My_Home_Folder
Password:
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.24]
smb: \> pwd
Current directory is \\localhost\My_Home_Folder\
smb: \> quit



2. Test remote
Do the same but change localhost to ip of remote pc.
If failed, try access windows shared using user/password of the windows login.
smbclient -L "ip" -U "username windows"
smbclient "ip"/"shared folder" -U "username"

and enter the password.

Other test can be done using Nautilus (gnome) or Koqueror (kde).
Just put on the url bar:
smb://"ip"
or
smb://username:password@"ip"

* On XP Pro, you need a login account. Some user use XP Pro without login account. This will not work with Samba.

oshiri
post Aug 22 2008, 01:38 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
1. Pleae paste your /etc/samba/smb.conf
2. Pelase paste output of : tail /var/log/samba.log
3. Please paste output of: testparm


oshiri
post Aug 22 2008, 02:41 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Try with my basic smb.conf. Adjust a bit.

Once you got it working then it is up to you to do the advance config.
For the time being...just make it simple.

Don't forget to restart samba once you finish editing.
/etc/init.d/samba restart

oshiri
post Aug 22 2008, 04:16 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Ip it trying to connect is suspicious. Probably you didn't declare localhost in /etc/hosts.

Try : smbclient -L 127.0.0.1

oshiri
post Aug 22 2008, 04:29 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
QUOTE(scorps @ Aug 22 2008, 04:24 PM)
CODE
scorps@scorps-laptop:~$ smbclient //localhost/My_Home_Folder
timeout connecting to 203.106.203.238:445

scorps@scorps-laptop:~$ smbclient //127.0.0.1/My_Home_Folder
Enter scorps's password:
Domain=[SCORPS-LAPTOP] OS=[Unix] Server=[Samba 3.2.1]
smb: \> pwd
Current directory is \\127.0.0.1\My_Home_Folder\
smb: \>


ok then??
*
Then?? hehe
Try access your xp/windows la using ip.
If it does not work or complains about permission...remember to use -U
oshiri
post Aug 22 2008, 06:39 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
QUOTE(scorps @ Aug 22 2008, 05:14 PM)
ok ..

let see this..
CODE


scorps@scorps-laptop:~$ smbclient //127.0.0.1/My_Home_Folder
Enter scorps's password:
Domain=[SCORPS-LAPTOP] OS=[Unix] Server=[Samba 3.2.1]
smb: \> pwd
Current directory is \\127.0.0.1\My_Home_Folder\
smb: \> quit
scorps@scorps-laptop:~$ smbclient -L //10.0.0.47/pc02
Enter scorps's password:
Domain=[PC02] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename       Type      Comment
---------       ----      -------
E$              Disk      Default share
IPC$            IPC       Remote IPC
D$              Disk      Default share
print$          Disk      Printer Drivers
SharedDocs      Disk      
D               Disk      
G$              Disk      Default share
F$              Disk      Default share
E               Disk      
F               Disk      
Printer2        Printer   Microsoft Office Document Image Writer
ADMIN$          Disk      Remote Admin
C$              Disk      Default share
Printer         Printer   Send To OneNote 2007
session request to 10.0.0.47 failed (Called name not present)
session request to 10 failed (Called name not present)
Domain=[PC02] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server               Comment
---------            -------

Workgroup            Master
---------            -------
scorps@scorps-laptop:~$


and now, how can i get access to that shared folder??
i go to network, go to workgroup ,
but nothing inside there,...


Added on August 22, 2008, 5:22 pmwell,
i can access my shared folder on ubuntu using winxp machine,
so the setup is correct laa??

but why i can't access file on winxp using ubuntu???
my firewall turn off  hmm.gif  rclxub.gif
*
When you said you go to network---workgroup ...so on, it does not come to my picture as I'm not using Ubuntu or any gui to access samba shares.
I just guiding you using cli.

Ok, have you tried accessing shared folder on xp?
smbclient //10.0.0.47/SharedDocs or whatever shared folder listed in smbclient -L
try list file when you are inside smb prompt
smb: \>ls

If you can list all the files...then everything is ok.

Try use nautilus to access: smb://10.0.0.47

You probably need to create mount point for shared folder on windows in local system incase you want to use other filemanager or doing things directly.
example:
Create mount point:
CODE
sudo mkdir -p  /media/samba


Mount samba share on xp:
CODE
sudo mount -t smbfs //10.0.0.47/SharedDocs /media/samba


Then list files that have been mounted: ls /media/samba or use your file manager and point to /media/samba to view what's inside.

or better using cifs rather then smbfs because smbfs almost obselete and slow compared to cifs (both need kernel support):
CODE
sudo mount -t cifs //10.0.0.47/SharedDocs /media/samba


oshiri
post Aug 23 2008, 02:39 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Can't help you with gnome interface. I read somewhere it was somthing to do with gnome vfs bug.

But what I have gave you should be sufficient to mount and view/do everything in gui (filemanager....editor ..etc).

Have you done those 2 command I gave?
CODE
sudo mkdir -p  /media/samba
sudo mount -t cifs //10.0.0.47/SharedDocs /media/samba

You should be able to view your SharedDocs in nautilus.

That command can be made permanent if you put it in /etc/fstab:
ex:
CODE
//10.0.0.47/SharedDocs cifs rw,username=xxxx,password=yyyy 0 0


or you can hide your username or password using credential file.
ex:
CODE
//10.0.0.47/SharedDocs cifs rw,credential=/root/sambapass 0 0

where file /root/sambapass has:
username=xxxx
password=yyyy
oshiri
post Aug 24 2008, 09:02 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
QUOTE(CONANDOR @ Aug 24 2008, 02:12 AM)
firefox generate so much heat? other heavy processor usage programs cuase it

but the my laptop dell xps m1210 is famous of heat issue... sad.gif

[attachmentid=568851]
*
Have you tried i8kutils for DELL?
It's in apt repositories.
I read somewhere it can overcome problem with your laptop's model.
You can use this tools to access Dell's bios directly to control your fan and others.
Your kernel need i8k module to make it work. I believe Ubuntu's kernel already implement it.

You can check using this command:
CODE
$ modinfo i8k
filename:       /lib/modules/2.6.26-oshirix-wanted/kernel/drivers/char/i8k.ko
author:         Massimo Dal Zotto (dz@debian.org)
description:    Driver for accessing SMM BIOS on Dell laptops
license:        GPL
vermagic:       2.6.26-oshirix-wanted SMP preempt mod_unload modversions 586
depends:
parm:           fan_mult:Factor to multiply fan speed with (int)
parm:           power_status:Report power status in /proc/i8k (bool)
parm:           restricted:Allow fan control if SYS_ADMIN capability set (bool)
parm:           ignore_dmi:Continue probing hardware even if DMI data does not match (bool)
parm:           force:Force loading without checking for supported models (bool)


Try load the modules using:
modprobe i8k force=1

To load module everytime you boot, do this:
echo "i8k force=1" >> /etc/modules

Then use the command included in that tools to control what ever you desire.
Or you can use gkrellm-i8k to monitor and control.

more on i8kutils: http://people.debian.org/~dz/i8k/00-README

This post has been edited by oshiri: Aug 24 2008, 09:04 AM
oshiri
post Aug 24 2008, 05:41 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
QUOTE(CONANDOR @ Aug 24 2008, 05:01 PM)
trying out debian 4.0r4a

seem like i8k not working fine
CODE

//output from dmesg
i8k: not running on a supported Dell system.
i8k: vendor=Dell Inc., model=MXC062                          , version=A08
i8k: unable to get SMM BIOS version
Dell laptop SMM driver v1.14 21/02/2005 Massimo Dal Zotto (dz@debian.org)
i2c /dev entries driver

*
It's normal because you are using force=1 parameter on unsupported system.

After modprobe try run: i8kmon or i8kctl fan
i8kctl fan will show you the current fan speed status.
To adjust fan speed, use: i8kctl fan 2 2 &
Where 2 2 is the highest speed for left and right fan.
1 2 means low speed on left and highspeed on right.
0 = off
oshiri
post Aug 26 2008, 01:49 PM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Using SATA CD/DVD Drive?
Probably module not detected.
Get the latest, probably might work with your hardware.
oshiri
post Aug 27 2008, 10:23 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
QUOTE(zenix @ Aug 27 2008, 12:13 AM)
i'm going INSANE trying to get SANE to work for my Canon Pixma MX300
Try use sane cvs. It support MX300.
Ok , I guide you how to do it eventhough you probably know how (for user who don't know la):
Only applicable to Debian and Ubuntu based.

1. install dependencies for compilation:
CODE
apt-get install libusb-dev


2. Get sane cvs:
CODE
cvs -d :pserver:anonymous@cvs.alioth.debian.org:/cvsroot/sane login
cvs -d :pserver:anonymous@cvs.alioth.debian.org:/cvsroot/sane checkout sane-backends


3. Configure and compile:
CODE
cd sane-backends
/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
make install (as root or sudo)


4. Make sure your user is in scanner and plugdev groups.
You can check using command: groups (run this as user)
ex:
CODE
groups
oshiri dialout fax voice cdrom floppy tape sudo audio dip video plugdev games users usb scanner camera vboxusers

If you don't know how to add user to that group, read this: http://mambang.org.my/modules/news/article.php?storyid=134

5. Backup your udev libsane.rules and replace with new one (Use sudo if you using Ubuntu, and root if you using DEBIAN):
i) Backup
CODE
cp /etc/udev/rules.d/025_libsane.rules ~/

(025_libsane.rules is in Debian ETCH. Yours probably different , please check. You can set different path to backup that file)
ii) Overwrite file with new one:
CODE
cp sane-backends/tools/udev/libsane.rules /etc/udev/rules.d/25-libsane.rules

(please change name according to what is given in rule.d directory)

6. Test new sane
i) you could reboot, restart udev service or unplug an replug your scanner
ii) test scanner with all below commands:
CODE
scanimage -V   - to check version of sane. You should get CVS.

scanimage -L    - to list your scanner device or devices

scanimage -T  - to really test your scanner. If you get erorr of I/O, try switch usb port.


That's all.

This post has been edited by oshiri: Aug 27 2008, 10:25 AM
oshiri
post Aug 28 2008, 09:12 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
1. Boot using livecd.
2. Mount read write your first hdd.
3. Chroot to your hdd linux partition
4. Reinstall grub: grub-install /dev/xxx (xxx is your first hdd device)
oshiri
post Aug 30 2008, 06:42 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
QUOTE(ldaves @ Aug 29 2008, 08:47 PM)
how can i  use AT command on gsm modem connected /dev/ttyUSB0.

on win xp platform, i normally use hyerterminal. how about on ubuntu?
*
minicom for ncurses based
cutecom for gui

You can apt-get install both.


Added on August 30, 2008, 6:53 am
QUOTE(soulfly @ Aug 29 2008, 07:45 PM)
Got problem burning DVDs. Found many complain about this on other forums too... but none seems to have solution.

DVD burning in ubuntu very very slow, and not successful at all. How to do this? I got no problem burning CDs though.

I'm using K3b and Liteon DVDRW
*
Check hdparm. Probably dma is off.

ex:
CODE
# hdparm /dev/dvd

/dev/dvd:
IO_support   =  1 (32-bit)
unmaskirq    =  1 (on)
using_dma    =  1 (on)
keepsettings =  0 (off)
readonly     =  0 (off)
readahead    = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device


hdparm is important tools to troubleshoot problem with slow I/O in hdd or cd/dvdrom, especially when you get jerky movie playing.
Some distro disable 32 bit IO and dma in their kernel, probably for compatibility sake. This will slow down reading and writting on hdd or cd/dvd.
You can use hdparm to enable it in userland.

This post has been edited by oshiri: Aug 30 2008, 06:55 AM
oshiri
post Aug 31 2008, 08:02 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
Definitely your new kernel problem.
Switch back to kernel you use before.
oshiri
post Sep 3 2008, 07:54 AM

Enthusiast
*****
Senior Member
751 posts

Joined: Nov 2004
QUOTE(scorps @ Sep 2 2008, 03:32 PM)
not, when i in ubuntu system, i cannot see winxp system,
but if using winxp system, it can view and transfer the file from ubuntu system...  icon_question.gif
*
If you follow my previous post on how to manually mount samba shares you should see everything shared in xp.
Just point nautilus to your samba mount point.

You can't see files automatically in nautilus is caused by bug in ubuntu gnome vfs.
What you can try is purge gnome vfs and try reinstall it, probably your Ubuntu version has an update.
CODE
apt-get update
apt-get --purge remove gnome-vfs-extfs libgnomevfs2-common
apt-get install gnome-vfs-extfs libgnomevfs2-common



QUOTE
u havent install ndiswrapper it seems...try to use apt-get/aptitude to install it rather than compile n make install, install it b4 any further steps, try the 32bit driver 1st, if it dont work only send in feedback to linksys

I doubt kernel module will work with apt. Yes you can get module source using apt, but no way binary module will be there. You need to compile it against your kernel headers. Since you've been using linux more than 10 years, you probably know it by now.
I don't mind spoon feeding others as long they understand it at the end.
Cheers!! ... ops puasa.

This post has been edited by oshiri: Sep 3 2008, 08:10 AM

3 Pages < 1 2 3 >Top
 

Change to:
| Lo-Fi Version
0.0217sec    0.63    7 queries    GZIP Disabled
Time is now: 14th December 2025 - 06:56 PM