Tuesday, 3 March 2009

How to add an additional Super User in Ubuntu

You can give Super User status to any additional user in Ubuntu by giving SUDO access.

When you set up Ubuntu, it automatically adds the first user to the sudo group. As it doesn't automatically add additional users to the sudo group and if you want to give someone else superuser privileges on your shared system, you'll have to give them sudo access.

To add new users to sudo, you need to use the usermod command. Run sudo usermod -G admin username . However, if the user is already a member of other groups, you'll want to add the -a option, like so: sudo usermod -a -G admin username .

  • The other way to do this will be by going to System > Administration > Users and Groups.

  • Select the user you want to add to sudo, and click Properties.

The following VMware kernel modules have been found on your system that were not installed by the VMware Installer (vmci vmnet vmmon vmblock)

John@lp1:~/Desktop/vmware-distrib$ sudo perl vmware-install.pl
The following VMware kernel modules have been found on your system that were
not installed by the VMware Installer. Please remove them then run this
installer again.

vmci
vmnet
vmmon
vmblock

Execution aborted.

John@lp1:~/Desktop/vmware-distrib$ modprobe -l vmblock
/lib/modules/2.6.27-7-generic/misc/vmblock.ko
John@lp1:~/Desktop/vmware-distrib$ sudo rm -rf /lib/modules/$(uname -r)/misc/vm*

subprocess /usr/bin/dpkg returned an error code (1)

1. Open terminal, type
Quote:
cd /var/lib/dpkg/info
2. Remove the info files for the bad packages Type
Quote:
sudo rm -f virtualbox*
3.
Quote:
sudo apt-get update -f
and
Quote:
sudo apt-get upgrade
finally

sudo apt-get install virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386

It, works :)

Saturday, 6 December 2008

mkdtemp: private socket dir: Permission denied

Probelm:

/etc/gdm/Xsession: Beginning session setup... mkdtemp: private socket dir: Permission denied



Solution:

A quick

sudo chmod a+w /tmp

fixed it.

Monday, 11 August 2008

How to install Launchy on Ubuntu 8.04 (Hardy Heron)

With Launchy, you can quickly launch your programs, documents, project files, folders, and bookmarks with just a few keystrokes!

To install Launchy on Ubuntu 8.04 (Hardy Heron), you can execute the following steps:

  1. Installing libqt4-core and libqt4-gui: sudo apt-get install libqt4-core libqt4-gui
  2. Download deb package of Launchy, and save to your desktop.
  3. Open you terminal, go to Desktop folder: cd ~/Desktop
  4. Installing Launchy: sudo apt-get install launchy_2.1.1-1_i386.deb
  5. Now you can run Launchy by clicking Applications → Accessories → Launchy.

    launchy-start.png

Launchy screenshot:

launchy.png

Launchy options:

launchy-option-thumb.png

How to install Launchy on Ubuntu 8.04 (Hardy Heron)

With Launchy, you can quickly launch your programs, documents, project files, folders, and bookmarks with just a few keystrokes!

To install Launchy on Ubuntu 8.04 (Hardy Heron), you can execute the following steps:
Installing libqt4-core and libqt4-gui:
sudo apt-get install libqt4-core libqt4-gui
Download deb package of Launchy, and save to your desktop.
Open you terminal, go to Desktop folder:
cd ~/Desktop
Installing Launchy:
sudo dpkg -i launchy_2.1.1-1_i386.deb
Now you can run Launchy by clicking Applications → Accessories → Launchy.


Launchy screenshot:


Launchy options:


If you like this post, please consider buying me a bee


Tuesday, 13 May 2008

Basic vi Commands

What is vi?

pressing the [Esc] (Escape) key turns off the Insert mode.

Pisanie

a /append/ insert text before cursor, until hit

A /append/ append text to end of current line, until hit

i /insert/ insert text before cursor, until hit

I /insert/ insert text at beginning of current line, until hit

o /open and insert/ open and put text in a new line below current line, until hit

O /open and insert/open and put text in a new line above current line, until hit



Kasowanie

x kasowanie znaku w miejscu ustawienia kursora

X kasowanie takie jak backspace (z lewej strony kursora)

dd usunięcie całej linii

D skasowanie tekstu od kursora do końca wiersza

dG usuń linie do samego końca zbioru

Zapisywanie

ZZ zapisanie zbioru i wyjście z edytora

:wq zapisanie zbioru i wyjście z edytora

:q! Wyjście z vi bez zapisywania zbioru

Poruszanie się po zbiorze

j przejście do następnej linii na dół

k przejście do następnej linii w górę

l przejście do następnego znaku w prawo

h przejście do poprzedniego znaku w lewo

1G skok na początek dokumentu

G skok na koniec dokumentu

Installing Minikube on Ubuntu 22.04 LTS