Linux.com

Home Linux Community Community Blogs

Community Blogs



My linux diary!!

How to save youtube without any external software!!!
First make sure that the video you want to download is open in the browser(i have tried this with firefox and chrome)
Doing this in firefox is rather simple..it can be copied from the browser cache!! it is present in the home directory /home/user_name/.mozilla/firefox/(random_text).default/cache/ and then use find(search for .flv) to get the flash video!!
But in chrome its kinda complicated..in earlier versions of flash players the vids used to be stored in the /tmp folder..but not anymore with the release of version 10.2 of  Adobe flash !!
anyways it can still be achieved
First open good ol' terminal and type either “lsof | grep Flash” or “ps x | grep flash”
The first command will give an output similar to the following


here you can see the process is “chrome” an the process ID (PID) is 4299 and the fd number is 33
now navigate to the file by typing
“cd /proc/process ID(the number)/fd(only fd not the value)”
here process id is 4299
now copy the file with fd 33 onto te desktop or the required destination with the command
“cp fd number /home/username/Desktop”
Thats it....you now have the file!! it is better to do this after the whole video has buffered to get the whole video!!
Now coming to the second command
Open the terminal again and type
“ps x | grep flash”
the output will be similar to this


here you can see the results..the first one uses libgcflashplayer.so..hence that is what we shall be using now!!
here u see only the PID number..in this case 4299
so we need to navigate to that folder
“cd /proc/process id number/fd”
here the command would be “cd /proc/4299/fd”
now list the directory and grep the flash file
“ls -l | grep Flash”


the output will be similar to the one above..here you can see that the fd 33 points to the deleted flashfile
in the tmp folder..this is the required file...copy it to the required destination!!!

 

First Post

Well ive been doing some reading trough the forums here aswell as the blogs for a while, about time for me to write something i guess :)

I actually have some questions someone hopefully can help me out with, atm my laptop is running Linux Mint11 with working proprietary drivers for the ATI gfx.

But i have also tried the Fedora livecd and i must say that i really like the interface, not to Unity-ish but instead nice looking and easy to use, but i tried a fresh install and ended upp with the black screen of death so i gave up.

Also had a look at Opensuse, but i cant really decide if i should do the switch from Ubuntu or Debian based if i should go Fedora or Opensuse, any pros and cons that can be good to know about them.

Or should i go with the one that feels best, i want a nice community if help is needed along the journey and ive bumped in to some really unfriendly ones during the years =D

 

How-to Virtualize a HP BL460c running SLES Linux 10 SP2

To begin with a bit of background on the environment may be helpful…


The need to virtualize my HP C7000 blade environment came from a requirement to consolidate our comms room estate, and retire out legacy hardware and achieve as good an occupancy on the remaining hardware as possible. The eventual plan for the left-over kit could be anything from a test-rig running Eucalyptus, or just a VMware ESXi environment running many virtual machines. – For now we are keeping it simple with a basic ESXi environment.


Most of my existing hardware is running on G1 or G2 blade kit, and I wanted to be able to just lift out the existing servers and place them in their new environment with as little disruption as possible, or developer time rewriting legacy code,etc, whilst I gave some thought to how I would rearrange my estate for maximum efficiency once all the services running in it had been virtualized, and made effectively hardware independent (within reason).
 
Here are the steps I went through, I’ve also listed a couple of gotcha’s that I wasted a bit of time on, but I’m glad I’ve thought of, so I wont be wasting time again!


I wanted to virtualize a system that was running on a HP BL460c(using its local storage not SAN or storage blades) and make it run under ESXi. I thought that this would be a simple case of connecting the ESXi cold clone CD to the blade and doing a few mouse clicks.

 This was how I proceeded, but I couldnt figure out initially why the blade was unable to see my ESXi server, even though all the correct routing between networks existed. - Then I remembered that I was running with 2 x Gb2EC network switches in the back of that c7000 chassis, and that I had had to use VLAN-tagging on all of the ports, this worked fine when the original blade OS  was ‘up’, but without the knowledge of the VLAN tags in the cold clone CD, this seemed to fail to work.


(If someone has done a cold clone in an environment where they have needed to tag the packets that are being sent from the cold clone mini-OS then I would love to have some feedback on how you did it.)


In the end I moved the blade from its original chassis and placed it in a c7000 enclosure with the VLAN-tagging disabled, and this worked great.


So I used the blade ‘SUV’ cable and connected a CD drive and keyboard and VGA screen to the blade and booted from the VMware ESXi cold clone CD, and went through the steps of identifying the ESXi system that I wanted to receive the image that the cold clone CD produced from the blade. 

I had a bit of a issue with the fact that parts of the configuration process for the cold clone environment seemed to require a mouse to click ‘Next’ as the tab key seemed to work intermittently (this could be a hardware/keyboard issue on my side), but just for reference its fine to disconnect the keyboard from the SUV cable and connect a mouse (and vice-versa) as many times as necessary throughout the installation. – Another approach which is probably possible is to connect the cold clone media using HP Virtual Media, but again I went for what was the most straightforward approach at the time.


Once the cloning process was complete I had the virtual version of the blade available on my ESXi host, but at this point it would still not boot successfully, as its expecting to see the Smart Array adapter in the blade, and so it tries to look for boot and root on /dev/cciss/c0d0pXX.
So from this point forward the files that I needed to edit on the Virtual machine image were the /etc/fstab, the /boot/grub/device.map and /boot/grub/menu.lst. 

You need to go through this and replace any reference to /dev/cciss/c0d0 with /dev/sdaX and so on. As an example here are some of my changes, which I applied by booting a liveCD and mounting each partition:
[/boot/grub/device.map]
(hd0) /dev/cciss/c0d0  —-> changes to  —>>(hd0) /dev/sda (note that there is no partition number specified)
[/boot/grub/menu.lst]
root (hd0,0)
kernel /vmlinuz-version root=/dev/cciss/c0d0p3 resume=/dev/cciss/c0d0p2
initrd /initrd-version
The above three lines changed to:
root(hd0,0)
kernel /vmlinuz-version root=/dev/sda3 resume=/dev/sda2
initrd /initrd-version
[/etc/fstab]
/dev/cciss/c0d0p3 /  –>changes to –> /dev/sda3 /
/dev/cciss/c0d0p1 /boot –>changes to –> /dev/sda1 /boot
/dev/cciss/c0d0p2 swap –>changes to –> /dev/sda2 swap

Next, I grabbed the SLES install CD/DVD and booted as if I were going to do an installation. I proceeded through the normal install steps up to where you are asked whether you are doing a new install,an update or ‘other options’. From other options you can run the System Repair Tool, and this analyses the installed system and advises you of any missing kernel modules, or ones that are now defunct (amongst other things). My CD advised me to disable debugfs and usbfs. I did not select verify packages, but only ‘check partitions’, ‘fstab enties’ and the final step rewriting the boot loader if needed.


Once the newly imaged server had booted I needed to delete the old network interfaces, and delete all entries in the /etc/udev/rules.d/30-persistent-net-names.rule, do a reboot, which automatically entered the new MAC address details for the new VMware ethernet adapter, then readded the network adapter in YaST.


After that I did a reboot, ejected the Install CD, installed VMwareTools on the Guest and I had my newly virtualized system operational again!
 
Matt Palmer 30-Aug-2011

 

openSUSE Weekly News 190 is out!

I'm pleased to announce the openSUSE Weekly News 190.

 

 

In this Issue:

  • openSUSE Conference 2011
  • Google Summer of Code Reports
  • Linus Torvalds: Linux 3.1-rc3
     

You can download it there:

We hope you enjoy the reading :-)

If you want to help us collecting interesting articles for the openSUSE Weekly News, so you can all your stuff into our new ietherpad: http://os-news.ietherpad.com/2.

Found Bugs? Please place it in our Bugtracker: http://developer.berlios.de/bugs/?group_id=12095

Features, Ideas and Improvements can placed in our Featuretracker: http://developer.berlios.de/feature/?group_id=12095

Older content can be found there.

 

Fake Ip address when use SSH with torify

When you try to connect to a server using SSH (secure shell) your ip will log in the server for example the log in here..

/var/log/auth.log

when our ip was log on targer server, its so dangerous, so know lets do a simple trick to fake our ip in the server log by using SSH, and the trick is we use Torify.. lets try

# torify ssh This e-mail address is being protected from spambots. You need JavaScript enabled to view it .1.7

So our Ip address will be anonymos, and lets check the log now

Aug 23 16:46:12 namaserver sshd[27034]: Invalid user admin from 192.168.1.8
Aug 23 16:46:12 namaserver sshd[27034]: Failed none for invalid user admin from 192.168.1.8 port 44194 ssh2
Aug 23 16:47:19 namaserver sshd[27034]: pam_unix(sshd:auth): check pass; user unknown
Aug 23 16:47:21 namaserver sshd[27034]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.7
Aug 23 10:32:05 namaserver sshd[27034]: Failed password for invalid user admin from 192.168.1.8 port 44194 ssh2

and we succes to fake ip to login into a server using SSH, but our Ip still be logged in log, if we see in the red font its our IP, and the administartor of server know if our was log into his server, remeber,, use at your own risk, its only educational purpose :D

wassalam

 

openSUSE Weekly News 189 is out!

I'm pleased to announce the openSUSE Weekly News 189.

 

 

In this Issue:

  • openSUSE Conference 2011
  • Google Summer of Code Reports
  • Sebastian Kügler: Plasma Active on OpenGL ES
     

You can download it there:

We hope you enjoy the reading :-)

If you want to help us collecting interesting articles for the openSUSE Weekly News, so you can all your stuff into our new ietherpad: http://os-news.ietherpad.com/2.

Found Bugs? Please place it in our Bugtracker: http://developer.berlios.de/bugs/?group_id=12095

Features, Ideas and Improvements can placed in our Featuretracker: http://developer.berlios.de/feature/?group_id=12095

Older content can be found there.

 

SPI Board and Officer Elections - 2011

Software in the Public Interest (SPI) is pleased to announce the results of
the recent board and officer elections.

Board elections were held from July 14-28 2011.

The board terms of David Graham and Jimmy Kaplowitz expired at this
election. In addition one board seat was vacant at the time of the election,
for a total of three available seats. David Graham chose not to stand at
this election and has retired from the board. SPI would like to thank David
for his participation on the board from 2004 - 2011. Clint Adams, Robert
Brockway, Jimmy Kaplowitz and Trevor Walkley stood for election. Jimmy
Kaplowitz was reelected to the board and Clint Adams and Robert Brockway
were newly elected to the board. SPI would like to thank all candidates for
their participation in the election and congratulate Clint Adams, Robert
Brockway and Jimmy Kaplowitz for their election to the board.

The current directors are:

    * Bdale Garbee
    * Joerg Jaspert
    * Jonathan McDowell
    * Michael Schultheiss
    * Clint Adams
    * Robert Brockway
    * Joshua D. Drake
    * Jimmy Kaplowitz
    * Martin Zobel-Helas

Officer elections were held at the board meeting on August 10, 2011. All
existing board members were elected unopposed.

The officers for 2011-2012 are:

    * President: Bdale Garbee
    * Vice-President: Joerg Jaspert
    * Secretary: Jonathan McDowell
    * Treasurer: Michael Schultheiss

SPI associated projects include:

    * ankur.org.in
    * aptosid
    * Debian
    * Drizzle
    * Drupal
    * freedesktop.org
    * Fresco
    * Gallery
    * GNUstep
    * GNU TeXmacs
    * Jenkins
    * LibreOffice
    * madwifi.org
    * OFTC
    * OpenOffice.org
    * OpenVAS
    * Open Voting Foundation
    * Open64
    * OpenWrt
    * OSUNIX
    * Path64
    * PostgreSQL
    * Privoxy
    * The HeliOS Project
    * Tux4Kids
    * Yafaray

Software in the Public Interest, Inc. is a not-for-profit corporation under
the laws of New York State.
 

Read more... Comment (0)
 

How to Configure (And Troubleshoot) Pulp: The Ultimate Repository Management Tool

Pulp is a nifty piece of python code which I recently deployed to manage some ( a lot, actually) external linux repositories. Pulp is a great tool if you want to manage a lot of repositories and related content like packages, arches, distros and erratas etc. It'll not only help you to mirror the repositories but also to do remote installs to the clients (pulp calls it consumers) and groups. So, let us get started.
Make sure that you have a good amount of disk space on your server.
There is a really good documentation here on how the installation works. I'll write about some tips and tricks which are not there in the documentation.
1. How do I install it on Scientific Linux and other Enterprise Linux Servers, nss package is not of the latest version?
You need to enable the rolling repo for in Scientific Linux for this. It is not included in the yum.conf.d by default so chances are that you'll get an older version of nss if rolling repo is not added.
2. I am getting a "SSL WrongHost" error. How do I fix that?
First, you need to pick a hostname for the server (localhost.localdomain is a bad choice). Set the hostname using command "hostname ". Now we are going to generate a certificate for this domain to get rid of ssl error.
Just do a "cd /etc/pki/tls/certs/" and there will be a localhost.crt. Just rename it to something else and run "make testcrt" to get a new certificate. Follow the said steps closely in order.
3. I installed both pulp and pulp-cds on same server and now I am getting httpd alias problem. How to resolve?
Well, I understand the enthusiasm of trying out stuff but pulp and pulp-cds are not supposed to be installed on same server, not unless you know the ins and outs of pulp and what you are doing. The problem occurs because both pulp.conf and pulp-cds.conf in conf.d has same alias defined but for different targets. So comment out the Alias in pulp-cds.conf or get rid of the pulp-cds package all together, I would do the later one.
4. I want to use the repo using http. How do I do that?
Just find out the lines mentioned below in httpd conf directory and comment them out using "#".
SSLRequireSSL
SSLVerifyClient optional_no_ca
SSLVerifyDepth 2
SSLOptions +StdEnvVars +ExportCertData

 

Tux Paint Kids Summer Drawing Contest!

Hey all, Worldlabel is sponsoring a

Tux Paint Kids Summer Drawing Contest

Grab Tux Paint, make a cool drawing, win one of 3 OLPC laptops, one of 10 Sugar-on-a-stick and other awesome prizes!

If you're not familiar with Worldlabel, the Worldlabel blog runs a lot of great Linux howtos.

The 2011 Tux Paint Summer Drawing Contest is sponsored by Worldlabel.com and is open to all children aged 3 to 12 who live anywhere in the World!

Here’s a chance to show off your talent using a great drawing program made especially for kids. Tux Paint is an award-winning drawing program you can download to your computer. Tux Paint was recently awarded SourceForge.net Project of the Month. It will run on all versions of Windows (including Tablet PC), Mac OS X 10.4 and up, Linux, FreeBSD and NetBSD. And it’s FREE!

 

PRIZES: Worldlabel.com will give out prizes to 10 winners! 1st prize wins a OLPC notepad computer, Sugar-on-a-stick loaded with Tux Paint, a Tux Paint T-shirt and button. 2nd and 3rd wins a OLPC computer, Sugar-on-a-stick and a T-shirt. 7 more winners will be chosen and will receive a Sugar-on-a-stick and a Tux Paint t-shirt.

HOW TO ENTER:

  • Download Tux Paint
  • Make your drawing in Tux Paint and save it in png format
  • Send your finished drawing in png format to This e-mail address is being protected from spambots. You need JavaScript enabled to view it and include “Tux Paint” in the email subject line
  • In the email submission include: 1) the artist’s’ name 2) the artist’s age 3) the title of drawing 4) the country where the artist lives
  • All artwork must be the contestant’s original work created on Tux Paint.
  • Only one entry per child

Entries will be judged on the quality and originality of the artwork. Extra points will be given to drawings that tell a story.

Entries must be submitted by midnight USA Easter Standard time on 12 September 2011. Winners will be announced no later than 22 September 2011.

All entries will be licensed: Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported and will be exhibited on this page.

Contest Judges
Linda Goin
Dmitri Popov
Marguarita Suti

 

Visit Tux Paint Kids Summer Drawing Contest for complete details!

 

Spreading Linux in Bridgeport Public Schools

As of right now, the schools in my hometown are undergoing vital modifications. This is long overdue. I'm worried about the upcoming generation since they are caught in a society with lots of complications. Of this generation, will include my siblings. And, I must do what I can to see them accomplish their potential. 

Since it is said, it is easy to thrive in a successful environment, yet your real strengths are tested with challenges, I decided to offer my help, armed with the skills I harvest to see Bridgeport be the city it can be. A letter stating my concerns and assistant objective has been emailed to the superintendent of the Bridgeport Public Schools. Hopefully, he is convinced. Here is the copy of the letter.

Conclusion: If we want a better future, put in the work, Everyone.

 


To: John J. Ramos, Sr/Superintendent

From: Istimsak Abdulbasir

 

Greetings Mr. Ramos,

My name is Istimsak Abdulbasir, a Linux.com Moderator and member of the “Linux Foundation” which is a non-for-profit organization that specializes in the promotion of Linux. There has been reports that the Bridgeport Public School System is undergoing vital changes. These changes are to improve student and teacher performances which, hopefully, will increase the success rate of students achieving educational standards. This is a critical step towards making education work wonders for all beneficiaries in preparation of a challenging future. As an individual with siblings currently attending, this means so much to the entire family.


Because I am a big fan of education, I would be happy to assist in this endeavor. Currently, I am involved in IT, and one of my main functions is dekstop PC revival. Purchasing computer hardware and software can be very expensive. To alternate this complication and stay “Green” at the same time, old, used, and non-working computers will be collected, gone through a series of repairs and configurations, and supplied to any school institute in the Bridgeport area in need of modern technology. The machines will have a new OS system, Ubuntu Linux; which provides better security, increased speed, more stability, easy to use and will deliver a different perspective on computer science. Since Linux is still relatively new, I’m more than happy to tutor students and teachers in its system operations.


The best part about Ubuntu Linux, it's free. You do not have to pay a penny for the software or for the latest upgrades. Using linux has the potential to help you, economically, stay within educational budget without the need to ever upgrade your systems. Acquiring software applications is a breeze since all programs are managed in an online archive. No purchasing of applications is necessary.


If you would like to know more about what I am willing to offer, you can contact me via cellphone or email. Look forward to hearing from you.

 

 

Enabling DVD playback in Ubuntu 9.10 to 11.04 - Updated Version.

How to enable DVD playback in Ubuntu 9.10 - 11.04

I like to keep things brief and to the point. Here is how to configure Ubuntu to play DVDs. Tried the procedures on Ubuntu 9.10 up to 11.04, once installed, you will be able to use any proprietary or open-source media player.
 
Using the Terminal
 
Install the libdvdread4 package (no need to add third party repositories) via command line:

# sudo apt-get install libdvdread4

libdvdread4 is the decryption mechanism that decodes DVD content. This must be installed or you will not be able to play DVDs.
Then run this program only once:

# sudo /usr/share/doc/libdvdread4/install-css.sh

libdvdread4 and libdvdread4/install-css.sh must be installed first before you install your desired media player. Once the above packages has been installed then you are free to install any media player, for instance, vlc and banshee.
 
# sudo apt-get install vlc

Installing with the Synaptic Package Manager
 
To open Synaptic, go to System>Administration> and click on Synaptic Package Manager. Or you can use the shell and type:

# sudo synaptic

Within the synaptic package manager box, click on the "search" button and type: "ubuntu-restricted-extras". A list of possible packages will be displayed. Right-click "ubuntu-restricted-extras" and choose "Install". Search for VLC by typing "vlc" in the "search" bar. Once found, right-click and choose install.  
After the initial install, go to the terminal to download and install /usr/lib/libdvdcss.so with this command: "sudo /usr/share/doc/libdvdread4/install-css.sh". After all is complete, enjoy the entertainment.

 
Page 21 of 139

Upcoming Linux Foundation Courses

  1. LFD331 Developing Linux Device Drivers
    25 Aug » 29 Aug - Virtual
    Details
  2. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
    Details
  3. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board