Clonning CentOS 6.2 in VirtualBox

Step 1

Install, update & configure your new CentOS installation. I wanted to install the Virtualbox Guest Additions and I recommend that you do the same due to the extra drivers and extensions it installs as it will make it easier later on (seamless mode and you don’t have to RIGHT CTRL every time you want to click outside the VM)

To install the Virtualbox Guest Additions do the following:

Read more »

Ubuntu Mediawiki Move LocalSettings.php Fix

If you have just installed Mediawiki from its .deb package and you get the below message:To complete the installation, move config/LocalSettings.php to the parent directory.

Then all you have to do is move the the LocationSettings.php file:

 sudo mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki

Refresh the page and it should all work nicely!

Auto Mount SMB/CIFS Shares Ubuntu 11.10

If you are always accessing network shares from your Linux desktop you might find it easier to have those shares automatically mounted at login.

This can be achieved like so on a Ubuntu installation:

Step 1

First we’ll add our remote SMB/CIFS share information to the /etc/fstab file:

sudo nano /etc/fstab

And at the end of the bottom of the fstab file add the following:

//YOURSMBCIFSSHAREIP /media/YOURSMBCIFSSHARE smbfs credentials=/home/YOURUSERNAME/.smbcred,gid=users

Simply put your SMB/CIFS share IP address and then the desired name that will appear in /media/ as. Then in the next step we’ll create a credentials folder so you’ll want to put in your username in the path there and ultimately we want to allow all users to access this share, so we add the users group.

Step 2

Now create a credentials file in your home directory /home/yourusername

 nano ~/.smbcred

And add the following in the newly created file:

username=YOURSMBUSERNAME
password=YOURSMBPASSWORD

Now you don’t have to create the .smbcred file if authentication is disabled on your share. You can leave the fields blank or remove credentials=/home/YOURUSERNAME/.smbcred.

Update Ubuntu 11.10 to Kernel 3.2

So you want to take advantage of the new features the new version of Kernel 3.2 has to offer? Fear not, simply copy and paste the below commands and you’ll be good to go!

Some of the main features along with many others of 3.2 are:

  • Ext4 now supports block sizes up to 1MB, which decreases the time spent doing block allocations.
  • Btrfs delivers detailed curruption error messages, so instead of something like ‘block xyz is bad’ you get this:
    btrfs: checksum error at logical 5085110272 on dev /dev/sde, sector 2474832, root 5, inode 32583, offset 0, length 4096, links 1 (path: default/kernel-0/Makefile)
  • Lots of filesystem performance improvements.
  • A process scheduler divides the available CPU bandwidth between all processes that need to run.
  • Inclusion of a TCP “Proportional Rate Reduction” algorithm, developed by Google, which improves latency and the time to recover.
  • Support for transmission of IPv6 packets as well as the formation of IPv6 link-local addresses and statelessly autoconfigured addresses on top of IEEE 802.15.4 networks.

For 32bit Systems


wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb

sudo dpkg -i linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
sudo dpkg -i linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb
sudo dpkg -i linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb

For 64bit Systems

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb

sudo dpkg -i linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
sudo dpkg -i linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb
sudo dpkg -i linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb

Romanian Sopcast TV Channels

I am always finding myself searching for Romanian Sopcast TV channels. Here is a list of some of the popular Romanian channels, plus some others:

TVR 1
sop://broker.sopcast.com:3912/60706/
TVR 2
sop://broker.sopcast.com:3912/80620/
ACASA
sop://broker.sopcast.com:3912/80555/
ANTENA 1
sop://broker.sopcast.com:3912/72565/
ANTENA 1HQ
sop://broker.sopcast.com:3912/80625/
ANTENA 3
sop://broker.sopcast.com:3912/90685/
ANTENA 3 S2
sop://broker.sopcast.com:3912/60713/
OTV
sop://broker.sopcast.com:3912/60708/
B1TV
sop://broker.sopcast.com:3912/74841/
KANAL D
sop://broker.sopcast.com:3912/60702/
NATIONAL TV
sop://broker.sopcast.com:3912/60704/
PRIMA TV
sop://broker.sopcast.com:3912/60586/
REALITATEA TV
sop://broker.sopcast.com:3912/74843/
Pro Tv HQ
sop://broker.sopcast.com:3912/80621/
PRO TV
sop://broker.sopcast.com:3912/73244/
PRO TV INT
sop://broker.sopcast.com:3912/90521/
PRO CINEMA
sop://broker.sopcast.com:3912/80622/
GSP TV S1
sop://broker.sopcast.com:3912/74750/
GSP TV S2
sop://broker.sopcast.com:3912/73487/
GSP TV S3
sop://broker.sopcast.com:3912/30931/
DIGI FILM
sop://218.106.52.252:3912/112229/
DIVA UNIVERSAL
sop://218.106.52.252:3912/112098/
SPORT 1
sop://218.106.52.252:3912/111947/
GSP TV DIGI
sop://broker.sopcast.com:3912/98659/
DIGI SPORT
sop://broker.sopcast.com:3912/98660/
SPORT RO
sop://broker.sopcast.com:3912/80562/
EUROSPORT
sop://broker.sopcast.com:3912/60713/
EUROSPORT 2
sop://broker.sopcast.com:3912/80398/
DISCOVERY
sop://broker.sopcast.com:3912/80623/
DISCOVERY WORLD
sop://broker.sopcast.com:3912/74633/
DISCOVERY INVESTIGATION
sop://broker.sopcast.com:3912/74634/
DISCOVERY SCIENCE
sop://broker.sopcast.com:3912/74635/
DISCOVERY TRAVEL & LIVING
sop://broker.sopcast.com:3912/74636/
NATIONAL GEOGRAPHIC
sop://broker.sopcast.com:3912/80397/
NAT GEO WILD
sop://broker.sopcast.com:3912/80626/
ANIMAL PLANET
sop://broker1.sopcast.com:3912/74631/
HBO HQ
sop://broker.sopcast.com:3912/80624/
HBO
sop://218.106.52.252:3912/97986/
HBO COMEDY
sop://broker.sopcast.com:3912/79803/
TV 1000
sop://broker.sopcast.com:3912/60703/
AXN
sop://broker.sopcast.com:3912/60709/
AXN CRIME
sop://broker.sopcast.com:3912/60711/
AXN SCI-FI
sop://broker.sopcast.com:3912/60710/
CARTOON NETWORK
sop://broker.sopcast.com:3912/80593/
DISNEY
sop://broker.sopcast.com:3912/60706/
BOOMERANG
sop://broker.sopcast.com:3912/60712/
ROMSTYLE
sop://broker.sopcast.com:3912/65649/
ETV
sop://broker.sopcast.com:3912/94855/
CN
sop://broker.sopcast.com:3912/80593/
N 1 TV
sop://218.106.52.252:3912/112661/
ROMANTICA
sop://218.106.52.252:3912/112097/
EUFORIA
sop://218.106.52.252:3912/112096/
DIGI FILM
sop://218.106.52.252:3912/112229/
DIGI SPORT 2
sop://218.106.52.252:3912/111686/
DOLCE SPORT
sop://218.106.52.252:3912/112093/
DOLCE SPORT 2
sop://218.106.52.252:3912/112094/
SPORT RO
sop://218.106.52.252:3912/111624/
EUROSPORT
sop://broker.sopcast.com:3912/93289/
MOVIES 24
sop://218.106.52.252:3912/112948
SPORT X CAME
sop://broker.sopcast.com:3912/6001/
CCTv 5
sop://broker.sopcast.com:3912/6002/
TG 6 SPORT
sop://218.106.52.252:3912/31387/
SPORT ARMENIA
sop://218.106.52.252:3912/100805/
EUROSPORT
sop://218.106.52.252:3912/93289/
DIGI SPORT PRIMERA
sop://218.106.52.252:3912/90522/
PUBLIC SPORT 2
sop://218.106.52.252:3912/56947/
ESPN
sop://218.106.52.252:3912/82153
SPORTS
sop://218.106.52.252:3912/111618/
PRO TV INTERNATIONAL
sop://218.106.52.252:3912/90686/

Windows XP SP3 & 7 SP1 Disabling Safe Services

I frequently have to tweak and optimize the operating systems that I work with. And one of the things that I do as part of my check list is to disabled unnecessary services that are safe to do so which won’t impact usability of the desktop.

The lists of services which are to be disabled was taken from Black Viper’s resourceful website.

Save the following as a batch file and run it.

Windows XP SP3


net stop Alerter
net stop ClipSrv
net stop HidServ
net stop Messenger
net stop NetDDE
net stop NetDDEdsdm
net stop RemoteAccess
net stop ERSvc
net stop cisvc
net stop Netlogon
net stop mnmsrvc
net stop xmlprov
net stop WmdmPmSN
net stop RSVP
net stop RDSessMgr
net stop RemoteRegistry
net stop seclogon
net stop SCardSvr
net stop LmHosts
net stop TlntSvr
net stop UPS
net stop WebClient
net stop W32Time
net stop WmiApSrv

Windows 7 SP1


net stop RemoteAccess
net stop NetTcpPortSharing
net stop Mcx2Svc
net stop SharedAccess
net stop WSearch
net stop WMPNetworkSvc
net stop wcncsvc
net stop StorSvc
net stop SNMPTRAP
net stop SCPolicySvc
net stop SCardSvr
net stop RemoteRegistry
net stop RpcLocator
net stop WPCSvc
net stop CscService
net stop napagent
net stop Netlogon
net stop MSiSCSI
net stop iphlpsvc
net stop TrkWks
net stop CertPropSvc
net stop PeerDistSvc
net stop bthserv
net stop AppMgmt

Xubuntu 11.10 & USB Headset Workaround

So you got yourself Xubuntu 11.10 installed and now want to Skype with your USB headset. Great, so you plug in your headset into the USB port, start Skype call a friend (or the test call bot) and BAM – audio out from the speakers and no mic recording in sight! You scratch your head… You dig around the ALSA mixer but nothing, no matter how many “Controls” you select it just wouldn’t happen and this is why ladies and gents Linux is still a basement level 10 paladin player toy OS to brag about on forums.

Read more »

Xubuntu 11.10 & Redshift Howto

Following on from my previous rant/workaround in getting your USB headset to work, it is time to save our eyes by configuring “Redshift. As the developer puts it:

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night. This program is inspired by f.lux (read here for the reason why I started this project).

In my case, simply installing it via “Ubuntu Software Center” didn’t work, why should it? It would be too easy then, so anyway.

Read more »

Scheduling sFTP Transfers with PSFTP

Recently I was asked by a client to implement some sort of system that will establish a sFTP connection to a remote server and download the desired data. Initially I was like, yeah easy, get a sFTP FOSS client, configure it with the remote servers’ details, schedule it and done!

Well… Wasn’t I in for a surprise!!! Turns out that there isn’t really any nice, simple GUI software which can be scheduled and off we go. Nope, CLI all the way baby! Of course, there is Filezilla which can establish sFTP connections and other FTP software around, including cuteFTP but for that you have to pay, and you know… I like my FOSS, so I didn’t really want to go down that route.

So I finally settled for PSFTP – Putty sFTP client, after reading up its short but comprehensive manual I got it working the way I wanted it to like so:

Read more »

OpenVPN Access Server ESXi 4.1 Installation Guide

In the this tutorial we will be going through deploying a OpenVPN Access Server (AS) from scratch in a VMWare ESXi 4.1 environment. This should be perfect for a home VPN server (due to licence limitations of a maximum of 2 users being connected at the same time)!

Good luck and read on!

Step 1

Open VMWare vSphere Client and go to File > Deploy OVF Template

Select "Deploy OVF Template from the File menu

Read more »