Search This Blog

Tuesday, November 30, 2010

Work out, best practices

Day 1: Morning: 40 mins cardio; 30 mins abs Evening: Chest and back 90 mins Day 2: Morning: Same as Day 1 Evening: Biceps and triceps 90 mins
Day 3: Morning: Same as Day 1 Evening: Shoulders and legs 90 mins
Day 4: Morning: Same as Day 1 Evening: Chest and back 90 mins
Day 5: Morning: Same as Day 1 Evening: Biceps and triceps 90 mins
Day 6: Morning: Same as Day 1 Evening: Shoulder and legs 90 mins
Day 7: Rest

pkgutil options on solaris 10


-bash-3.00# /opt/csw/bin/pkgutil
Pkgutil 1.8.0bw, install Solaris packages the easy way.

Usage: pkgutil [option]... [package](-[version])...

-i, --install Install package
-u, --upgrade Upgrade package
-r, --remove Remove package (experimental)
-d, --download Download only
-U, --catalog Update catalog
-a, --available Show available packages
-c, --compare Compare installed packages to current
-C Same as -c but only show different versions
-e, --email=address Send e-mail with available updates
-t, --temp=site Temporarily use this site as primary for download
-s, --stream Build a package stream
-T, --target=arch:rel Specify architecture and OS release for stream
-o, --output=file File name for package stream (used with -s)
-x, --exclude=package Package to exclude
-W, --workdir=path Path to use for downloads
--config=file Use this configuration file
-y, --yes Answer yes on all prompts
-n, --nomod No modifications are made to the system
-D, --debug Debug mode
--trace Set trace mode (-v) for pkgadd/pkgrm
-h, --help Show this help
-v, --version Show version
-V, --syscheck System check

Example: pkgutil -i CSWwget (install wget and its dependencies)

Monday, November 29, 2010

To download video's from youtube on UBUNTU 10.04

u need to be root before u download this package.


root@anil-desktop:~# sudo aptitude install youtube-dl
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
The following NEW packages will be installed:
  youtube-dl
The following packages will be REMOVED:
  linux-headers-2.6.32-21{u} linux-headers-2.6.32-21-generic{u}
0 packages upgraded, 1 newly installed, 2 to remove and 112 not upgraded.
Need to get 25.0kB of archives. After unpacking 85.1MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://in.archive.ubuntu.com/ubuntu/ lucid/universe youtube-dl 2010.04.04-1 [25.0kB]
Fetched 25.0kB in 1s (19.8kB/s)   
(Reading database ... 169064 files and directories currently installed.)
Removing linux-headers-2.6.32-21-generic ...
Removing linux-headers-2.6.32-21 ...
Selecting previously deselected package youtube-dl.
(Reading database ... 150658 files and directories currently installed.)
Unpacking youtube-dl (from .../youtube-dl_2010.04.04-1_all.deb) ...
Processing triggers for man-db ...
Setting up youtube-dl (2010.04.04-1) ...
Reading package lists... Done            
Building dependency tree      
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done


This will be the output of installation , but then this won't download any video.


root@anil-desktop:~# youtube-dl http://www.youtube.com/watch?v=something
[1] 2605
root@anil-desktop:~# [youtube] Setting language
[youtube] x6WSRZvOuZ4: Downloading video info webpage
[youtube] x6WSRZvOuZ4: Extracting video information
ERROR: format not available for video


so we need to execute this command too

root@anil-desktop:~# sudo youtube-dl --update
Updating to latest stable version...
Updated to version github
now, you can download any video from youtube.

Tuesday, November 16, 2010

Install Real player in Solaris 10 x86

  • Download real player from http://www.real.com/realplayer/download
  • Choose the OS as solaris x86
  • You will get RealPlayer11Gold-x86.tar.bz2 installer
  • Create a folder Real Player and put the bz2 in that folder
  • Extract it there
  • You will have a script file called realplay
  • If you double click on it you will get a pop up. choose 'run' option.
this is not the right way of installation but for temporary purpose, it's cool!
and you need to have real player installed in the system

if its not installed

try this out...

#./Bin/setup - you need to be in Real Player folder

it will ask you where do you want the real player to be installed, like [/opt/real/RealPlayer]:

you have to just press enter

then you will have to press 'F' later when it asks...it got installed in my system, hopefully it will get installed in yours too.

Wednesday, November 3, 2010

Set the time and date in SOLARIS

First, u need to log in as root

#date mmddhhmmyy (month|day|hour|minute|year)

example
#date 1103154510

this sets the time to nov 3 , 15:45 , 2010