Ubuntu SSH
Sometimes Ubuntu fails to connect VPN. Open the PPTP advanced options, uncheck EAP and check MPPE.

Sometimes Ubuntu fails to connect VPN. Open the PPTP advanced options, uncheck EAP and check MPPE.

Install VNC server under Ubuntu: $sudo apt-get install vnc4server
Configure the VNC server, $vi ~/.vnc/xstartup
change the style to gnome-session & in the last line.
start the VNC server: $vncserver
Tips: For 10060 error, run $iptables -F to close firewall.
Server:
run $sudo apt-get install openssh-server
run $ps -A |grep ssh.
If there is sshd, then ssh-server has been started,
else run $sudo /etc/init.d/ssh start to start ssh-server.
Tips: To stop ssh-server, execute $sudo /etc/init.d/ssh stop.
To modify the configuration, edit /etc/ssh/sshd_config.
Client:
ssh-client is usually already installed. If not, run$sudo apt-get install openssh-client.
After installing ssh-client, run $ssh username@192.168.1.112.
a) cmdline: putty, secureCRT
b) window:
xrdp: http://jingyan.baidu.com/article/8ebacdf0cdc64949f75cd555.html1
2
3
4
5sudo apt-get install xrdp
sudo apt-get install vnc4server
sudo apt-get install xubuntu-desktop
echo "xfce4-session" >~/.xsession
sudo service xrdp restart
xrdp mm process login response login failed
When this error occurs, try the following methods, followed by “sudo service xrdp restart”.
delete vnc processes
1 | ps -ef | grep vnc |
delete X sessions, .xrdp, .X11-unix, .X0-20
1 | cd /tmp && ls -a |
modify “MaxSessions” number
sudo vim /etc/xrdp/sesman.ini
Credential ticket for principles without need to type in password, from MIT Kerberos.
A ticket has ticket lifetime and renewable lifetime.
Ticket lifetime is shorter than renewable lifetime.
For liniu@ANT.AMAZON.COM, the default ticket lifetime is 10h (resp., 6h40m) when using kinit -l (resp., -r), why?
From KDC server side:
From Kerberos client side:
modify in /etc/krb5.conf
In fact, the ticket lifetime is the minimum of the following values:
max_life in kdc.conf on the KDC servers.
ticket_lifetime in krb5.conf on the client machine.
maxlife for the user principal.
maxlife for the service principal “krbtgt/[REALM_in_CAPS]”
requested lifetime in the ticket request. For example: kinit -l 14h
maxlife for the AFS service principal “afs/[realm_in_lower_case]”, if you want to increase the lifetime of your AFS token.
commonly used commands:1
2klist
kdestroy
An example:
Ticket cache: FILE:/tmp/krb5cc_4126574_GM19Ct
Default principal: liniu@ANT.AMAZON.COM
Valid starting Expires Service principal
08/18/16 08:13:20 08/18/16 18:13:20 krbtgt/ANT.AMAZON.COM@ANT.AMAZON.COM
time format is like 4d5h30m
1 | kinit -l lifetime //request a ticket with ticket lifetime of lifetime |
Automatically renew tickets: Since you need to renew a ticket before its ticket lifetime expires, the easiest way to renew tickets is to put it in a cron job since renewing a ticket is non-interactive.
Run ‘crontab -e’ to edit the file in /var/spool/cron/. Use ‘crontab -l’ to see the file.
1 | # Renew the kerberos ticket every 8 hours, this will extend the lifetime of |
Key Notes:
do not use sudo kinit
when no credential ticket can be found, add -c $KRB5CCNAME, where KRB5CCNAME is the environment variable recording the path of credential ticket.
Preinstallation
$npm install hexo-cli -gSSH keys
$cd ~/.ssh. If not, $ssh-keygen -t rsa -C "your_email@example.com" to generate key file $cat ~/.ssh/id_rsa.pub$ ssh -T git@github.com create an empty folder as Hexo folder
1 | $hexo init |
local test: http://localhost:4000/
deploy local Hexo folder
in Hexo folder, modify the _config.yml file as follows,
1 | deploy: |
$npm install hexo-deployer-git --save$hexo g and $hexo d, or $hexo d -g. change theme: go to the folder “/themes” and git clone https://github.com/iissnan/hexo-theme-next. config the theme in the file “/themes/XXXX/_config.yml”.
local search
$npm install hexo-generator-searchdb --save
in the site _config.yml file, set local_search: enable: true. paste the following lines anywhere.
1 | search: |
add new page for some subcategory (e.g., write): in the theme _config.yml file
1 | menu: |
add social links: in the theme _config.yml file
1 | # Social links |
latex:
$npm install hexo-math --save and restart Hexoin the theme _config.yml file, modify as follows (notice that cdn may change)
1 | # MathJax Support |
to address the conflict between MathJax and Hexo
1 | $npm uninstall hexo-renderer-marked --save |
push posts to the top
$ npm install hexo-generator-index-pin-top --save.top: true in Front-matter, or top: 10 with larger number indicating higher priority.insert code block
1 | {% codeblock lang:python %} |
insert image
1 | <img src="http://bcmi.sjtu.edu.cn/~niuli/github_images/t0IXoZq.jpg" width="50%" height="50%"> |
Tips:
If something is wrong with the representation and hard to tune, you can try deleting extra spaces or adopting an alternative format (e.g., two code block formats).
Case sensitive: sometimes you switch between capital letter and small letter, which may lead to 404 not found errors.
ignorecase as false in the file .deploy_git/.git/config.deploy_githexo clean and hexo d -ginteraction and active reasoning: [2] (Sokoban, Maze, and Taxi)
performs both policy and world model learning: [3]
Survey: [1]
[1] Zhao, Changyuan, et al. “Edge general intelligence through world models and agentic AI: Fundamentals, solutions, and challenges.” arXiv preprint arXiv:2508.09561 (2025).
[2] Shu, Bao, et al. “Thinking by Doing: Building Efficient World Model Reasoning in LLMs via Multi-turn Interaction.” arXiv preprint arXiv:2511.23476 (2025).
[3] Yu, Xiao, et al. “Dyna-Think: Synergizing Reasoning, Acting, and World Model Simulation in AI Agents.” arXiv preprint arXiv:2506.00320 (2025).
Survey: [1]
[1] Tong, Jingqi, et al. “Thinking with video: Video generation as a promising multimodal reasoning paradigm.” arXiv preprint arXiv:2511.04570 (2025).
Survey: [1]
[1] Su, Zhaochen, et al. “Thinking with images for multimodal reasoning: Foundations, methods, and future frontiers.” arXiv preprint arXiv:2506.23918 (2025).