Besides the suggested base dependencies, also install
libpcsclite-dev
sudo apt install libpcsclite-dev cmake -DWITH_PCSC=ON -DWITH_SSE2=ON . |
Then follow the Build section in the compilation instruction.
libpcsclite-dev
sudo apt install libpcsclite-dev cmake -DWITH_PCSC=ON -DWITH_SSE2=ON . |
sudo apt-get install xrdp xfce4 xfce4-terminal gnome-icon-theme-full tango-icon-theme |
.xsession
file in the home directory.echo xfce4-session >~/.xsession |
/etc/xrdp/startwm.sh
.#!/bin/sh if [ -r /etc/default/locale ]; then . /etc/default/locale export LANG LANGUAGE fi startxfce4 |
sudo service xrdp restart |
mstsc.exe
)
and enter the IP address of Ubuntu. Then you will see the login screen.
After entering the Ubuntu username and password and click “OK”, a
window will show the login process. Finally, you’ll have access to your
Ubuntu machine.
*
and ->
, while references use .
), but they seem to have the same function: both can be used to indirectly point to another object. So when should you use pointers vs. references?NULL
directly. A reference has always to refer to an object. Therefore, if you need a variable that needs to point to nothing sometimes, then this variable should be declared as a pointer, not a reference. The fact that reference should always refer to an object makes the program more effective, because it doesn’t need to be tested null
before usage.++
to go to the next item, and +n
to go to the (n+1)th element. This is no matter what size the object is that the pointer points to.[]
, by which an object should be returned. For examplevector<int> v(10);
v[5] = 10;
[]
returns a pointer, the last line would be*v[5] = 10;
v
look like a vector of pointers. echo -n "\033]0;${USER}@${HOST}\007"
case $TERM in
xterm*)
PS1="\[\033]0;\u@\h: \w\007\]bash\\$ "
;;
*)
PS1="bash\\$ "
;;
esac
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
esac
sudo apt-get install fontforge
song.ttc
, and generate font filesfontforge -script subfonts.pe simsun.ttc song Unicode.sfd
makemap.sh
, run the script to generate map fileif [ -f song.map ]; then
rm song.map
fi
for i in *.tfm
do
echo "${i%.tfm} ${i%.tfm} <${i%.tfm}.pfb" >> song.map
done
c70song.fd
% This is c70song.fd for CJK package.
% created by Edward G.J. Lee
% modify by Yue Wang
\ProvidesFile{c70song.fd}
\DeclareFontFamily{C70}{song}{\hyphenchar \font\m@ne}
\DeclareFontShape{C70}{song}{m}{n}{<-> CJK * song}{}
\DeclareFontShape{C70}{song}{bx}{n}{<-> CJKb * song}{\CJKbold}
\endinput
kpsewhich texmf.cnf
TEXMFHOME
toTEXMFHOME = $HOME/texmf
TEXMFDBS
toTEXMFDBS = $TEXMFHOME;$TEXMFLOCAL;$TEXMFMAIN;$VARTEXFONTS;$TEXMFSYSVAR;$TEXMFDIST
TEXMFHOME
mkdir -p ~/texmf/fonts/map/dvips/CJK
mkdir -p ~/texmf/fonts/tfm/CJK/song
mkdir -p ~/texmf/fonts/type1/CJK/song
mkdir -p ~/texmf/tex/latex/CJK/UTF8
cp song.map ~/texmf/fonts/map/dvips/CJK
cp *.tfm ~/texmf/fonts/tfm/CJK/song
cp *.pfb ~/texmf/fonts/type1/CJK/song
cp c70song.fd ~/texmf/tex/latex/CJK/UTF8
sudo texhash
updmap
$HOME/texmf/fonts/map/pdftex/updmap/pdftex.map
, append content in song.map