Monday, April 22, 2019
dns blackhole with bind nameserver
If you don't want to buy a new machine only for setting ap an adblocker you can use your own machine and a personal dns server. Read the following, is very easy to do, nothing special complicated.
I use bind nameserver on linux but you can use whatever operating system, i think bind nameserver is running on windows too.
Nothing special here, we want to block some sites at DNS server level so to all apps running on machines using that specific dns server aren't capable of reaching those sites.
Appart from configuration files bundled with bind nameserver, you need only two more files and a little modification in named.conf file.
In named.conf file add this at the end:
include "/etc/bind/blocked.conf.zones";
Create a new file in /etc/bind an name that file blocked.conf.zones
My blocked.conf.zones file is like this:
zone "pagead2.googlesyndication.com" { type master; notify no; file "/etc/bind/null.zone.file"; };
zone "googleadservices.com" { type master; notify no; file "/etc/bind/null.zone.file"; };
zone "myphonenumbers-pa.googleapis.com" { type master; notify no; file "/etc/bind/null.zone.file"; };
We need to create a new file in the same directory /etc/bind. Name that file null.zone.file
My null.zone.file file is like this:
$TTL 600
@ 1D IN SOA localhost root (
42 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
5 IN A 127.0.0.1
; * IN A 127.0.0.1
And that's it! Nothing more, nothing less!
For every site you want to block you need to add a new line in blocked.conf.zones file, i.e. if you want to block adservices.com site you will have to add a new line and write
zone "adservices.com" { type master; notify no; file "/etc/bind/null.zone.file"; };
That's it!
If you want a large list with malicious sites you can search on duckduckgo, there's a lot of lists there!
=========
One more step, don't forget to set your dns server to match your local dns server. (instead of 8.8.8.8 or 4.2.2.1 or other internet nameservers you have to use 127.0.0.1 or localhost or whatever interface you are using in bind settings. Listen ports, net interfaces and access control list (i.e. who can use your dns server) - all these settings made for bind nameserver are up to you and must be configured by you - every machine has a specific environment. Fortunately, these settings are not complicated at all and you can do it after 5 minutes reading on internet.
=============
Tested and working on entire LAN, for pc's and phones!@
Wednesday, August 23, 2017
sharing folder between android virtual machine and linux using virtualbox
For that, you must have a samba server or a ftp server running on your host machine.
After that, go to virtual machine network settings and choose bridged adapter - not NAT.
Install es file manager from play store, go to network - lan or ftp - and scan for servers. You'll find the samba server or the ftp server who are running on the host machine. Connect to server, fill the authorization fileds with your credentials, and that's it!
(something more: i installed android because i needed snapseed to edit some images in a specific way but the application doesn't work on android virtual machine, and for that matter, nor facebook app. )
Tuesday, August 24, 2010
linux and radeon 3200
Oficial ATI drivers , fglrx , sucks if you want to use powersaving mode for processor! Best i have managed was white strips drifting on my screen ! To see a decent image you must disable powersave mode and that's no good !
If you give up fglrx and want to use open source drivers ( radeon or radeonhd ) wich are installed by default ( i use linux mint 9 ) that's good until you want to use your tv tunner ! Tvtime suddenly disappear with an ugly message that you need yuy2 overlay support ! But radeon drivers has support for xvideo so you must have to do something !
Newer linux distributions don't have an xorg.conf file in etc/X11. So you have to use the old way : log in to console ( Xorg is stopped ) and run Xorg -configure. That way you will have a basic xorg.conf file in its place ! Edit this file , keep your hardware specific information but add some specific rules ! My xorg.conf looks like that :
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "ServerFlags"
Option "AIGLX" "On"
# this section is added by me
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "dri2"
Load "record"
Load "v4l" # this line is added by me
Load "freetype" #this line is added by me
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
#DisplaySize 310 230 # mm
Identifier "Monitor0"
VendorName "PHL"
ModelName "PHILIPS 107E6"
HorizSync 30.0 - 71.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection
Section "Device"
### Available Driver options are:-
###
###
###
#Option "NoAccel"
#Option "SWcursor"
#Option "Dac6Bit"
#Option "Dac8Bit"
#Option "BusType"
#Option "CPPIOMode"
#Option "CPusecTimeout"
#Option "AGPMode"
#Option "AGPFastWrite"
#Option "AGPSize"
#Option "GARTSize"
#Option "RingSize"
#Option "BufferSize"
#Option "EnableDepthMoves"
#Option "EnablePageFlip"
#Option "NoBackBuffer"
#Option "DMAForXv"
#Option "FBTexPercent"
#Option "DepthBits"
#Option "PCIAPERSize"
#Option "AccelDFS"
#Option "IgnoreEDID"
#Option "CustomEDID"
#Option "DisplayPriority"
#Option "PanelSize"
#Option "ForceMinDotClock"
#Option "ColorTiling"
#Option "VideoKey"
#Option "RageTheatreCrystal"
#Option "RageTheatreTunerPort"
#Option "RageTheatreCompositePort"
#Option "RageTheatreSVideoPort"
#Option "TunerType"
#Option "RageTheatreMicrocPath"
#Option "RageTheatreMicrocType"
#Option "ScalerWidth"
#Option "RenderAccel"
#Option "SubPixelOrder"
#Option "ShowCache"
#Option "ClockGating"
#Option "VGAAccess"
#Option "ReverseDDC"
#Option "LVDSProbePLL"
#Option "AccelMethod"
#Option "DRI"
#Option "ConnectorTable"
#Option "DefaultConnectorTable"
#Option "DefaultTMDSPLL"
#Option "TVDACLoadDetect"
#Option "ForceTVOut"
#Option "TVStandard"
#Option "IgnoreLidStatus"
#Option "DefaultTVDACAdj"
#Option "Int10"
#Option "EXAVSync"
#Option "ATOMTVOut"
#Option "R4xxATOM"
#Option "ForceLowPowerMode"
#Option "DynamicPM"
#Option "NewPLL"
#Option "ZaphodHeads"
Option "DRI" "On" #this line is added by me
Option "AccelMethod" "EXA" #idem
Identifier "Card0"
Driver "radeon"
VendorName "ATI Technologies Inc"
BoardName "Radeon HD 3200 Graphics"
BusID "PCI:1:5:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
#if you want a specific resolution to load at boot you can add a line with Mode #"..." here
EndSubSection
EndSection
Section "DRI"
Group "video"
Mode 0660
#this section is added by me
EndSection
Now reboot your machine and enjoy tvtime . By the way,before that, don't forget to add a line in etc/modprobe.d/alsa-base.conf like that :
options saa7134 card=xxx tuner=yyy
(where xxx and yyy are specific to your hardware) !
Here come the amazing thing : tvtime is using no more than 8-10 % cpu time ! I know , for sure, that in my other linux distribution, wich i used before, tvtime usually was running somewhere between 24 % and 35 % cpu time. And vlc is using, too, small cpu time - under 27-28% wich is , again, excelent. Take a look at this pictures if you don't trust my words ( look at the graph history, not at the numbers - probabily cpu numbers are big because the capture software ) !
Saturday, May 1, 2010
login failed
Ce se mai întîmplă cînd pornesc mașina linux fără firewall și cu o grămadă de servere de test rulînd?Mai nimic,decît niște oameni ( de fapt niște programe automate ) care vor neapărat să intre pe contul de administrator sau să trimită mailuri de pe calculatorul meu sau cine știe ce lucruri dubioase ! :) :) Poți să fi sigur că și pe calculatorul tău se întîmplă cam la fel-chiar dacă ai windows!
May 1 15:22:09 sshd[6553]: Did not receive identification string from 200.164.137.102
May 1 15:24:26 sshd[6556]: Invalid user admin from 200.164.137.102
May 1 15:24:26 sshd[6556]: pam_unix(sshd:auth): check pass; user unknown
May 1 15:24:26 sshd[6556]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=200.164.137.102
May 1 15:24:28 sshd[6556]: Failed password for invalid user admin from 200.164.137.102 port 18708 ssh2
Apr 30 13:39:03 sshd[7743]: Failed password for root from 118.36.130.205 port 45970 ssh2
Apr 30 13:39:06 sshd[7752]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=118.36.130.205 user=root
Apr 30 13:39:08 sshd[7752]: Failed password for root from 118.36.130.205 port 46291 ssh2
Apr 30 13:39:11 sshd[7754]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=118.36.130.205 user=root
Apr 30 13:39:13 sshd[7754]: Failed password for root from 118.36.130.205 port 46603 ssh2
Apr 30 13:39:16 sshd[7756]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=118.36.130.205 user=root
Apr 30 13:39:17 sshd[7756]: Failed password for root from 118.36.130.205 port 46936 ssh2
Apr 27 21:19:13 sshd[14408]: Did not receive identification string from 190.12.89.184
Apr 27 21:21:27 sshd[14419]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=190.12.89.184 user=root
Apr 27 21:21:28 sshd[14419]: Failed password for root from 190.12.89.184 port 37776 ssh2
Apr 27 21:21:35 sshd[14424]: Invalid user fluffy from 190.12.89.184
Apr 27 21:21:35 sshd[14424]: pam_unix(sshd:auth): check pass; user unknown
Apr 27 21:21:35 sshd[14424]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=190.12.89.184
Apr 27 21:21:37 sshd[14424]: Failed password for invalid user fluffy from 190.12.89.184 port 37821 ssh2
Apr 27 21:21:45 sshd[14426]: Invalid user admin from 190.12.89.184
Apr 27 21:21:46 sshd[14426]: pam_unix(sshd:auth): check pass; user unknown
Apr 27 21:21:46 sshd[14426]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=190.12.89.184
Apr 27 21:21:47 sshd[14426]: Failed password for invalid user admin from 190.12.89.184 port 39715 ssh2
Apr 27 21:21:59 sshd[14428]: Invalid user test from 190.12.89.184
Apr 29 15:39:37 sshd[7589]: reverse mapping checking getaddrinfo for mailserver.tesync.tv [123.176.41.150] failed - POSSIBLE BREAK-IN ATTEMPT!
Apr 29 15:39:37 sshd[7590]: reverse mapping checking getaddrinfo for mailserver.tesync.tv [123.176.41.150] failed - POSSIBLE BREAK-IN ATTEMPT!
Apr 29 15:39:37 sshd[7590]: Invalid user marine from 123.176.41.150
Apr 29 15:39:37 sshd[7589]: Invalid user globus from 123.176.41.150
Apr 29 15:39:37 sshd[7590]: pam_unix(sshd:auth): check pass; user unknown
Apr 29 15:39:37 sshd[7590]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=123.176.41.150
Apr 29 15:39:37 sshd[7589]: pam_unix(sshd:auth): check pass; user unknown
Apr 29 15:39:37 sshd[7589]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=123.176.41.150
Apr 29 15:39:39 sshd[7590]: Failed password for invalid user marine from 123.176.41.150 port 41283 ssh2
Apr 29 15:39:39 sshd[7589]: Failed password for invalid user globus from 123.176.41.150 port 40889 ssh2
Apr 29 15:39:42 sshd[7594]: reverse mapping checking getaddrinfo for mailserver.tesync.tv [123.176.41.150] failed - POSSIBLE BREAK-IN ATTEMPT!
Apr 29 15:39:42 sshd[7594]: Invalid user marine from 123.176.41.150
Apr 29 15:39:42 sshd[7594]: pam_unix(sshd:auth): check pass; user unknown
Apr 29 15:39:42 sshd[7594]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=123.176.41.150
Apr 29 15:39:43 sshd[7593]: reverse mapping checking getaddrinfo for mailserver.tesync.tv [123.176.41.150] failed - POSSIBLE BREAK-IN ATTEMPT!
Apr 29 15:39:43 sshd[7593]: Invalid user condor from 123.176.41.150
Apr 30 12:48:20 sshd[6509]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=70-88-230-126-smc-md.hfc.comcastbusiness.net user=root
Apr 30 12:48:22 sshd[6509]: Failed password for root from 70.88.230.126 port 33944 ssh2
Apr 30 12:48:23 sshd[6511]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=70-88-230-126-smc-md.hfc.comcastbusiness.net user=root
Apr 30 12:48:25 sshd[6511]: Failed password for root from 70.88.230.126 port 34845 ssh2
Apr 30 12:48:27 sshd[6513]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=70-88-230-126-smc-md.hfc.comcastbusiness.net user=root
Apr 30 12:48:29 sshd[6513]: Failed password for root from 70.88.230.126 port 35836 ssh2
Apr 30 12:48:30 sshd[6515]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=70-88-230-126-smc-md.hfc.cApr 30 13:39:03 luc sshd[7743]: Failed password for root from 118.36.130.205 port 45970 ssh2
Apr 30 13:39:06 sshd[7752]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=118.36.130.205 user=root
Apr 30 13:39:08 sshd[7752]: Failed password for root from 118.36.130.205 port 46291 ssh2
Apr 30 13:39:11 sshd[7754]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=118.36.130.205 user=root
Apr 30 13:39:13 sshd[7754]: Failed password for root from 118.36.130.205 port 46603 ssh2
Apr 30 13:39:16 sshd[7756]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=118.36.130.205 user=root
Apr 30 13:39:17 sshd[7756]: Failed password for root from 118.36.130.205 port 46936 ssh2
omcastbusiness.net user=root
Apr 30 12:48:33 sshd[6515]: Failed password for root from 70.88.230.126 port 36827 ssh2
Apr 30 12:48:34 sshd[6517]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=70-88-230-126-smc-md.hfc.comcastbusiness.net user=root
Apr 30 12:48:36 sshd[6517]: Failed password for root from 70.88.230.126 port 37845 ssh2
Apr 30 12:48:37 sshd[6519]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=70-88-230-126-smc-md.hfc.comcastbusiness.net user=root
Apr 30 12:48:39 sshd[6519]: Failed password for root from 70.88.230.126 port 38804 ssh2
Apr 30 12:48:41 sshd[6521]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=70-88-230-126-smc-md.hfc.comcastbusiness.net user=root
Apr 30 12:48:43 sshd[6521]: Failed password for root from 70.88.230.126 port 39811 ssh2
Apr 30 12:48:44 sshd[6523]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=70-88-230-126-smc-md.hfc.comcastbusiness.net user=root
May 1 16:45:18 sshd[11889]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=88-158-153-74.asconet.ro
May 1 16:45:20 sshd[11889]: Failed password for invalid user gnavarrete from 88.158.153.74 port 52462 ssh2
May 1 16:45:22 sshd[11891]: Invalid user gramos from 88.158.153.74
May 1 16:45:22 sshd[11891]: pam_unix(sshd:auth): check pass; user unknown
May 1 16:45:22 sshd[11891]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=88-158-153-74.asconet.ro
May 1 16:45:24 sshd[11891]: Failed password for invalid user gramos from 88.158.153.74 port 52933 ssh2
May 1 16:45:25 sshd[11893]: Invalid user hrodriguez from 88.158.153.74
May 1 16:45:25 sshd[11893]: pam_unix(sshd:auth): check pass; user unknown
May 1 16:45:25 sshd[11893]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=88-158-153-74.asconet.ro
May 1 16:45:27 sshd[11893]: Failed password for invalid user hrodriguez from 88.158.153.74 port 53334 ssh2
May 1 16:45:29 sshd[11896]: Invalid user informatica from 88.158.153.74
May 1 16:45:29 sshd[11896]: pam_unix(sshd:auth): check pass; user unknown
May 1 16:45:29 sshd[11896]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=88-158-153-74.asconet.ro
May 1 16:45:31 sshd[11896]: Failed password for invalid user informatica from 88.158.153.74 port 53711 ssh2
May 1 16:45:33 sshd[11898]: Invalid user inter from 88.158.153.74
May 1 16:45:33 sshd[11898]: pam_unix(sshd:auth): check pass; user unknown
May 1 16:45:33 sshd[11898]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=88-158-153-74.asconet.ro
May 1 16:45:36 sshd[11898]: Failed password for invalid user inter from 88.158.153.74 port 54220 ssh2
Thursday, December 11, 2008
comenzi linux
mv /Traian Basescu /dev/null
mv /Mircea Geoana /dev/null
mv /Emil Boc /dev/null
mv /politicieni-romani /dev/null
mv /zisi-analisti /dev/null
mv /antena3-realitatea /dev/null
Cele de mai sus ar putea fi un cadou virtual,ipotetic făcut românilor cu prilejul zilei naţionale a României!
Sunday, December 7, 2008
video mp4 aac linux
Iată comanda linux pentru transformarea unui fişier video de pe un dvd într-un fişier video mp4(video->mpeg4 ,audio->aac,SBR Extension).Dintr-un fişier vob de 1 GB va rezulta un fişier mp4 de aproximativ 300MB cu o calitate excelentă!
Necesar:pachetul ffmpeg,librăria faad pentru codare,gpac pentru unirea fişierelor.
Comanda:
ffmpeg -i fisier.VOB -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -ar 22050 -mbd rd -flags +4mv+aic -trellis 2 -aic 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -r 30000/1001 -title X -f mp4 fisier.mp4
După ce dai comanda ia o pauză de cafea!Cu atît mai lungă cu cît ai un procesor mai slab! :) :) NU uita să înlocuieşti "fisier.VOB" şi "fişier.mp4" cu denumirile reale şi calea fişierelor tale! În caz de eroare urmăreşte logul şi instalează ce-ţi lipseşte!
Dacă transformi prin metoda de mai sus mai multe fişiere video .vob de pe DVD şi vrei să le uneşti într-unul singur, la sfîrşit vei da comanda:
MP4Box -cat fisier1.mp4 -cat fisier2.mp4 fisier-final.mp4
Unde "fisier1","fisier2",etc. sînt fişsierele pe care vrei să le concatenezi în "fisier-final"!
Wednesday, December 3, 2008
mp4 audio video mobil
Dintr-un motiv sau altul,bătrînul meu sony k700 nu recunoaşte formatul audio aac codat cu ffmpeg şi se încăpăţînează să redea formatul audio aac care este codat numai cu nero audio encoder!
Asta înseamnă că toate videoclipurile mp4 făcute cu ffmpeg(video mpeg4,audio aac) sînt inutilizabile pe acest telefon! În windows problema s-ar rezolva foarte repede:dai o raită pe torent,iei ce-ţi trebuie şi gata! Numai că n-am chef să folosesc windows şi mă ambiţionez să rezolv problema utilizînd linux!După vreo 5 ore de căutat pe net,instalat programe şi probe repartizate în 2 zile rezultatul este mai mult decît mulţumitor şi în plus am şi senzaţia de mulţumire pe care cei care folosesc linux în mod curent o cunosc deja! :) Rezultatele cred că sînt valabile pentru orice telefon care recunoaşte video mpeg4 şi audio aac codat cu nero encoder-probabil cel mai bun program de transformare în format aac la ora actuală!
Necesar:pachetul ffmpeg,nero aac audio encoder şi mp4box(gpac proiect)!Nu strică să mai ai tot ce are legătură cu mpeg,avi,mpg,wav!Eu le-am avut deja aproape pe toate-instalate prin apt sau compilate local- aşa că nu au apărut erori la executarea comenzilor!La tine,în caz că apar erori,urmăreşti logul vezi ce lipseşte şi instalezi!
Soluţie:Se extrage numai partea video din fişierul iniţial avi şi se codează cu ffmpeg în format mpeg4,cu extensia mp4.Tot din acelaşi fişier iniţial se extrage numai partea audio şi se transformă într-un fişier audio în format wav.Acesta,la rîndul lui,se transformă cu nero aac encoder în fişier audio în format aac cu extensia mp4. Ultima parte:se combină cu ajutorul programului mp4box fişierul video mpeg4 şi fişierul audio aac rezultînd videoclipul final cu sonor codat de nero encoder(ceea ce este esenţial)!Calitatea video şi audio este foarte bună iar dimensiunea fişierului final este mult mai mică decît a unuia obţinut prin programe comerciale!
Probleme:pachetul gpac care conţine şi programul mp4box nu s-a compilat şi instalat local pînă ce n-am dezactivat suportul pentru openGL. (--disable opengl).Problema asta m-a costat vreo 50 minute de încercări şi reîncercări pentru că pachetul nu este disponibil decît sub formă de surse!
Comenzi şi capturi de ecran:
fisier iniţial:anggun.avi( vxid4 şi mp3)
fişier audio wav: anggun.wav
fişier audio aac:anggun-audio.mp4
fişier video mpeg4:anggun-video.mp4
fisier final:anggun-f.mp4
Extragerea pistei audio din fisierul iniţial şi transformarea lui în fişier wav:
ffmpeg -i anggun.avi -acodec pcm_s16le -ar 44100 -ac 2 anggun.wav

Extragerea pistei video din fişierul iniţial şi transformarea în fişier video mpeg4:
ffmpeg -i anggun.avi -vcodec mpeg4 -b 1200kb -an -mbd 2 -flags +4mv -trellis 2 -aic 2 -cmp 2 -subcmp 2 -s 128x96 -r 30000/1001 -title X -f mp4 anggun-video.mp4

De remarcat,dimensiunea:128x96,o dimensiune acceptabilă pentru telefonul meu!Pentru al tău caută pe net şi vezi ce dimensiuni sînt acceptate pentru fişiere video!
Codarea fişierului audio wav în fişier audio aac:
neroAacEnc -br 64000 -he -if /home/luc/anggun.wav -of /home/luc/anggun-audio.mp4

Unirea pistei audio aac cu pista video mpeg4 şi obţinerea fişierului final:
MP4Box -add /home/luc/anggun-video.mp4 -add /home/luc/anggun-audio.mp4 /home/luc/anggun-f.mp4

La executarea ultimei comenzi trebuie sa te afli în directorul executabilului mp4box,de aceea vei furniza calea completă a fişierelor!
Dacă te pricepi la programe bash şi faci vreun fişier care să cuprindă toate comenzile de mai sus şi eventual să fie capabil să proceseze fişierele video iniţiale dintr-un întreg director nu uita să mi-l trimiţi şi mie! :) Tks!
Sunday, November 9, 2008
codare mp4 linux
Pentru a transforma o melodie din formatul mp4 in format mp4 (aac) eu urmez paşii urmatori:
-folosesc audacity pentru transformarea mp3-ului intr-un fişier .wav
-utilizez neroAacEnc pentru transformarea fisierului .wav in fişier mp4(HE AAC Profile).
Codecul nero se poate descărca de la adresa următoare: nero aac codec(click aici)
Se dezarhivează şi se copiază pur şi simplu fişierele neroAacEnc şi neroAacDec in directorul usr/local/bin sau usr/bin. Important:n-am găsit nicăieri sfatul de a pune aceste fişiere într-unul din directoarele de mai sus aşa că vreo oră m-am tot întrebat de ce nu merge să rulez codecul din directorul /home/../nero?Deci,dacă nu vă rulează din directorul unde aţi copiat fişierele,mutaţi-le în /usr/local/bin.
Wednesday, August 6, 2008
cat vmlinuz>/dev/audio
dai de niste coduri satanice!"
-"Asta nu e nimic:daca-l pui de la inceput catre sfirsit se instaleaza Windows!"
Cel mai bun accelerator pentru Windows este acela care merge cu 9.8m/s2.
Veni,vidi,Linux!
Calculatoarele seamana cu masinile de aer conditionat:inceteaza sa functioneze
corect daca deschizi Windows(fereastra).
Before the dark times...before Microsoft!
Un calculator fara Windows in plus egal cu un avocat fara procese in plus.
Windows Vista creat pentru internet! Internetul creat pentru Linux.
Purtatorul de cuvint Microsoft:"Jaful la drumul mare este profesiunea noastra!"
Microsoft yoga:"fi una cu ecranul albastru"!
C:/WINDOWS/RUN C:/WINDOWS/CRASH C:/ME/FDISK /usr/src/linux
Linux - It is now safe to turn on your computer(Acum puteti deschide computerul in siguranta).
Windows:unde vrei sa mergi astazi?(apasa ok)
Apple:unde vrei sa mergi maine?(apasa ok)
Linux: Mergi odata sau nu?
Se scrie Linux dar se citeste "Fara windows"
Se scrie Windows dar se citeste:"oooohhhh nuuuuuu,iar eroare!"
Linux:transforma un mini-laptop intr-o statie de lucru puternica!
Windows:transforma o statie de lucru puternica intr-un mini-laptop
My computer, my documents, my briefcase, my ASS!
Hiroshima '45...Cernobil '86...Windows '95... Windows '98...Windows
Vista..punct.
Si altele la fel de frumoase se gasesc la Humorix.
Tuesday, August 5, 2008
transfer fisiere pe telefoanele mobile folosind linux
Primul pas:apt-get install obexftp!
Doi:se conecteaza cablul si telefonul la mufa usb.
Trei:se urmareste in /dev aparitia unui nou dispozitiv.Pentru vechiul meu telefon Sony K700i a aparut ttyUSB0.La alte modele mai vechi ar trebui sa fie tot un dispozitiv tip tty. La telefoanele mai noi cu card de memorie cred ca se poate folosi /dev/sda si se vor monta cu comanda obisnuita:
mount -t vfat /dev/sda1 /mnt/telefon
si in continuuare se foloseste orice manager de fisiere.
Patru;se lanseaza helpul pentru a sti comenzile: obexftp -help
Cinci:ne conectam la telefon si aflam directoarele prezente:
obexftp -t /dev/ttyUSB0 -l
Sase:trimit un fisier din calculator in directorul Sunete/Trance
obexftp -t /dev/ttyUSB0 -c Sunete/Trance -p ANGELA.mp4
atentie:transferul dureaza destul de mult(asa e cu telefoanele vechi)!:)
Sapte:Iau un fisier de pe telefon din directorul Sunete/Trance.Fiserul se va salva in directorul curent de lucru de pe calculator:
obexftp -t /dev/ttyUSB0 -g Sunete/Trance/11.mp4
Orice operatie efectuata incepe cu conectarea la telefon folosind -t.
Doua capturi de ecran cu operatiile de mai sus se pot accesa AICI si AICI!
Instalarea obexftp a durat 2 minute,spatiul ocupat fiind sub 10MB cu tot cu librariile necesare.Telefonul este detectat imediat si totul functioneaza ca uns! Enjoy GNU/Linux! :)



