Autor - Bartłomiej Gałęzia - liczba wpisów 450

Nodimm - Xfce - nie działa Kategoria: Linux | Autor: Bartłomiej Gałęzia

vim /etc/lightdm/lightdm.conf

xserver-command=X -s 0 -dpms

14.04

vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
xserver-command=X -s 0 -dpms

Komp stoi na grubie po niepoprawnym zamknięciu Kategoria: Linux | Tagi: grub | Autor: Bartłomiej Gałęzia

vim /etc/default/grub

dodaj linię

GRUB_RECORDFAIL_TIMEOUT=1
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_RECORDFAIL_TIMEOUT=1
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX=”" 

Multiple checkbox + send post Kategoria: PHP | Autor: Bartłomiej Gałęzia

http://stackoverflow.com/questions/12907283/multiple-checkbox-options-on-a-php-form

<label class="radio"><input type="checkbox" name="service[]" value="Web Design" />Web Design</label>
<label class="radio"><input type="checkbox" name="service[]" value="Graphic Design" />Graphic Design</label>
<label class="radio"><input type="checkbox" name="service[]" value="Brand Identity" />Brand Identity</label>
<label class="radio"><input type="checkbox" name="service[]" value="Online Marketing" />Online Marketing</label>
<label class="radio"><input type="checkbox" name="service[]" value="Other" />Other</label>
print_r($_POST['service']);
// output
Array
(
    [0] => Web Design
    [1] => Graphic Design
    [2]
 => Brand Identity
    [3] => Online Marketing
    [4] => Other
)

Nodimm - Ubuntu Kategoria: Linux | Tagi: do poprawki, ubuntu | Autor: Bartłomiej Gałęzia

vim /etc/xdg/lxsession/LXDE/autostart

@xset s off
@xset -dpms
@xset s noblank

http://raspberrypi.stackexchange.com/questions/752/how-do-i-prevent-the-screen-from-going-blank

aptitude remove gnome-screensaver

http://blog.tordeu.com/?p=292  - działa

Kubuntu

Start > Energy Saving > uncheck Screen Energy Saving

Linux autologin - Ubuntu, Fedora, Debian Kategoria: PHP | Tagi: debian, do poprawki, fedora, ubuntu | Autor: Bartłomiej Gałęzia

Ubuntu 18.04

sudo vim /etc/gdm3/custom.conf

[daemon]
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=false

# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = [username]

 

Ubuntu 16.04

SDDM

Create config file

sddm --example-config > /etc/sddm.conf
vim /etc/sddm.conf
[Autologin] User=john
Session=plasma.desktop

Create /etc/lightdm/lightdm.conf

vim /etc/lightdm/lightdm.conf
[SeatDefaults]
autologin-user=[username]
autologin-user-timeout=0
user-session=ubuntu
greeter-session=unity-greeter

Ubuntu lxde

vim /etc/lightdm/lightdm.conf

user-session=lxde
autologin-user=[username]
autologin-user-timeout=0

Ubuntu Xfce

vim /etc/lightdm/lightdm.conf

user-session=xubuntu
autologin-user=[username]
autologin-user-timeout=0
Kubuntu kde-plasma vim /usr/share/lightdm/lightdm.conf.d/40-kde-plasma.conf [SeatDefaults] user-session=kde-plasma autologin-user=symulator autologin-user-timeout=0

Zobacz całość

Ubuntu - mysz działa tylko w pionie Kategoria: Linux | Tagi: mysz, ubuntu | Autor: Bartłomiej Gałęzia

/sbin/rmmod usbmouse

in my rc.local.

/etc/rc.local

 

runs at boot, last thing before you see a prompt.

Bash colored prompt Kategoria: Linux | Tagi: bash | Autor: Bartłomiej Gałęzia

http://ubuntuforums.org/showthread.php?t=765191

Zobacz całość

Bash happy prompt Kategoria: Linux | Tagi: bash, do poprawki | Autor: Bartłomiej Gałęzia

3Com 2952 SFP HP Switch - aktywacja web interface Kategoria: Network | Tagi: 3com, switch | Autor: Bartłomiej Gałęzia

bash

minicom

38400.8.1.N

Password reset:

podczas bootowania

Ctrl+B

7 – skip configuration

0 – Reboot

po restarcie

initialize

reboot

Aktywacja cli:

_cmdline-mode on

pass: 512900

sys

local-user (username)
(username)>password simple (password)
(username)>authorization-attribute level 3
(username)>service-type telnet
(username)>service-type lan-access
(username)>return

ip http enable

ipsetup ip-address 10.50.10.155 255.255.0.0

http://www.petenetlive.com/KB/Article/0000495.htm

http://glazenbakje.wordpress.com/2012/08/21/hp-v1910-secret-commando-list-how-to-enable-it/

http://ttssh2.sourceforge.jp/index.html.en  – terminal rs232

Przeglądarka wolno działa na Ubuntu? Kategoria: WWW | Tagi: Firefox, ubuntu | Autor: Bartłomiej Gałęzia

Mozilla Firefox

about:config
dns IPv6 disable

Jquery - pokaż rozmiar okna przeglądarki Kategoria: jQuery | Tagi: jquery | Autor: Bartłomiej Gałęzia

http://www.brightcherry.co.uk/scribbles/jquery-show-the-height-and-width-of-the-browser-viewport-in-real-time/

Usuwanie Byte-Of-Mark przez Vim Kategoria: Linux | Tagi: vim | Autor: Bartłomiej Gałęzia

To save the file without a BOM:

:setlocal nobomb
:w

To ask Vim if there is a BOM:

:setlocal bomb?

Klonowanie dysku dd Kategoria: Linux | Autor: Bartłomiej Gałęzia

https://wiki.archlinux.org/index.php/Disk_Cloning

dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror

Vsftpd - instalacja Kategoria: Linux | Tagi: ftp | Autor: Bartłomiej Gałęzia

Ubuntu install android Eclipse Kategoria: Android | Tagi: android, eclipse, ubuntu | Autor: Bartłomiej Gałęzia

sudo apt-get update

sudo apt-get install oracle-jdk7-installer

sudo apt-get install eclipse

http://stackoverflow.com/questions/10165693/eclipse-cannot-load-swt-libraries

ln -s /usr/lib/jni/libswt-*~/.swt/lib/linux/x86_64/

apt-get install ia32-libs

Linux Star Wars beep script Kategoria: Linux | Tagi: bash, beep | Autor: Bartłomiej Gałęzia

aptitude install beep
beep -l 350 -f 392 -D 100 -n -l 350 -f 392 -D 100 -n -l 350 -f 392 -D 100 -n -l 250 -f 311.1 -D 100 -n -l 25 -f 466.2 -D 100 -n -l 350 -f 392 -D 100 -n -l 250 -f 311.1 -D 100 -n -l 25 -f 466.2 -D 100 -n -l 700 -f 392 -D 100 -n -l 350 -f 587.32 -D 100 -n -l 350 -f 587.32 -D 100 -n -l 350 -f 587.32 -D 100 -n -l 250 -f 622.26 -D 100 -n -l 25 -f 466.2 -D 100 -n -l 350 -f 369.99 -D 100 -n -l 250 -f 311.1 -D 100 -n -l 25 -f 466.2 -D 100 -n -l 700 -f 392 -D 100 -n -l 350 -f 784 -D 100 -n -l 250 -f 392 -D 100 -n -l 25 -f 392 -D 100 -n -l 350 -f 784 -D 100 -n -l 250 -f 739.98 -D 100 -n -l 25 -f 698.46 -D 100 -n -l 25 -f 659.26 -D 100 -n -l 25 -f 622.26 -D 100 -n -l 50 -f 659.26 -D 400 -n -l 25 -f 415.3 -D 200 -n -l 350 -f 554.36 -D 100 -n -l 250 -f 523.25 -D 100 -n -l 25 -f 493.88 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 25 -f 440 -D 100 -n -l 50 -f 466.16 -D 400 -n -l 25 -f 311.13 -D 200 -n -l 350 -f 369.99 -D 
100 -n -l 250 -f 311.13 -D 100 -n -l 25 -f 392 -D 100 -n -l 350 -f 466.16 -D 100 -n -l 250 -f 392 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 700 -f 587.32 -D 100 -n -l 350 -f 784 -D 100 -n -l 250 -f 392 -D 100 -n -l 25 -f 392 -D 100 -n -l 350 -f 784 -D 100 -n -l 250 -f 739.98 -D 100 -n -l 25 -f 698.46 -D 100 -n -l 25 -f 659.26 -D 100 -n -l 25 -f 622.26 -D 100 -n -l 50 -f 659.26 -D 400 -n -l 25 -f 415.3 -D 200 -n -l 350 -f 554.36 -D 100 -n -l 250 -f 523.25 -D 100 -n -l 25 -f 493.88 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 25 -f 440 -D 100 -n -l 50 -f 466.16 -D 400 -n -l 25 -f 311.13 -D 200 -n -l 350 -f 392 -D 100 -n -l 250 -f 311.13 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 300 -f 392.00 -D 150 -n -l 250 -f 311.13 -D 100 -n -l 25 -f 466.16 -D 100 -n -l 700 -f 392

MongoDB on Debian Kategoria: Raspberry PI | Autor: Bartłomiej Gałęzia

vi /etc/apt/source.list
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 7F0CEB10

apt-get update

apt-get install mongodb-10gen
vi /etc/mongodb.conf

http://code.google.com/p/mongo-vision/

http://localhost:8080/mongovision/

apt-get install python-pip

pip install edda

edda /var/log/mongodb/mongodb.log

http://www.php.net/manual/en/mongo.installation.php