Sunday, November 24, 2013

screencast recording



Gnome features the built-in possbility to create screencasts 
easily. TherebyCtrl+Shift+alt+R keybinding starts and 
stops the recording. A red circle is displayed in the bottom 
right corner of the screen when the recording is in progress.
In order to use the screencast feature you need to 
have installed the gst plugins.



gstreamer h.264



to play back h.264 videos you need to install gst-libav

#pacman -S gst-libav



Saturday, August 17, 2013

vim color scheme

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

Tuesday, August 13, 2013

netstat




intalling netstat

#pacman -S netstat-nat



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



GroupsPurpose
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
diskAccess to block devices not affected by other groups such as optical, floppy, and storage.
floppyAccess to floppy drives.
gamesAccess to some game software.
locateRight to use updatedb command
lpAccess to printer hardware; enables the user to manage print jobs
networkRight to change network settings such as when using NetworkManager
networkmanagerRequirement for your user to connect wirelessly with NetworkManager. This group is not included with Arch by default so it must be added manually
opticalAccess to optical devices such as CD and DVD drives
powerRight to use Pm-utils (suspend, hibernate...) and power management controls
scannerAccess to scanner hardware
storageAccess to removable drives such as USB hard drives, flash/jump drives, MP3 players; enables the user to mount storage devices
sysRight to admin printers in CUPS
usersStandard users group
uucpSerial and USB devices such as modems, handhelds, RS-232/serial ports.
videoAccess 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
wheelAdministration 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

Wednesday, July 31, 2013

Diablo III Loop udate Problem Archlinux64




Problem So many people had on updating to patch 103b: 
Game Says "parch is required; will now quit and 
install automatically" then would claim that the 
game was ready to play but it would goto 
the same message.

just install  lib32-libldap 

In Archlinux x86_64

#pacman -S lib32-libldap


now for new bug 30849 let me know lol


To remove wine launchers Gnome-shell





Move to:

~/.local/share/applications/wine/Programs/

and look for the wine applications name in the directories
 are the ".desktop" files wich configure the launchers.
Remove the program directory to easily remove the launchers.


Tuesday, July 30, 2013

ASCII art on login


ASCII images can be found online and paste into a text file or generated from scratch, to set the image to display in a terminal on login edit 

~/.bashrc

and add

cat /path/to/text/file



Basic Prompts


edit bash personal configuration file
$ nano ~/.bashrc

comment out the default prompt


# PS1='[\u@\h \W]\$ '

add the following yellow prompt for regular users:

PS1='\[\e[1;33m\][\u@\h \W]\$\[\e[0m\] '

edit root's .bashrc file; copy it from /etc/skel if file is not present

#nano /root/.bashrc

Assign a red color prompt for root comment out default prompt

PS1='\[\e[1;31m\][\u@\h \W]\$\[\e[0m\] '




Random quotations at logon



You must install fortune-mod then edit /etc/bash.bashrc and
uncomment or add the follow line 

# [[ "$PS1" ]] && /usr/bin/fortune

To hide grub menu (grub2)



To hide grub menu

edit:

/etc/default/grub

then run command

#grub-mkconfig -o /boot/grub/grub.cfg

Sunday, July 28, 2013

Disable Activity hot corner hovering Gnome shell


To disable automatic activity view when the corner is hovered, edit

# nano /usr/share/gnome-shell/js/ui/layout.js


change reactive: true to false

 this._corner = new Clutter.Rectangle({ name: 'hot-corner',
                                       width: 1,
                                       height: 1,
                                       opacity: 0,
                                       reactive: true });icon-size: 48px;
 }

Improve Wine using registry




Some of the settings I use to improve wine gaming
create a new key , called Direct3D and add some
string and string values.

[HKEY_CURRENT_USER/Software/wine/Direct3D]

"MaxfragmentUniforms"="1024"
"MaxVaryings"="52"
"MaxVertexUniforms"="1024"
"MaxMultisampling"="enabled"
"OffscreenRederingMode"="fbo"
"PixelShaderMode"="enabled"
"UseGLSL"="enabled"
"VertexShaderMode"="hardware"
"VideoMemorySize"="2048"
"DirectDrawRenderer"="opengl"


the Video memory size its your video card memory