Linux « Różności …

Różności …

10 maja 2014

mplayer

Zaszufladkowany do: Linux — Tagi: — Jacek @ 09:53

sam dźwięk:

youtube-dl -f 140 http://www.youtube.com/watch?v=HRIF4_WzU1w

youtube-dl -F https://www.youtube.com/watch?v=CA2CPOJ7adsfDyQ43243

[info] Available formats for CA2CPOJ7DyQ:
format code extension resolution note
140 m4a audio only DASH audio , audio@128k (worst)
160 mp4 192p DASH video
133 mp4 240p DASH video
134 mp4 360p DASH video
135 mp4 480p DASH video
17 3gp 176×144
36 3gp 320×240
5 flv 400×240
43 webm 640×360
18 mp4 640×360 (best)

youtube-dl –max-quality 135 https://www.youtube.com/watch?v=CA2CPOJ7adsfDyQ43243
youtube-dl –max-quality 140 https://www.youtube.com/watch?v=CA2CPOJ7adsfDyQ43243

mplayer “orcl.mp4″ -audiofile “orcl.m4a”

20 marca 2014

ENCFS

Zaszufladkowany do: Linux — Tagi: — Jacek @ 09:36

apt-get install encfs
add-apt-repository ppa:gencfsm
apt-get update
apt-get install gnome-encfs-manager
apt-get install cryptkeeper

Link:
https://help.ubuntu.com/community/FolderEncryption

18 marca 2014

nfs

Zaszufladkowany do: Linux — Tagi: — Jacek @ 09:04

showmount -e 192.168.1.111

23 stycznia 2014

ntpdate – linux time

Zaszufladkowany do: Linux — Tagi: — Jacek @ 14:17

ntpdate -q my.ntp.server

ntpdate -u ntp.task.gda.pl

8 stycznia 2014

Linux Wacom Bamboo

Zaszufladkowany do: Linux — Tagi: — Jacek @ 22:40

Instalacja:

sudo add-apt-repository ppa:irie/wacom
sudo apt-get update
sudo apt-get install xserver-xorg-input-wacom
sudo apt-get install wacom-dkms

Disabling touch

xsetwacom --list devices

Wacom BambooPT 2FG 4x5 Pen eraser    id: 9    type: ERASER
Wacom BambooPT 2FG 4x5 Pen stylus    id: 10    type: STYLUS
Wacom BambooPT 2FG 4x5 Finger pad    id: 11    type: PAD
Wacom BambooPT 2FG 4x5 Finger touch    id: 12    type: TOUCH

xsetwacom set 12 touch off
xsetwacom set 12 touch on

Mulit monitors – working on single monitor

xinput –list

“Wacom BambooFun 2FG 6×8 Pen stylus”

xrandr

xsetwacom set “device name” MapToOutput VGA1

xsetwacom set “Wacom Bamboo 2FG 6×8 SE Pen stylus” MapToOutput VGA1

source: http://ubuntuforums.org/showthread.php?t=1656089

23 grudnia 2013

How to add programs to launcher.

Zaszufladkowany do: Linux — Tagi: — Jacek @ 16:21

The other portion if I understand you correctly should be pretty simple. Just launch the application you want to attach to the “start menu” or rather dock panel, side bar, but officially it is called the “Launcher” and right click the icon and lock to launcher.

enter image description here

http://askubuntu.com/questions/224004/how-to-add-programs-to-the-launcher

grub

Zaszufladkowany do: Linux — Tagi: — Jacek @ 16:12

Restart your computer. When it boots again, press one of the directional keys (up or down) when the GRUB menu appears. Write down the line number of the OS you’d like to boot. Note: GRUB labels its lines starting with 0, so an OS that’s located on the fifth line would actually be 4.

/etc/default/grub

sudo update-grub

cairo-dock autostart

Zaszufladkowany do: Linux — Tagi: — Jacek @ 16:09

follow the guide and you can specify in the command option which backend to use when running cairo-dock by specifying it as an option.

Run with OpenGL backend

cairo-dock -o

Run with Cario backend

cairo-dock -c

While the dock is running, right click on the dock. In the drop down menu there’s an option to start cairo-dock on startup. Select it. Done.

22 grudnia 2013

sudoers

Zaszufladkowany do: Linux — Tagi: — Jacek @ 12:30
jerome ALL=(ALL) NOPASSWD: ALL

It must be at the end of the file.  In my version, the last line of code  gives all users in the admin group root access but with a password  required.
If your line precedes this, then the effects are undone by  the last line of code because my user login is also a member  (unintentional) of admin.

14 grudnia 2013

ubuntu xscreensaver autostart

Zaszufladkowany do: Linux — Tagi: — Jacek @ 11:21
/etc/xdg/autostart/screensaver.desktop
[Desktop Entry]
Name=Screensaver
Type=Application
Exec=xscreensaver -nosplash

13 grudnia 2013

Ubuntu – ten things to do.

Zaszufladkowany do: Linux — Tagi: — Jacek @ 16:23
http://www.webupd8.org/2012/04/things-to-tweak-after-installing-ubuntu.html

sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt-get update
sudo apt-get install indicator-multiload

http://www.noobslab.com/2013/10/tweaksthings-to-do-after-install-of.html

sudo apt-get install unity-tweak-tool gnome-tweak-tool

To remove white dots, enter following commands in Terminal:
sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-grid false

To remove guest account open Terminal and enter following command:
echo allow-guest=false | sudo tee -a /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf

To remove Remote login open Terminal and enter following command:
echo greeter-show-remote-login=false | sudo tee -a /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf

Enter following command in terminal to disable overlay scrollbar:
gsettings set com.canonical.desktop.interface scrollbar-mode normal

If you want to get back overlay bar, enter following command:
gsettings reset com.canonical.desktop.interface scrollbar-mode

Enter following commands to disable crash reports:
sudo gedit /etc/default/apport
Now text file will open, In the last line you will see “enabled=1” change it to “enabled=0“. Save and close file.
Now enter following command in terminal to stop apport service:
sudo service apport stop

Enter following command to move buttons to right:
gsettings set org.gnome.desktop.wm.preferences button-layout ‘:minimize,maximize,close’

sudo apt-get install qbittorrent

Enter following commands to install plugins for Rhythmbox
sudo add-apt-repository ppa:fossfreedom/rhythmbox-plugins
sudo apt-get update
sudo apt-get install rhythmbox-plugin-complete

There are some Restricted extras in Ubuntu which can’t be install while installation of Ubuntu by default but you can install these Restricted extras by yourself. Restricted mp3 playback and decoding, support for various formats, fonts, java, flash plugin, lame, dvd playback.
sudo apt-get install ubuntu-restricted-extras

sudo apt-get install p7zip-rar p7zip-full unace unrar zip unzip sharutils rar uudeview mpack arj cabextract file-roller

sudo apt-get remove gnome-screensaver
sudo apt-get install gnome-core

To Reset Unity:

sudo apt-get install dconf-tools
dconf reset -f /org/compiz/
setsid unity
unity –reset-icons

10 grudnia 2013

MC shortcuts

Zaszufladkowany do: Linux — Tagi: — Jacek @ 22:41

Midnight Commander Keyboard Shortcuts

ALT + C – cd do katalogu

CTRL+o – podgląd teminala
ESC + TAB – autouzupełnianie komend
CTRL + strzałka w górę/dół – przeglądanie historii
ALT+s – incsearch

CTRL + \ – lista szybkich katalogów

Ctrl + / i potem / – katalogi

CTRL + M – kopiuje daną nazwę do linii komend

Common Functions
Ctrl + r Refresh active panel
Ctrl + x c Opens chmod dialog for marked file
Ctrl + x o Opens chown dialog for marked file
Alt + ? Opens search dialog
Ctrl-x a Open VFS list. If a ftp session times out, you can use this to free the open vfs so you can log in again.
Panel Functions
TAB Switch focus between left and right panel
Insert Marks or removes mark on file(s)
Alt + g Marks first file or directory in active panel
Alt + r Marks middle file or directory in active panel
Alt + j Marks last file or directory in active panel
Alt + s Incremental search
Ctrl + / Look for filename given in last line of active panel (not whole screen), and jumps on first file
* Marks removes marking for all files in active panel (not directories)
+ (Plus) Brings up the input box where it can be given regular expression. All files with names that fill condition(s) in regular expression will be marked.
\ (Backslash) Remove marking for more data (opposite to + )
Shell Functions
Alt + Enter Copies selected filename in command line
Ctrl + Shft + Enter Copies full path of selected file in the command line
Alt + H Shows command line history
Function Keys
F1 Help
F2 Opens user menu
F3 View selected file content
F4 Opens file in internal text editor
F5 Copies selected file. Default is to another panel, but it asks first.
F6 Moving file. Default is to another panel, but it asks first.
F7 Make directory.
F8 Delete file or directory.
F9 Opens main menu at the top of the screen.
F10 Ends current action; editor, viewer, dialog window or ends mc program.

24 listopada 2013

mkisofs

Zaszufladkowany do: Linux — Tagi: — Jacek @ 21:19

mkisofs -o nazwa.iso /katalog

22 listopada 2013

mount iso

Zaszufladkowany do: Linux — Tagi: — Jacek @ 18:55

mount -o loop disk1.iso /mnt/disk

20 listopada 2013

LVM – LINUX (logical volume manager)

Zaszufladkowany do: Linux — Tagi: — Jacek @ 20:16

vgscan

lvmdiskscan

lvdisplay

parted /dev/sda print

Podmontowanie:
vgchange -a y
mount /dev/volumegroup/logicalvolume /mnt/somewhere

keyboard layout, klawiatura polska

Zaszufladkowany do: Linux — Tagi: — Jacek @ 18:23

setxkbmap pl

18 listopada 2013

iptables

Zaszufladkowany do: Linux — Tagi: — Jacek @ 20:08

service iptables stop
service iptables start
service iptables save
iptables-save > /etc/sysconfig/iptables

iptables -I INPUT 5 -p tcp –dport 443 -j ACCEPT
iptables -L -n –line-numbers

14 listopada 2013

Oracle 11g installation on Centos 6.4

Zaszufladkowany do: Bazy danych,Linux,Oracle — Tagi: , — Jacek @ 09:55

http://www.tecmint.com/oracle-database-11g-release-2-installation-in-linux/

selinux

Zaszufladkowany do: Linux — Tagi: — Jacek @ 07:25

czasowe wyłączenie
setenforce 0
setenforce 1

lub

echo 0 >/selinux/enforce
newrole -r sysadm_r
echo 1 >/selinux/enforce

cat /selinux/enforce

SSH key authentication problem:
Turns out that SELinux was interfering with the key authentication because there was no security context for the newly created ~/.ssh
directory.

The fix:
restorecon -R -v /root/.ssh

13 listopada 2013

SSH tunel

Zaszufladkowany do: Linux — Tagi: — Jacek @ 19:33

http://jakilinux.org/aplikacje/sztuczki-z-ssh-2-tunele/#

« Nowsze wpisyStarsze wpisy »

Strona startowa: www.jaceksen.pl