free +m sync; echo 3 > /proc/sys/vm/drop_caches swapoff -a swapon -a
Category Archives: ubuntu
/dev/tape: Inappropriate ioctl for device
/dev/st0 – Block device, rewinds to the beginning of the tape after an operation.
/dev/nst0 – Block device, does not rewind the tape
/dev/tape- Symbolic link, typically links by default to /dev/st0
Here is the solution
rm -rf /dev/tape
ln -s /dev/st0 /dev/tape
teamviewer daemon is not running | teamviewer 8
the reason is that the teamviewer daemon is not running, to start it
teamviewer –daemon start
initctl start teamviewerd
teamviewerd start/running, process 26548
W: GPG error: stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY E585066A30C18A2B
W: GPG error: http://dl.google.com stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: GPG error: http://deb.opera.com stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY E585066A30C18A2B
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 52A794126E3AB2D3
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 83FBA1751378B444
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 00A6F0A3C300EE8C
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 531EE72F4C9D234C
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 7FB8BEE0A1F196A8
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A7E13D78E4A4F4F4
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 464AD83D4631BBEA
W: GPG error: http://download.virtualbox.org precise InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 6AF0E1940624A220
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 991E6CF92D9A3C5B
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: GPG error: http://mirrors.dotsrc.org precise-getdeb Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A8A515F046D7E7CF
W: GPG error: http://linux.dropbox.com precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY FC918B335044912E
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release Unable to find expected entry ‘estricted/binary-i386/Packages’ in Release file (Wrong sources.list entry or malformed file)
here is the solution:
apt-key adv –keyserver keyserver.ubuntu.com –recv-keys A040830F7FAC5991 A8A515F046D7E7CF E585066A30C18A2B 52A794126E3AB2D3 83FBA1751378B444 00A6F0A3C300EE8C 531EE72F4C9D234C 7FB8BEE0A1F196A8 A7E13D78E4A4F4F4 464AD83D4631BBEA 6AF0E1940624A220 991E6CF92D9A3C5B C2518248EEA14886 C2518248EEA14886 C2518248EEA14886 54422A4B98AB5139 FC918B335044912E
upgrade ubuntu 12.04 precise to ubuntu 12.10 quantal
aptitude install update-manager-core
vim /etc/update-manager/release-upgrades
we have to change Promt=lts to Promt=normal
sudo apt-get updade
do-release-upgrade -d
dtrx – Do The Right Extraction
tool for lazy admins 🙂
aptitude install dtrx
check linux configuration files syntax for errors
OpenSSH | /usr/sbin/sshd -t && echo $? /usr/sbin/sshd -T |
Apache | /usr/sbin/apache2 -t apachectl configtest |
nginx | /usr/local/nginx/sbin/nginx -t /usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf |
lighttpd | /usr/local/sbin/lighttpd -t -f /usr/local/etc/lighttpd/cyberciti.biz/lighttpd.conf |
Bind (named server config) | named-checkconf /etc/named.conf |
Bind (zone syntx) | named-checkzone cyberciti.biz /var/named/zone.cyberciti.biz |
Squid proxy | /usr/sbin/squid -k check /usr/sbin/squid -k parse |
MySQL server | mysqld –verbose –help /usr/libexec/mysqld –verbose –help 1>/dev/null |
Postfix MTA | postfix check postfix -vvv |
Samba SMB/CIFS | testparm -v |
tcpd | tcpdchk tcpdchk -v |
dhcpd (DHCP / BOOTP) server | dhcpd -t -cf /path/to/dhcpd.testing.conf |
vsftpd server | vsftpd -olisten=NO /path/to/vsftpd.testing.conf |
nagios | nagios -v /path/to/testing/nagios.cfg |
Openntpd NTPD server | ntpd -d -f /usr/local/etc/ntpd.conf -n |
Xorg (X11 Server) | Xorg -config /path/to/xorg.conf.new -retro |
syslogd / rsyslogd | rsyslogd -c4 -f /etc/rsyslog.testing.conf -N 1 |
CUPS Printing System | cupsd -f -c /path/to/cupsd.testing.conf -t |
slapd (OpenLDAP) | slapd -Tt |
varnishd | varnishd -C -f /path/to/wordpress.vlc |
exim MTA | exim -bV |
Bash/Ksh scripts | bash -n ./myscript ksh -n /path/to/script.ksh |
BSD pf firewall | pfctl -nf /etc/pf.conf |
proftpd | proftpd -t -c /path/to/proftpd.testing.conf |
Perl scripts | perl -c /path/to/script.pl perl -wc /path/to/script.pl |
http://www.cyberciti.biz/tips/check-unix-linux-configuration-file-for-syntax-errors.html
stop ubuntu crash reports
vim /etc/default/apport Променяме enabled от 1 на 0.
show progress copy bar when using dd
Копираме /dev/sda на /dev/sdb
pv -tpreb /dev/sda | dd of=/dev/sdb
installing and configure exim4
apt-get update
apt-get install exim4
dpkg-reconfigure exim4-config