Näytä kirjoitukset

Tässä osiossa voit tarkastella kaikkia tämän jäsenen viestejä. Huomaa, että näet viestit vain niiltä alueilta, joihin sinulla on pääsy.


Aiheet - juffe

Sivuja: [1] 2
1
Moi.
Minulla on softa, joka lähettää seriaaliporttiin dataa. Portin saa määriteltyä esim rfcomm0, tms.
Haluan että, kun yhdistän puhelimen bluetoothilla tietokoneen bluetoothiin, niin näkisin tuon softan lähettämän datan.

Ongelmana on se, että softa pyörii koko ajan ja tämä /dev/rfcomm0 luodaan vasta sen jälkeen kun puhelin yhdistyy bluetoothilla. Softa ei suostu käynnistymään, koska tuota rfcomm0 ei löydy.

Käytännön komennot, jotka olen tehnyt:
sudo nano /etc/systemd/system/dbus-org.bluez.service
ExecStart=/usr/lib/bluetooth/bluetoothd -C
ExecStartPost=/usr/bin/sdptool add SP

sudo rfcomm watch hci0. Nyt kun käskytän tätä, niin silloin vasta luodaan rfcomm0.

Haluaisin tuon toimimaan käytännössä niin, että mikä tahansa puhelin pystyy yhdistymään tähän tietokoneeseen ja näkemään seriaalidatan jota softa jatkuvasti työntää. Tämä mieluusti niin ettei mitään ylimääräistä tarvisi säätää tietokoneelta.

2
Ubuntu tietokoneissa / ddrescue
« : 21.01.21 - klo:20.59 »
Moi,
Tässä koitan ddrescuella palauttaa 750gb kiintolevyn sisältöä. Tällä hetkelle tuo mennyt eteenpäin 20gb komennolla:
ddrescue -d -r3 /dev/sdb test3.img /home/xxx/test222.logfile

Koodia: [Valitse]
GNU ddrescue 1.22
     ipos:   21840 MB, non-trimmed:   458752 B,  current rate:   8192 kB/s
     opos:   21840 MB, non-scraped:        0 B,  average rate:   7178 kB/s
non-tried:  728398 MB,  bad-sector:        0 B,    error rate:       0 B/s
  rescued:   21757 MB,   bad areas:        0,        run time:     50m 31s
pct rescued:    2.90%, read errors:        7,  remaining time:  1d  2h 58m
                              time since last successful read:          0s
Copying non-tried blocks... Pass 1 (forwards)
Read erroreita on nyt jo ja luultavasti tulee vielä paljon lisää.
Mikä on nyt oikea tapa yrittää noita huonoja kohtia uudelleen lukea, vaikka 100 kertaa (kunhan tuo on rullannut ensin läpi)?



3
Moro.
Mulla on Xiaomi Mi Router 3, johon tyrkkäsin openwrtn, jotta saisin telewell USB-4g modeemin siinä toimimaan. No se toimiikin UQMI kautta ( https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle)

Meillä on täällä nyt monta eri verkkoa. Ainakn 800Mhz ja 1800Mhz. Miten saan tuon lukittua 1800Mhz verkkoon AT komennoilla? https://www.telewell.fi/files/4Gohje.pdf

4
Moi
Mulla on tuommoinen kiinasta tullut usb bt palikka ja eihän se toiminut suoraan heittämällä, piti siis btusb.c koodia puukottaa ja kääntää btusb.ko.

https://askubuntu.com/questions/1168123/how-do-i-get-my-bluetooth-device-working

Tämän sain hajanaisilla tiedoilla tehtyä, mutta ajuri ei lataannu  suoraan käynnityksessä vaan täytyy käydä kirjoittamassa sudo insmod btusb.ko

Taisi jostain kernelin versioristiriidasta herjailla. Miten tämä yhden ajurin kääntö debianissa hoituu virallista tietä?
Tällä ubuntun ohjeella koitin, mutta herjasi heti että build kansiota ei ole
https://askubuntu.com/questions/915235/error-to-load-module-btusb-with-kernel-4-10-0-20-generic

Ja miksei tuossa gnomen bluetoothin asetuspanelissa ole valintaa mistä käydään vaihtamassa bluetooth laite mitä käytetään? Onko tähän muuta graafista vaihtohtoa vai onko ainut tapa bluetoothctl komentoriviltä? Nyt mulla siis sisäänrakennettu sekä tämä usb palikka. Tämä sen takia että saan kahdet bluetooth luurit toimimaan samaan aikaan.



e

5
Moi,
Osaisiko joku hieman helpata, miten saisi optimoitua Makefilen tuota Raspberryä varten optimaaliseksi. Nyt ohjelma kuormittaa yhtä corea 100%.
Eli ohjelma on rtklibin rtkrcv https://github.com/rtklibexplorer/RTKLIB ja sen makefile alimpana

Koodia: [Valitse]
top - 13:45:34 up  1:39,  1 user,  load average: 1.73, 1.54, 1.34
Tasks: 104 total,   1 running, 102 sleeping,   1 stopped,   0 zombie
%Cpu(s): 25.3 us,  3.0 sy,  0.0 ni, 71.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :    926.1 total,    751.1 free,     63.4 used,    111.5 buff/cache
MiB Swap:    100.0 total,    100.0 free,      0.0 used.    806.5 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
 8041 pi        20   0   40208  17332   2180 S 103.3   1.8  37:09.03 rtkrcv


Koodia: [Valitse]
# makefile for rtkrcv

BINDIR = /usr/local/bin
SRC    = ../../../src

# for beagleboard
#CTARGET= -mfpu=neon -mfloat-abi=softfp -ffast-math
CTARGET= -DENAGLO -DENAQZS -DENACMP -DENAGAL -DENAIRN -DNFREQ=4 -DNEXOBS=3 -DSVR_REUSEADDR

CFLAGS = -Wall -O3 -ansi -pedantic -Wno-unused-but-set-variable -I$(SRC) -I.. -DTRACE $(CTARGET) -g

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Darwin)
LDLIBS  = -lm -lpthread
else
LDLIBS  = -lm -lrt -lpthread
endif

all        : rtkrcv
rtkrcv     : rtkrcv.o vt.o rtkcmn.o rtksvr.o rtkpos.o geoid.o solution.o lambda.o
rtkrcv     : sbas.o stream.o rcvraw.o rtcm.o preceph.o options.o pntpos.o ppp.o ppp_ar.o
rtkrcv     : novatel.o ublox.o swiftnav.o crescent.o skytraq.o gw10.o javad.o nvs.o binex.o
rtkrcv     : rt17.o ephemeris.o rinex.o ionex.o rtcm2.o rtcm3.o rtcm3e.o qzslex.o
rtkrcv     : ppp_corr.o tides.o septentrio.o cmr.o tersus.o comnav.o

rtkrcv.o   : ../rtkrcv.c
$(CC) -c $(CFLAGS) ../rtkrcv.c
vt.o       : ../vt.c
$(CC) -c $(CFLAGS) ../vt.c
rtkcmn.o   : $(SRC)/rtkcmn.c
$(CC) -c $(CFLAGS) $(SRC)/rtkcmn.c
rtksvr.o   : $(SRC)/rtksvr.c
$(CC) -c $(CFLAGS) $(SRC)/rtksvr.c
rtkpos.o   : $(SRC)/rtkpos.c
$(CC) -c $(CFLAGS) $(SRC)/rtkpos.c
geoid.o    : $(SRC)/geoid.c
$(CC) -c $(CFLAGS) $(SRC)/geoid.c
solution.o : $(SRC)/solution.c
$(CC) -c $(CFLAGS) $(SRC)/solution.c
lambda.o   : $(SRC)/lambda.c
$(CC) -c $(CFLAGS) $(SRC)/lambda.c
sbas.o     : $(SRC)/sbas.c
$(CC) -c $(CFLAGS) $(SRC)/sbas.c
stream.o   : $(SRC)/stream.c
$(CC) -c $(CFLAGS) $(SRC)/stream.c
rcvraw.o : $(SRC)/rcvraw.c
$(CC) -c $(CFLAGS) $(SRC)/rcvraw.c
rtcm.o     : $(SRC)/rtcm.c
$(CC) -c $(CFLAGS) $(SRC)/rtcm.c
rtcm2.o    : $(SRC)/rtcm2.c
$(CC) -c $(CFLAGS) $(SRC)/rtcm2.c
rtcm3.o    : $(SRC)/rtcm3.c
$(CC) -c $(CFLAGS) $(SRC)/rtcm3.c
rtcm3e.o   : $(SRC)/rtcm3e.c
$(CC) -c $(CFLAGS) $(SRC)/rtcm3e.c
preceph.o  : $(SRC)/preceph.c
$(CC) -c $(CFLAGS) $(SRC)/preceph.c
options.o  : $(SRC)/options.c
$(CC) -c $(CFLAGS) $(SRC)/options.c
pntpos.o   : $(SRC)/pntpos.c
$(CC) -c $(CFLAGS) $(SRC)/pntpos.c
ppp.o      : $(SRC)/ppp.c
$(CC) -c $(CFLAGS) $(SRC)/ppp.c
ppp_ar.o   : $(SRC)/ppp_ar.c
$(CC) -c $(CFLAGS) $(SRC)/ppp_ar.c
novatel.o  : $(SRC)/rcv/novatel.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/novatel.c
ublox.o    : $(SRC)/rcv/ublox.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/ublox.c
swiftnav.o : $(SRC)/rcv/swiftnav.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/swiftnav.c
crescent.o : $(SRC)/rcv/crescent.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/crescent.c
skytraq.o  : $(SRC)/rcv/skytraq.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/skytraq.c
gw10.o     : $(SRC)/rcv/gw10.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/gw10.c
javad.o    : $(SRC)/rcv/javad.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/javad.c
nvs.o      : $(SRC)/rcv/nvs.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/nvs.c
binex.o    : $(SRC)/rcv/binex.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/binex.c
rt17.o     : $(SRC)/rcv/rt17.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/rt17.c
ephemeris.o: $(SRC)/ephemeris.c
$(CC) -c $(CFLAGS) $(SRC)/ephemeris.c
rinex.o    : $(SRC)/rinex.c
$(CC) -c $(CFLAGS) $(SRC)/rinex.c
ionex.o    : $(SRC)/ionex.c
$(CC) -c $(CFLAGS) $(SRC)/ionex.c
qzslex.o   : $(SRC)/qzslex.c
$(CC) -c $(CFLAGS) $(SRC)/qzslex.c
tides.o    : $(SRC)/tides.c
$(CC) -c $(CFLAGS) $(SRC)/tides.c
ppp_corr.o : $(SRC)/ppp_corr.c
$(CC) -c $(CFLAGS) $(SRC)/ppp_corr.c
septentrio.o: $(SRC)/rcv/septentrio.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/septentrio.c
cmr.o      : $(SRC)/rcv/cmr.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/cmr.c
tersus.o   : $(SRC)/rcv/tersus.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/tersus.c
comnav.o   : $(SRC)/rcv/comnav.c
$(CC) -c $(CFLAGS) $(SRC)/rcv/comnav.c

rtkrcv.o   : $(SRC)/rtklib.h ../vt.h
rtkcmn.o   : $(SRC)/rtklib.h
rtksvr.o   : $(SRC)/rtklib.h
rtkpos.o   : $(SRC)/rtklib.h
geoid.o    : $(SRC)/rtklib.h
solution.o : $(SRC)/rtklib.h
lambda.o   : $(SRC)/rtklib.h
sbas.o     : $(SRC)/rtklib.h
rcvraw.o   : $(SRC)/rtklib.h
rtcm.o     : $(SRC)/rtklib.h
rtcm2.o    : $(SRC)/rtklib.h
rtcm3.o    : $(SRC)/rtklib.h
rtcm3e.o   : $(SRC)/rtklib.h
preceph.o  : $(SRC)/rtklib.h
options.o  : $(SRC)/rtklib.h
pntpos.o   : $(SRC)/rtklib.h
ppp.o      : $(SRC)/rtklib.h
novatel.o  : $(SRC)/rtklib.h
ublox.o    : $(SRC)/rtklib.h
swiftnav.o : $(SRC)/rtklib.h
crescent.o : $(SRC)/rtklib.h
skytraq.o  : $(SRC)/rtklib.h
gw10.o     : $(SRC)/rtklib.h
javad.o    : $(SRC)/rtklib.h
nvs.o      : $(SRC)/rtklib.h
binex.o    : $(SRC)/rtklib.h
rt17.o     : $(SRC)/rtklib.h
septentrio.o: $(SRC)/rtklib.h
cmr.o      : $(SRC)/rtklib.h
tersus.o   : $(SRC)/rtklib.h
comnav.o   : $(SRC)/rtklib.h
ephemeris.o: $(SRC)/rtklib.h
rinex.o    : $(SRC)/rtklib.h
ionex.o    : $(SRC)/rtklib.h
qzslex.o   : $(SRC)/rtklib.h
tides.o    : $(SRC)/rtklib.h
ppp_corr.o : $(SRC)/rtklib.h

install:
cp rtkrcv $(BINDIR)

test1:
./rtkrcv -t 4 -m 52001 -t 4

test2:
./rtkrcv -p 2105 -m 52001

test3:
./rtkrcv -o ../rtk_pb.conf

clean:
rm -f rtkrcv rtkrcv.exe rtkrcv.nav *.o *.out *.trace

6
Moi.
Kyseessä ei ole suoranaisesti ubuntu, mutta varmasti voitte myös auttaa Raspberry Zero W:n kanssa, käyttiksenä RASPBIAN STRETCH

Eli haluaisin lähettää raspberryltä tekstimuotoista muuttuvaa dataa bluetoothin kautta tietokoneeseen, niin että saisin sen tietokoneelta ulos sarjaporttina(esim windows lukisi dataa COM4 portista)

Raspberryyn yhdistetään tietokone bluetoothin avulla ja tietokone tekisi automaattisesti sarjaportin, mistä voidaan data lukea. Raspberryn pitäisi hyväksyä kaikki laitteet ilman mitään turhia kysymyksiä, koska laitteessa ei näyttöä.

Nyt kun näin yrittää tehdä windows löytää bluetooth audion ja  standard serial over bluetooth link pari kappaletta.

Miten pitäisi edetä, jotta saisi raspberryltä lähetettyä datan bluetooth sarjaporttiin?

7
Moi,
Miten ssh saan yhteyden raspberryyn?

Minulla on dna sierra wireless 4g modeemi, joka on tietokoneessa kiinni usb:lla. Tietokone saa ip:n 192.168.2.1
Raspberry on wlanilla samassa boksissa kiinni ja saa ipn 192.168.1.3

Raspberryyn ei pääse käsiksi ssh:lla, ellei tietokoneenkin laita kiinni wlanilla kiinni, jolloin tietokone saa ipn 192.168.1.2


8
Ubuntu tietokoneissa / Läppäri kaatuu oudosti
« : 02.01.13 - klo:20.07 »
Moi,
Mulla on Packard Bell p5ws0 core i5. Kone on päällä käytännössä aina. Yleensä kerran päivässä kone sippaa silleen että ruutu on mustana ja pysyy. Pelkkä hard reset auttaa. syslogista en löytänyt mitään erroriin viittaavaa kyseiseltä ajankohdalta. Missä ihmeessä vika. Käytössä 64bit versio Ubuntu 12.10
lspci:
Koodia: [Valitse]
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe (rev 10)
02:00.1 SD Host controller: Broadcom Corporation NetXtreme BCM57765 Memory Card Reader (rev 10)
02:00.2 System peripheral: Broadcom Corporation Device 16be (rev 10)
02:00.3 System peripheral: Broadcom Corporation Device 16bf (rev 10)
03:00.0 Network controller: Broadcom Corporation BCM43225 802.11b/g/n (rev 01)

9
Ubuntu tietokoneissa / google earth nykii
« : 01.06.09 - klo:20.05 »
Mikähän mahtaa olla kun Google Earth nykii ja toimii erittäin hitaasti? Olen yrittänyt asentaa Earthin nettisivuilta kuin medibuntustakin. Tuntuisi että olisi näyttiksestä kiinni mutta glxgears antaa tämmöistä:
get fences failed: -1
param: 6, val: 0
3289 frames in 5.0 seconds = 657.676 FPS
3235 frames in 5.0 seconds = 646.888 FPS
2904 frames in 5.0 seconds = 580.727 FPS

suoraan käynnistettynä päätteestä tulee tämmöistä:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Tiedostoa tai hakemistoa ei ole
chdir: error retrieving current directory: getcwd: cannot access parent directories: Tiedostoa tai hakemistoa ei ole
Warning: Unable to create prefs directory '/home/juffe/.googleearth'. Tiedosto on olemassa.
get fences failed: -1
param: 6, val: 0

10
Onko se nyt tosissaan näin että, kun tähän uusimpaan (k)ubuntu 7.1 asentaa pakettienhallinnasta suspend2 ja hibernate paketit vaatii tämä järjestelmä patchaamaan kernelin? Jos näin niin miten patchaan generic kernelin?

Näinkö:

1. pakettien hallinnasta kernel sorsat
2. http://www.tuxonice.net/downloads/ sivulta gutsyyn tarkotettu patch
3. patchataan sorsat onnistuneesti.
4. käännetään ja asennetaan patchatty kerneli vanhan päälle? miten?
5. koitetaan josko suspend ja hibernate suostuisi toimimaan

11
Moi, minulla on käytössä emolevyyn integroitu otsikonmukainen näyttis.
Haluan käyttää tietokoneen ainoana näyttönä crt televisiota, joka on liitetty SVIDEO liittimellä.

Käytän siis konetta digiboksina, joten tarvetta ei ole muille näytöille.
Olen saanutkin kuvan televisioon 720x576 resolla, joka lienee järkevin digivastaanottoa ajatellen, vai onko?

Ongelmana on kuitenkin kuvan keskittäminen tv:lle. Olen yrittänyt säätää xvidtunella, mutta se valittaa "Sorry: You have rquested a mode-line That is not possible, or not supported by your hardware configuration"

Tällä hetkellä xorg.conffini näyttää tältä:
Lainaus
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
   FontPath   "/usr/share/fonts/X11/misc"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc"
   FontPath   "/usr/share/fonts/X11/cyrillic"
   FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic"
   FontPath   "/usr/share/fonts/X11/100dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
   FontPath   "/usr/share/fonts/X11/75dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
   FontPath   "/usr/share/fonts/X11/Type1"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
   FontPath   "/usr/share/fonts/X11/100dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
   FontPath   "/usr/share/fonts/X11/75dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
   # path to defoma fonts
   FontPath   "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
   Load   "bitmap"
   Load   "ddc"
   Load   "dri"
   Load   "extmod"
   Load   "freetype"
   Load   "glx"
   Load   "int10"
   Load   "vbe"
EndSection

Section "InputDevice"
   Identifier   "Generic Keyboard"
   Driver      "kbd"
   Option      "CoreKeyboard"
   Option      "XkbRules"   "xorg"
   Option      "XkbModel"   "pc105"
   Option      "XkbLayout"   "fi"
EndSection

Section "InputDevice"
   Identifier   "Configured Mouse"
   Driver      "mouse"
   Option      "CorePointer"
   Option      "Device"      "/dev/input/mice"
   Option      "Protocol"      "ImPS/2"
   Option      "Emulate3Buttons"   "true"
EndSection

Section "Device"
    Identifier     "Generic Video Card"
    Driver         "nvidia"
    Option         "ConnectedMonitor" "TV"
    Option         "TVStandard" "PAL-G"
    Option         "TVOutFormat" "S-VIDEO"
    Option         "TVOverScan" "0.9"
EndSection

Section "Monitor"
    Identifier     "Generic Monitor"
    HorizSync       30.0 - 50.0
    VertRefresh     60
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Generic Video Card"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "720x576"
    EndSubSection
EndSection

Section "ServerLayout"
   Identifier   "Default Layout"
   Screen      "Default Screen"
   InputDevice   "Generic Keyboard"
   InputDevice   "Configured Mouse"
EndSection

Section "DRI"
   Mode   0666
EndSection

12
Laitealue / Sony Vaio S5hp/b
« : 28.05.07 - klo:16.54 »
Moi!

Asentelin tuossa uusimman ubuntun eli feistyn tähän läppäriin. Asennus meni hyvin, mutta tänään on käynnistämisessä ollut ongelmia. Eli kun yritän avata koneen jää kone ikuisuuksiksi hyrräämään siihen ubuntu kuvaan eikä latauspalkki etene. Ainoastaan hard reset pelittää siinä vaiheessa. Kun olen konetta buuttaillut jonkun 10 kertaa saattaa se lähteä käyntiin ilman mitään ongelmaa. Epäilen jotain tuohon sata väylään liittyvää, mutta olisiko Teillä jotain ratkaisua siihen. Alla hieman syslogia startista:

Lisäksi yhden kerran käynnistyessään kone jäi jumiin login ruutuun, mutta ctrl+alt+backspace sammutti sen niin ruudulle tuli jotain:
ata1: port failed to respond (30 secs)....

Koodia: [Valitse]
May 28 16:07:54 juffe-laptop kernel: [    5.388000] ata1: SATA max UDMA/133 cmd 0xf88b8500 ctl 0x00000000 bmdma 0x00000000 irq 21
May 28 16:07:54 juffe-laptop kernel: [    5.388000] ata2: SATA max UDMA/133 cmd 0xf88b8580 ctl 0x00000000 bmdma 0x00000000 irq 21
May 28 16:07:54 juffe-laptop kernel: [    5.388000] ata3: SATA max UDMA/133 cmd 0xf88b8600 ctl 0x00000000 bmdma 0x00000000 irq 21
May 28 16:07:54 juffe-laptop kernel: [    5.388000] ata4: SATA max UDMA/133 cmd 0xf88b8680 ctl 0x00000000 bmdma 0x00000000 irq 21
May 28 16:07:54 juffe-laptop kernel: [    5.388000] scsi0 : ahci
May 28 16:07:54 juffe-laptop kernel: [    8.684000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 28 16:07:54 juffe-laptop kernel: [    8.684000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [    8.684000] ata1.00: ATA-7: HTS541080G9SA00, MB4OC60D, max UDMA/100
May 28 16:07:54 juffe-laptop kernel: [    8.684000] ata1.00: 156301488 sectors, multi 16: LBA48 NCQ (depth 31/32)
May 28 16:07:54 juffe-laptop kernel: [    8.684000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [    8.684000] ata1.00: configured for UDMA/100
May 28 16:07:54 juffe-laptop kernel: [    8.684000] scsi1 : ahci
May 28 16:07:54 juffe-laptop kernel: [    9.528000] ata2: SATA link down (SStatus 0 SControl 0)
May 28 16:07:54 juffe-laptop kernel: [    9.528000] scsi2 : ahci
May 28 16:07:54 juffe-laptop kernel: [    9.948000] usb 3-1: new full speed USB device using uhci_hcd and address 2
May 28 16:07:54 juffe-laptop kernel: [   10.376000] ata3: SATA link down (SStatus 0 SControl 300)
May 28 16:07:54 juffe-laptop kernel: [   10.376000] scsi3 : ahci
May 28 16:07:54 juffe-laptop kernel: [   11.240000] ata4: SATA link down (SStatus 0 SControl 0)
May 28 16:07:54 juffe-laptop kernel: [   11.240000] scsi 0:0:0:0: Direct-Access     ATA      HTS541080G9SA00  MB4O PQ: 0 ANSI: 5
May 28 16:07:54 juffe-laptop kernel: [   11.248000] ACPI: PCI Interrupt 0000:06:05.2[C] -> GSI 20 (level, low) -> IRQ 22
May 28 16:07:54 juffe-laptop kernel: [   11.300000] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[22]  MMIO=[b0004000-b00047ff]  Max Packet=[2048]  IR/IT contexts=[4/8]
May 28 16:07:54 juffe-laptop kernel: [   11.300000] ACPI: PCI Interrupt 0000:06:08.0[A] -> GSI 20 (level, low) -> IRQ 22
May 28 16:07:54 juffe-laptop kernel: [   11.328000] e100: eth0: e100_probe: addr 0xb0006000, irq 22, MAC addr 00:01:4A:9F:B5:1B
May 28 16:07:54 juffe-laptop kernel: [   11.328000] ICH6: IDE controller at PCI slot 0000:00:1f.1
May 28 16:07:54 juffe-laptop kernel: [   11.328000] ACPI: PCI Interrupt 0000:00:1f.1[B] -> GSI 18 (level, low) -> IRQ 21
May 28 16:07:54 juffe-laptop kernel: [   11.328000] ICH6: chipset revision 3
May 28 16:07:54 juffe-laptop kernel: [   11.328000] ICH6: not 100%% native mode: will probe irqs later
May 28 16:07:54 juffe-laptop kernel: [   11.328000]     ide0: BM-DMA at 0x1880-0x1887, BIOS settings: hda:DMA, hdb:pio
May 28 16:07:54 juffe-laptop kernel: [   11.328000] Probing IDE interface ide0...
May 28 16:07:54 juffe-laptop kernel: [   11.344000] SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
May 28 16:07:54 juffe-laptop kernel: [   11.344000] sda: Write Protect is off
May 28 16:07:54 juffe-laptop kernel: [   11.344000] sda: Mode Sense: 00 3a 00 00
May 28 16:07:54 juffe-laptop kernel: [   11.344000] SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 28 16:07:54 juffe-laptop kernel: [   11.344000] SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
May 28 16:07:54 juffe-laptop kernel: [   11.344000] sda: Write Protect is off
May 28 16:07:54 juffe-laptop kernel: [   11.344000] sda: Mode Sense: 00 3a 00 00
May 28 16:07:54 juffe-laptop kernel: [   11.344000] SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 28 16:07:54 juffe-laptop kernel: [   11.344000]  sda:<6>usb 3-1: configuration #1 chosen from 1 choice
May 28 16:07:54 juffe-laptop kernel: [   14.168000] ieee1394: Host added: ID:BUS[0-00:1023]  GUID[0800460300effdeb]
May 28 16:07:54 juffe-laptop kernel: [   17.376000] hda: MATSHITAUJ-832D, ATAPI CD/DVD-ROM drive
May 28 16:07:54 juffe-laptop kernel: [   23.872000] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
May 28 16:07:54 juffe-laptop kernel: [   23.880000] hda: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
May 28 16:07:54 juffe-laptop kernel: [   23.880000] Uniform CD-ROM driver Revision: 3.20
May 28 16:07:54 juffe-laptop kernel: [   42.416000] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x2 frozen
May 28 16:07:54 juffe-laptop kernel: [   42.416000] ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 4096 in
May 28 16:07:54 juffe-laptop kernel: [   42.416000]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
May 28 16:07:54 juffe-laptop kernel: [   44.616000] ata1: soft resetting port
May 28 16:07:54 juffe-laptop kernel: [   47.928000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 28 16:07:54 juffe-laptop kernel: [   47.928000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [   47.928000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [   47.928000] ata1.00: configured for UDMA/100
May 28 16:07:54 juffe-laptop kernel: [   47.928000] ata1: EH complete
May 28 16:07:54 juffe-laptop kernel: [   47.928000] SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
May 28 16:07:54 juffe-laptop kernel: [   47.928000] sda: Write Protect is off
May 28 16:07:54 juffe-laptop kernel: [   47.928000] sda: Mode Sense: 00 3a 00 00
May 28 16:07:54 juffe-laptop kernel: [   47.928000] SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 28 16:07:54 juffe-laptop kernel: [   78.812000] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x2 frozen
May 28 16:07:54 juffe-laptop kernel: [   78.812000] ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 4096 in
May 28 16:07:54 juffe-laptop kernel: [   78.812000]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
May 28 16:07:54 juffe-laptop kernel: [   81.016000] ata1: soft resetting port
May 28 16:07:54 juffe-laptop kernel: [   84.308000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 28 16:07:54 juffe-laptop kernel: [   84.308000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [   84.308000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [   84.308000] ata1.00: configured for UDMA/100
May 28 16:07:54 juffe-laptop kernel: [   84.308000] ata1: EH complete
May 28 16:07:54 juffe-laptop kernel: [   84.308000] SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
May 28 16:07:54 juffe-laptop kernel: [   84.308000] sda: Write Protect is off
May 28 16:07:54 juffe-laptop kernel: [   84.308000] sda: Mode Sense: 00 3a 00 00
May 28 16:07:54 juffe-laptop kernel: [   84.308000] SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 28 16:07:54 juffe-laptop kernel: [  115.188000] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x2 frozen
May 28 16:07:54 juffe-laptop kernel: [  115.188000] ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 4096 in
May 28 16:07:54 juffe-laptop kernel: [  115.188000]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
May 28 16:07:54 juffe-laptop kernel: [  117.392000] ata1: soft resetting port
May 28 16:07:54 juffe-laptop kernel: [  120.704000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 28 16:07:54 juffe-laptop kernel: [  120.704000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [  120.704000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [  120.704000] ata1.00: configured for UDMA/100
May 28 16:07:54 juffe-laptop kernel: [  120.704000] ata1: EH complete
May 28 16:07:54 juffe-laptop kernel: [  120.704000] SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
May 28 16:07:54 juffe-laptop kernel: [  120.704000] sda: Write Protect is off
May 28 16:07:54 juffe-laptop kernel: [  120.704000] sda: Mode Sense: 00 3a 00 00
May 28 16:07:54 juffe-laptop kernel: [  120.704000] SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 28 16:07:54 juffe-laptop kernel: [  151.580000] ata1.00: NCQ disabled due to excessive errors
May 28 16:07:54 juffe-laptop kernel: [  151.580000] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x2 frozen
May 28 16:07:54 juffe-laptop kernel: [  151.580000] ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 4096 in
May 28 16:07:54 juffe-laptop kernel: [  151.580000]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
May 28 16:07:54 juffe-laptop kernel: [  153.788000] ata1: soft resetting port
May 28 16:07:54 juffe-laptop kernel: [  157.060000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 28 16:07:54 juffe-laptop kernel: [  157.060000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [  157.060000] ata1.00: ata_hpa_resize 1: sectors = 156301488, hpa_sectors = 156301488
May 28 16:07:54 juffe-laptop kernel: [  157.060000] ata1.00: configured for UDMA/100
May 28 16:07:54 juffe-laptop kernel: [  157.060000] ata1: EH complete
May 28 16:07:54 juffe-laptop kernel: [  157.060000] SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
May 28 16:07:54 juffe-laptop kernel: [  157.060000] sda: Write Protect is off
May 28 16:07:54 juffe-laptop kernel: [  157.060000] sda: Mode Sense: 00 3a 00 00
May 28 16:07:54 juffe-laptop kernel: [  157.060000] SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 28 16:07:54 juffe-laptop kernel: [  157.084000]  sda1 sda2 < sda5 sda6 > sda3
May 28 16:07:54 juffe-laptop kernel: [  157.132000] sd 0:0:0:0: Attached scsi disk sda
May 28 16:07:54 juffe-laptop kernel: [  157.136000] sd 0:0:0:0: Attached scsi generic sg0 type 0
May 28 16:07:54 juffe-laptop kernel: [  157.496000] Attempting manual resume
May 28 16:07:54 juffe-laptop kernel: [  157.496000] swsusp: Resume From Partition 8:6
May 28 16:07:54 juffe-laptop kernel: [  157.496000] PM: Checking swsusp image.
May 28 16:07:54 juffe-laptop kernel: [  157.496000] PM: Resume from disk failed.
May 28 16:07:54 juffe-laptop kernel: [  157.524000] kjournald starting.  Commit interval 5 seconds

ps. tämä feisty on muuten ensimmäinen ubuntu versio, joka on ylipäätään suostunut koneeseen asentumaan.

13
Moi.

Mikähän mahtaa mennä vikaan, kun yritän uusimmalla ubuntulla toistaa iso tiedostoja tai video_ts hakemistoa, niin kaikki kokeilemani ohjelmat kaatuvat tai eivät vaan näytä kuvaa.
dvd-levyillä olevat elokuvat näkyvät kyllä kiltisti. Olen koittanut parilla eri iso tiedostoilla, mutta ei auta asiaan.

Tässä hieman selvennystä:
Koodia: [Valitse]
$ ogle BORAT_PAL.iso
WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshot'
WARNING[dvd_gui]: add_keybinding(): No such action: 'SaveScreenshotWithSPU'
libdvdread: Invalid IFO for title 2 (VTS_02_0.IFO).
libdvdread: Invalid IFO for title 2 (VTS_02_0.BUP).
FATAL[ogle_nav]: ifoOpenVTSI failed

Koodia: [Valitse]
$ vlc BORAT_PAL.iso
VLC media player 0.8.6 Janus
libdvdnav: Using dvdnav version 0.1.10 from http://dvd.sf.net
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdnav: DVD Title: BORAT_PAL
libdvdnav: DVD Serial Number: 45E862A70000003D
libdvdnav: DVD Title (Alternative):
libdvdnav: Unable to find map file '/home/juffe/.dvdnav/BORAT_PAL.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000133
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000213
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000031aa
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x002236d9
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x002236de
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x002236ff
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00223705
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00225fcf
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00225fd5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x0022600f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x00226014
libdvdread: Elapsed time 0
libdvdread: Found 5 VTS's
libdvdread: Elapsed time 0
libdvdread: Can't seek to block 2252806
libdvdread: Invalid IFO for title 5 (VTS_05_0.IFO).
libdvdnav: ifoOpenVTSI failed - CRASHING!!!
vlc: vm.c:198: ifoOpenNewVTSI: Assertion `0' failed.
Aborted (core dumped)

14
Laitealue / Ati Rage 128 Pro 3d ajurit
« : 20.11.06 - klo:18.03 »
Moro.

Miten mahtaisin saada tallaiselle kortille 3d ajurit, jotta tuxracer toimisi kunnolla? talla hetkella kaytossa r128 driveri.


lspci tuloste

01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF

15
Hei

Tuli tuosta edellisestä keskustelusta mieleen että onkohan tämä minun scriptini turvallinen ja järkevä. Tarkoituksenani on siis ollut pitää kaikki tarpeettomat palvelut suljettuna. Kone toimii serverinä ja jakaa nettiä muille lähiverkon koneille. Voisiko joku iptables expertti katsoa scriptini läpi?

Koodia: [Valitse]
#!/bin/sh

# iptables script generator: V0.1-2002
# Comes with no warranty!
# e-mail: michael@1go.dk

# Diable forwarding
echo 0 > /proc/sys/net/ipv4/ip_forward

LAN_IP_NET='192.168.0.1/24'
LAN_NIC='eth1'
WAN_IP='xxx.xxx.xxx.xxx'
WAN_NIC='eth0'

# load some modules (if needed)

# Flush
iptables -t nat -F POSTROUTING
iptables -t nat -F PREROUTING
iptables -t nat -F OUTPUT
iptables -F

iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT

# enable Masquerade and forwarding
iptables -t nat -A POSTROUTING -s $LAN_IP_NET -j MASQUERADE
iptables -A FORWARD -j ACCEPT -i $LAN_NIC -s $LAN_IP_NET
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

# Open ports on router for server/services

#samba
iptables -A INPUT -p tcp  -s 192.168.0.0/24 -m multiport --dports 135,139,445 -j ACCEPT
iptables -A INPUT -p udp -s 192.168.0.0/24 -m multiport --dports 137,138 -j ACCEPT

#vdr-streamdev-server
iptables -A INPUT -j ACCEPT -p tcp --dport 3000

#serverin bittorrentille/torrentflux portteja auki
iptables -A INPUT -j ACCEPT -p tcp --dport 49169
iptables -A INPUT -j ACCEPT -p udp --dport 49169
iptables -A INPUT -j ACCEPT -p tcp --dport 49170
iptables -A INPUT -j ACCEPT -p udp --dport 49170
iptables -A INPUT -j ACCEPT -p tcp --dport 49171
iptables -A INPUT -j ACCEPT -p udp --dport 49171
iptables -A INPUT -j ACCEPT -p tcp --dport 49172
iptables -A INPUT -j ACCEPT -p udp --dport 49172
iptables -A INPUT -j ACCEPT -p tcp --dport 49173
iptables -A INPUT -j ACCEPT -p udp --dport 49173

#ssh
iptables -A INPUT -j ACCEPT -p tcp --dport 22

#apache-server, että torrentflux toimii
iptables -A INPUT -j ACCEPT -p tcp --dport 80

#torrentille_poytakone1
iptables -A INPUT -j ACCEPT -p tcp --dport 15851
iptables -A INPUT -j ACCEPT -p udp --dport 15851

#dc_poytakone1
iptables -A INPUT -j ACCEPT -p tcp --dport 15852
iptables -A INPUT -j ACCEPT -p udp --dport 15852

#torrentille_lappari
iptables -A INPUT -j ACCEPT -p tcp --dport 15850
iptables -A INPUT -j ACCEPT -p udp --dport 15850

#torrentille_lappari_reititys
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 15850 -j DNAT --to 192.168.0.2:15850
iptables -t nat -A PREROUTING -p udp -i eth0 --dport 15850 -j DNAT --to 192.168.0.2:15850
iptables -A FORWARD -p tcp -i eth0 -d  192.168.0.2 --dport 15850 -j ACCEPT
iptables -A FORWARD -p udp -i eth0 -d  192.168.0.2 --dport 15850 -j ACCEPT

#torrentille_poytakone1_reititys
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 15851 -j DNAT --to 192.168.0.44:15851
iptables -t nat -A PREROUTING -p udp -i eth0 --dport 15851 -j DNAT --to 192.168.0.44:15851
iptables -A FORWARD -p tcp -i eth0 -d  192.168.0.44 --dport 15851 -j ACCEPT
iptables -A FORWARD -p udp -i eth0 -d  192.168.0.44 --dport 15851 -j ACCEPT

#dc_poytakone1_reititys
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 15852 -j DNAT --to 192.168.0.44:15852
iptables -t nat -A PREROUTING -p udp -i eth1 --dport 15852 -j DNAT --to 192.168.0.44:15852
iptables -A FORWARD -p tcp -i eth1 -d  192.168.0.44 --dport 15852 -j ACCEPT
iptables -A FORWARD -p udp -i eth1 -d  192.168.0.44 --dport 15852 -j ACCEPT

# STATE RELATED for router
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# Enable forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

16
Ubuntu tietokoneissa / Samba jaot linux->windows
« : 08.10.06 - klo:18.20 »
Hei,
minulla on linux-serveri, joka toimittaa htpc/palomuurin virkaa. Koneessa on kaksi verkkokorttia eth0 (wan) eth1(lan).

Asentelin tuossa samban http://ubuntuguide.org/wiki/Ubuntu_dapper_fi#Samba_Serveri ohjeen mukaisesti, mutta en saanut sitä toimimaan. Linux kone kyllä näkyy verkkoympäristössä, mutta sinne ei pääse sisään. Valittaa että "blaa blaa ei ole käytettävissä blaa".

Mitä portteja täytyy palomuurista aukoa sambaa varten?
tällä hetkellä on auki seuraavat. Onko oikein auottu?:

Koodia: [Valitse]
iptables -A INPUT -j ACCEPT -p tcp --dport 445
iptables -A INPUT -j ACCEPT -p tcp --dport 139


Tarkoituksena siis päästä muista lähiverkon windows koneista write/read oikeuksilla /video hakemistoon (Mihinkään muuhun ei ole siis tarvetta, onko paljon tarpeetonta?). Seuraavaksi smb.conf. Onko oikein tehty?


Koodia: [Valitse]
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
#

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = MSHOME

# server string is the equivalent of the NT Description field
   server string = %h server (Samba %v)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
;   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = true



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
   security = share

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using. 
   passdb backend = tdbsam

   obey pam restrictions = yes

;   guest account = nobody
   invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
;   unix password sync = no

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
;   pam password change = no

########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
;   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
;   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
;   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
;   printer admin = @ntadmin


############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
;   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

#======================= Share Definitions =======================

[homes]
   comment = Home Directories
   browseable = no

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
   writable = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   public = no
   writable = no
   create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
;   write list = root, @ntadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   writable = no
;   locking = no
;   path = /cdrom
;   public = yes

# The next two parameters show how to auto-mount a CD-ROM when the
# cdrom share is accesed. For this to work /etc/fstab must contain
# an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
# is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

[public]
  comment = Public Folder
  path = /video
  public = yes
  writable = yes
  create mask = 0777
  directory mask = 0777
  force user = nobody
  force group = nogroup

17
Ubuntu tietokoneissa / portmap daemon ei sammu
« : 08.09.06 - klo:21.35 »
Hei,
mikähän mahtaa olla vikana, kun portmap daemon ei stoppaa laisinkaan järjestelmää sammuttaessa. Ainut vaihtoehto on ottaa virrat napista pois.
Jää vain tilaan:
Stopping portmap daemon...

sama homma, kun yrittää /etc/init.d/portmap stop.

dmesg, syslog, eivät kerro mitään järkevää.

18
Asentaminen ja käyttöönotto / UTF-8 pois dapperista
« : 30.04.06 - klo:11.36 »
Hei, miten voin vaihtaa utf8:n iso 8859-10:si?

breezysta tuttu dpkg-reconfigure locales ei toimi tässä dapperissa.

Tarkoituksena olisi saada vdr käyntiin, joka vaatii iso 8859:n toimiakseen.

19
Ubuntu tietokoneissa / Vobsub Mplayer
« : 10.04.06 - klo:16.50 »
Hei,
minulla on muutamia xvid/divx pakattuja elokuvia ja niihin tekstitykset vobsub muodossa,

eli:
elokuva.avi
elokuva.idx
elokuva.rar (jonka sisällä elokuva.sub)

miten pystyn katsomaan elokuvan mplayerillä suomitekseillä purkamatta joka kerta erikseen tuota rar tiedostoa?
Windowsissa tämä onnistuu vobsub filtterillä.
Ubuntussa onnistuin saamaan suomitekstit mukaan, mutta jouduin purkamaan tuon rar tiedoston käsin.
Komento oli seuraava:
mplayer -vobsub elokuva elokuva.avi -slang fi -fs -vo xv

20
Laitealue / USB-verkkokortti RJ45 linuxiin?
« : 26.02.06 - klo:02.27 »
Onko olemassa rj45-usb verkkokorttia joka toimisi linuxissa? Jos on, niin mikä olisi paras?

Sivuja: [1] 2