change color scheme in vim example
:colorscheme morning
to add colorschemes download colorschemes and copy to
/usr/share/vim/vim74/colors
to set colorscheme as default edit
/etc/vimrc
dont forget to add
set t_Co=256
syntax on
Saturday, August 17, 2013
Tuesday, August 13, 2013
Sunday, August 4, 2013
Usseradd
To add users to the system
#useradd -m -g users -G wheel,storage,disk,video,power,optical,ftp -s /bin/bash username
to set a password for new user
#passwd username
to check if a user is in a group open
#nano /etc/group
if you forget to add him to a group use
#gpasswd -a username group
#useradd -m -g users -G wheel,storage,disk,video,power,optical,ftp -s /bin/bash username
to set a password for new user
#passwd username
to check if a user is in a group open
#nano /etc/group
if you forget to add him to a group use
#gpasswd -a username group
| Groups | Purpose |
|---|---|
| audio | Direct access to sound hardware, for all sessions (requirement is imposed by both ALSA and OSS). Local sessions already have the ability to play sound and access mixer controls. |
| camera | acces to digital cameras |
| disk | Access to block devices not affected by other groups such as optical, floppy, and storage. |
| floppy | Access to floppy drives. |
| games | Access to some game software. |
| locate | Right to use updatedb command |
| lp | Access to printer hardware; enables the user to manage print jobs |
| network | Right to change network settings such as when using NetworkManager |
| networkmanager | Requirement for your user to connect wirelessly with NetworkManager. This group is not included with Arch by default so it must be added manually |
| optical | Access to optical devices such as CD and DVD drives |
| power | Right to use Pm-utils (suspend, hibernate...) and power management controls |
| scanner | Access to scanner hardware |
| storage | Access to removable drives such as USB hard drives, flash/jump drives, MP3 players; enables the user to mount storage devices |
| sys | Right to admin printers in CUPS |
| users | Standard users group |
| uucp | Serial and USB devices such as modems, handhelds, RS-232/serial ports. |
| video | Access to video capture devices, 2D/3D hardware acceleration, framebuffer (X can be used without belonging to this group). Local sessions already have the ability to use hardware acceleration and video capture |
| wheel | Administration group, commonly used to give access to the sudo and su commands (neither uses it by default). Will be used in the future by systemd to allow starting/stopping services as non-root |
Subscribe to:
Posts (Atom)

