Tuesday, June 19, 2007

copiare gruppi di appartenenza utente

Understanding /etc/group file
cdrom:x:24:vivek,student13,raj


molto interessante anche questo:

migrate user accounts

~~~~~~~~~~~~~~~~~~~

da feisty su virtualbox: utente std base appartiene a questi gruppi:


$ cat /etc/group | grep zagor



adm:x:4:zagor

dialout:x:20:cupsys,zagor

cdrom:x:24:haldaemon,zagor

floppy:x:25:haldaemon,zagor

audio:x:29:zagor

dip:x:30:zagor

video:x:44:zagor

plugdev:x:46:haldaemon,zagor

lpadmin:x:109:zagor

scanner:x:111:cupsys,hplip,zagor

zagor:x:1000:

admin:x:114:zagor


in definitiva quindi, basta aprire il file /etc/group con distro live e editarlo assegnando l'utente davide ai gruppi std, cosi' dovrebbe tornare a posto, senza toccare /etc/sudoers.

controllare anche che lpadmin sia espressamente dichiarato per davide, altrimenti siamo punto e a capo con cupsadmin


ho distrutto sudo!

Nel seguire la guida http://www.cups.org/articles.php?L237 con troppa fretta ho lanciato

usermod -G printadmin davide

questo ha cancellato tutti i gruppi di appartenenza dell'utente e quindi sudo non funziona piu'.

root non e' abilitato e non ho altri utenti sul sitema.

che fare?


idea: avvio con una live, accedo al file etc/sudoers e aggiungo l'utente "davide" ai sudoers.

poi, se funziona sudo, dovrei poter aggiungere tutti gli altri gruppi del default.

speriamo in bene...


http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_allow_more_sudoers

How to allow more sudoers

EDITOR=gedit sudo visudo

(nota: visudo e' un comando che edita il file /etc/sudoers in modo sicuro,
bloccando il file con un lock /etc/sudoers.tmp e controllando la sintassi
prima di salvare. la definizione della variabile EDITOR e' perche' di base
visudo apre il file con vi)

  • Append the following line at the end of file

system_username ALL=(ALL) ALL

  • Save the edited file

OR since everyone in the admin group can use sudo:

sudo adduser a_username admin

This appends the admin group to the user's supplementary group list. They will now have sudo access.

~~~~~~~~~~~~

How to set/change/enable root user password

sudo passwd root

Tuesday, June 12, 2007

installare XP al posto di vista

Dell Solution Network: risoluzione guidata dei problemi

OPERAZIONE: Install the hardware drivers on the portable computer.



Install the appropriate hardware drivers. Locate the Drivers and Utilities CD you received with your computer. 


For the system to function properly, you must install your hardware drivers in the following order:


  1. Desktop System Software or Notebook System Software
  2. Chipset or SMBus driver
  3. Processor Driver (if applicable)
  4. Video
  5. Audio (sound)
  6. Input Drivers (keyboard/mouse)
  7. Modem (Desktop computers have a separate CD for the modem)
  8. Network Card
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



istruzioni per reinstallare e scaricare i driver



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Cose da scaricare sicuramente:



Dell Notebook System Software



Dell QuickSet



Dell Support 3.4





NOTE: To install Dell Support, you must install Microsoft.Net Framework first. Click this Microsoft .NET Framework Version 1.1 Redistributable Package link. Click Download, and follow the instructions to install the program.




Friday, June 1, 2007

mythTV e dazzle hybrid TV

http://mcentral.de/wiki/index.php/Em2880#Installation
http://forums.gentoo.org/viewtopic-p-4074690.html?sid=cfa6e502d15f032e1db15b3c1d3d744d
http://www.sabayonlinux.org/wiki/index.php?title=Setup_Mythtv
http://doc.ubuntu-fr.org/pctv_hybrid_pro_stick
http://eduard.caliu.cat/
https://wiki.ubuntu.com/em28xx

dmesg
2917.188000] Linux video capture interface: v2.00
[ 2917.251000] em28xx v4l2 driver version 0.0.1 loaded
[ 2917.251000] usbcore: registered new interface driver em28xx
[ 3276.384000] usb 1-3: USB disconnect, address 4
[ 3280.123000] usb 1-3: new high speed USB device using ehci_hcd and address 5
[ 3280.241000] usb 1-3: configuration #1 chosen from 1 choice

zagor@akira ~ $ sudo lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 1241:1122 Belkin
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID eb1a:2881 eMPIA Technology, Inc.
Bus 001 Device 001: ID 0000:0000

Code:
sudo modprobe em28xx

zagor@akira ~ $ lsmod | grep em28
em28xx 45224 0
compat_ioctl32 2432 1 em28xx
ir_common 31108 1 em28xx
videodev 26624 1 em28xx
v4l2_common 23936 2 em28xx,videodev
v4l1_compa
t 13572 2 em28xx,videodev
tveeprom 15248 1 em28xx
i2c_core 21760 6 em28xx,tveeprom,i2c_i801,radeonfb,fb_ddc,i2c_algo_bit



/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/temp/build.log:

* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.20-sabayon-r3/build
* Found sources for kernel version:
* 2.6.20-sabayon-r3
>>> Unpacking source...
* hg clone http://linuxtv.org/hg/v4l-dvb ...
abort: error: Name or service not known
 [ !! ]

!!! ERROR: media-tv/v4l-dvb-hg-0.1-r2 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_unpack
ebuild.sh, line 751: Called qa_call 'src_unpack'
environment, line 4110: Called src_unpack
v4l-dvb-hg-0.1-r2.ebuild, line 47: Called mercurial_src_unpack
mercurial.eclass, line 77: Called mercurial_fetch
mercurial.eclass, line 54: Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/temp/build.log'.



EDIT: this link possibly best: 2nrds.com.
Card should be same as Pinnacle PCTV Hybrid Pro Stick (320e) (USB ID=eb1a:2881).
Card option could be (link for kernel 2.6.29):
53 -> Pinnacle Hybrid Pro
1 -> Unknown EM2750/28xx video grabber
52 -> DNT DA2 Hybrid



EDIT2: the latter link seems to work up to Hardy, maybe not on Intrepid http://ubuntuforums.org/showthread.php?t=956353
EDIT3: with kernel >2.6.24 see this article on HTPCpoint (in Italian)

EDIT4: from Pinnacle web page:


PCTV Hybrid Pro Stick (320e)






Dazzle*TV Hybrid Stick (320e)



EDIT5: latest resources found on installation:
OpenLinux (in Italian)