⑴ 虛擬機裝的linux如何跳出全屏
單的——虛擬機——安裝VMware Tools,在彈出的對話框中選擇「安裝」。這時,在Ubuntu下會自動載入Linux版的VMware Tools的安裝光碟鏡像。你會看到虛擬機的桌面上出現了一個名為VMware Tools的光碟圖標,並且被自動打開。其中包括VMwareTools-5.3.3-34685-i386.rpm和VMwareTools- 5.3.3-34685.tar.gz兩個文件。
.rpm文件是給Red Hat准備的,我們只需要.tar.gz的那個,並把它拷貝到一個文件夾中(因為光碟機是不可寫的)。
$ tar zxf VMwareTools-5.3.3-34685.tar.gz(回車後系統會把那個.tar.gz文件解壓縮)
$ cd vmware-tools-distrib(回車後目錄將轉換到解壓縮後的那個文件夾)
$ sudo ./vmware-install.pl(回車後會提示輸入你的密碼,表明你將以更高級許可權執行一個動作——安裝軟體;再次回車後安裝開始)
經過一番確認回車後(相當於在Windows里安裝軟體時所填答的諸多對話框,我們這里均採用預設設置),直到最後出現「Enjoy——the VMware team」的字樣後,VMwareTools終於安裝完成了。
如果你使用的是VMware Workstation 6.0.0,現在你應該已經能看到VMware Tools安裝後的效果了:滑鼠再也不需要用Ctrl+Alt切換於虛擬與現實之間,一切過渡得那麼自然;虛擬機的解析度也能依窗口的大小來自動適應,一切顯得那樣和諧。但我們這里使用的是VMware Workstation 5.5.3,所以暫時你還看不到什麼,讓我們來做一下最後的設置吧。
在VMware Workstation 5.5.3里,Ubuntu下的VMware Tools安裝之後是要靠手動執行/usr/bin/vmware-toolbox才能顯示出效果的。你可以通過在終端中輸入如下命令來運行它:
$ /usr/bin/vmware-toolbox
但如果你嫌麻煩,我們就需要讓vmware-toolbox實現開機自動運行。點擊Ubuntu菜單:System——首選項——會話—— Startup Programs,Add一個Name叫「vmware-toolbox」,Command是「/usr/bin/vmware-toolbox」的啟動程序。這樣每次開機後就能自動運行VMware Tools了。重啟Ubuntu看看效果吧!(注意:vmware-toolbox並不是在後台隱藏運行的,啟動後不要關閉)
25.PNG
VMware Tools固然是個好東西,但也有副作用,比如說:虛擬機中的滑鼠的滾輪不好使了。我們這樣解決這個問題,還是打開終端,輸入:
$ sudo gedit /etc/X11/xorg.conf
這個命令使系統以root許可權打開滑鼠配置文件/etc/X11/xorg.conf。把文件中的
Option 「Protocol」 「ps/2」
改成
Option 「Protocol」 「IMPS/2」
重啟Ubuntu搞定。
二、設置解析度:
1、cd /usr/bin
使用此命令,進入/usr/bin目錄;
2、ls *.pl
使用此命令,查找vmware-config-tools.pl文件;
3、./vmware-config-tools.pl
運行vmware-config-tools.pl文件;
4、設置解析度
輸入相應的數字回車即可,感覺設置的與原系統一樣就可以了;
5、重啟虛擬機。
三、壓縮虛擬機空間
虛擬機隨著使用,空間會越來越大,而且就算刪掉了其中的文件,空間也不會減少,可以用vmware tools 的shrink, 執行 vmware-toolbox,然後用shrink進行壓縮就可以了,效果挺不錯的,不過時間有點長。
另外,團IDC網上有許多產品團購,便宜有口碑
⑵ redhat8怎麼退出滿屏模式
按 下面的步驟去做,改變解析度。你是在虛擬機下面裝的吧?xp系統下的虛擬機中安裝了linux後,虛擬機VMware中的linux界面太小,是由於linux解析度太低(通常為800×600)造成的,可以通過安裝VMware Tools來更改解析度到1024×768來解決這個問題,下面說明安裝VMware Tools並配置解析度的步驟:1.安裝工具。讓虛擬機運行於窗口狀態,不要全屏,按Ctrl+Alt讓滑鼠釋放出來。在VMware的菜單欄上選擇"虛擬機/安裝虛擬機工具(VM/Install VMware Tools...)"。然後切換到客戶操作系統,即Linux。2.掛載光碟。# mount /dev/cdrom /mnt/cdrom3.執行命令。進入虛擬光碟,可以看到有兩個文件,一個是壓縮包,一個為rpm包。直接運行rpm包安裝,命令行也可。rpm -Uvh VMwareTools-版本號-版本號.i386.rpm# cd /mnt/cdrom# ls -l有兩上文件 :VMwareTools-5.5.1-19175.i386.rpmVMwareTools-5.5.1-19175.tar.gz並把這兩個文件拷貝到你的文件下 如 /tmp#cp VMwareTools-5.5.1-19175.tar.gz /tmp#cp VMwareTools-5.5.1-19175.i386.rpm /tmp#cd /tmp#rpm -ivh VMwareTools-5.5.1-19175.i386.rpm4.上述操作完成後,進入/usr/bin目錄,查找vmware-config-tools.pl.找到後,運行它。5.一路回車6.#tar -xzvf VMwareTools-5.5.1-19175.tar.gz#cd vmware-tools-distrib#./vmware-install.plCreating a new installer database using the tar3 format.Installing the content of the package.# 安裝過程的畫面,全部使用默認值,一直按 Enter 就對了In which directory do you want to install the binary files?[/usr/bin]What is the directory that contains the init directories (rc0.d/ to rc6.d/)?[/etc/rc.d]What is the directory that contains the init scripts?[/etc/rc.d/init.d]In which directory do you want to install the daemon files?[/usr/sbin]In which directory do you want to install the library files?[/usr/lib/vmware-tools]Thepath "/usr/lib/vmware-tools" does not exist currently. This program isgoingto create it, including needed parent directories. Is this whatyou want?[yes]In which directory do you want to install the documentation files?[/usr/share/doc/vmware-tools]Thepath "/usr/share/doc/vmware-tools" does not exist currently. Thisprogram isgoing to create it, including needed parent directories. Isthis what you want?[yes]The installation of VMware Tools 5.5.1 build-19175 for Linux completedsuccessfully. You can decide to remove this software from your system at anytime by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".Before running VMware Tools for the first time, you need to configure it byinvoking the following command: "/usr/bin/vmware-config-tools.pl". Do you wantthis program to invoke the command for you now? [yes]Stopping VMware Tools services in the virtual machine:Guest operating system daemon: [ 確定 ]Trying to find a suitable vmhgfs mole for your running kernel.The mole bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.pcnet32 30153 0Unloading pcnet32 moleTrying to find a suitable vmxnet mole for your running kernel.The mole bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.Detected X.org version 6.8.關閉控制台滑鼠服務: [ 確定 ]啟動控制台滑鼠服務: [ 確定 ]Please choose one of the following display sizes (1 - 13):# 顯示解析度,這里是以 1024x768 為例# VMware Tools 安裝的時候,會自動修改 X server 的配置文件[1] "640x480"[2]< "800x600"[3] "1024x768"[4] "1152x864"[5] "1280x800"[6] "1152x900"[7] "1280x1024"[8] "1376x1032"[9] "1400x1050"[10] "1680x1050"[11] "1600x1200"[12] "1920x1200"[13] "2364x1773"Please enter a number between 1 and 13:[2] 3X Window System Version 6.8.2Release Date: 9 February 2005X Protocol Version 11, Revision 0, Release 6.8.2Build Operating System: Linux 2.6.9-34.EL i686 [ELF]Current Operating System: Linux rd01.domain 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686Build Date: 04 May 2006Build Host: x8664-build.centos.orgBefore reporting problems, checkhttp://wiki.X.Orgto make sure that you have the latest version.Mole Loader presentOSKernel: Linux version 2.6.9-34.EL (buildcentos@build-i386) (gcc version3.4.5 20051201 (Red Hat 3.4.5-2)) #1 Wed Mar 8 00:07:35 CST 2006 PMarkers: (--) probed, (**) from config file, (==) default setting,(++) from command line, (!!) notice, (II) informational,(WW) warning, (EE) error, (NI) not implemented, (??) unknown.(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.3131", Time: Mon Jun 12 20:57:3
⑶ 在linux的終端怎麼退出python命令行
1.Ctrl + d 相信這個快捷鍵在很多交換式情景下都能退出交換式模式。x0dx0a2.quit()或者exit(),在很多交換式模式下是通過quit命令退出,在python的交換式模式所有命令都是函數,不能漏掉後面的()。x0dx0a3.輸入 exit() 運行或按 Ctrl + D,在python shell中輸入"exit()"即可退出python交互界面,1 0ctrl-c就行或者quit()有提示的。x0dx0a4.使用 quit(), exit(), 或者Ctrl-D退出命令行,python2.7.7(default,Jun32014,01:46:20) [GCC4.9.020140521(prerelease)]onlinux2 x0dx0a5.Type"help","right","credits"or"license"formoreinformation. >>>quit Usequit()orCtrl-D(i.e.EOF)toexit
⑷ linux如何退出命令操作界面
1、首先,連接相應linux主機,進入到linux命令行狀態下,等待輸入shell指令。
⑸ 伺服器上怎麼取消linux全屏
如果你是用VNC來全屏訪問linux的話,把滑鼠移動到桌面中間上面頂部,會有一個框出來,中間可以選擇退出全屏
⑹ linux如何退出命令操作界面
linux退出命令操作界面的具體步驟如下:
1、首先要按鍵盤左上角的"ESC",左下角的插入狀態不見了。
⑺ linux:命令行中對文件進行編輯後怎麼退出到命令行界面
如果在命令行下使用gedit, 關閉程序窗口(一般先保存文件),就自動退到命令行界面。
如果在命令行下使用vim,先按下ESC退出編輯模式,然後輸入:wq 保存並退出或者q退出或者q!強制退出,從而回到命令行界面。
(7)linux退出命令行全屏擴展閱讀:
linux常見命令:
命令
apropos whatis 顯示和word相關的命令。 參見線程安全
man-t man | ps2pdf - > man.pdf 生成一個PDF格式的幫助文件
which command 顯示命令的完整路徑名
time command 計算命令運行的時間
time cat 開始計時. Ctrl-d停止。參見sw
niceinfo 運行一個低優先順序命令(這里是info)
renice 19 -p $$ 使腳本運行於低優先順序。用於非交互任務。
目錄操作
cd - 回到前一目錄
cd 回到用戶目錄
(cd dir && command) 進入目錄dir,執行命令command然後回到當前目錄
pushd. 將當前目錄壓入棧,以後你可以使用popd回到此目錄
文件搜索
aliasl='ls -l --color=auto' 單字元文件列表命令
ls -lrt 按日期顯示文件. 參見newest
ls /usr/bin | pr -T9 -W$COLUMNS 在當前終端寬度上列印9列輸出
find -name '*.[ch]' | xargs grep -E 'expr' 在當前目錄及其子目錄下所有.c和.h文件中尋找'expr'. 參見findrepo
find -type f -print0 | xargs -r0 grep -F 'example' 在當前目錄及其子目錄中的常規文件中查找字元串'example'
find -maxdepth 1 -type f | xargs grep -F 'example' 在當前目錄下查找字元串'example'
find -maxdepth 1 -type d | whilereaddir; do echo $dir; echo cmd2; done 對每一個找到的文件執行多個命令(使用while循環)
find -type f ! -perm -444 尋找所有不可讀的文件(對網站有用)
find -type d ! -perm -111 尋找不可訪問的目錄(對網站有用)
locate -r 'file[^/]*.txt' 使用locate 查找所有符合*file*.txt的文件
look reference 在(有序)字典中快速查找
grep--colorreference /usr/share/dict/words 使字典中匹配的正則表達式高亮
歸檔 and compression
gpg -c file 文件加密
gpg file.gpg 文件解密
tar -c dir/ | bzip2 > dir.tar.bz2 將目錄dir/壓縮打包
bzip2 -dc dir.tar.bz2 | tar -x 展開壓縮包 (對tar.gz文件使用gzip而不是bzip2)
tar -c dir/ | gzip | gpg -c | ssh user@remote 'dd of=dir.tar.gz.gpg' 目錄dir/壓縮打包並放到遠程機器上
find dir/ -name '*.txt' | tar -c --files-from=- | bzip2 > dir_txt.tar.bz2 將目錄dir/及其子目錄下所有.txt文件打包
find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents 將目錄dir/及其子目錄下所有.txt按照目錄結構拷貝到dir_txt/
( tar -c /dir/to/ ) | ( cd /where/to/ && tar -x -p ) 拷貝目錄/到目錄/where/to/並保持文件屬性
( cd /dir/to/ && tar -c.) | ( cd /where/to/ && tar -x -p ) 拷貝目錄/下的所有文件到目錄/where/to/並保持文件屬性
( tar -c /dir/to/ ) | ssh -C user@remote 'cd /where/to/ && tar -x -p' 拷貝目錄/到遠程目錄/where/to/並保持文件屬性
dd bs=1M if=/dev/sda | gzip | ssh user@remote 'dd of=sda.gz' 將整個硬碟備份到遠程機器上
⑻ linux下怎麼退出全屏程序
ctrl + c 結束程序
其實,每個程序都有自己的退出方式,不知道的話只有用上述方法強制結束。