Developer Blog -
  • Skipper - The ORM Designer
  • VsBuilds - Parallel building
  • Pulpo - Free Skipper CLI

Tag: #system

How to add new drive to ubuntu

Step one: install drive

It's easy.... ;-)

Step two, check if drive is connected

sudo fdisk -l<br />

Create partitions

sudo fdisk /dev/sdb</p>
<p>#Create partition<br />
#----------------<br />
#press u (units to sectors)<br />
#press n (create new partition)<br />
#press p (primary partition)<br />
#press 1 (first partition)<br />
#press enter (default start at begin)<br />
#press enter (default end at end)</p>
<p>#Format partition<br />
#----------------<br />
#press L (list of formats)<br />
#?? need tye 83, don't know how to enter ;-)</p>
<p>#press W (write changes to hdd and quit)</p>
<p>#update kernel with changes we have made<br />
sudo partproble /dev/sdb</p>
<p>#format drive<br />
sudo mkfs /dev/sdb1 -t ext4</p>
<p>#create directory mount point<br />
sudo mkdir /home/dev/dev<br />
sudo chmod 777 /home/dev/dev</p>
<p>#mount it<br />
sudo mount /dev/sdb1 /home/dev/dev -t ext4</p>
<p>#try to write something<br />
touch /home/dev/dev/test.txt<br />
ls /home/dev/dev</p>
<p>#setup auto-mounting point<br />
sudo nano /etc/fstab</p>
<p>#add line<br />
/dev/sdb1 /home/dev/dev ext4 defaults 0 0</p>

External ref:

13 Feb 2013

Posted by: ludek.vodicka

Linux #Linux #system #hdd #partitions

Qt QtDBus compilation

To add DBUS to Qt compilation, add following switch

./configure -opensource -dbus ....<br />

If you get following error:

The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found.<br />
Turn on verbose messaging (-v) to ./configure to see the final report.<br />
If you believe this message is in error you may use the continue<br />
switch (-continue) to ./configure to continue.<br />

It's necessary to install libsbus:

sudo apt-get install libdbus-1-3<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
libdbus-1-3 is already the newest version.<br />

and also developer package:

sudo apt-get install libdbus-1-dev<br />

Now everything should work correctly.

24 Jan 2013

Posted by: ludek.vodicka

Qt Linux #Qt #Linux #system

How to get Linux version from command line

cat /etc/issue<br />
08 Jan 2013

Posted by: ludek.vodicka

Linux #Linux #system

Equivalent of ProcessExplorer for Linux


Linux Tools

**lsof, pmap -** Get all opened files by any process


Other info

07 Jan 2013

Posted by: ludek.vodicka

Linux #Linux #system