Posts

2610-377 A command argument specified the node name [hostname], but this is not a configured node name.

2610-377 A command argument specified the node name [hostname], but this is not a configured node name. # mkrsrc -f template.out IBM.ServiceIP 2610-377 A command argument specified the node name aixtest1, but this is not a configured node name. To fix this you must perform this initial configuration: On all nodes, set and export the environment variable CT_MANAGEMENT_SCOPE to 2 (peer domain scope) for all users. export CT_MANAGEMENT_SCOPE=2 or Add the line below to /etc/environment. CT_MANAGEMENT_SCOPE=2

The server start up for WebSphere Process Server (WPS) fails with a WSVR0009E error and a "Cannot get canonical host name for server" message

Problem(Abstract) You cannot start the server due to problems resolving the host name. Symptom When this problem occurs, the following information is written to the SystemOut.log file after you try to start the server: 0000000a WsServerImpl E WSVR0009E: Error occurred during startup META-INF/ws-server-components.xml [3/15/11 9:16:28:750 CST] 0000000a WsServerImpl E WSVR0009E: Error occurred during startup com.ibm.ws.exception.ConfigurationError: com.ibm.ws.exception.ConfigurationError: javax.naming.ConfigurationException: Cannot get canonical host name for server. at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:185) at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:140) at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:461) at com.ibm.ws.runtime.WsServer.main(WsServer.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:...

Where is the cron / crontab log in ubuntu?

​ On a default installation the cron jobs get logged to /var/log/syslog You can see just cron jobs in that logfile by running grep CRON /var/log/syslog If you haven't reconfigured anything,the entries will be in there. ​

mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES

​How do I fix this problem? You can pass the --single-transaction option to mysqldump command: $ mysqldump --single-transaction -u user -p DBNAME > backup.sql Another option is to grant LOCK TABLES to your user: $ mysql -u root -p And type: mysql> GRANT SELECT,LOCK TABLES ON DBNAME.* TO 'username'@'localhost'; ​

Linux shell script for MYsql database backup

​ First create a script file and give this file executable permission. # cd /etc/cron.daily/ # touch /etc/cron.daily/dbbackup-daily.sh # chmod 755 /etc/cron.daily/dbbackup-daily.sh # vi /etc/cron.daily/dbbackup-daily.sh Then copy following lines into file with Shift+Ins #!/bin/sh now = "$(date +'%d_%m_%Y_%H_%M_%S')" filename = "db_backup_$now" . gz backupfolder = "/var/www/vhosts/ example.com/httpdocs/backups " fullpathbackupfile = "$backupfolder/$filename" logfile = "$backupfolder/" backup_log_ "$(date +'%Y_%m')" . txt echo "mysqldump started at $(date +'%d-%m-%Y %H:%M:%S')" >> "$logfile" mysqldump -- user = mydbuser -- password = mypass -- default - character - set = utf8 mydatabase | gzip > "$fullpathbackupfile" echo "mysqldump finished at $(date +'%d-%m-%Y %H:%M:%S')" >> "$logfile" chown ...

How do I set default view to 'list' in Nautilus file manager?

​ sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /apps/nautilus/preferences/default_folder_viewer list_view

How do I type a path or URL directly into Nautilus?

​Pressing Ctrl + L allows you to type in a path: To change this permanently issue following command gsettings set org.gnome.nautilus.preferences always-use-location-entry true ​