Section1.3 Examples

Examples

Some Dependencies problems

#list all the packages that gtkmm depends and require:
pacman -Qi open-vm-tools
#or
pacman -Si open-vm-tools

#Cannot change display setting:
sudo pacman -S gnome-control-center

#Cannot paste from VMWare host:
sudo pacman -S gtkmm
sudo pacman -S open-vm-tools

VMWare Host share folder with Guest

#to check
vmware-hgfsclient

#mkdir
mkdir -p /home/grey/Shared

#mount
sudo vmhgfs-fuse -o allow_other -o auto_unmount -o uid=1000 -o gid=1000 .host:/VMShared /home/grey/Shared
//a automate C program for above purpose
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main()
{
    //check the hgfs service
    if (system("vmware-hgfsclient")==-1) {
       printf("Please turn on VMWare Shared Folder, then try again\n");
       return 0;
    }

    //get the current user's name
    char path[60];
    sprintf(path,"/home/%s/Shared",getenv("USER"));

    //if director /home/userName/Shared doesn't exit, make one
    if (access(path,0)!=0) {
        char mkSharedir[100];
        sprintf(mkSharedir,"mkdir -p %s",path);
        system(mkSharedir);
    }

    //do the mount(connet the maked directory with the VMware shared folder VMShared)
    char finalCmd[200];
    sprintf(finalCmd,"sudo vmhgfs-fuse -o allow_other -o auto_unmount -o uid=1000 -o gid=1000 .host:/VMShared %s",path);
    system(finalCmd);
}

Majaro ssh

Open ssh in ArchLinux

#Linux默认安装openssh-server

#start sshd
systemctl start sshd

#check locally
ssh grey@localhost

#when local login in, means success

#in Mac Terminal
ssh grey@162.105.147.126

#in Linux Terminal
ssh grey@162.105.147.126

#finally test ip
ifconfig
#another method

#start the service
service sshd start
service sshd status

#stop the service
service sshd start

In windows,借助putty

putty.png

LaTex Software

Latex01.png

Install ibus

sudo pacman -S ibus
sudo pacman -S ibus-libpinyin
ibus-setup
#add chinese
#in region&language, add chinese

cannot copy

#run this one
pacman -S gtkmm

gedit /etc/xdg/autostart/vmware-user.desktop
[Desktop Entry]
Type=Application
Encoding=UTF-8
Exec=/usr/bin/vmware-user-suid-wrapper
Name=VMware User Agent
# KDE bug 190522: KDE does not autostart items with NoDisplay=true...
# NoDisplay=true
X-KDE-autostart-phase=1

database

#install mariaDB
yaourt mariaDB

#install MySQL Workbench
yaourt workbench

config database

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • This project was bootstrapped with Create React App. Belo...
    unspecx阅读 10,599评论 0 2
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 13,494评论 0 23
  • 《随笔-四》 -- 杏子 我钟情于风的眷顾 散去孤独 喜爱于晨中的雨露 如泪珠,悬挂枝头不掉落 林深处的鹿也不免糊...
    一种缺陷ing阅读 1,301评论 0 0
  • 人生无处不选择,一个错误的选择痛苦一生。选错一份工作,痛苦几年,选错一个人,痛苦一辈子,漫天的压抑,拿不起放不下...
    浅笑舒眉阅读 2,593评论 0 1
  • 感冒了,鼻子不通气。害怕影响我家小宝宝,赶紧去医院看了看。医生说,没事,回去多喝姜汤! 希望快点好,免得老是担心肚...
    阿狸404阅读 1,220评论 0 0

友情链接更多精彩内容