kill $(ps aux | grep 'chrome' | awk '{print $2}')
where chrome – is the application you want to kill
September 23, 2016 Linux, Servers config/admin No comments
kill $(ps aux | grep 'chrome' | awk '{print $2}')
where chrome – is the application you want to kill
September 23, 2016 Linux, Servers config/admin No comments
1. install sshfs:
sudo apt-get install sshfs
More details here: https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh
2. mount the ssh location:
sshfs -o nonempty user@ip:/var/www/test /home/testuser/testdirectory
to unmount it:
fusermount -u /home/testuser/testdirectory
where:
user
– your SSH user
ip
– IP of your remote machine
/var/www/test
– path of the directory on your remote server which you want to mount on your local machine
/home/testuser/testdirectory
– path of mounted remote directory on your local machine
September 22, 2016 Linux, Servers config/admin No comments
1. make sure .ssh/ folder has the write permissions 700:
chmod 700 .ssh
2. the file .ssh/authorized_keys should have the write permissions 600:
chmod 600 .ssh/authorized_keys
3. in the file /etc/ssh/sshd_config the line PermitRootLogin should be like this:
PermitRootLogin without-password
more details you can find here: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
December 30, 2014 cronjob, Linux, PHP, Servers config/admin No comments
running cronjobs (shell scripts) on Ubuntu 14.10 (using crontab -e) generate error: “MIB search path” and a list of errors like:
Cannot adopt OID inUCD-SNMP-MIB:dskUsedHigh::={dskEntry16}
Cannot adopt OID inUCD-SNMP-MIB:dskUsedLow::={dskEntry15}
Cannot adopt OID inUCD-SNMP-MIB:dskAvailHigh::={dskEntry14}
Cannot adopt OID inUCD-SNMP-MIB:dskAvailLow::={dskEntry13}
Cannot adopt OID inUCD-SNMP-MIB:dskTotalHigh::={dskEntry12}
Cannot adopt OID inUCD-SNMP-MIB:dskTotalLow::={dskEntry11}
Cannot adopt OID inUCD-SNMP-MIB:dskPercentNode::={dskEntry10}
Cannot adopt OID inUCD-SNMP-MIB:dskPercent::={dskEntry9}
Cannot adopt OID inUCD-SNMP-MIB:dskUsed::={dskEntry8}
Cannot adopt OID inUCD-SNMP-MIB:dskAvail::={dskEntry7}
Cannot adopt OID inUCD-SNMP-MIB:dskTotal::={dskEntry6}
Cannot adopt OID inUCD-SNMP-MIB:dskMinPercent::={dskEntry5}
Cannot adopt OID inUCD-SNMP-MIB:dskMinimum::={dskEntry4}
Cannot adopt OID inUCD-SNMP-MIB:dskDevice::={dskEntry3}
Cannot adopt OID inUCD-SNMP-MIB:dskPath::={dskEntry2}
Cannot adopt OID inUCD-SNMP-MIB:dskIndex::={dskEntry1}
Cannot adopt OID inUCD-DISKIO-MIB:diskIOTable::={ucdDiskIOMIB1}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsLoggingGroup::={nsConfigGroups2}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsDebugGroup::={nsConfigGroups1}
Cannot adopt OID inUCD-SNMP-MIB:snmperrErrMessage::={snmperrs101}
Cannot adopt OID inUCD-SNMP-MIB:snmperrErrorFlag::={snmperrs100}
Cannot adopt OID inUCD-SNMP-MIB:snmperrNames::={snmperrs2}
Cannot adopt OID inUCD-SNMP-MIB:snmperrIndex::={snmperrs1}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsTransactionTable::={nsTransactions1}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsLogStatus::={nsLoggingEntry5}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsLogMaxLevel::={nsLoggingEntry4}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsLogType::={nsLoggingEntry3}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsLogToken::={nsLoggingEntry2}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsLogLevel::={nsLoggingEntry1}
Cannot adopt OID inNET-SNMP-EXTEND-MIB:nsExtendResult::={nsExtendOutput1Entry4}
Cannot adopt OID inNET-SNMP-EXTEND-MIB:nsExtendOutNumLines::={nsExtendOutput1Entry3}
Cannot adopt OID inNET-SNMP-EXTEND-MIB:nsExtendOutputFull::={nsExtendOutput1Entry2}
Cannot adopt OID inNET-SNMP-EXTEND-MIB:nsExtendOutput1Line::={nsExtendOutput1Entry1}
Cannot adopt OID inNET-SNMP-EXTEND-MIB:nsExtendOutLine::={nsExtendOutput2Entry2}
Cannot adopt OID inNET-SNMP-EXTEND-MIB:nsExtendLineIndex::={nsExtendOutput2Entry1}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsNotifyStart::={netSnmpNotifications1}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsNotifyShutdown::={netSnmpNotifications2}
Cannot adopt OID inNET-SNMP-AGENT-MIB:nsNotifyRestart::={netSnmpNotifications3}
Cannot adopt OID inUCD-SNMP-MIB:laErrMessage::={laEntry101}
Cannot adopt OID inUCD-SNMP-MIB:laErrorFlag::={laEntry100}
Cannot adopt OID inUCD-SNMP-MIB:laLoadFloat::={laEntry6}
Cannot adopt OID inUCD-SNMP-MIB:laLoadInt::={laEntry5}
Cannot adopt OID inUCD-SNMP-MIB:laConfig::={laEntry4}
Cannot adopt OID inUCD-SNMP-MIB:laLoad::={laEntry3}
Cannot adopt OID inUCD-SNMP-MIB:laNames::={laEntry2}
Cannot adopt OID inUCD-SNMP-MIB:laIndex::={laEntry1}
php5-snmp
library/module. The easiest way to fix it – uninstall the module:sudo apt-get remove php5-snmp
November 2, 2014 PHP, Symfony No comments
June 28, 2014 Microcontrollers No comments
Atmel Studio
http://www.atmel.com/tools/ATMELSTUDIO.aspx
Proteus Professional
http://www.labcenter.com/
Arduino software
http://arduino.cc/en/main/software
Virtual Serial Ports Emulator
http://eterlogic.com/Products.VSPE.html
June 26, 2014 Useful web tools No comments
June 26, 2014 Linux No comments
Yakuake – Drop-down terminal emulator
http://extragear.kde.org/apps/yakuake/
Krusader – File manager
http://www.krusader.org/
GNU Midnight Commander (mc) – visual file manager
http://www.midnight-commander.org/
June 26, 2014 Servers config/admin No comments
Free SSL certificates
http://www.startssl.com/