It’s just yulistic!

last update:

Purpose Want to be notified remotely when a job has been finished (through email). Also, include a few lines of final results (stdout a.k.a. console output) as the content of the email. Solution Use tee command to make additional file with the content of stdout. Use tail command to get a few lines of the last printed output after the job finished. <job command> | tee <console output file path>; tail <console output file path> | mail -s "<mail title>" <mail address> For example,

1. Problem While using CommMonitor in Gem5, the following error message prompted. Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/yulistic/simulators/gem5/src/python/m5/", line 388, in main exec filecode in scope File "configs/example/", line 285, in <module> system.monitor = CommMonitor(trace_file=trace_filename) NameError: name 'CommMonitor' is not defined 2. Cause The error was because of absence of protobuf. When scon tried to compile CommMonitor, it checks whether the protobuf is installed or not.

0. Intro I wanted to run a PARSEC 3.0 benchmark on a Gem5 full system simulator. Because the size of compiled PARSEC 3.0 benchmark was too large (about 10GB), the original full system disk image provided by Gem5 official site could not be used. At first, I tried to mount a secondary disk image that contains benchmark files after Gem5’s full system was booted. I expected that, in this way,

Problem I want to access remote machine without typing password. Term. Remote machine: target machine to which I want to access through ssh. Local machine: local machine from which I try to access to the remote machine. Solution In a word, We can do it by using public-private key. Private key should be in local machine and it must not be exposed (keep it secret). Public key will be in remote machine not to prompt password in every ssh access.

Problem libtool version mismatch error Log message libtool: Version mismatch error. This is libtool 2.4.4, but the libtool: definition of this LT_INIT comes from libtool 2.4.2. libtool: You should recreate aclocal.m4 with macros from libtool 2.4.4 libtool: and run autoconf again. Solution autoreconf --force --install ./configure make

Purpose Let’s do ssh login without being prompted to enter the password. From client, generate key with the following command. $ ssh-keygen Type enter, without setting a passphrase. From client, copy the generated key to the server. $ ssh-copy-id yulistic@123.456.789.123 Login to the server without entering your password. Tip. You can copy public key to remote server manually. In the local machine, by appending the key of local machine (content of file: _~/.

tmux commands

tmux is a useful tool: to maintain sessions when ssh connection failed. to make windows (tabs) and control them only with keyboard. to make panes (split windows vertically or horizontally…) and control them only with keyboard. and so on… Basic tmux commands From out of the tmux session. tmux new -s [session_name] : make a new session. tmux ls : list current session list.

Problem I cannot see my posts. It shows ‘404 not found’. Solution Add try_files $uri $uri/ /index.php; to the location / block in the nginx configuration file. Refer to the following example. ========================== /etc/nginx/conf.d/default.conf ======= ... location / { root /usr/share/nginx/html/yulistic; index index.php index.html index.htm; try_files $uri $uri/ /index.php; } ... ===========================================================

Environment: CentOS 6.5, nginx 1.5.9 Problem: Nginx is installed through yum but does not show index.html(the first page) in the web browser. Reason of the problem: The problem was the firewall. You can check it from /etc/sysconfig/iptables. Refer to the following solution. Solution: Open /etc/sysconfig/iptables. Append -A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT sudo service iptables restart

Problem: To install wordpress based on the mysql database system and nginx web server. 1. Install MySQL. 1-1. If there exists any package installed already, erase it. 1-2. Download all the mysql packages from the site. 1-3. Install all the downloaded packages through the following order. MySQL-client MySQL-devel MySQL-embedded MySQL-server MySQL-shared MySQL-shared-compat MySQL-test **2. Install Nginx ** 2-1. Add repository