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
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=”"
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
)
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
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ść
/sbin/rmmod usbmouse
in my rc.local.
/etc/rc.local
runs at boot, last thing before you see a prompt.
http://ubuntuforums.org/showthread.php?t=765191
Zobacz całość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
Mozilla Firefox
about:config dns IPv6 disable
http://www.brightcherry.co.uk/scribbles/jquery-show-the-height-and-width-of-the-browser-viewport-in-real-time/
To save the file without a BOM:
:setlocal nobomb :w
To ask Vim if there is a BOM:
:setlocal bomb?
https://wiki.archlinux.org/index.php/Disk_Cloning
dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror
https://security.appspot.com/vsftpd.html
aptitude install vsftpd
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
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
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