Friday, 26 September 2014
Saturday, 26 January 2013
Ubuntu Quantal sound not working dummy driver
Sound fix in 12.10
Sometimes after booting up Ubuntu 12.10 or Quantal sound system dies when you you access the sound in System Setting -> Sound the driver shows as Dummy no Output driver. The fix is simple you can either open a terminal and type: --( >:-))-#-> sudo alsa force-reload or su as root then type: --( >:-))-#-> alsa force-reload That's the fix. Key: my prompt or P1 value = --( >:-))-#-> what you should type = sudo alsa force-reload
Monday, 15 August 2011
Enlightenment Window Manager Alt F2 key assignment
I really loved Enlightenment WM in the old days sort of pre 13.x if I remember correctly in the days of Mandrake, not that anything is wrong with the current maintainer, I thought I'd give it a try since we seem to be caught in barbed-wire (sorry should be a quagmire) with Gnome3, Unity and the like. I sort of like e17 but soon found it wanting in that no Alt F2 to run commands without accessing the menu.
Here's a fix if you have that problem;
We are going to install gexec and bind the Alt F2 keystroke to that command so here
goes:(Actually this seems to give you g3 + uni T functionality) nah g3 does more.
If you don't already have gexec installed just type agi gexec (agi stands for apt-get install a short cut/alias you should add to your .bashrc see my previous posts with loads of other apt-get short cuts/aliases you can add to your /root/.bashrc unless you want to mod them and add a sudo in front of all the aliases in your $HOME/.bashrc Once gexec is installed, from your terminal run gexec notice the other options funky huh? or was that fun key, ok ok that wasn't funny. I was only trying to get you to notice the 'run in terminal' and 'run as root' options, back to the prg.
Key
-> = goto
From your menu -> Settings -> Settings Panel That should start your Settings (App)lication
In the Scrollable menu options at the top of the Settings App select Key Bindings
In the left pane (Key Bindings) Scroll Down to Alt + F2
In the right pane (Action) scroll down to Launch then Select Command
(just below Launch)
then at the bottom of the right hand pane you will see Action Params
delete whatever is in that field and type in the location of your freshly installed gexec which in my case was /usr/bin/gexec. To find yours at the terminal type which gexec return, that will give you the location.
This seems simple enough in one of the very early Linux Window Managers hopefully this procedure is not limited to Enlightenment might be slightly different in the other Window Managers.
Hope this helps or keeps you happy whilst they make their minds up about Gnome3/Unity/?!?.
Remember send me mail to let me know your $views help required etc. etc. etc.
Here's a fix if you have that problem;
We are going to install gexec and bind the Alt F2 keystroke to that command so here
goes:(Actually this seems to give you g3 + uni T functionality) nah g3 does more.
If you don't already have gexec installed just type agi gexec (agi stands for apt-get install a short cut/alias you should add to your .bashrc see my previous posts with loads of other apt-get short cuts/aliases you can add to your /root/.bashrc unless you want to mod them and add a sudo in front of all the aliases in your $HOME/.bashrc Once gexec is installed, from your terminal run gexec notice the other options funky huh? or was that fun key, ok ok that wasn't funny. I was only trying to get you to notice the 'run in terminal' and 'run as root' options, back to the prg.
Key
-> = goto
From your menu -> Settings -> Settings Panel That should start your Settings (App)lication
In the Scrollable menu options at the top of the Settings App select Key Bindings
In the left pane (Key Bindings) Scroll Down to Alt + F2
In the right pane (Action) scroll down to Launch then Select Command
(just below Launch)
then at the bottom of the right hand pane you will see Action Params
delete whatever is in that field and type in the location of your freshly installed gexec which in my case was /usr/bin/gexec. To find yours at the terminal type which gexec return, that will give you the location.
This seems simple enough in one of the very early Linux Window Managers hopefully this procedure is not limited to Enlightenment might be slightly different in the other Window Managers.
Hope this helps or keeps you happy whilst they make their minds up about Gnome3/Unity/?!?.
Remember send me mail to let me know your $views help required etc. etc. etc.
Tuesday, 10 May 2011
Using Linux to clean a virus from Windows
Yeah this is a bit of a headache so here's some aspirin pre-requisites
Infected Windows drive:
A bootable linux system either fully installed or from USB
If not already installed install clamav and any dependences.
Install a debian type distro for easy package management
apt-get update && apt-get upgrade -y && apt-get install clamav-freshclam clamav-dbg clamav-base clamav
you may have to set up the proxy
export http_proxy='<ip-address>:3128/'
or authenticate
export http_proxy=http://username:password@proxy.thing.com:8080/
#!/bin/sh
And a sample command is:
sudo clamscan -r /COSA_CAZZO_SCANSIONARE
Well, Once the scanning, Remove infected files with this command:
sudo clamscan -r --remove /COSA_CAZZO_SCANSIONARE
To start the GUI, type:
sudo clamtk
Hello and good scan :)
cd /tmp
1st attempt to run clamavscan -r --repair /dev/sda1
complained cannot find clamav "No supported database files"
clamav stores virus signatures in dBs in /var/lib/clamav
results
----------- SCAN SUMMARY -----------
05 Known viruses: 0
06 Engine version: 0.95.1
07 Scanned directories: 0
08 Scanned files: 0
09 Infected files: 0
10 Data scanned: 0.00 MB
11 Data read: 0.00 MB (ratio 0.00:1)
12 Time: 0.001 sec (0 m 0 s)
It means that you have no virus signatures stored in database files.
so let's get some dB scan files
wget http://database.clamav.net/daily.cvd
wget http://database.clamav.net/main.cvd
mv main.cvd /var/lib/clamav/
mv daily.cvd /var/lib/clamav/
I mounted the drive before running the scan not sure if that is necessary so
mount the drive
first make the destination
mkdir /media/sda1
mount
mount /dev/sda1 /media/sda1
run av
after mounting I run clamavscan -r --repair /media/sda1
4 hrs later results
----------- SCAN SUMMARY -----------
Known viruses: 953056
Engine version: 0.97
Scanned directories: 25256
Scanned files: 197630
Infected files: 22583
Data scanned: 55633.72 MB
Data read: 41429.39 MB (ratio 1.34:1)
Time: 10775.542 sec (179 m 35 s)
root@ubuntu:/var/lib/clamav#
clamscan -r --remove /media/sda1/
:)
Infected Windows drive:
A bootable linux system either fully installed or from USB
If not already installed install clamav and any dependences.
Install a debian type distro for easy package management
apt-get update && apt-get upgrade -y && apt-get install clamav-freshclam clamav-dbg clamav-base clamav
you may have to set up the proxy
export http_proxy='<ip-address>:3128/'
or authenticate
export http_proxy=http://username:password@proxy.thing.com:8080/
#!/bin/sh
And a sample command is:
sudo clamscan -r /COSA_CAZZO_SCANSIONARE
Well, Once the scanning, Remove infected files with this command:
sudo clamscan -r --remove /COSA_CAZZO_SCANSIONARE
To start the GUI, type:
sudo clamtk
Hello and good scan :)
cd /tmp
1st attempt to run clamavscan -r --repair /dev/sda1
complained cannot find clamav "No supported database files"
clamav stores virus signatures in dBs in /var/lib/clamav
results
----------- SCAN SUMMARY -----------
05 Known viruses: 0
06 Engine version: 0.95.1
07 Scanned directories: 0
08 Scanned files: 0
09 Infected files: 0
10 Data scanned: 0.00 MB
11 Data read: 0.00 MB (ratio 0.00:1)
12 Time: 0.001 sec (0 m 0 s)
It means that you have no virus signatures stored in database files.
so let's get some dB scan files
wget http://database.clamav.net/daily.cvd
wget http://database.clamav.net/main.cvd
mv main.cvd /var/lib/clamav/
mv daily.cvd /var/lib/clamav/
I mounted the drive before running the scan not sure if that is necessary so
mount the drive
first make the destination
mkdir /media/sda1
mount
mount /dev/sda1 /media/sda1
run av
after mounting I run clamavscan -r --repair /media/sda1
4 hrs later results
----------- SCAN SUMMARY -----------
Known viruses: 953056
Engine version: 0.97
Scanned directories: 25256
Scanned files: 197630
Infected files: 22583
Data scanned: 55633.72 MB
Data read: 41429.39 MB (ratio 1.34:1)
Time: 10775.542 sec (179 m 35 s)
root@ubuntu:/var/lib/clamav#
clamscan -r --remove /media/sda1/
:)
Labels:
clamav,
proxy,
remove windows virus from linux
Thursday, 14 April 2011
Copy flv files from firefox 4
Disclaimer
Downloading copyrighted material is illegal in some places which could include where you live, so make sure you only use this technique to download videos which are legal for YOU to download this would include getting the author's permission or say you lost your user details for a video upload site like YouTube, and there is no facility to retrieve YOUR videos . OK?
That was the disclaimer stuff, well let's start. It would seem in versions > 10.x the flash plugin is actually playing an already deleted file so... lets track down that file.
1) Load the video in a browser, and check the output of the following command @terminal:
$ lsof | grep -i flash
Result:
single line:
plugin-co 25546 alvin 17u REG 8,2 31286337 787220 /tmp/FlashXXepl8fa (deleted)
The output of the cmd gives a file descriptor open to a “deleted” file, /tmp/FlashXXepl8fa so the flash plugin plays the file and immediately deletes the file thus normal nix tools will not be able to access the file in /tmp notice the 17u in your flv file location so here goes.
2) To confirm again type @terminal:
$ ls -l /proc/16864/fd/* | grep -i /tmp/Flash
Result:
single line:
lrwx------ al al 64 2011-04-14 14:08 /proc/16864/fd/17 -> /tmp/FlashXXTep18fa (deleted)
3) To get your freshly cooked flv file again type @terminal:
$ cat /proc/16864/fd/17 > <filenameofyourchoice>.flv
That's it copy the output of the proc file process to a filename and location of your choice.
Hope this helps and does not get anyone in trouble but out of trouble.
4) To speed things put it all in a script.
Idea of script: output the flv file type @terminal:
outflv.sh <yourfilename.flv>
Contents of outflv.sh:
#!/usr/bin/env bash
## syntax: outflv.sh $HOME/Videos/somefile.flv
for flashpid in $(pgrep -f flashplayer.so); do
cd "/proc/$flashpid/fd"
for video in $(file * | grep '/tmp/Flash' | sed 's/\(^[0-9]*\).*/\1/g'); do
cat /proc/$flashpid/fd/$video > $1
done
done
Downloading copyrighted material is illegal in some places which could include where you live, so make sure you only use this technique to download videos which are legal for YOU to download this would include getting the author's permission or say you lost your user details for a video upload site like YouTube, and there is no facility to retrieve YOUR videos . OK?
That was the disclaimer stuff, well let's start. It would seem in versions > 10.x the flash plugin is actually playing an already deleted file so... lets track down that file.
1) Load the video in a browser, and check the output of the following command @terminal:
Result:
single line:
plugin-co 25546 alvin 17u REG 8,2 31286337 787220 /tmp/FlashXXepl8fa (deleted)
The output of the cmd gives a file descriptor open to a “deleted” file, /tmp/FlashXXepl8fa so the flash plugin plays the file and immediately deletes the file thus normal nix tools will not be able to access the file in /tmp notice the 17u in your flv file location so here goes.
2) To confirm again type @terminal:
$ ls -l /proc/16864/fd/* | grep -i /tmp/Flash
Result:
single line:
lrwx------ al al 64 2011-04-14 14:08 /proc/16864/fd/17 -> /tmp/FlashXXTep18fa (deleted)
3) To get your freshly cooked flv file again type @terminal:
$ cat /proc/16864/fd/17 > <filenameofyourchoice>.flv
That's it copy the output of the proc file process to a filename and location of your choice.
Hope this helps and does not get anyone in trouble but out of trouble.
4) To speed things put it all in a script.
Idea of script: output the flv file type @terminal:
outflv.sh <yourfilename.flv>
Contents of outflv.sh:
#!/usr/bin/env bash
## syntax: outflv.sh $HOME/Videos/somefile.flv
for flashpid in $(pgrep -f flashplayer.so); do
cd "/proc/$flashpid/fd"
for video in $(file * | grep '/tmp/Flash' | sed 's/\(^[0-9]*\).*/\1/g'); do
cat /proc/$flashpid/fd/$video > $1
done
done
Labels:
download,
files,
flash 10.x,
flv
Subscribe to:
Posts (Atom)